Clean spec file for yocto compliance.
[platform/upstream/ibus.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ibus 1.5.4.
4 #
5 # Report bugs to <http://code.google.com/p/ibus/issues/entry>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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://code.google.com/p/ibus/issues/entry about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 as_awk_strverscmp='
568   # Use only awk features that work with 7th edition Unix awk (1978).
569   # My, what an old awk you have, Mr. Solaris!
570   END {
571     while (length(v1) && length(v2)) {
572       # Set d1 to be the next thing to compare from v1, and likewise for d2.
573       # Normally this is a single character, but if v1 and v2 contain digits,
574       # compare them as integers and fractions as strverscmp does.
575       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
576         # Split v1 and v2 into their leading digit string components d1 and d2,
577         # and advance v1 and v2 past the leading digit strings.
578         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
579         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
580         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
581         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
582         if (d1 ~ /^0/) {
583           if (d2 ~ /^0/) {
584             # Compare two fractions.
585             while (d1 ~ /^0/ && d2 ~ /^0/) {
586               d1 = substr(d1, 2); len1--
587               d2 = substr(d2, 2); len2--
588             }
589             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
590               # The two components differ in length, and the common prefix
591               # contains only leading zeros.  Consider the longer to be less.
592               d1 = -len1
593               d2 = -len2
594             } else {
595               # Otherwise, compare as strings.
596               d1 = "x" d1
597               d2 = "x" d2
598             }
599           } else {
600             # A fraction is less than an integer.
601             exit 1
602           }
603         } else {
604           if (d2 ~ /^0/) {
605             # An integer is greater than a fraction.
606             exit 2
607           } else {
608             # Compare two integers.
609             d1 += 0
610             d2 += 0
611           }
612         }
613       } else {
614         # The normal case, without worrying about digits.
615         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
616         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
617       }
618       if (d1 < d2) exit 1
619       if (d1 > d2) exit 2
620     }
621     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
622     # which mishandles some comparisons of empty strings to integers.
623     if (length(v2)) exit 1
624     if (length(v1)) exit 2
625   }
626 '
627 SHELL=${CONFIG_SHELL-/bin/sh}
628
629
630 test -n "$DJDIR" || exec 7<&0 </dev/null
631 exec 6>&1
632
633 # Name of the host.
634 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635 # so uname gets run too.
636 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638 #
639 # Initializations.
640 #
641 ac_default_prefix=/usr/local
642 ac_clean_files=
643 ac_config_libobj_dir=.
644 LIBOBJS=
645 cross_compiling=no
646 subdirs=
647 MFLAGS=
648 MAKEFLAGS=
649
650 # Identity of this package.
651 PACKAGE_NAME='ibus'
652 PACKAGE_TARNAME='ibus'
653 PACKAGE_VERSION='1.5.4'
654 PACKAGE_STRING='ibus 1.5.4'
655 PACKAGE_BUGREPORT='http://code.google.com/p/ibus/issues/entry'
656 PACKAGE_URL=''
657
658 # Factoring default headers for most tests.
659 ac_includes_default="\
660 #include <stdio.h>
661 #ifdef HAVE_SYS_TYPES_H
662 # include <sys/types.h>
663 #endif
664 #ifdef HAVE_SYS_STAT_H
665 # include <sys/stat.h>
666 #endif
667 #ifdef STDC_HEADERS
668 # include <stdlib.h>
669 # include <stddef.h>
670 #else
671 # ifdef HAVE_STDLIB_H
672 #  include <stdlib.h>
673 # endif
674 #endif
675 #ifdef HAVE_STRING_H
676 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
677 #  include <memory.h>
678 # endif
679 # include <string.h>
680 #endif
681 #ifdef HAVE_STRINGS_H
682 # include <strings.h>
683 #endif
684 #ifdef HAVE_INTTYPES_H
685 # include <inttypes.h>
686 #endif
687 #ifdef HAVE_STDINT_H
688 # include <stdint.h>
689 #endif
690 #ifdef HAVE_UNISTD_H
691 # include <unistd.h>
692 #endif"
693
694 ac_subst_vars='am__EXEEXT_FALSE
695 am__EXEEXT_TRUE
696 LTLIBOBJS
697 LIBOBJS
698 ISOCODES_PREFIX
699 ISOCODES_LIBS
700 ISOCODES_CFLAGS
701 LIBNOTIFY_LIBS
702 LIBNOTIFY_CFLAGS
703 ENABLE_LIBNOTIFY_FALSE
704 ENABLE_LIBNOTIFY_TRUE
705 ENABLE_ENGINE_FALSE
706 ENABLE_ENGINE_TRUE
707 ENABLE_UI_FALSE
708 ENABLE_UI_TRUE
709 IBUS_ICON_KEYBOARD
710 DBUS_PYTHON_LIBS
711 DBUS_PYTHON_CFLAGS
712 GTK3_IM_MODULEDIR
713 GTK2_IM_MODULEDIR
714 PYTHON_INCLUDES
715 PYTHON_CONFIG
716 ENABLE_PYGOBJECT_FALSE
717 ENABLE_PYGOBJECT_TRUE
718 pyoverridesdir
719 PYTHON_LIBS
720 PYTHON_CFLAGS
721 pkgpyexecdir
722 pyexecdir
723 pkgpythondir
724 pythondir
725 PYTHON_PLATFORM
726 PYTHON_EXEC_PREFIX
727 PYTHON_PREFIX
728 PYTHON_VERSION
729 PYTHON
730 ENABLE_DAEMON_FALSE
731 ENABLE_DAEMON_TRUE
732 ENABLE_SETUP_FALSE
733 ENABLE_SETUP_TRUE
734 ENABLE_PYTHON_LIBRARY_FALSE
735 ENABLE_PYTHON_LIBRARY_TRUE
736 ENV_IBUS_TEST
737 GSETTINGS_SCHEMA_CONVERT
738 GSETTINGS_RULES
739 GLIB_COMPILE_SCHEMAS
740 gsettingsschemadir
741 GSETTINGS_DISABLE_SCHEMAS_COMPILE
742 DCONF_LIBS
743 DCONF_CFLAGS
744 ENABLE_DCONF_FALSE
745 ENABLE_DCONF_TRUE
746 ENABLE_MEMCONF_FALSE
747 ENABLE_MEMCONF_TRUE
748 GCONF_SCHEMAS_INSTALL_FALSE
749 GCONF_SCHEMAS_INSTALL_TRUE
750 GCONF_SCHEMA_FILE_DIR
751 GCONF_SCHEMA_CONFIG_SOURCE
752 GCONFTOOL
753 GCONF_LIBS
754 GCONF_CFLAGS
755 ENABLE_GCONF_FALSE
756 ENABLE_GCONF_TRUE
757 DBUS_LIBS
758 DBUS_CFLAGS
759 GTK_DOC_USE_REBASE_FALSE
760 GTK_DOC_USE_REBASE_TRUE
761 GTK_DOC_USE_LIBTOOL_FALSE
762 GTK_DOC_USE_LIBTOOL_TRUE
763 GTK_DOC_BUILD_PDF_FALSE
764 GTK_DOC_BUILD_PDF_TRUE
765 GTK_DOC_BUILD_HTML_FALSE
766 GTK_DOC_BUILD_HTML_TRUE
767 ENABLE_GTK_DOC_FALSE
768 ENABLE_GTK_DOC_TRUE
769 GTKDOC_DEPS_LIBS
770 GTKDOC_DEPS_CFLAGS
771 HTML_DIR
772 GTKDOC_MKPDF
773 GTKDOC_REBASE
774 GTKDOC_CHECK
775 ENABLE_VAPIGEN_FALSE
776 ENABLE_VAPIGEN_TRUE
777 VAPIGEN_MAKEFILE
778 VAPIGEN_VAPIDIR
779 VAPIGEN
780 IBUS_GIR_SCANNERFLAGS
781 HAVE_INTROSPECTION_FALSE
782 HAVE_INTROSPECTION_TRUE
783 INTROSPECTION_MAKEFILE
784 INTROSPECTION_LIBS
785 INTROSPECTION_CFLAGS
786 INTROSPECTION_TYPELIBDIR
787 INTROSPECTION_GIRDIR
788 INTROSPECTION_GENERATE
789 INTROSPECTION_COMPILER
790 INTROSPECTION_SCANNER
791 WAYLAND_LIBS
792 WAYLAND_CFLAGS
793 X11_LIBS
794 X11_CFLAGS
795 GDK3_LIBS
796 GDK3_CFLAGS
797 GTK3_LIBS
798 GTK3_CFLAGS
799 GDK2_LIBS
800 GDK2_CFLAGS
801 GTK2_LIBS
802 GTK2_CFLAGS
803 ENABLE_WAYLAND_FALSE
804 ENABLE_WAYLAND_TRUE
805 ENABLE_XIM_FALSE
806 ENABLE_XIM_TRUE
807 ENABLE_GTK3_FALSE
808 ENABLE_GTK3_TRUE
809 ENABLE_GTK2_FALSE
810 ENABLE_GTK2_TRUE
811 ENABLE_TESTS_FALSE
812 ENABLE_TESTS_TRUE
813 GTHREAD2_LIBS
814 GTHREAD2_CFLAGS
815 GIO2_LIBS
816 GIO2_CFLAGS
817 GOBJECT2_LIBS
818 GOBJECT2_CFLAGS
819 GLIB2_LIBS
820 GLIB2_CFLAGS
821 GLIB_COMPILE_RESOURCES
822 GLIB_MKENUMS
823 GOBJECT_QUERY
824 GLIB_GENMARSHAL
825 GLIB_LIBS
826 GLIB_CFLAGS
827 PKG_CONFIG_LIBDIR
828 PKG_CONFIG_PATH
829 PKG_CONFIG
830 ALL_LINGUAS
831 INTLTOOL_PERL
832 MSGMERGE
833 INTLTOOL_POLICY_RULE
834 INTLTOOL_SERVICE_RULE
835 INTLTOOL_THEME_RULE
836 INTLTOOL_SCHEMAS_RULE
837 INTLTOOL_CAVES_RULE
838 INTLTOOL_XML_NOMERGE_RULE
839 INTLTOOL_XML_RULE
840 INTLTOOL_KBD_RULE
841 INTLTOOL_XAM_RULE
842 INTLTOOL_UI_RULE
843 INTLTOOL_SOUNDLIST_RULE
844 INTLTOOL_SHEET_RULE
845 INTLTOOL_SERVER_RULE
846 INTLTOOL_PONG_RULE
847 INTLTOOL_OAF_RULE
848 INTLTOOL_PROP_RULE
849 INTLTOOL_KEYS_RULE
850 INTLTOOL_DIRECTORY_RULE
851 INTLTOOL_DESKTOP_RULE
852 intltool__v_merge_options_0
853 intltool__v_merge_options_
854 INTLTOOL_V_MERGE_OPTIONS
855 INTLTOOL__v_MERGE_0
856 INTLTOOL__v_MERGE_
857 INTLTOOL_V_MERGE
858 INTLTOOL_EXTRACT
859 INTLTOOL_MERGE
860 INTLTOOL_UPDATE
861 OTOOL64
862 OTOOL
863 LIPO
864 NMEDIT
865 DSYMUTIL
866 MANIFEST_TOOL
867 RANLIB
868 ac_ct_AR
869 AR
870 DLLTOOL
871 OBJDUMP
872 LN_S
873 NM
874 ac_ct_DUMPBIN
875 DUMPBIN
876 LD
877 FGREP
878 SED
879 host_os
880 host_vendor
881 host_cpu
882 host
883 build_os
884 build_vendor
885 build_cpu
886 build
887 LIBTOOL
888 VALAC
889 DATE_DISPLAY
890 GLIB_LOCALE_DIR
891 MKINSTALLDIRS
892 POSUB
893 POFILES
894 PO_IN_DATADIR_FALSE
895 PO_IN_DATADIR_TRUE
896 INTLLIBS
897 INSTOBJEXT
898 GMOFILES
899 DATADIRNAME
900 CATOBJEXT
901 CATALOGS
902 XGETTEXT
903 GMSGFMT
904 MSGFMT_OPTS
905 MSGFMT
906 USE_NLS
907 GETTEXT_PACKAGE
908 LT_CURRENT_MINUS_AGE
909 LT_VERSION_INFO
910 IBUS_BINARY_VERSION
911 IBUS_VERSION
912 IBUS_API_VERSION
913 IBUS_ABI_AGE
914 IBUS_ABI_REVISION
915 IBUS_ABI_CURRENT
916 IBUS_MICRO_VERSION
917 IBUS_MINOR_VERSION
918 IBUS_MAJOR_VERSION
919 EGREP
920 GREP
921 CPP
922 am__fastdepCC_FALSE
923 am__fastdepCC_TRUE
924 CCDEPMODE
925 am__nodep
926 AMDEPBACKSLASH
927 AMDEP_FALSE
928 AMDEP_TRUE
929 am__quote
930 am__include
931 DEPDIR
932 OBJEXT
933 EXEEXT
934 ac_ct_CC
935 CPPFLAGS
936 LDFLAGS
937 CFLAGS
938 CC
939 MAINT
940 MAINTAINER_MODE_FALSE
941 MAINTAINER_MODE_TRUE
942 AM_BACKSLASH
943 AM_DEFAULT_VERBOSITY
944 AM_DEFAULT_V
945 AM_V
946 am__untar
947 am__tar
948 AMTAR
949 am__leading_dot
950 SET_MAKE
951 AWK
952 mkdir_p
953 MKDIR_P
954 INSTALL_STRIP_PROGRAM
955 STRIP
956 install_sh
957 MAKEINFO
958 AUTOHEADER
959 AUTOMAKE
960 AUTOCONF
961 ACLOCAL
962 VERSION
963 PACKAGE
964 CYGPATH_W
965 am__isrc
966 INSTALL_DATA
967 INSTALL_SCRIPT
968 INSTALL_PROGRAM
969 VALA_TARGET_GLIB_VERSION
970 target_alias
971 host_alias
972 build_alias
973 LIBS
974 ECHO_T
975 ECHO_N
976 ECHO_C
977 DEFS
978 mandir
979 localedir
980 libdir
981 psdir
982 pdfdir
983 dvidir
984 htmldir
985 infodir
986 docdir
987 oldincludedir
988 includedir
989 localstatedir
990 sharedstatedir
991 sysconfdir
992 datadir
993 datarootdir
994 libexecdir
995 sbindir
996 bindir
997 program_transform_name
998 prefix
999 exec_prefix
1000 PACKAGE_URL
1001 PACKAGE_BUGREPORT
1002 PACKAGE_STRING
1003 PACKAGE_VERSION
1004 PACKAGE_TARNAME
1005 PACKAGE_NAME
1006 PATH_SEPARATOR
1007 SHELL'
1008 ac_subst_files=''
1009 ac_user_opts='
1010 enable_option_checking
1011 enable_silent_rules
1012 enable_maintainer_mode
1013 enable_dependency_tracking
1014 enable_static
1015 enable_shared
1016 with_pic
1017 enable_fast_install
1018 with_gnu_ld
1019 with_sysroot
1020 enable_libtool_lock
1021 enable_nls
1022 enable_glibtest
1023 enable_tests
1024 enable_gtk2
1025 enable_gtk3
1026 enable_xim
1027 enable_wayland
1028 enable_introspection
1029 enable_vala
1030 with_html_dir
1031 enable_gtk_doc
1032 enable_gtk_doc_html
1033 enable_gtk_doc_pdf
1034 enable_gconf
1035 with_gconf_source
1036 with_gconf_schema_file_dir
1037 enable_schemas_install
1038 enable_memconf
1039 enable_dconf
1040 enable_schemas_compile
1041 enable_python_library
1042 enable_setup
1043 with_gtk2_im_module_dir
1044 with_gtk3_im_module_dir
1045 enable_dbus_python_check
1046 enable_key_snooper
1047 with_no_snooper_apps
1048 with_panel_icon_keyboard
1049 enable_surrounding_text
1050 enable_ui
1051 enable_engine
1052 enable_libnotify
1053 '
1054       ac_precious_vars='build_alias
1055 host_alias
1056 target_alias
1057 CC
1058 CFLAGS
1059 LDFLAGS
1060 LIBS
1061 CPPFLAGS
1062 CPP
1063 PKG_CONFIG
1064 PKG_CONFIG_PATH
1065 PKG_CONFIG_LIBDIR
1066 GLIB2_CFLAGS
1067 GLIB2_LIBS
1068 GOBJECT2_CFLAGS
1069 GOBJECT2_LIBS
1070 GIO2_CFLAGS
1071 GIO2_LIBS
1072 GTHREAD2_CFLAGS
1073 GTHREAD2_LIBS
1074 GTK2_CFLAGS
1075 GTK2_LIBS
1076 GDK2_CFLAGS
1077 GDK2_LIBS
1078 GTK3_CFLAGS
1079 GTK3_LIBS
1080 GDK3_CFLAGS
1081 GDK3_LIBS
1082 X11_CFLAGS
1083 X11_LIBS
1084 WAYLAND_CFLAGS
1085 WAYLAND_LIBS
1086 GTKDOC_DEPS_CFLAGS
1087 GTKDOC_DEPS_LIBS
1088 DBUS_CFLAGS
1089 DBUS_LIBS
1090 GCONF_CFLAGS
1091 GCONF_LIBS
1092 DCONF_CFLAGS
1093 DCONF_LIBS
1094 PYTHON
1095 PYTHON_CFLAGS
1096 PYTHON_LIBS
1097 DBUS_PYTHON_CFLAGS
1098 DBUS_PYTHON_LIBS
1099 LIBNOTIFY_CFLAGS
1100 LIBNOTIFY_LIBS
1101 ISOCODES_CFLAGS
1102 ISOCODES_LIBS'
1103
1104
1105 # Initialize some variables set by options.
1106 ac_init_help=
1107 ac_init_version=false
1108 ac_unrecognized_opts=
1109 ac_unrecognized_sep=
1110 # The variables have the same names as the options, with
1111 # dashes changed to underlines.
1112 cache_file=/dev/null
1113 exec_prefix=NONE
1114 no_create=
1115 no_recursion=
1116 prefix=NONE
1117 program_prefix=NONE
1118 program_suffix=NONE
1119 program_transform_name=s,x,x,
1120 silent=
1121 site=
1122 srcdir=
1123 verbose=
1124 x_includes=NONE
1125 x_libraries=NONE
1126
1127 # Installation directory options.
1128 # These are left unexpanded so users can "make install exec_prefix=/foo"
1129 # and all the variables that are supposed to be based on exec_prefix
1130 # by default will actually change.
1131 # Use braces instead of parens because sh, perl, etc. also accept them.
1132 # (The list follows the same order as the GNU Coding Standards.)
1133 bindir='${exec_prefix}/bin'
1134 sbindir='${exec_prefix}/sbin'
1135 libexecdir='${exec_prefix}/libexec'
1136 datarootdir='${prefix}/share'
1137 datadir='${datarootdir}'
1138 sysconfdir='${prefix}/etc'
1139 sharedstatedir='${prefix}/com'
1140 localstatedir='${prefix}/var'
1141 includedir='${prefix}/include'
1142 oldincludedir='/usr/include'
1143 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1144 infodir='${datarootdir}/info'
1145 htmldir='${docdir}'
1146 dvidir='${docdir}'
1147 pdfdir='${docdir}'
1148 psdir='${docdir}'
1149 libdir='${exec_prefix}/lib'
1150 localedir='${datarootdir}/locale'
1151 mandir='${datarootdir}/man'
1152
1153 ac_prev=
1154 ac_dashdash=
1155 for ac_option
1156 do
1157   # If the previous option needs an argument, assign it.
1158   if test -n "$ac_prev"; then
1159     eval $ac_prev=\$ac_option
1160     ac_prev=
1161     continue
1162   fi
1163
1164   case $ac_option in
1165   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1166   *=)   ac_optarg= ;;
1167   *)    ac_optarg=yes ;;
1168   esac
1169
1170   # Accept the important Cygnus configure options, so we can diagnose typos.
1171
1172   case $ac_dashdash$ac_option in
1173   --)
1174     ac_dashdash=yes ;;
1175
1176   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1177     ac_prev=bindir ;;
1178   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1179     bindir=$ac_optarg ;;
1180
1181   -build | --build | --buil | --bui | --bu)
1182     ac_prev=build_alias ;;
1183   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1184     build_alias=$ac_optarg ;;
1185
1186   -cache-file | --cache-file | --cache-fil | --cache-fi \
1187   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1188     ac_prev=cache_file ;;
1189   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1190   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1191     cache_file=$ac_optarg ;;
1192
1193   --config-cache | -C)
1194     cache_file=config.cache ;;
1195
1196   -datadir | --datadir | --datadi | --datad)
1197     ac_prev=datadir ;;
1198   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1199     datadir=$ac_optarg ;;
1200
1201   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1202   | --dataroo | --dataro | --datar)
1203     ac_prev=datarootdir ;;
1204   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1205   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1206     datarootdir=$ac_optarg ;;
1207
1208   -disable-* | --disable-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid feature name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "enable_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval enable_$ac_useropt=no ;;
1223
1224   -docdir | --docdir | --docdi | --doc | --do)
1225     ac_prev=docdir ;;
1226   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1227     docdir=$ac_optarg ;;
1228
1229   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1230     ac_prev=dvidir ;;
1231   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1232     dvidir=$ac_optarg ;;
1233
1234   -enable-* | --enable-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid feature name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "enable_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval enable_$ac_useropt=\$ac_optarg ;;
1249
1250   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1251   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1252   | --exec | --exe | --ex)
1253     ac_prev=exec_prefix ;;
1254   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1255   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1256   | --exec=* | --exe=* | --ex=*)
1257     exec_prefix=$ac_optarg ;;
1258
1259   -gas | --gas | --ga | --g)
1260     # Obsolete; use --with-gas.
1261     with_gas=yes ;;
1262
1263   -help | --help | --hel | --he | -h)
1264     ac_init_help=long ;;
1265   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1266     ac_init_help=recursive ;;
1267   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1268     ac_init_help=short ;;
1269
1270   -host | --host | --hos | --ho)
1271     ac_prev=host_alias ;;
1272   -host=* | --host=* | --hos=* | --ho=*)
1273     host_alias=$ac_optarg ;;
1274
1275   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1276     ac_prev=htmldir ;;
1277   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1278   | --ht=*)
1279     htmldir=$ac_optarg ;;
1280
1281   -includedir | --includedir | --includedi | --included | --include \
1282   | --includ | --inclu | --incl | --inc)
1283     ac_prev=includedir ;;
1284   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1285   | --includ=* | --inclu=* | --incl=* | --inc=*)
1286     includedir=$ac_optarg ;;
1287
1288   -infodir | --infodir | --infodi | --infod | --info | --inf)
1289     ac_prev=infodir ;;
1290   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1291     infodir=$ac_optarg ;;
1292
1293   -libdir | --libdir | --libdi | --libd)
1294     ac_prev=libdir ;;
1295   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1296     libdir=$ac_optarg ;;
1297
1298   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1299   | --libexe | --libex | --libe)
1300     ac_prev=libexecdir ;;
1301   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1302   | --libexe=* | --libex=* | --libe=*)
1303     libexecdir=$ac_optarg ;;
1304
1305   -localedir | --localedir | --localedi | --localed | --locale)
1306     ac_prev=localedir ;;
1307   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1308     localedir=$ac_optarg ;;
1309
1310   -localstatedir | --localstatedir | --localstatedi | --localstated \
1311   | --localstate | --localstat | --localsta | --localst | --locals)
1312     ac_prev=localstatedir ;;
1313   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1314   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1315     localstatedir=$ac_optarg ;;
1316
1317   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1318     ac_prev=mandir ;;
1319   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1320     mandir=$ac_optarg ;;
1321
1322   -nfp | --nfp | --nf)
1323     # Obsolete; use --without-fp.
1324     with_fp=no ;;
1325
1326   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1327   | --no-cr | --no-c | -n)
1328     no_create=yes ;;
1329
1330   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1331   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1332     no_recursion=yes ;;
1333
1334   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1335   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1336   | --oldin | --oldi | --old | --ol | --o)
1337     ac_prev=oldincludedir ;;
1338   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1339   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1340   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1341     oldincludedir=$ac_optarg ;;
1342
1343   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1344     ac_prev=prefix ;;
1345   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1346     prefix=$ac_optarg ;;
1347
1348   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1349   | --program-pre | --program-pr | --program-p)
1350     ac_prev=program_prefix ;;
1351   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1352   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1353     program_prefix=$ac_optarg ;;
1354
1355   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1356   | --program-suf | --program-su | --program-s)
1357     ac_prev=program_suffix ;;
1358   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1359   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1360     program_suffix=$ac_optarg ;;
1361
1362   -program-transform-name | --program-transform-name \
1363   | --program-transform-nam | --program-transform-na \
1364   | --program-transform-n | --program-transform- \
1365   | --program-transform | --program-transfor \
1366   | --program-transfo | --program-transf \
1367   | --program-trans | --program-tran \
1368   | --progr-tra | --program-tr | --program-t)
1369     ac_prev=program_transform_name ;;
1370   -program-transform-name=* | --program-transform-name=* \
1371   | --program-transform-nam=* | --program-transform-na=* \
1372   | --program-transform-n=* | --program-transform-=* \
1373   | --program-transform=* | --program-transfor=* \
1374   | --program-transfo=* | --program-transf=* \
1375   | --program-trans=* | --program-tran=* \
1376   | --progr-tra=* | --program-tr=* | --program-t=*)
1377     program_transform_name=$ac_optarg ;;
1378
1379   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1380     ac_prev=pdfdir ;;
1381   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1382     pdfdir=$ac_optarg ;;
1383
1384   -psdir | --psdir | --psdi | --psd | --ps)
1385     ac_prev=psdir ;;
1386   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1387     psdir=$ac_optarg ;;
1388
1389   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390   | -silent | --silent | --silen | --sile | --sil)
1391     silent=yes ;;
1392
1393   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1394     ac_prev=sbindir ;;
1395   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1396   | --sbi=* | --sb=*)
1397     sbindir=$ac_optarg ;;
1398
1399   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1400   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1401   | --sharedst | --shareds | --shared | --share | --shar \
1402   | --sha | --sh)
1403     ac_prev=sharedstatedir ;;
1404   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1405   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1406   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1407   | --sha=* | --sh=*)
1408     sharedstatedir=$ac_optarg ;;
1409
1410   -site | --site | --sit)
1411     ac_prev=site ;;
1412   -site=* | --site=* | --sit=*)
1413     site=$ac_optarg ;;
1414
1415   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1416     ac_prev=srcdir ;;
1417   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1418     srcdir=$ac_optarg ;;
1419
1420   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1421   | --syscon | --sysco | --sysc | --sys | --sy)
1422     ac_prev=sysconfdir ;;
1423   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1424   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1425     sysconfdir=$ac_optarg ;;
1426
1427   -target | --target | --targe | --targ | --tar | --ta | --t)
1428     ac_prev=target_alias ;;
1429   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1430     target_alias=$ac_optarg ;;
1431
1432   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1433     verbose=yes ;;
1434
1435   -version | --version | --versio | --versi | --vers | -V)
1436     ac_init_version=: ;;
1437
1438   -with-* | --with-*)
1439     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1440     # Reject names that are not valid shell variable names.
1441     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1442       as_fn_error $? "invalid package name: $ac_useropt"
1443     ac_useropt_orig=$ac_useropt
1444     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1445     case $ac_user_opts in
1446       *"
1447 "with_$ac_useropt"
1448 "*) ;;
1449       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1450          ac_unrecognized_sep=', ';;
1451     esac
1452     eval with_$ac_useropt=\$ac_optarg ;;
1453
1454   -without-* | --without-*)
1455     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1456     # Reject names that are not valid shell variable names.
1457     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1458       as_fn_error $? "invalid package name: $ac_useropt"
1459     ac_useropt_orig=$ac_useropt
1460     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1461     case $ac_user_opts in
1462       *"
1463 "with_$ac_useropt"
1464 "*) ;;
1465       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1466          ac_unrecognized_sep=', ';;
1467     esac
1468     eval with_$ac_useropt=no ;;
1469
1470   --x)
1471     # Obsolete; use --with-x.
1472     with_x=yes ;;
1473
1474   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1475   | --x-incl | --x-inc | --x-in | --x-i)
1476     ac_prev=x_includes ;;
1477   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1478   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1479     x_includes=$ac_optarg ;;
1480
1481   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1482   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1483     ac_prev=x_libraries ;;
1484   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1485   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1486     x_libraries=$ac_optarg ;;
1487
1488   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1489 Try \`$0 --help' for more information"
1490     ;;
1491
1492   *=*)
1493     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1494     # Reject names that are not valid shell variable names.
1495     case $ac_envvar in #(
1496       '' | [0-9]* | *[!_$as_cr_alnum]* )
1497       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1498     esac
1499     eval $ac_envvar=\$ac_optarg
1500     export $ac_envvar ;;
1501
1502   *)
1503     # FIXME: should be removed in autoconf 3.0.
1504     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1505     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1506       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1507     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1508     ;;
1509
1510   esac
1511 done
1512
1513 if test -n "$ac_prev"; then
1514   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1515   as_fn_error $? "missing argument to $ac_option"
1516 fi
1517
1518 if test -n "$ac_unrecognized_opts"; then
1519   case $enable_option_checking in
1520     no) ;;
1521     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1522     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1523   esac
1524 fi
1525
1526 # Check all directory arguments for consistency.
1527 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1528                 datadir sysconfdir sharedstatedir localstatedir includedir \
1529                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1530                 libdir localedir mandir
1531 do
1532   eval ac_val=\$$ac_var
1533   # Remove trailing slashes.
1534   case $ac_val in
1535     */ )
1536       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1537       eval $ac_var=\$ac_val;;
1538   esac
1539   # Be sure to have absolute directory names.
1540   case $ac_val in
1541     [\\/$]* | ?:[\\/]* )  continue;;
1542     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1543   esac
1544   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1545 done
1546
1547 # There might be people who depend on the old broken behavior: `$host'
1548 # used to hold the argument of --host etc.
1549 # FIXME: To remove some day.
1550 build=$build_alias
1551 host=$host_alias
1552 target=$target_alias
1553
1554 # FIXME: To remove some day.
1555 if test "x$host_alias" != x; then
1556   if test "x$build_alias" = x; then
1557     cross_compiling=maybe
1558   elif test "x$build_alias" != "x$host_alias"; then
1559     cross_compiling=yes
1560   fi
1561 fi
1562
1563 ac_tool_prefix=
1564 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1565
1566 test "$silent" = yes && exec 6>/dev/null
1567
1568
1569 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1570 ac_ls_di=`ls -di .` &&
1571 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1572   as_fn_error $? "working directory cannot be determined"
1573 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1574   as_fn_error $? "pwd does not report name of working directory"
1575
1576
1577 # Find the source files, if location was not specified.
1578 if test -z "$srcdir"; then
1579   ac_srcdir_defaulted=yes
1580   # Try the directory containing this script, then the parent directory.
1581   ac_confdir=`$as_dirname -- "$as_myself" ||
1582 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1583          X"$as_myself" : 'X\(//\)[^/]' \| \
1584          X"$as_myself" : 'X\(//\)$' \| \
1585          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1586 $as_echo X"$as_myself" |
1587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1588             s//\1/
1589             q
1590           }
1591           /^X\(\/\/\)[^/].*/{
1592             s//\1/
1593             q
1594           }
1595           /^X\(\/\/\)$/{
1596             s//\1/
1597             q
1598           }
1599           /^X\(\/\).*/{
1600             s//\1/
1601             q
1602           }
1603           s/.*/./; q'`
1604   srcdir=$ac_confdir
1605   if test ! -r "$srcdir/$ac_unique_file"; then
1606     srcdir=..
1607   fi
1608 else
1609   ac_srcdir_defaulted=no
1610 fi
1611 if test ! -r "$srcdir/$ac_unique_file"; then
1612   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1613   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1614 fi
1615 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1616 ac_abs_confdir=`(
1617         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1618         pwd)`
1619 # When building in place, set srcdir=.
1620 if test "$ac_abs_confdir" = "$ac_pwd"; then
1621   srcdir=.
1622 fi
1623 # Remove unnecessary trailing slashes from srcdir.
1624 # Double slashes in file names in object file debugging info
1625 # mess up M-x gdb in Emacs.
1626 case $srcdir in
1627 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1628 esac
1629 for ac_var in $ac_precious_vars; do
1630   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1631   eval ac_env_${ac_var}_value=\$${ac_var}
1632   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1633   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1634 done
1635
1636 #
1637 # Report the --help message.
1638 #
1639 if test "$ac_init_help" = "long"; then
1640   # Omit some internal or obsolete options to make the list less imposing.
1641   # This message is too long to be a string in the A/UX 3.1 sh.
1642   cat <<_ACEOF
1643 \`configure' configures ibus 1.5.4 to adapt to many kinds of systems.
1644
1645 Usage: $0 [OPTION]... [VAR=VALUE]...
1646
1647 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1648 VAR=VALUE.  See below for descriptions of some of the useful variables.
1649
1650 Defaults for the options are specified in brackets.
1651
1652 Configuration:
1653   -h, --help              display this help and exit
1654       --help=short        display options specific to this package
1655       --help=recursive    display the short help of all the included packages
1656   -V, --version           display version information and exit
1657   -q, --quiet, --silent   do not print \`checking ...' messages
1658       --cache-file=FILE   cache test results in FILE [disabled]
1659   -C, --config-cache      alias for \`--cache-file=config.cache'
1660   -n, --no-create         do not create output files
1661       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1662
1663 Installation directories:
1664   --prefix=PREFIX         install architecture-independent files in PREFIX
1665                           [$ac_default_prefix]
1666   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1667                           [PREFIX]
1668
1669 By default, \`make install' will install all the files in
1670 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1671 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1672 for instance \`--prefix=\$HOME'.
1673
1674 For better control, use the options below.
1675
1676 Fine tuning of the installation directories:
1677   --bindir=DIR            user executables [EPREFIX/bin]
1678   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1679   --libexecdir=DIR        program executables [EPREFIX/libexec]
1680   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1681   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1682   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1683   --libdir=DIR            object code libraries [EPREFIX/lib]
1684   --includedir=DIR        C header files [PREFIX/include]
1685   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1686   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1687   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1688   --infodir=DIR           info documentation [DATAROOTDIR/info]
1689   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1690   --mandir=DIR            man documentation [DATAROOTDIR/man]
1691   --docdir=DIR            documentation root [DATAROOTDIR/doc/ibus]
1692   --htmldir=DIR           html documentation [DOCDIR]
1693   --dvidir=DIR            dvi documentation [DOCDIR]
1694   --pdfdir=DIR            pdf documentation [DOCDIR]
1695   --psdir=DIR             ps documentation [DOCDIR]
1696 _ACEOF
1697
1698   cat <<\_ACEOF
1699
1700 Program names:
1701   --program-prefix=PREFIX            prepend PREFIX to installed program names
1702   --program-suffix=SUFFIX            append SUFFIX to installed program names
1703   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1704
1705 System types:
1706   --build=BUILD     configure for building on BUILD [guessed]
1707   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1708 _ACEOF
1709 fi
1710
1711 if test -n "$ac_init_help"; then
1712   case $ac_init_help in
1713      short | recursive ) echo "Configuration of ibus 1.5.4:";;
1714    esac
1715   cat <<\_ACEOF
1716
1717 Optional Features:
1718   --disable-option-checking  ignore unrecognized --enable/--with options
1719   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1720   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1721   --enable-silent-rules   less verbose build output (undo: "make V=1")
1722   --disable-silent-rules  verbose build output (undo: "make V=0")
1723   --disable-maintainer-mode
1724                           disable make rules and dependencies not useful (and
1725                           sometimes confusing) to the casual installer
1726   --enable-dependency-tracking
1727                           do not reject slow dependency extractors
1728   --disable-dependency-tracking
1729                           speeds up one-time build
1730   --enable-static[=PKGS]  build static libraries [default=no]
1731   --enable-shared[=PKGS]  build shared libraries [default=yes]
1732   --enable-fast-install[=PKGS]
1733                           optimize for fast installation [default=yes]
1734   --disable-libtool-lock  avoid locking (might break parallel builds)
1735   --disable-nls           do not use Native Language Support
1736   --disable-glibtest      do not try to compile and run a test GLIB program
1737   --disable-tests         Do not run tests
1738   --disable-gtk2          Do not build gtk2 im module
1739   --disable-gtk3          Do not build gtk3 im module
1740   --disable-xim           Do not build xim server
1741   --enable-wayland        Build wayland support
1742   --enable-introspection=[no/auto/yes]
1743                           Enable introspection for this build
1744   --enable-vala=[no/auto/yes]
1745                           build Vala bindings [default=auto]
1746   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1747   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1748   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1749   --enable-gconf          Use GConf code
1750   --disable-schemas-install
1751                           Disable the schemas installation
1752   --enable-memconf        Enable configure base on memory
1753   --disable-dconf         Disable configure base on dconf
1754   --disable-schemas-compile
1755                           Disable regeneration of gschemas.compiled on install
1756   --enable-python-library Use ibus python library
1757   --disable-setup         Do not use setup ui.
1758   --disable-dbus-python-check
1759                           Do not check dbus-python
1760   --disable-key-snooper   Always disable key snooper in gtk im module
1761   --disable-surrounding-text
1762                           Enable surrounding-text support
1763   --disable-ui            Disable ibus default user interface
1764   --disable-engine        Disable ibus simple engine
1765   --disable-libnotify     Disable to link libnotify
1766
1767 Optional Packages:
1768   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1769   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1770   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1771                           both]
1772   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1773   --with-sysroot=DIR Search for dependent libraries within DIR
1774                         (or the compiler's sysroot if not specified).
1775   --with-html-dir=PATH    path to installed docs
1776   --with-gconf-source=sourceaddress
1777                           Config database for installing schema files.
1778   --with-gconf-schema-file-dir=dir
1779                           Directory for installing schema files.
1780   --with-gtk2-im-module-dir=DIR
1781                           Select gtk2 immodule dir
1782   --with-gtk3-im-module-dir=DIR
1783                           Select gtk3 immodule dir
1784   --with-no-snooper-apps=regex1,regex2
1785                           Does not enable keyboard snooper in those
1786                           applications (like: .*chrome.*,firefox.*)
1787   --with-panel-icon-keyboard=icon_name
1788                           Set the default panel icon (default:
1789                           "ibus-keyboard")
1790
1791 Some influential environment variables:
1792   CC          C compiler command
1793   CFLAGS      C compiler flags
1794   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1795               nonstandard directory <lib dir>
1796   LIBS        libraries to pass to the linker, e.g. -l<library>
1797   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1798               you have headers in a nonstandard directory <include dir>
1799   CPP         C preprocessor
1800   PKG_CONFIG  path to pkg-config utility
1801   PKG_CONFIG_PATH
1802               directories to add to pkg-config's search path
1803   PKG_CONFIG_LIBDIR
1804               path overriding pkg-config's built-in search path
1805   GLIB2_CFLAGS
1806               C compiler flags for GLIB2, overriding pkg-config
1807   GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
1808   GOBJECT2_CFLAGS
1809               C compiler flags for GOBJECT2, overriding pkg-config
1810   GOBJECT2_LIBS
1811               linker flags for GOBJECT2, overriding pkg-config
1812   GIO2_CFLAGS C compiler flags for GIO2, overriding pkg-config
1813   GIO2_LIBS   linker flags for GIO2, overriding pkg-config
1814   GTHREAD2_CFLAGS
1815               C compiler flags for GTHREAD2, overriding pkg-config
1816   GTHREAD2_LIBS
1817               linker flags for GTHREAD2, overriding pkg-config
1818   GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1819   GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1820   GDK2_CFLAGS C compiler flags for GDK2, overriding pkg-config
1821   GDK2_LIBS   linker flags for GDK2, overriding pkg-config
1822   GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1823   GTK3_LIBS   linker flags for GTK3, overriding pkg-config
1824   GDK3_CFLAGS C compiler flags for GDK3, overriding pkg-config
1825   GDK3_LIBS   linker flags for GDK3, overriding pkg-config
1826   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1827   X11_LIBS    linker flags for X11, overriding pkg-config
1828   WAYLAND_CFLAGS
1829               C compiler flags for WAYLAND, overriding pkg-config
1830   WAYLAND_LIBS
1831               linker flags for WAYLAND, overriding pkg-config
1832   GTKDOC_DEPS_CFLAGS
1833               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1834   GTKDOC_DEPS_LIBS
1835               linker flags for GTKDOC_DEPS, overriding pkg-config
1836   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1837   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1838   GCONF_CFLAGS
1839               C compiler flags for GCONF, overriding pkg-config
1840   GCONF_LIBS  linker flags for GCONF, overriding pkg-config
1841   DCONF_CFLAGS
1842               C compiler flags for DCONF, overriding pkg-config
1843   DCONF_LIBS  linker flags for DCONF, overriding pkg-config
1844   PYTHON      the Python interpreter
1845   PYTHON_CFLAGS
1846               C compiler flags for PYTHON, overriding pkg-config
1847   PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1848   DBUS_PYTHON_CFLAGS
1849               C compiler flags for DBUS_PYTHON, overriding pkg-config
1850   DBUS_PYTHON_LIBS
1851               linker flags for DBUS_PYTHON, overriding pkg-config
1852   LIBNOTIFY_CFLAGS
1853               C compiler flags for LIBNOTIFY, overriding pkg-config
1854   LIBNOTIFY_LIBS
1855               linker flags for LIBNOTIFY, overriding pkg-config
1856   ISOCODES_CFLAGS
1857               C compiler flags for ISOCODES, overriding pkg-config
1858   ISOCODES_LIBS
1859               linker flags for ISOCODES, overriding pkg-config
1860
1861 Use these variables to override the choices made by `configure' or to help
1862 it to find libraries and programs with nonstandard names/locations.
1863
1864 Report bugs to <http://code.google.com/p/ibus/issues/entry>.
1865 _ACEOF
1866 ac_status=$?
1867 fi
1868
1869 if test "$ac_init_help" = "recursive"; then
1870   # If there are subdirs, report their specific --help.
1871   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1872     test -d "$ac_dir" ||
1873       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1874       continue
1875     ac_builddir=.
1876
1877 case "$ac_dir" in
1878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879 *)
1880   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1881   # A ".." for each directory in $ac_dir_suffix.
1882   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1883   case $ac_top_builddir_sub in
1884   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1886   esac ;;
1887 esac
1888 ac_abs_top_builddir=$ac_pwd
1889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1890 # for backward compatibility:
1891 ac_top_builddir=$ac_top_build_prefix
1892
1893 case $srcdir in
1894   .)  # We are building in place.
1895     ac_srcdir=.
1896     ac_top_srcdir=$ac_top_builddir_sub
1897     ac_abs_top_srcdir=$ac_pwd ;;
1898   [\\/]* | ?:[\\/]* )  # Absolute name.
1899     ac_srcdir=$srcdir$ac_dir_suffix;
1900     ac_top_srcdir=$srcdir
1901     ac_abs_top_srcdir=$srcdir ;;
1902   *) # Relative name.
1903     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1904     ac_top_srcdir=$ac_top_build_prefix$srcdir
1905     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1906 esac
1907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1908
1909     cd "$ac_dir" || { ac_status=$?; continue; }
1910     # Check for guested configure.
1911     if test -f "$ac_srcdir/configure.gnu"; then
1912       echo &&
1913       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1914     elif test -f "$ac_srcdir/configure"; then
1915       echo &&
1916       $SHELL "$ac_srcdir/configure" --help=recursive
1917     else
1918       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1919     fi || ac_status=$?
1920     cd "$ac_pwd" || { ac_status=$?; break; }
1921   done
1922 fi
1923
1924 test -n "$ac_init_help" && exit $ac_status
1925 if $ac_init_version; then
1926   cat <<\_ACEOF
1927 ibus configure 1.5.4
1928 generated by GNU Autoconf 2.69
1929
1930 Copyright (C) 2012 Free Software Foundation, Inc.
1931 This configure script is free software; the Free Software Foundation
1932 gives unlimited permission to copy, distribute and modify it.
1933 _ACEOF
1934   exit
1935 fi
1936
1937 ## ------------------------ ##
1938 ## Autoconf initialization. ##
1939 ## ------------------------ ##
1940
1941 # ac_fn_c_try_compile LINENO
1942 # --------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_compile ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   rm -f conftest.$ac_objext
1948   if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_compile") 2>conftest.err
1956   ac_status=$?
1957   if test -s conftest.err; then
1958     grep -v '^ *+' conftest.err >conftest.er1
1959     cat conftest.er1 >&5
1960     mv -f conftest.er1 conftest.err
1961   fi
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; } && {
1964          test -z "$ac_c_werror_flag" ||
1965          test ! -s conftest.err
1966        } && test -s conftest.$ac_objext; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972         ac_retval=1
1973 fi
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_c_try_compile
1978
1979 # ac_fn_c_try_cpp LINENO
1980 # ----------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_cpp ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993   ac_status=$?
1994   if test -s conftest.err; then
1995     grep -v '^ *+' conftest.err >conftest.er1
1996     cat conftest.er1 >&5
1997     mv -f conftest.er1 conftest.err
1998   fi
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } > conftest.i && {
2001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002          test ! -s conftest.err
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009     ac_retval=1
2010 fi
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_cpp
2015
2016 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019 # the include files in INCLUDES and setting the cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_header_mongrel ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   if eval \${$3+:} false; then :
2025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028   $as_echo_n "(cached) " >&6
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 else
2034   # Is the header compilable?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036 $as_echo_n "checking $2 usability... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043   ac_header_compiler=yes
2044 else
2045   ac_header_compiler=no
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049 $as_echo "$ac_header_compiler" >&6; }
2050
2051 # Is the header present?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053 $as_echo_n "checking $2 presence... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_cpp "$LINENO"; then :
2059   ac_header_preproc=yes
2060 else
2061   ac_header_preproc=no
2062 fi
2063 rm -f conftest.err conftest.i conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065 $as_echo "$ac_header_preproc" >&6; }
2066
2067 # So?  What about this header?
2068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069   yes:no: )
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074     ;;
2075   no:yes:* )
2076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2079 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2083 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ( $as_echo "## --------------------------------------------------------- ##
2087 ## Report this to http://code.google.com/p/ibus/issues/entry ##
2088 ## --------------------------------------------------------- ##"
2089      ) | sed "s/^/$as_me: WARNING:     /" >&2
2090     ;;
2091 esac
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095   $as_echo_n "(cached) " >&6
2096 else
2097   eval "$3=\$ac_header_compiler"
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 fi
2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_check_header_mongrel
2106
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2111 ac_fn_c_try_run ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>&5
2122   ac_status=$?
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125   { { case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131   (eval "$ac_try") 2>&5
2132   ac_status=$?
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; }; }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: program exited with status $ac_status" >&5
2138        $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141        ac_retval=$ac_status
2142 fi
2143   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_run
2148
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   eval "$3=yes"
2168 else
2169   eval "$3=no"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_header_compile
2179
2180 # ac_fn_c_try_link LINENO
2181 # -----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2183 ac_fn_c_try_link ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   rm -f conftest.$ac_objext conftest$ac_exeext
2187   if { { ac_try="$ac_link"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_link") 2>conftest.err
2195   ac_status=$?
2196   if test -s conftest.err; then
2197     grep -v '^ *+' conftest.err >conftest.er1
2198     cat conftest.er1 >&5
2199     mv -f conftest.er1 conftest.err
2200   fi
2201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202   test $ac_status = 0; } && {
2203          test -z "$ac_c_werror_flag" ||
2204          test ! -s conftest.err
2205        } && test -s conftest$ac_exeext && {
2206          test "$cross_compiling" = yes ||
2207          test -x conftest$ac_exeext
2208        }; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214         ac_retval=1
2215 fi
2216   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218   # interfere with the next link command; also delete a directory that is
2219   # left behind by Apple's compiler.  We do this before executing the actions.
2220   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222   as_fn_set_status $ac_retval
2223
2224 } # ac_fn_c_try_link
2225
2226 # ac_fn_c_check_func LINENO FUNC VAR
2227 # ----------------------------------
2228 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2229 ac_fn_c_check_func ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2241 #define $2 innocuous_$2
2242
2243 /* System header to define __stub macros and hopefully few prototypes,
2244     which can conflict with char $2 (); below.
2245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2246     <limits.h> exists even on freestanding compilers.  */
2247
2248 #ifdef __STDC__
2249 # include <limits.h>
2250 #else
2251 # include <assert.h>
2252 #endif
2253
2254 #undef $2
2255
2256 /* Override any GCC internal prototype to avoid an error.
2257    Use char because int might match the return type of a GCC
2258    builtin and then its argument prototype would still apply.  */
2259 #ifdef __cplusplus
2260 extern "C"
2261 #endif
2262 char $2 ();
2263 /* The GNU C library defines this for functions which it implements
2264     to always fail with ENOSYS.  Some functions are actually named
2265     something starting with __ and the normal name is an alias.  */
2266 #if defined __stub_$2 || defined __stub___$2
2267 choke me
2268 #endif
2269
2270 int
2271 main ()
2272 {
2273 return $2 ();
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_link "$LINENO"; then :
2279   eval "$3=yes"
2280 else
2281   eval "$3=no"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext \
2284     conftest$ac_exeext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_c_check_func
2292 cat >config.log <<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2295
2296 It was created by ibus $as_me 1.5.4, which was
2297 generated by GNU Autoconf 2.69.  Invocation command line was
2298
2299   $ $0 $@
2300
2301 _ACEOF
2302 exec 5>>config.log
2303 {
2304 cat <<_ASUNAME
2305 ## --------- ##
2306 ## Platform. ##
2307 ## --------- ##
2308
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2314
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2317
2318 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2319 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2322 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2323 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2324 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2325
2326 _ASUNAME
2327
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333     $as_echo "PATH: $as_dir"
2334   done
2335 IFS=$as_save_IFS
2336
2337 } >&5
2338
2339 cat >&5 <<_ACEOF
2340
2341
2342 ## ----------- ##
2343 ## Core tests. ##
2344 ## ----------- ##
2345
2346 _ACEOF
2347
2348
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2354 ac_configure_args=
2355 ac_configure_args0=
2356 ac_configure_args1=
2357 ac_must_keep_next=false
2358 for ac_pass in 1 2
2359 do
2360   for ac_arg
2361   do
2362     case $ac_arg in
2363     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365     | -silent | --silent | --silen | --sile | --sil)
2366       continue ;;
2367     *\'*)
2368       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369     esac
2370     case $ac_pass in
2371     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2372     2)
2373       as_fn_append ac_configure_args1 " '$ac_arg'"
2374       if test $ac_must_keep_next = true; then
2375         ac_must_keep_next=false # Got value, back to normal.
2376       else
2377         case $ac_arg in
2378           *=* | --config-cache | -C | -disable-* | --disable-* \
2379           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381           | -with-* | --with-* | -without-* | --without-* | --x)
2382             case "$ac_configure_args0 " in
2383               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384             esac
2385             ;;
2386           -* ) ac_must_keep_next=true ;;
2387         esac
2388       fi
2389       as_fn_append ac_configure_args " '$ac_arg'"
2390       ;;
2391     esac
2392   done
2393 done
2394 { ac_configure_args0=; unset ac_configure_args0;}
2395 { ac_configure_args1=; unset ac_configure_args1;}
2396
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log.  We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403   # Save into config.log some information that might help in debugging.
2404   {
2405     echo
2406
2407     $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2410     echo
2411     # The following way of writing the cache mishandles newlines in values,
2412 (
2413   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414     eval ac_val=\$$ac_var
2415     case $ac_val in #(
2416     *${as_nl}*)
2417       case $ac_var in #(
2418       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420       esac
2421       case $ac_var in #(
2422       _ | IFS | as_nl) ;; #(
2423       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424       *) { eval $ac_var=; unset $ac_var;} ;;
2425       esac ;;
2426     esac
2427   done
2428   (set) 2>&1 |
2429     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430     *${as_nl}ac_space=\ *)
2431       sed -n \
2432         "s/'\''/'\''\\\\'\'''\''/g;
2433           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434       ;; #(
2435     *)
2436       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2437       ;;
2438     esac |
2439     sort
2440 )
2441     echo
2442
2443     $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2446     echo
2447     for ac_var in $ac_subst_vars
2448     do
2449       eval ac_val=\$$ac_var
2450       case $ac_val in
2451       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452       esac
2453       $as_echo "$ac_var='\''$ac_val'\''"
2454     done | sort
2455     echo
2456
2457     if test -n "$ac_subst_files"; then
2458       $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2461       echo
2462       for ac_var in $ac_subst_files
2463       do
2464         eval ac_val=\$$ac_var
2465         case $ac_val in
2466         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467         esac
2468         $as_echo "$ac_var='\''$ac_val'\''"
2469       done | sort
2470       echo
2471     fi
2472
2473     if test -s confdefs.h; then
2474       $as_echo "## ----------- ##
2475 ## confdefs.h. ##
2476 ## ----------- ##"
2477       echo
2478       cat confdefs.h
2479       echo
2480     fi
2481     test "$ac_signal" != 0 &&
2482       $as_echo "$as_me: caught signal $ac_signal"
2483     $as_echo "$as_me: exit $exit_status"
2484   } >&5
2485   rm -f core *.core core.conftest.* &&
2486     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487     exit $exit_status
2488 ' 0
2489 for ac_signal in 1 2 13 15; do
2490   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 done
2492 ac_signal=0
2493
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2496
2497 $as_echo "/* confdefs.h */" > confdefs.h
2498
2499 # Predefined preprocessor variables.
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2523 _ACEOF
2524
2525
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2528 ac_site_file1=NONE
2529 ac_site_file2=NONE
2530 if test -n "$CONFIG_SITE"; then
2531   # We do not want a PATH search for config.site.
2532   case $CONFIG_SITE in #((
2533     -*)  ac_site_file1=./$CONFIG_SITE;;
2534     */*) ac_site_file1=$CONFIG_SITE;;
2535     *)   ac_site_file1=./$CONFIG_SITE;;
2536   esac
2537 elif test "x$prefix" != xNONE; then
2538   ac_site_file1=$prefix/share/config.site
2539   ac_site_file2=$prefix/etc/config.site
2540 else
2541   ac_site_file1=$ac_default_prefix/share/config.site
2542   ac_site_file2=$ac_default_prefix/etc/config.site
2543 fi
2544 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2545 do
2546   test "x$ac_site_file" = xNONE && continue
2547   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550     sed 's/^/| /' "$ac_site_file" >&5
2551     . "$ac_site_file" \
2552       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2556   fi
2557 done
2558
2559 if test -r "$cache_file"; then
2560   # Some versions of bash will fail to source /dev/null (special files
2561   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2562   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2563     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2565     case $cache_file in
2566       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2567       *)                      . "./$cache_file";;
2568     esac
2569   fi
2570 else
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2573   >$cache_file
2574 fi
2575
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581   eval ac_new_set=\$ac_env_${ac_var}_set
2582   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583   eval ac_new_val=\$ac_env_${ac_var}_value
2584   case $ac_old_set,$ac_new_set in
2585     set,)
2586       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588       ac_cache_corrupted=: ;;
2589     ,set)
2590       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592       ac_cache_corrupted=: ;;
2593     ,);;
2594     *)
2595       if test "x$ac_old_val" != "x$ac_new_val"; then
2596         # differences in whitespace do not lead to failure.
2597         ac_old_val_w=`echo x $ac_old_val`
2598         ac_new_val_w=`echo x $ac_new_val`
2599         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602           ac_cache_corrupted=:
2603         else
2604           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606           eval $ac_var=\$ac_old_val
2607         fi
2608         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2609 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2610         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2611 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2612       fi;;
2613   esac
2614   # Pass precious variables to config.status.
2615   if test "$ac_new_set" = set; then
2616     case $ac_new_val in
2617     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618     *) ac_arg=$ac_var=$ac_new_val ;;
2619     esac
2620     case " $ac_configure_args " in
2621       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2622       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623     esac
2624   fi
2625 done
2626 if $ac_cache_corrupted; then
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2631   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2632 fi
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
2643
2644
2645 ac_config_headers="$ac_config_headers config.h"
2646
2647
2648
2649
2650
2651
2652 # Required versions of other packages.
2653
2654
2655 # VALA_TARGET_GLIB_VERSION is used by valac --ccode --target-glib .
2656 # VALA_TARGET_GLIB_VERSION and glib_required_version will be different
2657 # in the future.
2658 VALA_TARGET_GLIB_VERSION=2.32
2659
2660
2661 # Init automake.
2662 am__api_version='1.13'
2663
2664 ac_aux_dir=
2665 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2666   if test -f "$ac_dir/install-sh"; then
2667     ac_aux_dir=$ac_dir
2668     ac_install_sh="$ac_aux_dir/install-sh -c"
2669     break
2670   elif test -f "$ac_dir/install.sh"; then
2671     ac_aux_dir=$ac_dir
2672     ac_install_sh="$ac_aux_dir/install.sh -c"
2673     break
2674   elif test -f "$ac_dir/shtool"; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/shtool install -c"
2677     break
2678   fi
2679 done
2680 if test -z "$ac_aux_dir"; then
2681   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2682 fi
2683
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2691
2692
2693 # Find a good install program.  We prefer a C program (faster),
2694 # so one script is as good as another.  But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2699 # AIX /bin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # OS/2's system install, which has a completely different semantic
2705 # ./install, which can be erroneously created by make from ./install.sh.
2706 # Reject install programs that cannot install multiple files.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2709 if test -z "$INSTALL"; then
2710 if ${ac_cv_path_install+:} false; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718     # Account for people who put trailing slashes in PATH elements.
2719 case $as_dir/ in #((
2720   ./ | .// | /[cC]/* | \
2721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2723   /usr/ucb/* ) ;;
2724   *)
2725     # OSF1 and SCO ODT 3.0 have their own names for install.
2726     # Don't use installbsd from OSF since it installs stuff as root
2727     # by default.
2728     for ac_prog in ginstall scoinst install; do
2729       for ac_exec_ext in '' $ac_executable_extensions; do
2730         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2731           if test $ac_prog = install &&
2732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733             # AIX install.  It has an incompatible calling convention.
2734             :
2735           elif test $ac_prog = install &&
2736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737             # program-specific install script used by HP pwplus--don't use.
2738             :
2739           else
2740             rm -rf conftest.one conftest.two conftest.dir
2741             echo one > conftest.one
2742             echo two > conftest.two
2743             mkdir conftest.dir
2744             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745               test -s conftest.one && test -s conftest.two &&
2746               test -s conftest.dir/conftest.one &&
2747               test -s conftest.dir/conftest.two
2748             then
2749               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750               break 3
2751             fi
2752           fi
2753         fi
2754       done
2755     done
2756     ;;
2757 esac
2758
2759   done
2760 IFS=$as_save_IFS
2761
2762 rm -rf conftest.one conftest.two conftest.dir
2763
2764 fi
2765   if test "${ac_cv_path_install+set}" = set; then
2766     INSTALL=$ac_cv_path_install
2767   else
2768     # As a last resort, use the slow shell script.  Don't cache a
2769     # value for INSTALL within a source directory, because that will
2770     # break other packages using the cache if that directory is
2771     # removed, or if the value is a relative name.
2772     INSTALL=$ac_install_sh
2773   fi
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776 $as_echo "$INSTALL" >&6; }
2777
2778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779 # It thinks the first close brace ends the variable substitution.
2780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781
2782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2783
2784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787 $as_echo_n "checking whether build environment is sane... " >&6; }
2788 # Reject unsafe characters in $srcdir or the absolute working directory
2789 # name.  Accept space and tab only in the latter.
2790 am_lf='
2791 '
2792 case `pwd` in
2793   *[\\\"\#\$\&\'\`$am_lf]*)
2794     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2795 esac
2796 case $srcdir in
2797   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2798     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2799 esac
2800
2801 # Do 'set' in a subshell so we don't clobber the current shell's
2802 # arguments.  Must try -L first in case configure is actually a
2803 # symlink; some systems play weird games with the mod time of symlinks
2804 # (eg FreeBSD returns the mod time of the symlink's containing
2805 # directory).
2806 if (
2807    am_has_slept=no
2808    for am_try in 1 2; do
2809      echo "timestamp, slept: $am_has_slept" > conftest.file
2810      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811      if test "$*" = "X"; then
2812         # -L didn't work.
2813         set X `ls -t "$srcdir/configure" conftest.file`
2814      fi
2815      if test "$*" != "X $srcdir/configure conftest.file" \
2816         && test "$*" != "X conftest.file $srcdir/configure"; then
2817
2818         # If neither matched, then we have a broken ls.  This can happen
2819         # if, for instance, CONFIG_SHELL is bash and it inherits a
2820         # broken ls alias from the environment.  This has actually
2821         # happened.  Such a system could not be considered "sane".
2822         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2823   alias in your environment" "$LINENO" 5
2824      fi
2825      if test "$2" = conftest.file || test $am_try -eq 2; then
2826        break
2827      fi
2828      # Just in case.
2829      sleep 1
2830      am_has_slept=yes
2831    done
2832    test "$2" = conftest.file
2833    )
2834 then
2835    # Ok.
2836    :
2837 else
2838    as_fn_error $? "newly created file is older than distributed files!
2839 Check your system clock" "$LINENO" 5
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 # If we didn't sleep, we still need to ensure time stamps of config.status and
2844 # generated files are strictly newer.
2845 am_sleep_pid=
2846 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2847   ( sleep 1 ) &
2848   am_sleep_pid=$!
2849 fi
2850
2851 rm -f conftest.file
2852
2853 test "$program_prefix" != NONE &&
2854   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855 # Use a double $ so make ignores it.
2856 test "$program_suffix" != NONE &&
2857   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858 # Double any \ or $.
2859 # By default was `s,x,x', remove it if useless.
2860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862
2863 # expand $ac_aux_dir to an absolute path
2864 am_aux_dir=`cd $ac_aux_dir && pwd`
2865
2866 if test x"${MISSING+set}" != xset; then
2867   case $am_aux_dir in
2868   *\ * | *\     *)
2869     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870   *)
2871     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872   esac
2873 fi
2874 # Use eval to expand $SHELL
2875 if eval "$MISSING --is-lightweight"; then
2876   am_missing_run="$MISSING "
2877 else
2878   am_missing_run=
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2881 fi
2882
2883 if test x"${install_sh}" != xset; then
2884   case $am_aux_dir in
2885   *\ * | *\     *)
2886     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887   *)
2888     install_sh="\${SHELL} $am_aux_dir/install-sh"
2889   esac
2890 fi
2891
2892 # Installed binaries are usually stripped using 'strip' when the user
2893 # run "make install-strip".  However 'strip' might not be the right
2894 # tool to use in cross-compilation environments, therefore Automake
2895 # will honor the 'STRIP' environment variable to overrule this program.
2896 if test "$cross_compiling" != no; then
2897   if test -n "$ac_tool_prefix"; then
2898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}strip; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_STRIP+:} false; then :
2903   $as_echo_n "(cached) " >&6
2904 else
2905   if test -n "$STRIP"; then
2906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913     for ac_exec_ext in '' $ac_executable_extensions; do
2914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917     break 2
2918   fi
2919 done
2920   done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 STRIP=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 $as_echo "$STRIP" >&6; }
2929 else
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$ac_cv_prog_STRIP"; then
2937   ac_ct_STRIP=$STRIP
2938   # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$ac_ct_STRIP"; then
2946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_ac_ct_STRIP="strip"
2956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966 if test -n "$ac_ct_STRIP"; then
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968 $as_echo "$ac_ct_STRIP" >&6; }
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974   if test "x$ac_ct_STRIP" = x; then
2975     STRIP=":"
2976   else
2977     case $cross_compiling:$ac_tool_warned in
2978 yes:)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2982 esac
2983     STRIP=$ac_ct_STRIP
2984   fi
2985 else
2986   STRIP="$ac_cv_prog_STRIP"
2987 fi
2988
2989 fi
2990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994 if test -z "$MKDIR_P"; then
2995   if ${ac_cv_path_mkdir+:} false; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_prog in mkdir gmkdir; do
3004          for ac_exec_ext in '' $ac_executable_extensions; do
3005            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3006            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007              'mkdir (GNU coreutils) '* | \
3008              'mkdir (coreutils) '* | \
3009              'mkdir (fileutils) '4.1*)
3010                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011                break 3;;
3012            esac
3013          done
3014        done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019
3020   test -d ./--version && rmdir ./--version
3021   if test "${ac_cv_path_mkdir+set}" = set; then
3022     MKDIR_P="$ac_cv_path_mkdir -p"
3023   else
3024     # As a last resort, use the slow shell script.  Don't cache a
3025     # value for MKDIR_P within a source directory, because that will
3026     # break other packages using the cache if that directory is
3027     # removed, or if the value is a relative name.
3028     MKDIR_P="$ac_install_sh -d"
3029   fi
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 $as_echo "$MKDIR_P" >&6; }
3033
3034 for ac_prog in gawk mawk nawk awk
3035 do
3036   # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_AWK+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$AWK"; then
3044   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053     ac_cv_prog_AWK="$ac_prog"
3054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058   done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 AWK=$ac_cv_prog_AWK
3064 if test -n "$AWK"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 $as_echo "$AWK" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073   test -n "$AWK" && break
3074 done
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 set x ${MAKE-make}
3079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   cat >conftest.make <<\_ACEOF
3084 SHELL = /bin/sh
3085 all:
3086         @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 _ACEOF
3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090   *@@@%%%=?*=@@@%%%*)
3091     eval ac_cv_prog_make_${ac_make}_set=yes;;
3092   *)
3093     eval ac_cv_prog_make_${ac_make}_set=no;;
3094 esac
3095 rm -f conftest.make
3096 fi
3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100   SET_MAKE=
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104   SET_MAKE="MAKE=${MAKE-make}"
3105 fi
3106
3107 rm -rf .tst 2>/dev/null
3108 mkdir .tst 2>/dev/null
3109 if test -d .tst; then
3110   am__leading_dot=.
3111 else
3112   am__leading_dot=_
3113 fi
3114 rmdir .tst 2>/dev/null
3115
3116 # Check whether --enable-silent-rules was given.
3117 if test "${enable_silent_rules+set}" = set; then :
3118   enableval=$enable_silent_rules;
3119 fi
3120
3121 case $enable_silent_rules in # (((
3122   yes) AM_DEFAULT_VERBOSITY=0;;
3123    no) AM_DEFAULT_VERBOSITY=1;;
3124     *) AM_DEFAULT_VERBOSITY=1;;
3125 esac
3126 am_make=${MAKE-make}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3129 if ${am_cv_make_support_nested_variables+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if $as_echo 'TRUE=$(BAR$(V))
3133 BAR0=false
3134 BAR1=true
3135 V=1
3136 am__doit:
3137         @$(TRUE)
3138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139   am_cv_make_support_nested_variables=yes
3140 else
3141   am_cv_make_support_nested_variables=no
3142 fi
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3146 if test $am_cv_make_support_nested_variables = yes; then
3147     AM_V='$(V)'
3148   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 else
3150   AM_V=$AM_DEFAULT_VERBOSITY
3151   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3152 fi
3153 AM_BACKSLASH='\'
3154
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157   # is not polluted with repeated "-I."
3158   am__isrc=' -I$(srcdir)'
3159   # test to see if srcdir already configured
3160   if test -f $srcdir/config.status; then
3161     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162   fi
3163 fi
3164
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167   if (cygpath --version) >/dev/null 2>/dev/null; then
3168     CYGPATH_W='cygpath -w'
3169   else
3170     CYGPATH_W=echo
3171   fi
3172 fi
3173
3174
3175 # Define the identity of the package.
3176  PACKAGE='ibus'
3177  VERSION='1.5.4'
3178
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE "$PACKAGE"
3182 _ACEOF
3183
3184
3185 cat >>confdefs.h <<_ACEOF
3186 #define VERSION "$VERSION"
3187 _ACEOF
3188
3189 # Some tools Automake needs.
3190
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192
3193
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3195
3196
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198
3199
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3201
3202
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204
3205 # For better backward compatibility.  To be removed once Automake 1.9.x
3206 # dies out for good.  For more background, see:
3207 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3208 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3209 mkdir_p='$(MKDIR_P)'
3210
3211 # We need awk for the "check" target.  The system "awk" is bad on
3212 # some platforms.
3213 # Always define AMTAR for backward compatibility.  Yes, it's still used
3214 # in the wild :-(  We should find a proper way to deprecate it ...
3215 AMTAR='$${TAR-tar}'
3216
3217
3218 # We'll loop over all known methods to create a tar archive until one works.
3219 _am_tools='gnutar  pax cpio none'
3220
3221 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3222
3223
3224
3225
3226
3227
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3230 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3231     # Check whether --enable-maintainer-mode was given.
3232 if test "${enable_maintainer_mode+set}" = set; then :
3233   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3234 else
3235   USE_MAINTAINER_MODE=yes
3236 fi
3237
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3239 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3240    if test $USE_MAINTAINER_MODE = yes; then
3241   MAINTAINER_MODE_TRUE=
3242   MAINTAINER_MODE_FALSE='#'
3243 else
3244   MAINTAINER_MODE_TRUE='#'
3245   MAINTAINER_MODE_FALSE=
3246 fi
3247
3248   MAINT=$MAINTAINER_MODE_TRUE
3249
3250
3251 DEPDIR="${am__leading_dot}deps"
3252
3253 ac_config_commands="$ac_config_commands depfiles"
3254
3255
3256 am_make=${MAKE-make}
3257 cat > confinc << 'END'
3258 am__doit:
3259         @echo this is the am__doit target
3260 .PHONY: am__doit
3261 END
3262 # If we don't find an include directive, just comment out the code.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3264 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3265 am__include="#"
3266 am__quote=
3267 _am_result=none
3268 # First try GNU make style include.
3269 echo "include confinc" > confmf
3270 # Ignore all kinds of additional output from 'make'.
3271 case `$am_make -s -f confmf 2> /dev/null` in #(
3272 *the\ am__doit\ target*)
3273   am__include=include
3274   am__quote=
3275   _am_result=GNU
3276   ;;
3277 esac
3278 # Now try BSD make style include.
3279 if test "$am__include" = "#"; then
3280    echo '.include "confinc"' > confmf
3281    case `$am_make -s -f confmf 2> /dev/null` in #(
3282    *the\ am__doit\ target*)
3283      am__include=.include
3284      am__quote="\""
3285      _am_result=BSD
3286      ;;
3287    esac
3288 fi
3289
3290
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3292 $as_echo "$_am_result" >&6; }
3293 rm -f confinc confmf
3294
3295 # Check whether --enable-dependency-tracking was given.
3296 if test "${enable_dependency_tracking+set}" = set; then :
3297   enableval=$enable_dependency_tracking;
3298 fi
3299
3300 if test "x$enable_dependency_tracking" != xno; then
3301   am_depcomp="$ac_aux_dir/depcomp"
3302   AMDEPBACKSLASH='\'
3303   am__nodep='_no'
3304 fi
3305  if test "x$enable_dependency_tracking" != xno; then
3306   AMDEP_TRUE=
3307   AMDEP_FALSE='#'
3308 else
3309   AMDEP_TRUE='#'
3310   AMDEP_FALSE=
3311 fi
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359   ac_ct_CC=$CC
3360   # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   if test -n "$ac_ct_CC"; then
3368   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377     ac_cv_prog_ac_ct_CC="gcc"
3378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382   done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396   if test "x$ac_ct_CC" = x; then
3397     CC=""
3398   else
3399     case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405     CC=$ac_ct_CC
3406   fi
3407 else
3408   CC="$ac_cv_prog_CC"
3409 fi
3410
3411 if test -z "$CC"; then
3412           if test -n "$ac_tool_prefix"; then
3413     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$CC"; then
3421   ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_CC="${ac_tool_prefix}cc"
3431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450   fi
3451 fi
3452 if test -z "$CC"; then
3453   # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$CC"; then
3461   ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463   ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472        ac_prog_rejected=yes
3473        continue
3474      fi
3475     ac_cv_prog_CC="cc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 if test $ac_prog_rejected = yes; then
3484   # We found a bogon in the path, so make sure we never use it.
3485   set dummy $ac_cv_prog_CC
3486   shift
3487   if test $# != 0; then
3488     # We chose a different compiler from the bogus one.
3489     # However, it has the same basename, so the bogon will be chosen
3490     # first if we set CC to just the basename; use the full file name.
3491     shift
3492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493   fi
3494 fi
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$CC"; then
3509   if test -n "$ac_tool_prefix"; then
3510   for ac_prog in cl.exe
3511   do
3512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   if test -n "$CC"; then
3520   ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549     test -n "$CC" && break
3550   done
3551 fi
3552 if test -z "$CC"; then
3553   ac_ct_CC=$CC
3554   for ac_prog in cl.exe
3555 do
3556   # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   if test -n "$ac_ct_CC"; then
3564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571     for ac_exec_ext in '' $ac_executable_extensions; do
3572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_prog_ac_ct_CC="$ac_prog"
3574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578   done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593   test -n "$ac_ct_CC" && break
3594 done
3595
3596   if test "x$ac_ct_CC" = x; then
3597     CC=""
3598   else
3599     case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605     CC=$ac_ct_CC
3606   fi
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details" "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622   { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630   ac_status=$?
3631   if test -s conftest.err; then
3632     sed '10a\
3633 ... rest of stderr output deleted ...
3634          10q' conftest.err >conftest.er1
3635     cat conftest.er1 >&5
3636   fi
3637   rm -f conftest.er1 conftest.err
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }
3640 done
3641
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644
3645 int
3646 main ()
3647 {
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3667 do
3668   case $ac_file in
3669     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671   esac
3672 done
3673 rm -f $ac_rmfiles
3674
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_link_default") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; then :
3686   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3690 # Autoconf.
3691 for ac_file in $ac_files ''
3692 do
3693   test -f "$ac_file" || continue
3694   case $ac_file in
3695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696         ;;
3697     [ab].out )
3698         # We found the default executable, but exeext='' is most
3699         # certainly right.
3700         break;;
3701     *.* )
3702         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703         then :; else
3704            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705         fi
3706         # We set ac_cv_exeext here because the later test for it is not
3707         # safe: cross compilers may not add the suffix if given an `-o'
3708         # argument, so we may need to know it at that point already.
3709         # Even if this section looks crufty: it has the advantage of
3710         # actually working.
3711         break;;
3712     * )
3713         break;;
3714   esac
3715 done
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717
3718 else
3719   ac_file=''
3720 fi
3721 if test -z "$ac_file"; then :
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error 77 "C compiler cannot create executables
3730 See \`config.log' for more details" "$LINENO" 5; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733 $as_echo "yes" >&6; }
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3736 $as_echo_n "checking for C compiler default output file name... " >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3738 $as_echo "$ac_file" >&6; }
3739 ac_exeext=$ac_cv_exeext
3740
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_link") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }; then :
3756   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe'), while it won't with
3759 # `rm'.
3760 for ac_file in conftest.exe conftest conftest.*; do
3761   test -f "$ac_file" || continue
3762   case $ac_file in
3763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765           break;;
3766     * ) break;;
3767   esac
3768 done
3769 else
3770   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details" "$LINENO" 5; }
3774 fi
3775 rm -f conftest conftest$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3778
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3781 ac_exeext=$EXEEXT
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784 #include <stdio.h>
3785 int
3786 main ()
3787 {
3788 FILE *f = fopen ("conftest.out", "w");
3789  return ferror (f) || fclose (f) != 0;
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 ac_clean_files="$ac_clean_files conftest.out"
3796 # Check that the compiler produces executables we can run.  If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3799 $as_echo_n "checking whether we are cross compiling... " >&6; }
3800 if test "$cross_compiling" != yes; then
3801   { { ac_try="$ac_link"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808   (eval "$ac_link") 2>&5
3809   ac_status=$?
3810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811   test $ac_status = 0; }
3812   if { ac_try='./conftest$ac_cv_exeext'
3813   { { case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_try") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }; }; then
3823     cross_compiling=no
3824   else
3825     if test "$cross_compiling" = maybe; then
3826         cross_compiling=yes
3827     else
3828         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details" "$LINENO" 5; }
3833     fi
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3837 $as_echo "$cross_compiling" >&6; }
3838
3839 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3842 $as_echo_n "checking for suffix of object files... " >&6; }
3843 if ${ac_cv_objext+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.o conftest.obj
3858 if { { ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865   (eval "$ac_compile") 2>&5
3866   ac_status=$?
3867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868   test $ac_status = 0; }; then :
3869   for ac_file in conftest.o conftest.obj conftest.*; do
3870   test -f "$ac_file" || continue;
3871   case $ac_file in
3872     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3873     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3874        break;;
3875   esac
3876 done
3877 else
3878   $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of object files: cannot compile
3884 See \`config.log' for more details" "$LINENO" 5; }
3885 fi
3886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3889 $as_echo "$ac_cv_objext" >&6; }
3890 OBJEXT=$ac_cv_objext
3891 ac_objext=$OBJEXT
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3893 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3894 if ${ac_cv_c_compiler_gnu+:} false; then :
3895   $as_echo_n "(cached) " >&6
3896 else
3897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903 #ifndef __GNUC__
3904        choke me
3905 #endif
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912   ac_compiler_gnu=yes
3913 else
3914   ac_compiler_gnu=no
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3918
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3921 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3923   GCC=yes
3924 else
3925   GCC=
3926 fi
3927 ac_test_CFLAGS=${CFLAGS+set}
3928 ac_save_CFLAGS=$CFLAGS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3930 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3931 if ${ac_cv_prog_cc_g+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   ac_save_c_werror_flag=$ac_c_werror_flag
3935    ac_c_werror_flag=yes
3936    ac_cv_prog_cc_g=no
3937    CFLAGS="-g"
3938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950   ac_cv_prog_cc_g=yes
3951 else
3952   CFLAGS=""
3953       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965
3966 else
3967   ac_c_werror_flag=$ac_save_c_werror_flag
3968          CFLAGS="-g"
3969          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981   ac_cv_prog_cc_g=yes
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988    ac_c_werror_flag=$ac_save_c_werror_flag
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3991 $as_echo "$ac_cv_prog_cc_g" >&6; }
3992 if test "$ac_test_CFLAGS" = set; then
3993   CFLAGS=$ac_save_CFLAGS
3994 elif test $ac_cv_prog_cc_g = yes; then
3995   if test "$GCC" = yes; then
3996     CFLAGS="-g -O2"
3997   else
3998     CFLAGS="-g"
3999   fi
4000 else
4001   if test "$GCC" = yes; then
4002     CFLAGS="-O2"
4003   else
4004     CFLAGS=
4005   fi
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4008 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4009 if ${ac_cv_prog_cc_c89+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   ac_cv_prog_cc_c89=no
4013 ac_save_CC=$CC
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #include <stdarg.h>
4017 #include <stdio.h>
4018 struct stat;
4019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4020 struct buf { int x; };
4021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4022 static char *e (p, i)
4023      char **p;
4024      int i;
4025 {
4026   return p[i];
4027 }
4028 static char *f (char * (*g) (char **, int), char **p, ...)
4029 {
4030   char *s;
4031   va_list v;
4032   va_start (v,p);
4033   s = g (p, va_arg (v,int));
4034   va_end (v);
4035   return s;
4036 }
4037
4038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4039    function prototypes and stuff, but not '\xHH' hex character constants.
4040    These don't provoke an error unfortunately, instead are silently treated
4041    as 'x'.  The following induces an error, until -std is added to get
4042    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4043    array size at least.  It's necessary to write '\x00'==0 to get something
4044    that's true only with -std.  */
4045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4046
4047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4048    inside strings and character constants.  */
4049 #define FOO(x) 'x'
4050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4051
4052 int test (int i, double x);
4053 struct s1 {int (*f) (int a);};
4054 struct s2 {int (*f) (double a);};
4055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4056 int argc;
4057 char **argv;
4058 int
4059 main ()
4060 {
4061 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4067         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068 do
4069   CC="$ac_save_CC $ac_arg"
4070   if ac_fn_c_try_compile "$LINENO"; then :
4071   ac_cv_prog_cc_c89=$ac_arg
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext
4074   test "x$ac_cv_prog_cc_c89" != "xno" && break
4075 done
4076 rm -f conftest.$ac_ext
4077 CC=$ac_save_CC
4078
4079 fi
4080 # AC_CACHE_VAL
4081 case "x$ac_cv_prog_cc_c89" in
4082   x)
4083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4085   xno)
4086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4088   *)
4089     CC="$CC $ac_cv_prog_cc_c89"
4090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4092 esac
4093 if test "x$ac_cv_prog_cc_c89" != xno; then :
4094
4095 fi
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103 depcc="$CC"   am_compiler_list=
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4106 $as_echo_n "checking dependency style of $depcc... " >&6; }
4107 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4111   # We make a subdir and do the tests there.  Otherwise we can end up
4112   # making bogus files that we don't know about and never remove.  For
4113   # instance it was reported that on HP-UX the gcc test will end up
4114   # making a dummy file named 'D' -- because '-MD' means "put the output
4115   # in D".
4116   rm -rf conftest.dir
4117   mkdir conftest.dir
4118   # Copy depcomp to subdir because otherwise we won't find it if we're
4119   # using a relative directory.
4120   cp "$am_depcomp" conftest.dir
4121   cd conftest.dir
4122   # We will build objects and dependencies in a subdirectory because
4123   # it helps to detect inapplicable dependency modes.  For instance
4124   # both Tru64's cc and ICC support -MD to output dependencies as a
4125   # side effect of compilation, but ICC will put the dependencies in
4126   # the current directory while Tru64 will put them in the object
4127   # directory.
4128   mkdir sub
4129
4130   am_cv_CC_dependencies_compiler_type=none
4131   if test "$am_compiler_list" = ""; then
4132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133   fi
4134   am__universal=false
4135   case " $depcc " in #(
4136      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137      esac
4138
4139   for depmode in $am_compiler_list; do
4140     # Setup a source with many dependencies, because some compilers
4141     # like to wrap large dependency lists on column 80 (with \), and
4142     # we should not choose a depcomp mode which is confused by this.
4143     #
4144     # We need to recreate these files for each test, as the compiler may
4145     # overwrite some of them when testing with obscure command lines.
4146     # This happens at least with the AIX C compiler.
4147     : > sub/conftest.c
4148     for i in 1 2 3 4 5 6; do
4149       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4151       # Solaris 10 /bin/sh.
4152       echo '/* dummy */' > sub/conftst$i.h
4153     done
4154     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
4156     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4157     # mode.  It turns out that the SunPro C++ compiler does not properly
4158     # handle '-M -o', and we need to detect this.  Also, some Intel
4159     # versions had trouble with output in subdirs.
4160     am__obj=sub/conftest.${OBJEXT-o}
4161     am__minus_obj="-o $am__obj"
4162     case $depmode in
4163     gcc)
4164       # This depmode causes a compiler race in universal mode.
4165       test "$am__universal" = false || continue
4166       ;;
4167     nosideeffect)
4168       # After this tag, mechanisms are not by side-effect, so they'll
4169       # only be used when explicitly requested.
4170       if test "x$enable_dependency_tracking" = xyes; then
4171         continue
4172       else
4173         break
4174       fi
4175       ;;
4176     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4177       # This compiler won't grok '-c -o', but also, the minuso test has
4178       # not run yet.  These depmodes are late enough in the game, and
4179       # so weak that their functioning should not be impacted.
4180       am__obj=conftest.${OBJEXT-o}
4181       am__minus_obj=
4182       ;;
4183     none) break ;;
4184     esac
4185     if depmode=$depmode \
4186        source=sub/conftest.c object=$am__obj \
4187        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4188        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4189          >/dev/null 2>conftest.err &&
4190        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4191        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4193        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194       # icc doesn't choke on unknown options, it will just issue warnings
4195       # or remarks (even with -Werror).  So we grep stderr for any message
4196       # that says an option was ignored or not supported.
4197       # When given -MP, icc 7.0 and 7.1 complain thusly:
4198       #   icc: Command line warning: ignoring option '-M'; no argument required
4199       # The diagnosis changed in icc 8.0:
4200       #   icc: Command line remark: option '-MP' not supported
4201       if (grep 'ignoring option' conftest.err ||
4202           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203         am_cv_CC_dependencies_compiler_type=$depmode
4204         break
4205       fi
4206     fi
4207   done
4208
4209   cd ..
4210   rm -rf conftest.dir
4211 else
4212   am_cv_CC_dependencies_compiler_type=none
4213 fi
4214
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4218 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220  if
4221   test "x$enable_dependency_tracking" != xno \
4222   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223   am__fastdepCC_TRUE=
4224   am__fastdepCC_FALSE='#'
4225 else
4226   am__fastdepCC_TRUE='#'
4227   am__fastdepCC_FALSE=
4228 fi
4229
4230
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4241   CPP=
4242 fi
4243 if test -z "$CPP"; then
4244   if ${ac_cv_prog_CPP+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247       # Double quotes because CPP needs to be expanded
4248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249     do
4250       ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4252 do
4253   # Use a header file that comes with gcc, so configuring glibc
4254   # with a fresh cross-compiler works.
4255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256   # <limits.h> exists even on freestanding compilers.
4257   # On the NeXT, cc -E runs the code through the compiler's parser,
4258   # not just through cpp. "Syntax error" is here to catch this case.
4259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266                      Syntax error
4267 _ACEOF
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4269
4270 else
4271   # Broken: fails on valid input.
4272 continue
4273 fi
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276   # OK, works on sane cases.  Now check whether nonexistent headers
4277   # can be detected and how.
4278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283   # Broken: success on invalid input.
4284 continue
4285 else
4286   # Passes both tests.
4287 ac_preproc_ok=:
4288 break
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292 done
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.i conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then :
4296   break
4297 fi
4298
4299     done
4300     ac_cv_prog_CPP=$CPP
4301
4302 fi
4303   CPP=$ac_cv_prog_CPP
4304 else
4305   ac_cv_prog_CPP=$CPP
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4308 $as_echo "$CPP" >&6; }
4309 ac_preproc_ok=false
4310 for ac_c_preproc_warn_flag in '' yes
4311 do
4312   # Use a header file that comes with gcc, so configuring glibc
4313   # with a fresh cross-compiler works.
4314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315   # <limits.h> exists even on freestanding compilers.
4316   # On the NeXT, cc -E runs the code through the compiler's parser,
4317   # not just through cpp. "Syntax error" is here to catch this case.
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320 #ifdef __STDC__
4321 # include <limits.h>
4322 #else
4323 # include <assert.h>
4324 #endif
4325                      Syntax error
4326 _ACEOF
4327 if ac_fn_c_try_cpp "$LINENO"; then :
4328
4329 else
4330   # Broken: fails on valid input.
4331 continue
4332 fi
4333 rm -f conftest.err conftest.i conftest.$ac_ext
4334
4335   # OK, works on sane cases.  Now check whether nonexistent headers
4336   # can be detected and how.
4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339 #include <ac_nonexistent.h>
4340 _ACEOF
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342   # Broken: success on invalid input.
4343 continue
4344 else
4345   # Passes both tests.
4346 ac_preproc_ok=:
4347 break
4348 fi
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4350
4351 done
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.i conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then :
4355
4356 else
4357   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4359 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details" "$LINENO" 5; }
4361 fi
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4371 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4372 if ${ac_cv_path_GREP+:} false; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -z "$GREP"; then
4376   ac_path_GREP_found=false
4377   # Loop through the user's path and test for each of PROGNAME-LIST
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_prog in grep ggrep; do
4384     for ac_exec_ext in '' $ac_executable_extensions; do
4385       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4386       as_fn_executable_p "$ac_path_GREP" || continue
4387 # Check for GNU ac_path_GREP and select it if it is found.
4388   # Check for GNU $ac_path_GREP
4389 case `"$ac_path_GREP" --version 2>&1` in
4390 *GNU*)
4391   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4392 *)
4393   ac_count=0
4394   $as_echo_n 0123456789 >"conftest.in"
4395   while :
4396   do
4397     cat "conftest.in" "conftest.in" >"conftest.tmp"
4398     mv "conftest.tmp" "conftest.in"
4399     cp "conftest.in" "conftest.nl"
4400     $as_echo 'GREP' >> "conftest.nl"
4401     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403     as_fn_arith $ac_count + 1 && ac_count=$as_val
4404     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4405       # Best one so far, save it but keep looking for a better one
4406       ac_cv_path_GREP="$ac_path_GREP"
4407       ac_path_GREP_max=$ac_count
4408     fi
4409     # 10*(2^10) chars as input seems more than enough
4410     test $ac_count -gt 10 && break
4411   done
4412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415       $ac_path_GREP_found && break 3
4416     done
4417   done
4418   done
4419 IFS=$as_save_IFS
4420   if test -z "$ac_cv_path_GREP"; then
4421     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422   fi
4423 else
4424   ac_cv_path_GREP=$GREP
4425 fi
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4429 $as_echo "$ac_cv_path_GREP" >&6; }
4430  GREP="$ac_cv_path_GREP"
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4434 $as_echo_n "checking for egrep... " >&6; }
4435 if ${ac_cv_path_EGREP+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439    then ac_cv_path_EGREP="$GREP -E"
4440    else
4441      if test -z "$EGREP"; then
4442   ac_path_EGREP_found=false
4443   # Loop through the user's path and test for each of PROGNAME-LIST
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_prog in egrep; do
4450     for ac_exec_ext in '' $ac_executable_extensions; do
4451       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452       as_fn_executable_p "$ac_path_EGREP" || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454   # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4456 *GNU*)
4457   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4458 *)
4459   ac_count=0
4460   $as_echo_n 0123456789 >"conftest.in"
4461   while :
4462   do
4463     cat "conftest.in" "conftest.in" >"conftest.tmp"
4464     mv "conftest.tmp" "conftest.in"
4465     cp "conftest.in" "conftest.nl"
4466     $as_echo 'EGREP' >> "conftest.nl"
4467     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469     as_fn_arith $ac_count + 1 && ac_count=$as_val
4470     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471       # Best one so far, save it but keep looking for a better one
4472       ac_cv_path_EGREP="$ac_path_EGREP"
4473       ac_path_EGREP_max=$ac_count
4474     fi
4475     # 10*(2^10) chars as input seems more than enough
4476     test $ac_count -gt 10 && break
4477   done
4478   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4480
4481       $ac_path_EGREP_found && break 3
4482     done
4483   done
4484   done
4485 IFS=$as_save_IFS
4486   if test -z "$ac_cv_path_EGREP"; then
4487     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488   fi
4489 else
4490   ac_cv_path_EGREP=$EGREP
4491 fi
4492
4493    fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4496 $as_echo "$ac_cv_path_EGREP" >&6; }
4497  EGREP="$ac_cv_path_EGREP"
4498
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4501 $as_echo_n "checking for ANSI C header files... " >&6; }
4502 if ${ac_cv_header_stdc+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <stdlib.h>
4508 #include <stdarg.h>
4509 #include <string.h>
4510 #include <float.h>
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521   ac_cv_header_stdc=yes
4522 else
4523   ac_cv_header_stdc=no
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
4527 if test $ac_cv_header_stdc = yes; then
4528   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #include <string.h>
4532
4533 _ACEOF
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535   $EGREP "memchr" >/dev/null 2>&1; then :
4536
4537 else
4538   ac_cv_header_stdc=no
4539 fi
4540 rm -f conftest*
4541
4542 fi
4543
4544 if test $ac_cv_header_stdc = yes; then
4545   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548 #include <stdlib.h>
4549
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552   $EGREP "free" >/dev/null 2>&1; then :
4553
4554 else
4555   ac_cv_header_stdc=no
4556 fi
4557 rm -f conftest*
4558
4559 fi
4560
4561 if test $ac_cv_header_stdc = yes; then
4562   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4563   if test "$cross_compiling" = yes; then :
4564   :
4565 else
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #include <ctype.h>
4569 #include <stdlib.h>
4570 #if ((' ' & 0x0FF) == 0x020)
4571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4573 #else
4574 # define ISLOWER(c) \
4575                    (('a' <= (c) && (c) <= 'i') \
4576                      || ('j' <= (c) && (c) <= 'r') \
4577                      || ('s' <= (c) && (c) <= 'z'))
4578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4579 #endif
4580
4581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 int
4583 main ()
4584 {
4585   int i;
4586   for (i = 0; i < 256; i++)
4587     if (XOR (islower (i), ISLOWER (i))
4588         || toupper (i) != TOUPPER (i))
4589       return 2;
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_run "$LINENO"; then :
4594
4595 else
4596   ac_cv_header_stdc=no
4597 fi
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599   conftest.$ac_objext conftest.beam conftest.$ac_ext
4600 fi
4601
4602 fi
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4605 $as_echo "$ac_cv_header_stdc" >&6; }
4606 if test $ac_cv_header_stdc = yes; then
4607
4608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4609
4610 fi
4611
4612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4614                   inttypes.h stdint.h unistd.h
4615 do :
4616   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4618 "
4619 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4620   cat >>confdefs.h <<_ACEOF
4621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4622 _ACEOF
4623
4624 fi
4625
4626 done
4627
4628
4629
4630   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4631 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4632   MINIX=yes
4633 else
4634   MINIX=
4635 fi
4636
4637
4638   if test "$MINIX" = yes; then
4639
4640 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4641
4642
4643 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4644
4645
4646 $as_echo "#define _MINIX 1" >>confdefs.h
4647
4648   fi
4649
4650
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4652 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4653 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 #         define __EXTENSIONS__ 1
4660           $ac_includes_default
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670   ac_cv_safe_to_define___extensions__=yes
4671 else
4672   ac_cv_safe_to_define___extensions__=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4677 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4678   test $ac_cv_safe_to_define___extensions__ = yes &&
4679     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4680
4681   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4682
4683   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4684
4685   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4686
4687   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4688
4689
4690
4691
4692 # Support silent build rules. Disable
4693 # by either passing --disable-silent-rules to configure or passing V=1
4694 # to make
4695 # Check whether --enable-silent-rules was given.
4696 if test "${enable_silent_rules+set}" = set; then :
4697   enableval=$enable_silent_rules;
4698 fi
4699
4700 case $enable_silent_rules in # (((
4701   yes) AM_DEFAULT_VERBOSITY=0;;
4702    no) AM_DEFAULT_VERBOSITY=1;;
4703     *) AM_DEFAULT_VERBOSITY=0;;
4704 esac
4705 am_make=${MAKE-make}
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4707 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4708 if ${am_cv_make_support_nested_variables+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   if $as_echo 'TRUE=$(BAR$(V))
4712 BAR0=false
4713 BAR1=true
4714 V=1
4715 am__doit:
4716         @$(TRUE)
4717 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4718   am_cv_make_support_nested_variables=yes
4719 else
4720   am_cv_make_support_nested_variables=no
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4724 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4725 if test $am_cv_make_support_nested_variables = yes; then
4726     AM_V='$(V)'
4727   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4728 else
4729   AM_V=$AM_DEFAULT_VERBOSITY
4730   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4731 fi
4732 AM_BACKSLASH='\'
4733
4734
4735 # Define sustituted variables:
4736 IBUS_MAJOR_VERSION=1
4737 IBUS_MINOR_VERSION=5
4738 IBUS_MICRO_VERSION=4
4739 IBUS_ABI_CURRENT=5
4740 IBUS_ABI_REVISION=504
4741 IBUS_ABI_AGE=0
4742 IBUS_VERSION=1.5.4
4743 IBUS_API_VERSION=1.0
4744 IBUS_BINARY_VERSION=1.5.0.504
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 # libtool versioning
4756 #
4757 # If LT_VERSION_INFO="lt_current:lt_revision:lt_age", libibus is
4758 # libibus-ibus_api_version.so.(lt_current - lt_age).lt_age.lt_revision
4759 # If the abi is changed, but it is compatible with last version,
4760 # ibus_abi_current++, ibus_abi_age++;
4761 # If the abi is not compatible with last version,
4762 # ibus_abi_current++, ibus_abi_age = 0;
4763
4764
4765
4766 LT_VERSION_INFO="5:504:0"
4767 LT_CURRENT_MINUS_AGE=5
4768
4769
4770
4771 # Define GETTEXT_* variables.
4772 GETTEXT_PACKAGE=ibus10
4773
4774
4775 cat >>confdefs.h <<_ACEOF
4776 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4777 _ACEOF
4778
4779
4780    for ac_header in locale.h
4781 do :
4782   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4783 if test "x$ac_cv_header_locale_h" = xyes; then :
4784   cat >>confdefs.h <<_ACEOF
4785 #define HAVE_LOCALE_H 1
4786 _ACEOF
4787
4788 fi
4789
4790 done
4791
4792     if test $ac_cv_header_locale_h = yes; then
4793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4794 $as_echo_n "checking for LC_MESSAGES... " >&6; }
4795 if ${am_cv_val_LC_MESSAGES+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h.  */
4800 #include <locale.h>
4801 int
4802 main ()
4803 {
4804 return LC_MESSAGES
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 if ac_fn_c_try_link "$LINENO"; then :
4810   am_cv_val_LC_MESSAGES=yes
4811 else
4812   am_cv_val_LC_MESSAGES=no
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext \
4815     conftest$ac_exeext conftest.$ac_ext
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4818 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4819     if test $am_cv_val_LC_MESSAGES = yes; then
4820
4821 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4822
4823     fi
4824   fi
4825      USE_NLS=yes
4826
4827
4828     gt_cv_have_gettext=no
4829
4830     CATOBJEXT=NONE
4831     XGETTEXT=:
4832     INTLLIBS=
4833
4834     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4835 if test "x$ac_cv_header_libintl_h" = xyes; then :
4836   gt_cv_func_dgettext_libintl="no"
4837       libintl_extra_libs=""
4838
4839       #
4840       # First check in libc
4841       #
4842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
4843 $as_echo_n "checking for ngettext in libc... " >&6; }
4844 if ${gt_cv_func_ngettext_libc+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h.  */
4849
4850 #include <libintl.h>
4851
4852 int
4853 main ()
4854 {
4855 return !ngettext ("","", 1)
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_link "$LINENO"; then :
4861   gt_cv_func_ngettext_libc=yes
4862 else
4863   gt_cv_func_ngettext_libc=no
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext \
4866     conftest$ac_exeext conftest.$ac_ext
4867
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
4870 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
4871
4872       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4873               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
4874 $as_echo_n "checking for dgettext in libc... " >&6; }
4875 if ${gt_cv_func_dgettext_libc+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880
4881 #include <libintl.h>
4882
4883 int
4884 main ()
4885 {
4886 return !dgettext ("","")
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 if ac_fn_c_try_link "$LINENO"; then :
4892   gt_cv_func_dgettext_libc=yes
4893 else
4894   gt_cv_func_dgettext_libc=no
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext \
4897     conftest$ac_exeext conftest.$ac_ext
4898
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
4901 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
4902       fi
4903
4904       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4905         for ac_func in bind_textdomain_codeset
4906 do :
4907   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
4908 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
4909   cat >>confdefs.h <<_ACEOF
4910 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
4911 _ACEOF
4912
4913 fi
4914 done
4915
4916       fi
4917
4918       #
4919       # If we don't have everything we want, check in libintl
4920       #
4921       if test "$gt_cv_func_dgettext_libc" != "yes" \
4922          || test "$gt_cv_func_ngettext_libc" != "yes" \
4923          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
4924
4925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
4926 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
4927 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lintl  $LIBS"
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934
4935 /* Override any GCC internal prototype to avoid an error.
4936    Use char because int might match the return type of a GCC
4937    builtin and then its argument prototype would still apply.  */
4938 #ifdef __cplusplus
4939 extern "C"
4940 #endif
4941 char bindtextdomain ();
4942 int
4943 main ()
4944 {
4945 return bindtextdomain ();
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_c_try_link "$LINENO"; then :
4951   ac_cv_lib_intl_bindtextdomain=yes
4952 else
4953   ac_cv_lib_intl_bindtextdomain=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext \
4956     conftest$ac_exeext conftest.$ac_ext
4957 LIBS=$ac_check_lib_save_LIBS
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
4960 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
4961 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
4963 $as_echo_n "checking for ngettext in -lintl... " >&6; }
4964 if ${ac_cv_lib_intl_ngettext+:} false; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   ac_check_lib_save_LIBS=$LIBS
4968 LIBS="-lintl  $LIBS"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h.  */
4971
4972 /* Override any GCC internal prototype to avoid an error.
4973    Use char because int might match the return type of a GCC
4974    builtin and then its argument prototype would still apply.  */
4975 #ifdef __cplusplus
4976 extern "C"
4977 #endif
4978 char ngettext ();
4979 int
4980 main ()
4981 {
4982 return ngettext ();
4983   ;
4984   return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_link "$LINENO"; then :
4988   ac_cv_lib_intl_ngettext=yes
4989 else
4990   ac_cv_lib_intl_ngettext=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext \
4993     conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
4997 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
4998 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
5000 $as_echo_n "checking for dgettext in -lintl... " >&6; }
5001 if ${ac_cv_lib_intl_dgettext+:} false; then :
5002   $as_echo_n "(cached) " >&6
5003 else
5004   ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-lintl  $LIBS"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h.  */
5008
5009 /* Override any GCC internal prototype to avoid an error.
5010    Use char because int might match the return type of a GCC
5011    builtin and then its argument prototype would still apply.  */
5012 #ifdef __cplusplus
5013 extern "C"
5014 #endif
5015 char dgettext ();
5016 int
5017 main ()
5018 {
5019 return dgettext ();
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"; then :
5025   ac_cv_lib_intl_dgettext=yes
5026 else
5027   ac_cv_lib_intl_dgettext=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext \
5030     conftest$ac_exeext conftest.$ac_ext
5031 LIBS=$ac_check_lib_save_LIBS
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
5034 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
5035 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
5036   gt_cv_func_dgettext_libintl=yes
5037 fi
5038
5039 fi
5040
5041 fi
5042
5043
5044         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5045           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
5046 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
5047           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5048 $as_echo "" >&6; }
5049           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5050 $as_echo_n "checking for ngettext in -lintl... " >&6; }
5051 if ${ac_cv_lib_intl_ngettext+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   ac_check_lib_save_LIBS=$LIBS
5055 LIBS="-lintl -liconv $LIBS"
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h.  */
5058
5059 /* Override any GCC internal prototype to avoid an error.
5060    Use char because int might match the return type of a GCC
5061    builtin and then its argument prototype would still apply.  */
5062 #ifdef __cplusplus
5063 extern "C"
5064 #endif
5065 char ngettext ();
5066 int
5067 main ()
5068 {
5069 return ngettext ();
5070   ;
5071   return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_link "$LINENO"; then :
5075   ac_cv_lib_intl_ngettext=yes
5076 else
5077   ac_cv_lib_intl_ngettext=no
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext \
5080     conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5084 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5085 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
5087 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
5088 if ${ac_cv_lib_intl_dcgettext+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   ac_check_lib_save_LIBS=$LIBS
5092 LIBS="-lintl -liconv $LIBS"
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h.  */
5095
5096 /* Override any GCC internal prototype to avoid an error.
5097    Use char because int might match the return type of a GCC
5098    builtin and then its argument prototype would still apply.  */
5099 #ifdef __cplusplus
5100 extern "C"
5101 #endif
5102 char dcgettext ();
5103 int
5104 main ()
5105 {
5106 return dcgettext ();
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_link "$LINENO"; then :
5112   ac_cv_lib_intl_dcgettext=yes
5113 else
5114   ac_cv_lib_intl_dcgettext=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117     conftest$ac_exeext conftest.$ac_ext
5118 LIBS=$ac_check_lib_save_LIBS
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
5121 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
5122 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
5123   gt_cv_func_dgettext_libintl=yes
5124                         libintl_extra_libs=-liconv
5125 else
5126   :
5127 fi
5128
5129 else
5130   :
5131 fi
5132
5133         fi
5134
5135         #
5136         # If we found libintl, then check in it for bind_textdomain_codeset();
5137         # we'll prefer libc if neither have bind_textdomain_codeset(),
5138         # and both have dgettext and ngettext
5139         #
5140         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5141           glib_save_LIBS="$LIBS"
5142           LIBS="$LIBS -lintl $libintl_extra_libs"
5143           unset ac_cv_func_bind_textdomain_codeset
5144           for ac_func in bind_textdomain_codeset
5145 do :
5146   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5147 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
5148   cat >>confdefs.h <<_ACEOF
5149 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5150 _ACEOF
5151
5152 fi
5153 done
5154
5155           LIBS="$glib_save_LIBS"
5156
5157           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5158             gt_cv_func_dgettext_libc=no
5159           else
5160             if test "$gt_cv_func_dgettext_libc" = "yes" \
5161                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5162               gt_cv_func_dgettext_libintl=no
5163             fi
5164           fi
5165         fi
5166       fi
5167
5168       if test "$gt_cv_func_dgettext_libc" = "yes" \
5169         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5170         gt_cv_have_gettext=yes
5171       fi
5172
5173       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5174         INTLLIBS="-lintl $libintl_extra_libs"
5175       fi
5176
5177       if test "$gt_cv_have_gettext" = "yes"; then
5178
5179 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5180
5181         # Extract the first word of "msgfmt", so it can be a program name with args.
5182 set dummy msgfmt; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_MSGFMT+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case "$MSGFMT" in
5189   /*)
5190   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5194   for ac_dir in $PATH; do
5195     test -z "$ac_dir" && ac_dir=.
5196     if test -f $ac_dir/$ac_word; then
5197       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5198         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5199         break
5200       fi
5201     fi
5202   done
5203   IFS="$ac_save_ifs"
5204   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5205   ;;
5206 esac
5207 fi
5208 MSGFMT="$ac_cv_path_MSGFMT"
5209 if test "$MSGFMT" != "no"; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5211 $as_echo "$MSGFMT" >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216         if test "$MSGFMT" != "no"; then
5217           glib_save_LIBS="$LIBS"
5218           LIBS="$LIBS $INTLLIBS"
5219           for ac_func in dcgettext
5220 do :
5221   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5222 if test "x$ac_cv_func_dcgettext" = xyes; then :
5223   cat >>confdefs.h <<_ACEOF
5224 #define HAVE_DCGETTEXT 1
5225 _ACEOF
5226
5227 fi
5228 done
5229
5230           MSGFMT_OPTS=
5231           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
5232 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
5233           cat >conftest.foo <<_ACEOF
5234
5235 msgid ""
5236 msgstr ""
5237 "Content-Type: text/plain; charset=UTF-8\n"
5238 "Project-Id-Version: test 1.0\n"
5239 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
5240 "Last-Translator: test <foo@bar.xx>\n"
5241 "Language-Team: C <LL@li.org>\n"
5242 "MIME-Version: 1.0\n"
5243 "Content-Transfer-Encoding: 8bit\n"
5244
5245 _ACEOF
5246 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
5247   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
5248   ac_status=$?
5249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5250   test $ac_status = 0; }; then
5251   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252 $as_echo "yes" >&6; }
5253 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 echo "$as_me: failed input was:" >&5
5256 sed 's/^/| /' conftest.foo >&5
5257 fi
5258
5259           # Extract the first word of "gmsgfmt", so it can be a program name with args.
5260 set dummy gmsgfmt; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_GMSGFMT+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   case $GMSGFMT in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5269   ;;
5270   *)
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_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5287   ;;
5288 esac
5289 fi
5290 GMSGFMT=$ac_cv_path_GMSGFMT
5291 if test -n "$GMSGFMT"; then
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5293 $as_echo "$GMSGFMT" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300           # Extract the first word of "xgettext", so it can be a program name with args.
5301 set dummy xgettext; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_path_XGETTEXT+:} false; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   case "$XGETTEXT" in
5308   /*)
5309   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5310   ;;
5311   *)
5312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5313   for ac_dir in $PATH; do
5314     test -z "$ac_dir" && ac_dir=.
5315     if test -f $ac_dir/$ac_word; then
5316       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5317         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5318         break
5319       fi
5320     fi
5321   done
5322   IFS="$ac_save_ifs"
5323   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5324   ;;
5325 esac
5326 fi
5327 XGETTEXT="$ac_cv_path_XGETTEXT"
5328 if test "$XGETTEXT" != ":"; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5330 $as_echo "$XGETTEXT" >&6; }
5331 else
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h.  */
5338
5339 int
5340 main ()
5341 {
5342 extern int _nl_msg_cat_cntr;
5343                          return _nl_msg_cat_cntr
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_link "$LINENO"; then :
5349   CATOBJEXT=.gmo
5350              DATADIRNAME=share
5351 else
5352   case $host in
5353             *-*-solaris*)
5354                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5355 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
5356   CATOBJEXT=.gmo
5357                DATADIRNAME=share
5358 else
5359   CATOBJEXT=.mo
5360                DATADIRNAME=lib
5361 fi
5362
5363             ;;
5364             *-*-openbsd*)
5365             CATOBJEXT=.mo
5366             DATADIRNAME=share
5367             ;;
5368             *)
5369             CATOBJEXT=.mo
5370             DATADIRNAME=lib
5371             ;;
5372             esac
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext \
5375     conftest$ac_exeext conftest.$ac_ext
5376           LIBS="$glib_save_LIBS"
5377           INSTOBJEXT=.mo
5378         else
5379           gt_cv_have_gettext=no
5380         fi
5381       fi
5382
5383 fi
5384
5385
5386
5387     if test "$gt_cv_have_gettext" = "yes" ; then
5388
5389 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5390
5391     fi
5392
5393         if test "$XGETTEXT" != ":"; then
5394                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5395         : ;
5396       else
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5398 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5399         XGETTEXT=":"
5400       fi
5401     fi
5402
5403     # We need to process the po/ directory.
5404     POSUB=po
5405
5406     ac_config_commands="$ac_config_commands default-1"
5407
5408
5409                 for lang in $ALL_LINGUAS; do
5410       GMOFILES="$GMOFILES $lang.gmo"
5411       POFILES="$POFILES $lang.po"
5412     done
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426    if test "$gt_cv_have_gettext" = "yes"; then
5427      if test "x$ALL_LINGUAS" = "x"; then
5428        LINGUAS=
5429      else
5430        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5431 $as_echo_n "checking for catalogs to be installed... " >&6; }
5432        NEW_LINGUAS=
5433        for presentlang in $ALL_LINGUAS; do
5434          useit=no
5435          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5436            desiredlanguages="$LINGUAS"
5437          else
5438            desiredlanguages="$ALL_LINGUAS"
5439          fi
5440          for desiredlang in $desiredlanguages; do
5441            # Use the presentlang catalog if desiredlang is
5442            #   a. equal to presentlang, or
5443            #   b. a variant of presentlang (because in this case,
5444            #      presentlang can be used as a fallback for messages
5445            #      which are not translated in the desiredlang catalog).
5446            case "$desiredlang" in
5447              "$presentlang"*) useit=yes;;
5448            esac
5449          done
5450          if test $useit = yes; then
5451            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5452          fi
5453        done
5454        LINGUAS=$NEW_LINGUAS
5455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5456 $as_echo "$LINGUAS" >&6; }
5457      fi
5458
5459           if test -n "$LINGUAS"; then
5460        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5461      fi
5462    fi
5463
5464             MKINSTALLDIRS=
5465    if test -n "$ac_aux_dir"; then
5466      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5467    fi
5468    if test -z "$MKINSTALLDIRS"; then
5469      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5470    fi
5471
5472
5473          test -d po || mkdir po
5474    if test "x$srcdir" != "x."; then
5475      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5476        posrcprefix="$srcdir/"
5477      else
5478        posrcprefix="../$srcdir/"
5479      fi
5480    else
5481      posrcprefix="../"
5482    fi
5483    rm -f po/POTFILES
5484    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5485         < $srcdir/po/POTFILES.in > po/POTFILES
5486
5487 glib_save_prefix="$prefix"
5488 glib_save_exec_prefix="$exec_prefix"
5489 glib_save_datarootdir="$datarootdir"
5490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5491 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
5492 datarootdir=`eval echo "${datarootdir}"`
5493 if test "x$CATOBJEXT" = "x.mo" ; then
5494   localedir=`eval echo "${libdir}/locale"`
5495 else
5496   localedir=`eval echo "${datadir}/locale"`
5497 fi
5498 prefix="$glib_save_prefix"
5499 exec_prefix="$glib_save_exec_prefix"
5500 datarootdir="$glib_save_datarootdir"
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define GLIB_LOCALE_DIR "$localedir"
5504 _ACEOF
5505
5506
5507 GLIB_LOCALE_DIR=$localedir
5508
5509
5510 # For dislpay date.
5511
5512 DATE_DISPLAY="Fri Sep 20 2013"
5513
5514
5515
5516 # Check for programs.
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522 if test -n "$ac_tool_prefix"; then
5523   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_CC+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   if test -n "$CC"; then
5531   ac_cv_prog_CC="$CC" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 CC=$ac_cv_prog_CC
5551 if test -n "$CC"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5553 $as_echo "$CC" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 fi
5561 if test -z "$ac_cv_prog_CC"; then
5562   ac_ct_CC=$CC
5563   # Extract the first word of "gcc", so it can be a program name with args.
5564 set dummy gcc; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   if test -n "$ac_ct_CC"; then
5571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580     ac_cv_prog_ac_ct_CC="gcc"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5591 if test -n "$ac_ct_CC"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5593 $as_echo "$ac_ct_CC" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599   if test "x$ac_ct_CC" = x; then
5600     CC=""
5601   else
5602     case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     CC=$ac_ct_CC
5609   fi
5610 else
5611   CC="$ac_cv_prog_CC"
5612 fi
5613
5614 if test -z "$CC"; then
5615           if test -n "$ac_tool_prefix"; then
5616     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}cc; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_CC+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$CC"; then
5624   ac_cv_prog_CC="$CC" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_prog_CC="${ac_tool_prefix}cc"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 CC=$ac_cv_prog_CC
5644 if test -n "$CC"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5646 $as_echo "$CC" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653   fi
5654 fi
5655 if test -z "$CC"; then
5656   # Extract the first word of "cc", so it can be a program name with args.
5657 set dummy cc; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_CC+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test -n "$CC"; then
5664   ac_cv_prog_CC="$CC" # Let the user override the test.
5665 else
5666   ac_prog_rejected=no
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5675        ac_prog_rejected=yes
5676        continue
5677      fi
5678     ac_cv_prog_CC="cc"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 if test $ac_prog_rejected = yes; then
5687   # We found a bogon in the path, so make sure we never use it.
5688   set dummy $ac_cv_prog_CC
5689   shift
5690   if test $# != 0; then
5691     # We chose a different compiler from the bogus one.
5692     # However, it has the same basename, so the bogon will be chosen
5693     # first if we set CC to just the basename; use the full file name.
5694     shift
5695     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5696   fi
5697 fi
5698 fi
5699 fi
5700 CC=$ac_cv_prog_CC
5701 if test -n "$CC"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703 $as_echo "$CC" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710 fi
5711 if test -z "$CC"; then
5712   if test -n "$ac_tool_prefix"; then
5713   for ac_prog in cl.exe
5714   do
5715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_CC+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   if test -n "$CC"; then
5723   ac_cv_prog_CC="$CC" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737   done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 CC=$ac_cv_prog_CC
5743 if test -n "$CC"; then
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5745 $as_echo "$CC" >&6; }
5746 else
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752     test -n "$CC" && break
5753   done
5754 fi
5755 if test -z "$CC"; then
5756   ac_ct_CC=$CC
5757   for ac_prog in cl.exe
5758 do
5759   # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy $ac_prog; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$ac_ct_CC"; then
5767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_prog_ac_ct_CC="$ac_prog"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5787 if test -n "$ac_ct_CC"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5789 $as_echo "$ac_ct_CC" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796   test -n "$ac_ct_CC" && break
5797 done
5798
5799   if test "x$ac_ct_CC" = x; then
5800     CC=""
5801   else
5802     case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808     CC=$ac_ct_CC
5809   fi
5810 fi
5811
5812 fi
5813
5814
5815 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 as_fn_error $? "no acceptable C compiler found in \$PATH
5818 See \`config.log' for more details" "$LINENO" 5; }
5819
5820 # Provide some information about the compiler.
5821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5822 set X $ac_compile
5823 ac_compiler=$2
5824 for ac_option in --version -v -V -qversion; do
5825   { { ac_try="$ac_compiler $ac_option >&5"
5826 case "(($ac_try" in
5827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828   *) ac_try_echo=$ac_try;;
5829 esac
5830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5831 $as_echo "$ac_try_echo"; } >&5
5832   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5833   ac_status=$?
5834   if test -s conftest.err; then
5835     sed '10a\
5836 ... rest of stderr output deleted ...
5837          10q' conftest.err >conftest.er1
5838     cat conftest.er1 >&5
5839   fi
5840   rm -f conftest.er1 conftest.err
5841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842   test $ac_status = 0; }
5843 done
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5846 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5847 if ${ac_cv_c_compiler_gnu+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h.  */
5852
5853 int
5854 main ()
5855 {
5856 #ifndef __GNUC__
5857        choke me
5858 #endif
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865   ac_compiler_gnu=yes
5866 else
5867   ac_compiler_gnu=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5871
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5874 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5875 if test $ac_compiler_gnu = yes; then
5876   GCC=yes
5877 else
5878   GCC=
5879 fi
5880 ac_test_CFLAGS=${CFLAGS+set}
5881 ac_save_CFLAGS=$CFLAGS
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5883 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5884 if ${ac_cv_prog_cc_g+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   ac_save_c_werror_flag=$ac_c_werror_flag
5888    ac_c_werror_flag=yes
5889    ac_cv_prog_cc_g=no
5890    CFLAGS="-g"
5891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893
5894 int
5895 main ()
5896 {
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903   ac_cv_prog_cc_g=yes
5904 else
5905   CFLAGS=""
5906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h.  */
5908
5909 int
5910 main ()
5911 {
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918
5919 else
5920   ac_c_werror_flag=$ac_save_c_werror_flag
5921          CFLAGS="-g"
5922          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h.  */
5924
5925 int
5926 main ()
5927 {
5928
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934   ac_cv_prog_cc_g=yes
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941    ac_c_werror_flag=$ac_save_c_werror_flag
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5944 $as_echo "$ac_cv_prog_cc_g" >&6; }
5945 if test "$ac_test_CFLAGS" = set; then
5946   CFLAGS=$ac_save_CFLAGS
5947 elif test $ac_cv_prog_cc_g = yes; then
5948   if test "$GCC" = yes; then
5949     CFLAGS="-g -O2"
5950   else
5951     CFLAGS="-g"
5952   fi
5953 else
5954   if test "$GCC" = yes; then
5955     CFLAGS="-O2"
5956   else
5957     CFLAGS=
5958   fi
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5962 if ${ac_cv_prog_cc_c89+:} false; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   ac_cv_prog_cc_c89=no
5966 ac_save_CC=$CC
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h.  */
5969 #include <stdarg.h>
5970 #include <stdio.h>
5971 struct stat;
5972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5973 struct buf { int x; };
5974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5975 static char *e (p, i)
5976      char **p;
5977      int i;
5978 {
5979   return p[i];
5980 }
5981 static char *f (char * (*g) (char **, int), char **p, ...)
5982 {
5983   char *s;
5984   va_list v;
5985   va_start (v,p);
5986   s = g (p, va_arg (v,int));
5987   va_end (v);
5988   return s;
5989 }
5990
5991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5992    function prototypes and stuff, but not '\xHH' hex character constants.
5993    These don't provoke an error unfortunately, instead are silently treated
5994    as 'x'.  The following induces an error, until -std is added to get
5995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5996    array size at least.  It's necessary to write '\x00'==0 to get something
5997    that's true only with -std.  */
5998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5999
6000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6001    inside strings and character constants.  */
6002 #define FOO(x) 'x'
6003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6004
6005 int test (int i, double x);
6006 struct s1 {int (*f) (int a);};
6007 struct s2 {int (*f) (double a);};
6008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6009 int argc;
6010 char **argv;
6011 int
6012 main ()
6013 {
6014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6021 do
6022   CC="$ac_save_CC $ac_arg"
6023   if ac_fn_c_try_compile "$LINENO"; then :
6024   ac_cv_prog_cc_c89=$ac_arg
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext
6027   test "x$ac_cv_prog_cc_c89" != "xno" && break
6028 done
6029 rm -f conftest.$ac_ext
6030 CC=$ac_save_CC
6031
6032 fi
6033 # AC_CACHE_VAL
6034 case "x$ac_cv_prog_cc_c89" in
6035   x)
6036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6037 $as_echo "none needed" >&6; } ;;
6038   xno)
6039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6040 $as_echo "unsupported" >&6; } ;;
6041   *)
6042     CC="$CC $ac_cv_prog_cc_c89"
6043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6045 esac
6046 if test "x$ac_cv_prog_cc_c89" != xno; then :
6047
6048 fi
6049
6050 ac_ext=c
6051 ac_cpp='$CPP $CPPFLAGS'
6052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055
6056 depcc="$CC"   am_compiler_list=
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6059 $as_echo_n "checking dependency style of $depcc... " >&6; }
6060 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6064   # We make a subdir and do the tests there.  Otherwise we can end up
6065   # making bogus files that we don't know about and never remove.  For
6066   # instance it was reported that on HP-UX the gcc test will end up
6067   # making a dummy file named 'D' -- because '-MD' means "put the output
6068   # in D".
6069   rm -rf conftest.dir
6070   mkdir conftest.dir
6071   # Copy depcomp to subdir because otherwise we won't find it if we're
6072   # using a relative directory.
6073   cp "$am_depcomp" conftest.dir
6074   cd conftest.dir
6075   # We will build objects and dependencies in a subdirectory because
6076   # it helps to detect inapplicable dependency modes.  For instance
6077   # both Tru64's cc and ICC support -MD to output dependencies as a
6078   # side effect of compilation, but ICC will put the dependencies in
6079   # the current directory while Tru64 will put them in the object
6080   # directory.
6081   mkdir sub
6082
6083   am_cv_CC_dependencies_compiler_type=none
6084   if test "$am_compiler_list" = ""; then
6085      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6086   fi
6087   am__universal=false
6088   case " $depcc " in #(
6089      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6090      esac
6091
6092   for depmode in $am_compiler_list; do
6093     # Setup a source with many dependencies, because some compilers
6094     # like to wrap large dependency lists on column 80 (with \), and
6095     # we should not choose a depcomp mode which is confused by this.
6096     #
6097     # We need to recreate these files for each test, as the compiler may
6098     # overwrite some of them when testing with obscure command lines.
6099     # This happens at least with the AIX C compiler.
6100     : > sub/conftest.c
6101     for i in 1 2 3 4 5 6; do
6102       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6103       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6104       # Solaris 10 /bin/sh.
6105       echo '/* dummy */' > sub/conftst$i.h
6106     done
6107     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6108
6109     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6110     # mode.  It turns out that the SunPro C++ compiler does not properly
6111     # handle '-M -o', and we need to detect this.  Also, some Intel
6112     # versions had trouble with output in subdirs.
6113     am__obj=sub/conftest.${OBJEXT-o}
6114     am__minus_obj="-o $am__obj"
6115     case $depmode in
6116     gcc)
6117       # This depmode causes a compiler race in universal mode.
6118       test "$am__universal" = false || continue
6119       ;;
6120     nosideeffect)
6121       # After this tag, mechanisms are not by side-effect, so they'll
6122       # only be used when explicitly requested.
6123       if test "x$enable_dependency_tracking" = xyes; then
6124         continue
6125       else
6126         break
6127       fi
6128       ;;
6129     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6130       # This compiler won't grok '-c -o', but also, the minuso test has
6131       # not run yet.  These depmodes are late enough in the game, and
6132       # so weak that their functioning should not be impacted.
6133       am__obj=conftest.${OBJEXT-o}
6134       am__minus_obj=
6135       ;;
6136     none) break ;;
6137     esac
6138     if depmode=$depmode \
6139        source=sub/conftest.c object=$am__obj \
6140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6141        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6142          >/dev/null 2>conftest.err &&
6143        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6144        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6145        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6146        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6147       # icc doesn't choke on unknown options, it will just issue warnings
6148       # or remarks (even with -Werror).  So we grep stderr for any message
6149       # that says an option was ignored or not supported.
6150       # When given -MP, icc 7.0 and 7.1 complain thusly:
6151       #   icc: Command line warning: ignoring option '-M'; no argument required
6152       # The diagnosis changed in icc 8.0:
6153       #   icc: Command line remark: option '-MP' not supported
6154       if (grep 'ignoring option' conftest.err ||
6155           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6156         am_cv_CC_dependencies_compiler_type=$depmode
6157         break
6158       fi
6159     fi
6160   done
6161
6162   cd ..
6163   rm -rf conftest.dir
6164 else
6165   am_cv_CC_dependencies_compiler_type=none
6166 fi
6167
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6170 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6172
6173  if
6174   test "x$enable_dependency_tracking" != xno \
6175   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6176   am__fastdepCC_TRUE=
6177   am__fastdepCC_FALSE='#'
6178 else
6179   am__fastdepCC_TRUE='#'
6180   am__fastdepCC_FALSE=
6181 fi
6182
6183
6184 if test "x$CC" != xcc; then
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6186 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6187 else
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6189 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6190 fi
6191 set dummy $CC; ac_cc=`$as_echo "$2" |
6192                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6193 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198
6199 int
6200 main ()
6201 {
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 # Make sure it works both with $CC and with simple cc.
6208 # We do the test twice because some compilers refuse to overwrite an
6209 # existing .o file with -o, though they will create one.
6210 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6211 rm -f conftest2.*
6212 if { { case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6217 $as_echo "$ac_try_echo"; } >&5
6218   (eval "$ac_try") 2>&5
6219   ac_status=$?
6220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221   test $ac_status = 0; } &&
6222    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6227 $as_echo "$ac_try_echo"; } >&5
6228   (eval "$ac_try") 2>&5
6229   ac_status=$?
6230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231   test $ac_status = 0; };
6232 then
6233   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6234   if test "x$CC" != xcc; then
6235     # Test first that cc exists at all.
6236     if { ac_try='cc -c conftest.$ac_ext >&5'
6237   { { case "(($ac_try" in
6238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239   *) ac_try_echo=$ac_try;;
6240 esac
6241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6242 $as_echo "$ac_try_echo"; } >&5
6243   (eval "$ac_try") 2>&5
6244   ac_status=$?
6245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246   test $ac_status = 0; }; }; then
6247       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6248       rm -f conftest2.*
6249       if { { case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6254 $as_echo "$ac_try_echo"; } >&5
6255   (eval "$ac_try") 2>&5
6256   ac_status=$?
6257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258   test $ac_status = 0; } &&
6259          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6264 $as_echo "$ac_try_echo"; } >&5
6265   (eval "$ac_try") 2>&5
6266   ac_status=$?
6267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268   test $ac_status = 0; };
6269       then
6270         # cc works too.
6271         :
6272       else
6273         # cc exists but doesn't like -o.
6274         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6275       fi
6276     fi
6277   fi
6278 else
6279   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6280 fi
6281 rm -f core conftest*
6282
6283 fi
6284 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290
6291 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6292
6293 fi
6294
6295 # FIXME: we rely on the cache variable name because
6296 # there is no other way.
6297 set dummy $CC
6298 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6299 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6300 if test "$am_t" != yes; then
6301    # Losing compiler, so override with the script.
6302    # FIXME: It is wrong to rewrite CC.
6303    # But if we don't then we get into trouble of one sort or another.
6304    # A longer-term fix would be to have automake use am__CC in this case,
6305    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6306    CC="$am_aux_dir/compile $CC"
6307 fi
6308
6309
6310    case $ac_cv_prog_cc_stdc in #(
6311   no) :
6312     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6313   *) :
6314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6315 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6316 if ${ac_cv_prog_cc_c99+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   ac_cv_prog_cc_c99=no
6320 ac_save_CC=$CC
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h.  */
6323 #include <stdarg.h>
6324 #include <stdbool.h>
6325 #include <stdlib.h>
6326 #include <wchar.h>
6327 #include <stdio.h>
6328
6329 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6330 #define debug(...) fprintf (stderr, __VA_ARGS__)
6331 #define showlist(...) puts (#__VA_ARGS__)
6332 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6333 static void
6334 test_varargs_macros (void)
6335 {
6336   int x = 1234;
6337   int y = 5678;
6338   debug ("Flag");
6339   debug ("X = %d\n", x);
6340   showlist (The first, second, and third items.);
6341   report (x>y, "x is %d but y is %d", x, y);
6342 }
6343
6344 // Check long long types.
6345 #define BIG64 18446744073709551615ull
6346 #define BIG32 4294967295ul
6347 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6348 #if !BIG_OK
6349   your preprocessor is broken;
6350 #endif
6351 #if BIG_OK
6352 #else
6353   your preprocessor is broken;
6354 #endif
6355 static long long int bignum = -9223372036854775807LL;
6356 static unsigned long long int ubignum = BIG64;
6357
6358 struct incomplete_array
6359 {
6360   int datasize;
6361   double data[];
6362 };
6363
6364 struct named_init {
6365   int number;
6366   const wchar_t *name;
6367   double average;
6368 };
6369
6370 typedef const char *ccp;
6371
6372 static inline int
6373 test_restrict (ccp restrict text)
6374 {
6375   // See if C++-style comments work.
6376   // Iterate through items via the restricted pointer.
6377   // Also check for declarations in for loops.
6378   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6379     continue;
6380   return 0;
6381 }
6382
6383 // Check varargs and va_copy.
6384 static void
6385 test_varargs (const char *format, ...)
6386 {
6387   va_list args;
6388   va_start (args, format);
6389   va_list args_copy;
6390   va_copy (args_copy, args);
6391
6392   const char *str;
6393   int number;
6394   float fnumber;
6395
6396   while (*format)
6397     {
6398       switch (*format++)
6399         {
6400         case 's': // string
6401           str = va_arg (args_copy, const char *);
6402           break;
6403         case 'd': // int
6404           number = va_arg (args_copy, int);
6405           break;
6406         case 'f': // float
6407           fnumber = va_arg (args_copy, double);
6408           break;
6409         default:
6410           break;
6411         }
6412     }
6413   va_end (args_copy);
6414   va_end (args);
6415 }
6416
6417 int
6418 main ()
6419 {
6420
6421   // Check bool.
6422   _Bool success = false;
6423
6424   // Check restrict.
6425   if (test_restrict ("String literal") == 0)
6426     success = true;
6427   char *restrict newvar = "Another string";
6428
6429   // Check varargs.
6430   test_varargs ("s, d' f .", "string", 65, 34.234);
6431   test_varargs_macros ();
6432
6433   // Check flexible array members.
6434   struct incomplete_array *ia =
6435     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6436   ia->datasize = 10;
6437   for (int i = 0; i < ia->datasize; ++i)
6438     ia->data[i] = i * 1.234;
6439
6440   // Check named initializers.
6441   struct named_init ni = {
6442     .number = 34,
6443     .name = L"Test wide string",
6444     .average = 543.34343,
6445   };
6446
6447   ni.number = 58;
6448
6449   int dynamic_array[ni.number];
6450   dynamic_array[ni.number - 1] = 543;
6451
6452   // work around unused variable warnings
6453   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6454           || dynamic_array[ni.number - 1] != 543);
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6461 do
6462   CC="$ac_save_CC $ac_arg"
6463   if ac_fn_c_try_compile "$LINENO"; then :
6464   ac_cv_prog_cc_c99=$ac_arg
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext
6467   test "x$ac_cv_prog_cc_c99" != "xno" && break
6468 done
6469 rm -f conftest.$ac_ext
6470 CC=$ac_save_CC
6471
6472 fi
6473 # AC_CACHE_VAL
6474 case "x$ac_cv_prog_cc_c99" in
6475   x)
6476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6477 $as_echo "none needed" >&6; } ;;
6478   xno)
6479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6480 $as_echo "unsupported" >&6; } ;;
6481   *)
6482     CC="$CC $ac_cv_prog_cc_c99"
6483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6484 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6485 esac
6486 if test "x$ac_cv_prog_cc_c99" != xno; then :
6487   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6491 if ${ac_cv_prog_cc_c89+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   ac_cv_prog_cc_c89=no
6495 ac_save_CC=$CC
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h.  */
6498 #include <stdarg.h>
6499 #include <stdio.h>
6500 struct stat;
6501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6502 struct buf { int x; };
6503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6504 static char *e (p, i)
6505      char **p;
6506      int i;
6507 {
6508   return p[i];
6509 }
6510 static char *f (char * (*g) (char **, int), char **p, ...)
6511 {
6512   char *s;
6513   va_list v;
6514   va_start (v,p);
6515   s = g (p, va_arg (v,int));
6516   va_end (v);
6517   return s;
6518 }
6519
6520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6521    function prototypes and stuff, but not '\xHH' hex character constants.
6522    These don't provoke an error unfortunately, instead are silently treated
6523    as 'x'.  The following induces an error, until -std is added to get
6524    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6525    array size at least.  It's necessary to write '\x00'==0 to get something
6526    that's true only with -std.  */
6527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6528
6529 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6530    inside strings and character constants.  */
6531 #define FOO(x) 'x'
6532 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6533
6534 int test (int i, double x);
6535 struct s1 {int (*f) (int a);};
6536 struct s2 {int (*f) (double a);};
6537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6538 int argc;
6539 char **argv;
6540 int
6541 main ()
6542 {
6543 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6549         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6550 do
6551   CC="$ac_save_CC $ac_arg"
6552   if ac_fn_c_try_compile "$LINENO"; then :
6553   ac_cv_prog_cc_c89=$ac_arg
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext
6556   test "x$ac_cv_prog_cc_c89" != "xno" && break
6557 done
6558 rm -f conftest.$ac_ext
6559 CC=$ac_save_CC
6560
6561 fi
6562 # AC_CACHE_VAL
6563 case "x$ac_cv_prog_cc_c89" in
6564   x)
6565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6566 $as_echo "none needed" >&6; } ;;
6567   xno)
6568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6569 $as_echo "unsupported" >&6; } ;;
6570   *)
6571     CC="$CC $ac_cv_prog_cc_c89"
6572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6573 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6574 esac
6575 if test "x$ac_cv_prog_cc_c89" != xno; then :
6576   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6577 else
6578   ac_cv_prog_cc_stdc=no
6579 fi
6580
6581 fi
6582  ;;
6583 esac
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6585 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6586   if ${ac_cv_prog_cc_stdc+:} false; then :
6587   $as_echo_n "(cached) " >&6
6588 fi
6589
6590   case $ac_cv_prog_cc_stdc in #(
6591   no) :
6592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6593 $as_echo "unsupported" >&6; } ;; #(
6594   '') :
6595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6596 $as_echo "none needed" >&6; } ;; #(
6597   *) :
6598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6599 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6600 esac
6601
6602 # Extract the first word of "valac", so it can be a program name with args.
6603 set dummy valac; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_path_VALAC+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   case $VALAC in
6610   [\\/]* | ?:[\\/]*)
6611   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
6612   ;;
6613   *)
6614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
6630   ;;
6631 esac
6632 fi
6633 VALAC=$ac_cv_path_VALAC
6634 if test -n "$VALAC"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
6636 $as_echo "$VALAC" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 fi
6641
6642
6643    if test "$VALAC" != valac && test -n "0.14"; then :
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.14" >&5
6645 $as_echo_n "checking whether $VALAC is at least version 0.14... " >&6; }
6646        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
6647        as_arg_v1=0.14
6648 as_arg_v2="$am__vala_version"
6649 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6650 case $? in #(
6651   1) :
6652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653 $as_echo "yes" >&6; } ;; #(
6654   0) :
6655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6656 $as_echo "yes" >&6; } ;; #(
6657   2) :
6658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660           VALAC=valac ;; #(
6661   *) :
6662      ;;
6663 esac
6664 fi
6665     if test "$VALAC" = valac; then
6666       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
6667 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
6668          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
6669 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
6670     else
6671       :
6672     fi
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6676 set x ${MAKE-make}
6677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   cat >conftest.make <<\_ACEOF
6682 SHELL = /bin/sh
6683 all:
6684         @echo '@@@%%%=$(MAKE)=@@@%%%'
6685 _ACEOF
6686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6688   *@@@%%%=?*=@@@%%%*)
6689     eval ac_cv_prog_make_${ac_make}_set=yes;;
6690   *)
6691     eval ac_cv_prog_make_${ac_make}_set=no;;
6692 esac
6693 rm -f conftest.make
6694 fi
6695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }
6698   SET_MAKE=
6699 else
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702   SET_MAKE="MAKE=${MAKE-make}"
6703 fi
6704
6705
6706 # i18n stuff
6707
6708    for ac_header in locale.h
6709 do :
6710   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
6711 if test "x$ac_cv_header_locale_h" = xyes; then :
6712   cat >>confdefs.h <<_ACEOF
6713 #define HAVE_LOCALE_H 1
6714 _ACEOF
6715
6716 fi
6717
6718 done
6719
6720     if test $ac_cv_header_locale_h = yes; then
6721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
6722 $as_echo_n "checking for LC_MESSAGES... " >&6; }
6723 if ${am_cv_val_LC_MESSAGES+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728 #include <locale.h>
6729 int
6730 main ()
6731 {
6732 return LC_MESSAGES
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738   am_cv_val_LC_MESSAGES=yes
6739 else
6740   am_cv_val_LC_MESSAGES=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743     conftest$ac_exeext conftest.$ac_ext
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
6746 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6747     if test $am_cv_val_LC_MESSAGES = yes; then
6748
6749 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
6750
6751     fi
6752   fi
6753      USE_NLS=yes
6754
6755
6756     gt_cv_have_gettext=no
6757
6758     CATOBJEXT=NONE
6759     XGETTEXT=:
6760     INTLLIBS=
6761
6762     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
6763 if test "x$ac_cv_header_libintl_h" = xyes; then :
6764   gt_cv_func_dgettext_libintl="no"
6765       libintl_extra_libs=""
6766
6767       #
6768       # First check in libc
6769       #
6770       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
6771 $as_echo_n "checking for ngettext in libc... " >&6; }
6772 if ${gt_cv_func_ngettext_libc+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h.  */
6777
6778 #include <libintl.h>
6779
6780 int
6781 main ()
6782 {
6783 return !ngettext ("","", 1)
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"; then :
6789   gt_cv_func_ngettext_libc=yes
6790 else
6791   gt_cv_func_ngettext_libc=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext \
6794     conftest$ac_exeext conftest.$ac_ext
6795
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
6798 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
6799
6800       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6801               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
6802 $as_echo_n "checking for dgettext in libc... " >&6; }
6803 if ${gt_cv_func_dgettext_libc+:} false; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h.  */
6808
6809 #include <libintl.h>
6810
6811 int
6812 main ()
6813 {
6814 return !dgettext ("","")
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820   gt_cv_func_dgettext_libc=yes
6821 else
6822   gt_cv_func_dgettext_libc=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext \
6825     conftest$ac_exeext conftest.$ac_ext
6826
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
6829 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
6830       fi
6831
6832       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6833         for ac_func in bind_textdomain_codeset
6834 do :
6835   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6836 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
6837   cat >>confdefs.h <<_ACEOF
6838 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
6839 _ACEOF
6840
6841 fi
6842 done
6843
6844       fi
6845
6846       #
6847       # If we don't have everything we want, check in libintl
6848       #
6849       if test "$gt_cv_func_dgettext_libc" != "yes" \
6850          || test "$gt_cv_func_ngettext_libc" != "yes" \
6851          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6852
6853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
6854 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6855 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   ac_check_lib_save_LIBS=$LIBS
6859 LIBS="-lintl  $LIBS"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862
6863 /* Override any GCC internal prototype to avoid an error.
6864    Use char because int might match the return type of a GCC
6865    builtin and then its argument prototype would still apply.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 char bindtextdomain ();
6870 int
6871 main ()
6872 {
6873 return bindtextdomain ();
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"; then :
6879   ac_cv_lib_intl_bindtextdomain=yes
6880 else
6881   ac_cv_lib_intl_bindtextdomain=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext \
6884     conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_check_lib_save_LIBS
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
6888 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6889 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
6891 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6892 if ${ac_cv_lib_intl_ngettext+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   ac_check_lib_save_LIBS=$LIBS
6896 LIBS="-lintl  $LIBS"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899
6900 /* Override any GCC internal prototype to avoid an error.
6901    Use char because int might match the return type of a GCC
6902    builtin and then its argument prototype would still apply.  */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 char ngettext ();
6907 int
6908 main ()
6909 {
6910 return ngettext ();
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916   ac_cv_lib_intl_ngettext=yes
6917 else
6918   ac_cv_lib_intl_ngettext=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext \
6921     conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_check_lib_save_LIBS
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
6925 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6926 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
6928 $as_echo_n "checking for dgettext in -lintl... " >&6; }
6929 if ${ac_cv_lib_intl_dgettext+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   ac_check_lib_save_LIBS=$LIBS
6933 LIBS="-lintl  $LIBS"
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h.  */
6936
6937 /* Override any GCC internal prototype to avoid an error.
6938    Use char because int might match the return type of a GCC
6939    builtin and then its argument prototype would still apply.  */
6940 #ifdef __cplusplus
6941 extern "C"
6942 #endif
6943 char dgettext ();
6944 int
6945 main ()
6946 {
6947 return dgettext ();
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 if ac_fn_c_try_link "$LINENO"; then :
6953   ac_cv_lib_intl_dgettext=yes
6954 else
6955   ac_cv_lib_intl_dgettext=no
6956 fi
6957 rm -f core conftest.err conftest.$ac_objext \
6958     conftest$ac_exeext conftest.$ac_ext
6959 LIBS=$ac_check_lib_save_LIBS
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
6962 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
6963 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
6964   gt_cv_func_dgettext_libintl=yes
6965 fi
6966
6967 fi
6968
6969 fi
6970
6971
6972         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6973           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
6974 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
6975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6976 $as_echo "" >&6; }
6977           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
6978 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6979 if ${ac_cv_lib_intl_ngettext+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   ac_check_lib_save_LIBS=$LIBS
6983 LIBS="-lintl -liconv $LIBS"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986
6987 /* Override any GCC internal prototype to avoid an error.
6988    Use char because int might match the return type of a GCC
6989    builtin and then its argument prototype would still apply.  */
6990 #ifdef __cplusplus
6991 extern "C"
6992 #endif
6993 char ngettext ();
6994 int
6995 main ()
6996 {
6997 return ngettext ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003   ac_cv_lib_intl_ngettext=yes
7004 else
7005   ac_cv_lib_intl_ngettext=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008     conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
7012 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7013 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
7015 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7016 if ${ac_cv_lib_intl_dcgettext+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   ac_check_lib_save_LIBS=$LIBS
7020 LIBS="-lintl -liconv $LIBS"
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024 /* Override any GCC internal prototype to avoid an error.
7025    Use char because int might match the return type of a GCC
7026    builtin and then its argument prototype would still apply.  */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char dcgettext ();
7031 int
7032 main ()
7033 {
7034 return dcgettext ();
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"; then :
7040   ac_cv_lib_intl_dcgettext=yes
7041 else
7042   ac_cv_lib_intl_dcgettext=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext \
7045     conftest$ac_exeext conftest.$ac_ext
7046 LIBS=$ac_check_lib_save_LIBS
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
7049 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7050 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
7051   gt_cv_func_dgettext_libintl=yes
7052                         libintl_extra_libs=-liconv
7053 else
7054   :
7055 fi
7056
7057 else
7058   :
7059 fi
7060
7061         fi
7062
7063         #
7064         # If we found libintl, then check in it for bind_textdomain_codeset();
7065         # we'll prefer libc if neither have bind_textdomain_codeset(),
7066         # and both have dgettext and ngettext
7067         #
7068         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7069           glib_save_LIBS="$LIBS"
7070           LIBS="$LIBS -lintl $libintl_extra_libs"
7071           unset ac_cv_func_bind_textdomain_codeset
7072           for ac_func in bind_textdomain_codeset
7073 do :
7074   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7075 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
7076   cat >>confdefs.h <<_ACEOF
7077 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
7078 _ACEOF
7079
7080 fi
7081 done
7082
7083           LIBS="$glib_save_LIBS"
7084
7085           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7086             gt_cv_func_dgettext_libc=no
7087           else
7088             if test "$gt_cv_func_dgettext_libc" = "yes" \
7089                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7090               gt_cv_func_dgettext_libintl=no
7091             fi
7092           fi
7093         fi
7094       fi
7095
7096       if test "$gt_cv_func_dgettext_libc" = "yes" \
7097         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7098         gt_cv_have_gettext=yes
7099       fi
7100
7101       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7102         INTLLIBS="-lintl $libintl_extra_libs"
7103       fi
7104
7105       if test "$gt_cv_have_gettext" = "yes"; then
7106
7107 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7108
7109         # Extract the first word of "msgfmt", so it can be a program name with args.
7110 set dummy msgfmt; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_path_MSGFMT+:} false; then :
7114   $as_echo_n "(cached) " >&6
7115 else
7116   case "$MSGFMT" in
7117   /*)
7118   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7119   ;;
7120   *)
7121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7122   for ac_dir in $PATH; do
7123     test -z "$ac_dir" && ac_dir=.
7124     if test -f $ac_dir/$ac_word; then
7125       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7126         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7127         break
7128       fi
7129     fi
7130   done
7131   IFS="$ac_save_ifs"
7132   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7133   ;;
7134 esac
7135 fi
7136 MSGFMT="$ac_cv_path_MSGFMT"
7137 if test "$MSGFMT" != "no"; then
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7139 $as_echo "$MSGFMT" >&6; }
7140 else
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144         if test "$MSGFMT" != "no"; then
7145           glib_save_LIBS="$LIBS"
7146           LIBS="$LIBS $INTLLIBS"
7147           for ac_func in dcgettext
7148 do :
7149   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
7150 if test "x$ac_cv_func_dcgettext" = xyes; then :
7151   cat >>confdefs.h <<_ACEOF
7152 #define HAVE_DCGETTEXT 1
7153 _ACEOF
7154
7155 fi
7156 done
7157
7158           MSGFMT_OPTS=
7159           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
7160 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
7161           cat >conftest.foo <<_ACEOF
7162
7163 msgid ""
7164 msgstr ""
7165 "Content-Type: text/plain; charset=UTF-8\n"
7166 "Project-Id-Version: test 1.0\n"
7167 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7168 "Last-Translator: test <foo@bar.xx>\n"
7169 "Language-Team: C <LL@li.org>\n"
7170 "MIME-Version: 1.0\n"
7171 "Content-Transfer-Encoding: 8bit\n"
7172
7173 _ACEOF
7174 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
7175   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7176   ac_status=$?
7177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178   test $ac_status = 0; }; then
7179   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7180 $as_echo "yes" >&6; }
7181 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 echo "$as_me: failed input was:" >&5
7184 sed 's/^/| /' conftest.foo >&5
7185 fi
7186
7187           # Extract the first word of "gmsgfmt", so it can be a program name with args.
7188 set dummy gmsgfmt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_path_GMSGFMT+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   case $GMSGFMT in
7195   [\\/]* | ?:[\\/]*)
7196   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7197   ;;
7198   *)
7199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213
7214   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7215   ;;
7216 esac
7217 fi
7218 GMSGFMT=$ac_cv_path_GMSGFMT
7219 if test -n "$GMSGFMT"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7221 $as_echo "$GMSGFMT" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228           # Extract the first word of "xgettext", so it can be a program name with args.
7229 set dummy xgettext; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_path_XGETTEXT+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   case "$XGETTEXT" in
7236   /*)
7237   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7241   for ac_dir in $PATH; do
7242     test -z "$ac_dir" && ac_dir=.
7243     if test -f $ac_dir/$ac_word; then
7244       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7245         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7246         break
7247       fi
7248     fi
7249   done
7250   IFS="$ac_save_ifs"
7251   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7252   ;;
7253 esac
7254 fi
7255 XGETTEXT="$ac_cv_path_XGETTEXT"
7256 if test "$XGETTEXT" != ":"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7258 $as_echo "$XGETTEXT" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266
7267 int
7268 main ()
7269 {
7270 extern int _nl_msg_cat_cntr;
7271                          return _nl_msg_cat_cntr
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_link "$LINENO"; then :
7277   CATOBJEXT=.gmo
7278              DATADIRNAME=share
7279 else
7280   case $host in
7281             *-*-solaris*)
7282                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7283 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
7284   CATOBJEXT=.gmo
7285                DATADIRNAME=share
7286 else
7287   CATOBJEXT=.mo
7288                DATADIRNAME=lib
7289 fi
7290
7291             ;;
7292             *-*-openbsd*)
7293             CATOBJEXT=.mo
7294             DATADIRNAME=share
7295             ;;
7296             *)
7297             CATOBJEXT=.mo
7298             DATADIRNAME=lib
7299             ;;
7300             esac
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext \
7303     conftest$ac_exeext conftest.$ac_ext
7304           LIBS="$glib_save_LIBS"
7305           INSTOBJEXT=.mo
7306         else
7307           gt_cv_have_gettext=no
7308         fi
7309       fi
7310
7311 fi
7312
7313
7314
7315     if test "$gt_cv_have_gettext" = "yes" ; then
7316
7317 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7318
7319     fi
7320
7321         if test "$XGETTEXT" != ":"; then
7322                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7323         : ;
7324       else
7325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7326 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7327         XGETTEXT=":"
7328       fi
7329     fi
7330
7331     # We need to process the po/ directory.
7332     POSUB=po
7333
7334     ac_config_commands="$ac_config_commands default-2"
7335
7336
7337                 for lang in $ALL_LINGUAS; do
7338       GMOFILES="$GMOFILES $lang.gmo"
7339       POFILES="$POFILES $lang.po"
7340     done
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354    if test "$gt_cv_have_gettext" = "yes"; then
7355      if test "x$ALL_LINGUAS" = "x"; then
7356        LINGUAS=
7357      else
7358        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7359 $as_echo_n "checking for catalogs to be installed... " >&6; }
7360        NEW_LINGUAS=
7361        for presentlang in $ALL_LINGUAS; do
7362          useit=no
7363          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7364            desiredlanguages="$LINGUAS"
7365          else
7366            desiredlanguages="$ALL_LINGUAS"
7367          fi
7368          for desiredlang in $desiredlanguages; do
7369            # Use the presentlang catalog if desiredlang is
7370            #   a. equal to presentlang, or
7371            #   b. a variant of presentlang (because in this case,
7372            #      presentlang can be used as a fallback for messages
7373            #      which are not translated in the desiredlang catalog).
7374            case "$desiredlang" in
7375              "$presentlang"*) useit=yes;;
7376            esac
7377          done
7378          if test $useit = yes; then
7379            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7380          fi
7381        done
7382        LINGUAS=$NEW_LINGUAS
7383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7384 $as_echo "$LINGUAS" >&6; }
7385      fi
7386
7387           if test -n "$LINGUAS"; then
7388        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7389      fi
7390    fi
7391
7392             MKINSTALLDIRS=
7393    if test -n "$ac_aux_dir"; then
7394      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7395    fi
7396    if test -z "$MKINSTALLDIRS"; then
7397      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7398    fi
7399
7400
7401          test -d po || mkdir po
7402    if test "x$srcdir" != "x."; then
7403      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7404        posrcprefix="$srcdir/"
7405      else
7406        posrcprefix="../$srcdir/"
7407      fi
7408    else
7409      posrcprefix="../"
7410    fi
7411    rm -f po/POTFILES
7412    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7413         < $srcdir/po/POTFILES.in > po/POTFILES
7414
7415
7416 # Define PACKAGE_VERSION_* variables.
7417 # Check whether --enable-static was given.
7418 if test "${enable_static+set}" = set; then :
7419   enableval=$enable_static; p=${PACKAGE-default}
7420     case $enableval in
7421     yes) enable_static=yes ;;
7422     no) enable_static=no ;;
7423     *)
7424      enable_static=no
7425       # Look at the argument we got.  We use all the common list separators.
7426       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427       for pkg in $enableval; do
7428         IFS="$lt_save_ifs"
7429         if test "X$pkg" = "X$p"; then
7430           enable_static=yes
7431         fi
7432       done
7433       IFS="$lt_save_ifs"
7434       ;;
7435     esac
7436 else
7437   enable_static=no
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7449 $as_echo_n "checking for library containing strerror... " >&6; }
7450 if ${ac_cv_search_strerror+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   ac_func_search_save_LIBS=$LIBS
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h.  */
7456
7457 /* Override any GCC internal prototype to avoid an error.
7458    Use char because int might match the return type of a GCC
7459    builtin and then its argument prototype would still apply.  */
7460 #ifdef __cplusplus
7461 extern "C"
7462 #endif
7463 char strerror ();
7464 int
7465 main ()
7466 {
7467 return strerror ();
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 for ac_lib in '' cposix; do
7473   if test -z "$ac_lib"; then
7474     ac_res="none required"
7475   else
7476     ac_res=-l$ac_lib
7477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7478   fi
7479   if ac_fn_c_try_link "$LINENO"; then :
7480   ac_cv_search_strerror=$ac_res
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483     conftest$ac_exeext
7484   if ${ac_cv_search_strerror+:} false; then :
7485   break
7486 fi
7487 done
7488 if ${ac_cv_search_strerror+:} false; then :
7489
7490 else
7491   ac_cv_search_strerror=no
7492 fi
7493 rm conftest.$ac_ext
7494 LIBS=$ac_func_search_save_LIBS
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7497 $as_echo "$ac_cv_search_strerror" >&6; }
7498 ac_res=$ac_cv_search_strerror
7499 if test "$ac_res" != no; then :
7500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7501
7502 fi
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7505 $as_echo_n "checking for ANSI C header files... " >&6; }
7506 if ${ac_cv_header_stdc+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #include <stdlib.h>
7512 #include <stdarg.h>
7513 #include <string.h>
7514 #include <float.h>
7515
7516 int
7517 main ()
7518 {
7519
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525   ac_cv_header_stdc=yes
7526 else
7527   ac_cv_header_stdc=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530
7531 if test $ac_cv_header_stdc = yes; then
7532   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535 #include <string.h>
7536
7537 _ACEOF
7538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7539   $EGREP "memchr" >/dev/null 2>&1; then :
7540
7541 else
7542   ac_cv_header_stdc=no
7543 fi
7544 rm -f conftest*
7545
7546 fi
7547
7548 if test $ac_cv_header_stdc = yes; then
7549   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h.  */
7552 #include <stdlib.h>
7553
7554 _ACEOF
7555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7556   $EGREP "free" >/dev/null 2>&1; then :
7557
7558 else
7559   ac_cv_header_stdc=no
7560 fi
7561 rm -f conftest*
7562
7563 fi
7564
7565 if test $ac_cv_header_stdc = yes; then
7566   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7567   if test "$cross_compiling" = yes; then :
7568   :
7569 else
7570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572 #include <ctype.h>
7573 #include <stdlib.h>
7574 #if ((' ' & 0x0FF) == 0x020)
7575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7577 #else
7578 # define ISLOWER(c) \
7579                    (('a' <= (c) && (c) <= 'i') \
7580                      || ('j' <= (c) && (c) <= 'r') \
7581                      || ('s' <= (c) && (c) <= 'z'))
7582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7583 #endif
7584
7585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7586 int
7587 main ()
7588 {
7589   int i;
7590   for (i = 0; i < 256; i++)
7591     if (XOR (islower (i), ISLOWER (i))
7592         || toupper (i) != TOUPPER (i))
7593       return 2;
7594   return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_run "$LINENO"; then :
7598
7599 else
7600   ac_cv_header_stdc=no
7601 fi
7602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7603   conftest.$ac_objext conftest.beam conftest.$ac_ext
7604 fi
7605
7606 fi
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7609 $as_echo "$ac_cv_header_stdc" >&6; }
7610 if test $ac_cv_header_stdc = yes; then
7611
7612 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7613
7614 fi
7615
7616 case `pwd` in
7617   *\ * | *\     *)
7618     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7619 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7620 esac
7621
7622
7623
7624 macro_version='2.4.2'
7625 macro_revision='1.3337'
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639 ltmain="$ac_aux_dir/ltmain.sh"
7640
7641 # Make sure we can run config.sub.
7642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7643   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7646 $as_echo_n "checking build system type... " >&6; }
7647 if ${ac_cv_build+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   ac_build_alias=$build_alias
7651 test "x$ac_build_alias" = x &&
7652   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7653 test "x$ac_build_alias" = x &&
7654   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7656   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7660 $as_echo "$ac_cv_build" >&6; }
7661 case $ac_cv_build in
7662 *-*-*) ;;
7663 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7664 esac
7665 build=$ac_cv_build
7666 ac_save_IFS=$IFS; IFS='-'
7667 set x $ac_cv_build
7668 shift
7669 build_cpu=$1
7670 build_vendor=$2
7671 shift; shift
7672 # Remember, the first character of IFS is used to create $*,
7673 # except with old shells:
7674 build_os=$*
7675 IFS=$ac_save_IFS
7676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7677
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7680 $as_echo_n "checking host system type... " >&6; }
7681 if ${ac_cv_host+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test "x$host_alias" = x; then
7685   ac_cv_host=$ac_cv_build
7686 else
7687   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7688     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7689 fi
7690
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7693 $as_echo "$ac_cv_host" >&6; }
7694 case $ac_cv_host in
7695 *-*-*) ;;
7696 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7697 esac
7698 host=$ac_cv_host
7699 ac_save_IFS=$IFS; IFS='-'
7700 set x $ac_cv_host
7701 shift
7702 host_cpu=$1
7703 host_vendor=$2
7704 shift; shift
7705 # Remember, the first character of IFS is used to create $*,
7706 # except with old shells:
7707 host_os=$*
7708 IFS=$ac_save_IFS
7709 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7710
7711
7712 # Backslashify metacharacters that are still active within
7713 # double-quoted strings.
7714 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7715
7716 # Same as above, but do not quote variable references.
7717 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7718
7719 # Sed substitution to delay expansion of an escaped shell variable in a
7720 # double_quote_subst'ed string.
7721 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7722
7723 # Sed substitution to delay expansion of an escaped single quote.
7724 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7725
7726 # Sed substitution to avoid accidental globbing in evaled expressions
7727 no_glob_subst='s/\*/\\\*/g'
7728
7729 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7730 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7734 $as_echo_n "checking how to print strings... " >&6; }
7735 # Test print first, because it will be a builtin if present.
7736 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7737    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7738   ECHO='print -r --'
7739 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7740   ECHO='printf %s\n'
7741 else
7742   # Use this function as a fallback that always works.
7743   func_fallback_echo ()
7744   {
7745     eval 'cat <<_LTECHO_EOF
7746 $1
7747 _LTECHO_EOF'
7748   }
7749   ECHO='func_fallback_echo'
7750 fi
7751
7752 # func_echo_all arg...
7753 # Invoke $ECHO with all args, space-separated.
7754 func_echo_all ()
7755 {
7756     $ECHO ""
7757 }
7758
7759 case "$ECHO" in
7760   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7761 $as_echo "printf" >&6; } ;;
7762   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7763 $as_echo "print -r" >&6; } ;;
7764   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7765 $as_echo "cat" >&6; } ;;
7766 esac
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7782 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7783 if ${ac_cv_path_SED+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7787      for ac_i in 1 2 3 4 5 6 7; do
7788        ac_script="$ac_script$as_nl$ac_script"
7789      done
7790      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7791      { ac_script=; unset ac_script;}
7792      if test -z "$SED"; then
7793   ac_path_SED_found=false
7794   # Loop through the user's path and test for each of PROGNAME-LIST
7795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800     for ac_prog in sed gsed; do
7801     for ac_exec_ext in '' $ac_executable_extensions; do
7802       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7803       as_fn_executable_p "$ac_path_SED" || continue
7804 # Check for GNU ac_path_SED and select it if it is found.
7805   # Check for GNU $ac_path_SED
7806 case `"$ac_path_SED" --version 2>&1` in
7807 *GNU*)
7808   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7809 *)
7810   ac_count=0
7811   $as_echo_n 0123456789 >"conftest.in"
7812   while :
7813   do
7814     cat "conftest.in" "conftest.in" >"conftest.tmp"
7815     mv "conftest.tmp" "conftest.in"
7816     cp "conftest.in" "conftest.nl"
7817     $as_echo '' >> "conftest.nl"
7818     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7819     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7820     as_fn_arith $ac_count + 1 && ac_count=$as_val
7821     if test $ac_count -gt ${ac_path_SED_max-0}; then
7822       # Best one so far, save it but keep looking for a better one
7823       ac_cv_path_SED="$ac_path_SED"
7824       ac_path_SED_max=$ac_count
7825     fi
7826     # 10*(2^10) chars as input seems more than enough
7827     test $ac_count -gt 10 && break
7828   done
7829   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7830 esac
7831
7832       $ac_path_SED_found && break 3
7833     done
7834   done
7835   done
7836 IFS=$as_save_IFS
7837   if test -z "$ac_cv_path_SED"; then
7838     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7839   fi
7840 else
7841   ac_cv_path_SED=$SED
7842 fi
7843
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7846 $as_echo "$ac_cv_path_SED" >&6; }
7847  SED="$ac_cv_path_SED"
7848   rm -f conftest.sed
7849
7850 test -z "$SED" && SED=sed
7851 Xsed="$SED -e 1s/^X//"
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7864 $as_echo_n "checking for fgrep... " >&6; }
7865 if ${ac_cv_path_FGREP+:} false; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7869    then ac_cv_path_FGREP="$GREP -F"
7870    else
7871      if test -z "$FGREP"; then
7872   ac_path_FGREP_found=false
7873   # Loop through the user's path and test for each of PROGNAME-LIST
7874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7876 do
7877   IFS=$as_save_IFS
7878   test -z "$as_dir" && as_dir=.
7879     for ac_prog in fgrep; do
7880     for ac_exec_ext in '' $ac_executable_extensions; do
7881       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7882       as_fn_executable_p "$ac_path_FGREP" || continue
7883 # Check for GNU ac_path_FGREP and select it if it is found.
7884   # Check for GNU $ac_path_FGREP
7885 case `"$ac_path_FGREP" --version 2>&1` in
7886 *GNU*)
7887   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7888 *)
7889   ac_count=0
7890   $as_echo_n 0123456789 >"conftest.in"
7891   while :
7892   do
7893     cat "conftest.in" "conftest.in" >"conftest.tmp"
7894     mv "conftest.tmp" "conftest.in"
7895     cp "conftest.in" "conftest.nl"
7896     $as_echo 'FGREP' >> "conftest.nl"
7897     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7898     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7899     as_fn_arith $ac_count + 1 && ac_count=$as_val
7900     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7901       # Best one so far, save it but keep looking for a better one
7902       ac_cv_path_FGREP="$ac_path_FGREP"
7903       ac_path_FGREP_max=$ac_count
7904     fi
7905     # 10*(2^10) chars as input seems more than enough
7906     test $ac_count -gt 10 && break
7907   done
7908   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7909 esac
7910
7911       $ac_path_FGREP_found && break 3
7912     done
7913   done
7914   done
7915 IFS=$as_save_IFS
7916   if test -z "$ac_cv_path_FGREP"; then
7917     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7918   fi
7919 else
7920   ac_cv_path_FGREP=$FGREP
7921 fi
7922
7923    fi
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7926 $as_echo "$ac_cv_path_FGREP" >&6; }
7927  FGREP="$ac_cv_path_FGREP"
7928
7929
7930 test -z "$GREP" && GREP=grep
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 # Check whether --with-gnu-ld was given.
7951 if test "${with_gnu_ld+set}" = set; then :
7952   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7953 else
7954   with_gnu_ld=no
7955 fi
7956
7957 ac_prog=ld
7958 if test "$GCC" = yes; then
7959   # Check if gcc -print-prog-name=ld gives a path.
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7961 $as_echo_n "checking for ld used by $CC... " >&6; }
7962   case $host in
7963   *-*-mingw*)
7964     # gcc leaves a trailing carriage return which upsets mingw
7965     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7966   *)
7967     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7968   esac
7969   case $ac_prog in
7970     # Accept absolute paths.
7971     [\\/]* | ?:[\\/]*)
7972       re_direlt='/[^/][^/]*/\.\./'
7973       # Canonicalize the pathname of ld
7974       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7975       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7976         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7977       done
7978       test -z "$LD" && LD="$ac_prog"
7979       ;;
7980   "")
7981     # If it fails, then pretend we aren't using GCC.
7982     ac_prog=ld
7983     ;;
7984   *)
7985     # If it is relative, then search for the first ld in PATH.
7986     with_gnu_ld=unknown
7987     ;;
7988   esac
7989 elif test "$with_gnu_ld" = yes; then
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7991 $as_echo_n "checking for GNU ld... " >&6; }
7992 else
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7994 $as_echo_n "checking for non-GNU ld... " >&6; }
7995 fi
7996 if ${lt_cv_path_LD+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   if test -z "$LD"; then
8000   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001   for ac_dir in $PATH; do
8002     IFS="$lt_save_ifs"
8003     test -z "$ac_dir" && ac_dir=.
8004     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8005       lt_cv_path_LD="$ac_dir/$ac_prog"
8006       # Check to see if the program is GNU ld.  I'd rather use --version,
8007       # but apparently some variants of GNU ld only accept -v.
8008       # Break only if it was the GNU/non-GNU ld that we prefer.
8009       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8010       *GNU* | *'with BFD'*)
8011         test "$with_gnu_ld" != no && break
8012         ;;
8013       *)
8014         test "$with_gnu_ld" != yes && break
8015         ;;
8016       esac
8017     fi
8018   done
8019   IFS="$lt_save_ifs"
8020 else
8021   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8022 fi
8023 fi
8024
8025 LD="$lt_cv_path_LD"
8026 if test -n "$LD"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8028 $as_echo "$LD" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8035 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8036 if ${lt_cv_prog_gnu_ld+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8040 case `$LD -v 2>&1 </dev/null` in
8041 *GNU* | *'with BFD'*)
8042   lt_cv_prog_gnu_ld=yes
8043   ;;
8044 *)
8045   lt_cv_prog_gnu_ld=no
8046   ;;
8047 esac
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8050 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8051 with_gnu_ld=$lt_cv_prog_gnu_ld
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8062 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8063 if ${lt_cv_path_NM+:} false; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   if test -n "$NM"; then
8067   # Let the user override the test.
8068   lt_cv_path_NM="$NM"
8069 else
8070   lt_nm_to_check="${ac_tool_prefix}nm"
8071   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8072     lt_nm_to_check="$lt_nm_to_check nm"
8073   fi
8074   for lt_tmp_nm in $lt_nm_to_check; do
8075     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8076     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8077       IFS="$lt_save_ifs"
8078       test -z "$ac_dir" && ac_dir=.
8079       tmp_nm="$ac_dir/$lt_tmp_nm"
8080       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8081         # Check to see if the nm accepts a BSD-compat flag.
8082         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8083         #   nm: unknown option "B" ignored
8084         # Tru64's nm complains that /dev/null is an invalid object file
8085         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8086         */dev/null* | *'Invalid file or object type'*)
8087           lt_cv_path_NM="$tmp_nm -B"
8088           break
8089           ;;
8090         *)
8091           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8092           */dev/null*)
8093             lt_cv_path_NM="$tmp_nm -p"
8094             break
8095             ;;
8096           *)
8097             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8098             continue # so that we can try to find one that supports BSD flags
8099             ;;
8100           esac
8101           ;;
8102         esac
8103       fi
8104     done
8105     IFS="$lt_save_ifs"
8106   done
8107   : ${lt_cv_path_NM=no}
8108 fi
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8111 $as_echo "$lt_cv_path_NM" >&6; }
8112 if test "$lt_cv_path_NM" != "no"; then
8113   NM="$lt_cv_path_NM"
8114 else
8115   # Didn't find any BSD compatible name lister, look for dumpbin.
8116   if test -n "$DUMPBIN"; then :
8117     # Let the user override the test.
8118   else
8119     if test -n "$ac_tool_prefix"; then
8120   for ac_prog in dumpbin "link -dump"
8121   do
8122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if ${ac_cv_prog_DUMPBIN+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   if test -n "$DUMPBIN"; then
8130   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   test -z "$as_dir" && as_dir=.
8137     for ac_exec_ext in '' $ac_executable_extensions; do
8138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141     break 2
8142   fi
8143 done
8144   done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 DUMPBIN=$ac_cv_prog_DUMPBIN
8150 if test -n "$DUMPBIN"; then
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8152 $as_echo "$DUMPBIN" >&6; }
8153 else
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158
8159     test -n "$DUMPBIN" && break
8160   done
8161 fi
8162 if test -z "$DUMPBIN"; then
8163   ac_ct_DUMPBIN=$DUMPBIN
8164   for ac_prog in dumpbin "link -dump"
8165 do
8166   # Extract the first word of "$ac_prog", so it can be a program name with args.
8167 set dummy $ac_prog; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   if test -n "$ac_ct_DUMPBIN"; then
8174   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   test -z "$as_dir" && as_dir=.
8181     for ac_exec_ext in '' $ac_executable_extensions; do
8182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185     break 2
8186   fi
8187 done
8188   done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8194 if test -n "$ac_ct_DUMPBIN"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8196 $as_echo "$ac_ct_DUMPBIN" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202
8203   test -n "$ac_ct_DUMPBIN" && break
8204 done
8205
8206   if test "x$ac_ct_DUMPBIN" = x; then
8207     DUMPBIN=":"
8208   else
8209     case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215     DUMPBIN=$ac_ct_DUMPBIN
8216   fi
8217 fi
8218
8219     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8220     *COFF*)
8221       DUMPBIN="$DUMPBIN -symbols"
8222       ;;
8223     *)
8224       DUMPBIN=:
8225       ;;
8226     esac
8227   fi
8228
8229   if test "$DUMPBIN" != ":"; then
8230     NM="$DUMPBIN"
8231   fi
8232 fi
8233 test -z "$NM" && NM=nm
8234
8235
8236
8237
8238
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8241 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8242 if ${lt_cv_nm_interface+:} false; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   lt_cv_nm_interface="BSD nm"
8246   echo "int some_variable = 0;" > conftest.$ac_ext
8247   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8248   (eval "$ac_compile" 2>conftest.err)
8249   cat conftest.err >&5
8250   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8251   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8252   cat conftest.err >&5
8253   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8254   cat conftest.out >&5
8255   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8256     lt_cv_nm_interface="MS dumpbin"
8257   fi
8258   rm -f conftest*
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8261 $as_echo "$lt_cv_nm_interface" >&6; }
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8264 $as_echo_n "checking whether ln -s works... " >&6; }
8265 LN_S=$as_ln_s
8266 if test "$LN_S" = "ln -s"; then
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8268 $as_echo "yes" >&6; }
8269 else
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8271 $as_echo "no, using $LN_S" >&6; }
8272 fi
8273
8274 # find the maximum length of command line arguments
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8276 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8277 if ${lt_cv_sys_max_cmd_len+:} false; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280     i=0
8281   teststring="ABCD"
8282
8283   case $build_os in
8284   msdosdjgpp*)
8285     # On DJGPP, this test can blow up pretty badly due to problems in libc
8286     # (any single argument exceeding 2000 bytes causes a buffer overrun
8287     # during glob expansion).  Even if it were fixed, the result of this
8288     # check would be larger than it should be.
8289     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8290     ;;
8291
8292   gnu*)
8293     # Under GNU Hurd, this test is not required because there is
8294     # no limit to the length of command line arguments.
8295     # Libtool will interpret -1 as no limit whatsoever
8296     lt_cv_sys_max_cmd_len=-1;
8297     ;;
8298
8299   cygwin* | mingw* | cegcc*)
8300     # On Win9x/ME, this test blows up -- it succeeds, but takes
8301     # about 5 minutes as the teststring grows exponentially.
8302     # Worse, since 9x/ME are not pre-emptively multitasking,
8303     # you end up with a "frozen" computer, even though with patience
8304     # the test eventually succeeds (with a max line length of 256k).
8305     # Instead, let's just punt: use the minimum linelength reported by
8306     # all of the supported platforms: 8192 (on NT/2K/XP).
8307     lt_cv_sys_max_cmd_len=8192;
8308     ;;
8309
8310   mint*)
8311     # On MiNT this can take a long time and run out of memory.
8312     lt_cv_sys_max_cmd_len=8192;
8313     ;;
8314
8315   amigaos*)
8316     # On AmigaOS with pdksh, this test takes hours, literally.
8317     # So we just punt and use a minimum line length of 8192.
8318     lt_cv_sys_max_cmd_len=8192;
8319     ;;
8320
8321   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8322     # This has been around since 386BSD, at least.  Likely further.
8323     if test -x /sbin/sysctl; then
8324       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8325     elif test -x /usr/sbin/sysctl; then
8326       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8327     else
8328       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8329     fi
8330     # And add a safety zone
8331     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8332     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8333     ;;
8334
8335   interix*)
8336     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8337     lt_cv_sys_max_cmd_len=196608
8338     ;;
8339
8340   os2*)
8341     # The test takes a long time on OS/2.
8342     lt_cv_sys_max_cmd_len=8192
8343     ;;
8344
8345   osf*)
8346     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8347     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8348     # nice to cause kernel panics so lets avoid the loop below.
8349     # First set a reasonable default.
8350     lt_cv_sys_max_cmd_len=16384
8351     #
8352     if test -x /sbin/sysconfig; then
8353       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8354         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8355       esac
8356     fi
8357     ;;
8358   sco3.2v5*)
8359     lt_cv_sys_max_cmd_len=102400
8360     ;;
8361   sysv5* | sco5v6* | sysv4.2uw2*)
8362     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8363     if test -n "$kargmax"; then
8364       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8365     else
8366       lt_cv_sys_max_cmd_len=32768
8367     fi
8368     ;;
8369   *)
8370     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8371     if test -n "$lt_cv_sys_max_cmd_len"; then
8372       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8373       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8374     else
8375       # Make teststring a little bigger before we do anything with it.
8376       # a 1K string should be a reasonable start.
8377       for i in 1 2 3 4 5 6 7 8 ; do
8378         teststring=$teststring$teststring
8379       done
8380       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8381       # If test is not a shell built-in, we'll probably end up computing a
8382       # maximum length that is only half of the actual maximum length, but
8383       # we can't tell.
8384       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8385                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8386               test $i != 17 # 1/2 MB should be enough
8387       do
8388         i=`expr $i + 1`
8389         teststring=$teststring$teststring
8390       done
8391       # Only check the string length outside the loop.
8392       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8393       teststring=
8394       # Add a significant safety factor because C++ compilers can tack on
8395       # massive amounts of additional arguments before passing them to the
8396       # linker.  It appears as though 1/2 is a usable value.
8397       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8398     fi
8399     ;;
8400   esac
8401
8402 fi
8403
8404 if test -n $lt_cv_sys_max_cmd_len ; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8406 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8409 $as_echo "none" >&6; }
8410 fi
8411 max_cmd_len=$lt_cv_sys_max_cmd_len
8412
8413
8414
8415
8416
8417
8418 : ${CP="cp -f"}
8419 : ${MV="mv -f"}
8420 : ${RM="rm -f"}
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8423 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8424 # Try some XSI features
8425 xsi_shell=no
8426 ( _lt_dummy="a/b/c"
8427   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8428       = c,a/b,b/c, \
8429     && eval 'test $(( 1 + 1 )) -eq 2 \
8430     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8431   && xsi_shell=yes
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8433 $as_echo "$xsi_shell" >&6; }
8434
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8437 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8438 lt_shell_append=no
8439 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8440     >/dev/null 2>&1 \
8441   && lt_shell_append=yes
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8443 $as_echo "$lt_shell_append" >&6; }
8444
8445
8446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8447   lt_unset=unset
8448 else
8449   lt_unset=false
8450 fi
8451
8452
8453
8454
8455
8456 # test EBCDIC or ASCII
8457 case `echo X|tr X '\101'` in
8458  A) # ASCII based system
8459     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8460   lt_SP2NL='tr \040 \012'
8461   lt_NL2SP='tr \015\012 \040\040'
8462   ;;
8463  *) # EBCDIC based system
8464   lt_SP2NL='tr \100 \n'
8465   lt_NL2SP='tr \r\n \100\100'
8466   ;;
8467 esac
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8478 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8479 if ${lt_cv_to_host_file_cmd+:} false; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   case $host in
8483   *-*-mingw* )
8484     case $build in
8485       *-*-mingw* ) # actually msys
8486         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8487         ;;
8488       *-*-cygwin* )
8489         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8490         ;;
8491       * ) # otherwise, assume *nix
8492         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8493         ;;
8494     esac
8495     ;;
8496   *-*-cygwin* )
8497     case $build in
8498       *-*-mingw* ) # actually msys
8499         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8500         ;;
8501       *-*-cygwin* )
8502         lt_cv_to_host_file_cmd=func_convert_file_noop
8503         ;;
8504       * ) # otherwise, assume *nix
8505         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8506         ;;
8507     esac
8508     ;;
8509   * ) # unhandled hosts (and "normal" native builds)
8510     lt_cv_to_host_file_cmd=func_convert_file_noop
8511     ;;
8512 esac
8513
8514 fi
8515
8516 to_host_file_cmd=$lt_cv_to_host_file_cmd
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8518 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8519
8520
8521
8522
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8525 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8526 if ${lt_cv_to_tool_file_cmd+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   #assume ordinary cross tools, or native build.
8530 lt_cv_to_tool_file_cmd=func_convert_file_noop
8531 case $host in
8532   *-*-mingw* )
8533     case $build in
8534       *-*-mingw* ) # actually msys
8535         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8536         ;;
8537     esac
8538     ;;
8539 esac
8540
8541 fi
8542
8543 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8545 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8546
8547
8548
8549
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8552 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8553 if ${lt_cv_ld_reload_flag+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   lt_cv_ld_reload_flag='-r'
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8559 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8560 reload_flag=$lt_cv_ld_reload_flag
8561 case $reload_flag in
8562 "" | " "*) ;;
8563 *) reload_flag=" $reload_flag" ;;
8564 esac
8565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8566 case $host_os in
8567   cygwin* | mingw* | pw32* | cegcc*)
8568     if test "$GCC" != yes; then
8569       reload_cmds=false
8570     fi
8571     ;;
8572   darwin*)
8573     if test "$GCC" = yes; then
8574       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8575     else
8576       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8577     fi
8578     ;;
8579 esac
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589 if test -n "$ac_tool_prefix"; then
8590   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_OBJDUMP+:} false; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   if test -n "$OBJDUMP"; then
8598   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603   IFS=$as_save_IFS
8604   test -z "$as_dir" && as_dir=.
8605     for ac_exec_ext in '' $ac_executable_extensions; do
8606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609     break 2
8610   fi
8611 done
8612   done
8613 IFS=$as_save_IFS
8614
8615 fi
8616 fi
8617 OBJDUMP=$ac_cv_prog_OBJDUMP
8618 if test -n "$OBJDUMP"; then
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8620 $as_echo "$OBJDUMP" >&6; }
8621 else
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627 fi
8628 if test -z "$ac_cv_prog_OBJDUMP"; then
8629   ac_ct_OBJDUMP=$OBJDUMP
8630   # Extract the first word of "objdump", so it can be a program name with args.
8631 set dummy objdump; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637   if test -n "$ac_ct_OBJDUMP"; then
8638   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8642 do
8643   IFS=$as_save_IFS
8644   test -z "$as_dir" && as_dir=.
8645     for ac_exec_ext in '' $ac_executable_extensions; do
8646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649     break 2
8650   fi
8651 done
8652   done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8658 if test -n "$ac_ct_OBJDUMP"; then
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8660 $as_echo "$ac_ct_OBJDUMP" >&6; }
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665
8666   if test "x$ac_ct_OBJDUMP" = x; then
8667     OBJDUMP="false"
8668   else
8669     case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675     OBJDUMP=$ac_ct_OBJDUMP
8676   fi
8677 else
8678   OBJDUMP="$ac_cv_prog_OBJDUMP"
8679 fi
8680
8681 test -z "$OBJDUMP" && OBJDUMP=objdump
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8692 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8693 if ${lt_cv_deplibs_check_method+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   lt_cv_file_magic_cmd='$MAGIC_CMD'
8697 lt_cv_file_magic_test_file=
8698 lt_cv_deplibs_check_method='unknown'
8699 # Need to set the preceding variable on all platforms that support
8700 # interlibrary dependencies.
8701 # 'none' -- dependencies not supported.
8702 # `unknown' -- same as none, but documents that we really don't know.
8703 # 'pass_all' -- all dependencies passed with no checks.
8704 # 'test_compile' -- check by making test program.
8705 # 'file_magic [[regex]]' -- check by looking for files in library path
8706 # which responds to the $file_magic_cmd with a given extended regex.
8707 # If you have `file' or equivalent on your system and you're not sure
8708 # whether `pass_all' will *always* work, you probably want this one.
8709
8710 case $host_os in
8711 aix[4-9]*)
8712   lt_cv_deplibs_check_method=pass_all
8713   ;;
8714
8715 beos*)
8716   lt_cv_deplibs_check_method=pass_all
8717   ;;
8718
8719 bsdi[45]*)
8720   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8721   lt_cv_file_magic_cmd='/usr/bin/file -L'
8722   lt_cv_file_magic_test_file=/shlib/libc.so
8723   ;;
8724
8725 cygwin*)
8726   # func_win32_libid is a shell function defined in ltmain.sh
8727   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8728   lt_cv_file_magic_cmd='func_win32_libid'
8729   ;;
8730
8731 mingw* | pw32*)
8732   # Base MSYS/MinGW do not provide the 'file' command needed by
8733   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8734   # unless we find 'file', for example because we are cross-compiling.
8735   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8736   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8737     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8738     lt_cv_file_magic_cmd='func_win32_libid'
8739   else
8740     # Keep this pattern in sync with the one in func_win32_libid.
8741     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8742     lt_cv_file_magic_cmd='$OBJDUMP -f'
8743   fi
8744   ;;
8745
8746 cegcc*)
8747   # use the weaker test based on 'objdump'. See mingw*.
8748   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8749   lt_cv_file_magic_cmd='$OBJDUMP -f'
8750   ;;
8751
8752 darwin* | rhapsody*)
8753   lt_cv_deplibs_check_method=pass_all
8754   ;;
8755
8756 freebsd* | dragonfly*)
8757   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8758     case $host_cpu in
8759     i*86 )
8760       # Not sure whether the presence of OpenBSD here was a mistake.
8761       # Let's accept both of them until this is cleared up.
8762       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8763       lt_cv_file_magic_cmd=/usr/bin/file
8764       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8765       ;;
8766     esac
8767   else
8768     lt_cv_deplibs_check_method=pass_all
8769   fi
8770   ;;
8771
8772 gnu*)
8773   lt_cv_deplibs_check_method=pass_all
8774   ;;
8775
8776 haiku*)
8777   lt_cv_deplibs_check_method=pass_all
8778   ;;
8779
8780 hpux10.20* | hpux11*)
8781   lt_cv_file_magic_cmd=/usr/bin/file
8782   case $host_cpu in
8783   ia64*)
8784     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8785     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8786     ;;
8787   hppa*64*)
8788     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]'
8789     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8790     ;;
8791   *)
8792     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8793     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8794     ;;
8795   esac
8796   ;;
8797
8798 interix[3-9]*)
8799   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8800   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8801   ;;
8802
8803 irix5* | irix6* | nonstopux*)
8804   case $LD in
8805   *-32|*"-32 ") libmagic=32-bit;;
8806   *-n32|*"-n32 ") libmagic=N32;;
8807   *-64|*"-64 ") libmagic=64-bit;;
8808   *) libmagic=never-match;;
8809   esac
8810   lt_cv_deplibs_check_method=pass_all
8811   ;;
8812
8813 # This must be glibc/ELF.
8814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8815   lt_cv_deplibs_check_method=pass_all
8816   ;;
8817
8818 netbsd*)
8819   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8821   else
8822     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8823   fi
8824   ;;
8825
8826 newos6*)
8827   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8828   lt_cv_file_magic_cmd=/usr/bin/file
8829   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8830   ;;
8831
8832 *nto* | *qnx*)
8833   lt_cv_deplibs_check_method=pass_all
8834   ;;
8835
8836 openbsd*)
8837   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8838     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8839   else
8840     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8841   fi
8842   ;;
8843
8844 osf3* | osf4* | osf5*)
8845   lt_cv_deplibs_check_method=pass_all
8846   ;;
8847
8848 rdos*)
8849   lt_cv_deplibs_check_method=pass_all
8850   ;;
8851
8852 solaris*)
8853   lt_cv_deplibs_check_method=pass_all
8854   ;;
8855
8856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8857   lt_cv_deplibs_check_method=pass_all
8858   ;;
8859
8860 sysv4 | sysv4.3*)
8861   case $host_vendor in
8862   motorola)
8863     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]'
8864     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8865     ;;
8866   ncr)
8867     lt_cv_deplibs_check_method=pass_all
8868     ;;
8869   sequent)
8870     lt_cv_file_magic_cmd='/bin/file'
8871     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8872     ;;
8873   sni)
8874     lt_cv_file_magic_cmd='/bin/file'
8875     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8876     lt_cv_file_magic_test_file=/lib/libc.so
8877     ;;
8878   siemens)
8879     lt_cv_deplibs_check_method=pass_all
8880     ;;
8881   pc)
8882     lt_cv_deplibs_check_method=pass_all
8883     ;;
8884   esac
8885   ;;
8886
8887 tpf*)
8888   lt_cv_deplibs_check_method=pass_all
8889   ;;
8890 esac
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8894 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8895
8896 file_magic_glob=
8897 want_nocaseglob=no
8898 if test "$build" = "$host"; then
8899   case $host_os in
8900   mingw* | pw32*)
8901     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8902       want_nocaseglob=yes
8903     else
8904       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8905     fi
8906     ;;
8907   esac
8908 fi
8909
8910 file_magic_cmd=$lt_cv_file_magic_cmd
8911 deplibs_check_method=$lt_cv_deplibs_check_method
8912 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935 if test -n "$ac_tool_prefix"; then
8936   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_prog_DLLTOOL+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   if test -n "$DLLTOOL"; then
8944   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8960
8961 fi
8962 fi
8963 DLLTOOL=$ac_cv_prog_DLLTOOL
8964 if test -n "$DLLTOOL"; then
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8966 $as_echo "$DLLTOOL" >&6; }
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 fi
8971
8972
8973 fi
8974 if test -z "$ac_cv_prog_DLLTOOL"; then
8975   ac_ct_DLLTOOL=$DLLTOOL
8976   # Extract the first word of "dlltool", so it can be a program name with args.
8977 set dummy dlltool; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   if test -n "$ac_ct_DLLTOOL"; then
8984   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991     for ac_exec_ext in '' $ac_executable_extensions; do
8992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998   done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9004 if test -n "$ac_ct_DLLTOOL"; then
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9006 $as_echo "$ac_ct_DLLTOOL" >&6; }
9007 else
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012   if test "x$ac_ct_DLLTOOL" = x; then
9013     DLLTOOL="false"
9014   else
9015     case $cross_compiling:$ac_tool_warned in
9016 yes:)
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9019 ac_tool_warned=yes ;;
9020 esac
9021     DLLTOOL=$ac_ct_DLLTOOL
9022   fi
9023 else
9024   DLLTOOL="$ac_cv_prog_DLLTOOL"
9025 fi
9026
9027 test -z "$DLLTOOL" && DLLTOOL=dlltool
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9039 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9040 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   lt_cv_sharedlib_from_linklib_cmd='unknown'
9044
9045 case $host_os in
9046 cygwin* | mingw* | pw32* | cegcc*)
9047   # two different shell functions defined in ltmain.sh
9048   # decide which to use based on capabilities of $DLLTOOL
9049   case `$DLLTOOL --help 2>&1` in
9050   *--identify-strict*)
9051     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9052     ;;
9053   *)
9054     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9055     ;;
9056   esac
9057   ;;
9058 *)
9059   # fallback: assume linklib IS sharedlib
9060   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9061   ;;
9062 esac
9063
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9066 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9067 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9068 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9069
9070
9071
9072
9073
9074
9075
9076 if test -n "$ac_tool_prefix"; then
9077   for ac_prog in ar
9078   do
9079     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_AR+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   if test -n "$AR"; then
9087   ac_cv_prog_AR="$AR" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092   IFS=$as_save_IFS
9093   test -z "$as_dir" && as_dir=.
9094     for ac_exec_ext in '' $ac_executable_extensions; do
9095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098     break 2
9099   fi
9100 done
9101   done
9102 IFS=$as_save_IFS
9103
9104 fi
9105 fi
9106 AR=$ac_cv_prog_AR
9107 if test -n "$AR"; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9109 $as_echo "$AR" >&6; }
9110 else
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116     test -n "$AR" && break
9117   done
9118 fi
9119 if test -z "$AR"; then
9120   ac_ct_AR=$AR
9121   for ac_prog in ar
9122 do
9123   # Extract the first word of "$ac_prog", so it can be a program name with args.
9124 set dummy $ac_prog; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   if test -n "$ac_ct_AR"; then
9131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9132 else
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138     for ac_exec_ext in '' $ac_executable_extensions; do
9139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140     ac_cv_prog_ac_ct_AR="$ac_prog"
9141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145   done
9146 IFS=$as_save_IFS
9147
9148 fi
9149 fi
9150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9151 if test -n "$ac_ct_AR"; then
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9153 $as_echo "$ac_ct_AR" >&6; }
9154 else
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158
9159
9160   test -n "$ac_ct_AR" && break
9161 done
9162
9163   if test "x$ac_ct_AR" = x; then
9164     AR="false"
9165   else
9166     case $cross_compiling:$ac_tool_warned in
9167 yes:)
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9171 esac
9172     AR=$ac_ct_AR
9173   fi
9174 fi
9175
9176 : ${AR=ar}
9177 : ${AR_FLAGS=cru}
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9190 $as_echo_n "checking for archiver @FILE support... " >&6; }
9191 if ${lt_cv_ar_at_file+:} false; then :
9192   $as_echo_n "(cached) " >&6
9193 else
9194   lt_cv_ar_at_file=no
9195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h.  */
9197
9198 int
9199 main ()
9200 {
9201
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 if ac_fn_c_try_compile "$LINENO"; then :
9207   echo conftest.$ac_objext > conftest.lst
9208       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9209       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9210   (eval $lt_ar_try) 2>&5
9211   ac_status=$?
9212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213   test $ac_status = 0; }
9214       if test "$ac_status" -eq 0; then
9215         # Ensure the archiver fails upon bogus file names.
9216         rm -f conftest.$ac_objext libconftest.a
9217         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9218   (eval $lt_ar_try) 2>&5
9219   ac_status=$?
9220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9221   test $ac_status = 0; }
9222         if test "$ac_status" -ne 0; then
9223           lt_cv_ar_at_file=@
9224         fi
9225       fi
9226       rm -f conftest.* libconftest.a
9227
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9233 $as_echo "$lt_cv_ar_at_file" >&6; }
9234
9235 if test "x$lt_cv_ar_at_file" = xno; then
9236   archiver_list_spec=
9237 else
9238   archiver_list_spec=$lt_cv_ar_at_file
9239 fi
9240
9241
9242
9243
9244
9245
9246
9247 if test -n "$ac_tool_prefix"; then
9248   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9249 set dummy ${ac_tool_prefix}strip; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_prog_STRIP+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   if test -n "$STRIP"; then
9256   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272
9273 fi
9274 fi
9275 STRIP=$ac_cv_prog_STRIP
9276 if test -n "$STRIP"; then
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9278 $as_echo "$STRIP" >&6; }
9279 else
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283
9284
9285 fi
9286 if test -z "$ac_cv_prog_STRIP"; then
9287   ac_ct_STRIP=$STRIP
9288   # Extract the first word of "strip", so it can be a program name with args.
9289 set dummy strip; ac_word=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; }
9292 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   if test -n "$ac_ct_STRIP"; then
9296   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301   IFS=$as_save_IFS
9302   test -z "$as_dir" && as_dir=.
9303     for ac_exec_ext in '' $ac_executable_extensions; do
9304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9305     ac_cv_prog_ac_ct_STRIP="strip"
9306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307     break 2
9308   fi
9309 done
9310   done
9311 IFS=$as_save_IFS
9312
9313 fi
9314 fi
9315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9316 if test -n "$ac_ct_STRIP"; then
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9318 $as_echo "$ac_ct_STRIP" >&6; }
9319 else
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9322 fi
9323
9324   if test "x$ac_ct_STRIP" = x; then
9325     STRIP=":"
9326   else
9327     case $cross_compiling:$ac_tool_warned in
9328 yes:)
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9331 ac_tool_warned=yes ;;
9332 esac
9333     STRIP=$ac_ct_STRIP
9334   fi
9335 else
9336   STRIP="$ac_cv_prog_STRIP"
9337 fi
9338
9339 test -z "$STRIP" && STRIP=:
9340
9341
9342
9343
9344
9345
9346 if test -n "$ac_tool_prefix"; then
9347   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350 $as_echo_n "checking for $ac_word... " >&6; }
9351 if ${ac_cv_prog_RANLIB+:} false; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354   if test -n "$RANLIB"; then
9355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360   IFS=$as_save_IFS
9361   test -z "$as_dir" && as_dir=.
9362     for ac_exec_ext in '' $ac_executable_extensions; do
9363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366     break 2
9367   fi
9368 done
9369   done
9370 IFS=$as_save_IFS
9371
9372 fi
9373 fi
9374 RANLIB=$ac_cv_prog_RANLIB
9375 if test -n "$RANLIB"; then
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9377 $as_echo "$RANLIB" >&6; }
9378 else
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9381 fi
9382
9383
9384 fi
9385 if test -z "$ac_cv_prog_RANLIB"; then
9386   ac_ct_RANLIB=$RANLIB
9387   # Extract the first word of "ranlib", so it can be a program name with args.
9388 set dummy ranlib; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9392   $as_echo_n "(cached) " >&6
9393 else
9394   if test -n "$ac_ct_RANLIB"; then
9395   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400   IFS=$as_save_IFS
9401   test -z "$as_dir" && as_dir=.
9402     for ac_exec_ext in '' $ac_executable_extensions; do
9403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404     ac_cv_prog_ac_ct_RANLIB="ranlib"
9405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406     break 2
9407   fi
9408 done
9409   done
9410 IFS=$as_save_IFS
9411
9412 fi
9413 fi
9414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9415 if test -n "$ac_ct_RANLIB"; then
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9417 $as_echo "$ac_ct_RANLIB" >&6; }
9418 else
9419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421 fi
9422
9423   if test "x$ac_ct_RANLIB" = x; then
9424     RANLIB=":"
9425   else
9426     case $cross_compiling:$ac_tool_warned in
9427 yes:)
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9430 ac_tool_warned=yes ;;
9431 esac
9432     RANLIB=$ac_ct_RANLIB
9433   fi
9434 else
9435   RANLIB="$ac_cv_prog_RANLIB"
9436 fi
9437
9438 test -z "$RANLIB" && RANLIB=:
9439
9440
9441
9442
9443
9444
9445 # Determine commands to create old-style static archives.
9446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9447 old_postinstall_cmds='chmod 644 $oldlib'
9448 old_postuninstall_cmds=
9449
9450 if test -n "$RANLIB"; then
9451   case $host_os in
9452   openbsd*)
9453     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9454     ;;
9455   *)
9456     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9457     ;;
9458   esac
9459   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9460 fi
9461
9462 case $host_os in
9463   darwin*)
9464     lock_old_archive_extraction=yes ;;
9465   *)
9466     lock_old_archive_extraction=no ;;
9467 esac
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507 # If no C compiler was specified, use CC.
9508 LTCC=${LTCC-"$CC"}
9509
9510 # If no C compiler flags were specified, use CFLAGS.
9511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9512
9513 # Allow CC to be a program name with arguments.
9514 compiler=$CC
9515
9516
9517 # Check for command to grab the raw symbol name followed by C symbol from nm.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9519 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9520 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523
9524 # These are sane defaults that work on at least a few old systems.
9525 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9526
9527 # Character class describing NM global symbol codes.
9528 symcode='[BCDEGRST]'
9529
9530 # Regexp to match symbols that can be accessed directly from C.
9531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9532
9533 # Define system-specific variables.
9534 case $host_os in
9535 aix*)
9536   symcode='[BCDT]'
9537   ;;
9538 cygwin* | mingw* | pw32* | cegcc*)
9539   symcode='[ABCDGISTW]'
9540   ;;
9541 hpux*)
9542   if test "$host_cpu" = ia64; then
9543     symcode='[ABCDEGRST]'
9544   fi
9545   ;;
9546 irix* | nonstopux*)
9547   symcode='[BCDEGRST]'
9548   ;;
9549 osf*)
9550   symcode='[BCDEGQRST]'
9551   ;;
9552 solaris*)
9553   symcode='[BDRT]'
9554   ;;
9555 sco3.2v5*)
9556   symcode='[DT]'
9557   ;;
9558 sysv4.2uw2*)
9559   symcode='[DT]'
9560   ;;
9561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9562   symcode='[ABDT]'
9563   ;;
9564 sysv4)
9565   symcode='[DFNSTU]'
9566   ;;
9567 esac
9568
9569 # If we're using GNU nm, then use its standard symbol codes.
9570 case `$NM -V 2>&1` in
9571 *GNU* | *'with BFD'*)
9572   symcode='[ABCDGIRSTW]' ;;
9573 esac
9574
9575 # Transform an extracted symbol line into a proper C declaration.
9576 # Some systems (esp. on ia64) link data and code symbols differently,
9577 # so use this general approach.
9578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9579
9580 # Transform an extracted symbol line into symbol name and symbol address
9581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9582 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'"
9583
9584 # Handle CRLF in mingw tool chain
9585 opt_cr=
9586 case $build_os in
9587 mingw*)
9588   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9589   ;;
9590 esac
9591
9592 # Try without a prefix underscore, then with it.
9593 for ac_symprfx in "" "_"; do
9594
9595   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9596   symxfrm="\\1 $ac_symprfx\\2 \\2"
9597
9598   # Write the raw and C identifiers.
9599   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9600     # Fake it for dumpbin and say T for any non-static function
9601     # and D for any global variable.
9602     # Also find C++ and __fastcall symbols from MSVC++,
9603     # which start with @ or ?.
9604     lt_cv_sys_global_symbol_pipe="$AWK '"\
9605 "     {last_section=section; section=\$ 3};"\
9606 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9607 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9608 "     \$ 0!~/External *\|/{next};"\
9609 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9610 "     {if(hide[section]) next};"\
9611 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9612 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9613 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9614 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9615 "     ' prfx=^$ac_symprfx"
9616   else
9617     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9618   fi
9619   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9620
9621   # Check to see that the pipe works correctly.
9622   pipe_works=no
9623
9624   rm -f conftest*
9625   cat > conftest.$ac_ext <<_LT_EOF
9626 #ifdef __cplusplus
9627 extern "C" {
9628 #endif
9629 char nm_test_var;
9630 void nm_test_func(void);
9631 void nm_test_func(void){}
9632 #ifdef __cplusplus
9633 }
9634 #endif
9635 int main(){nm_test_var='a';nm_test_func();return(0);}
9636 _LT_EOF
9637
9638   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9639   (eval $ac_compile) 2>&5
9640   ac_status=$?
9641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9642   test $ac_status = 0; }; then
9643     # Now try to grab the symbols.
9644     nlist=conftest.nm
9645     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9646   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9647   ac_status=$?
9648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9649   test $ac_status = 0; } && test -s "$nlist"; then
9650       # Try sorting and uniquifying the output.
9651       if sort "$nlist" | uniq > "$nlist"T; then
9652         mv -f "$nlist"T "$nlist"
9653       else
9654         rm -f "$nlist"T
9655       fi
9656
9657       # Make sure that we snagged all the symbols we need.
9658       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9659         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9660           cat <<_LT_EOF > conftest.$ac_ext
9661 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9662 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9663 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9664    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9665 # define LT_DLSYM_CONST
9666 #elif defined(__osf__)
9667 /* This system does not cope well with relocations in const data.  */
9668 # define LT_DLSYM_CONST
9669 #else
9670 # define LT_DLSYM_CONST const
9671 #endif
9672
9673 #ifdef __cplusplus
9674 extern "C" {
9675 #endif
9676
9677 _LT_EOF
9678           # Now generate the symbol file.
9679           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9680
9681           cat <<_LT_EOF >> conftest.$ac_ext
9682
9683 /* The mapping between symbol names and symbols.  */
9684 LT_DLSYM_CONST struct {
9685   const char *name;
9686   void       *address;
9687 }
9688 lt__PROGRAM__LTX_preloaded_symbols[] =
9689 {
9690   { "@PROGRAM@", (void *) 0 },
9691 _LT_EOF
9692           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9693           cat <<\_LT_EOF >> conftest.$ac_ext
9694   {0, (void *) 0}
9695 };
9696
9697 /* This works around a problem in FreeBSD linker */
9698 #ifdef FREEBSD_WORKAROUND
9699 static const void *lt_preloaded_setup() {
9700   return lt__PROGRAM__LTX_preloaded_symbols;
9701 }
9702 #endif
9703
9704 #ifdef __cplusplus
9705 }
9706 #endif
9707 _LT_EOF
9708           # Now try linking the two files.
9709           mv conftest.$ac_objext conftstm.$ac_objext
9710           lt_globsym_save_LIBS=$LIBS
9711           lt_globsym_save_CFLAGS=$CFLAGS
9712           LIBS="conftstm.$ac_objext"
9713           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9714           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9715   (eval $ac_link) 2>&5
9716   ac_status=$?
9717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9718   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9719             pipe_works=yes
9720           fi
9721           LIBS=$lt_globsym_save_LIBS
9722           CFLAGS=$lt_globsym_save_CFLAGS
9723         else
9724           echo "cannot find nm_test_func in $nlist" >&5
9725         fi
9726       else
9727         echo "cannot find nm_test_var in $nlist" >&5
9728       fi
9729     else
9730       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9731     fi
9732   else
9733     echo "$progname: failed program was:" >&5
9734     cat conftest.$ac_ext >&5
9735   fi
9736   rm -rf conftest* conftst*
9737
9738   # Do not use the global_symbol_pipe unless it works.
9739   if test "$pipe_works" = yes; then
9740     break
9741   else
9742     lt_cv_sys_global_symbol_pipe=
9743   fi
9744 done
9745
9746 fi
9747
9748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9749   lt_cv_sys_global_symbol_to_cdecl=
9750 fi
9751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9753 $as_echo "failed" >&6; }
9754 else
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9756 $as_echo "ok" >&6; }
9757 fi
9758
9759 # Response file support.
9760 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9761   nm_file_list_spec='@'
9762 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9763   nm_file_list_spec='@'
9764 fi
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9793 $as_echo_n "checking for sysroot... " >&6; }
9794
9795 # Check whether --with-sysroot was given.
9796 if test "${with_sysroot+set}" = set; then :
9797   withval=$with_sysroot;
9798 else
9799   with_sysroot=no
9800 fi
9801
9802
9803 lt_sysroot=
9804 case ${with_sysroot} in #(
9805  yes)
9806    if test "$GCC" = yes; then
9807      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9808    fi
9809    ;; #(
9810  /*)
9811    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9812    ;; #(
9813  no|'')
9814    ;; #(
9815  *)
9816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9817 $as_echo "${with_sysroot}" >&6; }
9818    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9819    ;;
9820 esac
9821
9822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9823 $as_echo "${lt_sysroot:-no}" >&6; }
9824
9825
9826
9827
9828
9829 # Check whether --enable-libtool-lock was given.
9830 if test "${enable_libtool_lock+set}" = set; then :
9831   enableval=$enable_libtool_lock;
9832 fi
9833
9834 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9835
9836 # Some flags need to be propagated to the compiler or linker for good
9837 # libtool support.
9838 case $host in
9839 ia64-*-hpux*)
9840   # Find out which ABI we are using.
9841   echo 'int i;' > conftest.$ac_ext
9842   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9843   (eval $ac_compile) 2>&5
9844   ac_status=$?
9845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9846   test $ac_status = 0; }; then
9847     case `/usr/bin/file conftest.$ac_objext` in
9848       *ELF-32*)
9849         HPUX_IA64_MODE="32"
9850         ;;
9851       *ELF-64*)
9852         HPUX_IA64_MODE="64"
9853         ;;
9854     esac
9855   fi
9856   rm -rf conftest*
9857   ;;
9858 *-*-irix6*)
9859   # Find out which ABI we are using.
9860   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9862   (eval $ac_compile) 2>&5
9863   ac_status=$?
9864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9865   test $ac_status = 0; }; then
9866     if test "$lt_cv_prog_gnu_ld" = yes; then
9867       case `/usr/bin/file conftest.$ac_objext` in
9868         *32-bit*)
9869           LD="${LD-ld} -melf32bsmip"
9870           ;;
9871         *N32*)
9872           LD="${LD-ld} -melf32bmipn32"
9873           ;;
9874         *64-bit*)
9875           LD="${LD-ld} -melf64bmip"
9876         ;;
9877       esac
9878     else
9879       case `/usr/bin/file conftest.$ac_objext` in
9880         *32-bit*)
9881           LD="${LD-ld} -32"
9882           ;;
9883         *N32*)
9884           LD="${LD-ld} -n32"
9885           ;;
9886         *64-bit*)
9887           LD="${LD-ld} -64"
9888           ;;
9889       esac
9890     fi
9891   fi
9892   rm -rf conftest*
9893   ;;
9894
9895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9897   # Find out which ABI we are using.
9898   echo 'int i;' > conftest.$ac_ext
9899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9900   (eval $ac_compile) 2>&5
9901   ac_status=$?
9902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903   test $ac_status = 0; }; then
9904     case `/usr/bin/file conftest.o` in
9905       *32-bit*)
9906         case $host in
9907           x86_64-*kfreebsd*-gnu)
9908             LD="${LD-ld} -m elf_i386_fbsd"
9909             ;;
9910           x86_64-*linux*)
9911             LD="${LD-ld} -m elf_i386"
9912             ;;
9913           ppc64-*linux*|powerpc64-*linux*)
9914             LD="${LD-ld} -m elf32ppclinux"
9915             ;;
9916           s390x-*linux*)
9917             LD="${LD-ld} -m elf_s390"
9918             ;;
9919           sparc64-*linux*)
9920             LD="${LD-ld} -m elf32_sparc"
9921             ;;
9922         esac
9923         ;;
9924       *64-bit*)
9925         case $host in
9926           x86_64-*kfreebsd*-gnu)
9927             LD="${LD-ld} -m elf_x86_64_fbsd"
9928             ;;
9929           x86_64-*linux*)
9930             LD="${LD-ld} -m elf_x86_64"
9931             ;;
9932           ppc*-*linux*|powerpc*-*linux*)
9933             LD="${LD-ld} -m elf64ppc"
9934             ;;
9935           s390*-*linux*|s390*-*tpf*)
9936             LD="${LD-ld} -m elf64_s390"
9937             ;;
9938           sparc*-*linux*)
9939             LD="${LD-ld} -m elf64_sparc"
9940             ;;
9941         esac
9942         ;;
9943     esac
9944   fi
9945   rm -rf conftest*
9946   ;;
9947
9948 *-*-sco3.2v5*)
9949   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9950   SAVE_CFLAGS="$CFLAGS"
9951   CFLAGS="$CFLAGS -belf"
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9953 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9954 if ${lt_cv_cc_needs_belf+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   ac_ext=c
9958 ac_cpp='$CPP $CPPFLAGS'
9959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962
9963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965
9966 int
9967 main ()
9968 {
9969
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975   lt_cv_cc_needs_belf=yes
9976 else
9977   lt_cv_cc_needs_belf=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980     conftest$ac_exeext conftest.$ac_ext
9981      ac_ext=c
9982 ac_cpp='$CPP $CPPFLAGS'
9983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9986
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9989 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9990   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9991     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9992     CFLAGS="$SAVE_CFLAGS"
9993   fi
9994   ;;
9995 *-*solaris*)
9996   # Find out which ABI we are using.
9997   echo 'int i;' > conftest.$ac_ext
9998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9999   (eval $ac_compile) 2>&5
10000   ac_status=$?
10001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002   test $ac_status = 0; }; then
10003     case `/usr/bin/file conftest.o` in
10004     *64-bit*)
10005       case $lt_cv_prog_gnu_ld in
10006       yes*)
10007         case $host in
10008         i?86-*-solaris*)
10009           LD="${LD-ld} -m elf_x86_64"
10010           ;;
10011         sparc*-*-solaris*)
10012           LD="${LD-ld} -m elf64_sparc"
10013           ;;
10014         esac
10015         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10016         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10017           LD="${LD-ld}_sol2"
10018         fi
10019         ;;
10020       *)
10021         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10022           LD="${LD-ld} -64"
10023         fi
10024         ;;
10025       esac
10026       ;;
10027     esac
10028   fi
10029   rm -rf conftest*
10030   ;;
10031 esac
10032
10033 need_locks="$enable_libtool_lock"
10034
10035 if test -n "$ac_tool_prefix"; then
10036   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10037 set dummy ${ac_tool_prefix}mt; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   if test -n "$MANIFEST_TOOL"; then
10044   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049   IFS=$as_save_IFS
10050   test -z "$as_dir" && as_dir=.
10051     for ac_exec_ext in '' $ac_executable_extensions; do
10052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055     break 2
10056   fi
10057 done
10058   done
10059 IFS=$as_save_IFS
10060
10061 fi
10062 fi
10063 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10064 if test -n "$MANIFEST_TOOL"; then
10065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10066 $as_echo "$MANIFEST_TOOL" >&6; }
10067 else
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071
10072
10073 fi
10074 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10075   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10076   # Extract the first word of "mt", so it can be a program name with args.
10077 set dummy mt; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   if test -n "$ac_ct_MANIFEST_TOOL"; then
10084   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089   IFS=$as_save_IFS
10090   test -z "$as_dir" && as_dir=.
10091     for ac_exec_ext in '' $ac_executable_extensions; do
10092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095     break 2
10096   fi
10097 done
10098   done
10099 IFS=$as_save_IFS
10100
10101 fi
10102 fi
10103 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10104 if test -n "$ac_ct_MANIFEST_TOOL"; then
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10106 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10107 else
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111
10112   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10113     MANIFEST_TOOL=":"
10114   else
10115     case $cross_compiling:$ac_tool_warned in
10116 yes:)
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119 ac_tool_warned=yes ;;
10120 esac
10121     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10122   fi
10123 else
10124   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10125 fi
10126
10127 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10129 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10130 if ${lt_cv_path_mainfest_tool+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   lt_cv_path_mainfest_tool=no
10134   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10135   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10136   cat conftest.err >&5
10137   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10138     lt_cv_path_mainfest_tool=yes
10139   fi
10140   rm -f conftest*
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10143 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10144 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10145   MANIFEST_TOOL=:
10146 fi
10147
10148
10149
10150
10151
10152
10153   case $host_os in
10154     rhapsody* | darwin*)
10155     if test -n "$ac_tool_prefix"; then
10156   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10157 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   if test -n "$DSYMUTIL"; then
10164   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171     for ac_exec_ext in '' $ac_executable_extensions; do
10172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178   done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10184 if test -n "$DSYMUTIL"; then
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10186 $as_echo "$DSYMUTIL" >&6; }
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191
10192
10193 fi
10194 if test -z "$ac_cv_prog_DSYMUTIL"; then
10195   ac_ct_DSYMUTIL=$DSYMUTIL
10196   # Extract the first word of "dsymutil", so it can be a program name with args.
10197 set dummy dsymutil; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   if test -n "$ac_ct_DSYMUTIL"; then
10204   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10205 else
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10208 do
10209   IFS=$as_save_IFS
10210   test -z "$as_dir" && as_dir=.
10211     for ac_exec_ext in '' $ac_executable_extensions; do
10212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10213     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215     break 2
10216   fi
10217 done
10218   done
10219 IFS=$as_save_IFS
10220
10221 fi
10222 fi
10223 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10224 if test -n "$ac_ct_DSYMUTIL"; then
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10226 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10227 else
10228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10230 fi
10231
10232   if test "x$ac_ct_DSYMUTIL" = x; then
10233     DSYMUTIL=":"
10234   else
10235     case $cross_compiling:$ac_tool_warned in
10236 yes:)
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10239 ac_tool_warned=yes ;;
10240 esac
10241     DSYMUTIL=$ac_ct_DSYMUTIL
10242   fi
10243 else
10244   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10245 fi
10246
10247     if test -n "$ac_tool_prefix"; then
10248   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10249 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_NMEDIT+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   if test -n "$NMEDIT"; then
10256   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261   IFS=$as_save_IFS
10262   test -z "$as_dir" && as_dir=.
10263     for ac_exec_ext in '' $ac_executable_extensions; do
10264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267     break 2
10268   fi
10269 done
10270   done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 NMEDIT=$ac_cv_prog_NMEDIT
10276 if test -n "$NMEDIT"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10278 $as_echo "$NMEDIT" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284
10285 fi
10286 if test -z "$ac_cv_prog_NMEDIT"; then
10287   ac_ct_NMEDIT=$NMEDIT
10288   # Extract the first word of "nmedit", so it can be a program name with args.
10289 set dummy nmedit; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   if test -n "$ac_ct_NMEDIT"; then
10296   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10297 else
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301   IFS=$as_save_IFS
10302   test -z "$as_dir" && as_dir=.
10303     for ac_exec_ext in '' $ac_executable_extensions; do
10304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307     break 2
10308   fi
10309 done
10310   done
10311 IFS=$as_save_IFS
10312
10313 fi
10314 fi
10315 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10316 if test -n "$ac_ct_NMEDIT"; then
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10318 $as_echo "$ac_ct_NMEDIT" >&6; }
10319 else
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323
10324   if test "x$ac_ct_NMEDIT" = x; then
10325     NMEDIT=":"
10326   else
10327     case $cross_compiling:$ac_tool_warned in
10328 yes:)
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10331 ac_tool_warned=yes ;;
10332 esac
10333     NMEDIT=$ac_ct_NMEDIT
10334   fi
10335 else
10336   NMEDIT="$ac_cv_prog_NMEDIT"
10337 fi
10338
10339     if test -n "$ac_tool_prefix"; then
10340   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10341 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_LIPO+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   if test -n "$LIPO"; then
10348   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353   IFS=$as_save_IFS
10354   test -z "$as_dir" && as_dir=.
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362   done
10363 IFS=$as_save_IFS
10364
10365 fi
10366 fi
10367 LIPO=$ac_cv_prog_LIPO
10368 if test -n "$LIPO"; then
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10370 $as_echo "$LIPO" >&6; }
10371 else
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375
10376
10377 fi
10378 if test -z "$ac_cv_prog_LIPO"; then
10379   ac_ct_LIPO=$LIPO
10380   # Extract the first word of "lipo", so it can be a program name with args.
10381 set dummy lipo; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   if test -n "$ac_ct_LIPO"; then
10388   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393   IFS=$as_save_IFS
10394   test -z "$as_dir" && as_dir=.
10395     for ac_exec_ext in '' $ac_executable_extensions; do
10396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397     ac_cv_prog_ac_ct_LIPO="lipo"
10398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399     break 2
10400   fi
10401 done
10402   done
10403 IFS=$as_save_IFS
10404
10405 fi
10406 fi
10407 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10408 if test -n "$ac_ct_LIPO"; then
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10410 $as_echo "$ac_ct_LIPO" >&6; }
10411 else
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10414 fi
10415
10416   if test "x$ac_ct_LIPO" = x; then
10417     LIPO=":"
10418   else
10419     case $cross_compiling:$ac_tool_warned in
10420 yes:)
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10423 ac_tool_warned=yes ;;
10424 esac
10425     LIPO=$ac_ct_LIPO
10426   fi
10427 else
10428   LIPO="$ac_cv_prog_LIPO"
10429 fi
10430
10431     if test -n "$ac_tool_prefix"; then
10432   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10433 set dummy ${ac_tool_prefix}otool; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_prog_OTOOL+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   if test -n "$OTOOL"; then
10440   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10441 else
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10444 do
10445   IFS=$as_save_IFS
10446   test -z "$as_dir" && as_dir=.
10447     for ac_exec_ext in '' $ac_executable_extensions; do
10448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451     break 2
10452   fi
10453 done
10454   done
10455 IFS=$as_save_IFS
10456
10457 fi
10458 fi
10459 OTOOL=$ac_cv_prog_OTOOL
10460 if test -n "$OTOOL"; then
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10462 $as_echo "$OTOOL" >&6; }
10463 else
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 fi
10467
10468
10469 fi
10470 if test -z "$ac_cv_prog_OTOOL"; then
10471   ac_ct_OTOOL=$OTOOL
10472   # Extract the first word of "otool", so it can be a program name with args.
10473 set dummy otool; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   if test -n "$ac_ct_OTOOL"; then
10480   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_prog_ac_ct_OTOOL="otool"
10490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494   done
10495 IFS=$as_save_IFS
10496
10497 fi
10498 fi
10499 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10500 if test -n "$ac_ct_OTOOL"; then
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10502 $as_echo "$ac_ct_OTOOL" >&6; }
10503 else
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507
10508   if test "x$ac_ct_OTOOL" = x; then
10509     OTOOL=":"
10510   else
10511     case $cross_compiling:$ac_tool_warned in
10512 yes:)
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10515 ac_tool_warned=yes ;;
10516 esac
10517     OTOOL=$ac_ct_OTOOL
10518   fi
10519 else
10520   OTOOL="$ac_cv_prog_OTOOL"
10521 fi
10522
10523     if test -n "$ac_tool_prefix"; then
10524   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10525 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if ${ac_cv_prog_OTOOL64+:} false; then :
10529   $as_echo_n "(cached) " >&6
10530 else
10531   if test -n "$OTOOL64"; then
10532   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10533 else
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10536 do
10537   IFS=$as_save_IFS
10538   test -z "$as_dir" && as_dir=.
10539     for ac_exec_ext in '' $ac_executable_extensions; do
10540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543     break 2
10544   fi
10545 done
10546   done
10547 IFS=$as_save_IFS
10548
10549 fi
10550 fi
10551 OTOOL64=$ac_cv_prog_OTOOL64
10552 if test -n "$OTOOL64"; then
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10554 $as_echo "$OTOOL64" >&6; }
10555 else
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10558 fi
10559
10560
10561 fi
10562 if test -z "$ac_cv_prog_OTOOL64"; then
10563   ac_ct_OTOOL64=$OTOOL64
10564   # Extract the first word of "otool64", so it can be a program name with args.
10565 set dummy otool64; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   if test -n "$ac_ct_OTOOL64"; then
10572   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577   IFS=$as_save_IFS
10578   test -z "$as_dir" && as_dir=.
10579     for ac_exec_ext in '' $ac_executable_extensions; do
10580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581     ac_cv_prog_ac_ct_OTOOL64="otool64"
10582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583     break 2
10584   fi
10585 done
10586   done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10592 if test -n "$ac_ct_OTOOL64"; then
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10594 $as_echo "$ac_ct_OTOOL64" >&6; }
10595 else
10596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600   if test "x$ac_ct_OTOOL64" = x; then
10601     OTOOL64=":"
10602   else
10603     case $cross_compiling:$ac_tool_warned in
10604 yes:)
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10607 ac_tool_warned=yes ;;
10608 esac
10609     OTOOL64=$ac_ct_OTOOL64
10610   fi
10611 else
10612   OTOOL64="$ac_cv_prog_OTOOL64"
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10642 $as_echo_n "checking for -single_module linker flag... " >&6; }
10643 if ${lt_cv_apple_cc_single_mod+:} false; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   lt_cv_apple_cc_single_mod=no
10647       if test -z "${LT_MULTI_MODULE}"; then
10648         # By default we will add the -single_module flag. You can override
10649         # by either setting the environment variable LT_MULTI_MODULE
10650         # non-empty at configure time, or by adding -multi_module to the
10651         # link flags.
10652         rm -rf libconftest.dylib*
10653         echo "int foo(void){return 1;}" > conftest.c
10654         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10655 -dynamiclib -Wl,-single_module conftest.c" >&5
10656         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10657           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10658         _lt_result=$?
10659         # If there is a non-empty error log, and "single_module"
10660         # appears in it, assume the flag caused a linker warning
10661         if test -s conftest.err && $GREP single_module conftest.err; then
10662           cat conftest.err >&5
10663         # Otherwise, if the output was created with a 0 exit code from
10664         # the compiler, it worked.
10665         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10666           lt_cv_apple_cc_single_mod=yes
10667         else
10668           cat conftest.err >&5
10669         fi
10670         rm -rf libconftest.dylib*
10671         rm -f conftest.*
10672       fi
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10675 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10676
10677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10678 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10679 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682   lt_cv_ld_exported_symbols_list=no
10683       save_LDFLAGS=$LDFLAGS
10684       echo "_main" > conftest.sym
10685       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h.  */
10688
10689 int
10690 main ()
10691 {
10692
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698   lt_cv_ld_exported_symbols_list=yes
10699 else
10700   lt_cv_ld_exported_symbols_list=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext \
10703     conftest$ac_exeext conftest.$ac_ext
10704         LDFLAGS="$save_LDFLAGS"
10705
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10708 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10709
10710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10711 $as_echo_n "checking for -force_load linker flag... " >&6; }
10712 if ${lt_cv_ld_force_load+:} false; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   lt_cv_ld_force_load=no
10716       cat > conftest.c << _LT_EOF
10717 int forced_loaded() { return 2;}
10718 _LT_EOF
10719       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10720       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10721       echo "$AR cru libconftest.a conftest.o" >&5
10722       $AR cru libconftest.a conftest.o 2>&5
10723       echo "$RANLIB libconftest.a" >&5
10724       $RANLIB libconftest.a 2>&5
10725       cat > conftest.c << _LT_EOF
10726 int main() { return 0;}
10727 _LT_EOF
10728       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10729       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10730       _lt_result=$?
10731       if test -s conftest.err && $GREP force_load conftest.err; then
10732         cat conftest.err >&5
10733       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10734         lt_cv_ld_force_load=yes
10735       else
10736         cat conftest.err >&5
10737       fi
10738         rm -f conftest.err libconftest.a conftest conftest.c
10739         rm -rf conftest.dSYM
10740
10741 fi
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10743 $as_echo "$lt_cv_ld_force_load" >&6; }
10744     case $host_os in
10745     rhapsody* | darwin1.[012])
10746       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10747     darwin1.*)
10748       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10749     darwin*) # darwin 5.x on
10750       # if running on 10.5 or later, the deployment target defaults
10751       # to the OS version, if on x86, and 10.4, the deployment
10752       # target defaults to 10.4. Don't you love it?
10753       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10754         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10755           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10756         10.[012]*)
10757           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10758         10.*)
10759           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10760       esac
10761     ;;
10762   esac
10763     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10764       _lt_dar_single_mod='$single_module'
10765     fi
10766     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10767       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10768     else
10769       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10770     fi
10771     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10772       _lt_dsymutil='~$DSYMUTIL $lib || :'
10773     else
10774       _lt_dsymutil=
10775     fi
10776     ;;
10777   esac
10778
10779 for ac_header in dlfcn.h
10780 do :
10781   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10782 "
10783 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10784   cat >>confdefs.h <<_ACEOF
10785 #define HAVE_DLFCN_H 1
10786 _ACEOF
10787
10788 fi
10789
10790 done
10791
10792
10793
10794
10795
10796 # Set options
10797
10798
10799
10800         enable_dlopen=no
10801
10802
10803   enable_win32_dll=no
10804
10805
10806             # Check whether --enable-shared was given.
10807 if test "${enable_shared+set}" = set; then :
10808   enableval=$enable_shared; p=${PACKAGE-default}
10809     case $enableval in
10810     yes) enable_shared=yes ;;
10811     no) enable_shared=no ;;
10812     *)
10813       enable_shared=no
10814       # Look at the argument we got.  We use all the common list separators.
10815       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10816       for pkg in $enableval; do
10817         IFS="$lt_save_ifs"
10818         if test "X$pkg" = "X$p"; then
10819           enable_shared=yes
10820         fi
10821       done
10822       IFS="$lt_save_ifs"
10823       ;;
10824     esac
10825 else
10826   enable_shared=yes
10827 fi
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839 # Check whether --with-pic was given.
10840 if test "${with_pic+set}" = set; then :
10841   withval=$with_pic; lt_p=${PACKAGE-default}
10842     case $withval in
10843     yes|no) pic_mode=$withval ;;
10844     *)
10845       pic_mode=default
10846       # Look at the argument we got.  We use all the common list separators.
10847       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10848       for lt_pkg in $withval; do
10849         IFS="$lt_save_ifs"
10850         if test "X$lt_pkg" = "X$lt_p"; then
10851           pic_mode=yes
10852         fi
10853       done
10854       IFS="$lt_save_ifs"
10855       ;;
10856     esac
10857 else
10858   pic_mode=default
10859 fi
10860
10861
10862 test -z "$pic_mode" && pic_mode=default
10863
10864
10865
10866
10867
10868
10869
10870   # Check whether --enable-fast-install was given.
10871 if test "${enable_fast_install+set}" = set; then :
10872   enableval=$enable_fast_install; p=${PACKAGE-default}
10873     case $enableval in
10874     yes) enable_fast_install=yes ;;
10875     no) enable_fast_install=no ;;
10876     *)
10877       enable_fast_install=no
10878       # Look at the argument we got.  We use all the common list separators.
10879       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10880       for pkg in $enableval; do
10881         IFS="$lt_save_ifs"
10882         if test "X$pkg" = "X$p"; then
10883           enable_fast_install=yes
10884         fi
10885       done
10886       IFS="$lt_save_ifs"
10887       ;;
10888     esac
10889 else
10890   enable_fast_install=yes
10891 fi
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903 # This can be used to rebuild libtool when needed
10904 LIBTOOL_DEPS="$ltmain"
10905
10906 # Always use our own libtool.
10907 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938 test -z "$LN_S" && LN_S="ln -s"
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953 if test -n "${ZSH_VERSION+set}" ; then
10954    setopt NO_GLOB_SUBST
10955 fi
10956
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10958 $as_echo_n "checking for objdir... " >&6; }
10959 if ${lt_cv_objdir+:} false; then :
10960   $as_echo_n "(cached) " >&6
10961 else
10962   rm -f .libs 2>/dev/null
10963 mkdir .libs 2>/dev/null
10964 if test -d .libs; then
10965   lt_cv_objdir=.libs
10966 else
10967   # MS-DOS does not allow filenames that begin with a dot.
10968   lt_cv_objdir=_libs
10969 fi
10970 rmdir .libs 2>/dev/null
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10973 $as_echo "$lt_cv_objdir" >&6; }
10974 objdir=$lt_cv_objdir
10975
10976
10977
10978
10979
10980 cat >>confdefs.h <<_ACEOF
10981 #define LT_OBJDIR "$lt_cv_objdir/"
10982 _ACEOF
10983
10984
10985
10986
10987 case $host_os in
10988 aix3*)
10989   # AIX sometimes has problems with the GCC collect2 program.  For some
10990   # reason, if we set the COLLECT_NAMES environment variable, the problems
10991   # vanish in a puff of smoke.
10992   if test "X${COLLECT_NAMES+set}" != Xset; then
10993     COLLECT_NAMES=
10994     export COLLECT_NAMES
10995   fi
10996   ;;
10997 esac
10998
10999 # Global variables:
11000 ofile=libtool
11001 can_build_shared=yes
11002
11003 # All known linkers require a `.a' archive for static linking (except MSVC,
11004 # which needs '.lib').
11005 libext=a
11006
11007 with_gnu_ld="$lt_cv_prog_gnu_ld"
11008
11009 old_CC="$CC"
11010 old_CFLAGS="$CFLAGS"
11011
11012 # Set sane defaults for various variables
11013 test -z "$CC" && CC=cc
11014 test -z "$LTCC" && LTCC=$CC
11015 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11016 test -z "$LD" && LD=ld
11017 test -z "$ac_objext" && ac_objext=o
11018
11019 for cc_temp in $compiler""; do
11020   case $cc_temp in
11021     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11022     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11023     \-*) ;;
11024     *) break;;
11025   esac
11026 done
11027 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11028
11029
11030 # Only perform the check for file, if the check method requires it
11031 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11032 case $deplibs_check_method in
11033 file_magic*)
11034   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11036 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11038   $as_echo_n "(cached) " >&6
11039 else
11040   case $MAGIC_CMD in
11041 [\\/*] |  ?:[\\/]*)
11042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11043   ;;
11044 *)
11045   lt_save_MAGIC_CMD="$MAGIC_CMD"
11046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11048   for ac_dir in $ac_dummy; do
11049     IFS="$lt_save_ifs"
11050     test -z "$ac_dir" && ac_dir=.
11051     if test -f $ac_dir/${ac_tool_prefix}file; then
11052       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11053       if test -n "$file_magic_test_file"; then
11054         case $deplibs_check_method in
11055         "file_magic "*)
11056           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11059             $EGREP "$file_magic_regex" > /dev/null; then
11060             :
11061           else
11062             cat <<_LT_EOF 1>&2
11063
11064 *** Warning: the command libtool uses to detect shared libraries,
11065 *** $file_magic_cmd, produces output that libtool cannot recognize.
11066 *** The result is that libtool may fail to recognize shared libraries
11067 *** as such.  This will affect the creation of libtool libraries that
11068 *** depend on shared libraries, but programs linked with such libtool
11069 *** libraries will work regardless of this problem.  Nevertheless, you
11070 *** may want to report the problem to your system manager and/or to
11071 *** bug-libtool@gnu.org
11072
11073 _LT_EOF
11074           fi ;;
11075         esac
11076       fi
11077       break
11078     fi
11079   done
11080   IFS="$lt_save_ifs"
11081   MAGIC_CMD="$lt_save_MAGIC_CMD"
11082   ;;
11083 esac
11084 fi
11085
11086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11087 if test -n "$MAGIC_CMD"; then
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11089 $as_echo "$MAGIC_CMD" >&6; }
11090 else
11091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093 fi
11094
11095
11096
11097
11098
11099 if test -z "$lt_cv_path_MAGIC_CMD"; then
11100   if test -n "$ac_tool_prefix"; then
11101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11102 $as_echo_n "checking for file... " >&6; }
11103 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   case $MAGIC_CMD in
11107 [\\/*] |  ?:[\\/]*)
11108   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11109   ;;
11110 *)
11111   lt_save_MAGIC_CMD="$MAGIC_CMD"
11112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11113   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11114   for ac_dir in $ac_dummy; do
11115     IFS="$lt_save_ifs"
11116     test -z "$ac_dir" && ac_dir=.
11117     if test -f $ac_dir/file; then
11118       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11119       if test -n "$file_magic_test_file"; then
11120         case $deplibs_check_method in
11121         "file_magic "*)
11122           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11125             $EGREP "$file_magic_regex" > /dev/null; then
11126             :
11127           else
11128             cat <<_LT_EOF 1>&2
11129
11130 *** Warning: the command libtool uses to detect shared libraries,
11131 *** $file_magic_cmd, produces output that libtool cannot recognize.
11132 *** The result is that libtool may fail to recognize shared libraries
11133 *** as such.  This will affect the creation of libtool libraries that
11134 *** depend on shared libraries, but programs linked with such libtool
11135 *** libraries will work regardless of this problem.  Nevertheless, you
11136 *** may want to report the problem to your system manager and/or to
11137 *** bug-libtool@gnu.org
11138
11139 _LT_EOF
11140           fi ;;
11141         esac
11142       fi
11143       break
11144     fi
11145   done
11146   IFS="$lt_save_ifs"
11147   MAGIC_CMD="$lt_save_MAGIC_CMD"
11148   ;;
11149 esac
11150 fi
11151
11152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11153 if test -n "$MAGIC_CMD"; then
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11155 $as_echo "$MAGIC_CMD" >&6; }
11156 else
11157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11159 fi
11160
11161
11162   else
11163     MAGIC_CMD=:
11164   fi
11165 fi
11166
11167   fi
11168   ;;
11169 esac
11170
11171 # Use C for the default configuration in the libtool script
11172
11173 lt_save_CC="$CC"
11174 ac_ext=c
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11179
11180
11181 # Source file extension for C test sources.
11182 ac_ext=c
11183
11184 # Object file extension for compiled C test sources.
11185 objext=o
11186 objext=$objext
11187
11188 # Code to be used in simple compile tests
11189 lt_simple_compile_test_code="int some_variable = 0;"
11190
11191 # Code to be used in simple link tests
11192 lt_simple_link_test_code='int main(){return(0);}'
11193
11194
11195
11196
11197
11198
11199
11200 # If no C compiler was specified, use CC.
11201 LTCC=${LTCC-"$CC"}
11202
11203 # If no C compiler flags were specified, use CFLAGS.
11204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11205
11206 # Allow CC to be a program name with arguments.
11207 compiler=$CC
11208
11209 # Save the default compiler, since it gets overwritten when the other
11210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11211 compiler_DEFAULT=$CC
11212
11213 # save warnings/boilerplate of simple test code
11214 ac_outfile=conftest.$ac_objext
11215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11217 _lt_compiler_boilerplate=`cat conftest.err`
11218 $RM conftest*
11219
11220 ac_outfile=conftest.$ac_objext
11221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11223 _lt_linker_boilerplate=`cat conftest.err`
11224 $RM -r conftest*
11225
11226
11227 ## CAVEAT EMPTOR:
11228 ## There is no encapsulation within the following macros, do not change
11229 ## the running order or otherwise move them around unless you know exactly
11230 ## what you are doing...
11231 if test -n "$compiler"; then
11232
11233 lt_prog_compiler_no_builtin_flag=
11234
11235 if test "$GCC" = yes; then
11236   case $cc_basename in
11237   nvcc*)
11238     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11239   *)
11240     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11241   esac
11242
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11245 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   lt_cv_prog_compiler_rtti_exceptions=no
11249    ac_outfile=conftest.$ac_objext
11250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11251    lt_compiler_flag="-fno-rtti -fno-exceptions"
11252    # Insert the option either (1) after the last *FLAGS variable, or
11253    # (2) before a word containing "conftest.", or (3) at the end.
11254    # Note that $ac_compile itself does not contain backslashes and begins
11255    # with a dollar sign (not a hyphen), so the echo should work correctly.
11256    # The option is referenced via a variable to avoid confusing sed.
11257    lt_compile=`echo "$ac_compile" | $SED \
11258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11260    -e 's:$: $lt_compiler_flag:'`
11261    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11262    (eval "$lt_compile" 2>conftest.err)
11263    ac_status=$?
11264    cat conftest.err >&5
11265    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266    if (exit $ac_status) && test -s "$ac_outfile"; then
11267      # The compiler can only warn and ignore the option if not recognized
11268      # So say no if there are warnings other than the usual output.
11269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11272        lt_cv_prog_compiler_rtti_exceptions=yes
11273      fi
11274    fi
11275    $RM conftest*
11276
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11280
11281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11282     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11283 else
11284     :
11285 fi
11286
11287 fi
11288
11289
11290
11291
11292
11293
11294   lt_prog_compiler_wl=
11295 lt_prog_compiler_pic=
11296 lt_prog_compiler_static=
11297
11298
11299   if test "$GCC" = yes; then
11300     lt_prog_compiler_wl='-Wl,'
11301     lt_prog_compiler_static='-static'
11302
11303     case $host_os in
11304       aix*)
11305       # All AIX code is PIC.
11306       if test "$host_cpu" = ia64; then
11307         # AIX 5 now supports IA64 processor
11308         lt_prog_compiler_static='-Bstatic'
11309       fi
11310       ;;
11311
11312     amigaos*)
11313       case $host_cpu in
11314       powerpc)
11315             # see comment about AmigaOS4 .so support
11316             lt_prog_compiler_pic='-fPIC'
11317         ;;
11318       m68k)
11319             # FIXME: we need at least 68020 code to build shared libraries, but
11320             # adding the `-m68020' flag to GCC prevents building anything better,
11321             # like `-m68040'.
11322             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11323         ;;
11324       esac
11325       ;;
11326
11327     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11328       # PIC is the default for these OSes.
11329       ;;
11330
11331     mingw* | cygwin* | pw32* | os2* | cegcc*)
11332       # This hack is so that the source file can tell whether it is being
11333       # built for inclusion in a dll (and should export symbols for example).
11334       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11335       # (--disable-auto-import) libraries
11336       lt_prog_compiler_pic='-DDLL_EXPORT'
11337       ;;
11338
11339     darwin* | rhapsody*)
11340       # PIC is the default on this platform
11341       # Common symbols not allowed in MH_DYLIB files
11342       lt_prog_compiler_pic='-fno-common'
11343       ;;
11344
11345     haiku*)
11346       # PIC is the default for Haiku.
11347       # The "-static" flag exists, but is broken.
11348       lt_prog_compiler_static=
11349       ;;
11350
11351     hpux*)
11352       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11353       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11354       # sets the default TLS model and affects inlining.
11355       case $host_cpu in
11356       hppa*64*)
11357         # +Z the default
11358         ;;
11359       *)
11360         lt_prog_compiler_pic='-fPIC'
11361         ;;
11362       esac
11363       ;;
11364
11365     interix[3-9]*)
11366       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11367       # Instead, we relocate shared libraries at runtime.
11368       ;;
11369
11370     msdosdjgpp*)
11371       # Just because we use GCC doesn't mean we suddenly get shared libraries
11372       # on systems that don't support them.
11373       lt_prog_compiler_can_build_shared=no
11374       enable_shared=no
11375       ;;
11376
11377     *nto* | *qnx*)
11378       # QNX uses GNU C++, but need to define -shared option too, otherwise
11379       # it will coredump.
11380       lt_prog_compiler_pic='-fPIC -shared'
11381       ;;
11382
11383     sysv4*MP*)
11384       if test -d /usr/nec; then
11385         lt_prog_compiler_pic=-Kconform_pic
11386       fi
11387       ;;
11388
11389     *)
11390       lt_prog_compiler_pic='-fPIC'
11391       ;;
11392     esac
11393
11394     case $cc_basename in
11395     nvcc*) # Cuda Compiler Driver 2.2
11396       lt_prog_compiler_wl='-Xlinker '
11397       if test -n "$lt_prog_compiler_pic"; then
11398         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11399       fi
11400       ;;
11401     esac
11402   else
11403     # PORTME Check for flag to pass linker flags through the system compiler.
11404     case $host_os in
11405     aix*)
11406       lt_prog_compiler_wl='-Wl,'
11407       if test "$host_cpu" = ia64; then
11408         # AIX 5 now supports IA64 processor
11409         lt_prog_compiler_static='-Bstatic'
11410       else
11411         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11412       fi
11413       ;;
11414
11415     mingw* | cygwin* | pw32* | os2* | cegcc*)
11416       # This hack is so that the source file can tell whether it is being
11417       # built for inclusion in a dll (and should export symbols for example).
11418       lt_prog_compiler_pic='-DDLL_EXPORT'
11419       ;;
11420
11421     hpux9* | hpux10* | hpux11*)
11422       lt_prog_compiler_wl='-Wl,'
11423       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11424       # not for PA HP-UX.
11425       case $host_cpu in
11426       hppa*64*|ia64*)
11427         # +Z the default
11428         ;;
11429       *)
11430         lt_prog_compiler_pic='+Z'
11431         ;;
11432       esac
11433       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11434       lt_prog_compiler_static='${wl}-a ${wl}archive'
11435       ;;
11436
11437     irix5* | irix6* | nonstopux*)
11438       lt_prog_compiler_wl='-Wl,'
11439       # PIC (with -KPIC) is the default.
11440       lt_prog_compiler_static='-non_shared'
11441       ;;
11442
11443     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11444       case $cc_basename in
11445       # old Intel for x86_64 which still supported -KPIC.
11446       ecc*)
11447         lt_prog_compiler_wl='-Wl,'
11448         lt_prog_compiler_pic='-KPIC'
11449         lt_prog_compiler_static='-static'
11450         ;;
11451       # icc used to be incompatible with GCC.
11452       # ICC 10 doesn't accept -KPIC any more.
11453       icc* | ifort*)
11454         lt_prog_compiler_wl='-Wl,'
11455         lt_prog_compiler_pic='-fPIC'
11456         lt_prog_compiler_static='-static'
11457         ;;
11458       # Lahey Fortran 8.1.
11459       lf95*)
11460         lt_prog_compiler_wl='-Wl,'
11461         lt_prog_compiler_pic='--shared'
11462         lt_prog_compiler_static='--static'
11463         ;;
11464       nagfor*)
11465         # NAG Fortran compiler
11466         lt_prog_compiler_wl='-Wl,-Wl,,'
11467         lt_prog_compiler_pic='-PIC'
11468         lt_prog_compiler_static='-Bstatic'
11469         ;;
11470       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11471         # Portland Group compilers (*not* the Pentium gcc compiler,
11472         # which looks to be a dead project)
11473         lt_prog_compiler_wl='-Wl,'
11474         lt_prog_compiler_pic='-fpic'
11475         lt_prog_compiler_static='-Bstatic'
11476         ;;
11477       ccc*)
11478         lt_prog_compiler_wl='-Wl,'
11479         # All Alpha code is PIC.
11480         lt_prog_compiler_static='-non_shared'
11481         ;;
11482       xl* | bgxl* | bgf* | mpixl*)
11483         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11484         lt_prog_compiler_wl='-Wl,'
11485         lt_prog_compiler_pic='-qpic'
11486         lt_prog_compiler_static='-qstaticlink'
11487         ;;
11488       *)
11489         case `$CC -V 2>&1 | sed 5q` in
11490         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11491           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11492           lt_prog_compiler_pic='-KPIC'
11493           lt_prog_compiler_static='-Bstatic'
11494           lt_prog_compiler_wl=''
11495           ;;
11496         *Sun\ F* | *Sun*Fortran*)
11497           lt_prog_compiler_pic='-KPIC'
11498           lt_prog_compiler_static='-Bstatic'
11499           lt_prog_compiler_wl='-Qoption ld '
11500           ;;
11501         *Sun\ C*)
11502           # Sun C 5.9
11503           lt_prog_compiler_pic='-KPIC'
11504           lt_prog_compiler_static='-Bstatic'
11505           lt_prog_compiler_wl='-Wl,'
11506           ;;
11507         *Intel*\ [CF]*Compiler*)
11508           lt_prog_compiler_wl='-Wl,'
11509           lt_prog_compiler_pic='-fPIC'
11510           lt_prog_compiler_static='-static'
11511           ;;
11512         *Portland\ Group*)
11513           lt_prog_compiler_wl='-Wl,'
11514           lt_prog_compiler_pic='-fpic'
11515           lt_prog_compiler_static='-Bstatic'
11516           ;;
11517         esac
11518         ;;
11519       esac
11520       ;;
11521
11522     newsos6)
11523       lt_prog_compiler_pic='-KPIC'
11524       lt_prog_compiler_static='-Bstatic'
11525       ;;
11526
11527     *nto* | *qnx*)
11528       # QNX uses GNU C++, but need to define -shared option too, otherwise
11529       # it will coredump.
11530       lt_prog_compiler_pic='-fPIC -shared'
11531       ;;
11532
11533     osf3* | osf4* | osf5*)
11534       lt_prog_compiler_wl='-Wl,'
11535       # All OSF/1 code is PIC.
11536       lt_prog_compiler_static='-non_shared'
11537       ;;
11538
11539     rdos*)
11540       lt_prog_compiler_static='-non_shared'
11541       ;;
11542
11543     solaris*)
11544       lt_prog_compiler_pic='-KPIC'
11545       lt_prog_compiler_static='-Bstatic'
11546       case $cc_basename in
11547       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11548         lt_prog_compiler_wl='-Qoption ld ';;
11549       *)
11550         lt_prog_compiler_wl='-Wl,';;
11551       esac
11552       ;;
11553
11554     sunos4*)
11555       lt_prog_compiler_wl='-Qoption ld '
11556       lt_prog_compiler_pic='-PIC'
11557       lt_prog_compiler_static='-Bstatic'
11558       ;;
11559
11560     sysv4 | sysv4.2uw2* | sysv4.3*)
11561       lt_prog_compiler_wl='-Wl,'
11562       lt_prog_compiler_pic='-KPIC'
11563       lt_prog_compiler_static='-Bstatic'
11564       ;;
11565
11566     sysv4*MP*)
11567       if test -d /usr/nec ;then
11568         lt_prog_compiler_pic='-Kconform_pic'
11569         lt_prog_compiler_static='-Bstatic'
11570       fi
11571       ;;
11572
11573     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11574       lt_prog_compiler_wl='-Wl,'
11575       lt_prog_compiler_pic='-KPIC'
11576       lt_prog_compiler_static='-Bstatic'
11577       ;;
11578
11579     unicos*)
11580       lt_prog_compiler_wl='-Wl,'
11581       lt_prog_compiler_can_build_shared=no
11582       ;;
11583
11584     uts4*)
11585       lt_prog_compiler_pic='-pic'
11586       lt_prog_compiler_static='-Bstatic'
11587       ;;
11588
11589     *)
11590       lt_prog_compiler_can_build_shared=no
11591       ;;
11592     esac
11593   fi
11594
11595 case $host_os in
11596   # For platforms which do not support PIC, -DPIC is meaningless:
11597   *djgpp*)
11598     lt_prog_compiler_pic=
11599     ;;
11600   *)
11601     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11602     ;;
11603 esac
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11607 if ${lt_cv_prog_compiler_pic+:} false; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11613 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11614 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11615
11616 #
11617 # Check to make sure the PIC flag actually works.
11618 #
11619 if test -n "$lt_prog_compiler_pic"; then
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11622 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11623   $as_echo_n "(cached) " >&6
11624 else
11625   lt_cv_prog_compiler_pic_works=no
11626    ac_outfile=conftest.$ac_objext
11627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11628    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11629    # Insert the option either (1) after the last *FLAGS variable, or
11630    # (2) before a word containing "conftest.", or (3) at the end.
11631    # Note that $ac_compile itself does not contain backslashes and begins
11632    # with a dollar sign (not a hyphen), so the echo should work correctly.
11633    # The option is referenced via a variable to avoid confusing sed.
11634    lt_compile=`echo "$ac_compile" | $SED \
11635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11637    -e 's:$: $lt_compiler_flag:'`
11638    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11639    (eval "$lt_compile" 2>conftest.err)
11640    ac_status=$?
11641    cat conftest.err >&5
11642    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643    if (exit $ac_status) && test -s "$ac_outfile"; then
11644      # The compiler can only warn and ignore the option if not recognized
11645      # So say no if there are warnings other than the usual output.
11646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11647      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11648      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11649        lt_cv_prog_compiler_pic_works=yes
11650      fi
11651    fi
11652    $RM conftest*
11653
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11656 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11657
11658 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11659     case $lt_prog_compiler_pic in
11660      "" | " "*) ;;
11661      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11662      esac
11663 else
11664     lt_prog_compiler_pic=
11665      lt_prog_compiler_can_build_shared=no
11666 fi
11667
11668 fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680 #
11681 # Check to make sure the static flag actually works.
11682 #
11683 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11685 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11686 if ${lt_cv_prog_compiler_static_works+:} false; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   lt_cv_prog_compiler_static_works=no
11690    save_LDFLAGS="$LDFLAGS"
11691    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11692    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11693    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11694      # The linker can only warn and ignore the option if not recognized
11695      # So say no if there are warnings
11696      if test -s conftest.err; then
11697        # Append any errors to the config.log.
11698        cat conftest.err 1>&5
11699        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11700        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11701        if diff conftest.exp conftest.er2 >/dev/null; then
11702          lt_cv_prog_compiler_static_works=yes
11703        fi
11704      else
11705        lt_cv_prog_compiler_static_works=yes
11706      fi
11707    fi
11708    $RM -r conftest*
11709    LDFLAGS="$save_LDFLAGS"
11710
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11713 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11714
11715 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11716     :
11717 else
11718     lt_prog_compiler_static=
11719 fi
11720
11721
11722
11723
11724
11725
11726
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11729 if ${lt_cv_prog_compiler_c_o+:} false; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732   lt_cv_prog_compiler_c_o=no
11733    $RM -r conftest 2>/dev/null
11734    mkdir conftest
11735    cd conftest
11736    mkdir out
11737    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11738
11739    lt_compiler_flag="-o out/conftest2.$ac_objext"
11740    # Insert the option either (1) after the last *FLAGS variable, or
11741    # (2) before a word containing "conftest.", or (3) at the end.
11742    # Note that $ac_compile itself does not contain backslashes and begins
11743    # with a dollar sign (not a hyphen), so the echo should work correctly.
11744    lt_compile=`echo "$ac_compile" | $SED \
11745    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11746    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11747    -e 's:$: $lt_compiler_flag:'`
11748    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11749    (eval "$lt_compile" 2>out/conftest.err)
11750    ac_status=$?
11751    cat out/conftest.err >&5
11752    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11754    then
11755      # The compiler can only warn and ignore the option if not recognized
11756      # So say no if there are warnings
11757      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11758      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11759      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11760        lt_cv_prog_compiler_c_o=yes
11761      fi
11762    fi
11763    chmod u+w . 2>&5
11764    $RM conftest*
11765    # SGI C++ compiler will create directory out/ii_files/ for
11766    # template instantiation
11767    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11768    $RM out/* && rmdir out
11769    cd ..
11770    $RM -r conftest
11771    $RM conftest*
11772
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11776
11777
11778
11779
11780
11781
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11784 if ${lt_cv_prog_compiler_c_o+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   lt_cv_prog_compiler_c_o=no
11788    $RM -r conftest 2>/dev/null
11789    mkdir conftest
11790    cd conftest
11791    mkdir out
11792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11793
11794    lt_compiler_flag="-o out/conftest2.$ac_objext"
11795    # Insert the option either (1) after the last *FLAGS variable, or
11796    # (2) before a word containing "conftest.", or (3) at the end.
11797    # Note that $ac_compile itself does not contain backslashes and begins
11798    # with a dollar sign (not a hyphen), so the echo should work correctly.
11799    lt_compile=`echo "$ac_compile" | $SED \
11800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11802    -e 's:$: $lt_compiler_flag:'`
11803    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11804    (eval "$lt_compile" 2>out/conftest.err)
11805    ac_status=$?
11806    cat out/conftest.err >&5
11807    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11809    then
11810      # The compiler can only warn and ignore the option if not recognized
11811      # So say no if there are warnings
11812      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11813      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11814      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11815        lt_cv_prog_compiler_c_o=yes
11816      fi
11817    fi
11818    chmod u+w . 2>&5
11819    $RM conftest*
11820    # SGI C++ compiler will create directory out/ii_files/ for
11821    # template instantiation
11822    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11823    $RM out/* && rmdir out
11824    cd ..
11825    $RM -r conftest
11826    $RM conftest*
11827
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11831
11832
11833
11834
11835 hard_links="nottested"
11836 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11837   # do not overwrite the value of need_locks provided by the user
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11839 $as_echo_n "checking if we can lock with hard links... " >&6; }
11840   hard_links=yes
11841   $RM conftest*
11842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11843   touch conftest.a
11844   ln conftest.a conftest.b 2>&5 || hard_links=no
11845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11847 $as_echo "$hard_links" >&6; }
11848   if test "$hard_links" = no; then
11849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11850 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11851     need_locks=warn
11852   fi
11853 else
11854   need_locks=no
11855 fi
11856
11857
11858
11859
11860
11861
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11864
11865   runpath_var=
11866   allow_undefined_flag=
11867   always_export_symbols=no
11868   archive_cmds=
11869   archive_expsym_cmds=
11870   compiler_needs_object=no
11871   enable_shared_with_static_runtimes=no
11872   export_dynamic_flag_spec=
11873   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11874   hardcode_automatic=no
11875   hardcode_direct=no
11876   hardcode_direct_absolute=no
11877   hardcode_libdir_flag_spec=
11878   hardcode_libdir_separator=
11879   hardcode_minus_L=no
11880   hardcode_shlibpath_var=unsupported
11881   inherit_rpath=no
11882   link_all_deplibs=unknown
11883   module_cmds=
11884   module_expsym_cmds=
11885   old_archive_from_new_cmds=
11886   old_archive_from_expsyms_cmds=
11887   thread_safe_flag_spec=
11888   whole_archive_flag_spec=
11889   # include_expsyms should be a list of space-separated symbols to be *always*
11890   # included in the symbol list
11891   include_expsyms=
11892   # exclude_expsyms can be an extended regexp of symbols to exclude
11893   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11894   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11895   # as well as any symbol that contains `d'.
11896   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11897   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11898   # platforms (ab)use it in PIC code, but their linkers get confused if
11899   # the symbol is explicitly referenced.  Since portable code cannot
11900   # rely on this symbol name, it's probably fine to never include it in
11901   # preloaded symbol tables.
11902   # Exclude shared library initialization/finalization symbols.
11903   extract_expsyms_cmds=
11904
11905   case $host_os in
11906   cygwin* | mingw* | pw32* | cegcc*)
11907     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11908     # When not using gcc, we currently assume that we are using
11909     # Microsoft Visual C++.
11910     if test "$GCC" != yes; then
11911       with_gnu_ld=no
11912     fi
11913     ;;
11914   interix*)
11915     # we just hope/assume this is gcc and not c89 (= MSVC++)
11916     with_gnu_ld=yes
11917     ;;
11918   openbsd*)
11919     with_gnu_ld=no
11920     ;;
11921   esac
11922
11923   ld_shlibs=yes
11924
11925   # On some targets, GNU ld is compatible enough with the native linker
11926   # that we're better off using the native interface for both.
11927   lt_use_gnu_ld_interface=no
11928   if test "$with_gnu_ld" = yes; then
11929     case $host_os in
11930       aix*)
11931         # The AIX port of GNU ld has always aspired to compatibility
11932         # with the native linker.  However, as the warning in the GNU ld
11933         # block says, versions before 2.19.5* couldn't really create working
11934         # shared libraries, regardless of the interface used.
11935         case `$LD -v 2>&1` in
11936           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11937           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11938           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11939           *)
11940             lt_use_gnu_ld_interface=yes
11941             ;;
11942         esac
11943         ;;
11944       *)
11945         lt_use_gnu_ld_interface=yes
11946         ;;
11947     esac
11948   fi
11949
11950   if test "$lt_use_gnu_ld_interface" = yes; then
11951     # If archive_cmds runs LD, not CC, wlarc should be empty
11952     wlarc='${wl}'
11953
11954     # Set some defaults for GNU ld with shared library support. These
11955     # are reset later if shared libraries are not supported. Putting them
11956     # here allows them to be overridden if necessary.
11957     runpath_var=LD_RUN_PATH
11958     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11959     export_dynamic_flag_spec='${wl}--export-dynamic'
11960     # ancient GNU ld didn't support --whole-archive et. al.
11961     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11962       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11963     else
11964       whole_archive_flag_spec=
11965     fi
11966     supports_anon_versioning=no
11967     case `$LD -v 2>&1` in
11968       *GNU\ gold*) supports_anon_versioning=yes ;;
11969       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11970       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11971       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11972       *\ 2.11.*) ;; # other 2.11 versions
11973       *) supports_anon_versioning=yes ;;
11974     esac
11975
11976     # See if GNU ld supports shared libraries.
11977     case $host_os in
11978     aix[3-9]*)
11979       # On AIX/PPC, the GNU linker is very broken
11980       if test "$host_cpu" != ia64; then
11981         ld_shlibs=no
11982         cat <<_LT_EOF 1>&2
11983
11984 *** Warning: the GNU linker, at least up to release 2.19, is reported
11985 *** to be unable to reliably create shared libraries on AIX.
11986 *** Therefore, libtool is disabling shared libraries support.  If you
11987 *** really care for shared libraries, you may want to install binutils
11988 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11989 *** You will then need to restart the configuration process.
11990
11991 _LT_EOF
11992       fi
11993       ;;
11994
11995     amigaos*)
11996       case $host_cpu in
11997       powerpc)
11998             # see comment about AmigaOS4 .so support
11999             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12000             archive_expsym_cmds=''
12001         ;;
12002       m68k)
12003             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)'
12004             hardcode_libdir_flag_spec='-L$libdir'
12005             hardcode_minus_L=yes
12006         ;;
12007       esac
12008       ;;
12009
12010     beos*)
12011       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12012         allow_undefined_flag=unsupported
12013         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12014         # support --undefined.  This deserves some investigation.  FIXME
12015         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016       else
12017         ld_shlibs=no
12018       fi
12019       ;;
12020
12021     cygwin* | mingw* | pw32* | cegcc*)
12022       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12023       # as there is no search path for DLLs.
12024       hardcode_libdir_flag_spec='-L$libdir'
12025       export_dynamic_flag_spec='${wl}--export-all-symbols'
12026       allow_undefined_flag=unsupported
12027       always_export_symbols=no
12028       enable_shared_with_static_runtimes=yes
12029       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'
12030       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12031
12032       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12034         # If the export-symbols file already is a .def file (1st line
12035         # is EXPORTS), use it as is; otherwise, prepend...
12036         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037           cp $export_symbols $output_objdir/$soname.def;
12038         else
12039           echo EXPORTS > $output_objdir/$soname.def;
12040           cat $export_symbols >> $output_objdir/$soname.def;
12041         fi~
12042         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12043       else
12044         ld_shlibs=no
12045       fi
12046       ;;
12047
12048     haiku*)
12049       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050       link_all_deplibs=yes
12051       ;;
12052
12053     interix[3-9]*)
12054       hardcode_direct=no
12055       hardcode_shlibpath_var=no
12056       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12057       export_dynamic_flag_spec='${wl}-E'
12058       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12059       # Instead, shared libraries are loaded at an image base (0x10000000 by
12060       # default) and relocated if they conflict, which is a slow very memory
12061       # consuming and fragmenting process.  To avoid this, we pick a random,
12062       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12063       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12064       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12065       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'
12066       ;;
12067
12068     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12069       tmp_diet=no
12070       if test "$host_os" = linux-dietlibc; then
12071         case $cc_basename in
12072           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12073         esac
12074       fi
12075       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12076          && test "$tmp_diet" = no
12077       then
12078         tmp_addflag=' $pic_flag'
12079         tmp_sharedflag='-shared'
12080         case $cc_basename,$host_cpu in
12081         pgcc*)                          # Portland Group C compiler
12082           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'
12083           tmp_addflag=' $pic_flag'
12084           ;;
12085         pgf77* | pgf90* | pgf95* | pgfortran*)
12086                                         # Portland Group f77 and f90 compilers
12087           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'
12088           tmp_addflag=' $pic_flag -Mnomain' ;;
12089         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12090           tmp_addflag=' -i_dynamic' ;;
12091         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12092           tmp_addflag=' -i_dynamic -nofor_main' ;;
12093         ifc* | ifort*)                  # Intel Fortran compiler
12094           tmp_addflag=' -nofor_main' ;;
12095         lf95*)                          # Lahey Fortran 8.1
12096           whole_archive_flag_spec=
12097           tmp_sharedflag='--shared' ;;
12098         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12099           tmp_sharedflag='-qmkshrobj'
12100           tmp_addflag= ;;
12101         nvcc*)  # Cuda Compiler Driver 2.2
12102           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'
12103           compiler_needs_object=yes
12104           ;;
12105         esac
12106         case `$CC -V 2>&1 | sed 5q` in
12107         *Sun\ C*)                       # Sun C 5.9
12108           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'
12109           compiler_needs_object=yes
12110           tmp_sharedflag='-G' ;;
12111         *Sun\ F*)                       # Sun Fortran 8.3
12112           tmp_sharedflag='-G' ;;
12113         esac
12114         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115
12116         if test "x$supports_anon_versioning" = xyes; then
12117           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12118             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12119             echo "local: *; };" >> $output_objdir/$libname.ver~
12120             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12121         fi
12122
12123         case $cc_basename in
12124         xlf* | bgf* | bgxlf* | mpixlf*)
12125           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12126           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12127           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12128           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12129           if test "x$supports_anon_versioning" = xyes; then
12130             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12131               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12132               echo "local: *; };" >> $output_objdir/$libname.ver~
12133               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12134           fi
12135           ;;
12136         esac
12137       else
12138         ld_shlibs=no
12139       fi
12140       ;;
12141
12142     netbsd*)
12143       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12144         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12145         wlarc=
12146       else
12147         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12148         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12149       fi
12150       ;;
12151
12152     solaris*)
12153       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12154         ld_shlibs=no
12155         cat <<_LT_EOF 1>&2
12156
12157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12158 *** create shared libraries on Solaris systems.  Therefore, libtool
12159 *** is disabling shared libraries support.  We urge you to upgrade GNU
12160 *** binutils to release 2.9.1 or newer.  Another option is to modify
12161 *** your PATH or compiler configuration so that the native linker is
12162 *** used, and then restart.
12163
12164 _LT_EOF
12165       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12166         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12168       else
12169         ld_shlibs=no
12170       fi
12171       ;;
12172
12173     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12174       case `$LD -v 2>&1` in
12175         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12176         ld_shlibs=no
12177         cat <<_LT_EOF 1>&2
12178
12179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12180 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12181 *** is disabling shared libraries support.  We urge you to upgrade GNU
12182 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12183 *** your PATH or compiler configuration so that the native linker is
12184 *** used, and then restart.
12185
12186 _LT_EOF
12187         ;;
12188         *)
12189           # For security reasons, it is highly recommended that you always
12190           # use absolute paths for naming shared libraries, and exclude the
12191           # DT_RUNPATH tag from executables and libraries.  But doing so
12192           # requires that you compile everything twice, which is a pain.
12193           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12194             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12195             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12197           else
12198             ld_shlibs=no
12199           fi
12200         ;;
12201       esac
12202       ;;
12203
12204     sunos4*)
12205       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12206       wlarc=
12207       hardcode_direct=yes
12208       hardcode_shlibpath_var=no
12209       ;;
12210
12211     *)
12212       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12213         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12214         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12215       else
12216         ld_shlibs=no
12217       fi
12218       ;;
12219     esac
12220
12221     if test "$ld_shlibs" = no; then
12222       runpath_var=
12223       hardcode_libdir_flag_spec=
12224       export_dynamic_flag_spec=
12225       whole_archive_flag_spec=
12226     fi
12227   else
12228     # PORTME fill in a description of your system's linker (not GNU ld)
12229     case $host_os in
12230     aix3*)
12231       allow_undefined_flag=unsupported
12232       always_export_symbols=yes
12233       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'
12234       # Note: this linker hardcodes the directories in LIBPATH if there
12235       # are no directories specified by -L.
12236       hardcode_minus_L=yes
12237       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12238         # Neither direct hardcoding nor static linking is supported with a
12239         # broken collect2.
12240         hardcode_direct=unsupported
12241       fi
12242       ;;
12243
12244     aix[4-9]*)
12245       if test "$host_cpu" = ia64; then
12246         # On IA64, the linker does run time linking by default, so we don't
12247         # have to do anything special.
12248         aix_use_runtimelinking=no
12249         exp_sym_flag='-Bexport'
12250         no_entry_flag=""
12251       else
12252         # If we're using GNU nm, then we don't want the "-C" option.
12253         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12254         # Also, AIX nm treats weak defined symbols like other global
12255         # defined symbols, whereas GNU nm marks them as "W".
12256         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12257           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'
12258         else
12259           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'
12260         fi
12261         aix_use_runtimelinking=no
12262
12263         # Test if we are trying to use run time linking or normal
12264         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265         # need to do runtime linking.
12266         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12267           for ld_flag in $LDFLAGS; do
12268           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12269             aix_use_runtimelinking=yes
12270             break
12271           fi
12272           done
12273           ;;
12274         esac
12275
12276         exp_sym_flag='-bexport'
12277         no_entry_flag='-bnoentry'
12278       fi
12279
12280       # When large executables or shared objects are built, AIX ld can
12281       # have problems creating the table of contents.  If linking a library
12282       # or program results in "error TOC overflow" add -mminimal-toc to
12283       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12284       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12285
12286       archive_cmds=''
12287       hardcode_direct=yes
12288       hardcode_direct_absolute=yes
12289       hardcode_libdir_separator=':'
12290       link_all_deplibs=yes
12291       file_list_spec='${wl}-f,'
12292
12293       if test "$GCC" = yes; then
12294         case $host_os in aix4.[012]|aix4.[012].*)
12295         # We only want to do this on AIX 4.2 and lower, the check
12296         # below for broken collect2 doesn't work under 4.3+
12297           collect2name=`${CC} -print-prog-name=collect2`
12298           if test -f "$collect2name" &&
12299            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12300           then
12301           # We have reworked collect2
12302           :
12303           else
12304           # We have old collect2
12305           hardcode_direct=unsupported
12306           # It fails to find uninstalled libraries when the uninstalled
12307           # path is not listed in the libpath.  Setting hardcode_minus_L
12308           # to unsupported forces relinking
12309           hardcode_minus_L=yes
12310           hardcode_libdir_flag_spec='-L$libdir'
12311           hardcode_libdir_separator=
12312           fi
12313           ;;
12314         esac
12315         shared_flag='-shared'
12316         if test "$aix_use_runtimelinking" = yes; then
12317           shared_flag="$shared_flag "'${wl}-G'
12318         fi
12319       else
12320         # not using gcc
12321         if test "$host_cpu" = ia64; then
12322         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12323         # chokes on -Wl,-G. The following line is correct:
12324           shared_flag='-G'
12325         else
12326           if test "$aix_use_runtimelinking" = yes; then
12327             shared_flag='${wl}-G'
12328           else
12329             shared_flag='${wl}-bM:SRE'
12330           fi
12331         fi
12332       fi
12333
12334       export_dynamic_flag_spec='${wl}-bexpall'
12335       # It seems that -bexpall does not export symbols beginning with
12336       # underscore (_), so it is better to generate a list of symbols to export.
12337       always_export_symbols=yes
12338       if test "$aix_use_runtimelinking" = yes; then
12339         # Warning - without using the other runtime loading flags (-brtl),
12340         # -berok will link without error, but may produce a broken library.
12341         allow_undefined_flag='-berok'
12342         # Determine the default libpath from the value encoded in an
12343         # empty executable.
12344         if test "${lt_cv_aix_libpath+set}" = set; then
12345   aix_libpath=$lt_cv_aix_libpath
12346 else
12347   if ${lt_cv_aix_libpath_+:} false; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12352
12353 int
12354 main ()
12355 {
12356
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362
12363   lt_aix_libpath_sed='
12364       /Import File Strings/,/^$/ {
12365           /^0/ {
12366               s/^0  *\([^ ]*\) *$/\1/
12367               p
12368           }
12369       }'
12370   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371   # Check for a 64-bit object if we didn't find anything.
12372   if test -z "$lt_cv_aix_libpath_"; then
12373     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12374   fi
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext \
12377     conftest$ac_exeext conftest.$ac_ext
12378   if test -z "$lt_cv_aix_libpath_"; then
12379     lt_cv_aix_libpath_="/usr/lib:/lib"
12380   fi
12381
12382 fi
12383
12384   aix_libpath=$lt_cv_aix_libpath_
12385 fi
12386
12387         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12388         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"
12389       else
12390         if test "$host_cpu" = ia64; then
12391           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12392           allow_undefined_flag="-z nodefs"
12393           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"
12394         else
12395          # Determine the default libpath from the value encoded in an
12396          # empty executable.
12397          if test "${lt_cv_aix_libpath+set}" = set; then
12398   aix_libpath=$lt_cv_aix_libpath
12399 else
12400   if ${lt_cv_aix_libpath_+:} false; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h.  */
12405
12406 int
12407 main ()
12408 {
12409
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415
12416   lt_aix_libpath_sed='
12417       /Import File Strings/,/^$/ {
12418           /^0/ {
12419               s/^0  *\([^ ]*\) *$/\1/
12420               p
12421           }
12422       }'
12423   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12424   # Check for a 64-bit object if we didn't find anything.
12425   if test -z "$lt_cv_aix_libpath_"; then
12426     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12427   fi
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext \
12430     conftest$ac_exeext conftest.$ac_ext
12431   if test -z "$lt_cv_aix_libpath_"; then
12432     lt_cv_aix_libpath_="/usr/lib:/lib"
12433   fi
12434
12435 fi
12436
12437   aix_libpath=$lt_cv_aix_libpath_
12438 fi
12439
12440          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12441           # Warning - without using the other run time loading flags,
12442           # -berok will link without error, but may produce a broken library.
12443           no_undefined_flag=' ${wl}-bernotok'
12444           allow_undefined_flag=' ${wl}-berok'
12445           if test "$with_gnu_ld" = yes; then
12446             # We only use this code for GNU lds that support --whole-archive.
12447             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12448           else
12449             # Exported symbols can be pulled into shared objects from archives
12450             whole_archive_flag_spec='$convenience'
12451           fi
12452           archive_cmds_need_lc=yes
12453           # This is similar to how AIX traditionally builds its shared libraries.
12454           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'
12455         fi
12456       fi
12457       ;;
12458
12459     amigaos*)
12460       case $host_cpu in
12461       powerpc)
12462             # see comment about AmigaOS4 .so support
12463             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12464             archive_expsym_cmds=''
12465         ;;
12466       m68k)
12467             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)'
12468             hardcode_libdir_flag_spec='-L$libdir'
12469             hardcode_minus_L=yes
12470         ;;
12471       esac
12472       ;;
12473
12474     bsdi[45]*)
12475       export_dynamic_flag_spec=-rdynamic
12476       ;;
12477
12478     cygwin* | mingw* | pw32* | cegcc*)
12479       # When not using gcc, we currently assume that we are using
12480       # Microsoft Visual C++.
12481       # hardcode_libdir_flag_spec is actually meaningless, as there is
12482       # no search path for DLLs.
12483       case $cc_basename in
12484       cl*)
12485         # Native MSVC
12486         hardcode_libdir_flag_spec=' '
12487         allow_undefined_flag=unsupported
12488         always_export_symbols=yes
12489         file_list_spec='@'
12490         # Tell ltmain to make .lib files, not .a files.
12491         libext=lib
12492         # Tell ltmain to make .dll files, not .so files.
12493         shrext_cmds=".dll"
12494         # FIXME: Setting linknames here is a bad hack.
12495         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12496         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12497             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12498           else
12499             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12500           fi~
12501           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12502           linknames='
12503         # The linker will not automatically build a static lib if we build a DLL.
12504         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12505         enable_shared_with_static_runtimes=yes
12506         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12507         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12508         # Don't use ranlib
12509         old_postinstall_cmds='chmod 644 $oldlib'
12510         postlink_cmds='lt_outputfile="@OUTPUT@"~
12511           lt_tool_outputfile="@TOOL_OUTPUT@"~
12512           case $lt_outputfile in
12513             *.exe|*.EXE) ;;
12514             *)
12515               lt_outputfile="$lt_outputfile.exe"
12516               lt_tool_outputfile="$lt_tool_outputfile.exe"
12517               ;;
12518           esac~
12519           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12520             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12521             $RM "$lt_outputfile.manifest";
12522           fi'
12523         ;;
12524       *)
12525         # Assume MSVC wrapper
12526         hardcode_libdir_flag_spec=' '
12527         allow_undefined_flag=unsupported
12528         # Tell ltmain to make .lib files, not .a files.
12529         libext=lib
12530         # Tell ltmain to make .dll files, not .so files.
12531         shrext_cmds=".dll"
12532         # FIXME: Setting linknames here is a bad hack.
12533         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12534         # The linker will automatically build a .lib file if we build a DLL.
12535         old_archive_from_new_cmds='true'
12536         # FIXME: Should let the user specify the lib program.
12537         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12538         enable_shared_with_static_runtimes=yes
12539         ;;
12540       esac
12541       ;;
12542
12543     darwin* | rhapsody*)
12544
12545
12546   archive_cmds_need_lc=no
12547   hardcode_direct=no
12548   hardcode_automatic=yes
12549   hardcode_shlibpath_var=unsupported
12550   if test "$lt_cv_ld_force_load" = "yes"; then
12551     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\"`'
12552
12553   else
12554     whole_archive_flag_spec=''
12555   fi
12556   link_all_deplibs=yes
12557   allow_undefined_flag="$_lt_dar_allow_undefined"
12558   case $cc_basename in
12559      ifort*) _lt_dar_can_shared=yes ;;
12560      *) _lt_dar_can_shared=$GCC ;;
12561   esac
12562   if test "$_lt_dar_can_shared" = "yes"; then
12563     output_verbose_link_cmd=func_echo_all
12564     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12565     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12566     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}"
12567     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}"
12568
12569   else
12570   ld_shlibs=no
12571   fi
12572
12573       ;;
12574
12575     dgux*)
12576       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12577       hardcode_libdir_flag_spec='-L$libdir'
12578       hardcode_shlibpath_var=no
12579       ;;
12580
12581     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12582     # support.  Future versions do this automatically, but an explicit c++rt0.o
12583     # does not break anything, and helps significantly (at the cost of a little
12584     # extra space).
12585     freebsd2.2*)
12586       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12587       hardcode_libdir_flag_spec='-R$libdir'
12588       hardcode_direct=yes
12589       hardcode_shlibpath_var=no
12590       ;;
12591
12592     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12593     freebsd2.*)
12594       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12595       hardcode_direct=yes
12596       hardcode_minus_L=yes
12597       hardcode_shlibpath_var=no
12598       ;;
12599
12600     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12601     freebsd* | dragonfly*)
12602       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12603       hardcode_libdir_flag_spec='-R$libdir'
12604       hardcode_direct=yes
12605       hardcode_shlibpath_var=no
12606       ;;
12607
12608     hpux9*)
12609       if test "$GCC" = yes; then
12610         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'
12611       else
12612         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'
12613       fi
12614       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12615       hardcode_libdir_separator=:
12616       hardcode_direct=yes
12617
12618       # hardcode_minus_L: Not really in the search PATH,
12619       # but as the default location of the library.
12620       hardcode_minus_L=yes
12621       export_dynamic_flag_spec='${wl}-E'
12622       ;;
12623
12624     hpux10*)
12625       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12626         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12627       else
12628         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12629       fi
12630       if test "$with_gnu_ld" = no; then
12631         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12632         hardcode_libdir_separator=:
12633         hardcode_direct=yes
12634         hardcode_direct_absolute=yes
12635         export_dynamic_flag_spec='${wl}-E'
12636         # hardcode_minus_L: Not really in the search PATH,
12637         # but as the default location of the library.
12638         hardcode_minus_L=yes
12639       fi
12640       ;;
12641
12642     hpux11*)
12643       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12644         case $host_cpu in
12645         hppa*64*)
12646           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12647           ;;
12648         ia64*)
12649           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12650           ;;
12651         *)
12652           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12653           ;;
12654         esac
12655       else
12656         case $host_cpu in
12657         hppa*64*)
12658           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12659           ;;
12660         ia64*)
12661           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12662           ;;
12663         *)
12664
12665           # Older versions of the 11.00 compiler do not understand -b yet
12666           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12667           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12668 $as_echo_n "checking if $CC understands -b... " >&6; }
12669 if ${lt_cv_prog_compiler__b+:} false; then :
12670   $as_echo_n "(cached) " >&6
12671 else
12672   lt_cv_prog_compiler__b=no
12673    save_LDFLAGS="$LDFLAGS"
12674    LDFLAGS="$LDFLAGS -b"
12675    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12676    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12677      # The linker can only warn and ignore the option if not recognized
12678      # So say no if there are warnings
12679      if test -s conftest.err; then
12680        # Append any errors to the config.log.
12681        cat conftest.err 1>&5
12682        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12683        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12684        if diff conftest.exp conftest.er2 >/dev/null; then
12685          lt_cv_prog_compiler__b=yes
12686        fi
12687      else
12688        lt_cv_prog_compiler__b=yes
12689      fi
12690    fi
12691    $RM -r conftest*
12692    LDFLAGS="$save_LDFLAGS"
12693
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12696 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12697
12698 if test x"$lt_cv_prog_compiler__b" = xyes; then
12699     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12700 else
12701     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12702 fi
12703
12704           ;;
12705         esac
12706       fi
12707       if test "$with_gnu_ld" = no; then
12708         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12709         hardcode_libdir_separator=:
12710
12711         case $host_cpu in
12712         hppa*64*|ia64*)
12713           hardcode_direct=no
12714           hardcode_shlibpath_var=no
12715           ;;
12716         *)
12717           hardcode_direct=yes
12718           hardcode_direct_absolute=yes
12719           export_dynamic_flag_spec='${wl}-E'
12720
12721           # hardcode_minus_L: Not really in the search PATH,
12722           # but as the default location of the library.
12723           hardcode_minus_L=yes
12724           ;;
12725         esac
12726       fi
12727       ;;
12728
12729     irix5* | irix6* | nonstopux*)
12730       if test "$GCC" = yes; then
12731         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'
12732         # Try to use the -exported_symbol ld option, if it does not
12733         # work, assume that -exports_file does not work either and
12734         # implicitly export all symbols.
12735         # This should be the same for all languages, so no per-tag cache variable.
12736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12737 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12738 if ${lt_cv_irix_exported_symbol+:} false; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   save_LDFLAGS="$LDFLAGS"
12742            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12743            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h.  */
12745 int foo (void) { return 0; }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748   lt_cv_irix_exported_symbol=yes
12749 else
12750   lt_cv_irix_exported_symbol=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext \
12753     conftest$ac_exeext conftest.$ac_ext
12754            LDFLAGS="$save_LDFLAGS"
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12757 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12758         if test "$lt_cv_irix_exported_symbol" = yes; then
12759           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'
12760         fi
12761       else
12762         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'
12763         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'
12764       fi
12765       archive_cmds_need_lc='no'
12766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767       hardcode_libdir_separator=:
12768       inherit_rpath=yes
12769       link_all_deplibs=yes
12770       ;;
12771
12772     netbsd*)
12773       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12775       else
12776         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12777       fi
12778       hardcode_libdir_flag_spec='-R$libdir'
12779       hardcode_direct=yes
12780       hardcode_shlibpath_var=no
12781       ;;
12782
12783     newsos6)
12784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12785       hardcode_direct=yes
12786       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12787       hardcode_libdir_separator=:
12788       hardcode_shlibpath_var=no
12789       ;;
12790
12791     *nto* | *qnx*)
12792       ;;
12793
12794     openbsd*)
12795       if test -f /usr/libexec/ld.so; then
12796         hardcode_direct=yes
12797         hardcode_shlibpath_var=no
12798         hardcode_direct_absolute=yes
12799         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12800           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12801           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12802           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803           export_dynamic_flag_spec='${wl}-E'
12804         else
12805           case $host_os in
12806            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12807              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12808              hardcode_libdir_flag_spec='-R$libdir'
12809              ;;
12810            *)
12811              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12812              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12813              ;;
12814           esac
12815         fi
12816       else
12817         ld_shlibs=no
12818       fi
12819       ;;
12820
12821     os2*)
12822       hardcode_libdir_flag_spec='-L$libdir'
12823       hardcode_minus_L=yes
12824       allow_undefined_flag=unsupported
12825       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'
12826       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12827       ;;
12828
12829     osf3*)
12830       if test "$GCC" = yes; then
12831         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12832         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'
12833       else
12834         allow_undefined_flag=' -expect_unresolved \*'
12835         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'
12836       fi
12837       archive_cmds_need_lc='no'
12838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12839       hardcode_libdir_separator=:
12840       ;;
12841
12842     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12843       if test "$GCC" = yes; then
12844         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12845         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'
12846         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12847       else
12848         allow_undefined_flag=' -expect_unresolved \*'
12849         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'
12850         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~
12851         $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'
12852
12853         # Both c and cxx compiler support -rpath directly
12854         hardcode_libdir_flag_spec='-rpath $libdir'
12855       fi
12856       archive_cmds_need_lc='no'
12857       hardcode_libdir_separator=:
12858       ;;
12859
12860     solaris*)
12861       no_undefined_flag=' -z defs'
12862       if test "$GCC" = yes; then
12863         wlarc='${wl}'
12864         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12865         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12866           $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'
12867       else
12868         case `$CC -V 2>&1` in
12869         *"Compilers 5.0"*)
12870           wlarc=''
12871           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12872           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12873           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12874           ;;
12875         *)
12876           wlarc='${wl}'
12877           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12878           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12879           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12880           ;;
12881         esac
12882       fi
12883       hardcode_libdir_flag_spec='-R$libdir'
12884       hardcode_shlibpath_var=no
12885       case $host_os in
12886       solaris2.[0-5] | solaris2.[0-5].*) ;;
12887       *)
12888         # The compiler driver will combine and reorder linker options,
12889         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12890         # but is careful enough not to reorder.
12891         # Supported since Solaris 2.6 (maybe 2.5.1?)
12892         if test "$GCC" = yes; then
12893           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12894         else
12895           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12896         fi
12897         ;;
12898       esac
12899       link_all_deplibs=yes
12900       ;;
12901
12902     sunos4*)
12903       if test "x$host_vendor" = xsequent; then
12904         # Use $CC to link under sequent, because it throws in some extra .o
12905         # files that make .init and .fini sections work.
12906         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12907       else
12908         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12909       fi
12910       hardcode_libdir_flag_spec='-L$libdir'
12911       hardcode_direct=yes
12912       hardcode_minus_L=yes
12913       hardcode_shlibpath_var=no
12914       ;;
12915
12916     sysv4)
12917       case $host_vendor in
12918         sni)
12919           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920           hardcode_direct=yes # is this really true???
12921         ;;
12922         siemens)
12923           ## LD is ld it makes a PLAMLIB
12924           ## CC just makes a GrossModule.
12925           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12926           reload_cmds='$CC -r -o $output$reload_objs'
12927           hardcode_direct=no
12928         ;;
12929         motorola)
12930           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12931           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12932         ;;
12933       esac
12934       runpath_var='LD_RUN_PATH'
12935       hardcode_shlibpath_var=no
12936       ;;
12937
12938     sysv4.3*)
12939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12940       hardcode_shlibpath_var=no
12941       export_dynamic_flag_spec='-Bexport'
12942       ;;
12943
12944     sysv4*MP*)
12945       if test -d /usr/nec; then
12946         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947         hardcode_shlibpath_var=no
12948         runpath_var=LD_RUN_PATH
12949         hardcode_runpath_var=yes
12950         ld_shlibs=yes
12951       fi
12952       ;;
12953
12954     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12955       no_undefined_flag='${wl}-z,text'
12956       archive_cmds_need_lc=no
12957       hardcode_shlibpath_var=no
12958       runpath_var='LD_RUN_PATH'
12959
12960       if test "$GCC" = yes; then
12961         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12962         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963       else
12964         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12965         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12966       fi
12967       ;;
12968
12969     sysv5* | sco3.2v5* | sco5v6*)
12970       # Note: We can NOT use -z defs as we might desire, because we do not
12971       # link with -lc, and that would cause any symbols used from libc to
12972       # always be unresolved, which means just about no library would
12973       # ever link correctly.  If we're not using GNU ld we use -z text
12974       # though, which does catch some bad symbols but isn't as heavy-handed
12975       # as -z defs.
12976       no_undefined_flag='${wl}-z,text'
12977       allow_undefined_flag='${wl}-z,nodefs'
12978       archive_cmds_need_lc=no
12979       hardcode_shlibpath_var=no
12980       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12981       hardcode_libdir_separator=':'
12982       link_all_deplibs=yes
12983       export_dynamic_flag_spec='${wl}-Bexport'
12984       runpath_var='LD_RUN_PATH'
12985
12986       if test "$GCC" = yes; then
12987         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989       else
12990         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12991         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992       fi
12993       ;;
12994
12995     uts4*)
12996       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12997       hardcode_libdir_flag_spec='-L$libdir'
12998       hardcode_shlibpath_var=no
12999       ;;
13000
13001     *)
13002       ld_shlibs=no
13003       ;;
13004     esac
13005
13006     if test x$host_vendor = xsni; then
13007       case $host in
13008       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13009         export_dynamic_flag_spec='${wl}-Blargedynsym'
13010         ;;
13011       esac
13012     fi
13013   fi
13014
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13016 $as_echo "$ld_shlibs" >&6; }
13017 test "$ld_shlibs" = no && can_build_shared=no
13018
13019 with_gnu_ld=$with_gnu_ld
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035 #
13036 # Do we need to explicitly link libc?
13037 #
13038 case "x$archive_cmds_need_lc" in
13039 x|xyes)
13040   # Assume -lc should be added
13041   archive_cmds_need_lc=yes
13042
13043   if test "$enable_shared" = yes && test "$GCC" = yes; then
13044     case $archive_cmds in
13045     *'~'*)
13046       # FIXME: we may have to deal with multi-command sequences.
13047       ;;
13048     '$CC '*)
13049       # Test whether the compiler implicitly links with -lc since on some
13050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13051       # to ld, don't add -lc before -lgcc.
13052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13054 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   $RM conftest*
13058         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13059
13060         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13061   (eval $ac_compile) 2>&5
13062   ac_status=$?
13063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13064   test $ac_status = 0; } 2>conftest.err; then
13065           soname=conftest
13066           lib=conftest
13067           libobjs=conftest.$ac_objext
13068           deplibs=
13069           wl=$lt_prog_compiler_wl
13070           pic_flag=$lt_prog_compiler_pic
13071           compiler_flags=-v
13072           linker_flags=-v
13073           verstring=
13074           output_objdir=.
13075           libname=conftest
13076           lt_save_allow_undefined_flag=$allow_undefined_flag
13077           allow_undefined_flag=
13078           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13079   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13080   ac_status=$?
13081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082   test $ac_status = 0; }
13083           then
13084             lt_cv_archive_cmds_need_lc=no
13085           else
13086             lt_cv_archive_cmds_need_lc=yes
13087           fi
13088           allow_undefined_flag=$lt_save_allow_undefined_flag
13089         else
13090           cat conftest.err 1>&5
13091         fi
13092         $RM conftest*
13093
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13096 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13097       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13098       ;;
13099     esac
13100   fi
13101   ;;
13102 esac
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13256 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13257
13258 if test "$GCC" = yes; then
13259   case $host_os in
13260     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13261     *) lt_awk_arg="/^libraries:/" ;;
13262   esac
13263   case $host_os in
13264     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13265     *) lt_sed_strip_eq="s,=/,/,g" ;;
13266   esac
13267   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13268   case $lt_search_path_spec in
13269   *\;*)
13270     # if the path contains ";" then we assume it to be the separator
13271     # otherwise default to the standard path separator (i.e. ":") - it is
13272     # assumed that no part of a normal pathname contains ";" but that should
13273     # okay in the real world where ";" in dirpaths is itself problematic.
13274     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13275     ;;
13276   *)
13277     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13278     ;;
13279   esac
13280   # Ok, now we have the path, separated by spaces, we can step through it
13281   # and add multilib dir if necessary.
13282   lt_tmp_lt_search_path_spec=
13283   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13284   for lt_sys_path in $lt_search_path_spec; do
13285     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13286       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13287     else
13288       test -d "$lt_sys_path" && \
13289         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13290     fi
13291   done
13292   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13293 BEGIN {RS=" "; FS="/|\n";} {
13294   lt_foo="";
13295   lt_count=0;
13296   for (lt_i = NF; lt_i > 0; lt_i--) {
13297     if ($lt_i != "" && $lt_i != ".") {
13298       if ($lt_i == "..") {
13299         lt_count++;
13300       } else {
13301         if (lt_count == 0) {
13302           lt_foo="/" $lt_i lt_foo;
13303         } else {
13304           lt_count--;
13305         }
13306       }
13307     }
13308   }
13309   if (lt_foo != "") { lt_freq[lt_foo]++; }
13310   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13311 }'`
13312   # AWK program above erroneously prepends '/' to C:/dos/paths
13313   # for these hosts.
13314   case $host_os in
13315     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13316       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13317   esac
13318   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13319 else
13320   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13321 fi
13322 library_names_spec=
13323 libname_spec='lib$name'
13324 soname_spec=
13325 shrext_cmds=".so"
13326 postinstall_cmds=
13327 postuninstall_cmds=
13328 finish_cmds=
13329 finish_eval=
13330 shlibpath_var=
13331 shlibpath_overrides_runpath=unknown
13332 version_type=none
13333 dynamic_linker="$host_os ld.so"
13334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13335 need_lib_prefix=unknown
13336 hardcode_into_libs=no
13337
13338 # when you set need_version to no, make sure it does not cause -set_version
13339 # flags to be left without arguments
13340 need_version=unknown
13341
13342 case $host_os in
13343 aix3*)
13344   version_type=linux # correct to gnu/linux during the next big refactor
13345   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13346   shlibpath_var=LIBPATH
13347
13348   # AIX 3 has no versioning support, so we append a major version to the name.
13349   soname_spec='${libname}${release}${shared_ext}$major'
13350   ;;
13351
13352 aix[4-9]*)
13353   version_type=linux # correct to gnu/linux during the next big refactor
13354   need_lib_prefix=no
13355   need_version=no
13356   hardcode_into_libs=yes
13357   if test "$host_cpu" = ia64; then
13358     # AIX 5 supports IA64
13359     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13360     shlibpath_var=LD_LIBRARY_PATH
13361   else
13362     # With GCC up to 2.95.x, collect2 would create an import file
13363     # for dependence libraries.  The import file would start with
13364     # the line `#! .'.  This would cause the generated library to
13365     # depend on `.', always an invalid library.  This was fixed in
13366     # development snapshots of GCC prior to 3.0.
13367     case $host_os in
13368       aix4 | aix4.[01] | aix4.[01].*)
13369       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13370            echo ' yes '
13371            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13372         :
13373       else
13374         can_build_shared=no
13375       fi
13376       ;;
13377     esac
13378     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13379     # soname into executable. Probably we can add versioning support to
13380     # collect2, so additional links can be useful in future.
13381     if test "$aix_use_runtimelinking" = yes; then
13382       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13383       # instead of lib<name>.a to let people know that these are not
13384       # typical AIX shared libraries.
13385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386     else
13387       # We preserve .a as extension for shared libraries through AIX4.2
13388       # and later when we are not doing run time linking.
13389       library_names_spec='${libname}${release}.a $libname.a'
13390       soname_spec='${libname}${release}${shared_ext}$major'
13391     fi
13392     shlibpath_var=LIBPATH
13393   fi
13394   ;;
13395
13396 amigaos*)
13397   case $host_cpu in
13398   powerpc)
13399     # Since July 2007 AmigaOS4 officially supports .so libraries.
13400     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402     ;;
13403   m68k)
13404     library_names_spec='$libname.ixlibrary $libname.a'
13405     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13406     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'
13407     ;;
13408   esac
13409   ;;
13410
13411 beos*)
13412   library_names_spec='${libname}${shared_ext}'
13413   dynamic_linker="$host_os ld.so"
13414   shlibpath_var=LIBRARY_PATH
13415   ;;
13416
13417 bsdi[45]*)
13418   version_type=linux # correct to gnu/linux during the next big refactor
13419   need_version=no
13420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421   soname_spec='${libname}${release}${shared_ext}$major'
13422   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13423   shlibpath_var=LD_LIBRARY_PATH
13424   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13425   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13426   # the default ld.so.conf also contains /usr/contrib/lib and
13427   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13428   # libtool to hard-code these into programs
13429   ;;
13430
13431 cygwin* | mingw* | pw32* | cegcc*)
13432   version_type=windows
13433   shrext_cmds=".dll"
13434   need_version=no
13435   need_lib_prefix=no
13436
13437   case $GCC,$cc_basename in
13438   yes,*)
13439     # gcc
13440     library_names_spec='$libname.dll.a'
13441     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13442     postinstall_cmds='base_file=`basename \${file}`~
13443       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13444       dldir=$destdir/`dirname \$dlpath`~
13445       test -d \$dldir || mkdir -p \$dldir~
13446       $install_prog $dir/$dlname \$dldir/$dlname~
13447       chmod a+x \$dldir/$dlname~
13448       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13449         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13450       fi'
13451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13452       dlpath=$dir/\$dldll~
13453        $RM \$dlpath'
13454     shlibpath_overrides_runpath=yes
13455
13456     case $host_os in
13457     cygwin*)
13458       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13459       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13460
13461       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13462       ;;
13463     mingw* | cegcc*)
13464       # MinGW DLLs use traditional 'lib' prefix
13465       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13466       ;;
13467     pw32*)
13468       # pw32 DLLs use 'pw' prefix rather than 'lib'
13469       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13470       ;;
13471     esac
13472     dynamic_linker='Win32 ld.exe'
13473     ;;
13474
13475   *,cl*)
13476     # Native MSVC
13477     libname_spec='$name'
13478     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13479     library_names_spec='${libname}.dll.lib'
13480
13481     case $build_os in
13482     mingw*)
13483       sys_lib_search_path_spec=
13484       lt_save_ifs=$IFS
13485       IFS=';'
13486       for lt_path in $LIB
13487       do
13488         IFS=$lt_save_ifs
13489         # Let DOS variable expansion print the short 8.3 style file name.
13490         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13491         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13492       done
13493       IFS=$lt_save_ifs
13494       # Convert to MSYS style.
13495       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13496       ;;
13497     cygwin*)
13498       # Convert to unix form, then to dos form, then back to unix form
13499       # but this time dos style (no spaces!) so that the unix form looks
13500       # like /cygdrive/c/PROGRA~1:/cygdr...
13501       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13502       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13503       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13504       ;;
13505     *)
13506       sys_lib_search_path_spec="$LIB"
13507       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13508         # It is most probably a Windows format PATH.
13509         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13510       else
13511         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13512       fi
13513       # FIXME: find the short name or the path components, as spaces are
13514       # common. (e.g. "Program Files" -> "PROGRA~1")
13515       ;;
13516     esac
13517
13518     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13519     postinstall_cmds='base_file=`basename \${file}`~
13520       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13521       dldir=$destdir/`dirname \$dlpath`~
13522       test -d \$dldir || mkdir -p \$dldir~
13523       $install_prog $dir/$dlname \$dldir/$dlname'
13524     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13525       dlpath=$dir/\$dldll~
13526        $RM \$dlpath'
13527     shlibpath_overrides_runpath=yes
13528     dynamic_linker='Win32 link.exe'
13529     ;;
13530
13531   *)
13532     # Assume MSVC wrapper
13533     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13534     dynamic_linker='Win32 ld.exe'
13535     ;;
13536   esac
13537   # FIXME: first we should search . and the directory the executable is in
13538   shlibpath_var=PATH
13539   ;;
13540
13541 darwin* | rhapsody*)
13542   dynamic_linker="$host_os dyld"
13543   version_type=darwin
13544   need_lib_prefix=no
13545   need_version=no
13546   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13547   soname_spec='${libname}${release}${major}$shared_ext'
13548   shlibpath_overrides_runpath=yes
13549   shlibpath_var=DYLD_LIBRARY_PATH
13550   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13551
13552   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13553   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13554   ;;
13555
13556 dgux*)
13557   version_type=linux # correct to gnu/linux during the next big refactor
13558   need_lib_prefix=no
13559   need_version=no
13560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13561   soname_spec='${libname}${release}${shared_ext}$major'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   ;;
13564
13565 freebsd* | dragonfly*)
13566   # DragonFly does not have aout.  When/if they implement a new
13567   # versioning mechanism, adjust this.
13568   if test -x /usr/bin/objformat; then
13569     objformat=`/usr/bin/objformat`
13570   else
13571     case $host_os in
13572     freebsd[23].*) objformat=aout ;;
13573     *) objformat=elf ;;
13574     esac
13575   fi
13576   version_type=freebsd-$objformat
13577   case $version_type in
13578     freebsd-elf*)
13579       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13580       need_version=no
13581       need_lib_prefix=no
13582       ;;
13583     freebsd-*)
13584       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13585       need_version=yes
13586       ;;
13587   esac
13588   shlibpath_var=LD_LIBRARY_PATH
13589   case $host_os in
13590   freebsd2.*)
13591     shlibpath_overrides_runpath=yes
13592     ;;
13593   freebsd3.[01]* | freebsdelf3.[01]*)
13594     shlibpath_overrides_runpath=yes
13595     hardcode_into_libs=yes
13596     ;;
13597   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13598   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13599     shlibpath_overrides_runpath=no
13600     hardcode_into_libs=yes
13601     ;;
13602   *) # from 4.6 on, and DragonFly
13603     shlibpath_overrides_runpath=yes
13604     hardcode_into_libs=yes
13605     ;;
13606   esac
13607   ;;
13608
13609 gnu*)
13610   version_type=linux # correct to gnu/linux during the next big refactor
13611   need_lib_prefix=no
13612   need_version=no
13613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13614   soname_spec='${libname}${release}${shared_ext}$major'
13615   shlibpath_var=LD_LIBRARY_PATH
13616   shlibpath_overrides_runpath=no
13617   hardcode_into_libs=yes
13618   ;;
13619
13620 haiku*)
13621   version_type=linux # correct to gnu/linux during the next big refactor
13622   need_lib_prefix=no
13623   need_version=no
13624   dynamic_linker="$host_os runtime_loader"
13625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13626   soname_spec='${libname}${release}${shared_ext}$major'
13627   shlibpath_var=LIBRARY_PATH
13628   shlibpath_overrides_runpath=yes
13629   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13630   hardcode_into_libs=yes
13631   ;;
13632
13633 hpux9* | hpux10* | hpux11*)
13634   # Give a soname corresponding to the major version so that dld.sl refuses to
13635   # link against other versions.
13636   version_type=sunos
13637   need_lib_prefix=no
13638   need_version=no
13639   case $host_cpu in
13640   ia64*)
13641     shrext_cmds='.so'
13642     hardcode_into_libs=yes
13643     dynamic_linker="$host_os dld.so"
13644     shlibpath_var=LD_LIBRARY_PATH
13645     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647     soname_spec='${libname}${release}${shared_ext}$major'
13648     if test "X$HPUX_IA64_MODE" = X32; then
13649       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13650     else
13651       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13652     fi
13653     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654     ;;
13655   hppa*64*)
13656     shrext_cmds='.sl'
13657     hardcode_into_libs=yes
13658     dynamic_linker="$host_os dld.sl"
13659     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662     soname_spec='${libname}${release}${shared_ext}$major'
13663     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13664     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13665     ;;
13666   *)
13667     shrext_cmds='.sl'
13668     dynamic_linker="$host_os dld.sl"
13669     shlibpath_var=SHLIB_PATH
13670     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672     soname_spec='${libname}${release}${shared_ext}$major'
13673     ;;
13674   esac
13675   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13676   postinstall_cmds='chmod 555 $lib'
13677   # or fails outright, so override atomically:
13678   install_override_mode=555
13679   ;;
13680
13681 interix[3-9]*)
13682   version_type=linux # correct to gnu/linux during the next big refactor
13683   need_lib_prefix=no
13684   need_version=no
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13686   soname_spec='${libname}${release}${shared_ext}$major'
13687   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13688   shlibpath_var=LD_LIBRARY_PATH
13689   shlibpath_overrides_runpath=no
13690   hardcode_into_libs=yes
13691   ;;
13692
13693 irix5* | irix6* | nonstopux*)
13694   case $host_os in
13695     nonstopux*) version_type=nonstopux ;;
13696     *)
13697         if test "$lt_cv_prog_gnu_ld" = yes; then
13698                 version_type=linux # correct to gnu/linux during the next big refactor
13699         else
13700                 version_type=irix
13701         fi ;;
13702   esac
13703   need_lib_prefix=no
13704   need_version=no
13705   soname_spec='${libname}${release}${shared_ext}$major'
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13707   case $host_os in
13708   irix5* | nonstopux*)
13709     libsuff= shlibsuff=
13710     ;;
13711   *)
13712     case $LD in # libtool.m4 will add one of these switches to LD
13713     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13714       libsuff= shlibsuff= libmagic=32-bit;;
13715     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13716       libsuff=32 shlibsuff=N32 libmagic=N32;;
13717     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13718       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13719     *) libsuff= shlibsuff= libmagic=never-match;;
13720     esac
13721     ;;
13722   esac
13723   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13724   shlibpath_overrides_runpath=no
13725   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13726   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13727   hardcode_into_libs=yes
13728   ;;
13729
13730 # No shared lib support for Linux oldld, aout, or coff.
13731 linux*oldld* | linux*aout* | linux*coff*)
13732   dynamic_linker=no
13733   ;;
13734
13735 # This must be glibc/ELF.
13736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13737   version_type=linux # correct to gnu/linux during the next big refactor
13738   need_lib_prefix=no
13739   need_version=no
13740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741   soname_spec='${libname}${release}${shared_ext}$major'
13742   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13743   shlibpath_var=LD_LIBRARY_PATH
13744   shlibpath_overrides_runpath=no
13745
13746   # Some binutils ld are patched to set DT_RUNPATH
13747   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   lt_cv_shlibpath_overrides_runpath=no
13751     save_LDFLAGS=$LDFLAGS
13752     save_libdir=$libdir
13753     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13754          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h.  */
13757
13758 int
13759 main ()
13760 {
13761
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13768   lt_cv_shlibpath_overrides_runpath=yes
13769 fi
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext \
13772     conftest$ac_exeext conftest.$ac_ext
13773     LDFLAGS=$save_LDFLAGS
13774     libdir=$save_libdir
13775
13776 fi
13777
13778   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13779
13780   # This implies no fast_install, which is unacceptable.
13781   # Some rework will be needed to allow for fast_install
13782   # before this can be enabled.
13783   hardcode_into_libs=yes
13784
13785   # Add ABI-specific directories to the system library path.
13786   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13787
13788   # Append ld.so.conf contents to the search path
13789   if test -f /etc/ld.so.conf; then
13790     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' ' '`
13791     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13792
13793   fi
13794
13795   # We used to test for /lib/ld.so.1 and disable shared libraries on
13796   # powerpc, because MkLinux only supported shared libraries with the
13797   # GNU dynamic linker.  Since this was broken with cross compilers,
13798   # most powerpc-linux boxes support dynamic linking these days and
13799   # people can always --disable-shared, the test was removed, and we
13800   # assume the GNU/Linux dynamic linker is in use.
13801   dynamic_linker='GNU/Linux ld.so'
13802   ;;
13803
13804 netbsd*)
13805   version_type=sunos
13806   need_lib_prefix=no
13807   need_version=no
13808   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13810     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13811     dynamic_linker='NetBSD (a.out) ld.so'
13812   else
13813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13814     soname_spec='${libname}${release}${shared_ext}$major'
13815     dynamic_linker='NetBSD ld.elf_so'
13816   fi
13817   shlibpath_var=LD_LIBRARY_PATH
13818   shlibpath_overrides_runpath=yes
13819   hardcode_into_libs=yes
13820   ;;
13821
13822 newsos6)
13823   version_type=linux # correct to gnu/linux during the next big refactor
13824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825   shlibpath_var=LD_LIBRARY_PATH
13826   shlibpath_overrides_runpath=yes
13827   ;;
13828
13829 *nto* | *qnx*)
13830   version_type=qnx
13831   need_lib_prefix=no
13832   need_version=no
13833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834   soname_spec='${libname}${release}${shared_ext}$major'
13835   shlibpath_var=LD_LIBRARY_PATH
13836   shlibpath_overrides_runpath=no
13837   hardcode_into_libs=yes
13838   dynamic_linker='ldqnx.so'
13839   ;;
13840
13841 openbsd*)
13842   version_type=sunos
13843   sys_lib_dlsearch_path_spec="/usr/lib"
13844   need_lib_prefix=no
13845   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13846   case $host_os in
13847     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13848     *)                          need_version=no  ;;
13849   esac
13850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13852   shlibpath_var=LD_LIBRARY_PATH
13853   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13854     case $host_os in
13855       openbsd2.[89] | openbsd2.[89].*)
13856         shlibpath_overrides_runpath=no
13857         ;;
13858       *)
13859         shlibpath_overrides_runpath=yes
13860         ;;
13861       esac
13862   else
13863     shlibpath_overrides_runpath=yes
13864   fi
13865   ;;
13866
13867 os2*)
13868   libname_spec='$name'
13869   shrext_cmds=".dll"
13870   need_lib_prefix=no
13871   library_names_spec='$libname${shared_ext} $libname.a'
13872   dynamic_linker='OS/2 ld.exe'
13873   shlibpath_var=LIBPATH
13874   ;;
13875
13876 osf3* | osf4* | osf5*)
13877   version_type=osf
13878   need_lib_prefix=no
13879   need_version=no
13880   soname_spec='${libname}${release}${shared_ext}$major'
13881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13882   shlibpath_var=LD_LIBRARY_PATH
13883   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13884   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13885   ;;
13886
13887 rdos*)
13888   dynamic_linker=no
13889   ;;
13890
13891 solaris*)
13892   version_type=linux # correct to gnu/linux during the next big refactor
13893   need_lib_prefix=no
13894   need_version=no
13895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896   soname_spec='${libname}${release}${shared_ext}$major'
13897   shlibpath_var=LD_LIBRARY_PATH
13898   shlibpath_overrides_runpath=yes
13899   hardcode_into_libs=yes
13900   # ldd complains unless libraries are executable
13901   postinstall_cmds='chmod +x $lib'
13902   ;;
13903
13904 sunos4*)
13905   version_type=sunos
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13908   shlibpath_var=LD_LIBRARY_PATH
13909   shlibpath_overrides_runpath=yes
13910   if test "$with_gnu_ld" = yes; then
13911     need_lib_prefix=no
13912   fi
13913   need_version=yes
13914   ;;
13915
13916 sysv4 | sysv4.3*)
13917   version_type=linux # correct to gnu/linux during the next big refactor
13918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919   soname_spec='${libname}${release}${shared_ext}$major'
13920   shlibpath_var=LD_LIBRARY_PATH
13921   case $host_vendor in
13922     sni)
13923       shlibpath_overrides_runpath=no
13924       need_lib_prefix=no
13925       runpath_var=LD_RUN_PATH
13926       ;;
13927     siemens)
13928       need_lib_prefix=no
13929       ;;
13930     motorola)
13931       need_lib_prefix=no
13932       need_version=no
13933       shlibpath_overrides_runpath=no
13934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13935       ;;
13936   esac
13937   ;;
13938
13939 sysv4*MP*)
13940   if test -d /usr/nec ;then
13941     version_type=linux # correct to gnu/linux during the next big refactor
13942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13943     soname_spec='$libname${shared_ext}.$major'
13944     shlibpath_var=LD_LIBRARY_PATH
13945   fi
13946   ;;
13947
13948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13949   version_type=freebsd-elf
13950   need_lib_prefix=no
13951   need_version=no
13952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13953   soname_spec='${libname}${release}${shared_ext}$major'
13954   shlibpath_var=LD_LIBRARY_PATH
13955   shlibpath_overrides_runpath=yes
13956   hardcode_into_libs=yes
13957   if test "$with_gnu_ld" = yes; then
13958     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13959   else
13960     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13961     case $host_os in
13962       sco3.2v5*)
13963         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13964         ;;
13965     esac
13966   fi
13967   sys_lib_dlsearch_path_spec='/usr/lib'
13968   ;;
13969
13970 tpf*)
13971   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13972   version_type=linux # correct to gnu/linux during the next big refactor
13973   need_lib_prefix=no
13974   need_version=no
13975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976   shlibpath_var=LD_LIBRARY_PATH
13977   shlibpath_overrides_runpath=no
13978   hardcode_into_libs=yes
13979   ;;
13980
13981 uts4*)
13982   version_type=linux # correct to gnu/linux during the next big refactor
13983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984   soname_spec='${libname}${release}${shared_ext}$major'
13985   shlibpath_var=LD_LIBRARY_PATH
13986   ;;
13987
13988 *)
13989   dynamic_linker=no
13990   ;;
13991 esac
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13993 $as_echo "$dynamic_linker" >&6; }
13994 test "$dynamic_linker" = no && can_build_shared=no
13995
13996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13997 if test "$GCC" = yes; then
13998   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13999 fi
14000
14001 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14002   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14003 fi
14004 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14005   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14006 fi
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14100 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14101 hardcode_action=
14102 if test -n "$hardcode_libdir_flag_spec" ||
14103    test -n "$runpath_var" ||
14104    test "X$hardcode_automatic" = "Xyes" ; then
14105
14106   # We can hardcode non-existent directories.
14107   if test "$hardcode_direct" != no &&
14108      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14109      # have to relink, otherwise we might link with an installed library
14110      # when we should be linking with a yet-to-be-installed one
14111      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14112      test "$hardcode_minus_L" != no; then
14113     # Linking always hardcodes the temporary library directory.
14114     hardcode_action=relink
14115   else
14116     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14117     hardcode_action=immediate
14118   fi
14119 else
14120   # We cannot hardcode anything, or else we can only hardcode existing
14121   # directories.
14122   hardcode_action=unsupported
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14125 $as_echo "$hardcode_action" >&6; }
14126
14127 if test "$hardcode_action" = relink ||
14128    test "$inherit_rpath" = yes; then
14129   # Fast installation is not supported
14130   enable_fast_install=no
14131 elif test "$shlibpath_overrides_runpath" = yes ||
14132      test "$enable_shared" = no; then
14133   # Fast installation is not necessary
14134   enable_fast_install=needless
14135 fi
14136
14137
14138
14139
14140
14141
14142   if test "x$enable_dlopen" != xyes; then
14143   enable_dlopen=unknown
14144   enable_dlopen_self=unknown
14145   enable_dlopen_self_static=unknown
14146 else
14147   lt_cv_dlopen=no
14148   lt_cv_dlopen_libs=
14149
14150   case $host_os in
14151   beos*)
14152     lt_cv_dlopen="load_add_on"
14153     lt_cv_dlopen_libs=
14154     lt_cv_dlopen_self=yes
14155     ;;
14156
14157   mingw* | pw32* | cegcc*)
14158     lt_cv_dlopen="LoadLibrary"
14159     lt_cv_dlopen_libs=
14160     ;;
14161
14162   cygwin*)
14163     lt_cv_dlopen="dlopen"
14164     lt_cv_dlopen_libs=
14165     ;;
14166
14167   darwin*)
14168   # if libdl is installed we need to link against it
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14170 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14171 if ${ac_cv_lib_dl_dlopen+:} false; then :
14172   $as_echo_n "(cached) " >&6
14173 else
14174   ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-ldl  $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h.  */
14178
14179 /* Override any GCC internal prototype to avoid an error.
14180    Use char because int might match the return type of a GCC
14181    builtin and then its argument prototype would still apply.  */
14182 #ifdef __cplusplus
14183 extern "C"
14184 #endif
14185 char dlopen ();
14186 int
14187 main ()
14188 {
14189 return dlopen ();
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195   ac_cv_lib_dl_dlopen=yes
14196 else
14197   ac_cv_lib_dl_dlopen=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext \
14200     conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14204 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14205 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14207 else
14208
14209     lt_cv_dlopen="dyld"
14210     lt_cv_dlopen_libs=
14211     lt_cv_dlopen_self=yes
14212
14213 fi
14214
14215     ;;
14216
14217   *)
14218     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14219 if test "x$ac_cv_func_shl_load" = xyes; then :
14220   lt_cv_dlopen="shl_load"
14221 else
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14223 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14224 if ${ac_cv_lib_dld_shl_load+:} false; then :
14225   $as_echo_n "(cached) " >&6
14226 else
14227   ac_check_lib_save_LIBS=$LIBS
14228 LIBS="-ldld  $LIBS"
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h.  */
14231
14232 /* Override any GCC internal prototype to avoid an error.
14233    Use char because int might match the return type of a GCC
14234    builtin and then its argument prototype would still apply.  */
14235 #ifdef __cplusplus
14236 extern "C"
14237 #endif
14238 char shl_load ();
14239 int
14240 main ()
14241 {
14242 return shl_load ();
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_c_try_link "$LINENO"; then :
14248   ac_cv_lib_dld_shl_load=yes
14249 else
14250   ac_cv_lib_dld_shl_load=no
14251 fi
14252 rm -f core conftest.err conftest.$ac_objext \
14253     conftest$ac_exeext conftest.$ac_ext
14254 LIBS=$ac_check_lib_save_LIBS
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14257 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14258 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14259   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14260 else
14261   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14262 if test "x$ac_cv_func_dlopen" = xyes; then :
14263   lt_cv_dlopen="dlopen"
14264 else
14265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14267 if ${ac_cv_lib_dl_dlopen+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   ac_check_lib_save_LIBS=$LIBS
14271 LIBS="-ldl  $LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 /* Override any GCC internal prototype to avoid an error.
14276    Use char because int might match the return type of a GCC
14277    builtin and then its argument prototype would still apply.  */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char dlopen ();
14282 int
14283 main ()
14284 {
14285 return dlopen ();
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291   ac_cv_lib_dl_dlopen=yes
14292 else
14293   ac_cv_lib_dl_dlopen=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296     conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14300 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14301 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14303 else
14304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14305 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14306 if ${ac_cv_lib_svld_dlopen+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   ac_check_lib_save_LIBS=$LIBS
14310 LIBS="-lsvld  $LIBS"
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h.  */
14313
14314 /* Override any GCC internal prototype to avoid an error.
14315    Use char because int might match the return type of a GCC
14316    builtin and then its argument prototype would still apply.  */
14317 #ifdef __cplusplus
14318 extern "C"
14319 #endif
14320 char dlopen ();
14321 int
14322 main ()
14323 {
14324 return dlopen ();
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330   ac_cv_lib_svld_dlopen=yes
14331 else
14332   ac_cv_lib_svld_dlopen=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335     conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14337 fi
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14339 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14340 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14342 else
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14344 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14345 if ${ac_cv_lib_dld_dld_link+:} false; then :
14346   $as_echo_n "(cached) " >&6
14347 else
14348   ac_check_lib_save_LIBS=$LIBS
14349 LIBS="-ldld  $LIBS"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354    Use char because int might match the return type of a GCC
14355    builtin and then its argument prototype would still apply.  */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char dld_link ();
14360 int
14361 main ()
14362 {
14363 return dld_link ();
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 if ac_fn_c_try_link "$LINENO"; then :
14369   ac_cv_lib_dld_dld_link=yes
14370 else
14371   ac_cv_lib_dld_dld_link=no
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext \
14374     conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14378 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14379 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14380   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14381 fi
14382
14383
14384 fi
14385
14386
14387 fi
14388
14389
14390 fi
14391
14392
14393 fi
14394
14395
14396 fi
14397
14398     ;;
14399   esac
14400
14401   if test "x$lt_cv_dlopen" != xno; then
14402     enable_dlopen=yes
14403   else
14404     enable_dlopen=no
14405   fi
14406
14407   case $lt_cv_dlopen in
14408   dlopen)
14409     save_CPPFLAGS="$CPPFLAGS"
14410     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14411
14412     save_LDFLAGS="$LDFLAGS"
14413     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14414
14415     save_LIBS="$LIBS"
14416     LIBS="$lt_cv_dlopen_libs $LIBS"
14417
14418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14419 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14420 if ${lt_cv_dlopen_self+:} false; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423           if test "$cross_compiling" = yes; then :
14424   lt_cv_dlopen_self=cross
14425 else
14426   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14427   lt_status=$lt_dlunknown
14428   cat > conftest.$ac_ext <<_LT_EOF
14429 #line $LINENO "configure"
14430 #include "confdefs.h"
14431
14432 #if HAVE_DLFCN_H
14433 #include <dlfcn.h>
14434 #endif
14435
14436 #include <stdio.h>
14437
14438 #ifdef RTLD_GLOBAL
14439 #  define LT_DLGLOBAL           RTLD_GLOBAL
14440 #else
14441 #  ifdef DL_GLOBAL
14442 #    define LT_DLGLOBAL         DL_GLOBAL
14443 #  else
14444 #    define LT_DLGLOBAL         0
14445 #  endif
14446 #endif
14447
14448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14449    find out it does not work in some platform. */
14450 #ifndef LT_DLLAZY_OR_NOW
14451 #  ifdef RTLD_LAZY
14452 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14453 #  else
14454 #    ifdef DL_LAZY
14455 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14456 #    else
14457 #      ifdef RTLD_NOW
14458 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14459 #      else
14460 #        ifdef DL_NOW
14461 #          define LT_DLLAZY_OR_NOW      DL_NOW
14462 #        else
14463 #          define LT_DLLAZY_OR_NOW      0
14464 #        endif
14465 #      endif
14466 #    endif
14467 #  endif
14468 #endif
14469
14470 /* When -fvisbility=hidden is used, assume the code has been annotated
14471    correspondingly for the symbols needed.  */
14472 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14473 int fnord () __attribute__((visibility("default")));
14474 #endif
14475
14476 int fnord () { return 42; }
14477 int main ()
14478 {
14479   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14480   int status = $lt_dlunknown;
14481
14482   if (self)
14483     {
14484       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14485       else
14486         {
14487           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14488           else puts (dlerror ());
14489         }
14490       /* dlclose (self); */
14491     }
14492   else
14493     puts (dlerror ());
14494
14495   return status;
14496 }
14497 _LT_EOF
14498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14499   (eval $ac_link) 2>&5
14500   ac_status=$?
14501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14503     (./conftest; exit; ) >&5 2>/dev/null
14504     lt_status=$?
14505     case x$lt_status in
14506       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14507       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14508       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14509     esac
14510   else :
14511     # compilation failed
14512     lt_cv_dlopen_self=no
14513   fi
14514 fi
14515 rm -fr conftest*
14516
14517
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14520 $as_echo "$lt_cv_dlopen_self" >&6; }
14521
14522     if test "x$lt_cv_dlopen_self" = xyes; then
14523       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14524       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14525 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14526 if ${lt_cv_dlopen_self_static+:} false; then :
14527   $as_echo_n "(cached) " >&6
14528 else
14529           if test "$cross_compiling" = yes; then :
14530   lt_cv_dlopen_self_static=cross
14531 else
14532   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14533   lt_status=$lt_dlunknown
14534   cat > conftest.$ac_ext <<_LT_EOF
14535 #line $LINENO "configure"
14536 #include "confdefs.h"
14537
14538 #if HAVE_DLFCN_H
14539 #include <dlfcn.h>
14540 #endif
14541
14542 #include <stdio.h>
14543
14544 #ifdef RTLD_GLOBAL
14545 #  define LT_DLGLOBAL           RTLD_GLOBAL
14546 #else
14547 #  ifdef DL_GLOBAL
14548 #    define LT_DLGLOBAL         DL_GLOBAL
14549 #  else
14550 #    define LT_DLGLOBAL         0
14551 #  endif
14552 #endif
14553
14554 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14555    find out it does not work in some platform. */
14556 #ifndef LT_DLLAZY_OR_NOW
14557 #  ifdef RTLD_LAZY
14558 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14559 #  else
14560 #    ifdef DL_LAZY
14561 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14562 #    else
14563 #      ifdef RTLD_NOW
14564 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14565 #      else
14566 #        ifdef DL_NOW
14567 #          define LT_DLLAZY_OR_NOW      DL_NOW
14568 #        else
14569 #          define LT_DLLAZY_OR_NOW      0
14570 #        endif
14571 #      endif
14572 #    endif
14573 #  endif
14574 #endif
14575
14576 /* When -fvisbility=hidden is used, assume the code has been annotated
14577    correspondingly for the symbols needed.  */
14578 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14579 int fnord () __attribute__((visibility("default")));
14580 #endif
14581
14582 int fnord () { return 42; }
14583 int main ()
14584 {
14585   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14586   int status = $lt_dlunknown;
14587
14588   if (self)
14589     {
14590       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14591       else
14592         {
14593           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14594           else puts (dlerror ());
14595         }
14596       /* dlclose (self); */
14597     }
14598   else
14599     puts (dlerror ());
14600
14601   return status;
14602 }
14603 _LT_EOF
14604   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14605   (eval $ac_link) 2>&5
14606   ac_status=$?
14607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14609     (./conftest; exit; ) >&5 2>/dev/null
14610     lt_status=$?
14611     case x$lt_status in
14612       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14613       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14614       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14615     esac
14616   else :
14617     # compilation failed
14618     lt_cv_dlopen_self_static=no
14619   fi
14620 fi
14621 rm -fr conftest*
14622
14623
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14626 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14627     fi
14628
14629     CPPFLAGS="$save_CPPFLAGS"
14630     LDFLAGS="$save_LDFLAGS"
14631     LIBS="$save_LIBS"
14632     ;;
14633   esac
14634
14635   case $lt_cv_dlopen_self in
14636   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14637   *) enable_dlopen_self=unknown ;;
14638   esac
14639
14640   case $lt_cv_dlopen_self_static in
14641   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14642   *) enable_dlopen_self_static=unknown ;;
14643   esac
14644 fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 striplib=
14663 old_striplib=
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14665 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14666 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14667   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14668   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14670 $as_echo "yes" >&6; }
14671 else
14672 # FIXME - insert some real tests, host_os isn't really good enough
14673   case $host_os in
14674   darwin*)
14675     if test -n "$STRIP" ; then
14676       striplib="$STRIP -x"
14677       old_striplib="$STRIP -S"
14678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14679 $as_echo "yes" >&6; }
14680     else
14681       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682 $as_echo "no" >&6; }
14683     fi
14684     ;;
14685   *)
14686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14688     ;;
14689   esac
14690 fi
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703   # Report which library types will actually be built
14704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14705 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14707 $as_echo "$can_build_shared" >&6; }
14708
14709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14710 $as_echo_n "checking whether to build shared libraries... " >&6; }
14711   test "$can_build_shared" = "no" && enable_shared=no
14712
14713   # On AIX, shared libraries and static libraries use the same namespace, and
14714   # are all built from PIC.
14715   case $host_os in
14716   aix3*)
14717     test "$enable_shared" = yes && enable_static=no
14718     if test -n "$RANLIB"; then
14719       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14720       postinstall_cmds='$RANLIB $lib'
14721     fi
14722     ;;
14723
14724   aix[4-9]*)
14725     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14726       test "$enable_shared" = yes && enable_static=no
14727     fi
14728     ;;
14729   esac
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14731 $as_echo "$enable_shared" >&6; }
14732
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14734 $as_echo_n "checking whether to build static libraries... " >&6; }
14735   # Make sure either enable_shared or enable_static is yes.
14736   test "$enable_shared" = yes || enable_static=yes
14737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14738 $as_echo "$enable_static" >&6; }
14739
14740
14741
14742
14743 fi
14744 ac_ext=c
14745 ac_cpp='$CPP $CPPFLAGS'
14746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14749
14750 CC="$lt_save_CC"
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766         ac_config_commands="$ac_config_commands libtool"
14767
14768
14769
14770
14771 # Only expand once:
14772
14773
14774
14775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14776 $as_echo_n "checking whether NLS is requested... " >&6; }
14777     # Check whether --enable-nls was given.
14778 if test "${enable_nls+set}" = set; then :
14779   enableval=$enable_nls; USE_NLS=$enableval
14780 else
14781   USE_NLS=yes
14782 fi
14783
14784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14785 $as_echo "$USE_NLS" >&6; }
14786
14787
14788
14789
14790 case "$am__api_version" in
14791     1.01234)
14792         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
14793     ;;
14794     *)
14795     ;;
14796 esac
14797
14798 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
14799 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
14800 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
14801 if test -n "0.35.0"; then
14802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
14803 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
14804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
14805 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
14806     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
14807         as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
14808 fi
14809
14810 # Extract the first word of "intltool-update", so it can be a program name with args.
14811 set dummy intltool-update; ac_word=$2
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14813 $as_echo_n "checking for $ac_word... " >&6; }
14814 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
14815   $as_echo_n "(cached) " >&6
14816 else
14817   case $INTLTOOL_UPDATE in
14818   [\\/]* | ?:[\\/]*)
14819   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
14820   ;;
14821   *)
14822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823 for as_dir in $PATH
14824 do
14825   IFS=$as_save_IFS
14826   test -z "$as_dir" && as_dir=.
14827     for ac_exec_ext in '' $ac_executable_extensions; do
14828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14829     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
14830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14831     break 2
14832   fi
14833 done
14834   done
14835 IFS=$as_save_IFS
14836
14837   ;;
14838 esac
14839 fi
14840 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
14841 if test -n "$INTLTOOL_UPDATE"; then
14842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
14843 $as_echo "$INTLTOOL_UPDATE" >&6; }
14844 else
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846 $as_echo "no" >&6; }
14847 fi
14848
14849
14850 # Extract the first word of "intltool-merge", so it can be a program name with args.
14851 set dummy intltool-merge; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14853 $as_echo_n "checking for $ac_word... " >&6; }
14854 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   case $INTLTOOL_MERGE in
14858   [\\/]* | ?:[\\/]*)
14859   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
14860   ;;
14861   *)
14862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14863 for as_dir in $PATH
14864 do
14865   IFS=$as_save_IFS
14866   test -z "$as_dir" && as_dir=.
14867     for ac_exec_ext in '' $ac_executable_extensions; do
14868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14869     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
14870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14871     break 2
14872   fi
14873 done
14874   done
14875 IFS=$as_save_IFS
14876
14877   ;;
14878 esac
14879 fi
14880 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
14881 if test -n "$INTLTOOL_MERGE"; then
14882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
14883 $as_echo "$INTLTOOL_MERGE" >&6; }
14884 else
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887 fi
14888
14889
14890 # Extract the first word of "intltool-extract", so it can be a program name with args.
14891 set dummy intltool-extract; ac_word=$2
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14893 $as_echo_n "checking for $ac_word... " >&6; }
14894 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
14895   $as_echo_n "(cached) " >&6
14896 else
14897   case $INTLTOOL_EXTRACT in
14898   [\\/]* | ?:[\\/]*)
14899   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
14900   ;;
14901   *)
14902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14904 do
14905   IFS=$as_save_IFS
14906   test -z "$as_dir" && as_dir=.
14907     for ac_exec_ext in '' $ac_executable_extensions; do
14908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
14910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14911     break 2
14912   fi
14913 done
14914   done
14915 IFS=$as_save_IFS
14916
14917   ;;
14918 esac
14919 fi
14920 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
14921 if test -n "$INTLTOOL_EXTRACT"; then
14922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
14923 $as_echo "$INTLTOOL_EXTRACT" >&6; }
14924 else
14925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926 $as_echo "no" >&6; }
14927 fi
14928
14929
14930 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
14931     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
14932 fi
14933
14934 if test -z "$AM_DEFAULT_VERBOSITY"; then
14935   AM_DEFAULT_VERBOSITY=1
14936 fi
14937
14938
14939 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
14940 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
14941 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
14942
14943
14944
14945
14946 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
14947 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
14948 intltool__v_merge_options_0='-q'
14949
14950
14951
14952
14953   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14954 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14955      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14956      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14957       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
14958      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14959    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14960     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14961 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14962        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14963       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14964 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
14965       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
14966 else
14967       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
14968 fi
14969       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14970       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14971     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14972   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14973     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14974     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14975    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073 # Check the gettext tools to make sure they are GNU
15074 # Extract the first word of "xgettext", so it can be a program name with args.
15075 set dummy xgettext; ac_word=$2
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077 $as_echo_n "checking for $ac_word... " >&6; }
15078 if ${ac_cv_path_XGETTEXT+:} false; then :
15079   $as_echo_n "(cached) " >&6
15080 else
15081   case $XGETTEXT in
15082   [\\/]* | ?:[\\/]*)
15083   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15084   ;;
15085   *)
15086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089   IFS=$as_save_IFS
15090   test -z "$as_dir" && as_dir=.
15091     for ac_exec_ext in '' $ac_executable_extensions; do
15092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
15094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095     break 2
15096   fi
15097 done
15098   done
15099 IFS=$as_save_IFS
15100
15101   ;;
15102 esac
15103 fi
15104 XGETTEXT=$ac_cv_path_XGETTEXT
15105 if test -n "$XGETTEXT"; then
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15107 $as_echo "$XGETTEXT" >&6; }
15108 else
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112
15113
15114 # Extract the first word of "msgmerge", so it can be a program name with args.
15115 set dummy msgmerge; ac_word=$2
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15117 $as_echo_n "checking for $ac_word... " >&6; }
15118 if ${ac_cv_path_MSGMERGE+:} false; then :
15119   $as_echo_n "(cached) " >&6
15120 else
15121   case $MSGMERGE in
15122   [\\/]* | ?:[\\/]*)
15123   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15124   ;;
15125   *)
15126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15128 do
15129   IFS=$as_save_IFS
15130   test -z "$as_dir" && as_dir=.
15131     for ac_exec_ext in '' $ac_executable_extensions; do
15132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
15134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135     break 2
15136   fi
15137 done
15138   done
15139 IFS=$as_save_IFS
15140
15141   ;;
15142 esac
15143 fi
15144 MSGMERGE=$ac_cv_path_MSGMERGE
15145 if test -n "$MSGMERGE"; then
15146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15147 $as_echo "$MSGMERGE" >&6; }
15148 else
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15151 fi
15152
15153
15154 # Extract the first word of "msgfmt", so it can be a program name with args.
15155 set dummy msgfmt; ac_word=$2
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15157 $as_echo_n "checking for $ac_word... " >&6; }
15158 if ${ac_cv_path_MSGFMT+:} false; then :
15159   $as_echo_n "(cached) " >&6
15160 else
15161   case $MSGFMT in
15162   [\\/]* | ?:[\\/]*)
15163   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15164   ;;
15165   *)
15166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15168 do
15169   IFS=$as_save_IFS
15170   test -z "$as_dir" && as_dir=.
15171     for ac_exec_ext in '' $ac_executable_extensions; do
15172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
15174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15175     break 2
15176   fi
15177 done
15178   done
15179 IFS=$as_save_IFS
15180
15181   ;;
15182 esac
15183 fi
15184 MSGFMT=$ac_cv_path_MSGFMT
15185 if test -n "$MSGFMT"; then
15186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15187 $as_echo "$MSGFMT" >&6; }
15188 else
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15191 fi
15192
15193
15194 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15195 set dummy gmsgfmt; ac_word=$2
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15197 $as_echo_n "checking for $ac_word... " >&6; }
15198 if ${ac_cv_path_GMSGFMT+:} false; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   case $GMSGFMT in
15202   [\\/]* | ?:[\\/]*)
15203   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15204   ;;
15205   *)
15206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207 for as_dir in $PATH
15208 do
15209   IFS=$as_save_IFS
15210   test -z "$as_dir" && as_dir=.
15211     for ac_exec_ext in '' $ac_executable_extensions; do
15212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15213     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15215     break 2
15216   fi
15217 done
15218   done
15219 IFS=$as_save_IFS
15220
15221   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15222   ;;
15223 esac
15224 fi
15225 GMSGFMT=$ac_cv_path_GMSGFMT
15226 if test -n "$GMSGFMT"; then
15227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15228 $as_echo "$GMSGFMT" >&6; }
15229 else
15230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232 fi
15233
15234
15235 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
15236     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
15237 fi
15238 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
15239 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
15240 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
15241 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
15242     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
15243 fi
15244
15245 # Extract the first word of "perl", so it can be a program name with args.
15246 set dummy perl; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248 $as_echo_n "checking for $ac_word... " >&6; }
15249 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   case $INTLTOOL_PERL in
15253   [\\/]* | ?:[\\/]*)
15254   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
15255   ;;
15256   *)
15257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15259 do
15260   IFS=$as_save_IFS
15261   test -z "$as_dir" && as_dir=.
15262     for ac_exec_ext in '' $ac_executable_extensions; do
15263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15264     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
15265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15266     break 2
15267   fi
15268 done
15269   done
15270 IFS=$as_save_IFS
15271
15272   ;;
15273 esac
15274 fi
15275 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
15276 if test -n "$INTLTOOL_PERL"; then
15277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
15278 $as_echo "$INTLTOOL_PERL" >&6; }
15279 else
15280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 $as_echo "no" >&6; }
15282 fi
15283
15284
15285 if test -z "$INTLTOOL_PERL"; then
15286    as_fn_error $? "perl not found" "$LINENO" 5
15287 fi
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
15289 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
15290 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
15291 if test $? -ne 0; then
15292    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
15293 else
15294    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
15295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
15296 $as_echo "$IT_PERL_VERSION" >&6; }
15297 fi
15298 if test "x" != "xno-xml"; then
15299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
15300 $as_echo_n "checking for XML::Parser... " >&6; }
15301    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
15302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15303 $as_echo "ok" >&6; }
15304    else
15305        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
15306    fi
15307 fi
15308
15309 # Substitute ALL_LINGUAS so we can use it in po/Makefile
15310
15311
15312 # Set DATADIRNAME correctly if it is not set yet
15313 # (copied from glib-gettext.m4)
15314 if test -z "$DATADIRNAME"; then
15315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h.  */
15317
15318 int
15319 main ()
15320 {
15321 extern int _nl_msg_cat_cntr;
15322                        return _nl_msg_cat_cntr
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"; then :
15328   DATADIRNAME=share
15329 else
15330   case $host in
15331     *-*-solaris*)
15332                         ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15333 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15334   DATADIRNAME=share
15335 else
15336   DATADIRNAME=lib
15337 fi
15338
15339     ;;
15340     *)
15341     DATADIRNAME=lib
15342     ;;
15343     esac
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext \
15346     conftest$ac_exeext conftest.$ac_ext
15347 fi
15348
15349
15350
15351
15352
15353
15354 # Check functions.
15355 for ac_func in daemon
15356 do :
15357   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
15358 if test "x$ac_cv_func_daemon" = xyes; then :
15359   cat >>confdefs.h <<_ACEOF
15360 #define HAVE_DAEMON 1
15361 _ACEOF
15362
15363 fi
15364 done
15365
15366
15367 # Check packages.
15368 # Check glib2.
15369 # Check whether --enable-glibtest was given.
15370 if test "${enable_glibtest+set}" = set; then :
15371   enableval=$enable_glibtest;
15372 else
15373   enable_glibtest=yes
15374 fi
15375
15376
15377   pkg_config_args=glib-2.0
15378   for module in .
15379   do
15380       case "$module" in
15381          gmodule)
15382              pkg_config_args="$pkg_config_args gmodule-2.0"
15383          ;;
15384          gmodule-no-export)
15385              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
15386          ;;
15387          gobject)
15388              pkg_config_args="$pkg_config_args gobject-2.0"
15389          ;;
15390          gthread)
15391              pkg_config_args="$pkg_config_args gthread-2.0"
15392          ;;
15393          gio*)
15394              pkg_config_args="$pkg_config_args $module-2.0"
15395          ;;
15396       esac
15397   done
15398
15399
15400
15401
15402
15403
15404
15405
15406 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15407         if test -n "$ac_tool_prefix"; then
15408   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15409 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15411 $as_echo_n "checking for $ac_word... " >&6; }
15412 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15413   $as_echo_n "(cached) " >&6
15414 else
15415   case $PKG_CONFIG in
15416   [\\/]* | ?:[\\/]*)
15417   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15418   ;;
15419   *)
15420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15422 do
15423   IFS=$as_save_IFS
15424   test -z "$as_dir" && as_dir=.
15425     for ac_exec_ext in '' $ac_executable_extensions; do
15426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15427     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15429     break 2
15430   fi
15431 done
15432   done
15433 IFS=$as_save_IFS
15434
15435   ;;
15436 esac
15437 fi
15438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15439 if test -n "$PKG_CONFIG"; then
15440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15441 $as_echo "$PKG_CONFIG" >&6; }
15442 else
15443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444 $as_echo "no" >&6; }
15445 fi
15446
15447
15448 fi
15449 if test -z "$ac_cv_path_PKG_CONFIG"; then
15450   ac_pt_PKG_CONFIG=$PKG_CONFIG
15451   # Extract the first word of "pkg-config", so it can be a program name with args.
15452 set dummy pkg-config; ac_word=$2
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15454 $as_echo_n "checking for $ac_word... " >&6; }
15455 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15456   $as_echo_n "(cached) " >&6
15457 else
15458   case $ac_pt_PKG_CONFIG in
15459   [\\/]* | ?:[\\/]*)
15460   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15461   ;;
15462   *)
15463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464 for as_dir in $PATH
15465 do
15466   IFS=$as_save_IFS
15467   test -z "$as_dir" && as_dir=.
15468     for ac_exec_ext in '' $ac_executable_extensions; do
15469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15470     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15472     break 2
15473   fi
15474 done
15475   done
15476 IFS=$as_save_IFS
15477
15478   ;;
15479 esac
15480 fi
15481 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15482 if test -n "$ac_pt_PKG_CONFIG"; then
15483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15484 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15485 else
15486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 $as_echo "no" >&6; }
15488 fi
15489
15490   if test "x$ac_pt_PKG_CONFIG" = x; then
15491     PKG_CONFIG=""
15492   else
15493     case $cross_compiling:$ac_tool_warned in
15494 yes:)
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15497 ac_tool_warned=yes ;;
15498 esac
15499     PKG_CONFIG=$ac_pt_PKG_CONFIG
15500   fi
15501 else
15502   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15503 fi
15504
15505 fi
15506 if test -n "$PKG_CONFIG"; then
15507         _pkg_min_version=0.16
15508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15509 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15510         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15511                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15512 $as_echo "yes" >&6; }
15513         else
15514                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15515 $as_echo "no" >&6; }
15516                 PKG_CONFIG=""
15517         fi
15518 fi
15519
15520   no_glib=""
15521
15522   if test "x$PKG_CONFIG" = x ; then
15523     no_glib=yes
15524     PKG_CONFIG=no
15525   fi
15526
15527   min_glib_version=2.0.0
15528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
15529 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
15530
15531   if test x$PKG_CONFIG != xno ; then
15532     ## don't try to run the test against uninstalled libtool libs
15533     if $PKG_CONFIG --uninstalled $pkg_config_args; then
15534           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
15535           enable_glibtest=no
15536     fi
15537
15538     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
15539           :
15540     else
15541           no_glib=yes
15542     fi
15543   fi
15544
15545   if test x"$no_glib" = x ; then
15546     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
15547     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
15548     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
15549     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
15550
15551     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
15552     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
15553     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
15554            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15555     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
15556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15557     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
15558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15559     if test "x$enable_glibtest" = "xyes" ; then
15560       ac_save_CFLAGS="$CFLAGS"
15561       ac_save_LIBS="$LIBS"
15562       CFLAGS="$CFLAGS $GLIB_CFLAGS"
15563       LIBS="$GLIB_LIBS $LIBS"
15564       rm -f conf.glibtest
15565       if test "$cross_compiling" = yes; then :
15566   echo $ac_n "cross compiling; assumed OK... $ac_c"
15567 else
15568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h.  */
15570
15571 #include <glib.h>
15572 #include <stdio.h>
15573 #include <stdlib.h>
15574
15575 int
15576 main ()
15577 {
15578   unsigned int major, minor, micro;
15579   char *tmp_version;
15580
15581   fclose (fopen ("conf.glibtest", "w"));
15582
15583   /* HP/UX 9 (%@#!) writes to sscanf strings */
15584   tmp_version = g_strdup("$min_glib_version");
15585   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
15586      printf("%s, bad version string\n", "$min_glib_version");
15587      exit(1);
15588    }
15589
15590   if ((glib_major_version != $glib_config_major_version) ||
15591       (glib_minor_version != $glib_config_minor_version) ||
15592       (glib_micro_version != $glib_config_micro_version))
15593     {
15594       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
15595              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
15596              glib_major_version, glib_minor_version, glib_micro_version);
15597       printf ("*** was found! If pkg-config was correct, then it is best\n");
15598       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
15599       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15600       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15601       printf("*** required on your system.\n");
15602       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15603       printf("*** to point to the correct configuration files\n");
15604     }
15605   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
15606            (glib_minor_version != GLIB_MINOR_VERSION) ||
15607            (glib_micro_version != GLIB_MICRO_VERSION))
15608     {
15609       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
15610              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
15611       printf("*** library (version %d.%d.%d)\n",
15612              glib_major_version, glib_minor_version, glib_micro_version);
15613     }
15614   else
15615     {
15616       if ((glib_major_version > major) ||
15617         ((glib_major_version == major) && (glib_minor_version > minor)) ||
15618         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
15619       {
15620         return 0;
15621        }
15622      else
15623       {
15624         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
15625                glib_major_version, glib_minor_version, glib_micro_version);
15626         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
15627                major, minor, micro);
15628         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
15629         printf("***\n");
15630         printf("*** If you have already installed a sufficiently new version, this error\n");
15631         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15632         printf("*** being found. The easiest way to fix this is to remove the old version\n");
15633         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
15634         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15635         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15636         printf("*** so that the correct libraries are found at run-time))\n");
15637       }
15638     }
15639   return 1;
15640 }
15641
15642 _ACEOF
15643 if ac_fn_c_try_run "$LINENO"; then :
15644
15645 else
15646   no_glib=yes
15647 fi
15648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15649   conftest.$ac_objext conftest.beam conftest.$ac_ext
15650 fi
15651
15652        CFLAGS="$ac_save_CFLAGS"
15653        LIBS="$ac_save_LIBS"
15654      fi
15655   fi
15656   if test "x$no_glib" = x ; then
15657      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
15658 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
15659      :
15660   else
15661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15662 $as_echo "no" >&6; }
15663      if test "$PKG_CONFIG" = "no" ; then
15664        echo "*** A new enough version of pkg-config was not found."
15665        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
15666      else
15667        if test -f conf.glibtest ; then
15668         :
15669        else
15670           echo "*** Could not run GLIB test program, checking why..."
15671           ac_save_CFLAGS="$CFLAGS"
15672           ac_save_LIBS="$LIBS"
15673           CFLAGS="$CFLAGS $GLIB_CFLAGS"
15674           LIBS="$LIBS $GLIB_LIBS"
15675           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h.  */
15677
15678 #include <glib.h>
15679 #include <stdio.h>
15680
15681 int
15682 main ()
15683 {
15684  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690    echo "*** The test program compiled, but did not run. This usually means"
15691           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
15692           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
15693           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15694           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15695           echo "*** is required on your system"
15696           echo "***"
15697           echo "*** If you have an old version installed, it is best to remove it, although"
15698           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15699 else
15700    echo "*** The test program failed to compile or link. See the file config.log for the"
15701           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext \
15704     conftest$ac_exeext conftest.$ac_ext
15705           CFLAGS="$ac_save_CFLAGS"
15706           LIBS="$ac_save_LIBS"
15707        fi
15708      fi
15709      GLIB_CFLAGS=""
15710      GLIB_LIBS=""
15711      GLIB_GENMARSHAL=""
15712      GOBJECT_QUERY=""
15713      GLIB_MKENUMS=""
15714      GLIB_COMPILE_RESOURCES=""
15715      :
15716   fi
15717
15718
15719
15720
15721
15722
15723   rm -f conf.glibtest
15724
15725
15726 pkg_failed=no
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
15728 $as_echo_n "checking for GLIB2... " >&6; }
15729
15730 if test -n "$GLIB2_CFLAGS"; then
15731     pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
15732  elif test -n "$PKG_CONFIG"; then
15733     if test -n "$PKG_CONFIG" && \
15734     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15735     glib-2.0 >= 2.32.0
15736 \""; } >&5
15737   ($PKG_CONFIG --exists --print-errors "
15738     glib-2.0 >= 2.32.0
15739 ") 2>&5
15740   ac_status=$?
15741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742   test $ac_status = 0; }; then
15743   pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "
15744     glib-2.0 >= 2.32.0
15745 " 2>/dev/null`
15746                       test "x$?" != "x0" && pkg_failed=yes
15747 else
15748   pkg_failed=yes
15749 fi
15750  else
15751     pkg_failed=untried
15752 fi
15753 if test -n "$GLIB2_LIBS"; then
15754     pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
15755  elif test -n "$PKG_CONFIG"; then
15756     if test -n "$PKG_CONFIG" && \
15757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15758     glib-2.0 >= 2.32.0
15759 \""; } >&5
15760   ($PKG_CONFIG --exists --print-errors "
15761     glib-2.0 >= 2.32.0
15762 ") 2>&5
15763   ac_status=$?
15764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15765   test $ac_status = 0; }; then
15766   pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "
15767     glib-2.0 >= 2.32.0
15768 " 2>/dev/null`
15769                       test "x$?" != "x0" && pkg_failed=yes
15770 else
15771   pkg_failed=yes
15772 fi
15773  else
15774     pkg_failed=untried
15775 fi
15776
15777
15778
15779 if test $pkg_failed = yes; then
15780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15782
15783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15784         _pkg_short_errors_supported=yes
15785 else
15786         _pkg_short_errors_supported=no
15787 fi
15788         if test $_pkg_short_errors_supported = yes; then
15789                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15790     glib-2.0 >= 2.32.0
15791 " 2>&1`
15792         else
15793                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15794     glib-2.0 >= 2.32.0
15795 " 2>&1`
15796         fi
15797         # Put the nasty error message in config.log where it belongs
15798         echo "$GLIB2_PKG_ERRORS" >&5
15799
15800         as_fn_error $? "Package requirements (
15801     glib-2.0 >= 2.32.0
15802 ) were not met:
15803
15804 $GLIB2_PKG_ERRORS
15805
15806 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15807 installed software in a non-standard prefix.
15808
15809 Alternatively, you may set the environment variables GLIB2_CFLAGS
15810 and GLIB2_LIBS to avoid the need to call pkg-config.
15811 See the pkg-config man page for more details." "$LINENO" 5
15812 elif test $pkg_failed = untried; then
15813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15815         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15817 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15818 is in your PATH or set the PKG_CONFIG environment variable to the full
15819 path to pkg-config.
15820
15821 Alternatively, you may set the environment variables GLIB2_CFLAGS
15822 and GLIB2_LIBS to avoid the need to call pkg-config.
15823 See the pkg-config man page for more details.
15824
15825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15826 See \`config.log' for more details" "$LINENO" 5; }
15827 else
15828         GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
15829         GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
15830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15831 $as_echo "yes" >&6; }
15832
15833 fi
15834
15835 pkg_failed=no
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT2" >&5
15837 $as_echo_n "checking for GOBJECT2... " >&6; }
15838
15839 if test -n "$GOBJECT2_CFLAGS"; then
15840     pkg_cv_GOBJECT2_CFLAGS="$GOBJECT2_CFLAGS"
15841  elif test -n "$PKG_CONFIG"; then
15842     if test -n "$PKG_CONFIG" && \
15843     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15844     gobject-2.0 >= 2.32.0
15845 \""; } >&5
15846   ($PKG_CONFIG --exists --print-errors "
15847     gobject-2.0 >= 2.32.0
15848 ") 2>&5
15849   ac_status=$?
15850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851   test $ac_status = 0; }; then
15852   pkg_cv_GOBJECT2_CFLAGS=`$PKG_CONFIG --cflags "
15853     gobject-2.0 >= 2.32.0
15854 " 2>/dev/null`
15855                       test "x$?" != "x0" && pkg_failed=yes
15856 else
15857   pkg_failed=yes
15858 fi
15859  else
15860     pkg_failed=untried
15861 fi
15862 if test -n "$GOBJECT2_LIBS"; then
15863     pkg_cv_GOBJECT2_LIBS="$GOBJECT2_LIBS"
15864  elif test -n "$PKG_CONFIG"; then
15865     if test -n "$PKG_CONFIG" && \
15866     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15867     gobject-2.0 >= 2.32.0
15868 \""; } >&5
15869   ($PKG_CONFIG --exists --print-errors "
15870     gobject-2.0 >= 2.32.0
15871 ") 2>&5
15872   ac_status=$?
15873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874   test $ac_status = 0; }; then
15875   pkg_cv_GOBJECT2_LIBS=`$PKG_CONFIG --libs "
15876     gobject-2.0 >= 2.32.0
15877 " 2>/dev/null`
15878                       test "x$?" != "x0" && pkg_failed=yes
15879 else
15880   pkg_failed=yes
15881 fi
15882  else
15883     pkg_failed=untried
15884 fi
15885
15886
15887
15888 if test $pkg_failed = yes; then
15889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890 $as_echo "no" >&6; }
15891
15892 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15893         _pkg_short_errors_supported=yes
15894 else
15895         _pkg_short_errors_supported=no
15896 fi
15897         if test $_pkg_short_errors_supported = yes; then
15898                 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
15899     gobject-2.0 >= 2.32.0
15900 " 2>&1`
15901         else
15902                 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
15903     gobject-2.0 >= 2.32.0
15904 " 2>&1`
15905         fi
15906         # Put the nasty error message in config.log where it belongs
15907         echo "$GOBJECT2_PKG_ERRORS" >&5
15908
15909         as_fn_error $? "Package requirements (
15910     gobject-2.0 >= 2.32.0
15911 ) were not met:
15912
15913 $GOBJECT2_PKG_ERRORS
15914
15915 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15916 installed software in a non-standard prefix.
15917
15918 Alternatively, you may set the environment variables GOBJECT2_CFLAGS
15919 and GOBJECT2_LIBS to avoid the need to call pkg-config.
15920 See the pkg-config man page for more details." "$LINENO" 5
15921 elif test $pkg_failed = untried; then
15922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15926 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15927 is in your PATH or set the PKG_CONFIG environment variable to the full
15928 path to pkg-config.
15929
15930 Alternatively, you may set the environment variables GOBJECT2_CFLAGS
15931 and GOBJECT2_LIBS to avoid the need to call pkg-config.
15932 See the pkg-config man page for more details.
15933
15934 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15935 See \`config.log' for more details" "$LINENO" 5; }
15936 else
15937         GOBJECT2_CFLAGS=$pkg_cv_GOBJECT2_CFLAGS
15938         GOBJECT2_LIBS=$pkg_cv_GOBJECT2_LIBS
15939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15940 $as_echo "yes" >&6; }
15941
15942 fi
15943
15944 pkg_failed=no
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO2" >&5
15946 $as_echo_n "checking for GIO2... " >&6; }
15947
15948 if test -n "$GIO2_CFLAGS"; then
15949     pkg_cv_GIO2_CFLAGS="$GIO2_CFLAGS"
15950  elif test -n "$PKG_CONFIG"; then
15951     if test -n "$PKG_CONFIG" && \
15952     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15953     gio-2.0 >= 2.32.0
15954 \""; } >&5
15955   ($PKG_CONFIG --exists --print-errors "
15956     gio-2.0 >= 2.32.0
15957 ") 2>&5
15958   ac_status=$?
15959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960   test $ac_status = 0; }; then
15961   pkg_cv_GIO2_CFLAGS=`$PKG_CONFIG --cflags "
15962     gio-2.0 >= 2.32.0
15963 " 2>/dev/null`
15964                       test "x$?" != "x0" && pkg_failed=yes
15965 else
15966   pkg_failed=yes
15967 fi
15968  else
15969     pkg_failed=untried
15970 fi
15971 if test -n "$GIO2_LIBS"; then
15972     pkg_cv_GIO2_LIBS="$GIO2_LIBS"
15973  elif test -n "$PKG_CONFIG"; then
15974     if test -n "$PKG_CONFIG" && \
15975     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15976     gio-2.0 >= 2.32.0
15977 \""; } >&5
15978   ($PKG_CONFIG --exists --print-errors "
15979     gio-2.0 >= 2.32.0
15980 ") 2>&5
15981   ac_status=$?
15982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15983   test $ac_status = 0; }; then
15984   pkg_cv_GIO2_LIBS=`$PKG_CONFIG --libs "
15985     gio-2.0 >= 2.32.0
15986 " 2>/dev/null`
15987                       test "x$?" != "x0" && pkg_failed=yes
15988 else
15989   pkg_failed=yes
15990 fi
15991  else
15992     pkg_failed=untried
15993 fi
15994
15995
15996
15997 if test $pkg_failed = yes; then
15998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16000
16001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16002         _pkg_short_errors_supported=yes
16003 else
16004         _pkg_short_errors_supported=no
16005 fi
16006         if test $_pkg_short_errors_supported = yes; then
16007                 GIO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16008     gio-2.0 >= 2.32.0
16009 " 2>&1`
16010         else
16011                 GIO2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16012     gio-2.0 >= 2.32.0
16013 " 2>&1`
16014         fi
16015         # Put the nasty error message in config.log where it belongs
16016         echo "$GIO2_PKG_ERRORS" >&5
16017
16018         as_fn_error $? "Package requirements (
16019     gio-2.0 >= 2.32.0
16020 ) were not met:
16021
16022 $GIO2_PKG_ERRORS
16023
16024 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16025 installed software in a non-standard prefix.
16026
16027 Alternatively, you may set the environment variables GIO2_CFLAGS
16028 and GIO2_LIBS to avoid the need to call pkg-config.
16029 See the pkg-config man page for more details." "$LINENO" 5
16030 elif test $pkg_failed = untried; then
16031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16033         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16035 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16036 is in your PATH or set the PKG_CONFIG environment variable to the full
16037 path to pkg-config.
16038
16039 Alternatively, you may set the environment variables GIO2_CFLAGS
16040 and GIO2_LIBS to avoid the need to call pkg-config.
16041 See the pkg-config man page for more details.
16042
16043 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16044 See \`config.log' for more details" "$LINENO" 5; }
16045 else
16046         GIO2_CFLAGS=$pkg_cv_GIO2_CFLAGS
16047         GIO2_LIBS=$pkg_cv_GIO2_LIBS
16048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16049 $as_echo "yes" >&6; }
16050
16051 fi
16052
16053 pkg_failed=no
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD2" >&5
16055 $as_echo_n "checking for GTHREAD2... " >&6; }
16056
16057 if test -n "$GTHREAD2_CFLAGS"; then
16058     pkg_cv_GTHREAD2_CFLAGS="$GTHREAD2_CFLAGS"
16059  elif test -n "$PKG_CONFIG"; then
16060     if test -n "$PKG_CONFIG" && \
16061     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16062     gthread-2.0 >= 2.32.0
16063 \""; } >&5
16064   ($PKG_CONFIG --exists --print-errors "
16065     gthread-2.0 >= 2.32.0
16066 ") 2>&5
16067   ac_status=$?
16068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069   test $ac_status = 0; }; then
16070   pkg_cv_GTHREAD2_CFLAGS=`$PKG_CONFIG --cflags "
16071     gthread-2.0 >= 2.32.0
16072 " 2>/dev/null`
16073                       test "x$?" != "x0" && pkg_failed=yes
16074 else
16075   pkg_failed=yes
16076 fi
16077  else
16078     pkg_failed=untried
16079 fi
16080 if test -n "$GTHREAD2_LIBS"; then
16081     pkg_cv_GTHREAD2_LIBS="$GTHREAD2_LIBS"
16082  elif test -n "$PKG_CONFIG"; then
16083     if test -n "$PKG_CONFIG" && \
16084     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16085     gthread-2.0 >= 2.32.0
16086 \""; } >&5
16087   ($PKG_CONFIG --exists --print-errors "
16088     gthread-2.0 >= 2.32.0
16089 ") 2>&5
16090   ac_status=$?
16091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16092   test $ac_status = 0; }; then
16093   pkg_cv_GTHREAD2_LIBS=`$PKG_CONFIG --libs "
16094     gthread-2.0 >= 2.32.0
16095 " 2>/dev/null`
16096                       test "x$?" != "x0" && pkg_failed=yes
16097 else
16098   pkg_failed=yes
16099 fi
16100  else
16101     pkg_failed=untried
16102 fi
16103
16104
16105
16106 if test $pkg_failed = yes; then
16107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109
16110 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16111         _pkg_short_errors_supported=yes
16112 else
16113         _pkg_short_errors_supported=no
16114 fi
16115         if test $_pkg_short_errors_supported = yes; then
16116                 GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16117     gthread-2.0 >= 2.32.0
16118 " 2>&1`
16119         else
16120                 GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16121     gthread-2.0 >= 2.32.0
16122 " 2>&1`
16123         fi
16124         # Put the nasty error message in config.log where it belongs
16125         echo "$GTHREAD2_PKG_ERRORS" >&5
16126
16127         as_fn_error $? "Package requirements (
16128     gthread-2.0 >= 2.32.0
16129 ) were not met:
16130
16131 $GTHREAD2_PKG_ERRORS
16132
16133 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16134 installed software in a non-standard prefix.
16135
16136 Alternatively, you may set the environment variables GTHREAD2_CFLAGS
16137 and GTHREAD2_LIBS to avoid the need to call pkg-config.
16138 See the pkg-config man page for more details." "$LINENO" 5
16139 elif test $pkg_failed = untried; then
16140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16141 $as_echo "no" >&6; }
16142         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16144 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16145 is in your PATH or set the PKG_CONFIG environment variable to the full
16146 path to pkg-config.
16147
16148 Alternatively, you may set the environment variables GTHREAD2_CFLAGS
16149 and GTHREAD2_LIBS to avoid the need to call pkg-config.
16150 See the pkg-config man page for more details.
16151
16152 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16153 See \`config.log' for more details" "$LINENO" 5; }
16154 else
16155         GTHREAD2_CFLAGS=$pkg_cv_GTHREAD2_CFLAGS
16156         GTHREAD2_LIBS=$pkg_cv_GTHREAD2_LIBS
16157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16158 $as_echo "yes" >&6; }
16159
16160 fi
16161
16162 # --disable-tests option.
16163 # Check whether --enable-tests was given.
16164 if test "${enable_tests+set}" = set; then :
16165   enableval=$enable_tests; enable_tests=$enableval
16166 else
16167   enable_tests=yes
16168
16169 fi
16170
16171  if test x"$enable_tests" = x"yes"; then
16172   ENABLE_TESTS_TRUE=
16173   ENABLE_TESTS_FALSE='#'
16174 else
16175   ENABLE_TESTS_TRUE='#'
16176   ENABLE_TESTS_FALSE=
16177 fi
16178
16179 if test x"$enable_tests" != x"yes"; then
16180     enable_tests="no (disabled, use --enable-tests to enable)"
16181 fi
16182
16183 # --disable-gtk2 option.
16184 # Check whether --enable-gtk2 was given.
16185 if test "${enable_gtk2+set}" = set; then :
16186   enableval=$enable_gtk2; enable_gtk2=$enableval
16187 else
16188   enable_gtk2=yes
16189
16190 fi
16191
16192  if test x"$enable_gtk2" = x"yes"; then
16193   ENABLE_GTK2_TRUE=
16194   ENABLE_GTK2_FALSE='#'
16195 else
16196   ENABLE_GTK2_TRUE='#'
16197   ENABLE_GTK2_FALSE=
16198 fi
16199
16200
16201 # --disable-gtk3 option.
16202 # Check whether --enable-gtk3 was given.
16203 if test "${enable_gtk3+set}" = set; then :
16204   enableval=$enable_gtk3; enable_gtk3=$enableval
16205 else
16206   enable_gtk3=yes
16207
16208 fi
16209
16210  if test x"$enable_gtk3" = x"yes"; then
16211   ENABLE_GTK3_TRUE=
16212   ENABLE_GTK3_FALSE='#'
16213 else
16214   ENABLE_GTK3_TRUE='#'
16215   ENABLE_GTK3_FALSE=
16216 fi
16217
16218
16219 # --disable-xim option.
16220 # Check whether --enable-xim was given.
16221 if test "${enable_xim+set}" = set; then :
16222   enableval=$enable_xim; enable_xim=$enableval
16223 else
16224   enable_xim=yes
16225
16226 fi
16227
16228  if test x"$enable_xim" = x"yes"; then
16229   ENABLE_XIM_TRUE=
16230   ENABLE_XIM_FALSE='#'
16231 else
16232   ENABLE_XIM_TRUE='#'
16233   ENABLE_XIM_FALSE=
16234 fi
16235
16236
16237 # --enable-wayland option.
16238 # Check whether --enable-wayland was given.
16239 if test "${enable_wayland+set}" = set; then :
16240   enableval=$enable_wayland; enable_wayland=$enableval
16241 else
16242   enable_wayland=no
16243
16244 fi
16245
16246  if test x"$enable_wayland" = x"yes"; then
16247   ENABLE_WAYLAND_TRUE=
16248   ENABLE_WAYLAND_FALSE='#'
16249 else
16250   ENABLE_WAYLAND_TRUE='#'
16251   ENABLE_WAYLAND_FALSE=
16252 fi
16253
16254
16255 if test x"$enable_gtk2" = x"yes" -o x"$enable_xim" = x"yes" ; then
16256     # check for gtk2
16257
16258 pkg_failed=no
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
16260 $as_echo_n "checking for GTK2... " >&6; }
16261
16262 if test -n "$GTK2_CFLAGS"; then
16263     pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
16264  elif test -n "$PKG_CONFIG"; then
16265     if test -n "$PKG_CONFIG" && \
16266     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16267         gtk+-2.0
16268     \""; } >&5
16269   ($PKG_CONFIG --exists --print-errors "
16270         gtk+-2.0
16271     ") 2>&5
16272   ac_status=$?
16273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274   test $ac_status = 0; }; then
16275   pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "
16276         gtk+-2.0
16277     " 2>/dev/null`
16278                       test "x$?" != "x0" && pkg_failed=yes
16279 else
16280   pkg_failed=yes
16281 fi
16282  else
16283     pkg_failed=untried
16284 fi
16285 if test -n "$GTK2_LIBS"; then
16286     pkg_cv_GTK2_LIBS="$GTK2_LIBS"
16287  elif test -n "$PKG_CONFIG"; then
16288     if test -n "$PKG_CONFIG" && \
16289     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16290         gtk+-2.0
16291     \""; } >&5
16292   ($PKG_CONFIG --exists --print-errors "
16293         gtk+-2.0
16294     ") 2>&5
16295   ac_status=$?
16296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297   test $ac_status = 0; }; then
16298   pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "
16299         gtk+-2.0
16300     " 2>/dev/null`
16301                       test "x$?" != "x0" && pkg_failed=yes
16302 else
16303   pkg_failed=yes
16304 fi
16305  else
16306     pkg_failed=untried
16307 fi
16308
16309
16310
16311 if test $pkg_failed = yes; then
16312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 $as_echo "no" >&6; }
16314
16315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16316         _pkg_short_errors_supported=yes
16317 else
16318         _pkg_short_errors_supported=no
16319 fi
16320         if test $_pkg_short_errors_supported = yes; then
16321                 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16322         gtk+-2.0
16323     " 2>&1`
16324         else
16325                 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16326         gtk+-2.0
16327     " 2>&1`
16328         fi
16329         # Put the nasty error message in config.log where it belongs
16330         echo "$GTK2_PKG_ERRORS" >&5
16331
16332         as_fn_error $? "Package requirements (
16333         gtk+-2.0
16334     ) were not met:
16335
16336 $GTK2_PKG_ERRORS
16337
16338 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16339 installed software in a non-standard prefix.
16340
16341 Alternatively, you may set the environment variables GTK2_CFLAGS
16342 and GTK2_LIBS to avoid the need to call pkg-config.
16343 See the pkg-config man page for more details." "$LINENO" 5
16344 elif test $pkg_failed = untried; then
16345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16347         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16349 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16350 is in your PATH or set the PKG_CONFIG environment variable to the full
16351 path to pkg-config.
16352
16353 Alternatively, you may set the environment variables GTK2_CFLAGS
16354 and GTK2_LIBS to avoid the need to call pkg-config.
16355 See the pkg-config man page for more details.
16356
16357 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16358 See \`config.log' for more details" "$LINENO" 5; }
16359 else
16360         GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
16361         GTK2_LIBS=$pkg_cv_GTK2_LIBS
16362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16363 $as_echo "yes" >&6; }
16364
16365 fi
16366 fi
16367
16368 if test x"$enable_gtk2" = x"yes"; then
16369     # check for gdk2
16370     gtk2_binary_version=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
16371     GTK2_IM_MODULEDIR="$libdir"/gtk-2.0/$gtk2_binary_version/immodules
16372
16373
16374 pkg_failed=no
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK2" >&5
16376 $as_echo_n "checking for GDK2... " >&6; }
16377
16378 if test -n "$GDK2_CFLAGS"; then
16379     pkg_cv_GDK2_CFLAGS="$GDK2_CFLAGS"
16380  elif test -n "$PKG_CONFIG"; then
16381     if test -n "$PKG_CONFIG" && \
16382     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16383         gdk-2.0
16384     \""; } >&5
16385   ($PKG_CONFIG --exists --print-errors "
16386         gdk-2.0
16387     ") 2>&5
16388   ac_status=$?
16389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16390   test $ac_status = 0; }; then
16391   pkg_cv_GDK2_CFLAGS=`$PKG_CONFIG --cflags "
16392         gdk-2.0
16393     " 2>/dev/null`
16394                       test "x$?" != "x0" && pkg_failed=yes
16395 else
16396   pkg_failed=yes
16397 fi
16398  else
16399     pkg_failed=untried
16400 fi
16401 if test -n "$GDK2_LIBS"; then
16402     pkg_cv_GDK2_LIBS="$GDK2_LIBS"
16403  elif test -n "$PKG_CONFIG"; then
16404     if test -n "$PKG_CONFIG" && \
16405     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16406         gdk-2.0
16407     \""; } >&5
16408   ($PKG_CONFIG --exists --print-errors "
16409         gdk-2.0
16410     ") 2>&5
16411   ac_status=$?
16412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413   test $ac_status = 0; }; then
16414   pkg_cv_GDK2_LIBS=`$PKG_CONFIG --libs "
16415         gdk-2.0
16416     " 2>/dev/null`
16417                       test "x$?" != "x0" && pkg_failed=yes
16418 else
16419   pkg_failed=yes
16420 fi
16421  else
16422     pkg_failed=untried
16423 fi
16424
16425
16426
16427 if test $pkg_failed = yes; then
16428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430
16431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16432         _pkg_short_errors_supported=yes
16433 else
16434         _pkg_short_errors_supported=no
16435 fi
16436         if test $_pkg_short_errors_supported = yes; then
16437                 GDK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16438         gdk-2.0
16439     " 2>&1`
16440         else
16441                 GDK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16442         gdk-2.0
16443     " 2>&1`
16444         fi
16445         # Put the nasty error message in config.log where it belongs
16446         echo "$GDK2_PKG_ERRORS" >&5
16447
16448         as_fn_error $? "Package requirements (
16449         gdk-2.0
16450     ) were not met:
16451
16452 $GDK2_PKG_ERRORS
16453
16454 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16455 installed software in a non-standard prefix.
16456
16457 Alternatively, you may set the environment variables GDK2_CFLAGS
16458 and GDK2_LIBS to avoid the need to call pkg-config.
16459 See the pkg-config man page for more details." "$LINENO" 5
16460 elif test $pkg_failed = untried; then
16461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16463         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16465 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16466 is in your PATH or set the PKG_CONFIG environment variable to the full
16467 path to pkg-config.
16468
16469 Alternatively, you may set the environment variables GDK2_CFLAGS
16470 and GDK2_LIBS to avoid the need to call pkg-config.
16471 See the pkg-config man page for more details.
16472
16473 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16474 See \`config.log' for more details" "$LINENO" 5; }
16475 else
16476         GDK2_CFLAGS=$pkg_cv_GDK2_CFLAGS
16477         GDK2_LIBS=$pkg_cv_GDK2_LIBS
16478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16479 $as_echo "yes" >&6; }
16480
16481 fi
16482 else
16483     enable_gtk2="no (disabled, use --enable-gtk2 to enable)"
16484 fi
16485
16486 if test x"$enable_gtk3" = x"yes"; then
16487     # check for gtk3, gdk3
16488
16489 pkg_failed=no
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
16491 $as_echo_n "checking for GTK3... " >&6; }
16492
16493 if test -n "$GTK3_CFLAGS"; then
16494     pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
16495  elif test -n "$PKG_CONFIG"; then
16496     if test -n "$PKG_CONFIG" && \
16497     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16498         gtk+-3.0
16499     \""; } >&5
16500   ($PKG_CONFIG --exists --print-errors "
16501         gtk+-3.0
16502     ") 2>&5
16503   ac_status=$?
16504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16505   test $ac_status = 0; }; then
16506   pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "
16507         gtk+-3.0
16508     " 2>/dev/null`
16509                       test "x$?" != "x0" && pkg_failed=yes
16510 else
16511   pkg_failed=yes
16512 fi
16513  else
16514     pkg_failed=untried
16515 fi
16516 if test -n "$GTK3_LIBS"; then
16517     pkg_cv_GTK3_LIBS="$GTK3_LIBS"
16518  elif test -n "$PKG_CONFIG"; then
16519     if test -n "$PKG_CONFIG" && \
16520     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16521         gtk+-3.0
16522     \""; } >&5
16523   ($PKG_CONFIG --exists --print-errors "
16524         gtk+-3.0
16525     ") 2>&5
16526   ac_status=$?
16527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16528   test $ac_status = 0; }; then
16529   pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "
16530         gtk+-3.0
16531     " 2>/dev/null`
16532                       test "x$?" != "x0" && pkg_failed=yes
16533 else
16534   pkg_failed=yes
16535 fi
16536  else
16537     pkg_failed=untried
16538 fi
16539
16540
16541
16542 if test $pkg_failed = yes; then
16543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16545
16546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16547         _pkg_short_errors_supported=yes
16548 else
16549         _pkg_short_errors_supported=no
16550 fi
16551         if test $_pkg_short_errors_supported = yes; then
16552                 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16553         gtk+-3.0
16554     " 2>&1`
16555         else
16556                 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16557         gtk+-3.0
16558     " 2>&1`
16559         fi
16560         # Put the nasty error message in config.log where it belongs
16561         echo "$GTK3_PKG_ERRORS" >&5
16562
16563         as_fn_error $? "Package requirements (
16564         gtk+-3.0
16565     ) were not met:
16566
16567 $GTK3_PKG_ERRORS
16568
16569 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16570 installed software in a non-standard prefix.
16571
16572 Alternatively, you may set the environment variables GTK3_CFLAGS
16573 and GTK3_LIBS to avoid the need to call pkg-config.
16574 See the pkg-config man page for more details." "$LINENO" 5
16575 elif test $pkg_failed = untried; then
16576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16577 $as_echo "no" >&6; }
16578         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16580 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16581 is in your PATH or set the PKG_CONFIG environment variable to the full
16582 path to pkg-config.
16583
16584 Alternatively, you may set the environment variables GTK3_CFLAGS
16585 and GTK3_LIBS to avoid the need to call pkg-config.
16586 See the pkg-config man page for more details.
16587
16588 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16589 See \`config.log' for more details" "$LINENO" 5; }
16590 else
16591         GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
16592         GTK3_LIBS=$pkg_cv_GTK3_LIBS
16593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16594 $as_echo "yes" >&6; }
16595
16596 fi
16597
16598     gtk3_binary_version=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
16599     GTK3_IM_MODULEDIR="$libdir"/gtk-3.0/$gtk3_binary_version/immodules
16600
16601
16602 pkg_failed=no
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK3" >&5
16604 $as_echo_n "checking for GDK3... " >&6; }
16605
16606 if test -n "$GDK3_CFLAGS"; then
16607     pkg_cv_GDK3_CFLAGS="$GDK3_CFLAGS"
16608  elif test -n "$PKG_CONFIG"; then
16609     if test -n "$PKG_CONFIG" && \
16610     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16611         gdk-3.0
16612     \""; } >&5
16613   ($PKG_CONFIG --exists --print-errors "
16614         gdk-3.0
16615     ") 2>&5
16616   ac_status=$?
16617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618   test $ac_status = 0; }; then
16619   pkg_cv_GDK3_CFLAGS=`$PKG_CONFIG --cflags "
16620         gdk-3.0
16621     " 2>/dev/null`
16622                       test "x$?" != "x0" && pkg_failed=yes
16623 else
16624   pkg_failed=yes
16625 fi
16626  else
16627     pkg_failed=untried
16628 fi
16629 if test -n "$GDK3_LIBS"; then
16630     pkg_cv_GDK3_LIBS="$GDK3_LIBS"
16631  elif test -n "$PKG_CONFIG"; then
16632     if test -n "$PKG_CONFIG" && \
16633     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16634         gdk-3.0
16635     \""; } >&5
16636   ($PKG_CONFIG --exists --print-errors "
16637         gdk-3.0
16638     ") 2>&5
16639   ac_status=$?
16640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16641   test $ac_status = 0; }; then
16642   pkg_cv_GDK3_LIBS=`$PKG_CONFIG --libs "
16643         gdk-3.0
16644     " 2>/dev/null`
16645                       test "x$?" != "x0" && pkg_failed=yes
16646 else
16647   pkg_failed=yes
16648 fi
16649  else
16650     pkg_failed=untried
16651 fi
16652
16653
16654
16655 if test $pkg_failed = yes; then
16656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658
16659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16660         _pkg_short_errors_supported=yes
16661 else
16662         _pkg_short_errors_supported=no
16663 fi
16664         if test $_pkg_short_errors_supported = yes; then
16665                 GDK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16666         gdk-3.0
16667     " 2>&1`
16668         else
16669                 GDK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16670         gdk-3.0
16671     " 2>&1`
16672         fi
16673         # Put the nasty error message in config.log where it belongs
16674         echo "$GDK3_PKG_ERRORS" >&5
16675
16676         as_fn_error $? "Package requirements (
16677         gdk-3.0
16678     ) were not met:
16679
16680 $GDK3_PKG_ERRORS
16681
16682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16683 installed software in a non-standard prefix.
16684
16685 Alternatively, you may set the environment variables GDK3_CFLAGS
16686 and GDK3_LIBS to avoid the need to call pkg-config.
16687 See the pkg-config man page for more details." "$LINENO" 5
16688 elif test $pkg_failed = untried; then
16689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690 $as_echo "no" >&6; }
16691         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16693 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16694 is in your PATH or set the PKG_CONFIG environment variable to the full
16695 path to pkg-config.
16696
16697 Alternatively, you may set the environment variables GDK3_CFLAGS
16698 and GDK3_LIBS to avoid the need to call pkg-config.
16699 See the pkg-config man page for more details.
16700
16701 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16702 See \`config.log' for more details" "$LINENO" 5; }
16703 else
16704         GDK3_CFLAGS=$pkg_cv_GDK3_CFLAGS
16705         GDK3_LIBS=$pkg_cv_GDK3_LIBS
16706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16707 $as_echo "yes" >&6; }
16708
16709 fi
16710 else
16711     enable_gtk3="no (disabled, use --enable-gtk3 to enable)"
16712 fi
16713
16714 if test x"$enable_xim" = x"yes"; then
16715     # Check for x11
16716
16717 pkg_failed=no
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
16719 $as_echo_n "checking for X11... " >&6; }
16720
16721 if test -n "$X11_CFLAGS"; then
16722     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16723  elif test -n "$PKG_CONFIG"; then
16724     if test -n "$PKG_CONFIG" && \
16725     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16726         x11
16727     \""; } >&5
16728   ($PKG_CONFIG --exists --print-errors "
16729         x11
16730     ") 2>&5
16731   ac_status=$?
16732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16733   test $ac_status = 0; }; then
16734   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "
16735         x11
16736     " 2>/dev/null`
16737                       test "x$?" != "x0" && pkg_failed=yes
16738 else
16739   pkg_failed=yes
16740 fi
16741  else
16742     pkg_failed=untried
16743 fi
16744 if test -n "$X11_LIBS"; then
16745     pkg_cv_X11_LIBS="$X11_LIBS"
16746  elif test -n "$PKG_CONFIG"; then
16747     if test -n "$PKG_CONFIG" && \
16748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16749         x11
16750     \""; } >&5
16751   ($PKG_CONFIG --exists --print-errors "
16752         x11
16753     ") 2>&5
16754   ac_status=$?
16755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756   test $ac_status = 0; }; then
16757   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "
16758         x11
16759     " 2>/dev/null`
16760                       test "x$?" != "x0" && pkg_failed=yes
16761 else
16762   pkg_failed=yes
16763 fi
16764  else
16765     pkg_failed=untried
16766 fi
16767
16768
16769
16770 if test $pkg_failed = yes; then
16771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 $as_echo "no" >&6; }
16773
16774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16775         _pkg_short_errors_supported=yes
16776 else
16777         _pkg_short_errors_supported=no
16778 fi
16779         if test $_pkg_short_errors_supported = yes; then
16780                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16781         x11
16782     " 2>&1`
16783         else
16784                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16785         x11
16786     " 2>&1`
16787         fi
16788         # Put the nasty error message in config.log where it belongs
16789         echo "$X11_PKG_ERRORS" >&5
16790
16791         as_fn_error $? "Package requirements (
16792         x11
16793     ) were not met:
16794
16795 $X11_PKG_ERRORS
16796
16797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16798 installed software in a non-standard prefix.
16799
16800 Alternatively, you may set the environment variables X11_CFLAGS
16801 and X11_LIBS to avoid the need to call pkg-config.
16802 See the pkg-config man page for more details." "$LINENO" 5
16803 elif test $pkg_failed = untried; then
16804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16808 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16809 is in your PATH or set the PKG_CONFIG environment variable to the full
16810 path to pkg-config.
16811
16812 Alternatively, you may set the environment variables X11_CFLAGS
16813 and X11_LIBS to avoid the need to call pkg-config.
16814 See the pkg-config man page for more details.
16815
16816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16817 See \`config.log' for more details" "$LINENO" 5; }
16818 else
16819         X11_CFLAGS=$pkg_cv_X11_CFLAGS
16820         X11_LIBS=$pkg_cv_X11_LIBS
16821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16822 $as_echo "yes" >&6; }
16823
16824 fi
16825     for ac_header in X11/XKBlib.h
16826 do :
16827   ac_fn_c_check_header_mongrel "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "$ac_includes_default"
16828 if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
16829   cat >>confdefs.h <<_ACEOF
16830 #define HAVE_X11_XKBLIB_H 1
16831 _ACEOF
16832
16833 fi
16834
16835 done
16836
16837 else
16838     enable_xim="no (disabled, use --enable-xim to enable)"
16839 fi
16840
16841 if test x"$enable_wayland" = x"yes"; then
16842     # Check for wayland
16843
16844 pkg_failed=no
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
16846 $as_echo_n "checking for WAYLAND... " >&6; }
16847
16848 if test -n "$WAYLAND_CFLAGS"; then
16849     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
16850  elif test -n "$PKG_CONFIG"; then
16851     if test -n "$PKG_CONFIG" && \
16852     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16853         wayland-client >= 1.2.0
16854         xkbcommon
16855     \""; } >&5
16856   ($PKG_CONFIG --exists --print-errors "
16857         wayland-client >= 1.2.0
16858         xkbcommon
16859     ") 2>&5
16860   ac_status=$?
16861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16862   test $ac_status = 0; }; then
16863   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "
16864         wayland-client >= 1.2.0
16865         xkbcommon
16866     " 2>/dev/null`
16867                       test "x$?" != "x0" && pkg_failed=yes
16868 else
16869   pkg_failed=yes
16870 fi
16871  else
16872     pkg_failed=untried
16873 fi
16874 if test -n "$WAYLAND_LIBS"; then
16875     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
16876  elif test -n "$PKG_CONFIG"; then
16877     if test -n "$PKG_CONFIG" && \
16878     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
16879         wayland-client >= 1.2.0
16880         xkbcommon
16881     \""; } >&5
16882   ($PKG_CONFIG --exists --print-errors "
16883         wayland-client >= 1.2.0
16884         xkbcommon
16885     ") 2>&5
16886   ac_status=$?
16887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16888   test $ac_status = 0; }; then
16889   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "
16890         wayland-client >= 1.2.0
16891         xkbcommon
16892     " 2>/dev/null`
16893                       test "x$?" != "x0" && pkg_failed=yes
16894 else
16895   pkg_failed=yes
16896 fi
16897  else
16898     pkg_failed=untried
16899 fi
16900
16901
16902
16903 if test $pkg_failed = yes; then
16904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 $as_echo "no" >&6; }
16906
16907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16908         _pkg_short_errors_supported=yes
16909 else
16910         _pkg_short_errors_supported=no
16911 fi
16912         if test $_pkg_short_errors_supported = yes; then
16913                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
16914         wayland-client >= 1.2.0
16915         xkbcommon
16916     " 2>&1`
16917         else
16918                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
16919         wayland-client >= 1.2.0
16920         xkbcommon
16921     " 2>&1`
16922         fi
16923         # Put the nasty error message in config.log where it belongs
16924         echo "$WAYLAND_PKG_ERRORS" >&5
16925
16926         as_fn_error $? "Package requirements (
16927         wayland-client >= 1.2.0
16928         xkbcommon
16929     ) were not met:
16930
16931 $WAYLAND_PKG_ERRORS
16932
16933 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16934 installed software in a non-standard prefix.
16935
16936 Alternatively, you may set the environment variables WAYLAND_CFLAGS
16937 and WAYLAND_LIBS to avoid the need to call pkg-config.
16938 See the pkg-config man page for more details." "$LINENO" 5
16939 elif test $pkg_failed = untried; then
16940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16941 $as_echo "no" >&6; }
16942         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16945 is in your PATH or set the PKG_CONFIG environment variable to the full
16946 path to pkg-config.
16947
16948 Alternatively, you may set the environment variables WAYLAND_CFLAGS
16949 and WAYLAND_LIBS to avoid the need to call pkg-config.
16950 See the pkg-config man page for more details.
16951
16952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16953 See \`config.log' for more details" "$LINENO" 5; }
16954 else
16955         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
16956         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
16957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16958 $as_echo "yes" >&6; }
16959
16960 fi
16961 else
16962     enable_wayland="no (disabled, use --enable-wayland to enable)"
16963 fi
16964
16965 # GObject introspection
16966
16967
16968
16969                 # Check whether --enable-introspection was given.
16970 if test "${enable_introspection+set}" = set; then :
16971   enableval=$enable_introspection;
16972 else
16973   enable_introspection=auto
16974 fi
16975
16976
16977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
16978 $as_echo_n "checking for gobject-introspection... " >&6; }
16979
16980         case $enable_introspection in #(
16981   no) :
16982             found_introspection="no (disabled, use --enable-introspection to enable)"
16983      ;; #(
16984       yes) :
16985             if test -n "$PKG_CONFIG" && \
16986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
16987   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
16988   ac_status=$?
16989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16990   test $ac_status = 0; }; then
16991   :
16992 else
16993   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
16994 fi
16995         if test -n "$PKG_CONFIG" && \
16996     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.8\""; } >&5
16997   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.8") 2>&5
16998   ac_status=$?
16999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17000   test $ac_status = 0; }; then
17001   found_introspection=yes
17002 else
17003   as_fn_error $? "You need to have gobject-introspection >= 0.6.8 installed to build ibus" "$LINENO" 5
17004 fi
17005      ;; #(
17006       auto) :
17007             if test -n "$PKG_CONFIG" && \
17008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.8\""; } >&5
17009   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.8") 2>&5
17010   ac_status=$?
17011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17012   test $ac_status = 0; }; then
17013   found_introspection=yes
17014 else
17015   found_introspection=no
17016 fi
17017      ;; #(
17018   *) :
17019                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
17020      ;;
17021 esac
17022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
17023 $as_echo "$found_introspection" >&6; }
17024
17025     INTROSPECTION_SCANNER=
17026     INTROSPECTION_COMPILER=
17027     INTROSPECTION_GENERATE=
17028     INTROSPECTION_GIRDIR=
17029     INTROSPECTION_TYPELIBDIR=
17030     if test "x$found_introspection" = "xyes"; then
17031        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
17032        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
17033        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
17034        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
17035        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
17036        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
17037        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
17038        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
17039     fi
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049      if test "x$found_introspection" = "xyes"; then
17050   HAVE_INTROSPECTION_TRUE=
17051   HAVE_INTROSPECTION_FALSE='#'
17052 else
17053   HAVE_INTROSPECTION_TRUE='#'
17054   HAVE_INTROSPECTION_FALSE=
17055 fi
17056
17057
17058
17059
17060 IBUS_GIR_SCANNERFLAGS=
17061 if test x"$found_introspection" = x"yes" ; then
17062     IBUS_GIR_SCANNERFLAGS="--warn-all --identifier-prefix=IBus --symbol-prefix=ibus"
17063     if test -n "$PKG_CONFIG" && \
17064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.6\""; } >&5
17065   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.6") 2>&5
17066   ac_status=$?
17067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068   test $ac_status = 0; }; then
17069   gir_symbol_prefix=yes
17070 else
17071   gir_symbol_prefix=no
17072 fi
17073     if test x"$gir_symbol_prefix" = x"no" ; then
17074         IBUS_GIR_SCANNERFLAGS="--strip-prefix=IBus"
17075     fi
17076 fi
17077
17078
17079 # Check vapigen.
17080
17081
17082
17083
17084   # Check whether --enable-vala was given.
17085 if test "${enable_vala+set}" = set; then :
17086   enableval=$enable_vala;
17087 else
17088
17089       if test "x" = "x"; then :
17090
17091           enable_vala=auto
17092
17093 else
17094
17095           enable_vala=
17096
17097 fi
17098
17099 fi
17100
17101
17102   case $enable_vala in #(
17103   no) :
17104     enable_vala=no ;; #(
17105   yes) :
17106
17107         if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then :
17108
17109             as_fn_error $? "Vala bindings require GObject Introspection" "$LINENO" 5
17110
17111 fi
17112        ;; #(
17113   auto) :
17114
17115         if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then :
17116
17117             enable_vala=no
17118
17119 fi
17120        ;; #(
17121   *) :
17122
17123         as_fn_error $? "Invalid argument passed to --enable-vala, should be one of [no/auto/yes]" "$LINENO" 5
17124        ;;
17125 esac
17126
17127   if test "x" = "x"; then :
17128
17129       vapigen_pkg_name=vapigen
17130
17131 else
17132
17133       vapigen_pkg_name=vapigen-
17134
17135 fi
17136   if test "x0.16" = "x"; then :
17137
17138       vapigen_pkg="$vapigen_pkg_name"
17139
17140 else
17141
17142       vapigen_pkg="$vapigen_pkg_name >= 0.16"
17143
17144 fi
17145
17146
17147
17148
17149
17150
17151
17152
17153 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17154         if test -n "$ac_tool_prefix"; then
17155   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17156 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17158 $as_echo_n "checking for $ac_word... " >&6; }
17159 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17160   $as_echo_n "(cached) " >&6
17161 else
17162   case $PKG_CONFIG in
17163   [\\/]* | ?:[\\/]*)
17164   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17165   ;;
17166   *)
17167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17168 for as_dir in $PATH
17169 do
17170   IFS=$as_save_IFS
17171   test -z "$as_dir" && as_dir=.
17172     for ac_exec_ext in '' $ac_executable_extensions; do
17173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17174     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17176     break 2
17177   fi
17178 done
17179   done
17180 IFS=$as_save_IFS
17181
17182   ;;
17183 esac
17184 fi
17185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17186 if test -n "$PKG_CONFIG"; then
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17188 $as_echo "$PKG_CONFIG" >&6; }
17189 else
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192 fi
17193
17194
17195 fi
17196 if test -z "$ac_cv_path_PKG_CONFIG"; then
17197   ac_pt_PKG_CONFIG=$PKG_CONFIG
17198   # Extract the first word of "pkg-config", so it can be a program name with args.
17199 set dummy pkg-config; ac_word=$2
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17201 $as_echo_n "checking for $ac_word... " >&6; }
17202 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17203   $as_echo_n "(cached) " >&6
17204 else
17205   case $ac_pt_PKG_CONFIG in
17206   [\\/]* | ?:[\\/]*)
17207   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17208   ;;
17209   *)
17210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17211 for as_dir in $PATH
17212 do
17213   IFS=$as_save_IFS
17214   test -z "$as_dir" && as_dir=.
17215     for ac_exec_ext in '' $ac_executable_extensions; do
17216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17217     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17219     break 2
17220   fi
17221 done
17222   done
17223 IFS=$as_save_IFS
17224
17225   ;;
17226 esac
17227 fi
17228 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17229 if test -n "$ac_pt_PKG_CONFIG"; then
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17231 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17232 else
17233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17235 fi
17236
17237   if test "x$ac_pt_PKG_CONFIG" = x; then
17238     PKG_CONFIG=""
17239   else
17240     case $cross_compiling:$ac_tool_warned in
17241 yes:)
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17244 ac_tool_warned=yes ;;
17245 esac
17246     PKG_CONFIG=$ac_pt_PKG_CONFIG
17247   fi
17248 else
17249   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17250 fi
17251
17252 fi
17253 if test -n "$PKG_CONFIG"; then
17254         _pkg_min_version=0.9.0
17255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17256 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17257         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17259 $as_echo "yes" >&6; }
17260         else
17261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263                 PKG_CONFIG=""
17264         fi
17265 fi
17266
17267   if test -n "$PKG_CONFIG" && \
17268     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$vapigen_pkg\""; } >&5
17269   ($PKG_CONFIG --exists --print-errors "$vapigen_pkg") 2>&5
17270   ac_status=$?
17271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272   test $ac_status = 0; }; then
17273
17274       if test "$enable_vala" = "auto"; then :
17275
17276           enable_vala=yes
17277
17278 fi
17279
17280 else
17281
17282       case $enable_vala in #(
17283   yes) :
17284
17285           as_fn_error $? "$vapigen_pkg not found" "$LINENO" 5
17286          ;; #(
17287   auto) :
17288
17289           enable_vala=no
17290          ;; #(
17291   *) :
17292      ;;
17293 esac
17294
17295 fi
17296
17297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vapigen" >&5
17298 $as_echo_n "checking for vapigen... " >&6; }
17299
17300   case $enable_vala in #(
17301   yes) :
17302
17303       VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name`
17304       VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen
17305       if test "x" = "x"; then :
17306
17307           VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name`
17308
17309 else
17310
17311           VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name`
17312
17313 fi
17314      ;; #(
17315   *) :
17316      ;;
17317 esac
17318
17319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vala" >&5
17320 $as_echo "$enable_vala" >&6; }
17321
17322
17323
17324
17325
17326    if test "x$enable_vala" = "xyes"; then
17327   ENABLE_VAPIGEN_TRUE=
17328   ENABLE_VAPIGEN_FALSE='#'
17329 else
17330   ENABLE_VAPIGEN_TRUE='#'
17331   ENABLE_VAPIGEN_FALSE=
17332 fi
17333
17334
17335
17336 # Check for gtk-doc.
17337
17338
17339
17340     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
17341 set dummy gtkdoc-check; ac_word=$2
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17343 $as_echo_n "checking for $ac_word... " >&6; }
17344 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
17345   $as_echo_n "(cached) " >&6
17346 else
17347   case $GTKDOC_CHECK in
17348   [\\/]* | ?:[\\/]*)
17349   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
17350   ;;
17351   *)
17352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17353 for as_dir in $PATH
17354 do
17355   IFS=$as_save_IFS
17356   test -z "$as_dir" && as_dir=.
17357     for ac_exec_ext in '' $ac_executable_extensions; do
17358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17359     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
17360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17361     break 2
17362   fi
17363 done
17364   done
17365 IFS=$as_save_IFS
17366
17367   ;;
17368 esac
17369 fi
17370 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
17371 if test -n "$GTKDOC_CHECK"; then
17372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
17373 $as_echo "$GTKDOC_CHECK" >&6; }
17374 else
17375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376 $as_echo "no" >&6; }
17377 fi
17378
17379
17380   for ac_prog in gtkdoc-rebase
17381 do
17382   # Extract the first word of "$ac_prog", so it can be a program name with args.
17383 set dummy $ac_prog; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389   case $GTKDOC_REBASE in
17390   [\\/]* | ?:[\\/]*)
17391   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17392   ;;
17393   *)
17394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17395 for as_dir in $PATH
17396 do
17397   IFS=$as_save_IFS
17398   test -z "$as_dir" && as_dir=.
17399     for ac_exec_ext in '' $ac_executable_extensions; do
17400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17401     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17403     break 2
17404   fi
17405 done
17406   done
17407 IFS=$as_save_IFS
17408
17409   ;;
17410 esac
17411 fi
17412 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17413 if test -n "$GTKDOC_REBASE"; then
17414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17415 $as_echo "$GTKDOC_REBASE" >&6; }
17416 else
17417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418 $as_echo "no" >&6; }
17419 fi
17420
17421
17422   test -n "$GTKDOC_REBASE" && break
17423 done
17424 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17425
17426   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17427 set dummy gtkdoc-mkpdf; ac_word=$2
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17429 $as_echo_n "checking for $ac_word... " >&6; }
17430 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17431   $as_echo_n "(cached) " >&6
17432 else
17433   case $GTKDOC_MKPDF in
17434   [\\/]* | ?:[\\/]*)
17435   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17436   ;;
17437   *)
17438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17440 do
17441   IFS=$as_save_IFS
17442   test -z "$as_dir" && as_dir=.
17443     for ac_exec_ext in '' $ac_executable_extensions; do
17444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17445     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17447     break 2
17448   fi
17449 done
17450   done
17451 IFS=$as_save_IFS
17452
17453   ;;
17454 esac
17455 fi
17456 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17457 if test -n "$GTKDOC_MKPDF"; then
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17459 $as_echo "$GTKDOC_MKPDF" >&6; }
17460 else
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 fi
17464
17465
17466
17467
17468 # Check whether --with-html-dir was given.
17469 if test "${with_html_dir+set}" = set; then :
17470   withval=$with_html_dir;
17471 else
17472   with_html_dir='${datadir}/gtk-doc/html'
17473 fi
17474
17475   HTML_DIR="$with_html_dir"
17476
17477
17478     # Check whether --enable-gtk-doc was given.
17479 if test "${enable_gtk_doc+set}" = set; then :
17480   enableval=$enable_gtk_doc;
17481 else
17482   enable_gtk_doc=no
17483 fi
17484
17485
17486   if test x$enable_gtk_doc = xyes; then
17487     if test -n "$PKG_CONFIG" && \
17488     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.9\""; } >&5
17489   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.9") 2>&5
17490   ac_status=$?
17491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17492   test $ac_status = 0; }; then
17493   :
17494 else
17495   as_fn_error $? "You need to have gtk-doc >= 1.9 installed to build $PACKAGE_NAME" "$LINENO" 5
17496 fi
17497         if test "x$PACKAGE_NAME" != "xglib"; then
17498
17499 pkg_failed=no
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17501 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17502
17503 if test -n "$GTKDOC_DEPS_CFLAGS"; then
17504     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17505  elif test -n "$PKG_CONFIG"; then
17506     if test -n "$PKG_CONFIG" && \
17507     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17508   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17509   ac_status=$?
17510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17511   test $ac_status = 0; }; then
17512   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17513                       test "x$?" != "x0" && pkg_failed=yes
17514 else
17515   pkg_failed=yes
17516 fi
17517  else
17518     pkg_failed=untried
17519 fi
17520 if test -n "$GTKDOC_DEPS_LIBS"; then
17521     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17522  elif test -n "$PKG_CONFIG"; then
17523     if test -n "$PKG_CONFIG" && \
17524     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17525   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17526   ac_status=$?
17527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528   test $ac_status = 0; }; then
17529   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17530                       test "x$?" != "x0" && pkg_failed=yes
17531 else
17532   pkg_failed=yes
17533 fi
17534  else
17535     pkg_failed=untried
17536 fi
17537
17538
17539
17540 if test $pkg_failed = yes; then
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17543
17544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17545         _pkg_short_errors_supported=yes
17546 else
17547         _pkg_short_errors_supported=no
17548 fi
17549         if test $_pkg_short_errors_supported = yes; then
17550                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
17551         else
17552                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
17553         fi
17554         # Put the nasty error message in config.log where it belongs
17555         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17556
17557         :
17558 elif test $pkg_failed = untried; then
17559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17561         :
17562 else
17563         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17564         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17566 $as_echo "yes" >&6; }
17567
17568 fi
17569     fi
17570   fi
17571
17572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17573 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17575 $as_echo "$enable_gtk_doc" >&6; }
17576
17577     # Check whether --enable-gtk-doc-html was given.
17578 if test "${enable_gtk_doc_html+set}" = set; then :
17579   enableval=$enable_gtk_doc_html;
17580 else
17581   enable_gtk_doc_html=yes
17582 fi
17583
17584     # Check whether --enable-gtk-doc-pdf was given.
17585 if test "${enable_gtk_doc_pdf+set}" = set; then :
17586   enableval=$enable_gtk_doc_pdf;
17587 else
17588   enable_gtk_doc_pdf=no
17589 fi
17590
17591
17592   if test -z "$GTKDOC_MKPDF"; then
17593     enable_gtk_doc_pdf=no
17594   fi
17595
17596   if test -z "$AM_DEFAULT_VERBOSITY"; then
17597     AM_DEFAULT_VERBOSITY=1
17598   fi
17599
17600
17601    if test x$enable_gtk_doc = xyes; then
17602   ENABLE_GTK_DOC_TRUE=
17603   ENABLE_GTK_DOC_FALSE='#'
17604 else
17605   ENABLE_GTK_DOC_TRUE='#'
17606   ENABLE_GTK_DOC_FALSE=
17607 fi
17608
17609    if test x$enable_gtk_doc_html = xyes; then
17610   GTK_DOC_BUILD_HTML_TRUE=
17611   GTK_DOC_BUILD_HTML_FALSE='#'
17612 else
17613   GTK_DOC_BUILD_HTML_TRUE='#'
17614   GTK_DOC_BUILD_HTML_FALSE=
17615 fi
17616
17617    if test x$enable_gtk_doc_pdf = xyes; then
17618   GTK_DOC_BUILD_PDF_TRUE=
17619   GTK_DOC_BUILD_PDF_FALSE='#'
17620 else
17621   GTK_DOC_BUILD_PDF_TRUE='#'
17622   GTK_DOC_BUILD_PDF_FALSE=
17623 fi
17624
17625    if test -n "$LIBTOOL"; then
17626   GTK_DOC_USE_LIBTOOL_TRUE=
17627   GTK_DOC_USE_LIBTOOL_FALSE='#'
17628 else
17629   GTK_DOC_USE_LIBTOOL_TRUE='#'
17630   GTK_DOC_USE_LIBTOOL_FALSE=
17631 fi
17632
17633    if test -n "$GTKDOC_REBASE"; then
17634   GTK_DOC_USE_REBASE_TRUE=
17635   GTK_DOC_USE_REBASE_FALSE='#'
17636 else
17637   GTK_DOC_USE_REBASE_TRUE='#'
17638   GTK_DOC_USE_REBASE_FALSE=
17639 fi
17640
17641
17642 if test x"$enable_gtk_doc" = x"no"; then
17643     enable_gtk_doc="no (disabled, use --enable-gtk-doc to enable)"
17644 fi
17645
17646 # Check for dbus.
17647
17648 pkg_failed=no
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17650 $as_echo_n "checking for DBUS... " >&6; }
17651
17652 if test -n "$DBUS_CFLAGS"; then
17653     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17654  elif test -n "$PKG_CONFIG"; then
17655     if test -n "$PKG_CONFIG" && \
17656     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17657     dbus-1
17658 \""; } >&5
17659   ($PKG_CONFIG --exists --print-errors "
17660     dbus-1
17661 ") 2>&5
17662   ac_status=$?
17663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17664   test $ac_status = 0; }; then
17665   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "
17666     dbus-1
17667 " 2>/dev/null`
17668                       test "x$?" != "x0" && pkg_failed=yes
17669 else
17670   pkg_failed=yes
17671 fi
17672  else
17673     pkg_failed=untried
17674 fi
17675 if test -n "$DBUS_LIBS"; then
17676     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17677  elif test -n "$PKG_CONFIG"; then
17678     if test -n "$PKG_CONFIG" && \
17679     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17680     dbus-1
17681 \""; } >&5
17682   ($PKG_CONFIG --exists --print-errors "
17683     dbus-1
17684 ") 2>&5
17685   ac_status=$?
17686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17687   test $ac_status = 0; }; then
17688   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "
17689     dbus-1
17690 " 2>/dev/null`
17691                       test "x$?" != "x0" && pkg_failed=yes
17692 else
17693   pkg_failed=yes
17694 fi
17695  else
17696     pkg_failed=untried
17697 fi
17698
17699
17700
17701 if test $pkg_failed = yes; then
17702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17704
17705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17706         _pkg_short_errors_supported=yes
17707 else
17708         _pkg_short_errors_supported=no
17709 fi
17710         if test $_pkg_short_errors_supported = yes; then
17711                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17712     dbus-1
17713 " 2>&1`
17714         else
17715                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17716     dbus-1
17717 " 2>&1`
17718         fi
17719         # Put the nasty error message in config.log where it belongs
17720         echo "$DBUS_PKG_ERRORS" >&5
17721
17722         as_fn_error $? "Package requirements (
17723     dbus-1
17724 ) were not met:
17725
17726 $DBUS_PKG_ERRORS
17727
17728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17729 installed software in a non-standard prefix.
17730
17731 Alternatively, you may set the environment variables DBUS_CFLAGS
17732 and DBUS_LIBS to avoid the need to call pkg-config.
17733 See the pkg-config man page for more details." "$LINENO" 5
17734 elif test $pkg_failed = untried; then
17735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736 $as_echo "no" >&6; }
17737         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17739 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17740 is in your PATH or set the PKG_CONFIG environment variable to the full
17741 path to pkg-config.
17742
17743 Alternatively, you may set the environment variables DBUS_CFLAGS
17744 and DBUS_LIBS to avoid the need to call pkg-config.
17745 See the pkg-config man page for more details.
17746
17747 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17748 See \`config.log' for more details" "$LINENO" 5; }
17749 else
17750         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
17751         DBUS_LIBS=$pkg_cv_DBUS_LIBS
17752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17753 $as_echo "yes" >&6; }
17754
17755 fi
17756
17757 # --enable-gconf option.
17758 # Check whether --enable-gconf was given.
17759 if test "${enable_gconf+set}" = set; then :
17760   enableval=$enable_gconf; enable_gconf=$enableval
17761 else
17762   enable_gconf=no
17763
17764 fi
17765
17766  if test x"$enable_gconf" = x"yes"; then
17767   ENABLE_GCONF_TRUE=
17768   ENABLE_GCONF_FALSE='#'
17769 else
17770   ENABLE_GCONF_TRUE='#'
17771   ENABLE_GCONF_FALSE=
17772 fi
17773
17774
17775 if test x"$enable_gconf" = x"yes"; then
17776     # check gconf
17777
17778 pkg_failed=no
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
17780 $as_echo_n "checking for GCONF... " >&6; }
17781
17782 if test -n "$GCONF_CFLAGS"; then
17783     pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
17784  elif test -n "$PKG_CONFIG"; then
17785     if test -n "$PKG_CONFIG" && \
17786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 2.12\""; } >&5
17787   ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 2.12") 2>&5
17788   ac_status=$?
17789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17790   test $ac_status = 0; }; then
17791   pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.12" 2>/dev/null`
17792                       test "x$?" != "x0" && pkg_failed=yes
17793 else
17794   pkg_failed=yes
17795 fi
17796  else
17797     pkg_failed=untried
17798 fi
17799 if test -n "$GCONF_LIBS"; then
17800     pkg_cv_GCONF_LIBS="$GCONF_LIBS"
17801  elif test -n "$PKG_CONFIG"; then
17802     if test -n "$PKG_CONFIG" && \
17803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 2.12\""; } >&5
17804   ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 2.12") 2>&5
17805   ac_status=$?
17806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17807   test $ac_status = 0; }; then
17808   pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.12" 2>/dev/null`
17809                       test "x$?" != "x0" && pkg_failed=yes
17810 else
17811   pkg_failed=yes
17812 fi
17813  else
17814     pkg_failed=untried
17815 fi
17816
17817
17818
17819 if test $pkg_failed = yes; then
17820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821 $as_echo "no" >&6; }
17822
17823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17824         _pkg_short_errors_supported=yes
17825 else
17826         _pkg_short_errors_supported=no
17827 fi
17828         if test $_pkg_short_errors_supported = yes; then
17829                 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0 >= 2.12" 2>&1`
17830         else
17831                 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0 >= 2.12" 2>&1`
17832         fi
17833         # Put the nasty error message in config.log where it belongs
17834         echo "$GCONF_PKG_ERRORS" >&5
17835
17836         as_fn_error $? "Package requirements (gconf-2.0 >= 2.12) were not met:
17837
17838 $GCONF_PKG_ERRORS
17839
17840 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17841 installed software in a non-standard prefix.
17842
17843 Alternatively, you may set the environment variables GCONF_CFLAGS
17844 and GCONF_LIBS to avoid the need to call pkg-config.
17845 See the pkg-config man page for more details." "$LINENO" 5
17846 elif test $pkg_failed = untried; then
17847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17851 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17852 is in your PATH or set the PKG_CONFIG environment variable to the full
17853 path to pkg-config.
17854
17855 Alternatively, you may set the environment variables GCONF_CFLAGS
17856 and GCONF_LIBS to avoid the need to call pkg-config.
17857 See the pkg-config man page for more details.
17858
17859 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17860 See \`config.log' for more details" "$LINENO" 5; }
17861 else
17862         GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
17863         GCONF_LIBS=$pkg_cv_GCONF_LIBS
17864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17865 $as_echo "yes" >&6; }
17866
17867 fi
17868
17869     # Extract the first word of "gconftool-2", so it can be a program name with args.
17870 set dummy gconftool-2; ac_word=$2
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17872 $as_echo_n "checking for $ac_word... " >&6; }
17873 if ${ac_cv_path_GCONFTOOL+:} false; then :
17874   $as_echo_n "(cached) " >&6
17875 else
17876   case $GCONFTOOL in
17877   [\\/]* | ?:[\\/]*)
17878   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
17879   ;;
17880   *)
17881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17882 for as_dir in $PATH
17883 do
17884   IFS=$as_save_IFS
17885   test -z "$as_dir" && as_dir=.
17886     for ac_exec_ext in '' $ac_executable_extensions; do
17887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17888     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
17889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17890     break 2
17891   fi
17892 done
17893   done
17894 IFS=$as_save_IFS
17895
17896   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
17897   ;;
17898 esac
17899 fi
17900 GCONFTOOL=$ac_cv_path_GCONFTOOL
17901 if test -n "$GCONFTOOL"; then
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
17903 $as_echo "$GCONFTOOL" >&6; }
17904 else
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17907 fi
17908
17909
17910     if test x"$GCONFTOOL" = xno; then
17911         as_fn_error $? "gconftool-2 executable not found in your path - should be installed with GConf" "$LINENO" 5
17912     fi
17913
17914
17915   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
17916     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
17917   else
17918     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
17919   fi
17920
17921
17922 # Check whether --with-gconf-source was given.
17923 if test "${with_gconf_source+set}" = set; then :
17924   withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
17925 fi
17926
17927
17928
17929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
17930 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
17931
17932   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
17933     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
17934   fi
17935
17936
17937 # Check whether --with-gconf-schema-file-dir was given.
17938 if test "${with_gconf_schema_file_dir+set}" = set; then :
17939   withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
17940 fi
17941
17942
17943
17944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
17945 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
17946
17947   # Check whether --enable-schemas-install was given.
17948 if test "${enable_schemas_install+set}" = set; then :
17949   enableval=$enable_schemas_install; case ${enableval} in
17950        yes|no) ;;
17951        *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
17952       esac
17953 fi
17954
17955    if test "$enable_schemas_install" != no; then
17956   GCONF_SCHEMAS_INSTALL_TRUE=
17957   GCONF_SCHEMAS_INSTALL_FALSE='#'
17958 else
17959   GCONF_SCHEMAS_INSTALL_TRUE='#'
17960   GCONF_SCHEMAS_INSTALL_FALSE=
17961 fi
17962
17963
17964     # GCONF_SCHEMAS_INSTALL should be set in macro AM_GCONF_SOURCE_2
17965 else
17966      if false; then
17967   GCONF_SCHEMAS_INSTALL_TRUE=
17968   GCONF_SCHEMAS_INSTALL_FALSE='#'
17969 else
17970   GCONF_SCHEMAS_INSTALL_TRUE='#'
17971   GCONF_SCHEMAS_INSTALL_FALSE=
17972 fi
17973
17974     enable_gconf="no (disabled, use --enable-gconf to enable)"
17975 fi
17976
17977 # --enable-memconf option.
17978 # Check whether --enable-memconf was given.
17979 if test "${enable_memconf+set}" = set; then :
17980   enableval=$enable_memconf; enable_memconf=$enableval
17981 else
17982   enable_memconf=no
17983
17984 fi
17985
17986  if test "x$enable_memconf" = "xyes"; then
17987   ENABLE_MEMCONF_TRUE=
17988   ENABLE_MEMCONF_FALSE='#'
17989 else
17990   ENABLE_MEMCONF_TRUE='#'
17991   ENABLE_MEMCONF_FALSE=
17992 fi
17993
17994
17995 # Check whether --enable-dconf was given.
17996 if test "${enable_dconf+set}" = set; then :
17997   enableval=$enable_dconf; enable_dconf=$enableval
17998 else
17999   enable_dconf=yes
18000
18001 fi
18002
18003  if test x"$enable_dconf" = x"yes"; then
18004   ENABLE_DCONF_TRUE=
18005   ENABLE_DCONF_FALSE='#'
18006 else
18007   ENABLE_DCONF_TRUE='#'
18008   ENABLE_DCONF_FALSE=
18009 fi
18010
18011
18012 if test x"$enable_dconf" = x"yes"; then
18013     # check dconf
18014
18015 pkg_failed=no
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DCONF" >&5
18017 $as_echo_n "checking for DCONF... " >&6; }
18018
18019 if test -n "$DCONF_CFLAGS"; then
18020     pkg_cv_DCONF_CFLAGS="$DCONF_CFLAGS"
18021  elif test -n "$PKG_CONFIG"; then
18022     if test -n "$PKG_CONFIG" && \
18023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dconf >= 0.7.5\""; } >&5
18024   ($PKG_CONFIG --exists --print-errors "dconf >= 0.7.5") 2>&5
18025   ac_status=$?
18026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18027   test $ac_status = 0; }; then
18028   pkg_cv_DCONF_CFLAGS=`$PKG_CONFIG --cflags "dconf >= 0.7.5" 2>/dev/null`
18029                       test "x$?" != "x0" && pkg_failed=yes
18030 else
18031   pkg_failed=yes
18032 fi
18033  else
18034     pkg_failed=untried
18035 fi
18036 if test -n "$DCONF_LIBS"; then
18037     pkg_cv_DCONF_LIBS="$DCONF_LIBS"
18038  elif test -n "$PKG_CONFIG"; then
18039     if test -n "$PKG_CONFIG" && \
18040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dconf >= 0.7.5\""; } >&5
18041   ($PKG_CONFIG --exists --print-errors "dconf >= 0.7.5") 2>&5
18042   ac_status=$?
18043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18044   test $ac_status = 0; }; then
18045   pkg_cv_DCONF_LIBS=`$PKG_CONFIG --libs "dconf >= 0.7.5" 2>/dev/null`
18046                       test "x$?" != "x0" && pkg_failed=yes
18047 else
18048   pkg_failed=yes
18049 fi
18050  else
18051     pkg_failed=untried
18052 fi
18053
18054
18055
18056 if test $pkg_failed = yes; then
18057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18059
18060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18061         _pkg_short_errors_supported=yes
18062 else
18063         _pkg_short_errors_supported=no
18064 fi
18065         if test $_pkg_short_errors_supported = yes; then
18066                 DCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dconf >= 0.7.5" 2>&1`
18067         else
18068                 DCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dconf >= 0.7.5" 2>&1`
18069         fi
18070         # Put the nasty error message in config.log where it belongs
18071         echo "$DCONF_PKG_ERRORS" >&5
18072
18073         as_fn_error $? "Package requirements (dconf >= 0.7.5) were not met:
18074
18075 $DCONF_PKG_ERRORS
18076
18077 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18078 installed software in a non-standard prefix.
18079
18080 Alternatively, you may set the environment variables DCONF_CFLAGS
18081 and DCONF_LIBS to avoid the need to call pkg-config.
18082 See the pkg-config man page for more details." "$LINENO" 5
18083 elif test $pkg_failed = untried; then
18084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18085 $as_echo "no" >&6; }
18086         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18088 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18089 is in your PATH or set the PKG_CONFIG environment variable to the full
18090 path to pkg-config.
18091
18092 Alternatively, you may set the environment variables DCONF_CFLAGS
18093 and DCONF_LIBS to avoid the need to call pkg-config.
18094 See the pkg-config man page for more details.
18095
18096 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18097 See \`config.log' for more details" "$LINENO" 5; }
18098 else
18099         DCONF_CFLAGS=$pkg_cv_DCONF_CFLAGS
18100         DCONF_LIBS=$pkg_cv_DCONF_LIBS
18101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18102 $as_echo "yes" >&6; }
18103
18104 fi
18105     if test -n "$PKG_CONFIG" && \
18106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dconf >= 0.13.4\""; } >&5
18107   ($PKG_CONFIG --exists --print-errors "dconf >= 0.13.4") 2>&5
18108   ac_status=$?
18109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18110   test $ac_status = 0; }; then
18111
18112 $as_echo "#define DCONF_0_13_4 TRUE" >>confdefs.h
18113
18114 fi
18115     # check glib-compile-schemas
18116
18117
18118   # Check whether --enable-schemas-compile was given.
18119 if test "${enable_schemas_compile+set}" = set; then :
18120   enableval=$enable_schemas_compile; case ${enableval} in
18121                   yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
18122                   no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
18123                   *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
18124                  esac
18125 fi
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18136         if test -n "$ac_tool_prefix"; then
18137   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18138 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18140 $as_echo_n "checking for $ac_word... " >&6; }
18141 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18142   $as_echo_n "(cached) " >&6
18143 else
18144   case $PKG_CONFIG in
18145   [\\/]* | ?:[\\/]*)
18146   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18147   ;;
18148   *)
18149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18150 for as_dir in $PATH
18151 do
18152   IFS=$as_save_IFS
18153   test -z "$as_dir" && as_dir=.
18154     for ac_exec_ext in '' $ac_executable_extensions; do
18155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18156     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18158     break 2
18159   fi
18160 done
18161   done
18162 IFS=$as_save_IFS
18163
18164   ;;
18165 esac
18166 fi
18167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18168 if test -n "$PKG_CONFIG"; then
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18170 $as_echo "$PKG_CONFIG" >&6; }
18171 else
18172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18173 $as_echo "no" >&6; }
18174 fi
18175
18176
18177 fi
18178 if test -z "$ac_cv_path_PKG_CONFIG"; then
18179   ac_pt_PKG_CONFIG=$PKG_CONFIG
18180   # Extract the first word of "pkg-config", so it can be a program name with args.
18181 set dummy pkg-config; ac_word=$2
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18183 $as_echo_n "checking for $ac_word... " >&6; }
18184 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18185   $as_echo_n "(cached) " >&6
18186 else
18187   case $ac_pt_PKG_CONFIG in
18188   [\\/]* | ?:[\\/]*)
18189   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18190   ;;
18191   *)
18192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18194 do
18195   IFS=$as_save_IFS
18196   test -z "$as_dir" && as_dir=.
18197     for ac_exec_ext in '' $ac_executable_extensions; do
18198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201     break 2
18202   fi
18203 done
18204   done
18205 IFS=$as_save_IFS
18206
18207   ;;
18208 esac
18209 fi
18210 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18211 if test -n "$ac_pt_PKG_CONFIG"; then
18212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18213 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18214 else
18215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 $as_echo "no" >&6; }
18217 fi
18218
18219   if test "x$ac_pt_PKG_CONFIG" = x; then
18220     PKG_CONFIG=""
18221   else
18222     case $cross_compiling:$ac_tool_warned in
18223 yes:)
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18226 ac_tool_warned=yes ;;
18227 esac
18228     PKG_CONFIG=$ac_pt_PKG_CONFIG
18229   fi
18230 else
18231   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18232 fi
18233
18234 fi
18235 if test -n "$PKG_CONFIG"; then
18236         _pkg_min_version=0.16
18237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18238 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18239         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18241 $as_echo "yes" >&6; }
18242         else
18243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244 $as_echo "no" >&6; }
18245                 PKG_CONFIG=""
18246         fi
18247 fi
18248   gsettingsschemadir=${datadir}/glib-2.0/schemas
18249
18250   if test x$cross_compiling != xyes; then
18251     GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
18252   else
18253     # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
18254 set dummy glib-compile-schemas; ac_word=$2
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18256 $as_echo_n "checking for $ac_word... " >&6; }
18257 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
18258   $as_echo_n "(cached) " >&6
18259 else
18260   case $GLIB_COMPILE_SCHEMAS in
18261   [\\/]* | ?:[\\/]*)
18262   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
18263   ;;
18264   *)
18265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18266 for as_dir in $PATH
18267 do
18268   IFS=$as_save_IFS
18269   test -z "$as_dir" && as_dir=.
18270     for ac_exec_ext in '' $ac_executable_extensions; do
18271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18272     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
18273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18274     break 2
18275   fi
18276 done
18277   done
18278 IFS=$as_save_IFS
18279
18280   ;;
18281 esac
18282 fi
18283 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
18284 if test -n "$GLIB_COMPILE_SCHEMAS"; then
18285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
18286 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
18287 else
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18290 fi
18291
18292
18293   fi
18294
18295   if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
18296     as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
18297   else
18298     :
18299   fi
18300
18301   GSETTINGS_RULES='
18302 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
18303
18304 mostlyclean-am: clean-gsettings-schemas
18305
18306 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
18307
18308 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
18309         $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch $@
18310
18311 all-am: $(gsettings_SCHEMAS:.xml=.valid)
18312 uninstall-am: uninstall-gsettings-schemas
18313 install-data-am: install-gsettings-schemas
18314
18315 .SECONDARY: $(gsettings_SCHEMAS)
18316
18317 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
18318         @$(NORMAL_INSTALL)
18319         if test -n "$^"; then \
18320                 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
18321                 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
18322                 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
18323         fi
18324
18325 uninstall-gsettings-schemas:
18326         @$(NORMAL_UNINSTALL)
18327         @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
18328         files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
18329         test -n "$$files" || exit 0; \
18330         echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
18331         cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
18332         test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
18333
18334 clean-gsettings-schemas:
18335         rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
18336
18337 ifdef gsettings_ENUM_NAMESPACE
18338 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
18339         $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
18340 endif
18341 '
18342
18343
18344
18345
18346
18347
18348     # Extract the first word of "gsettings-schema-convert", so it can be a program name with args.
18349 set dummy gsettings-schema-convert; ac_word=$2
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18351 $as_echo_n "checking for $ac_word... " >&6; }
18352 if ${ac_cv_path_GSETTINGS_SCHEMA_CONVERT+:} false; then :
18353   $as_echo_n "(cached) " >&6
18354 else
18355   case $GSETTINGS_SCHEMA_CONVERT in
18356   [\\/]* | ?:[\\/]*)
18357   ac_cv_path_GSETTINGS_SCHEMA_CONVERT="$GSETTINGS_SCHEMA_CONVERT" # Let the user override the test with a path.
18358   ;;
18359   *)
18360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18361 for as_dir in $PATH
18362 do
18363   IFS=$as_save_IFS
18364   test -z "$as_dir" && as_dir=.
18365     for ac_exec_ext in '' $ac_executable_extensions; do
18366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18367     ac_cv_path_GSETTINGS_SCHEMA_CONVERT="$as_dir/$ac_word$ac_exec_ext"
18368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18369     break 2
18370   fi
18371 done
18372   done
18373 IFS=$as_save_IFS
18374
18375   ;;
18376 esac
18377 fi
18378 GSETTINGS_SCHEMA_CONVERT=$ac_cv_path_GSETTINGS_SCHEMA_CONVERT
18379 if test -n "$GSETTINGS_SCHEMA_CONVERT"; then
18380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_SCHEMA_CONVERT" >&5
18381 $as_echo "$GSETTINGS_SCHEMA_CONVERT" >&6; }
18382 else
18383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18385 fi
18386
18387
18388     if test x"$ac_cv_path_GSETTINGS_SCHEMA_CONVERT" = x""; then :
18389   as_fn_error $? "gsettings-schema-convert from GConf2 is required for dconf support" "$LINENO" 5
18390 fi
18391     enable_dconf="yes (enabled, use --disable-dconf to disable)"
18392 fi
18393
18394 # Check env.
18395 # Extract the first word of "env", so it can be a program name with args.
18396 set dummy env; ac_word=$2
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18398 $as_echo_n "checking for $ac_word... " >&6; }
18399 if ${ac_cv_path_ENV_IBUS_TEST+:} false; then :
18400   $as_echo_n "(cached) " >&6
18401 else
18402   case $ENV_IBUS_TEST in
18403   [\\/]* | ?:[\\/]*)
18404   ac_cv_path_ENV_IBUS_TEST="$ENV_IBUS_TEST" # Let the user override the test with a path.
18405   ;;
18406   *)
18407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18409 do
18410   IFS=$as_save_IFS
18411   test -z "$as_dir" && as_dir=.
18412     for ac_exec_ext in '' $ac_executable_extensions; do
18413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18414     ac_cv_path_ENV_IBUS_TEST="$as_dir/$ac_word$ac_exec_ext"
18415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18416     break 2
18417   fi
18418 done
18419   done
18420 IFS=$as_save_IFS
18421
18422   ;;
18423 esac
18424 fi
18425 ENV_IBUS_TEST=$ac_cv_path_ENV_IBUS_TEST
18426 if test -n "$ENV_IBUS_TEST"; then
18427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV_IBUS_TEST" >&5
18428 $as_echo "$ENV_IBUS_TEST" >&6; }
18429 else
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18431 $as_echo "no" >&6; }
18432 fi
18433
18434
18435
18436
18437 # Check whether --enable-python-library was given.
18438 if test "${enable_python_library+set}" = set; then :
18439   enableval=$enable_python_library; enable_python_library=$enableval
18440 else
18441   enable_python_library=no
18442
18443 fi
18444
18445
18446 # Check whether --enable-setup was given.
18447 if test "${enable_setup+set}" = set; then :
18448   enableval=$enable_setup; enable_setup=$enableval
18449 else
18450   enable_setup=yes
18451
18452 fi
18453
18454
18455  if test x"$enable_python_library" = x"yes"; then
18456   ENABLE_PYTHON_LIBRARY_TRUE=
18457   ENABLE_PYTHON_LIBRARY_FALSE='#'
18458 else
18459   ENABLE_PYTHON_LIBRARY_TRUE='#'
18460   ENABLE_PYTHON_LIBRARY_FALSE=
18461 fi
18462
18463  if test x"$enable_setup" = x"yes"; then
18464   ENABLE_SETUP_TRUE=
18465   ENABLE_SETUP_FALSE='#'
18466 else
18467   ENABLE_SETUP_TRUE='#'
18468   ENABLE_SETUP_FALSE=
18469 fi
18470
18471  if true; then
18472   ENABLE_DAEMON_TRUE=
18473   ENABLE_DAEMON_FALSE='#'
18474 else
18475   ENABLE_DAEMON_TRUE='#'
18476   ENABLE_DAEMON_FALSE=
18477 fi
18478
18479
18480
18481
18482
18483
18484
18485
18486         if test -n "$PYTHON"; then
18487       # If the user set $PYTHON, use it and don't search something else.
18488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
18489 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
18490       prog="import sys
18491 # split strings by '.' and convert to numeric.  Append some zeros
18492 # because we need at least 4 digits for the hex conversion.
18493 # map returns an iterator in Python 3.0 and a list in 2.x
18494 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18495 minverhex = 0
18496 # xrange is not present in Python 3.0 and range returns an iterator
18497 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18498 sys.exit(sys.hexversion < minverhex)"
18499   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
18500    ($PYTHON -c "$prog") >&5 2>&5
18501    ac_status=$?
18502    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503    (exit $ac_status); }; then :
18504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18505 $as_echo "yes" >&6; }
18506 else
18507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18508 $as_echo "no" >&6; }
18509                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
18510 fi
18511       am_display_PYTHON=$PYTHON
18512     else
18513       # Otherwise, try each interpreter until we find one that satisfies
18514       # VERSION.
18515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
18516 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
18517 if ${am_cv_pathless_PYTHON+:} false; then :
18518   $as_echo_n "(cached) " >&6
18519 else
18520
18521         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
18522           test "$am_cv_pathless_PYTHON" = none && break
18523           prog="import sys
18524 # split strings by '.' and convert to numeric.  Append some zeros
18525 # because we need at least 4 digits for the hex conversion.
18526 # map returns an iterator in Python 3.0 and a list in 2.x
18527 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18528 minverhex = 0
18529 # xrange is not present in Python 3.0 and range returns an iterator
18530 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18531 sys.exit(sys.hexversion < minverhex)"
18532   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
18533    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
18534    ac_status=$?
18535    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536    (exit $ac_status); }; then :
18537   break
18538 fi
18539         done
18540 fi
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
18542 $as_echo "$am_cv_pathless_PYTHON" >&6; }
18543       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
18544       if test "$am_cv_pathless_PYTHON" = none; then
18545         PYTHON=:
18546       else
18547         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
18548 set dummy $am_cv_pathless_PYTHON; ac_word=$2
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18550 $as_echo_n "checking for $ac_word... " >&6; }
18551 if ${ac_cv_path_PYTHON+:} false; then :
18552   $as_echo_n "(cached) " >&6
18553 else
18554   case $PYTHON in
18555   [\\/]* | ?:[\\/]*)
18556   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18557   ;;
18558   *)
18559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18560 for as_dir in $PATH
18561 do
18562   IFS=$as_save_IFS
18563   test -z "$as_dir" && as_dir=.
18564     for ac_exec_ext in '' $ac_executable_extensions; do
18565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18566     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18568     break 2
18569   fi
18570 done
18571   done
18572 IFS=$as_save_IFS
18573
18574   ;;
18575 esac
18576 fi
18577 PYTHON=$ac_cv_path_PYTHON
18578 if test -n "$PYTHON"; then
18579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18580 $as_echo "$PYTHON" >&6; }
18581 else
18582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18583 $as_echo "no" >&6; }
18584 fi
18585
18586
18587       fi
18588       am_display_PYTHON=$am_cv_pathless_PYTHON
18589     fi
18590
18591
18592   if test "$PYTHON" = :; then
18593       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
18594   else
18595
18596
18597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
18598 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
18599 if ${am_cv_python_version+:} false; then :
18600   $as_echo_n "(cached) " >&6
18601 else
18602   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
18603 fi
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
18605 $as_echo "$am_cv_python_version" >&6; }
18606   PYTHON_VERSION=$am_cv_python_version
18607
18608
18609
18610   PYTHON_PREFIX='${prefix}'
18611
18612   PYTHON_EXEC_PREFIX='${exec_prefix}'
18613
18614
18615
18616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
18617 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
18618 if ${am_cv_python_platform+:} false; then :
18619   $as_echo_n "(cached) " >&6
18620 else
18621   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
18622 fi
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
18624 $as_echo "$am_cv_python_platform" >&6; }
18625   PYTHON_PLATFORM=$am_cv_python_platform
18626
18627
18628   # Just factor out some code duplication.
18629   am_python_setup_sysconfig="\
18630 import sys
18631 # Prefer sysconfig over distutils.sysconfig, for better compatibility
18632 # with python 3.x.  See automake bug#10227.
18633 try:
18634     import sysconfig
18635 except ImportError:
18636     can_use_sysconfig = 0
18637 else:
18638     can_use_sysconfig = 1
18639 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
18640 # <https://github.com/pypa/virtualenv/issues/118>
18641 try:
18642     from platform import python_implementation
18643     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
18644         can_use_sysconfig = 0
18645 except ImportError:
18646     pass"
18647
18648
18649             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
18650 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
18651 if ${am_cv_python_pythondir+:} false; then :
18652   $as_echo_n "(cached) " >&6
18653 else
18654   if test "x$prefix" = xNONE
18655      then
18656        am_py_prefix=$ac_default_prefix
18657      else
18658        am_py_prefix=$prefix
18659      fi
18660      am_cv_python_pythondir=`$PYTHON -c "
18661 $am_python_setup_sysconfig
18662 if can_use_sysconfig:
18663     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
18664 else:
18665     from distutils import sysconfig
18666     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
18667 sys.stdout.write(sitedir)"`
18668      case $am_cv_python_pythondir in
18669      $am_py_prefix*)
18670        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
18671        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
18672        ;;
18673      *)
18674        case $am_py_prefix in
18675          /usr|/System*) ;;
18676          *)
18677           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
18678           ;;
18679        esac
18680        ;;
18681      esac
18682
18683 fi
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
18685 $as_echo "$am_cv_python_pythondir" >&6; }
18686   pythondir=$am_cv_python_pythondir
18687
18688
18689
18690   pkgpythondir=\${pythondir}/$PACKAGE
18691
18692
18693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
18694 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
18695 if ${am_cv_python_pyexecdir+:} false; then :
18696   $as_echo_n "(cached) " >&6
18697 else
18698   if test "x$exec_prefix" = xNONE
18699      then
18700        am_py_exec_prefix=$am_py_prefix
18701      else
18702        am_py_exec_prefix=$exec_prefix
18703      fi
18704      am_cv_python_pyexecdir=`$PYTHON -c "
18705 $am_python_setup_sysconfig
18706 if can_use_sysconfig:
18707     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
18708 else:
18709     from distutils import sysconfig
18710     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
18711 sys.stdout.write(sitedir)"`
18712      case $am_cv_python_pyexecdir in
18713      $am_py_exec_prefix*)
18714        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
18715        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
18716        ;;
18717      *)
18718        case $am_py_exec_prefix in
18719          /usr|/System*) ;;
18720          *)
18721            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
18722            ;;
18723        esac
18724        ;;
18725      esac
18726
18727 fi
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
18729 $as_echo "$am_cv_python_pyexecdir" >&6; }
18730   pyexecdir=$am_cv_python_pyexecdir
18731
18732
18733
18734   pkgpyexecdir=\${pyexecdir}/$PACKAGE
18735
18736
18737
18738   fi
18739
18740
18741
18742 PYGOBJECT_REQUIRED=3.0.0
18743
18744 if test -n "$PKG_CONFIG" && \
18745     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= \$PYGOBJECT_REQUIRED\""; } >&5
18746   ($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= $PYGOBJECT_REQUIRED") 2>&5
18747   ac_status=$?
18748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749   test $ac_status = 0; }; then
18750   enable_pygobject=yes
18751 else
18752   enable_pygobject=no
18753 fi
18754
18755 if test "x$enable_pygobject" = "xyes"; then
18756
18757 pkg_failed=no
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
18759 $as_echo_n "checking for PYTHON... " >&6; }
18760
18761 if test -n "$PYTHON_CFLAGS"; then
18762     pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
18763  elif test -n "$PKG_CONFIG"; then
18764     if test -n "$PKG_CONFIG" && \
18765     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= \$PYGOBJECT_REQUIRED\""; } >&5
18766   ($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= $PYGOBJECT_REQUIRED") 2>&5
18767   ac_status=$?
18768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18769   test $ac_status = 0; }; then
18770   pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>/dev/null`
18771                       test "x$?" != "x0" && pkg_failed=yes
18772 else
18773   pkg_failed=yes
18774 fi
18775  else
18776     pkg_failed=untried
18777 fi
18778 if test -n "$PYTHON_LIBS"; then
18779     pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
18780  elif test -n "$PKG_CONFIG"; then
18781     if test -n "$PKG_CONFIG" && \
18782     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= \$PYGOBJECT_REQUIRED\""; } >&5
18783   ($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= $PYGOBJECT_REQUIRED") 2>&5
18784   ac_status=$?
18785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18786   test $ac_status = 0; }; then
18787   pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>/dev/null`
18788                       test "x$?" != "x0" && pkg_failed=yes
18789 else
18790   pkg_failed=yes
18791 fi
18792  else
18793     pkg_failed=untried
18794 fi
18795
18796
18797
18798 if test $pkg_failed = yes; then
18799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800 $as_echo "no" >&6; }
18801
18802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18803         _pkg_short_errors_supported=yes
18804 else
18805         _pkg_short_errors_supported=no
18806 fi
18807         if test $_pkg_short_errors_supported = yes; then
18808                 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>&1`
18809         else
18810                 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>&1`
18811         fi
18812         # Put the nasty error message in config.log where it belongs
18813         echo "$PYTHON_PKG_ERRORS" >&5
18814
18815         as_fn_error $? "Package requirements (pygobject-3.0 >= $PYGOBJECT_REQUIRED) were not met:
18816
18817 $PYTHON_PKG_ERRORS
18818
18819 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18820 installed software in a non-standard prefix.
18821
18822 Alternatively, you may set the environment variables PYTHON_CFLAGS
18823 and PYTHON_LIBS to avoid the need to call pkg-config.
18824 See the pkg-config man page for more details." "$LINENO" 5
18825 elif test $pkg_failed = untried; then
18826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827 $as_echo "no" >&6; }
18828         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18830 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18831 is in your PATH or set the PKG_CONFIG environment variable to the full
18832 path to pkg-config.
18833
18834 Alternatively, you may set the environment variables PYTHON_CFLAGS
18835 and PYTHON_LIBS to avoid the need to call pkg-config.
18836 See the pkg-config man page for more details.
18837
18838 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18839 See \`config.log' for more details" "$LINENO" 5; }
18840 else
18841         PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
18842         PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
18843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18844 $as_echo "yes" >&6; }
18845
18846 fi
18847
18848         pyoverridesdir=`$PYTHON -c "import gi; print(gi._overridesdir)"`
18849
18850 fi
18851
18852  if test x"$enable_pygobject" = "xyes"; then
18853   ENABLE_PYGOBJECT_TRUE=
18854   ENABLE_PYGOBJECT_FALSE='#'
18855 else
18856   ENABLE_PYGOBJECT_TRUE='#'
18857   ENABLE_PYGOBJECT_FALSE=
18858 fi
18859
18860
18861 if test x"$enable_python_library" = x"yes"; then
18862     # Check python.
18863     # Extract the first word of "python$PYTHON_VERSION-config", so it can be a program name with args.
18864 set dummy python$PYTHON_VERSION-config; ac_word=$2
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18866 $as_echo_n "checking for $ac_word... " >&6; }
18867 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
18868   $as_echo_n "(cached) " >&6
18869 else
18870   case $PYTHON_CONFIG in
18871   [\\/]* | ?:[\\/]*)
18872   ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
18873   ;;
18874   *)
18875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18876 for as_dir in $PATH
18877 do
18878   IFS=$as_save_IFS
18879   test -z "$as_dir" && as_dir=.
18880     for ac_exec_ext in '' $ac_executable_extensions; do
18881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18882     ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18884     break 2
18885   fi
18886 done
18887   done
18888 IFS=$as_save_IFS
18889
18890   ;;
18891 esac
18892 fi
18893 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
18894 if test -n "$PYTHON_CONFIG"; then
18895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
18896 $as_echo "$PYTHON_CONFIG" >&6; }
18897 else
18898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899 $as_echo "no" >&6; }
18900 fi
18901
18902
18903     if test x"$PYTHON_CONFIG" = x""; then
18904         # Extract the first word of "python-config", so it can be a program name with args.
18905 set dummy python-config; ac_word=$2
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18907 $as_echo_n "checking for $ac_word... " >&6; }
18908 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
18909   $as_echo_n "(cached) " >&6
18910 else
18911   case $PYTHON_CONFIG in
18912   [\\/]* | ?:[\\/]*)
18913   ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
18914   ;;
18915   *)
18916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18917 for as_dir in $PATH
18918 do
18919   IFS=$as_save_IFS
18920   test -z "$as_dir" && as_dir=.
18921     for ac_exec_ext in '' $ac_executable_extensions; do
18922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18923     ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18925     break 2
18926   fi
18927 done
18928   done
18929 IFS=$as_save_IFS
18930
18931   ;;
18932 esac
18933 fi
18934 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
18935 if test -n "$PYTHON_CONFIG"; then
18936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
18937 $as_echo "$PYTHON_CONFIG" >&6; }
18938 else
18939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940 $as_echo "no" >&6; }
18941 fi
18942
18943
18944     fi
18945     if test x"$PYTHON_CONFIG" != x""; then
18946         PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
18947         PYTHON_LIBS=`$PYTHON_CONFIG --libs`
18948     else
18949         PYTHON_CFLAGS=`$PYTHON $srcdir/python-config.py --includes`
18950         PYTHON_LIBS=`$PYTHON $srcdir/python-config.py --libs`
18951     fi
18952     PYTHON_INCLUDES="$PYTHON_CFLAGS"
18953
18954
18955
18956 else
18957     enable_python_library="no (disabled, use --enable-python-library to enable)"
18958 fi
18959
18960 # Define gtk2 immodule dir.
18961
18962 # Check whether --with-gtk2-im-module-dir was given.
18963 if test "${with_gtk2_im_module_dir+set}" = set; then :
18964   withval=$with_gtk2_im_module_dir; GTK2_IM_MODULEDIR=$with_gtk2_im_module_dir
18965
18966 fi
18967
18968
18969
18970 # Define gtk3 immodule dir.
18971
18972 # Check whether --with-gtk3-im-module-dir was given.
18973 if test "${with_gtk3_im_module_dir+set}" = set; then :
18974   withval=$with_gtk3_im_module_dir; GTK3_IM_MODULEDIR=$with_gtk3_im_module_dir
18975
18976 fi
18977
18978
18979
18980 if test x"$enable_python" = x"yes"; then
18981     # Check for dbus-python.
18982     # Check whether --enable-dbus-python-check was given.
18983 if test "${enable_dbus_python_check+set}" = set; then :
18984   enableval=$enable_dbus_python_check; enable_dbus_python_check=$enableval
18985 else
18986   enable_dbus_python_check=yes
18987
18988 fi
18989
18990
18991 pkg_failed=no
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_PYTHON" >&5
18993 $as_echo_n "checking for DBUS_PYTHON... " >&6; }
18994
18995 if test -n "$DBUS_PYTHON_CFLAGS"; then
18996     pkg_cv_DBUS_PYTHON_CFLAGS="$DBUS_PYTHON_CFLAGS"
18997  elif test -n "$PKG_CONFIG"; then
18998     if test -n "$PKG_CONFIG" && \
18999     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-python >= 0.83.0\""; } >&5
19000   ($PKG_CONFIG --exists --print-errors "dbus-python >= 0.83.0") 2>&5
19001   ac_status=$?
19002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19003   test $ac_status = 0; }; then
19004   pkg_cv_DBUS_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "dbus-python >= 0.83.0" 2>/dev/null`
19005                       test "x$?" != "x0" && pkg_failed=yes
19006 else
19007   pkg_failed=yes
19008 fi
19009  else
19010     pkg_failed=untried
19011 fi
19012 if test -n "$DBUS_PYTHON_LIBS"; then
19013     pkg_cv_DBUS_PYTHON_LIBS="$DBUS_PYTHON_LIBS"
19014  elif test -n "$PKG_CONFIG"; then
19015     if test -n "$PKG_CONFIG" && \
19016     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-python >= 0.83.0\""; } >&5
19017   ($PKG_CONFIG --exists --print-errors "dbus-python >= 0.83.0") 2>&5
19018   ac_status=$?
19019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020   test $ac_status = 0; }; then
19021   pkg_cv_DBUS_PYTHON_LIBS=`$PKG_CONFIG --libs "dbus-python >= 0.83.0" 2>/dev/null`
19022                       test "x$?" != "x0" && pkg_failed=yes
19023 else
19024   pkg_failed=yes
19025 fi
19026  else
19027     pkg_failed=untried
19028 fi
19029
19030
19031
19032 if test $pkg_failed = yes; then
19033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034 $as_echo "no" >&6; }
19035
19036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19037         _pkg_short_errors_supported=yes
19038 else
19039         _pkg_short_errors_supported=no
19040 fi
19041         if test $_pkg_short_errors_supported = yes; then
19042                 DBUS_PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-python >= 0.83.0" 2>&1`
19043         else
19044                 DBUS_PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-python >= 0.83.0" 2>&1`
19045         fi
19046         # Put the nasty error message in config.log where it belongs
19047         echo "$DBUS_PYTHON_PKG_ERRORS" >&5
19048
19049         IBUS_HAS_DBUS_PYTHON=no
19050
19051 elif test $pkg_failed = untried; then
19052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19054         IBUS_HAS_DBUS_PYTHON=no
19055
19056 else
19057         DBUS_PYTHON_CFLAGS=$pkg_cv_DBUS_PYTHON_CFLAGS
19058         DBUS_PYTHON_LIBS=$pkg_cv_DBUS_PYTHON_LIBS
19059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19060 $as_echo "yes" >&6; }
19061         IBUS_HAS_DBUS_PYTHON=yes
19062 fi
19063     if test x"$IBUS_HAS_DBUS_PYTHON" != x"yes"; then
19064         if test x"$enable_dbus_python_check" != x"no"; then
19065             as_fn_error $? "can not find dbus-python >= 0.83.0. Please install or update dbus-python." "$LINENO" 5
19066         else
19067             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can not find dbus-python >= 0.83.0. It is required." >&5
19068 $as_echo "$as_me: WARNING: can not find dbus-python >= 0.83.0. It is required." >&2;}
19069         fi
19070     fi
19071 fi
19072
19073 # Option for always disable snooper applications.
19074 # Check whether --enable-key-snooper was given.
19075 if test "${enable_key_snooper+set}" = set; then :
19076   enableval=$enable_key_snooper; enable_key_snooper=$enableval
19077 else
19078   enable_key_snooper=yes
19079
19080 fi
19081
19082 if test x"$enable_key_snooper" = x"yes"; then
19083
19084 $as_echo "#define ENABLE_SNOOPER TRUE" >>confdefs.h
19085
19086 else
19087
19088 $as_echo "#define ENABLE_SNOOPER FALSE" >>confdefs.h
19089
19090     enable_key_snooper="no (disabled, use --enable-key-snooper to enable)"
19091 fi
19092
19093 # Option for no snooper applications.
19094
19095 # Check whether --with-no-snooper-apps was given.
19096 if test "${with_no_snooper_apps+set}" = set; then :
19097   withval=$with_no_snooper_apps; NO_SNOOPER_APPS=$with_no_snooper_apps
19098 else
19099   NO_SNOOPER_APPS=.*chrome.*,.*chromium.*,firefox.*,Do.*
19100
19101 fi
19102
19103
19104 cat >>confdefs.h <<_ACEOF
19105 #define NO_SNOOPER_APPS "$NO_SNOOPER_APPS"
19106 _ACEOF
19107
19108
19109 # GNOME 3 uses the theme's icon.
19110
19111 # Check whether --with-panel-icon-keyboard was given.
19112 if test "${with_panel_icon_keyboard+set}" = set; then :
19113   withval=$with_panel_icon_keyboard; if test x"$with_panel_icon_keyboard" = x"yes" -o \
19114              x"$with_panel_icon_keyboard" = x; then
19115          with_panel_icon_keyboard="input-keyboard-symbolic"
19116      fi
19117      if test x"$with_panel_icon_keyboard" = x"legacy"; then
19118          with_panel_icon_keyboard="ibus-keyboard"
19119      fi
19120      IBUS_ICON_KEYBOARD=$with_panel_icon_keyboard
19121
19122 else
19123   IBUS_ICON_KEYBOARD="ibus-keyboard"
19124
19125 fi
19126
19127
19128
19129 # --disable-surrounding-text option.
19130 # Check whether --enable-surrounding-text was given.
19131 if test "${enable_surrounding_text+set}" = set; then :
19132   enableval=$enable_surrounding_text; enable_surrounding_text=$enableval
19133 else
19134   enable_surrounding_text=yes
19135
19136 fi
19137
19138 if test x"$enable_surrounding_text" = x"yes"; then
19139
19140 $as_echo "#define ENABLE_SURROUNDING TRUE" >>confdefs.h
19141
19142 else
19143     enable_surrounding_text="no (disabled, use --enable-surrounding-text to enable)"
19144 fi
19145
19146 # --disable-ui
19147 # Check whether --enable-ui was given.
19148 if test "${enable_ui+set}" = set; then :
19149   enableval=$enable_ui; enable_ui=$enableval
19150 else
19151   enable_ui=yes
19152
19153 fi
19154
19155  if test x"$enable_ui" = x"yes"; then
19156   ENABLE_UI_TRUE=
19157   ENABLE_UI_FALSE='#'
19158 else
19159   ENABLE_UI_TRUE='#'
19160   ENABLE_UI_FALSE=
19161 fi
19162
19163 if test x"$enable_ui" = x"yes"; then
19164     enable_ui="yes (enabled, use --disable-ui to disable)"
19165 fi
19166
19167 # --disable-engine
19168 # Check whether --enable-engine was given.
19169 if test "${enable_engine+set}" = set; then :
19170   enableval=$enable_engine; enable_engine=$enableval
19171 else
19172   enable_engine=yes
19173
19174 fi
19175
19176  if test x"$enable_engine" = x"yes"; then
19177   ENABLE_ENGINE_TRUE=
19178   ENABLE_ENGINE_FALSE='#'
19179 else
19180   ENABLE_ENGINE_TRUE='#'
19181   ENABLE_ENGINE_FALSE=
19182 fi
19183
19184 if test x"$enable_engine" = x"yes"; then
19185     enable_engine="yes (enabled, use --disable-engine to disable)"
19186 fi
19187
19188 # --disable-libnotify
19189 # Check whether --enable-libnotify was given.
19190 if test "${enable_libnotify+set}" = set; then :
19191   enableval=$enable_libnotify; enable_libnotify=$enableval
19192 else
19193   enable_libnotify=yes
19194
19195 fi
19196
19197  if test x"$enable_libnotify" = x"yes"; then
19198   ENABLE_LIBNOTIFY_TRUE=
19199   ENABLE_LIBNOTIFY_FALSE='#'
19200 else
19201   ENABLE_LIBNOTIFY_TRUE='#'
19202   ENABLE_LIBNOTIFY_FALSE=
19203 fi
19204
19205 if test x"$enable_libnotify" = x"yes"; then
19206
19207 pkg_failed=no
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
19209 $as_echo_n "checking for LIBNOTIFY... " >&6; }
19210
19211 if test -n "$LIBNOTIFY_CFLAGS"; then
19212     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
19213  elif test -n "$PKG_CONFIG"; then
19214     if test -n "$PKG_CONFIG" && \
19215     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19216         libnotify >= 0.7
19217     \""; } >&5
19218   ($PKG_CONFIG --exists --print-errors "
19219         libnotify >= 0.7
19220     ") 2>&5
19221   ac_status=$?
19222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19223   test $ac_status = 0; }; then
19224   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "
19225         libnotify >= 0.7
19226     " 2>/dev/null`
19227                       test "x$?" != "x0" && pkg_failed=yes
19228 else
19229   pkg_failed=yes
19230 fi
19231  else
19232     pkg_failed=untried
19233 fi
19234 if test -n "$LIBNOTIFY_LIBS"; then
19235     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
19236  elif test -n "$PKG_CONFIG"; then
19237     if test -n "$PKG_CONFIG" && \
19238     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19239         libnotify >= 0.7
19240     \""; } >&5
19241   ($PKG_CONFIG --exists --print-errors "
19242         libnotify >= 0.7
19243     ") 2>&5
19244   ac_status=$?
19245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19246   test $ac_status = 0; }; then
19247   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "
19248         libnotify >= 0.7
19249     " 2>/dev/null`
19250                       test "x$?" != "x0" && pkg_failed=yes
19251 else
19252   pkg_failed=yes
19253 fi
19254  else
19255     pkg_failed=untried
19256 fi
19257
19258
19259
19260 if test $pkg_failed = yes; then
19261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19262 $as_echo "no" >&6; }
19263
19264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19265         _pkg_short_errors_supported=yes
19266 else
19267         _pkg_short_errors_supported=no
19268 fi
19269         if test $_pkg_short_errors_supported = yes; then
19270                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19271         libnotify >= 0.7
19272     " 2>&1`
19273         else
19274                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19275         libnotify >= 0.7
19276     " 2>&1`
19277         fi
19278         # Put the nasty error message in config.log where it belongs
19279         echo "$LIBNOTIFY_PKG_ERRORS" >&5
19280
19281         as_fn_error $? "Package requirements (
19282         libnotify >= 0.7
19283     ) were not met:
19284
19285 $LIBNOTIFY_PKG_ERRORS
19286
19287 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19288 installed software in a non-standard prefix.
19289
19290 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
19291 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
19292 See the pkg-config man page for more details." "$LINENO" 5
19293 elif test $pkg_failed = untried; then
19294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19295 $as_echo "no" >&6; }
19296         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19298 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19299 is in your PATH or set the PKG_CONFIG environment variable to the full
19300 path to pkg-config.
19301
19302 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
19303 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
19304 See the pkg-config man page for more details.
19305
19306 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19307 See \`config.log' for more details" "$LINENO" 5; }
19308 else
19309         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
19310         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
19311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19312 $as_echo "yes" >&6; }
19313
19314 fi
19315     enable_libnotify="yes (enabled, use --disable-libnotify to disable)"
19316 fi
19317
19318 # Check iso-codes.
19319
19320 pkg_failed=no
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISOCODES" >&5
19322 $as_echo_n "checking for ISOCODES... " >&6; }
19323
19324 if test -n "$ISOCODES_CFLAGS"; then
19325     pkg_cv_ISOCODES_CFLAGS="$ISOCODES_CFLAGS"
19326  elif test -n "$PKG_CONFIG"; then
19327     if test -n "$PKG_CONFIG" && \
19328     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19329     iso-codes
19330 \""; } >&5
19331   ($PKG_CONFIG --exists --print-errors "
19332     iso-codes
19333 ") 2>&5
19334   ac_status=$?
19335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19336   test $ac_status = 0; }; then
19337   pkg_cv_ISOCODES_CFLAGS=`$PKG_CONFIG --cflags "
19338     iso-codes
19339 " 2>/dev/null`
19340                       test "x$?" != "x0" && pkg_failed=yes
19341 else
19342   pkg_failed=yes
19343 fi
19344  else
19345     pkg_failed=untried
19346 fi
19347 if test -n "$ISOCODES_LIBS"; then
19348     pkg_cv_ISOCODES_LIBS="$ISOCODES_LIBS"
19349  elif test -n "$PKG_CONFIG"; then
19350     if test -n "$PKG_CONFIG" && \
19351     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19352     iso-codes
19353 \""; } >&5
19354   ($PKG_CONFIG --exists --print-errors "
19355     iso-codes
19356 ") 2>&5
19357   ac_status=$?
19358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19359   test $ac_status = 0; }; then
19360   pkg_cv_ISOCODES_LIBS=`$PKG_CONFIG --libs "
19361     iso-codes
19362 " 2>/dev/null`
19363                       test "x$?" != "x0" && pkg_failed=yes
19364 else
19365   pkg_failed=yes
19366 fi
19367  else
19368     pkg_failed=untried
19369 fi
19370
19371
19372
19373 if test $pkg_failed = yes; then
19374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19375 $as_echo "no" >&6; }
19376
19377 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19378         _pkg_short_errors_supported=yes
19379 else
19380         _pkg_short_errors_supported=no
19381 fi
19382         if test $_pkg_short_errors_supported = yes; then
19383                 ISOCODES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19384     iso-codes
19385 " 2>&1`
19386         else
19387                 ISOCODES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19388     iso-codes
19389 " 2>&1`
19390         fi
19391         # Put the nasty error message in config.log where it belongs
19392         echo "$ISOCODES_PKG_ERRORS" >&5
19393
19394         as_fn_error $? "Package requirements (
19395     iso-codes
19396 ) were not met:
19397
19398 $ISOCODES_PKG_ERRORS
19399
19400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19401 installed software in a non-standard prefix.
19402
19403 Alternatively, you may set the environment variables ISOCODES_CFLAGS
19404 and ISOCODES_LIBS to avoid the need to call pkg-config.
19405 See the pkg-config man page for more details." "$LINENO" 5
19406 elif test $pkg_failed = untried; then
19407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19409         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19411 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19412 is in your PATH or set the PKG_CONFIG environment variable to the full
19413 path to pkg-config.
19414
19415 Alternatively, you may set the environment variables ISOCODES_CFLAGS
19416 and ISOCODES_LIBS to avoid the need to call pkg-config.
19417 See the pkg-config man page for more details.
19418
19419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19420 See \`config.log' for more details" "$LINENO" 5; }
19421 else
19422         ISOCODES_CFLAGS=$pkg_cv_ISOCODES_CFLAGS
19423         ISOCODES_LIBS=$pkg_cv_ISOCODES_LIBS
19424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19425 $as_echo "yes" >&6; }
19426
19427 fi
19428 ISOCODES_PREFIX=`pkg-config iso-codes --variable=prefix`
19429
19430
19431 # OUTPUT files
19432 ac_config_files="$ac_config_files po/Makefile.in Makefile ibus-1.0.pc ibus.spec client/Makefile client/gtk2/Makefile client/gtk3/Makefile client/x11/Makefile client/wayland/Makefile src/Makefile src/ibusversion.h src/tests/Makefile bus/Makefile engine/Makefile util/Makefile util/IMdkit/Makefile data/Makefile data/icons/Makefile data/keymaps/Makefile data/dconf/Makefile docs/Makefile docs/reference/Makefile docs/reference/ibus/ibus-docs.sgml docs/reference/ibus/Makefile m4/Makefile ibus/_config.py ibus/Makefile ibus/interface/Makefile ui/Makefile ui/gtk3/Makefile setup/Makefile setup/ibus-setup bindings/Makefile bindings/pygobject/Makefile bindings/vala/Makefile conf/Makefile conf/gconf/Makefile conf/dconf/Makefile conf/memconf/Makefile tools/Makefile"
19433
19434
19435 cat >confcache <<\_ACEOF
19436 # This file is a shell script that caches the results of configure
19437 # tests run on this system so they can be shared between configure
19438 # scripts and configure runs, see configure's option --config-cache.
19439 # It is not useful on other systems.  If it contains results you don't
19440 # want to keep, you may remove or edit it.
19441 #
19442 # config.status only pays attention to the cache file if you give it
19443 # the --recheck option to rerun configure.
19444 #
19445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19447 # following values.
19448
19449 _ACEOF
19450
19451 # The following way of writing the cache mishandles newlines in values,
19452 # but we know of no workaround that is simple, portable, and efficient.
19453 # So, we kill variables containing newlines.
19454 # Ultrix sh set writes to stderr and can't be redirected directly,
19455 # and sets the high bit in the cache file unless we assign to the vars.
19456 (
19457   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19458     eval ac_val=\$$ac_var
19459     case $ac_val in #(
19460     *${as_nl}*)
19461       case $ac_var in #(
19462       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19464       esac
19465       case $ac_var in #(
19466       _ | IFS | as_nl) ;; #(
19467       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19468       *) { eval $ac_var=; unset $ac_var;} ;;
19469       esac ;;
19470     esac
19471   done
19472
19473   (set) 2>&1 |
19474     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19475     *${as_nl}ac_space=\ *)
19476       # `set' does not quote correctly, so add quotes: double-quote
19477       # substitution turns \\\\ into \\, and sed turns \\ into \.
19478       sed -n \
19479         "s/'/'\\\\''/g;
19480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19481       ;; #(
19482     *)
19483       # `set' quotes correctly as required by POSIX, so do not add quotes.
19484       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19485       ;;
19486     esac |
19487     sort
19488 ) |
19489   sed '
19490      /^ac_cv_env_/b end
19491      t clear
19492      :clear
19493      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19494      t end
19495      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19496      :end' >>confcache
19497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19498   if test -w "$cache_file"; then
19499     if test "x$cache_file" != "x/dev/null"; then
19500       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19501 $as_echo "$as_me: updating cache $cache_file" >&6;}
19502       if test ! -f "$cache_file" || test -h "$cache_file"; then
19503         cat confcache >"$cache_file"
19504       else
19505         case $cache_file in #(
19506         */* | ?:*)
19507           mv -f confcache "$cache_file"$$ &&
19508           mv -f "$cache_file"$$ "$cache_file" ;; #(
19509         *)
19510           mv -f confcache "$cache_file" ;;
19511         esac
19512       fi
19513     fi
19514   else
19515     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19517   fi
19518 fi
19519 rm -f confcache
19520
19521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19522 # Let make expand exec_prefix.
19523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19524
19525 DEFS=-DHAVE_CONFIG_H
19526
19527 ac_libobjs=
19528 ac_ltlibobjs=
19529 U=
19530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19531   # 1. Remove the extension, and $U if already installed.
19532   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19533   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19534   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19535   #    will be set to the directory where LIBOBJS objects are built.
19536   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19537   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19538 done
19539 LIBOBJS=$ac_libobjs
19540
19541 LTLIBOBJS=$ac_ltlibobjs
19542
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19545 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19546    if test -n "$am_sleep_pid"; then
19547      # Hide warnings about reused PIDs.
19548      wait $am_sleep_pid 2>/dev/null
19549    fi
19550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19551 $as_echo "done" >&6; }
19552  if test -n "$EXEEXT"; then
19553   am__EXEEXT_TRUE=
19554   am__EXEEXT_FALSE='#'
19555 else
19556   am__EXEEXT_TRUE='#'
19557   am__EXEEXT_FALSE=
19558 fi
19559
19560 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19561   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19563 fi
19564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19565   as_fn_error $? "conditional \"AMDEP\" was never defined.
19566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19567 fi
19568 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19569   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19571 fi
19572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19573   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19575 fi
19576
19577   ac_config_commands="$ac_config_commands po/stamp-it"
19578
19579
19580 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19581   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
19582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19583 fi
19584 if test -z "${ENABLE_GTK2_TRUE}" && test -z "${ENABLE_GTK2_FALSE}"; then
19585   as_fn_error $? "conditional \"ENABLE_GTK2\" was never defined.
19586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19587 fi
19588 if test -z "${ENABLE_GTK3_TRUE}" && test -z "${ENABLE_GTK3_FALSE}"; then
19589   as_fn_error $? "conditional \"ENABLE_GTK3\" was never defined.
19590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19591 fi
19592 if test -z "${ENABLE_XIM_TRUE}" && test -z "${ENABLE_XIM_FALSE}"; then
19593   as_fn_error $? "conditional \"ENABLE_XIM\" was never defined.
19594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19595 fi
19596 if test -z "${ENABLE_WAYLAND_TRUE}" && test -z "${ENABLE_WAYLAND_FALSE}"; then
19597   as_fn_error $? "conditional \"ENABLE_WAYLAND\" was never defined.
19598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19599 fi
19600 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19601   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19603 fi
19604 if test -z "${ENABLE_VAPIGEN_TRUE}" && test -z "${ENABLE_VAPIGEN_FALSE}"; then
19605   as_fn_error $? "conditional \"ENABLE_VAPIGEN\" was never defined.
19606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19607 fi
19608 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19609   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19611 fi
19612 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19613   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19615 fi
19616 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19617   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19619 fi
19620 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19621   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19623 fi
19624 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19625   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19627 fi
19628 if test -z "${ENABLE_GCONF_TRUE}" && test -z "${ENABLE_GCONF_FALSE}"; then
19629   as_fn_error $? "conditional \"ENABLE_GCONF\" was never defined.
19630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19631 fi
19632 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
19633   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
19634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635 fi
19636 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
19637   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
19638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19639 fi
19640 if test -z "${ENABLE_MEMCONF_TRUE}" && test -z "${ENABLE_MEMCONF_FALSE}"; then
19641   as_fn_error $? "conditional \"ENABLE_MEMCONF\" was never defined.
19642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19643 fi
19644 if test -z "${ENABLE_DCONF_TRUE}" && test -z "${ENABLE_DCONF_FALSE}"; then
19645   as_fn_error $? "conditional \"ENABLE_DCONF\" was never defined.
19646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19647 fi
19648 if test -z "${ENABLE_PYTHON_LIBRARY_TRUE}" && test -z "${ENABLE_PYTHON_LIBRARY_FALSE}"; then
19649   as_fn_error $? "conditional \"ENABLE_PYTHON_LIBRARY\" was never defined.
19650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19651 fi
19652 if test -z "${ENABLE_SETUP_TRUE}" && test -z "${ENABLE_SETUP_FALSE}"; then
19653   as_fn_error $? "conditional \"ENABLE_SETUP\" was never defined.
19654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19655 fi
19656 if test -z "${ENABLE_DAEMON_TRUE}" && test -z "${ENABLE_DAEMON_FALSE}"; then
19657   as_fn_error $? "conditional \"ENABLE_DAEMON\" was never defined.
19658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19659 fi
19660 if test -z "${ENABLE_PYGOBJECT_TRUE}" && test -z "${ENABLE_PYGOBJECT_FALSE}"; then
19661   as_fn_error $? "conditional \"ENABLE_PYGOBJECT\" was never defined.
19662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19663 fi
19664 if test -z "${ENABLE_UI_TRUE}" && test -z "${ENABLE_UI_FALSE}"; then
19665   as_fn_error $? "conditional \"ENABLE_UI\" was never defined.
19666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19667 fi
19668 if test -z "${ENABLE_ENGINE_TRUE}" && test -z "${ENABLE_ENGINE_FALSE}"; then
19669   as_fn_error $? "conditional \"ENABLE_ENGINE\" was never defined.
19670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19671 fi
19672 if test -z "${ENABLE_LIBNOTIFY_TRUE}" && test -z "${ENABLE_LIBNOTIFY_FALSE}"; then
19673   as_fn_error $? "conditional \"ENABLE_LIBNOTIFY\" was never defined.
19674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19675 fi
19676
19677 : "${CONFIG_STATUS=./config.status}"
19678 ac_write_fail=0
19679 ac_clean_files_save=$ac_clean_files
19680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19683 as_write_fail=0
19684 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19685 #! $SHELL
19686 # Generated by $as_me.
19687 # Run this file to recreate the current configuration.
19688 # Compiler output produced by configure, useful for debugging
19689 # configure, is in config.log if it exists.
19690
19691 debug=false
19692 ac_cs_recheck=false
19693 ac_cs_silent=false
19694
19695 SHELL=\${CONFIG_SHELL-$SHELL}
19696 export SHELL
19697 _ASEOF
19698 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19699 ## -------------------- ##
19700 ## M4sh Initialization. ##
19701 ## -------------------- ##
19702
19703 # Be more Bourne compatible
19704 DUALCASE=1; export DUALCASE # for MKS sh
19705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19706   emulate sh
19707   NULLCMD=:
19708   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19709   # is contrary to our usage.  Disable this feature.
19710   alias -g '${1+"$@"}'='"$@"'
19711   setopt NO_GLOB_SUBST
19712 else
19713   case `(set -o) 2>/dev/null` in #(
19714   *posix*) :
19715     set -o posix ;; #(
19716   *) :
19717      ;;
19718 esac
19719 fi
19720
19721
19722 as_nl='
19723 '
19724 export as_nl
19725 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19726 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19729 # Prefer a ksh shell builtin over an external printf program on Solaris,
19730 # but without wasting forks for bash or zsh.
19731 if test -z "$BASH_VERSION$ZSH_VERSION" \
19732     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19733   as_echo='print -r --'
19734   as_echo_n='print -rn --'
19735 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19736   as_echo='printf %s\n'
19737   as_echo_n='printf %s'
19738 else
19739   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19740     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19741     as_echo_n='/usr/ucb/echo -n'
19742   else
19743     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19744     as_echo_n_body='eval
19745       arg=$1;
19746       case $arg in #(
19747       *"$as_nl"*)
19748         expr "X$arg" : "X\\(.*\\)$as_nl";
19749         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19750       esac;
19751       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19752     '
19753     export as_echo_n_body
19754     as_echo_n='sh -c $as_echo_n_body as_echo'
19755   fi
19756   export as_echo_body
19757   as_echo='sh -c $as_echo_body as_echo'
19758 fi
19759
19760 # The user is always right.
19761 if test "${PATH_SEPARATOR+set}" != set; then
19762   PATH_SEPARATOR=:
19763   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19764     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19765       PATH_SEPARATOR=';'
19766   }
19767 fi
19768
19769
19770 # IFS
19771 # We need space, tab and new line, in precisely that order.  Quoting is
19772 # there to prevent editors from complaining about space-tab.
19773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19774 # splitting by setting IFS to empty value.)
19775 IFS=" ""        $as_nl"
19776
19777 # Find who we are.  Look in the path if we contain no directory separator.
19778 as_myself=
19779 case $0 in #((
19780   *[\\/]* ) as_myself=$0 ;;
19781   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19783 do
19784   IFS=$as_save_IFS
19785   test -z "$as_dir" && as_dir=.
19786     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19787   done
19788 IFS=$as_save_IFS
19789
19790      ;;
19791 esac
19792 # We did not find ourselves, most probably we were run as `sh COMMAND'
19793 # in which case we are not to be found in the path.
19794 if test "x$as_myself" = x; then
19795   as_myself=$0
19796 fi
19797 if test ! -f "$as_myself"; then
19798   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19799   exit 1
19800 fi
19801
19802 # Unset variables that we do not need and which cause bugs (e.g. in
19803 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19804 # suppresses any "Segmentation fault" message there.  '((' could
19805 # trigger a bug in pdksh 5.2.14.
19806 for as_var in BASH_ENV ENV MAIL MAILPATH
19807 do eval test x\${$as_var+set} = xset \
19808   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19809 done
19810 PS1='$ '
19811 PS2='> '
19812 PS4='+ '
19813
19814 # NLS nuisances.
19815 LC_ALL=C
19816 export LC_ALL
19817 LANGUAGE=C
19818 export LANGUAGE
19819
19820 # CDPATH.
19821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19822
19823
19824 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19825 # ----------------------------------------
19826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19828 # script with STATUS, using 1 if that was 0.
19829 as_fn_error ()
19830 {
19831   as_status=$1; test $as_status -eq 0 && as_status=1
19832   if test "$4"; then
19833     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19834     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19835   fi
19836   $as_echo "$as_me: error: $2" >&2
19837   as_fn_exit $as_status
19838 } # as_fn_error
19839
19840
19841 # as_fn_set_status STATUS
19842 # -----------------------
19843 # Set $? to STATUS, without forking.
19844 as_fn_set_status ()
19845 {
19846   return $1
19847 } # as_fn_set_status
19848
19849 # as_fn_exit STATUS
19850 # -----------------
19851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19852 as_fn_exit ()
19853 {
19854   set +e
19855   as_fn_set_status $1
19856   exit $1
19857 } # as_fn_exit
19858
19859 # as_fn_unset VAR
19860 # ---------------
19861 # Portably unset VAR.
19862 as_fn_unset ()
19863 {
19864   { eval $1=; unset $1;}
19865 }
19866 as_unset=as_fn_unset
19867 # as_fn_append VAR VALUE
19868 # ----------------------
19869 # Append the text in VALUE to the end of the definition contained in VAR. Take
19870 # advantage of any shell optimizations that allow amortized linear growth over
19871 # repeated appends, instead of the typical quadratic growth present in naive
19872 # implementations.
19873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19874   eval 'as_fn_append ()
19875   {
19876     eval $1+=\$2
19877   }'
19878 else
19879   as_fn_append ()
19880   {
19881     eval $1=\$$1\$2
19882   }
19883 fi # as_fn_append
19884
19885 # as_fn_arith ARG...
19886 # ------------------
19887 # Perform arithmetic evaluation on the ARGs, and store the result in the
19888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19889 # must be portable across $(()) and expr.
19890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19891   eval 'as_fn_arith ()
19892   {
19893     as_val=$(( $* ))
19894   }'
19895 else
19896   as_fn_arith ()
19897   {
19898     as_val=`expr "$@" || test $? -eq 1`
19899   }
19900 fi # as_fn_arith
19901
19902
19903 if expr a : '\(a\)' >/dev/null 2>&1 &&
19904    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19905   as_expr=expr
19906 else
19907   as_expr=false
19908 fi
19909
19910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19911   as_basename=basename
19912 else
19913   as_basename=false
19914 fi
19915
19916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19917   as_dirname=dirname
19918 else
19919   as_dirname=false
19920 fi
19921
19922 as_me=`$as_basename -- "$0" ||
19923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19924          X"$0" : 'X\(//\)$' \| \
19925          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19926 $as_echo X/"$0" |
19927     sed '/^.*\/\([^/][^/]*\)\/*$/{
19928             s//\1/
19929             q
19930           }
19931           /^X\/\(\/\/\)$/{
19932             s//\1/
19933             q
19934           }
19935           /^X\/\(\/\).*/{
19936             s//\1/
19937             q
19938           }
19939           s/.*/./; q'`
19940
19941 # Avoid depending upon Character Ranges.
19942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19945 as_cr_digits='0123456789'
19946 as_cr_alnum=$as_cr_Letters$as_cr_digits
19947
19948 ECHO_C= ECHO_N= ECHO_T=
19949 case `echo -n x` in #(((((
19950 -n*)
19951   case `echo 'xy\c'` in
19952   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19953   xy)  ECHO_C='\c';;
19954   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19955        ECHO_T=' ';;
19956   esac;;
19957 *)
19958   ECHO_N='-n';;
19959 esac
19960
19961 rm -f conf$$ conf$$.exe conf$$.file
19962 if test -d conf$$.dir; then
19963   rm -f conf$$.dir/conf$$.file
19964 else
19965   rm -f conf$$.dir
19966   mkdir conf$$.dir 2>/dev/null
19967 fi
19968 if (echo >conf$$.file) 2>/dev/null; then
19969   if ln -s conf$$.file conf$$ 2>/dev/null; then
19970     as_ln_s='ln -s'
19971     # ... but there are two gotchas:
19972     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19973     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19974     # In both cases, we have to default to `cp -pR'.
19975     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19976       as_ln_s='cp -pR'
19977   elif ln conf$$.file conf$$ 2>/dev/null; then
19978     as_ln_s=ln
19979   else
19980     as_ln_s='cp -pR'
19981   fi
19982 else
19983   as_ln_s='cp -pR'
19984 fi
19985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19986 rmdir conf$$.dir 2>/dev/null
19987
19988
19989 # as_fn_mkdir_p
19990 # -------------
19991 # Create "$as_dir" as a directory, including parents if necessary.
19992 as_fn_mkdir_p ()
19993 {
19994
19995   case $as_dir in #(
19996   -*) as_dir=./$as_dir;;
19997   esac
19998   test -d "$as_dir" || eval $as_mkdir_p || {
19999     as_dirs=
20000     while :; do
20001       case $as_dir in #(
20002       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20003       *) as_qdir=$as_dir;;
20004       esac
20005       as_dirs="'$as_qdir' $as_dirs"
20006       as_dir=`$as_dirname -- "$as_dir" ||
20007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20008          X"$as_dir" : 'X\(//\)[^/]' \| \
20009          X"$as_dir" : 'X\(//\)$' \| \
20010          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20011 $as_echo X"$as_dir" |
20012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20013             s//\1/
20014             q
20015           }
20016           /^X\(\/\/\)[^/].*/{
20017             s//\1/
20018             q
20019           }
20020           /^X\(\/\/\)$/{
20021             s//\1/
20022             q
20023           }
20024           /^X\(\/\).*/{
20025             s//\1/
20026             q
20027           }
20028           s/.*/./; q'`
20029       test -d "$as_dir" && break
20030     done
20031     test -z "$as_dirs" || eval "mkdir $as_dirs"
20032   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20033
20034
20035 } # as_fn_mkdir_p
20036 if mkdir -p . 2>/dev/null; then
20037   as_mkdir_p='mkdir -p "$as_dir"'
20038 else
20039   test -d ./-p && rmdir ./-p
20040   as_mkdir_p=false
20041 fi
20042
20043
20044 # as_fn_executable_p FILE
20045 # -----------------------
20046 # Test if FILE is an executable regular file.
20047 as_fn_executable_p ()
20048 {
20049   test -f "$1" && test -x "$1"
20050 } # as_fn_executable_p
20051 as_test_x='test -x'
20052 as_executable_p=as_fn_executable_p
20053
20054 # Sed expression to map a string onto a valid CPP name.
20055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20056
20057 # Sed expression to map a string onto a valid variable name.
20058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20059
20060
20061 exec 6>&1
20062 ## ----------------------------------- ##
20063 ## Main body of $CONFIG_STATUS script. ##
20064 ## ----------------------------------- ##
20065 _ASEOF
20066 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20067
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069 # Save the log message, to keep $0 and so on meaningful, and to
20070 # report actual input values of CONFIG_FILES etc. instead of their
20071 # values after options handling.
20072 ac_log="
20073 This file was extended by ibus $as_me 1.5.4, which was
20074 generated by GNU Autoconf 2.69.  Invocation command line was
20075
20076   CONFIG_FILES    = $CONFIG_FILES
20077   CONFIG_HEADERS  = $CONFIG_HEADERS
20078   CONFIG_LINKS    = $CONFIG_LINKS
20079   CONFIG_COMMANDS = $CONFIG_COMMANDS
20080   $ $0 $@
20081
20082 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20083 "
20084
20085 _ACEOF
20086
20087 case $ac_config_files in *"
20088 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20089 esac
20090
20091 case $ac_config_headers in *"
20092 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20093 esac
20094
20095
20096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20097 # Files that config.status was made for.
20098 config_files="$ac_config_files"
20099 config_headers="$ac_config_headers"
20100 config_commands="$ac_config_commands"
20101
20102 _ACEOF
20103
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20105 ac_cs_usage="\
20106 \`$as_me' instantiates files and other configuration actions
20107 from templates according to the current configuration.  Unless the files
20108 and actions are specified as TAGs, all are instantiated by default.
20109
20110 Usage: $0 [OPTION]... [TAG]...
20111
20112   -h, --help       print this help, then exit
20113   -V, --version    print version number and configuration settings, then exit
20114       --config     print configuration, then exit
20115   -q, --quiet, --silent
20116                    do not print progress messages
20117   -d, --debug      don't remove temporary files
20118       --recheck    update $as_me by reconfiguring in the same conditions
20119       --file=FILE[:TEMPLATE]
20120                    instantiate the configuration file FILE
20121       --header=FILE[:TEMPLATE]
20122                    instantiate the configuration header FILE
20123
20124 Configuration files:
20125 $config_files
20126
20127 Configuration headers:
20128 $config_headers
20129
20130 Configuration commands:
20131 $config_commands
20132
20133 Report bugs to <http://code.google.com/p/ibus/issues/entry>."
20134
20135 _ACEOF
20136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20137 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20138 ac_cs_version="\\
20139 ibus config.status 1.5.4
20140 configured by $0, generated by GNU Autoconf 2.69,
20141   with options \\"\$ac_cs_config\\"
20142
20143 Copyright (C) 2012 Free Software Foundation, Inc.
20144 This config.status script is free software; the Free Software Foundation
20145 gives unlimited permission to copy, distribute and modify it."
20146
20147 ac_pwd='$ac_pwd'
20148 srcdir='$srcdir'
20149 INSTALL='$INSTALL'
20150 MKDIR_P='$MKDIR_P'
20151 AWK='$AWK'
20152 test -n "\$AWK" || AWK=awk
20153 _ACEOF
20154
20155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20156 # The default lists apply if the user does not specify any file.
20157 ac_need_defaults=:
20158 while test $# != 0
20159 do
20160   case $1 in
20161   --*=?*)
20162     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20163     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20164     ac_shift=:
20165     ;;
20166   --*=)
20167     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20168     ac_optarg=
20169     ac_shift=:
20170     ;;
20171   *)
20172     ac_option=$1
20173     ac_optarg=$2
20174     ac_shift=shift
20175     ;;
20176   esac
20177
20178   case $ac_option in
20179   # Handling of the options.
20180   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20181     ac_cs_recheck=: ;;
20182   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20183     $as_echo "$ac_cs_version"; exit ;;
20184   --config | --confi | --conf | --con | --co | --c )
20185     $as_echo "$ac_cs_config"; exit ;;
20186   --debug | --debu | --deb | --de | --d | -d )
20187     debug=: ;;
20188   --file | --fil | --fi | --f )
20189     $ac_shift
20190     case $ac_optarg in
20191     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20192     '') as_fn_error $? "missing file argument" ;;
20193     esac
20194     as_fn_append CONFIG_FILES " '$ac_optarg'"
20195     ac_need_defaults=false;;
20196   --header | --heade | --head | --hea )
20197     $ac_shift
20198     case $ac_optarg in
20199     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20200     esac
20201     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20202     ac_need_defaults=false;;
20203   --he | --h)
20204     # Conflict between --help and --header
20205     as_fn_error $? "ambiguous option: \`$1'
20206 Try \`$0 --help' for more information.";;
20207   --help | --hel | -h )
20208     $as_echo "$ac_cs_usage"; exit ;;
20209   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20210   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20211     ac_cs_silent=: ;;
20212
20213   # This is an error.
20214   -*) as_fn_error $? "unrecognized option: \`$1'
20215 Try \`$0 --help' for more information." ;;
20216
20217   *) as_fn_append ac_config_targets " $1"
20218      ac_need_defaults=false ;;
20219
20220   esac
20221   shift
20222 done
20223
20224 ac_configure_extra_args=
20225
20226 if $ac_cs_silent; then
20227   exec 6>/dev/null
20228   ac_configure_extra_args="$ac_configure_extra_args --silent"
20229 fi
20230
20231 _ACEOF
20232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233 if \$ac_cs_recheck; then
20234   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20235   shift
20236   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20237   CONFIG_SHELL='$SHELL'
20238   export CONFIG_SHELL
20239   exec "\$@"
20240 fi
20241
20242 _ACEOF
20243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20244 exec 5>>config.log
20245 {
20246   echo
20247   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20248 ## Running $as_me. ##
20249 _ASBOX
20250   $as_echo "$ac_log"
20251 } >&5
20252
20253 _ACEOF
20254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255 #
20256 # INIT-COMMANDS
20257 #
20258 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20259
20260
20261
20262
20263 # The HP-UX ksh and POSIX shell print the target directory to stdout
20264 # if CDPATH is set.
20265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20266
20267 sed_quote_subst='$sed_quote_subst'
20268 double_quote_subst='$double_quote_subst'
20269 delay_variable_subst='$delay_variable_subst'
20270 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20271 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20272 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20273 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20274 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20275 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20276 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20277 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20278 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20279 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20280 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20281 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20282 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20283 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20284 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20285 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20286 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20287 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20288 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20289 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20290 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20291 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20292 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20293 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20294 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20295 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20296 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20297 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20298 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20299 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20300 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20301 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20302 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20303 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20304 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20305 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20306 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20307 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20308 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20309 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20310 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20311 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20312 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20313 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20314 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20315 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20316 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20317 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20318 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20319 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20320 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20321 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20322 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20323 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20324 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20325 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20326 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"`'
20327 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20328 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20329 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20330 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20331 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20332 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20333 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20334 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20335 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20336 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20337 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20338 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20339 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20340 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20341 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20342 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20343 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20344 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20345 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20346 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20347 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20348 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20349 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20350 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20351 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20352 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20353 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20354 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20355 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20356 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20357 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20358 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20359 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20360 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20361 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20362 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20363 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20364 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20365 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20366 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20367 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20368 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20369 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20370 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20371 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20372 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20373 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20374 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20375 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20376 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20377 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20378 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20379 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20380 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20381 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20382 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20383 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20384 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20385 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20386 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20387 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20388 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20389 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20390 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20391 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20392 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20393 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20394 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20395 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20396 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20397 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20398 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20399 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20400
20401 LTCC='$LTCC'
20402 LTCFLAGS='$LTCFLAGS'
20403 compiler='$compiler_DEFAULT'
20404
20405 # A function that is used when there is no print builtin or printf.
20406 func_fallback_echo ()
20407 {
20408   eval 'cat <<_LTECHO_EOF
20409 \$1
20410 _LTECHO_EOF'
20411 }
20412
20413 # Quote evaled strings.
20414 for var in SHELL \
20415 ECHO \
20416 PATH_SEPARATOR \
20417 SED \
20418 GREP \
20419 EGREP \
20420 FGREP \
20421 LD \
20422 NM \
20423 LN_S \
20424 lt_SP2NL \
20425 lt_NL2SP \
20426 reload_flag \
20427 OBJDUMP \
20428 deplibs_check_method \
20429 file_magic_cmd \
20430 file_magic_glob \
20431 want_nocaseglob \
20432 DLLTOOL \
20433 sharedlib_from_linklib_cmd \
20434 AR \
20435 AR_FLAGS \
20436 archiver_list_spec \
20437 STRIP \
20438 RANLIB \
20439 CC \
20440 CFLAGS \
20441 compiler \
20442 lt_cv_sys_global_symbol_pipe \
20443 lt_cv_sys_global_symbol_to_cdecl \
20444 lt_cv_sys_global_symbol_to_c_name_address \
20445 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20446 nm_file_list_spec \
20447 lt_prog_compiler_no_builtin_flag \
20448 lt_prog_compiler_pic \
20449 lt_prog_compiler_wl \
20450 lt_prog_compiler_static \
20451 lt_cv_prog_compiler_c_o \
20452 need_locks \
20453 MANIFEST_TOOL \
20454 DSYMUTIL \
20455 NMEDIT \
20456 LIPO \
20457 OTOOL \
20458 OTOOL64 \
20459 shrext_cmds \
20460 export_dynamic_flag_spec \
20461 whole_archive_flag_spec \
20462 compiler_needs_object \
20463 with_gnu_ld \
20464 allow_undefined_flag \
20465 no_undefined_flag \
20466 hardcode_libdir_flag_spec \
20467 hardcode_libdir_separator \
20468 exclude_expsyms \
20469 include_expsyms \
20470 file_list_spec \
20471 variables_saved_for_relink \
20472 libname_spec \
20473 library_names_spec \
20474 soname_spec \
20475 install_override_mode \
20476 finish_eval \
20477 old_striplib \
20478 striplib; do
20479     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20480     *[\\\\\\\`\\"\\\$]*)
20481       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20482       ;;
20483     *)
20484       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20485       ;;
20486     esac
20487 done
20488
20489 # Double-quote double-evaled strings.
20490 for var in reload_cmds \
20491 old_postinstall_cmds \
20492 old_postuninstall_cmds \
20493 old_archive_cmds \
20494 extract_expsyms_cmds \
20495 old_archive_from_new_cmds \
20496 old_archive_from_expsyms_cmds \
20497 archive_cmds \
20498 archive_expsym_cmds \
20499 module_cmds \
20500 module_expsym_cmds \
20501 export_symbols_cmds \
20502 prelink_cmds \
20503 postlink_cmds \
20504 postinstall_cmds \
20505 postuninstall_cmds \
20506 finish_cmds \
20507 sys_lib_search_path_spec \
20508 sys_lib_dlsearch_path_spec; do
20509     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20510     *[\\\\\\\`\\"\\\$]*)
20511       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20512       ;;
20513     *)
20514       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20515       ;;
20516     esac
20517 done
20518
20519 ac_aux_dir='$ac_aux_dir'
20520 xsi_shell='$xsi_shell'
20521 lt_shell_append='$lt_shell_append'
20522
20523 # See if we are running on zsh, and set the options which allow our
20524 # commands through without removal of \ escapes INIT.
20525 if test -n "\${ZSH_VERSION+set}" ; then
20526    setopt NO_GLOB_SUBST
20527 fi
20528
20529
20530     PACKAGE='$PACKAGE'
20531     VERSION='$VERSION'
20532     TIMESTAMP='$TIMESTAMP'
20533     RM='$RM'
20534     ofile='$ofile'
20535
20536
20537
20538
20539 _ACEOF
20540
20541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20542
20543 # Handling of arguments.
20544 for ac_config_target in $ac_config_targets
20545 do
20546   case $ac_config_target in
20547     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20548     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20549     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20550     "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20551     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20552     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20553     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20554     "ibus-1.0.pc") CONFIG_FILES="$CONFIG_FILES ibus-1.0.pc" ;;
20555     "ibus.spec") CONFIG_FILES="$CONFIG_FILES ibus.spec" ;;
20556     "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
20557     "client/gtk2/Makefile") CONFIG_FILES="$CONFIG_FILES client/gtk2/Makefile" ;;
20558     "client/gtk3/Makefile") CONFIG_FILES="$CONFIG_FILES client/gtk3/Makefile" ;;
20559     "client/x11/Makefile") CONFIG_FILES="$CONFIG_FILES client/x11/Makefile" ;;
20560     "client/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES client/wayland/Makefile" ;;
20561     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20562     "src/ibusversion.h") CONFIG_FILES="$CONFIG_FILES src/ibusversion.h" ;;
20563     "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
20564     "bus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
20565     "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
20566     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20567     "util/IMdkit/Makefile") CONFIG_FILES="$CONFIG_FILES util/IMdkit/Makefile" ;;
20568     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20569     "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
20570     "data/keymaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/keymaps/Makefile" ;;
20571     "data/dconf/Makefile") CONFIG_FILES="$CONFIG_FILES data/dconf/Makefile" ;;
20572     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20573     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
20574     "docs/reference/ibus/ibus-docs.sgml") CONFIG_FILES="$CONFIG_FILES docs/reference/ibus/ibus-docs.sgml" ;;
20575     "docs/reference/ibus/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/ibus/Makefile" ;;
20576     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20577     "ibus/_config.py") CONFIG_FILES="$CONFIG_FILES ibus/_config.py" ;;
20578     "ibus/Makefile") CONFIG_FILES="$CONFIG_FILES ibus/Makefile" ;;
20579     "ibus/interface/Makefile") CONFIG_FILES="$CONFIG_FILES ibus/interface/Makefile" ;;
20580     "ui/Makefile") CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;;
20581     "ui/gtk3/Makefile") CONFIG_FILES="$CONFIG_FILES ui/gtk3/Makefile" ;;
20582     "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
20583     "setup/ibus-setup") CONFIG_FILES="$CONFIG_FILES setup/ibus-setup" ;;
20584     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
20585     "bindings/pygobject/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pygobject/Makefile" ;;
20586     "bindings/vala/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/Makefile" ;;
20587     "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
20588     "conf/gconf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/gconf/Makefile" ;;
20589     "conf/dconf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/dconf/Makefile" ;;
20590     "conf/memconf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/memconf/Makefile" ;;
20591     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20592     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20593
20594   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20595   esac
20596 done
20597
20598
20599 # If the user did not use the arguments to specify the items to instantiate,
20600 # then the envvar interface is used.  Set only those that are not.
20601 # We use the long form for the default assignment because of an extremely
20602 # bizarre bug on SunOS 4.1.3.
20603 if $ac_need_defaults; then
20604   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20605   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20606   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20607 fi
20608
20609 # Have a temporary directory for convenience.  Make it in the build tree
20610 # simply because there is no reason against having it here, and in addition,
20611 # creating and moving files from /tmp can sometimes cause problems.
20612 # Hook for its removal unless debugging.
20613 # Note that there is a small window in which the directory will not be cleaned:
20614 # after its creation but before its name has been assigned to `$tmp'.
20615 $debug ||
20616 {
20617   tmp= ac_tmp=
20618   trap 'exit_status=$?
20619   : "${ac_tmp:=$tmp}"
20620   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20621 ' 0
20622   trap 'as_fn_exit 1' 1 2 13 15
20623 }
20624 # Create a (secure) tmp directory for tmp files.
20625
20626 {
20627   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20628   test -d "$tmp"
20629 }  ||
20630 {
20631   tmp=./conf$$-$RANDOM
20632   (umask 077 && mkdir "$tmp")
20633 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20634 ac_tmp=$tmp
20635
20636 # Set up the scripts for CONFIG_FILES section.
20637 # No need to generate them if there are no CONFIG_FILES.
20638 # This happens for instance with `./config.status config.h'.
20639 if test -n "$CONFIG_FILES"; then
20640
20641
20642 ac_cr=`echo X | tr X '\015'`
20643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20644 # But we know of no other shell where ac_cr would be empty at this
20645 # point, so we can use a bashism as a fallback.
20646 if test "x$ac_cr" = x; then
20647   eval ac_cr=\$\'\\r\'
20648 fi
20649 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20651   ac_cs_awk_cr='\\r'
20652 else
20653   ac_cs_awk_cr=$ac_cr
20654 fi
20655
20656 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20657 _ACEOF
20658
20659
20660 {
20661   echo "cat >conf$$subs.awk <<_ACEOF" &&
20662   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20663   echo "_ACEOF"
20664 } >conf$$subs.sh ||
20665   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20666 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20667 ac_delim='%!_!# '
20668 for ac_last_try in false false false false false :; do
20669   . ./conf$$subs.sh ||
20670     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20671
20672   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20673   if test $ac_delim_n = $ac_delim_num; then
20674     break
20675   elif $ac_last_try; then
20676     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20677   else
20678     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20679   fi
20680 done
20681 rm -f conf$$subs.sh
20682
20683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20684 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20685 _ACEOF
20686 sed -n '
20687 h
20688 s/^/S["/; s/!.*/"]=/
20689 p
20690 g
20691 s/^[^!]*!//
20692 :repl
20693 t repl
20694 s/'"$ac_delim"'$//
20695 t delim
20696 :nl
20697 h
20698 s/\(.\{148\}\)..*/\1/
20699 t more1
20700 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20701 p
20702 n
20703 b repl
20704 :more1
20705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20706 p
20707 g
20708 s/.\{148\}//
20709 t nl
20710 :delim
20711 h
20712 s/\(.\{148\}\)..*/\1/
20713 t more2
20714 s/["\\]/\\&/g; s/^/"/; s/$/"/
20715 p
20716 b
20717 :more2
20718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20719 p
20720 g
20721 s/.\{148\}//
20722 t delim
20723 ' <conf$$subs.awk | sed '
20724 /^[^""]/{
20725   N
20726   s/\n//
20727 }
20728 ' >>$CONFIG_STATUS || ac_write_fail=1
20729 rm -f conf$$subs.awk
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731 _ACAWK
20732 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20733   for (key in S) S_is_set[key] = 1
20734   FS = "\a"
20735
20736 }
20737 {
20738   line = $ 0
20739   nfields = split(line, field, "@")
20740   substed = 0
20741   len = length(field[1])
20742   for (i = 2; i < nfields; i++) {
20743     key = field[i]
20744     keylen = length(key)
20745     if (S_is_set[key]) {
20746       value = S[key]
20747       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20748       len += length(value) + length(field[++i])
20749       substed = 1
20750     } else
20751       len += 1 + keylen
20752   }
20753
20754   print line
20755 }
20756
20757 _ACAWK
20758 _ACEOF
20759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20760 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20761   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20762 else
20763   cat
20764 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20765   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20766 _ACEOF
20767
20768 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20769 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20770 # trailing colons and then remove the whole line if VPATH becomes empty
20771 # (actually we leave an empty line to preserve line numbers).
20772 if test "x$srcdir" = x.; then
20773   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20774 h
20775 s///
20776 s/^/:/
20777 s/[      ]*$/:/
20778 s/:\$(srcdir):/:/g
20779 s/:\${srcdir}:/:/g
20780 s/:@srcdir@:/:/g
20781 s/^:*//
20782 s/:*$//
20783 x
20784 s/\(=[   ]*\).*/\1/
20785 G
20786 s/\n//
20787 s/^[^=]*=[       ]*$//
20788 }'
20789 fi
20790
20791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20792 fi # test -n "$CONFIG_FILES"
20793
20794 # Set up the scripts for CONFIG_HEADERS section.
20795 # No need to generate them if there are no CONFIG_HEADERS.
20796 # This happens for instance with `./config.status Makefile'.
20797 if test -n "$CONFIG_HEADERS"; then
20798 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20799 BEGIN {
20800 _ACEOF
20801
20802 # Transform confdefs.h into an awk script `defines.awk', embedded as
20803 # here-document in config.status, that substitutes the proper values into
20804 # config.h.in to produce config.h.
20805
20806 # Create a delimiter string that does not exist in confdefs.h, to ease
20807 # handling of long lines.
20808 ac_delim='%!_!# '
20809 for ac_last_try in false false :; do
20810   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20811   if test -z "$ac_tt"; then
20812     break
20813   elif $ac_last_try; then
20814     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20815   else
20816     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20817   fi
20818 done
20819
20820 # For the awk script, D is an array of macro values keyed by name,
20821 # likewise P contains macro parameters if any.  Preserve backslash
20822 # newline sequences.
20823
20824 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20825 sed -n '
20826 s/.\{148\}/&'"$ac_delim"'/g
20827 t rset
20828 :rset
20829 s/^[     ]*#[    ]*define[       ][      ]*/ /
20830 t def
20831 d
20832 :def
20833 s/\\$//
20834 t bsnl
20835 s/["\\]/\\&/g
20836 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20837 D["\1"]=" \3"/p
20838 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20839 d
20840 :bsnl
20841 s/["\\]/\\&/g
20842 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20843 D["\1"]=" \3\\\\\\n"\\/p
20844 t cont
20845 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20846 t cont
20847 d
20848 :cont
20849 n
20850 s/.\{148\}/&'"$ac_delim"'/g
20851 t clear
20852 :clear
20853 s/\\$//
20854 t bsnlc
20855 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20856 d
20857 :bsnlc
20858 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20859 b cont
20860 ' <confdefs.h | sed '
20861 s/'"$ac_delim"'/"\\\
20862 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20863
20864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20865   for (key in D) D_is_set[key] = 1
20866   FS = "\a"
20867 }
20868 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20869   line = \$ 0
20870   split(line, arg, " ")
20871   if (arg[1] == "#") {
20872     defundef = arg[2]
20873     mac1 = arg[3]
20874   } else {
20875     defundef = substr(arg[1], 2)
20876     mac1 = arg[2]
20877   }
20878   split(mac1, mac2, "(") #)
20879   macro = mac2[1]
20880   prefix = substr(line, 1, index(line, defundef) - 1)
20881   if (D_is_set[macro]) {
20882     # Preserve the white space surrounding the "#".
20883     print prefix "define", macro P[macro] D[macro]
20884     next
20885   } else {
20886     # Replace #undef with comments.  This is necessary, for example,
20887     # in the case of _POSIX_SOURCE, which is predefined and required
20888     # on some systems where configure will not decide to define it.
20889     if (defundef == "undef") {
20890       print "/*", prefix defundef, macro, "*/"
20891       next
20892     }
20893   }
20894 }
20895 { print }
20896 _ACAWK
20897 _ACEOF
20898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20899   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20900 fi # test -n "$CONFIG_HEADERS"
20901
20902
20903 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20904 shift
20905 for ac_tag
20906 do
20907   case $ac_tag in
20908   :[FHLC]) ac_mode=$ac_tag; continue;;
20909   esac
20910   case $ac_mode$ac_tag in
20911   :[FHL]*:*);;
20912   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20913   :[FH]-) ac_tag=-:-;;
20914   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20915   esac
20916   ac_save_IFS=$IFS
20917   IFS=:
20918   set x $ac_tag
20919   IFS=$ac_save_IFS
20920   shift
20921   ac_file=$1
20922   shift
20923
20924   case $ac_mode in
20925   :L) ac_source=$1;;
20926   :[FH])
20927     ac_file_inputs=
20928     for ac_f
20929     do
20930       case $ac_f in
20931       -) ac_f="$ac_tmp/stdin";;
20932       *) # Look for the file first in the build tree, then in the source tree
20933          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20934          # because $ac_f cannot contain `:'.
20935          test -f "$ac_f" ||
20936            case $ac_f in
20937            [\\/$]*) false;;
20938            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20939            esac ||
20940            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20941       esac
20942       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20943       as_fn_append ac_file_inputs " '$ac_f'"
20944     done
20945
20946     # Let's still pretend it is `configure' which instantiates (i.e., don't
20947     # use $as_me), people would be surprised to read:
20948     #    /* config.h.  Generated by config.status.  */
20949     configure_input='Generated from '`
20950           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20951         `' by configure.'
20952     if test x"$ac_file" != x-; then
20953       configure_input="$ac_file.  $configure_input"
20954       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20955 $as_echo "$as_me: creating $ac_file" >&6;}
20956     fi
20957     # Neutralize special characters interpreted by sed in replacement strings.
20958     case $configure_input in #(
20959     *\&* | *\|* | *\\* )
20960        ac_sed_conf_input=`$as_echo "$configure_input" |
20961        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20962     *) ac_sed_conf_input=$configure_input;;
20963     esac
20964
20965     case $ac_tag in
20966     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20967       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20968     esac
20969     ;;
20970   esac
20971
20972   ac_dir=`$as_dirname -- "$ac_file" ||
20973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20974          X"$ac_file" : 'X\(//\)[^/]' \| \
20975          X"$ac_file" : 'X\(//\)$' \| \
20976          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20977 $as_echo X"$ac_file" |
20978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979             s//\1/
20980             q
20981           }
20982           /^X\(\/\/\)[^/].*/{
20983             s//\1/
20984             q
20985           }
20986           /^X\(\/\/\)$/{
20987             s//\1/
20988             q
20989           }
20990           /^X\(\/\).*/{
20991             s//\1/
20992             q
20993           }
20994           s/.*/./; q'`
20995   as_dir="$ac_dir"; as_fn_mkdir_p
20996   ac_builddir=.
20997
20998 case "$ac_dir" in
20999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21000 *)
21001   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21002   # A ".." for each directory in $ac_dir_suffix.
21003   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21004   case $ac_top_builddir_sub in
21005   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21006   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21007   esac ;;
21008 esac
21009 ac_abs_top_builddir=$ac_pwd
21010 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21011 # for backward compatibility:
21012 ac_top_builddir=$ac_top_build_prefix
21013
21014 case $srcdir in
21015   .)  # We are building in place.
21016     ac_srcdir=.
21017     ac_top_srcdir=$ac_top_builddir_sub
21018     ac_abs_top_srcdir=$ac_pwd ;;
21019   [\\/]* | ?:[\\/]* )  # Absolute name.
21020     ac_srcdir=$srcdir$ac_dir_suffix;
21021     ac_top_srcdir=$srcdir
21022     ac_abs_top_srcdir=$srcdir ;;
21023   *) # Relative name.
21024     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21025     ac_top_srcdir=$ac_top_build_prefix$srcdir
21026     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21027 esac
21028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21029
21030
21031   case $ac_mode in
21032   :F)
21033   #
21034   # CONFIG_FILE
21035   #
21036
21037   case $INSTALL in
21038   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21039   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21040   esac
21041   ac_MKDIR_P=$MKDIR_P
21042   case $MKDIR_P in
21043   [\\/$]* | ?:[\\/]* ) ;;
21044   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21045   esac
21046 _ACEOF
21047
21048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21049 # If the template does not know about datarootdir, expand it.
21050 # FIXME: This hack should be removed a few years after 2.60.
21051 ac_datarootdir_hack=; ac_datarootdir_seen=
21052 ac_sed_dataroot='
21053 /datarootdir/ {
21054   p
21055   q
21056 }
21057 /@datadir@/p
21058 /@docdir@/p
21059 /@infodir@/p
21060 /@localedir@/p
21061 /@mandir@/p'
21062 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21063 *datarootdir*) ac_datarootdir_seen=yes;;
21064 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21066 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21067 _ACEOF
21068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069   ac_datarootdir_hack='
21070   s&@datadir@&$datadir&g
21071   s&@docdir@&$docdir&g
21072   s&@infodir@&$infodir&g
21073   s&@localedir@&$localedir&g
21074   s&@mandir@&$mandir&g
21075   s&\\\${datarootdir}&$datarootdir&g' ;;
21076 esac
21077 _ACEOF
21078
21079 # Neutralize VPATH when `$srcdir' = `.'.
21080 # Shell code in configure.ac might set extrasub.
21081 # FIXME: do we really want to maintain this feature?
21082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21083 ac_sed_extra="$ac_vpsub
21084 $extrasub
21085 _ACEOF
21086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21087 :t
21088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21089 s|@configure_input@|$ac_sed_conf_input|;t t
21090 s&@top_builddir@&$ac_top_builddir_sub&;t t
21091 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21092 s&@srcdir@&$ac_srcdir&;t t
21093 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21094 s&@top_srcdir@&$ac_top_srcdir&;t t
21095 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21096 s&@builddir@&$ac_builddir&;t t
21097 s&@abs_builddir@&$ac_abs_builddir&;t t
21098 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21099 s&@INSTALL@&$ac_INSTALL&;t t
21100 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21101 $ac_datarootdir_hack
21102 "
21103 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21104   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21105
21106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21107   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21108   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21109       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21110   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21111 which seems to be undefined.  Please make sure it is defined" >&5
21112 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21113 which seems to be undefined.  Please make sure it is defined" >&2;}
21114
21115   rm -f "$ac_tmp/stdin"
21116   case $ac_file in
21117   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21118   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21119   esac \
21120   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21121  ;;
21122   :H)
21123   #
21124   # CONFIG_HEADER
21125   #
21126   if test x"$ac_file" != x-; then
21127     {
21128       $as_echo "/* $configure_input  */" \
21129       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21130     } >"$ac_tmp/config.h" \
21131       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21132     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21133       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21134 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21135     else
21136       rm -f "$ac_file"
21137       mv "$ac_tmp/config.h" "$ac_file" \
21138         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21139     fi
21140   else
21141     $as_echo "/* $configure_input  */" \
21142       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21143       || as_fn_error $? "could not create -" "$LINENO" 5
21144   fi
21145 # Compute "$ac_file"'s index in $config_headers.
21146 _am_arg="$ac_file"
21147 _am_stamp_count=1
21148 for _am_header in $config_headers :; do
21149   case $_am_header in
21150     $_am_arg | $_am_arg:* )
21151       break ;;
21152     * )
21153       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21154   esac
21155 done
21156 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21157 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158          X"$_am_arg" : 'X\(//\)[^/]' \| \
21159          X"$_am_arg" : 'X\(//\)$' \| \
21160          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21161 $as_echo X"$_am_arg" |
21162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21163             s//\1/
21164             q
21165           }
21166           /^X\(\/\/\)[^/].*/{
21167             s//\1/
21168             q
21169           }
21170           /^X\(\/\/\)$/{
21171             s//\1/
21172             q
21173           }
21174           /^X\(\/\).*/{
21175             s//\1/
21176             q
21177           }
21178           s/.*/./; q'`/stamp-h$_am_stamp_count
21179  ;;
21180
21181   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21182 $as_echo "$as_me: executing $ac_file commands" >&6;}
21183  ;;
21184   esac
21185
21186
21187   case $ac_file$ac_mode in
21188     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21189   # Older Autoconf quotes --file arguments for eval, but not when files
21190   # are listed without --file.  Let's play safe and only enable the eval
21191   # if we detect the quoting.
21192   case $CONFIG_FILES in
21193   *\'*) eval set x "$CONFIG_FILES" ;;
21194   *)   set x $CONFIG_FILES ;;
21195   esac
21196   shift
21197   for mf
21198   do
21199     # Strip MF so we end up with the name of the file.
21200     mf=`echo "$mf" | sed -e 's/:.*$//'`
21201     # Check whether this is an Automake generated Makefile or not.
21202     # We used to match only the files named 'Makefile.in', but
21203     # some people rename them; so instead we look at the file content.
21204     # Grep'ing the first line is not enough: some people post-process
21205     # each Makefile.in and add a new line on top of each file to say so.
21206     # Grep'ing the whole file is not good either: AIX grep has a line
21207     # limit of 2048, but all sed's we know have understand at least 4000.
21208     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21209       dirpart=`$as_dirname -- "$mf" ||
21210 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211          X"$mf" : 'X\(//\)[^/]' \| \
21212          X"$mf" : 'X\(//\)$' \| \
21213          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21214 $as_echo X"$mf" |
21215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21216             s//\1/
21217             q
21218           }
21219           /^X\(\/\/\)[^/].*/{
21220             s//\1/
21221             q
21222           }
21223           /^X\(\/\/\)$/{
21224             s//\1/
21225             q
21226           }
21227           /^X\(\/\).*/{
21228             s//\1/
21229             q
21230           }
21231           s/.*/./; q'`
21232     else
21233       continue
21234     fi
21235     # Extract the definition of DEPDIR, am__include, and am__quote
21236     # from the Makefile without running 'make'.
21237     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21238     test -z "$DEPDIR" && continue
21239     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21240     test -z "$am__include" && continue
21241     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21242     # Find all dependency output files, they are included files with
21243     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21244     # simplest approach to changing $(DEPDIR) to its actual value in the
21245     # expansion.
21246     for file in `sed -n "
21247       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21248          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21249       # Make sure the directory exists.
21250       test -f "$dirpart/$file" && continue
21251       fdir=`$as_dirname -- "$file" ||
21252 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21253          X"$file" : 'X\(//\)[^/]' \| \
21254          X"$file" : 'X\(//\)$' \| \
21255          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21256 $as_echo X"$file" |
21257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21258             s//\1/
21259             q
21260           }
21261           /^X\(\/\/\)[^/].*/{
21262             s//\1/
21263             q
21264           }
21265           /^X\(\/\/\)$/{
21266             s//\1/
21267             q
21268           }
21269           /^X\(\/\).*/{
21270             s//\1/
21271             q
21272           }
21273           s/.*/./; q'`
21274       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21275       # echo "creating $dirpart/$file"
21276       echo '# dummy' > "$dirpart/$file"
21277     done
21278   done
21279 }
21280  ;;
21281     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21282         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21283       esac ;;
21284     "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21285         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21286       esac ;;
21287     "libtool":C)
21288
21289     # See if we are running on zsh, and set the options which allow our
21290     # commands through without removal of \ escapes.
21291     if test -n "${ZSH_VERSION+set}" ; then
21292       setopt NO_GLOB_SUBST
21293     fi
21294
21295     cfgfile="${ofile}T"
21296     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21297     $RM "$cfgfile"
21298
21299     cat <<_LT_EOF >> "$cfgfile"
21300 #! $SHELL
21301
21302 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21303 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21306 #
21307 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21308 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21309 #                 Foundation, Inc.
21310 #   Written by Gordon Matzigkeit, 1996
21311 #
21312 #   This file is part of GNU Libtool.
21313 #
21314 # GNU Libtool is free software; you can redistribute it and/or
21315 # modify it under the terms of the GNU General Public License as
21316 # published by the Free Software Foundation; either version 2 of
21317 # the License, or (at your option) any later version.
21318 #
21319 # As a special exception to the GNU General Public License,
21320 # if you distribute this file as part of a program or library that
21321 # is built using GNU Libtool, you may include this file under the
21322 # same distribution terms that you use for the rest of that program.
21323 #
21324 # GNU Libtool is distributed in the hope that it will be useful,
21325 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21327 # GNU General Public License for more details.
21328 #
21329 # You should have received a copy of the GNU General Public License
21330 # along with GNU Libtool; see the file COPYING.  If not, a copy
21331 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21332 # obtained by writing to the Free Software Foundation, Inc.,
21333 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21334
21335
21336 # The names of the tagged configurations supported by this script.
21337 available_tags=""
21338
21339 # ### BEGIN LIBTOOL CONFIG
21340
21341 # Whether or not to build static libraries.
21342 build_old_libs=$enable_static
21343
21344 # Which release of libtool.m4 was used?
21345 macro_version=$macro_version
21346 macro_revision=$macro_revision
21347
21348 # Whether or not to build shared libraries.
21349 build_libtool_libs=$enable_shared
21350
21351 # What type of objects to build.
21352 pic_mode=$pic_mode
21353
21354 # Whether or not to optimize for fast installation.
21355 fast_install=$enable_fast_install
21356
21357 # Shell to use when invoking shell scripts.
21358 SHELL=$lt_SHELL
21359
21360 # An echo program that protects backslashes.
21361 ECHO=$lt_ECHO
21362
21363 # The PATH separator for the build system.
21364 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21365
21366 # The host system.
21367 host_alias=$host_alias
21368 host=$host
21369 host_os=$host_os
21370
21371 # The build system.
21372 build_alias=$build_alias
21373 build=$build
21374 build_os=$build_os
21375
21376 # A sed program that does not truncate output.
21377 SED=$lt_SED
21378
21379 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21380 Xsed="\$SED -e 1s/^X//"
21381
21382 # A grep program that handles long lines.
21383 GREP=$lt_GREP
21384
21385 # An ERE matcher.
21386 EGREP=$lt_EGREP
21387
21388 # A literal string matcher.
21389 FGREP=$lt_FGREP
21390
21391 # A BSD- or MS-compatible name lister.
21392 NM=$lt_NM
21393
21394 # Whether we need soft or hard links.
21395 LN_S=$lt_LN_S
21396
21397 # What is the maximum length of a command?
21398 max_cmd_len=$max_cmd_len
21399
21400 # Object file suffix (normally "o").
21401 objext=$ac_objext
21402
21403 # Executable file suffix (normally "").
21404 exeext=$exeext
21405
21406 # whether the shell understands "unset".
21407 lt_unset=$lt_unset
21408
21409 # turn spaces into newlines.
21410 SP2NL=$lt_lt_SP2NL
21411
21412 # turn newlines into spaces.
21413 NL2SP=$lt_lt_NL2SP
21414
21415 # convert \$build file names to \$host format.
21416 to_host_file_cmd=$lt_cv_to_host_file_cmd
21417
21418 # convert \$build files to toolchain format.
21419 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21420
21421 # An object symbol dumper.
21422 OBJDUMP=$lt_OBJDUMP
21423
21424 # Method to check whether dependent libraries are shared objects.
21425 deplibs_check_method=$lt_deplibs_check_method
21426
21427 # Command to use when deplibs_check_method = "file_magic".
21428 file_magic_cmd=$lt_file_magic_cmd
21429
21430 # How to find potential files when deplibs_check_method = "file_magic".
21431 file_magic_glob=$lt_file_magic_glob
21432
21433 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21434 want_nocaseglob=$lt_want_nocaseglob
21435
21436 # DLL creation program.
21437 DLLTOOL=$lt_DLLTOOL
21438
21439 # Command to associate shared and link libraries.
21440 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21441
21442 # The archiver.
21443 AR=$lt_AR
21444
21445 # Flags to create an archive.
21446 AR_FLAGS=$lt_AR_FLAGS
21447
21448 # How to feed a file listing to the archiver.
21449 archiver_list_spec=$lt_archiver_list_spec
21450
21451 # A symbol stripping program.
21452 STRIP=$lt_STRIP
21453
21454 # Commands used to install an old-style archive.
21455 RANLIB=$lt_RANLIB
21456 old_postinstall_cmds=$lt_old_postinstall_cmds
21457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21458
21459 # Whether to use a lock for old archive extraction.
21460 lock_old_archive_extraction=$lock_old_archive_extraction
21461
21462 # A C compiler.
21463 LTCC=$lt_CC
21464
21465 # LTCC compiler flags.
21466 LTCFLAGS=$lt_CFLAGS
21467
21468 # Take the output of nm and produce a listing of raw symbols and C names.
21469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21470
21471 # Transform the output of nm in a proper C declaration.
21472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21473
21474 # Transform the output of nm in a C name address pair.
21475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21476
21477 # Transform the output of nm in a C name address pair when lib prefix is needed.
21478 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21479
21480 # Specify filename containing input files for \$NM.
21481 nm_file_list_spec=$lt_nm_file_list_spec
21482
21483 # The root where to search for dependent libraries,and in which our libraries should be installed.
21484 lt_sysroot=$lt_sysroot
21485
21486 # The name of the directory that contains temporary libtool files.
21487 objdir=$objdir
21488
21489 # Used to examine libraries when file_magic_cmd begins with "file".
21490 MAGIC_CMD=$MAGIC_CMD
21491
21492 # Must we lock files when doing compilation?
21493 need_locks=$lt_need_locks
21494
21495 # Manifest tool.
21496 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21497
21498 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21499 DSYMUTIL=$lt_DSYMUTIL
21500
21501 # Tool to change global to local symbols on Mac OS X.
21502 NMEDIT=$lt_NMEDIT
21503
21504 # Tool to manipulate fat objects and archives on Mac OS X.
21505 LIPO=$lt_LIPO
21506
21507 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21508 OTOOL=$lt_OTOOL
21509
21510 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21511 OTOOL64=$lt_OTOOL64
21512
21513 # Old archive suffix (normally "a").
21514 libext=$libext
21515
21516 # Shared library suffix (normally ".so").
21517 shrext_cmds=$lt_shrext_cmds
21518
21519 # The commands to extract the exported symbol list from a shared archive.
21520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21521
21522 # Variables whose values should be saved in libtool wrapper scripts and
21523 # restored at link time.
21524 variables_saved_for_relink=$lt_variables_saved_for_relink
21525
21526 # Do we need the "lib" prefix for modules?
21527 need_lib_prefix=$need_lib_prefix
21528
21529 # Do we need a version for libraries?
21530 need_version=$need_version
21531
21532 # Library versioning type.
21533 version_type=$version_type
21534
21535 # Shared library runtime path variable.
21536 runpath_var=$runpath_var
21537
21538 # Shared library path variable.
21539 shlibpath_var=$shlibpath_var
21540
21541 # Is shlibpath searched before the hard-coded library search path?
21542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21543
21544 # Format of library name prefix.
21545 libname_spec=$lt_libname_spec
21546
21547 # List of archive names.  First name is the real one, the rest are links.
21548 # The last name is the one that the linker finds with -lNAME
21549 library_names_spec=$lt_library_names_spec
21550
21551 # The coded name of the library, if different from the real name.
21552 soname_spec=$lt_soname_spec
21553
21554 # Permission mode override for installation of shared libraries.
21555 install_override_mode=$lt_install_override_mode
21556
21557 # Command to use after installation of a shared archive.
21558 postinstall_cmds=$lt_postinstall_cmds
21559
21560 # Command to use after uninstallation of a shared archive.
21561 postuninstall_cmds=$lt_postuninstall_cmds
21562
21563 # Commands used to finish a libtool library installation in a directory.
21564 finish_cmds=$lt_finish_cmds
21565
21566 # As "finish_cmds", except a single script fragment to be evaled but
21567 # not shown.
21568 finish_eval=$lt_finish_eval
21569
21570 # Whether we should hardcode library paths into libraries.
21571 hardcode_into_libs=$hardcode_into_libs
21572
21573 # Compile-time system search path for libraries.
21574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21575
21576 # Run-time system search path for libraries.
21577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21578
21579 # Whether dlopen is supported.
21580 dlopen_support=$enable_dlopen
21581
21582 # Whether dlopen of programs is supported.
21583 dlopen_self=$enable_dlopen_self
21584
21585 # Whether dlopen of statically linked programs is supported.
21586 dlopen_self_static=$enable_dlopen_self_static
21587
21588 # Commands to strip libraries.
21589 old_striplib=$lt_old_striplib
21590 striplib=$lt_striplib
21591
21592
21593 # The linker used to build libraries.
21594 LD=$lt_LD
21595
21596 # How to create reloadable object files.
21597 reload_flag=$lt_reload_flag
21598 reload_cmds=$lt_reload_cmds
21599
21600 # Commands used to build an old-style archive.
21601 old_archive_cmds=$lt_old_archive_cmds
21602
21603 # A language specific compiler.
21604 CC=$lt_compiler
21605
21606 # Is the compiler the GNU compiler?
21607 with_gcc=$GCC
21608
21609 # Compiler flag to turn off builtin functions.
21610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21611
21612 # Additional compiler flags for building library objects.
21613 pic_flag=$lt_lt_prog_compiler_pic
21614
21615 # How to pass a linker flag through the compiler.
21616 wl=$lt_lt_prog_compiler_wl
21617
21618 # Compiler flag to prevent dynamic linking.
21619 link_static_flag=$lt_lt_prog_compiler_static
21620
21621 # Does compiler simultaneously support -c and -o options?
21622 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21623
21624 # Whether or not to add -lc for building shared libraries.
21625 build_libtool_need_lc=$archive_cmds_need_lc
21626
21627 # Whether or not to disallow shared libs when runtime libs are static.
21628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21629
21630 # Compiler flag to allow reflexive dlopens.
21631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21632
21633 # Compiler flag to generate shared objects directly from archives.
21634 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21635
21636 # Whether the compiler copes with passing no objects directly.
21637 compiler_needs_object=$lt_compiler_needs_object
21638
21639 # Create an old-style archive from a shared archive.
21640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21641
21642 # Create a temporary old-style archive to link instead of a shared archive.
21643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21644
21645 # Commands used to build a shared archive.
21646 archive_cmds=$lt_archive_cmds
21647 archive_expsym_cmds=$lt_archive_expsym_cmds
21648
21649 # Commands used to build a loadable module if different from building
21650 # a shared archive.
21651 module_cmds=$lt_module_cmds
21652 module_expsym_cmds=$lt_module_expsym_cmds
21653
21654 # Whether we are building with GNU ld or not.
21655 with_gnu_ld=$lt_with_gnu_ld
21656
21657 # Flag that allows shared libraries with undefined symbols to be built.
21658 allow_undefined_flag=$lt_allow_undefined_flag
21659
21660 # Flag that enforces no undefined symbols.
21661 no_undefined_flag=$lt_no_undefined_flag
21662
21663 # Flag to hardcode \$libdir into a binary during linking.
21664 # This must work even if \$libdir does not exist
21665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21666
21667 # Whether we need a single "-rpath" flag with a separated argument.
21668 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21669
21670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21671 # DIR into the resulting binary.
21672 hardcode_direct=$hardcode_direct
21673
21674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21675 # DIR into the resulting binary and the resulting library dependency is
21676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21677 # library is relocated.
21678 hardcode_direct_absolute=$hardcode_direct_absolute
21679
21680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21681 # into the resulting binary.
21682 hardcode_minus_L=$hardcode_minus_L
21683
21684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21685 # into the resulting binary.
21686 hardcode_shlibpath_var=$hardcode_shlibpath_var
21687
21688 # Set to "yes" if building a shared library automatically hardcodes DIR
21689 # into the library and all subsequent libraries and executables linked
21690 # against it.
21691 hardcode_automatic=$hardcode_automatic
21692
21693 # Set to yes if linker adds runtime paths of dependent libraries
21694 # to runtime path list.
21695 inherit_rpath=$inherit_rpath
21696
21697 # Whether libtool must link a program against all its dependency libraries.
21698 link_all_deplibs=$link_all_deplibs
21699
21700 # Set to "yes" if exported symbols are required.
21701 always_export_symbols=$always_export_symbols
21702
21703 # The commands to list exported symbols.
21704 export_symbols_cmds=$lt_export_symbols_cmds
21705
21706 # Symbols that should not be listed in the preloaded symbols.
21707 exclude_expsyms=$lt_exclude_expsyms
21708
21709 # Symbols that must always be exported.
21710 include_expsyms=$lt_include_expsyms
21711
21712 # Commands necessary for linking programs (against libraries) with templates.
21713 prelink_cmds=$lt_prelink_cmds
21714
21715 # Commands necessary for finishing linking programs.
21716 postlink_cmds=$lt_postlink_cmds
21717
21718 # Specify filename containing input files.
21719 file_list_spec=$lt_file_list_spec
21720
21721 # How to hardcode a shared library path into an executable.
21722 hardcode_action=$hardcode_action
21723
21724 # ### END LIBTOOL CONFIG
21725
21726 _LT_EOF
21727
21728   case $host_os in
21729   aix3*)
21730     cat <<\_LT_EOF >> "$cfgfile"
21731 # AIX sometimes has problems with the GCC collect2 program.  For some
21732 # reason, if we set the COLLECT_NAMES environment variable, the problems
21733 # vanish in a puff of smoke.
21734 if test "X${COLLECT_NAMES+set}" != Xset; then
21735   COLLECT_NAMES=
21736   export COLLECT_NAMES
21737 fi
21738 _LT_EOF
21739     ;;
21740   esac
21741
21742
21743 ltmain="$ac_aux_dir/ltmain.sh"
21744
21745
21746   # We use sed instead of cat because bash on DJGPP gets confused if
21747   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21748   # text mode, it properly converts lines to CR/LF.  This bash problem
21749   # is reportedly fixed, but why not run on old versions too?
21750   sed '$q' "$ltmain" >> "$cfgfile" \
21751      || (rm -f "$cfgfile"; exit 1)
21752
21753   if test x"$xsi_shell" = xyes; then
21754   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21755 func_dirname ()\
21756 {\
21757 \    case ${1} in\
21758 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21759 \      *  ) func_dirname_result="${3}" ;;\
21760 \    esac\
21761 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21762   && mv -f "$cfgfile.tmp" "$cfgfile" \
21763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21764 test 0 -eq $? || _lt_function_replace_fail=:
21765
21766
21767   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21768 func_basename ()\
21769 {\
21770 \    func_basename_result="${1##*/}"\
21771 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21772   && mv -f "$cfgfile.tmp" "$cfgfile" \
21773     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21774 test 0 -eq $? || _lt_function_replace_fail=:
21775
21776
21777   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21778 func_dirname_and_basename ()\
21779 {\
21780 \    case ${1} in\
21781 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21782 \      *  ) func_dirname_result="${3}" ;;\
21783 \    esac\
21784 \    func_basename_result="${1##*/}"\
21785 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21786   && mv -f "$cfgfile.tmp" "$cfgfile" \
21787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21788 test 0 -eq $? || _lt_function_replace_fail=:
21789
21790
21791   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21792 func_stripname ()\
21793 {\
21794 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21795 \    # positional parameters, so assign one to ordinary parameter first.\
21796 \    func_stripname_result=${3}\
21797 \    func_stripname_result=${func_stripname_result#"${1}"}\
21798 \    func_stripname_result=${func_stripname_result%"${2}"}\
21799 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21800   && mv -f "$cfgfile.tmp" "$cfgfile" \
21801     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21802 test 0 -eq $? || _lt_function_replace_fail=:
21803
21804
21805   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21806 func_split_long_opt ()\
21807 {\
21808 \    func_split_long_opt_name=${1%%=*}\
21809 \    func_split_long_opt_arg=${1#*=}\
21810 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21811   && mv -f "$cfgfile.tmp" "$cfgfile" \
21812     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21813 test 0 -eq $? || _lt_function_replace_fail=:
21814
21815
21816   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21817 func_split_short_opt ()\
21818 {\
21819 \    func_split_short_opt_arg=${1#??}\
21820 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21821 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21822   && mv -f "$cfgfile.tmp" "$cfgfile" \
21823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21824 test 0 -eq $? || _lt_function_replace_fail=:
21825
21826
21827   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21828 func_lo2o ()\
21829 {\
21830 \    case ${1} in\
21831 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21832 \      *)    func_lo2o_result=${1} ;;\
21833 \    esac\
21834 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21835   && mv -f "$cfgfile.tmp" "$cfgfile" \
21836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21837 test 0 -eq $? || _lt_function_replace_fail=:
21838
21839
21840   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21841 func_xform ()\
21842 {\
21843     func_xform_result=${1%.*}.lo\
21844 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21845   && mv -f "$cfgfile.tmp" "$cfgfile" \
21846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21847 test 0 -eq $? || _lt_function_replace_fail=:
21848
21849
21850   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21851 func_arith ()\
21852 {\
21853     func_arith_result=$(( $* ))\
21854 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21855   && mv -f "$cfgfile.tmp" "$cfgfile" \
21856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21857 test 0 -eq $? || _lt_function_replace_fail=:
21858
21859
21860   sed -e '/^func_len ()$/,/^} # func_len /c\
21861 func_len ()\
21862 {\
21863     func_len_result=${#1}\
21864 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21865   && mv -f "$cfgfile.tmp" "$cfgfile" \
21866     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21867 test 0 -eq $? || _lt_function_replace_fail=:
21868
21869 fi
21870
21871 if test x"$lt_shell_append" = xyes; then
21872   sed -e '/^func_append ()$/,/^} # func_append /c\
21873 func_append ()\
21874 {\
21875     eval "${1}+=\\${2}"\
21876 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21877   && mv -f "$cfgfile.tmp" "$cfgfile" \
21878     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21879 test 0 -eq $? || _lt_function_replace_fail=:
21880
21881
21882   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21883 func_append_quoted ()\
21884 {\
21885 \    func_quote_for_eval "${2}"\
21886 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21887 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21888   && mv -f "$cfgfile.tmp" "$cfgfile" \
21889     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21890 test 0 -eq $? || _lt_function_replace_fail=:
21891
21892
21893   # Save a `func_append' function call where possible by direct use of '+='
21894   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21895     && mv -f "$cfgfile.tmp" "$cfgfile" \
21896       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21897   test 0 -eq $? || _lt_function_replace_fail=:
21898 else
21899   # Save a `func_append' function call even when '+=' is not available
21900   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21901     && mv -f "$cfgfile.tmp" "$cfgfile" \
21902       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21903   test 0 -eq $? || _lt_function_replace_fail=:
21904 fi
21905
21906 if test x"$_lt_function_replace_fail" = x":"; then
21907   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21908 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21909 fi
21910
21911
21912    mv -f "$cfgfile" "$ofile" ||
21913     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21914   chmod +x "$ofile"
21915
21916  ;;
21917     "po/stamp-it":C)
21918     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21919        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21920     fi
21921     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21922     >"po/stamp-it.tmp"
21923     sed '/^#/d
21924          s/^[[].*] *//
21925          /^[    ]*$/d
21926         '"s|^|  $ac_top_srcdir/|" \
21927       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21928
21929     sed '/^POTFILES =/,/[^\\]$/ {
21930                 /^POTFILES =/!d
21931                 r po/POTFILES
21932           }
21933          ' "po/Makefile.in" >"po/Makefile"
21934     rm -f "po/Makefile.tmp"
21935     mv "po/stamp-it.tmp" "po/stamp-it"
21936    ;;
21937
21938   esac
21939 done # for ac_tag
21940
21941
21942 as_fn_exit 0
21943 _ACEOF
21944 ac_clean_files=$ac_clean_files_save
21945
21946 test $ac_write_fail = 0 ||
21947   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21948
21949
21950 # configure is writing to config.log, and then calls config.status.
21951 # config.status does its own redirection, appending to config.log.
21952 # Unfortunately, on DOS this fails, as config.log is still kept open
21953 # by configure, so config.status won't be able to write to it; its
21954 # output is simply discarded.  So we exec the FD to /dev/null,
21955 # effectively closing config.log, so it can be properly (re)opened and
21956 # appended to by config.status.  When coming back to configure, we
21957 # need to make the FD available again.
21958 if test "$no_create" != yes; then
21959   ac_cs_success=:
21960   ac_config_status_args=
21961   test "$silent" = yes &&
21962     ac_config_status_args="$ac_config_status_args --quiet"
21963   exec 5>/dev/null
21964   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21965   exec 5>>config.log
21966   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21967   # would make configure fail if this is the last instruction.
21968   $ac_cs_success || as_fn_exit 1
21969 fi
21970 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21971   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21972 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21973 fi
21974
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21976 Build options:
21977   Version                   $IBUS_VERSION
21978   Install prefix            $prefix
21979   Build shared libs         $enable_shared
21980   Build static libs         $enable_static
21981   CFLAGS                    $CFLAGS
21982   Gtk2 immodule dir         $GTK2_IM_MODULEDIR
21983   Gtk3 immodule dir         $GTK3_IM_MODULEDIR
21984   Build gtk2 immodule       $enable_gtk2
21985   Build gtk3 immodule       $enable_gtk3
21986   Build XIM agent server    $enable_xim
21987   Build wayland support     $enable_wayland
21988   Build python library      $enable_python_library
21989   Build gconf modules       $enable_gconf
21990   Build memconf modules     $enable_memconf
21991   Build dconf modules       $enable_dconf
21992   Build introspection       $found_introspection
21993   IBus-1.0.gir scannerflags \"$IBUS_GIR_SCANNERFLAGS\"
21994   Build vala binding        $enable_vala
21995   Build document            $enable_gtk_doc
21996   Build UI                  $enable_ui
21997   Build engine              $enable_engine
21998   Enable key snooper        $enable_key_snooper
21999   No snooper regexes        \"$NO_SNOOPER_APPS\"
22000   Panel icon                \"$IBUS_ICON_KEYBOARD\"
22001   Enable surrounding-text   $enable_surrounding_text
22002   Enable libnotify          $enable_libnotify
22003   Run test cases            $enable_tests
22004 " >&5
22005 $as_echo "
22006 Build options:
22007   Version                   $IBUS_VERSION
22008   Install prefix            $prefix
22009   Build shared libs         $enable_shared
22010   Build static libs         $enable_static
22011   CFLAGS                    $CFLAGS
22012   Gtk2 immodule dir         $GTK2_IM_MODULEDIR
22013   Gtk3 immodule dir         $GTK3_IM_MODULEDIR
22014   Build gtk2 immodule       $enable_gtk2
22015   Build gtk3 immodule       $enable_gtk3
22016   Build XIM agent server    $enable_xim
22017   Build wayland support     $enable_wayland
22018   Build python library      $enable_python_library
22019   Build gconf modules       $enable_gconf
22020   Build memconf modules     $enable_memconf
22021   Build dconf modules       $enable_dconf
22022   Build introspection       $found_introspection
22023   IBus-1.0.gir scannerflags \"$IBUS_GIR_SCANNERFLAGS\"
22024   Build vala binding        $enable_vala
22025   Build document            $enable_gtk_doc
22026   Build UI                  $enable_ui
22027   Build engine              $enable_engine
22028   Enable key snooper        $enable_key_snooper
22029   No snooper regexes        \"$NO_SNOOPER_APPS\"
22030   Panel icon                \"$IBUS_ICON_KEYBOARD\"
22031   Enable surrounding-text   $enable_surrounding_text
22032   Enable libnotify          $enable_libnotify
22033   Run test cases            $enable_tests
22034 " >&6; }
22035