added missing build file
[prss.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for prss 0.0.x.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
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   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='prss'
582 PACKAGE_TARNAME='prss'
583 PACKAGE_VERSION='0.0.x'
584 PACKAGE_STRING='prss 0.0.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/prss'
587
588 ac_unique_file="src/main.c"
589 gt_needs=
590 ac_subst_vars='am__EXEEXT_FALSE
591 am__EXEEXT_TRUE
592 LTLIBOBJS
593 LIBOBJS
594 CPPCHECK_FALSE
595 CPPCHECK_TRUE
596 HAVE_CPPCHECK
597 HELP2MAN
598 PTHREAD_LIBS
599 WEBKIT_LIBS
600 WEBKIT_CFLAGS
601 GSETTINGS_RULES
602 GLIB_COMPILE_SCHEMAS
603 gsettingsschemadir
604 GSETTINGS_DISABLE_SCHEMAS_COMPILE
605 JSON_LIBS
606 JSON_CFLAGS
607 CURL_LIBS
608 CURL_CFLAGS
609 GTK_LIBS
610 GTK_CFLAGS
611 XEXT_LIBS
612 XEXT_CFLAGS
613 X11_LIBS
614 X11_CFLAGS
615 PKG_CONFIG_LIBDIR
616 PKG_CONFIG_PATH
617 PKG_CONFIG
618 POSUB
619 LTLIBINTL
620 LIBINTL
621 INTLLIBS
622 LTLIBICONV
623 LIBICONV
624 INTL_MACOSX_LIBS
625 EGREP
626 GREP
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 XGETTEXT_EXTRA_OPTIONS
636 MSGMERGE
637 XGETTEXT_015
638 XGETTEXT
639 GMSGFMT_015
640 MSGFMT_015
641 GMSGFMT
642 MSGFMT
643 GETTEXT_MACRO_VERSION
644 USE_NLS
645 SED
646 CPP
647 XMKMF
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 AM_BACKSLASH
666 AM_DEFAULT_VERBOSITY
667 AM_DEFAULT_V
668 AM_V
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
674 AWK
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_silent_rules
734 enable_dependency_tracking
735 with_x
736 enable_nls
737 with_gnu_ld
738 enable_rpath
739 with_libiconv_prefix
740 with_libintl_prefix
741 enable_schemas_compile
742 '
743       ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 XMKMF
752 CPP
753 PKG_CONFIG
754 PKG_CONFIG_PATH
755 PKG_CONFIG_LIBDIR
756 X11_CFLAGS
757 X11_LIBS
758 XEXT_CFLAGS
759 XEXT_LIBS
760 GTK_CFLAGS
761 GTK_LIBS
762 CURL_CFLAGS
763 CURL_LIBS
764 JSON_CFLAGS
765 JSON_LIBS
766 WEBKIT_CFLAGS
767 WEBKIT_LIBS'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822   # If the previous option needs an argument, assign it.
823   if test -n "$ac_prev"; then
824     eval $ac_prev=\$ac_option
825     ac_prev=
826     continue
827   fi
828
829   case $ac_option in
830   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831   *=)   ac_optarg= ;;
832   *)    ac_optarg=yes ;;
833   esac
834
835   # Accept the important Cygnus configure options, so we can diagnose typos.
836
837   case $ac_dashdash$ac_option in
838   --)
839     ac_dashdash=yes ;;
840
841   -bindir | --bindir | --bindi | --bind | --bin | --bi)
842     ac_prev=bindir ;;
843   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844     bindir=$ac_optarg ;;
845
846   -build | --build | --buil | --bui | --bu)
847     ac_prev=build_alias ;;
848   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849     build_alias=$ac_optarg ;;
850
851   -cache-file | --cache-file | --cache-fil | --cache-fi \
852   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853     ac_prev=cache_file ;;
854   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856     cache_file=$ac_optarg ;;
857
858   --config-cache | -C)
859     cache_file=config.cache ;;
860
861   -datadir | --datadir | --datadi | --datad)
862     ac_prev=datadir ;;
863   -datadir=* | --datadir=* | --datadi=* | --datad=*)
864     datadir=$ac_optarg ;;
865
866   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867   | --dataroo | --dataro | --datar)
868     ac_prev=datarootdir ;;
869   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871     datarootdir=$ac_optarg ;;
872
873   -disable-* | --disable-*)
874     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875     # Reject names that are not valid shell variable names.
876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877       as_fn_error $? "invalid feature name: $ac_useropt"
878     ac_useropt_orig=$ac_useropt
879     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880     case $ac_user_opts in
881       *"
882 "enable_$ac_useropt"
883 "*) ;;
884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885          ac_unrecognized_sep=', ';;
886     esac
887     eval enable_$ac_useropt=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=\$ac_optarg ;;
914
915   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917   | --exec | --exe | --ex)
918     ac_prev=exec_prefix ;;
919   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921   | --exec=* | --exe=* | --ex=*)
922     exec_prefix=$ac_optarg ;;
923
924   -gas | --gas | --ga | --g)
925     # Obsolete; use --with-gas.
926     with_gas=yes ;;
927
928   -help | --help | --hel | --he | -h)
929     ac_init_help=long ;;
930   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931     ac_init_help=recursive ;;
932   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933     ac_init_help=short ;;
934
935   -host | --host | --hos | --ho)
936     ac_prev=host_alias ;;
937   -host=* | --host=* | --hos=* | --ho=*)
938     host_alias=$ac_optarg ;;
939
940   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941     ac_prev=htmldir ;;
942   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943   | --ht=*)
944     htmldir=$ac_optarg ;;
945
946   -includedir | --includedir | --includedi | --included | --include \
947   | --includ | --inclu | --incl | --inc)
948     ac_prev=includedir ;;
949   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950   | --includ=* | --inclu=* | --incl=* | --inc=*)
951     includedir=$ac_optarg ;;
952
953   -infodir | --infodir | --infodi | --infod | --info | --inf)
954     ac_prev=infodir ;;
955   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956     infodir=$ac_optarg ;;
957
958   -libdir | --libdir | --libdi | --libd)
959     ac_prev=libdir ;;
960   -libdir=* | --libdir=* | --libdi=* | --libd=*)
961     libdir=$ac_optarg ;;
962
963   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964   | --libexe | --libex | --libe)
965     ac_prev=libexecdir ;;
966   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967   | --libexe=* | --libex=* | --libe=*)
968     libexecdir=$ac_optarg ;;
969
970   -localedir | --localedir | --localedi | --localed | --locale)
971     ac_prev=localedir ;;
972   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973     localedir=$ac_optarg ;;
974
975   -localstatedir | --localstatedir | --localstatedi | --localstated \
976   | --localstate | --localstat | --localsta | --localst | --locals)
977     ac_prev=localstatedir ;;
978   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980     localstatedir=$ac_optarg ;;
981
982   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983     ac_prev=mandir ;;
984   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985     mandir=$ac_optarg ;;
986
987   -nfp | --nfp | --nf)
988     # Obsolete; use --without-fp.
989     with_fp=no ;;
990
991   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992   | --no-cr | --no-c | -n)
993     no_create=yes ;;
994
995   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997     no_recursion=yes ;;
998
999   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001   | --oldin | --oldi | --old | --ol | --o)
1002     ac_prev=oldincludedir ;;
1003   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006     oldincludedir=$ac_optarg ;;
1007
1008   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009     ac_prev=prefix ;;
1010   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011     prefix=$ac_optarg ;;
1012
1013   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014   | --program-pre | --program-pr | --program-p)
1015     ac_prev=program_prefix ;;
1016   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018     program_prefix=$ac_optarg ;;
1019
1020   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021   | --program-suf | --program-su | --program-s)
1022     ac_prev=program_suffix ;;
1023   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025     program_suffix=$ac_optarg ;;
1026
1027   -program-transform-name | --program-transform-name \
1028   | --program-transform-nam | --program-transform-na \
1029   | --program-transform-n | --program-transform- \
1030   | --program-transform | --program-transfor \
1031   | --program-transfo | --program-transf \
1032   | --program-trans | --program-tran \
1033   | --progr-tra | --program-tr | --program-t)
1034     ac_prev=program_transform_name ;;
1035   -program-transform-name=* | --program-transform-name=* \
1036   | --program-transform-nam=* | --program-transform-na=* \
1037   | --program-transform-n=* | --program-transform-=* \
1038   | --program-transform=* | --program-transfor=* \
1039   | --program-transfo=* | --program-transf=* \
1040   | --program-trans=* | --program-tran=* \
1041   | --progr-tra=* | --program-tr=* | --program-t=*)
1042     program_transform_name=$ac_optarg ;;
1043
1044   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045     ac_prev=pdfdir ;;
1046   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047     pdfdir=$ac_optarg ;;
1048
1049   -psdir | --psdir | --psdi | --psd | --ps)
1050     ac_prev=psdir ;;
1051   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052     psdir=$ac_optarg ;;
1053
1054   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055   | -silent | --silent | --silen | --sile | --sil)
1056     silent=yes ;;
1057
1058   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059     ac_prev=sbindir ;;
1060   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061   | --sbi=* | --sb=*)
1062     sbindir=$ac_optarg ;;
1063
1064   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066   | --sharedst | --shareds | --shared | --share | --shar \
1067   | --sha | --sh)
1068     ac_prev=sharedstatedir ;;
1069   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072   | --sha=* | --sh=*)
1073     sharedstatedir=$ac_optarg ;;
1074
1075   -site | --site | --sit)
1076     ac_prev=site ;;
1077   -site=* | --site=* | --sit=*)
1078     site=$ac_optarg ;;
1079
1080   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081     ac_prev=srcdir ;;
1082   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083     srcdir=$ac_optarg ;;
1084
1085   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086   | --syscon | --sysco | --sysc | --sys | --sy)
1087     ac_prev=sysconfdir ;;
1088   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090     sysconfdir=$ac_optarg ;;
1091
1092   -target | --target | --targe | --targ | --tar | --ta | --t)
1093     ac_prev=target_alias ;;
1094   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095     target_alias=$ac_optarg ;;
1096
1097   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098     verbose=yes ;;
1099
1100   -version | --version | --versio | --versi | --vers | -V)
1101     ac_init_version=: ;;
1102
1103   -with-* | --with-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       as_fn_error $? "invalid package name: $ac_useropt"
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=no ;;
1134
1135   --x)
1136     # Obsolete; use --with-x.
1137     with_x=yes ;;
1138
1139   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140   | --x-incl | --x-inc | --x-in | --x-i)
1141     ac_prev=x_includes ;;
1142   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144     x_includes=$ac_optarg ;;
1145
1146   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148     ac_prev=x_libraries ;;
1149   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151     x_libraries=$ac_optarg ;;
1152
1153   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     case $ac_envvar in #(
1161       '' | [0-9]* | *[!_$as_cr_alnum]* )
1162       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163     esac
1164     eval $ac_envvar=\$ac_optarg
1165     export $ac_envvar ;;
1166
1167   *)
1168     # FIXME: should be removed in autoconf 3.0.
1169     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173     ;;
1174
1175   esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180   as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184   case $enable_option_checking in
1185     no) ;;
1186     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188   esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193                 datadir sysconfdir sharedstatedir localstatedir includedir \
1194                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195                 libdir localedir mandir
1196 do
1197   eval ac_val=\$$ac_var
1198   # Remove trailing slashes.
1199   case $ac_val in
1200     */ )
1201       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202       eval $ac_var=\$ac_val;;
1203   esac
1204   # Be sure to have absolute directory names.
1205   case $ac_val in
1206     [\\/$]* | ?:[\\/]* )  continue;;
1207     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208   esac
1209   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221   if test "x$build_alias" = x; then
1222     cross_compiling=maybe
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239   as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244   ac_srcdir_defaulted=yes
1245   # Try the directory containing this script, then the parent directory.
1246   ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248          X"$as_myself" : 'X\(//\)[^/]' \| \
1249          X"$as_myself" : 'X\(//\)$' \| \
1250          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)[^/].*/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\).*/{
1265             s//\1/
1266             q
1267           }
1268           s/.*/./; q'`
1269   srcdir=$ac_confdir
1270   if test ! -r "$srcdir/$ac_unique_file"; then
1271     srcdir=..
1272   fi
1273 else
1274   ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283         pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286   srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_env_${ac_var}_value=\$${ac_var}
1297   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305   # Omit some internal or obsolete options to make the list less imposing.
1306   # This message is too long to be a string in the A/UX 3.1 sh.
1307   cat <<_ACEOF
1308 \`configure' configures prss 0.0.x to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE.  See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318   -h, --help              display this help and exit
1319       --help=short        display options specific to this package
1320       --help=recursive    display the short help of all the included packages
1321   -V, --version           display version information and exit
1322   -q, --quiet, --silent   do not print \`checking ...' messages
1323       --cache-file=FILE   cache test results in FILE [disabled]
1324   -C, --config-cache      alias for \`--cache-file=config.cache'
1325   -n, --no-create         do not create output files
1326       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329   --prefix=PREFIX         install architecture-independent files in PREFIX
1330                           [$ac_default_prefix]
1331   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1332                           [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342   --bindir=DIR            user executables [EPREFIX/bin]
1343   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1344   --libexecdir=DIR        program executables [EPREFIX/libexec]
1345   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1346   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1347   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1348   --libdir=DIR            object code libraries [EPREFIX/lib]
1349   --includedir=DIR        C header files [PREFIX/include]
1350   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1351   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1352   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1353   --infodir=DIR           info documentation [DATAROOTDIR/info]
1354   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1355   --mandir=DIR            man documentation [DATAROOTDIR/man]
1356   --docdir=DIR            documentation root [DATAROOTDIR/doc/prss]
1357   --htmldir=DIR           html documentation [DOCDIR]
1358   --dvidir=DIR            dvi documentation [DOCDIR]
1359   --pdfdir=DIR            pdf documentation [DOCDIR]
1360   --psdir=DIR             ps documentation [DOCDIR]
1361 _ACEOF
1362
1363   cat <<\_ACEOF
1364
1365 Program names:
1366   --program-prefix=PREFIX            prepend PREFIX to installed program names
1367   --program-suffix=SUFFIX            append SUFFIX to installed program names
1368   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1369
1370 X features:
1371   --x-includes=DIR    X include files are in DIR
1372   --x-libraries=DIR   X library files are in DIR
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381   case $ac_init_help in
1382      short | recursive ) echo "Configuration of prss 0.0.x:";;
1383    esac
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-option-checking  ignore unrecognized --enable/--with options
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-silent-rules   less verbose build output (undo: "make V=1")
1391   --disable-silent-rules  verbose build output (undo: "make V=0")
1392   --enable-dependency-tracking
1393                           do not reject slow dependency extractors
1394   --disable-dependency-tracking
1395                           speeds up one-time build
1396   --disable-nls           do not use Native Language Support
1397   --disable-rpath         do not hardcode runtime library paths
1398   --disable-schemas-compile
1399                           Disable regeneration of gschemas.compiled on install
1400
1401 Optional Packages:
1402   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404   --with-x                use the X Window System
1405   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1406   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1407   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1408   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1409   --without-libintl-prefix     don't search for libintl in includedir and libdir
1410
1411 Some influential environment variables:
1412   CC          C compiler command
1413   CFLAGS      C compiler flags
1414   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1415               nonstandard directory <lib dir>
1416   LIBS        libraries to pass to the linker, e.g. -l<library>
1417   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1418               you have headers in a nonstandard directory <include dir>
1419   XMKMF       Path to xmkmf, Makefile generator for X Window System
1420   CPP         C preprocessor
1421   PKG_CONFIG  path to pkg-config utility
1422   PKG_CONFIG_PATH
1423               directories to add to pkg-config's search path
1424   PKG_CONFIG_LIBDIR
1425               path overriding pkg-config's built-in search path
1426   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1427   X11_LIBS    linker flags for X11, overriding pkg-config
1428   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1429   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1430   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1431   GTK_LIBS    linker flags for GTK, overriding pkg-config
1432   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1433   CURL_LIBS   linker flags for CURL, overriding pkg-config
1434   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1435   JSON_LIBS   linker flags for JSON, overriding pkg-config
1436   WEBKIT_CFLAGS
1437               C compiler flags for WEBKIT, overriding pkg-config
1438   WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1439
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1442
1443 Report bugs to <jeanfi@gmail.com>.
1444 prss home page: <http://wpitchoune.net/prss>.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450   # If there are subdirs, report their specific --help.
1451   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452     test -d "$ac_dir" ||
1453       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454       continue
1455     ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461   # A ".." for each directory in $ac_dir_suffix.
1462   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463   case $ac_top_builddir_sub in
1464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466   esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474   .)  # We are building in place.
1475     ac_srcdir=.
1476     ac_top_srcdir=$ac_top_builddir_sub
1477     ac_abs_top_srcdir=$ac_pwd ;;
1478   [\\/]* | ?:[\\/]* )  # Absolute name.
1479     ac_srcdir=$srcdir$ac_dir_suffix;
1480     ac_top_srcdir=$srcdir
1481     ac_abs_top_srcdir=$srcdir ;;
1482   *) # Relative name.
1483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484     ac_top_srcdir=$ac_top_build_prefix$srcdir
1485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489     cd "$ac_dir" || { ac_status=$?; continue; }
1490     # Check for guested configure.
1491     if test -f "$ac_srcdir/configure.gnu"; then
1492       echo &&
1493       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494     elif test -f "$ac_srcdir/configure"; then
1495       echo &&
1496       $SHELL "$ac_srcdir/configure" --help=recursive
1497     else
1498       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499     fi || ac_status=$?
1500     cd "$ac_pwd" || { ac_status=$?; break; }
1501   done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506   cat <<\_ACEOF
1507 prss configure 0.0.x
1508 generated by GNU Autoconf 2.69
1509
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514   exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527   rm -f conftest.$ac_objext
1528   if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531   *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535   (eval "$ac_compile") 2>conftest.err
1536   ac_status=$?
1537   if test -s conftest.err; then
1538     grep -v '^ *+' conftest.err >conftest.er1
1539     cat conftest.er1 >&5
1540     mv -f conftest.er1 conftest.err
1541   fi
1542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543   test $ac_status = 0; } && {
1544          test -z "$ac_c_werror_flag" ||
1545          test ! -s conftest.err
1546        } && test -s conftest.$ac_objext; then :
1547   ac_retval=0
1548 else
1549   $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552         ac_retval=1
1553 fi
1554   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555   as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1563 {
1564   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565   if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } > conftest.i && {
1581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582          test ! -s conftest.err
1583        }; then :
1584   ac_retval=0
1585 else
1586   $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589     ac_retval=1
1590 fi
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_cpp
1595
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext conftest$ac_exeext
1603   if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_link") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest$ac_exeext && {
1622          test "$cross_compiling" = yes ||
1623          test -x conftest$ac_exeext
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634   # interfere with the next link command; also delete a directory that is
1635   # left behind by Apple's compiler.  We do this before executing the actions.
1636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_link
1641
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1646 ac_fn_c_try_run ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_link") 2>&5
1657   ac_status=$?
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660   { { case "(($ac_try" in
1661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662   *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666   (eval "$ac_try") 2>&5
1667   ac_status=$?
1668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669   test $ac_status = 0; }; }; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: program exited with status $ac_status" >&5
1673        $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676        ac_retval=$ac_status
1677 fi
1678   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680   as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_run
1683 cat >config.log <<_ACEOF
1684 This file contains any messages produced by compilers while
1685 running configure, to aid debugging if configure makes a mistake.
1686
1687 It was created by prss $as_me 0.0.x, which was
1688 generated by GNU Autoconf 2.69.  Invocation command line was
1689
1690   $ $0 $@
1691
1692 _ACEOF
1693 exec 5>>config.log
1694 {
1695 cat <<_ASUNAME
1696 ## --------- ##
1697 ## Platform. ##
1698 ## --------- ##
1699
1700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1708
1709 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1710 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1713 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1714 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1715 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1716
1717 _ASUNAME
1718
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724     $as_echo "PATH: $as_dir"
1725   done
1726 IFS=$as_save_IFS
1727
1728 } >&5
1729
1730 cat >&5 <<_ACEOF
1731
1732
1733 ## ----------- ##
1734 ## Core tests. ##
1735 ## ----------- ##
1736
1737 _ACEOF
1738
1739
1740 # Keep a trace of the command line.
1741 # Strip out --no-create and --no-recursion so they do not pile up.
1742 # Strip out --silent because we don't want to record it for future runs.
1743 # Also quote any args containing shell meta-characters.
1744 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_configure_args=
1746 ac_configure_args0=
1747 ac_configure_args1=
1748 ac_must_keep_next=false
1749 for ac_pass in 1 2
1750 do
1751   for ac_arg
1752   do
1753     case $ac_arg in
1754     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756     | -silent | --silent | --silen | --sile | --sil)
1757       continue ;;
1758     *\'*)
1759       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760     esac
1761     case $ac_pass in
1762     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1763     2)
1764       as_fn_append ac_configure_args1 " '$ac_arg'"
1765       if test $ac_must_keep_next = true; then
1766         ac_must_keep_next=false # Got value, back to normal.
1767       else
1768         case $ac_arg in
1769           *=* | --config-cache | -C | -disable-* | --disable-* \
1770           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772           | -with-* | --with-* | -without-* | --without-* | --x)
1773             case "$ac_configure_args0 " in
1774               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775             esac
1776             ;;
1777           -* ) ac_must_keep_next=true ;;
1778         esac
1779       fi
1780       as_fn_append ac_configure_args " '$ac_arg'"
1781       ;;
1782     esac
1783   done
1784 done
1785 { ac_configure_args0=; unset ac_configure_args0;}
1786 { ac_configure_args1=; unset ac_configure_args1;}
1787
1788 # When interrupted or exit'd, cleanup temporary files, and complete
1789 # config.log.  We remove comments because anyway the quotes in there
1790 # would cause problems or look ugly.
1791 # WARNING: Use '\'' to represent an apostrophe within the trap.
1792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793 trap 'exit_status=$?
1794   # Save into config.log some information that might help in debugging.
1795   {
1796     echo
1797
1798     $as_echo "## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##"
1801     echo
1802     # The following way of writing the cache mishandles newlines in values,
1803 (
1804   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1805     eval ac_val=\$$ac_var
1806     case $ac_val in #(
1807     *${as_nl}*)
1808       case $ac_var in #(
1809       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1811       esac
1812       case $ac_var in #(
1813       _ | IFS | as_nl) ;; #(
1814       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1815       *) { eval $ac_var=; unset $ac_var;} ;;
1816       esac ;;
1817     esac
1818   done
1819   (set) 2>&1 |
1820     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821     *${as_nl}ac_space=\ *)
1822       sed -n \
1823         "s/'\''/'\''\\\\'\'''\''/g;
1824           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825       ;; #(
1826     *)
1827       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828       ;;
1829     esac |
1830     sort
1831 )
1832     echo
1833
1834     $as_echo "## ----------------- ##
1835 ## Output variables. ##
1836 ## ----------------- ##"
1837     echo
1838     for ac_var in $ac_subst_vars
1839     do
1840       eval ac_val=\$$ac_var
1841       case $ac_val in
1842       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843       esac
1844       $as_echo "$ac_var='\''$ac_val'\''"
1845     done | sort
1846     echo
1847
1848     if test -n "$ac_subst_files"; then
1849       $as_echo "## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##"
1852       echo
1853       for ac_var in $ac_subst_files
1854       do
1855         eval ac_val=\$$ac_var
1856         case $ac_val in
1857         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858         esac
1859         $as_echo "$ac_var='\''$ac_val'\''"
1860       done | sort
1861       echo
1862     fi
1863
1864     if test -s confdefs.h; then
1865       $as_echo "## ----------- ##
1866 ## confdefs.h. ##
1867 ## ----------- ##"
1868       echo
1869       cat confdefs.h
1870       echo
1871     fi
1872     test "$ac_signal" != 0 &&
1873       $as_echo "$as_me: caught signal $ac_signal"
1874     $as_echo "$as_me: exit $exit_status"
1875   } >&5
1876   rm -f core *.core core.conftest.* &&
1877     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878     exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1882 done
1883 ac_signal=0
1884
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1887
1888 $as_echo "/* confdefs.h */" > confdefs.h
1889
1890 # Predefined preprocessor variables.
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 _ACEOF
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 _ACEOF
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_URL "$PACKAGE_URL"
1914 _ACEOF
1915
1916
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer an explicitly selected file to automatically selected ones.
1919 ac_site_file1=NONE
1920 ac_site_file2=NONE
1921 if test -n "$CONFIG_SITE"; then
1922   # We do not want a PATH search for config.site.
1923   case $CONFIG_SITE in #((
1924     -*)  ac_site_file1=./$CONFIG_SITE;;
1925     */*) ac_site_file1=$CONFIG_SITE;;
1926     *)   ac_site_file1=./$CONFIG_SITE;;
1927   esac
1928 elif test "x$prefix" != xNONE; then
1929   ac_site_file1=$prefix/share/config.site
1930   ac_site_file2=$prefix/etc/config.site
1931 else
1932   ac_site_file1=$ac_default_prefix/share/config.site
1933   ac_site_file2=$ac_default_prefix/etc/config.site
1934 fi
1935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1936 do
1937   test "x$ac_site_file" = xNONE && continue
1938   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1941     sed 's/^/| /' "$ac_site_file" >&5
1942     . "$ac_site_file" \
1943       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 as_fn_error $? "failed to load site script $ac_site_file
1946 See \`config.log' for more details" "$LINENO" 5; }
1947   fi
1948 done
1949
1950 if test -r "$cache_file"; then
1951   # Some versions of bash will fail to source /dev/null (special files
1952   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1953   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1955 $as_echo "$as_me: loading cache $cache_file" >&6;}
1956     case $cache_file in
1957       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958       *)                      . "./$cache_file";;
1959     esac
1960   fi
1961 else
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1963 $as_echo "$as_me: creating cache $cache_file" >&6;}
1964   >$cache_file
1965 fi
1966
1967 gt_needs="$gt_needs "
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         # differences in whitespace do not lead to failure.
1989         ac_old_val_w=`echo x $ac_old_val`
1990         ac_new_val_w=`echo x $ac_new_val`
1991         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994           ac_cache_corrupted=:
1995         else
1996           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998           eval $ac_var=\$ac_old_val
1999         fi
2000         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2001 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2002         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2004       fi;;
2005   esac
2006   # Pass precious variables to config.status.
2007   if test "$ac_new_set" = set; then
2008     case $ac_new_val in
2009     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010     *) ac_arg=$ac_var=$ac_new_val ;;
2011     esac
2012     case " $ac_configure_args " in
2013       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2014       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2015     esac
2016   fi
2017 done
2018 if $ac_cache_corrupted; then
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2024 fi
2025 ## -------------------- ##
2026 ## Main body of script. ##
2027 ## -------------------- ##
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036
2037 am__api_version='1.14'
2038
2039 ac_aux_dir=
2040 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2041   if test -f "$ac_dir/install-sh"; then
2042     ac_aux_dir=$ac_dir
2043     ac_install_sh="$ac_aux_dir/install-sh -c"
2044     break
2045   elif test -f "$ac_dir/install.sh"; then
2046     ac_aux_dir=$ac_dir
2047     ac_install_sh="$ac_aux_dir/install.sh -c"
2048     break
2049   elif test -f "$ac_dir/shtool"; then
2050     ac_aux_dir=$ac_dir
2051     ac_install_sh="$ac_aux_dir/shtool install -c"
2052     break
2053   fi
2054 done
2055 if test -z "$ac_aux_dir"; then
2056   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2057 fi
2058
2059 # These three variables are undocumented and unsupported,
2060 # and are intended to be withdrawn in a future Autoconf release.
2061 # They can cause serious problems if a builder's source tree is in a directory
2062 # whose full name contains unusual characters.
2063 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2064 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2065 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2066
2067
2068 # Find a good install program.  We prefer a C program (faster),
2069 # so one script is as good as another.  But avoid the broken or
2070 # incompatible versions:
2071 # SysV /etc/install, /usr/sbin/install
2072 # SunOS /usr/etc/install
2073 # IRIX /sbin/install
2074 # AIX /bin/install
2075 # AmigaOS /C/install, which installs bootblocks on floppy discs
2076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2079 # OS/2's system install, which has a completely different semantic
2080 # ./install, which can be erroneously created by make from ./install.sh.
2081 # Reject install programs that cannot install multiple files.
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2084 if test -z "$INSTALL"; then
2085 if ${ac_cv_path_install+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093     # Account for people who put trailing slashes in PATH elements.
2094 case $as_dir/ in #((
2095   ./ | .// | /[cC]/* | \
2096   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2097   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2098   /usr/ucb/* ) ;;
2099   *)
2100     # OSF1 and SCO ODT 3.0 have their own names for install.
2101     # Don't use installbsd from OSF since it installs stuff as root
2102     # by default.
2103     for ac_prog in ginstall scoinst install; do
2104       for ac_exec_ext in '' $ac_executable_extensions; do
2105         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2106           if test $ac_prog = install &&
2107             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2108             # AIX install.  It has an incompatible calling convention.
2109             :
2110           elif test $ac_prog = install &&
2111             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2112             # program-specific install script used by HP pwplus--don't use.
2113             :
2114           else
2115             rm -rf conftest.one conftest.two conftest.dir
2116             echo one > conftest.one
2117             echo two > conftest.two
2118             mkdir conftest.dir
2119             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2120               test -s conftest.one && test -s conftest.two &&
2121               test -s conftest.dir/conftest.one &&
2122               test -s conftest.dir/conftest.two
2123             then
2124               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2125               break 3
2126             fi
2127           fi
2128         fi
2129       done
2130     done
2131     ;;
2132 esac
2133
2134   done
2135 IFS=$as_save_IFS
2136
2137 rm -rf conftest.one conftest.two conftest.dir
2138
2139 fi
2140   if test "${ac_cv_path_install+set}" = set; then
2141     INSTALL=$ac_cv_path_install
2142   else
2143     # As a last resort, use the slow shell script.  Don't cache a
2144     # value for INSTALL within a source directory, because that will
2145     # break other packages using the cache if that directory is
2146     # removed, or if the value is a relative name.
2147     INSTALL=$ac_install_sh
2148   fi
2149 fi
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2151 $as_echo "$INSTALL" >&6; }
2152
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2156
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2158
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2160
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2162 $as_echo_n "checking whether build environment is sane... " >&6; }
2163 # Reject unsafe characters in $srcdir or the absolute working directory
2164 # name.  Accept space and tab only in the latter.
2165 am_lf='
2166 '
2167 case `pwd` in
2168   *[\\\"\#\$\&\'\`$am_lf]*)
2169     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2170 esac
2171 case $srcdir in
2172   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2173     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2174 esac
2175
2176 # Do 'set' in a subshell so we don't clobber the current shell's
2177 # arguments.  Must try -L first in case configure is actually a
2178 # symlink; some systems play weird games with the mod time of symlinks
2179 # (eg FreeBSD returns the mod time of the symlink's containing
2180 # directory).
2181 if (
2182    am_has_slept=no
2183    for am_try in 1 2; do
2184      echo "timestamp, slept: $am_has_slept" > conftest.file
2185      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2186      if test "$*" = "X"; then
2187         # -L didn't work.
2188         set X `ls -t "$srcdir/configure" conftest.file`
2189      fi
2190      if test "$*" != "X $srcdir/configure conftest.file" \
2191         && test "$*" != "X conftest.file $srcdir/configure"; then
2192
2193         # If neither matched, then we have a broken ls.  This can happen
2194         # if, for instance, CONFIG_SHELL is bash and it inherits a
2195         # broken ls alias from the environment.  This has actually
2196         # happened.  Such a system could not be considered "sane".
2197         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2198   alias in your environment" "$LINENO" 5
2199      fi
2200      if test "$2" = conftest.file || test $am_try -eq 2; then
2201        break
2202      fi
2203      # Just in case.
2204      sleep 1
2205      am_has_slept=yes
2206    done
2207    test "$2" = conftest.file
2208    )
2209 then
2210    # Ok.
2211    :
2212 else
2213    as_fn_error $? "newly created file is older than distributed files!
2214 Check your system clock" "$LINENO" 5
2215 fi
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2217 $as_echo "yes" >&6; }
2218 # If we didn't sleep, we still need to ensure time stamps of config.status and
2219 # generated files are strictly newer.
2220 am_sleep_pid=
2221 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2222   ( sleep 1 ) &
2223   am_sleep_pid=$!
2224 fi
2225
2226 rm -f conftest.file
2227
2228 test "$program_prefix" != NONE &&
2229   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $.
2234 # By default was `s,x,x', remove it if useless.
2235 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2236 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2237
2238 # expand $ac_aux_dir to an absolute path
2239 am_aux_dir=`cd $ac_aux_dir && pwd`
2240
2241 if test x"${MISSING+set}" != xset; then
2242   case $am_aux_dir in
2243   *\ * | *\     *)
2244     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2245   *)
2246     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2247   esac
2248 fi
2249 # Use eval to expand $SHELL
2250 if eval "$MISSING --is-lightweight"; then
2251   am_missing_run="$MISSING "
2252 else
2253   am_missing_run=
2254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2255 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2256 fi
2257
2258 if test x"${install_sh}" != xset; then
2259   case $am_aux_dir in
2260   *\ * | *\     *)
2261     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2262   *)
2263     install_sh="\${SHELL} $am_aux_dir/install-sh"
2264   esac
2265 fi
2266
2267 # Installed binaries are usually stripped using 'strip' when the user
2268 # run "make install-strip".  However 'strip' might not be the right
2269 # tool to use in cross-compilation environments, therefore Automake
2270 # will honor the 'STRIP' environment variable to overrule this program.
2271 if test "$cross_compiling" != no; then
2272   if test -n "$ac_tool_prefix"; then
2273   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}strip; ac_word=$2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if ${ac_cv_prog_STRIP+:} false; then :
2278   $as_echo_n "(cached) " >&6
2279 else
2280   if test -n "$STRIP"; then
2281   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288     for ac_exec_ext in '' $ac_executable_extensions; do
2289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295   done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 STRIP=$ac_cv_prog_STRIP
2301 if test -n "$STRIP"; then
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2303 $as_echo "$STRIP" >&6; }
2304 else
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2306 $as_echo "no" >&6; }
2307 fi
2308
2309
2310 fi
2311 if test -z "$ac_cv_prog_STRIP"; then
2312   ac_ct_STRIP=$STRIP
2313   # Extract the first word of "strip", so it can be a program name with args.
2314 set dummy strip; ac_word=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2318   $as_echo_n "(cached) " >&6
2319 else
2320   if test -n "$ac_ct_STRIP"; then
2321   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328     for ac_exec_ext in '' $ac_executable_extensions; do
2329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     ac_cv_prog_ac_ct_STRIP="strip"
2331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335   done
2336 IFS=$as_save_IFS
2337
2338 fi
2339 fi
2340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2341 if test -n "$ac_ct_STRIP"; then
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2343 $as_echo "$ac_ct_STRIP" >&6; }
2344 else
2345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2347 fi
2348
2349   if test "x$ac_ct_STRIP" = x; then
2350     STRIP=":"
2351   else
2352     case $cross_compiling:$ac_tool_warned in
2353 yes:)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2356 ac_tool_warned=yes ;;
2357 esac
2358     STRIP=$ac_ct_STRIP
2359   fi
2360 else
2361   STRIP="$ac_cv_prog_STRIP"
2362 fi
2363
2364 fi
2365 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2368 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2369 if test -z "$MKDIR_P"; then
2370   if ${ac_cv_path_mkdir+:} false; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378     for ac_prog in mkdir gmkdir; do
2379          for ac_exec_ext in '' $ac_executable_extensions; do
2380            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2381            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2382              'mkdir (GNU coreutils) '* | \
2383              'mkdir (coreutils) '* | \
2384              'mkdir (fileutils) '4.1*)
2385                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2386                break 3;;
2387            esac
2388          done
2389        done
2390   done
2391 IFS=$as_save_IFS
2392
2393 fi
2394
2395   test -d ./--version && rmdir ./--version
2396   if test "${ac_cv_path_mkdir+set}" = set; then
2397     MKDIR_P="$ac_cv_path_mkdir -p"
2398   else
2399     # As a last resort, use the slow shell script.  Don't cache a
2400     # value for MKDIR_P within a source directory, because that will
2401     # break other packages using the cache if that directory is
2402     # removed, or if the value is a relative name.
2403     MKDIR_P="$ac_install_sh -d"
2404   fi
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2407 $as_echo "$MKDIR_P" >&6; }
2408
2409 for ac_prog in gawk mawk nawk awk
2410 do
2411   # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if ${ac_cv_prog_AWK+:} false; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   if test -n "$AWK"; then
2419   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426     for ac_exec_ext in '' $ac_executable_extensions; do
2427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428     ac_cv_prog_AWK="$ac_prog"
2429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433   done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 AWK=$ac_cv_prog_AWK
2439 if test -n "$AWK"; then
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2441 $as_echo "$AWK" >&6; }
2442 else
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448   test -n "$AWK" && break
2449 done
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2453 set x ${MAKE-make}
2454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2455 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat >conftest.make <<\_ACEOF
2459 SHELL = /bin/sh
2460 all:
2461         @echo '@@@%%%=$(MAKE)=@@@%%%'
2462 _ACEOF
2463 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2465   *@@@%%%=?*=@@@%%%*)
2466     eval ac_cv_prog_make_${ac_make}_set=yes;;
2467   *)
2468     eval ac_cv_prog_make_${ac_make}_set=no;;
2469 esac
2470 rm -f conftest.make
2471 fi
2472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475   SET_MAKE=
2476 else
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479   SET_MAKE="MAKE=${MAKE-make}"
2480 fi
2481
2482 rm -rf .tst 2>/dev/null
2483 mkdir .tst 2>/dev/null
2484 if test -d .tst; then
2485   am__leading_dot=.
2486 else
2487   am__leading_dot=_
2488 fi
2489 rmdir .tst 2>/dev/null
2490
2491 # Check whether --enable-silent-rules was given.
2492 if test "${enable_silent_rules+set}" = set; then :
2493   enableval=$enable_silent_rules;
2494 fi
2495
2496 case $enable_silent_rules in # (((
2497   yes) AM_DEFAULT_VERBOSITY=0;;
2498    no) AM_DEFAULT_VERBOSITY=1;;
2499     *) AM_DEFAULT_VERBOSITY=1;;
2500 esac
2501 am_make=${MAKE-make}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2503 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2504 if ${am_cv_make_support_nested_variables+:} false; then :
2505   $as_echo_n "(cached) " >&6
2506 else
2507   if $as_echo 'TRUE=$(BAR$(V))
2508 BAR0=false
2509 BAR1=true
2510 V=1
2511 am__doit:
2512         @$(TRUE)
2513 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2514   am_cv_make_support_nested_variables=yes
2515 else
2516   am_cv_make_support_nested_variables=no
2517 fi
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2520 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2521 if test $am_cv_make_support_nested_variables = yes; then
2522     AM_V='$(V)'
2523   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2524 else
2525   AM_V=$AM_DEFAULT_VERBOSITY
2526   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2527 fi
2528 AM_BACKSLASH='\'
2529
2530 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532   # is not polluted with repeated "-I."
2533   am__isrc=' -I$(srcdir)'
2534   # test to see if srcdir already configured
2535   if test -f $srcdir/config.status; then
2536     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2537   fi
2538 fi
2539
2540 # test whether we have cygpath
2541 if test -z "$CYGPATH_W"; then
2542   if (cygpath --version) >/dev/null 2>/dev/null; then
2543     CYGPATH_W='cygpath -w'
2544   else
2545     CYGPATH_W=echo
2546   fi
2547 fi
2548
2549
2550 # Define the identity of the package.
2551  PACKAGE='prss'
2552  VERSION='0.0.x'
2553
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE "$PACKAGE"
2557 _ACEOF
2558
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define VERSION "$VERSION"
2562 _ACEOF
2563
2564 # Some tools Automake needs.
2565
2566 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2567
2568
2569 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2570
2571
2572 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2573
2574
2575 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2576
2577
2578 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2579
2580 # For better backward compatibility.  To be removed once Automake 1.9.x
2581 # dies out for good.  For more background, see:
2582 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2583 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2584 mkdir_p='$(MKDIR_P)'
2585
2586 # We need awk for the "check" target.  The system "awk" is bad on
2587 # some platforms.
2588 # Always define AMTAR for backward compatibility.  Yes, it's still used
2589 # in the wild :-(  We should find a proper way to deprecate it ...
2590 AMTAR='$${TAR-tar}'
2591
2592
2593 # We'll loop over all known methods to create a tar archive until one works.
2594 _am_tools='gnutar  pax cpio none'
2595
2596 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2597
2598
2599
2600
2601
2602
2603 # POSIX will say in a future version that running "rm -f" with no argument
2604 # is OK; and we want to be able to make that assumption in our Makefile
2605 # recipes.  So use an aggressive probe to check that the usage we want is
2606 # actually supported "in the wild" to an acceptable degree.
2607 # See automake bug#10828.
2608 # To make any issue more visible, cause the running configure to be aborted
2609 # by default if the 'rm' program in use doesn't match our expectations; the
2610 # user can still override this though.
2611 if rm -f && rm -fr && rm -rf; then : OK; else
2612   cat >&2 <<'END'
2613 Oops!
2614
2615 Your 'rm' program seems unable to run without file operands specified
2616 on the command line, even when the '-f' option is present.  This is contrary
2617 to the behaviour of most rm programs out there, and not conforming with
2618 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2619
2620 Please tell bug-automake@gnu.org about your system, including the value
2621 of your $PATH and any error possibly output before this message.  This
2622 can help us improve future automake versions.
2623
2624 END
2625   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2626     echo 'Configuration will proceed anyway, since you have set the' >&2
2627     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2628     echo >&2
2629   else
2630     cat >&2 <<'END'
2631 Aborting the configuration process, to ensure you take notice of the issue.
2632
2633 You can download and install GNU coreutils to get an 'rm' implementation
2634 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2635
2636 If you want to complete the configuration process using your problematic
2637 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2638 to "yes", and re-run configure.
2639
2640 END
2641     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2642   fi
2643 fi
2644
2645
2646 ac_config_headers="$ac_config_headers config.h"
2647
2648
2649 # Checks for programs.
2650 DEPDIR="${am__leading_dot}deps"
2651
2652 ac_config_commands="$ac_config_commands depfiles"
2653
2654
2655 am_make=${MAKE-make}
2656 cat > confinc << 'END'
2657 am__doit:
2658         @echo this is the am__doit target
2659 .PHONY: am__doit
2660 END
2661 # If we don't find an include directive, just comment out the code.
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2663 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2664 am__include="#"
2665 am__quote=
2666 _am_result=none
2667 # First try GNU make style include.
2668 echo "include confinc" > confmf
2669 # Ignore all kinds of additional output from 'make'.
2670 case `$am_make -s -f confmf 2> /dev/null` in #(
2671 *the\ am__doit\ target*)
2672   am__include=include
2673   am__quote=
2674   _am_result=GNU
2675   ;;
2676 esac
2677 # Now try BSD make style include.
2678 if test "$am__include" = "#"; then
2679    echo '.include "confinc"' > confmf
2680    case `$am_make -s -f confmf 2> /dev/null` in #(
2681    *the\ am__doit\ target*)
2682      am__include=.include
2683      am__quote="\""
2684      _am_result=BSD
2685      ;;
2686    esac
2687 fi
2688
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2691 $as_echo "$_am_result" >&6; }
2692 rm -f confinc confmf
2693
2694 # Check whether --enable-dependency-tracking was given.
2695 if test "${enable_dependency_tracking+set}" = set; then :
2696   enableval=$enable_dependency_tracking;
2697 fi
2698
2699 if test "x$enable_dependency_tracking" != xno; then
2700   am_depcomp="$ac_aux_dir/depcomp"
2701   AMDEPBACKSLASH='\'
2702   am__nodep='_no'
2703 fi
2704  if test "x$enable_dependency_tracking" != xno; then
2705   AMDEP_TRUE=
2706   AMDEP_FALSE='#'
2707 else
2708   AMDEP_TRUE='#'
2709   AMDEP_FALSE=
2710 fi
2711
2712
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_CC+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   if test -n "$CC"; then
2727   ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_exec_ext in '' $ac_executable_extensions; do
2735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741   done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758   ac_ct_CC=$CC
2759   # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   if test -n "$ac_ct_CC"; then
2767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774     for ac_exec_ext in '' $ac_executable_extensions; do
2775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776     ac_cv_prog_ac_ct_CC="gcc"
2777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2790 else
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795   if test "x$ac_ct_CC" = x; then
2796     CC=""
2797   else
2798     case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804     CC=$ac_ct_CC
2805   fi
2806 else
2807   CC="$ac_cv_prog_CC"
2808 fi
2809
2810 if test -z "$CC"; then
2811           if test -n "$ac_tool_prefix"; then
2812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     for ac_exec_ext in '' $ac_executable_extensions; do
2828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_CC="${ac_tool_prefix}cc"
2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834   done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849   fi
2850 fi
2851 if test -z "$CC"; then
2852   # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test -n "$CC"; then
2860   ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862   ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868     for ac_exec_ext in '' $ac_executable_extensions; do
2869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871        ac_prog_rejected=yes
2872        continue
2873      fi
2874     ac_cv_prog_CC="cc"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 if test $ac_prog_rejected = yes; then
2883   # We found a bogon in the path, so make sure we never use it.
2884   set dummy $ac_cv_prog_CC
2885   shift
2886   if test $# != 0; then
2887     # We chose a different compiler from the bogus one.
2888     # However, it has the same basename, so the bogon will be chosen
2889     # first if we set CC to just the basename; use the full file name.
2890     shift
2891     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892   fi
2893 fi
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$CC"; then
2908   if test -n "$ac_tool_prefix"; then
2909   for ac_prog in cl.exe
2910   do
2911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916   $as_echo_n "(cached) " >&6
2917 else
2918   if test -n "$CC"; then
2919   ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926     for ac_exec_ext in '' $ac_executable_extensions; do
2927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933   done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948     test -n "$CC" && break
2949   done
2950 fi
2951 if test -z "$CC"; then
2952   ac_ct_CC=$CC
2953   for ac_prog in cl.exe
2954 do
2955   # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$ac_ct_CC"; then
2963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972     ac_cv_prog_ac_ct_CC="$ac_prog"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992   test -n "$ac_ct_CC" && break
2993 done
2994
2995   if test "x$ac_ct_CC" = x; then
2996     CC=""
2997   else
2998     case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004     CC=$ac_ct_CC
3005   fi
3006 fi
3007
3008 fi
3009
3010
3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error $? "no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details" "$LINENO" 5; }
3015
3016 # Provide some information about the compiler.
3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3018 set X $ac_compile
3019 ac_compiler=$2
3020 for ac_option in --version -v -V -qversion; do
3021   { { ac_try="$ac_compiler $ac_option >&5"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029   ac_status=$?
3030   if test -s conftest.err; then
3031     sed '10a\
3032 ... rest of stderr output deleted ...
3033          10q' conftest.err >conftest.er1
3034     cat conftest.er1 >&5
3035   fi
3036   rm -f conftest.er1 conftest.err
3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038   test $ac_status = 0; }
3039 done
3040
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 ac_clean_files_save=$ac_clean_files
3053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3056 # of exeext.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3058 $as_echo_n "checking whether the C compiler works... " >&6; }
3059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060
3061 # The possible output files:
3062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3063
3064 ac_rmfiles=
3065 for ac_file in $ac_files
3066 do
3067   case $ac_file in
3068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3070   esac
3071 done
3072 rm -f $ac_rmfiles
3073
3074 if { { ac_try="$ac_link_default"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081   (eval "$ac_link_default") 2>&5
3082   ac_status=$?
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; }; then :
3085   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3087 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3088 # so that the user can short-circuit this test for compilers unknown to
3089 # Autoconf.
3090 for ac_file in $ac_files ''
3091 do
3092   test -f "$ac_file" || continue
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3095         ;;
3096     [ab].out )
3097         # We found the default executable, but exeext='' is most
3098         # certainly right.
3099         break;;
3100     *.* )
3101         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3102         then :; else
3103            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104         fi
3105         # We set ac_cv_exeext here because the later test for it is not
3106         # safe: cross compilers may not add the suffix if given an `-o'
3107         # argument, so we may need to know it at that point already.
3108         # Even if this section looks crufty: it has the advantage of
3109         # actually working.
3110         break;;
3111     * )
3112         break;;
3113   esac
3114 done
3115 test "$ac_cv_exeext" = no && ac_cv_exeext=
3116
3117 else
3118   ac_file=''
3119 fi
3120 if test -z "$ac_file"; then :
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error 77 "C compiler cannot create executables
3129 See \`config.log' for more details" "$LINENO" 5; }
3130 else
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3135 $as_echo_n "checking for C compiler default output file name... " >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3137 $as_echo "$ac_file" >&6; }
3138 ac_exeext=$ac_cv_exeext
3139
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3141 ac_clean_files=$ac_clean_files_save
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3143 $as_echo_n "checking for suffix of executables... " >&6; }
3144 if { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151   (eval "$ac_link") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154   test $ac_status = 0; }; then :
3155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3157 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 # `rm'.
3159 for ac_file in conftest.exe conftest conftest.*; do
3160   test -f "$ac_file" || continue
3161   case $ac_file in
3162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164           break;;
3165     * ) break;;
3166   esac
3167 done
3168 else
3169   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3172 See \`config.log' for more details" "$LINENO" 5; }
3173 fi
3174 rm -f conftest conftest$ac_cv_exeext
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3176 $as_echo "$ac_cv_exeext" >&6; }
3177
3178 rm -f conftest.$ac_ext
3179 EXEEXT=$ac_cv_exeext
3180 ac_exeext=$EXEEXT
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183 #include <stdio.h>
3184 int
3185 main ()
3186 {
3187 FILE *f = fopen ("conftest.out", "w");
3188  return ferror (f) || fclose (f) != 0;
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 ac_clean_files="$ac_clean_files conftest.out"
3195 # Check that the compiler produces executables we can run.  If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3198 $as_echo_n "checking whether we are cross compiling... " >&6; }
3199 if test "$cross_compiling" != yes; then
3200   { { ac_try="$ac_link"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207   (eval "$ac_link") 2>&5
3208   ac_status=$?
3209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210   test $ac_status = 0; }
3211   if { ac_try='./conftest$ac_cv_exeext'
3212   { { case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218   (eval "$ac_try") 2>&5
3219   ac_status=$?
3220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221   test $ac_status = 0; }; }; then
3222     cross_compiling=no
3223   else
3224     if test "$cross_compiling" = maybe; then
3225         cross_compiling=yes
3226     else
3227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error $? "cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details" "$LINENO" 5; }
3232     fi
3233   fi
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3236 $as_echo "$cross_compiling" >&6; }
3237
3238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3239 ac_clean_files=$ac_clean_files_save
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3241 $as_echo_n "checking for suffix of object files... " >&6; }
3242 if ${ac_cv_objext+:} false; then :
3243   $as_echo_n "(cached) " >&6
3244 else
3245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { { ac_try="$ac_compile"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_compile") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; then :
3268   for ac_file in conftest.o conftest.obj conftest.*; do
3269   test -f "$ac_file" || continue;
3270   case $ac_file in
3271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273        break;;
3274   esac
3275 done
3276 else
3277   $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot compute suffix of object files: cannot compile
3283 See \`config.log' for more details" "$LINENO" 5; }
3284 fi
3285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3288 $as_echo "$ac_cv_objext" >&6; }
3289 OBJEXT=$ac_cv_objext
3290 ac_objext=$OBJEXT
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3293 if ${ac_cv_c_compiler_gnu+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302 #ifndef __GNUC__
3303        choke me
3304 #endif
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311   ac_compiler_gnu=yes
3312 else
3313   ac_compiler_gnu=no
3314 fi
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3317
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3321 if test $ac_compiler_gnu = yes; then
3322   GCC=yes
3323 else
3324   GCC=
3325 fi
3326 ac_test_CFLAGS=${CFLAGS+set}
3327 ac_save_CFLAGS=$CFLAGS
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3330 if ${ac_cv_prog_cc_g+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   ac_save_c_werror_flag=$ac_c_werror_flag
3334    ac_c_werror_flag=yes
3335    ac_cv_prog_cc_g=no
3336    CFLAGS="-g"
3337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349   ac_cv_prog_cc_g=yes
3350 else
3351   CFLAGS=""
3352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364
3365 else
3366   ac_c_werror_flag=$ac_save_c_werror_flag
3367          CFLAGS="-g"
3368          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380   ac_cv_prog_cc_g=yes
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387    ac_c_werror_flag=$ac_save_c_werror_flag
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3390 $as_echo "$ac_cv_prog_cc_g" >&6; }
3391 if test "$ac_test_CFLAGS" = set; then
3392   CFLAGS=$ac_save_CFLAGS
3393 elif test $ac_cv_prog_cc_g = yes; then
3394   if test "$GCC" = yes; then
3395     CFLAGS="-g -O2"
3396   else
3397     CFLAGS="-g"
3398   fi
3399 else
3400   if test "$GCC" = yes; then
3401     CFLAGS="-O2"
3402   else
3403     CFLAGS=
3404   fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3408 if ${ac_cv_prog_cc_c89+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   ac_cv_prog_cc_c89=no
3412 ac_save_CC=$CC
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h.  */
3415 #include <stdarg.h>
3416 #include <stdio.h>
3417 struct stat;
3418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3419 struct buf { int x; };
3420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421 static char *e (p, i)
3422      char **p;
3423      int i;
3424 {
3425   return p[i];
3426 }
3427 static char *f (char * (*g) (char **, int), char **p, ...)
3428 {
3429   char *s;
3430   va_list v;
3431   va_start (v,p);
3432   s = g (p, va_arg (v,int));
3433   va_end (v);
3434   return s;
3435 }
3436
3437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3438    function prototypes and stuff, but not '\xHH' hex character constants.
3439    These don't provoke an error unfortunately, instead are silently treated
3440    as 'x'.  The following induces an error, until -std is added to get
3441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3442    array size at least.  It's necessary to write '\x00'==0 to get something
3443    that's true only with -std.  */
3444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445
3446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447    inside strings and character constants.  */
3448 #define FOO(x) 'x'
3449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455 int argc;
3456 char **argv;
3457 int
3458 main ()
3459 {
3460 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 do
3468   CC="$ac_save_CC $ac_arg"
3469   if ac_fn_c_try_compile "$LINENO"; then :
3470   ac_cv_prog_cc_c89=$ac_arg
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext
3473   test "x$ac_cv_prog_cc_c89" != "xno" && break
3474 done
3475 rm -f conftest.$ac_ext
3476 CC=$ac_save_CC
3477
3478 fi
3479 # AC_CACHE_VAL
3480 case "x$ac_cv_prog_cc_c89" in
3481   x)
3482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3483 $as_echo "none needed" >&6; } ;;
3484   xno)
3485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3486 $as_echo "unsupported" >&6; } ;;
3487   *)
3488     CC="$CC $ac_cv_prog_cc_c89"
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3491 esac
3492 if test "x$ac_cv_prog_cc_c89" != xno; then :
3493
3494 fi
3495
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3508 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3509 if ${am_cv_prog_cc_c_o+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523   # Make sure it works both with $CC and with simple cc.
3524   # Following AC_PROG_CC_C_O, we do the test twice because some
3525   # compilers refuse to overwrite an existing .o file with -o,
3526   # though they will create one.
3527   am_cv_prog_cc_c_o=yes
3528   for am_i in 1 2; do
3529     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3530    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3531    ac_status=$?
3532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533    (exit $ac_status); } \
3534          && test -f conftest2.$ac_objext; then
3535       : OK
3536     else
3537       am_cv_prog_cc_c_o=no
3538       break
3539     fi
3540   done
3541   rm -f core conftest*
3542   unset am_i
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3545 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3546 if test "$am_cv_prog_cc_c_o" != yes; then
3547    # Losing compiler, so override with the script.
3548    # FIXME: It is wrong to rewrite CC.
3549    # But if we don't then we get into trouble of one sort or another.
3550    # A longer-term fix would be to have automake use am__CC in this case,
3551    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3552    CC="$am_aux_dir/compile $CC"
3553 fi
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
3561 depcc="$CC"   am_compiler_list=
3562
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3564 $as_echo_n "checking dependency style of $depcc... " >&6; }
3565 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3569   # We make a subdir and do the tests there.  Otherwise we can end up
3570   # making bogus files that we don't know about and never remove.  For
3571   # instance it was reported that on HP-UX the gcc test will end up
3572   # making a dummy file named 'D' -- because '-MD' means "put the output
3573   # in D".
3574   rm -rf conftest.dir
3575   mkdir conftest.dir
3576   # Copy depcomp to subdir because otherwise we won't find it if we're
3577   # using a relative directory.
3578   cp "$am_depcomp" conftest.dir
3579   cd conftest.dir
3580   # We will build objects and dependencies in a subdirectory because
3581   # it helps to detect inapplicable dependency modes.  For instance
3582   # both Tru64's cc and ICC support -MD to output dependencies as a
3583   # side effect of compilation, but ICC will put the dependencies in
3584   # the current directory while Tru64 will put them in the object
3585   # directory.
3586   mkdir sub
3587
3588   am_cv_CC_dependencies_compiler_type=none
3589   if test "$am_compiler_list" = ""; then
3590      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591   fi
3592   am__universal=false
3593   case " $depcc " in #(
3594      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3595      esac
3596
3597   for depmode in $am_compiler_list; do
3598     # Setup a source with many dependencies, because some compilers
3599     # like to wrap large dependency lists on column 80 (with \), and
3600     # we should not choose a depcomp mode which is confused by this.
3601     #
3602     # We need to recreate these files for each test, as the compiler may
3603     # overwrite some of them when testing with obscure command lines.
3604     # This happens at least with the AIX C compiler.
3605     : > sub/conftest.c
3606     for i in 1 2 3 4 5 6; do
3607       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3609       # Solaris 10 /bin/sh.
3610       echo '/* dummy */' > sub/conftst$i.h
3611     done
3612     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3613
3614     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3615     # mode.  It turns out that the SunPro C++ compiler does not properly
3616     # handle '-M -o', and we need to detect this.  Also, some Intel
3617     # versions had trouble with output in subdirs.
3618     am__obj=sub/conftest.${OBJEXT-o}
3619     am__minus_obj="-o $am__obj"
3620     case $depmode in
3621     gcc)
3622       # This depmode causes a compiler race in universal mode.
3623       test "$am__universal" = false || continue
3624       ;;
3625     nosideeffect)
3626       # After this tag, mechanisms are not by side-effect, so they'll
3627       # only be used when explicitly requested.
3628       if test "x$enable_dependency_tracking" = xyes; then
3629         continue
3630       else
3631         break
3632       fi
3633       ;;
3634     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3635       # This compiler won't grok '-c -o', but also, the minuso test has
3636       # not run yet.  These depmodes are late enough in the game, and
3637       # so weak that their functioning should not be impacted.
3638       am__obj=conftest.${OBJEXT-o}
3639       am__minus_obj=
3640       ;;
3641     none) break ;;
3642     esac
3643     if depmode=$depmode \
3644        source=sub/conftest.c object=$am__obj \
3645        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3646        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3647          >/dev/null 2>conftest.err &&
3648        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3649        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3650        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3651        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3652       # icc doesn't choke on unknown options, it will just issue warnings
3653       # or remarks (even with -Werror).  So we grep stderr for any message
3654       # that says an option was ignored or not supported.
3655       # When given -MP, icc 7.0 and 7.1 complain thusly:
3656       #   icc: Command line warning: ignoring option '-M'; no argument required
3657       # The diagnosis changed in icc 8.0:
3658       #   icc: Command line remark: option '-MP' not supported
3659       if (grep 'ignoring option' conftest.err ||
3660           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3661         am_cv_CC_dependencies_compiler_type=$depmode
3662         break
3663       fi
3664     fi
3665   done
3666
3667   cd ..
3668   rm -rf conftest.dir
3669 else
3670   am_cv_CC_dependencies_compiler_type=none
3671 fi
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3675 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3676 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3677
3678  if
3679   test "x$enable_dependency_tracking" != xno \
3680   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3681   am__fastdepCC_TRUE=
3682   am__fastdepCC_FALSE='#'
3683 else
3684   am__fastdepCC_TRUE='#'
3685   am__fastdepCC_FALSE=
3686 fi
3687
3688
3689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3691 if ${ac_cv_prog_cc_c99+:} false; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_cv_prog_cc_c99=no
3695 ac_save_CC=$CC
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698 #include <stdarg.h>
3699 #include <stdbool.h>
3700 #include <stdlib.h>
3701 #include <wchar.h>
3702 #include <stdio.h>
3703
3704 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3705 #define debug(...) fprintf (stderr, __VA_ARGS__)
3706 #define showlist(...) puts (#__VA_ARGS__)
3707 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3708 static void
3709 test_varargs_macros (void)
3710 {
3711   int x = 1234;
3712   int y = 5678;
3713   debug ("Flag");
3714   debug ("X = %d\n", x);
3715   showlist (The first, second, and third items.);
3716   report (x>y, "x is %d but y is %d", x, y);
3717 }
3718
3719 // Check long long types.
3720 #define BIG64 18446744073709551615ull
3721 #define BIG32 4294967295ul
3722 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3723 #if !BIG_OK
3724   your preprocessor is broken;
3725 #endif
3726 #if BIG_OK
3727 #else
3728   your preprocessor is broken;
3729 #endif
3730 static long long int bignum = -9223372036854775807LL;
3731 static unsigned long long int ubignum = BIG64;
3732
3733 struct incomplete_array
3734 {
3735   int datasize;
3736   double data[];
3737 };
3738
3739 struct named_init {
3740   int number;
3741   const wchar_t *name;
3742   double average;
3743 };
3744
3745 typedef const char *ccp;
3746
3747 static inline int
3748 test_restrict (ccp restrict text)
3749 {
3750   // See if C++-style comments work.
3751   // Iterate through items via the restricted pointer.
3752   // Also check for declarations in for loops.
3753   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3754     continue;
3755   return 0;
3756 }
3757
3758 // Check varargs and va_copy.
3759 static void
3760 test_varargs (const char *format, ...)
3761 {
3762   va_list args;
3763   va_start (args, format);
3764   va_list args_copy;
3765   va_copy (args_copy, args);
3766
3767   const char *str;
3768   int number;
3769   float fnumber;
3770
3771   while (*format)
3772     {
3773       switch (*format++)
3774         {
3775         case 's': // string
3776           str = va_arg (args_copy, const char *);
3777           break;
3778         case 'd': // int
3779           number = va_arg (args_copy, int);
3780           break;
3781         case 'f': // float
3782           fnumber = va_arg (args_copy, double);
3783           break;
3784         default:
3785           break;
3786         }
3787     }
3788   va_end (args_copy);
3789   va_end (args);
3790 }
3791
3792 int
3793 main ()
3794 {
3795
3796   // Check bool.
3797   _Bool success = false;
3798
3799   // Check restrict.
3800   if (test_restrict ("String literal") == 0)
3801     success = true;
3802   char *restrict newvar = "Another string";
3803
3804   // Check varargs.
3805   test_varargs ("s, d' f .", "string", 65, 34.234);
3806   test_varargs_macros ();
3807
3808   // Check flexible array members.
3809   struct incomplete_array *ia =
3810     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3811   ia->datasize = 10;
3812   for (int i = 0; i < ia->datasize; ++i)
3813     ia->data[i] = i * 1.234;
3814
3815   // Check named initializers.
3816   struct named_init ni = {
3817     .number = 34,
3818     .name = L"Test wide string",
3819     .average = 543.34343,
3820   };
3821
3822   ni.number = 58;
3823
3824   int dynamic_array[ni.number];
3825   dynamic_array[ni.number - 1] = 543;
3826
3827   // work around unused variable warnings
3828   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3829           || dynamic_array[ni.number - 1] != 543);
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3836 do
3837   CC="$ac_save_CC $ac_arg"
3838   if ac_fn_c_try_compile "$LINENO"; then :
3839   ac_cv_prog_cc_c99=$ac_arg
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext
3842   test "x$ac_cv_prog_cc_c99" != "xno" && break
3843 done
3844 rm -f conftest.$ac_ext
3845 CC=$ac_save_CC
3846
3847 fi
3848 # AC_CACHE_VAL
3849 case "x$ac_cv_prog_cc_c99" in
3850   x)
3851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3852 $as_echo "none needed" >&6; } ;;
3853   xno)
3854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3855 $as_echo "unsupported" >&6; } ;;
3856   *)
3857     CC="$CC $ac_cv_prog_cc_c99"
3858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3859 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3860 esac
3861 if test "x$ac_cv_prog_cc_c99" != xno; then :
3862
3863 fi
3864
3865
3866
3867
3868 # Checks for header files.
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3877 # On Suns, sometimes $CPP names a directory.
3878 if test -n "$CPP" && test -d "$CPP"; then
3879   CPP=
3880 fi
3881 if test -z "$CPP"; then
3882   if ${ac_cv_prog_CPP+:} false; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885       # Double quotes because CPP needs to be expanded
3886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887     do
3888       ac_preproc_ok=false
3889 for ac_c_preproc_warn_flag in '' yes
3890 do
3891   # Use a header file that comes with gcc, so configuring glibc
3892   # with a fresh cross-compiler works.
3893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894   # <limits.h> exists even on freestanding compilers.
3895   # On the NeXT, cc -E runs the code through the compiler's parser,
3896   # not just through cpp. "Syntax error" is here to catch this case.
3897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899 #ifdef __STDC__
3900 # include <limits.h>
3901 #else
3902 # include <assert.h>
3903 #endif
3904                      Syntax error
3905 _ACEOF
3906 if ac_fn_c_try_cpp "$LINENO"; then :
3907
3908 else
3909   # Broken: fails on valid input.
3910 continue
3911 fi
3912 rm -f conftest.err conftest.i conftest.$ac_ext
3913
3914   # OK, works on sane cases.  Now check whether nonexistent headers
3915   # can be detected and how.
3916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h.  */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if ac_fn_c_try_cpp "$LINENO"; then :
3921   # Broken: success on invalid input.
3922 continue
3923 else
3924   # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.i conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then :
3934   break
3935 fi
3936
3937     done
3938     ac_cv_prog_CPP=$CPP
3939
3940 fi
3941   CPP=$ac_cv_prog_CPP
3942 else
3943   ac_cv_prog_CPP=$CPP
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3946 $as_echo "$CPP" >&6; }
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3949 do
3950   # Use a header file that comes with gcc, so configuring glibc
3951   # with a fresh cross-compiler works.
3952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953   # <limits.h> exists even on freestanding compilers.
3954   # On the NeXT, cc -E runs the code through the compiler's parser,
3955   # not just through cpp. "Syntax error" is here to catch this case.
3956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958 #ifdef __STDC__
3959 # include <limits.h>
3960 #else
3961 # include <assert.h>
3962 #endif
3963                      Syntax error
3964 _ACEOF
3965 if ac_fn_c_try_cpp "$LINENO"; then :
3966
3967 else
3968   # Broken: fails on valid input.
3969 continue
3970 fi
3971 rm -f conftest.err conftest.i conftest.$ac_ext
3972
3973   # OK, works on sane cases.  Now check whether nonexistent headers
3974   # can be detected and how.
3975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h.  */
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if ac_fn_c_try_cpp "$LINENO"; then :
3980   # Broken: success on invalid input.
3981 continue
3982 else
3983   # Passes both tests.
3984 ac_preproc_ok=:
3985 break
3986 fi
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3988
3989 done
3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 rm -f conftest.i conftest.err conftest.$ac_ext
3992 if $ac_preproc_ok; then :
3993
3994 else
3995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details" "$LINENO" 5; }
3999 fi
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4009 $as_echo_n "checking for X... " >&6; }
4010
4011
4012 # Check whether --with-x was given.
4013 if test "${with_x+set}" = set; then :
4014   withval=$with_x;
4015 fi
4016
4017 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4018 if test "x$with_x" = xno; then
4019   # The user explicitly disabled X.
4020   have_x=disabled
4021 else
4022   case $x_includes,$x_libraries in #(
4023     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4024     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   # One or both of the vars are not set, and there is no cached value.
4028 ac_x_includes=no ac_x_libraries=no
4029 rm -f -r conftest.dir
4030 if mkdir conftest.dir; then
4031   cd conftest.dir
4032   cat >Imakefile <<'_ACEOF'
4033 incroot:
4034         @echo incroot='${INCROOT}'
4035 usrlibdir:
4036         @echo usrlibdir='${USRLIBDIR}'
4037 libdir:
4038         @echo libdir='${LIBDIR}'
4039 _ACEOF
4040   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4041     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4042     for ac_var in incroot usrlibdir libdir; do
4043       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4044     done
4045     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4046     for ac_extension in a so sl dylib la dll; do
4047       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4048          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4049         ac_im_usrlibdir=$ac_im_libdir; break
4050       fi
4051     done
4052     # Screen out bogus values from the imake configuration.  They are
4053     # bogus both because they are the default anyway, and because
4054     # using them would break gcc on systems where it needs fixed includes.
4055     case $ac_im_incroot in
4056         /usr/include) ac_x_includes= ;;
4057         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4058     esac
4059     case $ac_im_usrlibdir in
4060         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4061         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4062     esac
4063   fi
4064   cd ..
4065   rm -f -r conftest.dir
4066 fi
4067
4068 # Standard set of common directories for X headers.
4069 # Check X11 before X11Rn because it is often a symlink to the current release.
4070 ac_x_header_dirs='
4071 /usr/X11/include
4072 /usr/X11R7/include
4073 /usr/X11R6/include
4074 /usr/X11R5/include
4075 /usr/X11R4/include
4076
4077 /usr/include/X11
4078 /usr/include/X11R7
4079 /usr/include/X11R6
4080 /usr/include/X11R5
4081 /usr/include/X11R4
4082
4083 /usr/local/X11/include
4084 /usr/local/X11R7/include
4085 /usr/local/X11R6/include
4086 /usr/local/X11R5/include
4087 /usr/local/X11R4/include
4088
4089 /usr/local/include/X11
4090 /usr/local/include/X11R7
4091 /usr/local/include/X11R6
4092 /usr/local/include/X11R5
4093 /usr/local/include/X11R4
4094
4095 /usr/X386/include
4096 /usr/x386/include
4097 /usr/XFree86/include/X11
4098
4099 /usr/include
4100 /usr/local/include
4101 /usr/unsupported/include
4102 /usr/athena/include
4103 /usr/local/x11r5/include
4104 /usr/lpp/Xamples/include
4105
4106 /usr/openwin/include
4107 /usr/openwin/share/include'
4108
4109 if test "$ac_x_includes" = no; then
4110   # Guess where to find include files, by looking for Xlib.h.
4111   # First, try using that file with no special directory specified.
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114 #include <X11/Xlib.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117   # We can compile using X headers with no special include directory.
4118 ac_x_includes=
4119 else
4120   for ac_dir in $ac_x_header_dirs; do
4121   if test -r "$ac_dir/X11/Xlib.h"; then
4122     ac_x_includes=$ac_dir
4123     break
4124   fi
4125 done
4126 fi
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4128 fi # $ac_x_includes = no
4129
4130 if test "$ac_x_libraries" = no; then
4131   # Check for the libraries.
4132   # See if we find them without any special options.
4133   # Don't add to $LIBS permanently.
4134   ac_save_LIBS=$LIBS
4135   LIBS="-lX11 $LIBS"
4136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138 #include <X11/Xlib.h>
4139 int
4140 main ()
4141 {
4142 XrmInitialize ()
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_link "$LINENO"; then :
4148   LIBS=$ac_save_LIBS
4149 # We can link X programs with no special library path.
4150 ac_x_libraries=
4151 else
4152   LIBS=$ac_save_LIBS
4153 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4154 do
4155   # Don't even attempt the hair of trying to link an X program!
4156   for ac_extension in a so sl dylib la dll; do
4157     if test -r "$ac_dir/libX11.$ac_extension"; then
4158       ac_x_libraries=$ac_dir
4159       break 2
4160     fi
4161   done
4162 done
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext \
4165     conftest$ac_exeext conftest.$ac_ext
4166 fi # $ac_x_libraries = no
4167
4168 case $ac_x_includes,$ac_x_libraries in #(
4169   no,* | *,no | *\'*)
4170     # Didn't find X, or a directory has "'" in its name.
4171     ac_cv_have_x="have_x=no";; #(
4172   *)
4173     # Record where we found X for the cache.
4174     ac_cv_have_x="have_x=yes\
4175         ac_x_includes='$ac_x_includes'\
4176         ac_x_libraries='$ac_x_libraries'"
4177 esac
4178 fi
4179 ;; #(
4180     *) have_x=yes;;
4181   esac
4182   eval "$ac_cv_have_x"
4183 fi # $with_x != no
4184
4185 if test "$have_x" != yes; then
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4187 $as_echo "$have_x" >&6; }
4188   no_x=yes
4189 else
4190   # If each of the values was on the command line, it overrides each guess.
4191   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4192   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4193   # Update the cache value to reflect the command line values.
4194   ac_cv_have_x="have_x=yes\
4195         ac_x_includes='$x_includes'\
4196         ac_x_libraries='$x_libraries'"
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4198 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4199 fi
4200
4201
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4204 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4205 if ${ac_cv_path_SED+:} false; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4209      for ac_i in 1 2 3 4 5 6 7; do
4210        ac_script="$ac_script$as_nl$ac_script"
4211      done
4212      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4213      { ac_script=; unset ac_script;}
4214      if test -z "$SED"; then
4215   ac_path_SED_found=false
4216   # Loop through the user's path and test for each of PROGNAME-LIST
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_prog in sed gsed; do
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4225       as_fn_executable_p "$ac_path_SED" || continue
4226 # Check for GNU ac_path_SED and select it if it is found.
4227   # Check for GNU $ac_path_SED
4228 case `"$ac_path_SED" --version 2>&1` in
4229 *GNU*)
4230   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4231 *)
4232   ac_count=0
4233   $as_echo_n 0123456789 >"conftest.in"
4234   while :
4235   do
4236     cat "conftest.in" "conftest.in" >"conftest.tmp"
4237     mv "conftest.tmp" "conftest.in"
4238     cp "conftest.in" "conftest.nl"
4239     $as_echo '' >> "conftest.nl"
4240     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242     as_fn_arith $ac_count + 1 && ac_count=$as_val
4243     if test $ac_count -gt ${ac_path_SED_max-0}; then
4244       # Best one so far, save it but keep looking for a better one
4245       ac_cv_path_SED="$ac_path_SED"
4246       ac_path_SED_max=$ac_count
4247     fi
4248     # 10*(2^10) chars as input seems more than enough
4249     test $ac_count -gt 10 && break
4250   done
4251   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254       $ac_path_SED_found && break 3
4255     done
4256   done
4257   done
4258 IFS=$as_save_IFS
4259   if test -z "$ac_cv_path_SED"; then
4260     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4261   fi
4262 else
4263   ac_cv_path_SED=$SED
4264 fi
4265
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4268 $as_echo "$ac_cv_path_SED" >&6; }
4269  SED="$ac_cv_path_SED"
4270   rm -f conftest.sed
4271
4272
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4274 $as_echo_n "checking whether NLS is requested... " >&6; }
4275     # Check whether --enable-nls was given.
4276 if test "${enable_nls+set}" = set; then :
4277   enableval=$enable_nls; USE_NLS=$enableval
4278 else
4279   USE_NLS=yes
4280 fi
4281
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4283 $as_echo "$USE_NLS" >&6; }
4284
4285
4286
4287
4288       GETTEXT_MACRO_VERSION=0.18
4289
4290
4291
4292
4293 # Prepare PATH_SEPARATOR.
4294 # The user is always right.
4295 if test "${PATH_SEPARATOR+set}" != set; then
4296   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4297   # contains only /bin. Note that ksh looks also at the FPATH variable,
4298   # so we have to set that as well for the test.
4299   PATH_SEPARATOR=:
4300   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4301     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4302            || PATH_SEPARATOR=';'
4303        }
4304 fi
4305
4306 # Find out how to test for executable files. Don't use a zero-byte file,
4307 # as systems may use methods other than mode bits to determine executability.
4308 cat >conf$$.file <<_ASEOF
4309 #! /bin/sh
4310 exit 0
4311 _ASEOF
4312 chmod +x conf$$.file
4313 if test -x conf$$.file >/dev/null 2>&1; then
4314   ac_executable_p="test -x"
4315 else
4316   ac_executable_p="test -f"
4317 fi
4318 rm -f conf$$.file
4319
4320 # Extract the first word of "msgfmt", so it can be a program name with args.
4321 set dummy msgfmt; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_path_MSGFMT+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   case "$MSGFMT" in
4328   [\\/]* | ?:[\\/]*)
4329     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4330     ;;
4331   *)
4332     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4333     for ac_dir in $PATH; do
4334       IFS="$ac_save_IFS"
4335       test -z "$ac_dir" && ac_dir=.
4336       for ac_exec_ext in '' $ac_executable_extensions; do
4337         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4338           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4339           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4340      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4341             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4342             break 2
4343           fi
4344         fi
4345       done
4346     done
4347     IFS="$ac_save_IFS"
4348   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4349     ;;
4350 esac
4351 fi
4352 MSGFMT="$ac_cv_path_MSGFMT"
4353 if test "$MSGFMT" != ":"; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4355 $as_echo "$MSGFMT" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4362 set dummy gmsgfmt; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_path_GMSGFMT+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   case $GMSGFMT in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385   done
4386 IFS=$as_save_IFS
4387
4388   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4389   ;;
4390 esac
4391 fi
4392 GMSGFMT=$ac_cv_path_GMSGFMT
4393 if test -n "$GMSGFMT"; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4395 $as_echo "$GMSGFMT" >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401
4402
4403     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4404     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4405     *) MSGFMT_015=$MSGFMT ;;
4406   esac
4407
4408   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4409     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4410     *) GMSGFMT_015=$GMSGFMT ;;
4411   esac
4412
4413
4414
4415 # Prepare PATH_SEPARATOR.
4416 # The user is always right.
4417 if test "${PATH_SEPARATOR+set}" != set; then
4418   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4419   # contains only /bin. Note that ksh looks also at the FPATH variable,
4420   # so we have to set that as well for the test.
4421   PATH_SEPARATOR=:
4422   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4423     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4424            || PATH_SEPARATOR=';'
4425        }
4426 fi
4427
4428 # Find out how to test for executable files. Don't use a zero-byte file,
4429 # as systems may use methods other than mode bits to determine executability.
4430 cat >conf$$.file <<_ASEOF
4431 #! /bin/sh
4432 exit 0
4433 _ASEOF
4434 chmod +x conf$$.file
4435 if test -x conf$$.file >/dev/null 2>&1; then
4436   ac_executable_p="test -x"
4437 else
4438   ac_executable_p="test -f"
4439 fi
4440 rm -f conf$$.file
4441
4442 # Extract the first word of "xgettext", so it can be a program name with args.
4443 set dummy xgettext; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_path_XGETTEXT+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   case "$XGETTEXT" in
4450   [\\/]* | ?:[\\/]*)
4451     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4452     ;;
4453   *)
4454     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4455     for ac_dir in $PATH; do
4456       IFS="$ac_save_IFS"
4457       test -z "$ac_dir" && ac_dir=.
4458       for ac_exec_ext in '' $ac_executable_extensions; do
4459         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4460           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4461           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4462      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4463             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4464             break 2
4465           fi
4466         fi
4467       done
4468     done
4469     IFS="$ac_save_IFS"
4470   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4471     ;;
4472 esac
4473 fi
4474 XGETTEXT="$ac_cv_path_XGETTEXT"
4475 if test "$XGETTEXT" != ":"; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4477 $as_echo "$XGETTEXT" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483     rm -f messages.po
4484
4485     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4486     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4487     *) XGETTEXT_015=$XGETTEXT ;;
4488   esac
4489
4490
4491
4492 # Prepare PATH_SEPARATOR.
4493 # The user is always right.
4494 if test "${PATH_SEPARATOR+set}" != set; then
4495   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4496   # contains only /bin. Note that ksh looks also at the FPATH variable,
4497   # so we have to set that as well for the test.
4498   PATH_SEPARATOR=:
4499   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4500     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4501            || PATH_SEPARATOR=';'
4502        }
4503 fi
4504
4505 # Find out how to test for executable files. Don't use a zero-byte file,
4506 # as systems may use methods other than mode bits to determine executability.
4507 cat >conf$$.file <<_ASEOF
4508 #! /bin/sh
4509 exit 0
4510 _ASEOF
4511 chmod +x conf$$.file
4512 if test -x conf$$.file >/dev/null 2>&1; then
4513   ac_executable_p="test -x"
4514 else
4515   ac_executable_p="test -f"
4516 fi
4517 rm -f conf$$.file
4518
4519 # Extract the first word of "msgmerge", so it can be a program name with args.
4520 set dummy msgmerge; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if ${ac_cv_path_MSGMERGE+:} false; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   case "$MSGMERGE" in
4527   [\\/]* | ?:[\\/]*)
4528     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4529     ;;
4530   *)
4531     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4532     for ac_dir in $PATH; do
4533       IFS="$ac_save_IFS"
4534       test -z "$ac_dir" && ac_dir=.
4535       for ac_exec_ext in '' $ac_executable_extensions; do
4536         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4537           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4538           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4539             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4540             break 2
4541           fi
4542         fi
4543       done
4544     done
4545     IFS="$ac_save_IFS"
4546   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4547     ;;
4548 esac
4549 fi
4550 MSGMERGE="$ac_cv_path_MSGMERGE"
4551 if test "$MSGMERGE" != ":"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4553 $as_echo "$MSGMERGE" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558
4559
4560         test -n "$localedir" || localedir='${datadir}/locale'
4561
4562
4563     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4564
4565
4566   ac_config_commands="$ac_config_commands po-directories"
4567
4568
4569
4570       if test "X$prefix" = "XNONE"; then
4571     acl_final_prefix="$ac_default_prefix"
4572   else
4573     acl_final_prefix="$prefix"
4574   fi
4575   if test "X$exec_prefix" = "XNONE"; then
4576     acl_final_exec_prefix='${prefix}'
4577   else
4578     acl_final_exec_prefix="$exec_prefix"
4579   fi
4580   acl_save_prefix="$prefix"
4581   prefix="$acl_final_prefix"
4582   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4583   prefix="$acl_save_prefix"
4584
4585 # Make sure we can run config.sub.
4586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4587   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4590 $as_echo_n "checking build system type... " >&6; }
4591 if ${ac_cv_build+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   ac_build_alias=$build_alias
4595 test "x$ac_build_alias" = x &&
4596   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4597 test "x$ac_build_alias" = x &&
4598   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4600   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4604 $as_echo "$ac_cv_build" >&6; }
4605 case $ac_cv_build in
4606 *-*-*) ;;
4607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4608 esac
4609 build=$ac_cv_build
4610 ac_save_IFS=$IFS; IFS='-'
4611 set x $ac_cv_build
4612 shift
4613 build_cpu=$1
4614 build_vendor=$2
4615 shift; shift
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4618 build_os=$*
4619 IFS=$ac_save_IFS
4620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4624 $as_echo_n "checking host system type... " >&6; }
4625 if ${ac_cv_host+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   if test "x$host_alias" = x; then
4629   ac_cv_host=$ac_cv_build
4630 else
4631   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4632     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4633 fi
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4637 $as_echo "$ac_cv_host" >&6; }
4638 case $ac_cv_host in
4639 *-*-*) ;;
4640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4641 esac
4642 host=$ac_cv_host
4643 ac_save_IFS=$IFS; IFS='-'
4644 set x $ac_cv_host
4645 shift
4646 host_cpu=$1
4647 host_vendor=$2
4648 shift; shift
4649 # Remember, the first character of IFS is used to create $*,
4650 # except with old shells:
4651 host_os=$*
4652 IFS=$ac_save_IFS
4653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4654
4655
4656
4657
4658 # Check whether --with-gnu-ld was given.
4659 if test "${with_gnu_ld+set}" = set; then :
4660   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4661 else
4662   with_gnu_ld=no
4663 fi
4664
4665 # Prepare PATH_SEPARATOR.
4666 # The user is always right.
4667 if test "${PATH_SEPARATOR+set}" != set; then
4668   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4669   # contains only /bin. Note that ksh looks also at the FPATH variable,
4670   # so we have to set that as well for the test.
4671   PATH_SEPARATOR=:
4672   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4673     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4674            || PATH_SEPARATOR=';'
4675        }
4676 fi
4677
4678 ac_prog=ld
4679 if test "$GCC" = yes; then
4680   # Check if gcc -print-prog-name=ld gives a path.
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4682 $as_echo_n "checking for ld used by $CC... " >&6; }
4683   case $host in
4684   *-*-mingw*)
4685     # gcc leaves a trailing carriage return which upsets mingw
4686     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4687   *)
4688     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4689   esac
4690   case $ac_prog in
4691     # Accept absolute paths.
4692     [\\/]* | ?:[\\/]*)
4693       re_direlt='/[^/][^/]*/\.\./'
4694       # Canonicalize the pathname of ld
4695       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4696       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4697         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4698       done
4699       test -z "$LD" && LD="$ac_prog"
4700       ;;
4701   "")
4702     # If it fails, then pretend we aren't using GCC.
4703     ac_prog=ld
4704     ;;
4705   *)
4706     # If it is relative, then search for the first ld in PATH.
4707     with_gnu_ld=unknown
4708     ;;
4709   esac
4710 elif test "$with_gnu_ld" = yes; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4712 $as_echo_n "checking for GNU ld... " >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4715 $as_echo_n "checking for non-GNU ld... " >&6; }
4716 fi
4717 if ${acl_cv_path_LD+:} false; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   if test -z "$LD"; then
4721   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4722   for ac_dir in $PATH; do
4723     IFS="$acl_save_ifs"
4724     test -z "$ac_dir" && ac_dir=.
4725     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4726       acl_cv_path_LD="$ac_dir/$ac_prog"
4727       # Check to see if the program is GNU ld.  I'd rather use --version,
4728       # but apparently some variants of GNU ld only accept -v.
4729       # Break only if it was the GNU/non-GNU ld that we prefer.
4730       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4731       *GNU* | *'with BFD'*)
4732         test "$with_gnu_ld" != no && break
4733         ;;
4734       *)
4735         test "$with_gnu_ld" != yes && break
4736         ;;
4737       esac
4738     fi
4739   done
4740   IFS="$acl_save_ifs"
4741 else
4742   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4743 fi
4744 fi
4745
4746 LD="$acl_cv_path_LD"
4747 if test -n "$LD"; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4749 $as_echo "$LD" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4756 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4757 if ${acl_cv_prog_gnu_ld+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4761 case `$LD -v 2>&1 </dev/null` in
4762 *GNU* | *'with BFD'*)
4763   acl_cv_prog_gnu_ld=yes
4764   ;;
4765 *)
4766   acl_cv_prog_gnu_ld=no
4767   ;;
4768 esac
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4771 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4772 with_gnu_ld=$acl_cv_prog_gnu_ld
4773
4774
4775
4776
4777                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4778 $as_echo_n "checking for shared library run path origin... " >&6; }
4779 if ${acl_cv_rpath+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782
4783     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4784     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4785     . ./conftest.sh
4786     rm -f ./conftest.sh
4787     acl_cv_rpath=done
4788
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4791 $as_echo "$acl_cv_rpath" >&6; }
4792   wl="$acl_cv_wl"
4793   acl_libext="$acl_cv_libext"
4794   acl_shlibext="$acl_cv_shlibext"
4795   acl_libname_spec="$acl_cv_libname_spec"
4796   acl_library_names_spec="$acl_cv_library_names_spec"
4797   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4798   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4799   acl_hardcode_direct="$acl_cv_hardcode_direct"
4800   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4801     # Check whether --enable-rpath was given.
4802 if test "${enable_rpath+set}" = set; then :
4803   enableval=$enable_rpath; :
4804 else
4805   enable_rpath=yes
4806 fi
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4810 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4811 if ${ac_cv_path_GREP+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   if test -z "$GREP"; then
4815   ac_path_GREP_found=false
4816   # Loop through the user's path and test for each of PROGNAME-LIST
4817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822     for ac_prog in grep ggrep; do
4823     for ac_exec_ext in '' $ac_executable_extensions; do
4824       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4825       as_fn_executable_p "$ac_path_GREP" || continue
4826 # Check for GNU ac_path_GREP and select it if it is found.
4827   # Check for GNU $ac_path_GREP
4828 case `"$ac_path_GREP" --version 2>&1` in
4829 *GNU*)
4830   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4831 *)
4832   ac_count=0
4833   $as_echo_n 0123456789 >"conftest.in"
4834   while :
4835   do
4836     cat "conftest.in" "conftest.in" >"conftest.tmp"
4837     mv "conftest.tmp" "conftest.in"
4838     cp "conftest.in" "conftest.nl"
4839     $as_echo 'GREP' >> "conftest.nl"
4840     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842     as_fn_arith $ac_count + 1 && ac_count=$as_val
4843     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4844       # Best one so far, save it but keep looking for a better one
4845       ac_cv_path_GREP="$ac_path_GREP"
4846       ac_path_GREP_max=$ac_count
4847     fi
4848     # 10*(2^10) chars as input seems more than enough
4849     test $ac_count -gt 10 && break
4850   done
4851   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852 esac
4853
4854       $ac_path_GREP_found && break 3
4855     done
4856   done
4857   done
4858 IFS=$as_save_IFS
4859   if test -z "$ac_cv_path_GREP"; then
4860     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4861   fi
4862 else
4863   ac_cv_path_GREP=$GREP
4864 fi
4865
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4868 $as_echo "$ac_cv_path_GREP" >&6; }
4869  GREP="$ac_cv_path_GREP"
4870
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4873 $as_echo_n "checking for egrep... " >&6; }
4874 if ${ac_cv_path_EGREP+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4878    then ac_cv_path_EGREP="$GREP -E"
4879    else
4880      if test -z "$EGREP"; then
4881   ac_path_EGREP_found=false
4882   # Loop through the user's path and test for each of PROGNAME-LIST
4883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888     for ac_prog in egrep; do
4889     for ac_exec_ext in '' $ac_executable_extensions; do
4890       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4891       as_fn_executable_p "$ac_path_EGREP" || continue
4892 # Check for GNU ac_path_EGREP and select it if it is found.
4893   # Check for GNU $ac_path_EGREP
4894 case `"$ac_path_EGREP" --version 2>&1` in
4895 *GNU*)
4896   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4897 *)
4898   ac_count=0
4899   $as_echo_n 0123456789 >"conftest.in"
4900   while :
4901   do
4902     cat "conftest.in" "conftest.in" >"conftest.tmp"
4903     mv "conftest.tmp" "conftest.in"
4904     cp "conftest.in" "conftest.nl"
4905     $as_echo 'EGREP' >> "conftest.nl"
4906     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4907     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4908     as_fn_arith $ac_count + 1 && ac_count=$as_val
4909     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4910       # Best one so far, save it but keep looking for a better one
4911       ac_cv_path_EGREP="$ac_path_EGREP"
4912       ac_path_EGREP_max=$ac_count
4913     fi
4914     # 10*(2^10) chars as input seems more than enough
4915     test $ac_count -gt 10 && break
4916   done
4917   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918 esac
4919
4920       $ac_path_EGREP_found && break 3
4921     done
4922   done
4923   done
4924 IFS=$as_save_IFS
4925   if test -z "$ac_cv_path_EGREP"; then
4926     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4927   fi
4928 else
4929   ac_cv_path_EGREP=$EGREP
4930 fi
4931
4932    fi
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4935 $as_echo "$ac_cv_path_EGREP" >&6; }
4936  EGREP="$ac_cv_path_EGREP"
4937
4938
4939
4940
4941   acl_libdirstem=lib
4942   acl_libdirstem2=
4943   case "$host_os" in
4944     solaris*)
4945                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4946 $as_echo_n "checking for 64-bit host... " >&6; }
4947 if ${gl_cv_solaris_64bit+:} false; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952
4953 #ifdef _LP64
4954 sixtyfour bits
4955 #endif
4956
4957 _ACEOF
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4960   gl_cv_solaris_64bit=yes
4961 else
4962   gl_cv_solaris_64bit=no
4963 fi
4964 rm -f conftest*
4965
4966
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4969 $as_echo "$gl_cv_solaris_64bit" >&6; }
4970       if test $gl_cv_solaris_64bit = yes; then
4971         acl_libdirstem=lib/64
4972         case "$host_cpu" in
4973           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4974           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4975         esac
4976       fi
4977       ;;
4978     *)
4979       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4980       if test -n "$searchpath"; then
4981         acl_save_IFS="${IFS=    }"; IFS=":"
4982         for searchdir in $searchpath; do
4983           if test -d "$searchdir"; then
4984             case "$searchdir" in
4985               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4986               */../ | */.. )
4987                 # Better ignore directories of this form. They are misleading.
4988                 ;;
4989               *) searchdir=`cd "$searchdir" && pwd`
4990                  case "$searchdir" in
4991                    */lib64 ) acl_libdirstem=lib64 ;;
4992                  esac ;;
4993             esac
4994           fi
4995         done
4996         IFS="$acl_save_IFS"
4997       fi
4998       ;;
4999   esac
5000   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013     use_additional=yes
5014
5015   acl_save_prefix="$prefix"
5016   prefix="$acl_final_prefix"
5017   acl_save_exec_prefix="$exec_prefix"
5018   exec_prefix="$acl_final_exec_prefix"
5019
5020     eval additional_includedir=\"$includedir\"
5021     eval additional_libdir=\"$libdir\"
5022
5023   exec_prefix="$acl_save_exec_prefix"
5024   prefix="$acl_save_prefix"
5025
5026
5027 # Check whether --with-libiconv-prefix was given.
5028 if test "${with_libiconv_prefix+set}" = set; then :
5029   withval=$with_libiconv_prefix;
5030     if test "X$withval" = "Xno"; then
5031       use_additional=no
5032     else
5033       if test "X$withval" = "X"; then
5034
5035   acl_save_prefix="$prefix"
5036   prefix="$acl_final_prefix"
5037   acl_save_exec_prefix="$exec_prefix"
5038   exec_prefix="$acl_final_exec_prefix"
5039
5040           eval additional_includedir=\"$includedir\"
5041           eval additional_libdir=\"$libdir\"
5042
5043   exec_prefix="$acl_save_exec_prefix"
5044   prefix="$acl_save_prefix"
5045
5046       else
5047         additional_includedir="$withval/include"
5048         additional_libdir="$withval/$acl_libdirstem"
5049         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5050            && ! test -d "$withval/$acl_libdirstem"; then
5051           additional_libdir="$withval/$acl_libdirstem2"
5052         fi
5053       fi
5054     fi
5055
5056 fi
5057
5058       LIBICONV=
5059   LTLIBICONV=
5060   INCICONV=
5061   LIBICONV_PREFIX=
5062       HAVE_LIBICONV=
5063   rpathdirs=
5064   ltrpathdirs=
5065   names_already_handled=
5066   names_next_round='iconv '
5067   while test -n "$names_next_round"; do
5068     names_this_round="$names_next_round"
5069     names_next_round=
5070     for name in $names_this_round; do
5071       already_handled=
5072       for n in $names_already_handled; do
5073         if test "$n" = "$name"; then
5074           already_handled=yes
5075           break
5076         fi
5077       done
5078       if test -z "$already_handled"; then
5079         names_already_handled="$names_already_handled $name"
5080                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5081         eval value=\"\$HAVE_LIB$uppername\"
5082         if test -n "$value"; then
5083           if test "$value" = yes; then
5084             eval value=\"\$LIB$uppername\"
5085             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5086             eval value=\"\$LTLIB$uppername\"
5087             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5088           else
5089                                     :
5090           fi
5091         else
5092                               found_dir=
5093           found_la=
5094           found_so=
5095           found_a=
5096           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5097           if test -n "$acl_shlibext"; then
5098             shrext=".$acl_shlibext"             # typically: shrext=.so
5099           else
5100             shrext=
5101           fi
5102           if test $use_additional = yes; then
5103             dir="$additional_libdir"
5104                                     if test -n "$acl_shlibext"; then
5105               if test -f "$dir/$libname$shrext"; then
5106                 found_dir="$dir"
5107                 found_so="$dir/$libname$shrext"
5108               else
5109                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5110                   ver=`(cd "$dir" && \
5111                         for f in "$libname$shrext".*; do echo "$f"; done \
5112                         | sed -e "s,^$libname$shrext\\\\.,," \
5113                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5114                         | sed 1q ) 2>/dev/null`
5115                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5116                     found_dir="$dir"
5117                     found_so="$dir/$libname$shrext.$ver"
5118                   fi
5119                 else
5120                   eval library_names=\"$acl_library_names_spec\"
5121                   for f in $library_names; do
5122                     if test -f "$dir/$f"; then
5123                       found_dir="$dir"
5124                       found_so="$dir/$f"
5125                       break
5126                     fi
5127                   done
5128                 fi
5129               fi
5130             fi
5131                         if test "X$found_dir" = "X"; then
5132               if test -f "$dir/$libname.$acl_libext"; then
5133                 found_dir="$dir"
5134                 found_a="$dir/$libname.$acl_libext"
5135               fi
5136             fi
5137             if test "X$found_dir" != "X"; then
5138               if test -f "$dir/$libname.la"; then
5139                 found_la="$dir/$libname.la"
5140               fi
5141             fi
5142           fi
5143           if test "X$found_dir" = "X"; then
5144             for x in $LDFLAGS $LTLIBICONV; do
5145
5146   acl_save_prefix="$prefix"
5147   prefix="$acl_final_prefix"
5148   acl_save_exec_prefix="$exec_prefix"
5149   exec_prefix="$acl_final_exec_prefix"
5150   eval x=\"$x\"
5151   exec_prefix="$acl_save_exec_prefix"
5152   prefix="$acl_save_prefix"
5153
5154               case "$x" in
5155                 -L*)
5156                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5157                                     if test -n "$acl_shlibext"; then
5158                     if test -f "$dir/$libname$shrext"; then
5159                       found_dir="$dir"
5160                       found_so="$dir/$libname$shrext"
5161                     else
5162                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5163                         ver=`(cd "$dir" && \
5164                               for f in "$libname$shrext".*; do echo "$f"; done \
5165                               | sed -e "s,^$libname$shrext\\\\.,," \
5166                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5167                               | sed 1q ) 2>/dev/null`
5168                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5169                           found_dir="$dir"
5170                           found_so="$dir/$libname$shrext.$ver"
5171                         fi
5172                       else
5173                         eval library_names=\"$acl_library_names_spec\"
5174                         for f in $library_names; do
5175                           if test -f "$dir/$f"; then
5176                             found_dir="$dir"
5177                             found_so="$dir/$f"
5178                             break
5179                           fi
5180                         done
5181                       fi
5182                     fi
5183                   fi
5184                                     if test "X$found_dir" = "X"; then
5185                     if test -f "$dir/$libname.$acl_libext"; then
5186                       found_dir="$dir"
5187                       found_a="$dir/$libname.$acl_libext"
5188                     fi
5189                   fi
5190                   if test "X$found_dir" != "X"; then
5191                     if test -f "$dir/$libname.la"; then
5192                       found_la="$dir/$libname.la"
5193                     fi
5194                   fi
5195                   ;;
5196               esac
5197               if test "X$found_dir" != "X"; then
5198                 break
5199               fi
5200             done
5201           fi
5202           if test "X$found_dir" != "X"; then
5203                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5204             if test "X$found_so" != "X"; then
5205                                                         if test "$enable_rpath" = no \
5206                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5207                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5208                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5209               else
5210                                                                                 haveit=
5211                 for x in $ltrpathdirs; do
5212                   if test "X$x" = "X$found_dir"; then
5213                     haveit=yes
5214                     break
5215                   fi
5216                 done
5217                 if test -z "$haveit"; then
5218                   ltrpathdirs="$ltrpathdirs $found_dir"
5219                 fi
5220                                 if test "$acl_hardcode_direct" = yes; then
5221                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5222                 else
5223                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5224                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5225                                                             haveit=
5226                     for x in $rpathdirs; do
5227                       if test "X$x" = "X$found_dir"; then
5228                         haveit=yes
5229                         break
5230                       fi
5231                     done
5232                     if test -z "$haveit"; then
5233                       rpathdirs="$rpathdirs $found_dir"
5234                     fi
5235                   else
5236                                                                                 haveit=
5237                     for x in $LDFLAGS $LIBICONV; do
5238
5239   acl_save_prefix="$prefix"
5240   prefix="$acl_final_prefix"
5241   acl_save_exec_prefix="$exec_prefix"
5242   exec_prefix="$acl_final_exec_prefix"
5243   eval x=\"$x\"
5244   exec_prefix="$acl_save_exec_prefix"
5245   prefix="$acl_save_prefix"
5246
5247                       if test "X$x" = "X-L$found_dir"; then
5248                         haveit=yes
5249                         break
5250                       fi
5251                     done
5252                     if test -z "$haveit"; then
5253                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5254                     fi
5255                     if test "$acl_hardcode_minus_L" != no; then
5256                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5257                     else
5258                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5259                     fi
5260                   fi
5261                 fi
5262               fi
5263             else
5264               if test "X$found_a" != "X"; then
5265                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5266               else
5267                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5268               fi
5269             fi
5270                         additional_includedir=
5271             case "$found_dir" in
5272               */$acl_libdirstem | */$acl_libdirstem/)
5273                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5274                 if test "$name" = 'iconv'; then
5275                   LIBICONV_PREFIX="$basedir"
5276                 fi
5277                 additional_includedir="$basedir/include"
5278                 ;;
5279               */$acl_libdirstem2 | */$acl_libdirstem2/)
5280                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5281                 if test "$name" = 'iconv'; then
5282                   LIBICONV_PREFIX="$basedir"
5283                 fi
5284                 additional_includedir="$basedir/include"
5285                 ;;
5286             esac
5287             if test "X$additional_includedir" != "X"; then
5288                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5289                 haveit=
5290                 if test "X$additional_includedir" = "X/usr/local/include"; then
5291                   if test -n "$GCC"; then
5292                     case $host_os in
5293                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5294                     esac
5295                   fi
5296                 fi
5297                 if test -z "$haveit"; then
5298                   for x in $CPPFLAGS $INCICONV; do
5299
5300   acl_save_prefix="$prefix"
5301   prefix="$acl_final_prefix"
5302   acl_save_exec_prefix="$exec_prefix"
5303   exec_prefix="$acl_final_exec_prefix"
5304   eval x=\"$x\"
5305   exec_prefix="$acl_save_exec_prefix"
5306   prefix="$acl_save_prefix"
5307
5308                     if test "X$x" = "X-I$additional_includedir"; then
5309                       haveit=yes
5310                       break
5311                     fi
5312                   done
5313                   if test -z "$haveit"; then
5314                     if test -d "$additional_includedir"; then
5315                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5316                     fi
5317                   fi
5318                 fi
5319               fi
5320             fi
5321                         if test -n "$found_la"; then
5322                                                         save_libdir="$libdir"
5323               case "$found_la" in
5324                 */* | *\\*) . "$found_la" ;;
5325                 *) . "./$found_la" ;;
5326               esac
5327               libdir="$save_libdir"
5328                             for dep in $dependency_libs; do
5329                 case "$dep" in
5330                   -L*)
5331                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5332                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5333                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5334                       haveit=
5335                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5336                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5337                         if test -n "$GCC"; then
5338                           case $host_os in
5339                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5340                           esac
5341                         fi
5342                       fi
5343                       if test -z "$haveit"; then
5344                         haveit=
5345                         for x in $LDFLAGS $LIBICONV; do
5346
5347   acl_save_prefix="$prefix"
5348   prefix="$acl_final_prefix"
5349   acl_save_exec_prefix="$exec_prefix"
5350   exec_prefix="$acl_final_exec_prefix"
5351   eval x=\"$x\"
5352   exec_prefix="$acl_save_exec_prefix"
5353   prefix="$acl_save_prefix"
5354
5355                           if test "X$x" = "X-L$additional_libdir"; then
5356                             haveit=yes
5357                             break
5358                           fi
5359                         done
5360                         if test -z "$haveit"; then
5361                           if test -d "$additional_libdir"; then
5362                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5363                           fi
5364                         fi
5365                         haveit=
5366                         for x in $LDFLAGS $LTLIBICONV; do
5367
5368   acl_save_prefix="$prefix"
5369   prefix="$acl_final_prefix"
5370   acl_save_exec_prefix="$exec_prefix"
5371   exec_prefix="$acl_final_exec_prefix"
5372   eval x=\"$x\"
5373   exec_prefix="$acl_save_exec_prefix"
5374   prefix="$acl_save_prefix"
5375
5376                           if test "X$x" = "X-L$additional_libdir"; then
5377                             haveit=yes
5378                             break
5379                           fi
5380                         done
5381                         if test -z "$haveit"; then
5382                           if test -d "$additional_libdir"; then
5383                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5384                           fi
5385                         fi
5386                       fi
5387                     fi
5388                     ;;
5389                   -R*)
5390                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5391                     if test "$enable_rpath" != no; then
5392                                                                   haveit=
5393                       for x in $rpathdirs; do
5394                         if test "X$x" = "X$dir"; then
5395                           haveit=yes
5396                           break
5397                         fi
5398                       done
5399                       if test -z "$haveit"; then
5400                         rpathdirs="$rpathdirs $dir"
5401                       fi
5402                                                                   haveit=
5403                       for x in $ltrpathdirs; do
5404                         if test "X$x" = "X$dir"; then
5405                           haveit=yes
5406                           break
5407                         fi
5408                       done
5409                       if test -z "$haveit"; then
5410                         ltrpathdirs="$ltrpathdirs $dir"
5411                       fi
5412                     fi
5413                     ;;
5414                   -l*)
5415                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5416                     ;;
5417                   *.la)
5418                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5419                     ;;
5420                   *)
5421                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5422                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5423                     ;;
5424                 esac
5425               done
5426             fi
5427           else
5428                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5429             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5430           fi
5431         fi
5432       fi
5433     done
5434   done
5435   if test "X$rpathdirs" != "X"; then
5436     if test -n "$acl_hardcode_libdir_separator"; then
5437                         alldirs=
5438       for found_dir in $rpathdirs; do
5439         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5440       done
5441             acl_save_libdir="$libdir"
5442       libdir="$alldirs"
5443       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5444       libdir="$acl_save_libdir"
5445       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5446     else
5447             for found_dir in $rpathdirs; do
5448         acl_save_libdir="$libdir"
5449         libdir="$found_dir"
5450         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5451         libdir="$acl_save_libdir"
5452         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5453       done
5454     fi
5455   fi
5456   if test "X$ltrpathdirs" != "X"; then
5457             for found_dir in $ltrpathdirs; do
5458       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5459     done
5460   fi
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5493 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5494 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   gt_save_LIBS="$LIBS"
5498      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h.  */
5501 #include <CoreFoundation/CFPreferences.h>
5502 int
5503 main ()
5504 {
5505 CFPreferencesCopyAppValue(NULL, NULL)
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 if ac_fn_c_try_link "$LINENO"; then :
5511   gt_cv_func_CFPreferencesCopyAppValue=yes
5512 else
5513   gt_cv_func_CFPreferencesCopyAppValue=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext \
5516     conftest$ac_exeext conftest.$ac_ext
5517      LIBS="$gt_save_LIBS"
5518 fi
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5520 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5521   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5522
5523 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5524
5525   fi
5526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5527 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5528 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   gt_save_LIBS="$LIBS"
5532      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h.  */
5535 #include <CoreFoundation/CFLocale.h>
5536 int
5537 main ()
5538 {
5539 CFLocaleCopyCurrent();
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_link "$LINENO"; then :
5545   gt_cv_func_CFLocaleCopyCurrent=yes
5546 else
5547   gt_cv_func_CFLocaleCopyCurrent=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext \
5550     conftest$ac_exeext conftest.$ac_ext
5551      LIBS="$gt_save_LIBS"
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5554 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5555   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5556
5557 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5558
5559   fi
5560   INTL_MACOSX_LIBS=
5561   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5562     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5563   fi
5564
5565
5566
5567
5568
5569
5570   LIBINTL=
5571   LTLIBINTL=
5572   POSUB=
5573
5574     case " $gt_needs " in
5575     *" need-formatstring-macros "*) gt_api_version=3 ;;
5576     *" need-ngettext "*) gt_api_version=2 ;;
5577     *) gt_api_version=1 ;;
5578   esac
5579   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5580   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5581
5582     if test "$USE_NLS" = "yes"; then
5583     gt_use_preinstalled_gnugettext=no
5584
5585
5586         if test $gt_api_version -ge 3; then
5587           gt_revision_test_code='
5588 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5589 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5590 #endif
5591 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5592 '
5593         else
5594           gt_revision_test_code=
5595         fi
5596         if test $gt_api_version -ge 2; then
5597           gt_expression_test_code=' + * ngettext ("", "", 0)'
5598         else
5599           gt_expression_test_code=
5600         fi
5601
5602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5603 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5604 if eval \${$gt_func_gnugettext_libc+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h.  */
5609
5610 #include <libintl.h>
5611 $gt_revision_test_code
5612 extern int _nl_msg_cat_cntr;
5613 extern int *_nl_domain_bindings;
5614
5615 int
5616 main ()
5617 {
5618
5619 bindtextdomain ("", "");
5620 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_link "$LINENO"; then :
5627   eval "$gt_func_gnugettext_libc=yes"
5628 else
5629   eval "$gt_func_gnugettext_libc=no"
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext \
5632     conftest$ac_exeext conftest.$ac_ext
5633 fi
5634 eval ac_res=\$$gt_func_gnugettext_libc
5635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5636 $as_echo "$ac_res" >&6; }
5637
5638         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5639
5640
5641
5642
5643
5644           am_save_CPPFLAGS="$CPPFLAGS"
5645
5646   for element in $INCICONV; do
5647     haveit=
5648     for x in $CPPFLAGS; do
5649
5650   acl_save_prefix="$prefix"
5651   prefix="$acl_final_prefix"
5652   acl_save_exec_prefix="$exec_prefix"
5653   exec_prefix="$acl_final_exec_prefix"
5654   eval x=\"$x\"
5655   exec_prefix="$acl_save_exec_prefix"
5656   prefix="$acl_save_prefix"
5657
5658       if test "X$x" = "X$element"; then
5659         haveit=yes
5660         break
5661       fi
5662     done
5663     if test -z "$haveit"; then
5664       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5665     fi
5666   done
5667
5668
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5670 $as_echo_n "checking for iconv... " >&6; }
5671 if ${am_cv_func_iconv+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674
5675     am_cv_func_iconv="no, consider installing GNU libiconv"
5676     am_cv_lib_iconv=no
5677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h.  */
5679
5680 #include <stdlib.h>
5681 #include <iconv.h>
5682
5683 int
5684 main ()
5685 {
5686 iconv_t cd = iconv_open("","");
5687            iconv(cd,NULL,NULL,NULL,NULL);
5688            iconv_close(cd);
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_link "$LINENO"; then :
5694   am_cv_func_iconv=yes
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext \
5697     conftest$ac_exeext conftest.$ac_ext
5698     if test "$am_cv_func_iconv" != yes; then
5699       am_save_LIBS="$LIBS"
5700       LIBS="$LIBS $LIBICONV"
5701       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703
5704 #include <stdlib.h>
5705 #include <iconv.h>
5706
5707 int
5708 main ()
5709 {
5710 iconv_t cd = iconv_open("","");
5711              iconv(cd,NULL,NULL,NULL,NULL);
5712              iconv_close(cd);
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_link "$LINENO"; then :
5718   am_cv_lib_iconv=yes
5719         am_cv_func_iconv=yes
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext \
5722     conftest$ac_exeext conftest.$ac_ext
5723       LIBS="$am_save_LIBS"
5724     fi
5725
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5728 $as_echo "$am_cv_func_iconv" >&6; }
5729   if test "$am_cv_func_iconv" = yes; then
5730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5731 $as_echo_n "checking for working iconv... " >&6; }
5732 if ${am_cv_func_iconv_works+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735
5736                   am_save_LIBS="$LIBS"
5737       if test $am_cv_lib_iconv = yes; then
5738         LIBS="$LIBS $LIBICONV"
5739       fi
5740       if test "$cross_compiling" = yes; then :
5741
5742          case "$host_os" in
5743            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5744            *)            am_cv_func_iconv_works="guessing yes" ;;
5745          esac
5746
5747 else
5748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h.  */
5750
5751 #include <iconv.h>
5752 #include <string.h>
5753 int main ()
5754 {
5755   int result = 0;
5756   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5757      returns.  */
5758   {
5759     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5760     if (cd_utf8_to_88591 != (iconv_t)(-1))
5761       {
5762         static const char input[] = "\342\202\254"; /* EURO SIGN */
5763         char buf[10];
5764         const char *inptr = input;
5765         size_t inbytesleft = strlen (input);
5766         char *outptr = buf;
5767         size_t outbytesleft = sizeof (buf);
5768         size_t res = iconv (cd_utf8_to_88591,
5769                             (char **) &inptr, &inbytesleft,
5770                             &outptr, &outbytesleft);
5771         if (res == 0)
5772           result |= 1;
5773         iconv_close (cd_utf8_to_88591);
5774       }
5775   }
5776   /* Test against Solaris 10 bug: Failures are not distinguishable from
5777      successful returns.  */
5778   {
5779     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5780     if (cd_ascii_to_88591 != (iconv_t)(-1))
5781       {
5782         static const char input[] = "\263";
5783         char buf[10];
5784         const char *inptr = input;
5785         size_t inbytesleft = strlen (input);
5786         char *outptr = buf;
5787         size_t outbytesleft = sizeof (buf);
5788         size_t res = iconv (cd_ascii_to_88591,
5789                             (char **) &inptr, &inbytesleft,
5790                             &outptr, &outbytesleft);
5791         if (res == 0)
5792           result |= 2;
5793         iconv_close (cd_ascii_to_88591);
5794       }
5795   }
5796   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
5797   {
5798     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5799     if (cd_88591_to_utf8 != (iconv_t)(-1))
5800       {
5801         static const char input[] = "\304";
5802         static char buf[2] = { (char)0xDE, (char)0xAD };
5803         const char *inptr = input;
5804         size_t inbytesleft = 1;
5805         char *outptr = buf;
5806         size_t outbytesleft = 1;
5807         size_t res = iconv (cd_88591_to_utf8,
5808                             (char **) &inptr, &inbytesleft,
5809                             &outptr, &outbytesleft);
5810         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5811           result |= 4;
5812         iconv_close (cd_88591_to_utf8);
5813       }
5814   }
5815 #if 0 /* This bug could be worked around by the caller.  */
5816   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5817   {
5818     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5819     if (cd_88591_to_utf8 != (iconv_t)(-1))
5820       {
5821         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5822         char buf[50];
5823         const char *inptr = input;
5824         size_t inbytesleft = strlen (input);
5825         char *outptr = buf;
5826         size_t outbytesleft = sizeof (buf);
5827         size_t res = iconv (cd_88591_to_utf8,
5828                             (char **) &inptr, &inbytesleft,
5829                             &outptr, &outbytesleft);
5830         if ((int)res > 0)
5831           result |= 8;
5832         iconv_close (cd_88591_to_utf8);
5833       }
5834   }
5835 #endif
5836   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5837      provided.  */
5838   if (/* Try standardized names.  */
5839       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5840       /* Try IRIX, OSF/1 names.  */
5841       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5842       /* Try AIX names.  */
5843       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5844       /* Try HP-UX names.  */
5845       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5846     result |= 16;
5847   return result;
5848 }
5849 _ACEOF
5850 if ac_fn_c_try_run "$LINENO"; then :
5851   am_cv_func_iconv_works=yes
5852 else
5853   am_cv_func_iconv_works=no
5854 fi
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5856   conftest.$ac_objext conftest.beam conftest.$ac_ext
5857 fi
5858
5859       LIBS="$am_save_LIBS"
5860
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5863 $as_echo "$am_cv_func_iconv_works" >&6; }
5864     case "$am_cv_func_iconv_works" in
5865       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5866       *)   am_func_iconv=yes ;;
5867     esac
5868   else
5869     am_func_iconv=no am_cv_lib_iconv=no
5870   fi
5871   if test "$am_func_iconv" = yes; then
5872
5873 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5874
5875   fi
5876   if test "$am_cv_lib_iconv" = yes; then
5877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5878 $as_echo_n "checking how to link with libiconv... " >&6; }
5879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5880 $as_echo "$LIBICONV" >&6; }
5881   else
5882             CPPFLAGS="$am_save_CPPFLAGS"
5883     LIBICONV=
5884     LTLIBICONV=
5885   fi
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897     use_additional=yes
5898
5899   acl_save_prefix="$prefix"
5900   prefix="$acl_final_prefix"
5901   acl_save_exec_prefix="$exec_prefix"
5902   exec_prefix="$acl_final_exec_prefix"
5903
5904     eval additional_includedir=\"$includedir\"
5905     eval additional_libdir=\"$libdir\"
5906
5907   exec_prefix="$acl_save_exec_prefix"
5908   prefix="$acl_save_prefix"
5909
5910
5911 # Check whether --with-libintl-prefix was given.
5912 if test "${with_libintl_prefix+set}" = set; then :
5913   withval=$with_libintl_prefix;
5914     if test "X$withval" = "Xno"; then
5915       use_additional=no
5916     else
5917       if test "X$withval" = "X"; then
5918
5919   acl_save_prefix="$prefix"
5920   prefix="$acl_final_prefix"
5921   acl_save_exec_prefix="$exec_prefix"
5922   exec_prefix="$acl_final_exec_prefix"
5923
5924           eval additional_includedir=\"$includedir\"
5925           eval additional_libdir=\"$libdir\"
5926
5927   exec_prefix="$acl_save_exec_prefix"
5928   prefix="$acl_save_prefix"
5929
5930       else
5931         additional_includedir="$withval/include"
5932         additional_libdir="$withval/$acl_libdirstem"
5933         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5934            && ! test -d "$withval/$acl_libdirstem"; then
5935           additional_libdir="$withval/$acl_libdirstem2"
5936         fi
5937       fi
5938     fi
5939
5940 fi
5941
5942       LIBINTL=
5943   LTLIBINTL=
5944   INCINTL=
5945   LIBINTL_PREFIX=
5946       HAVE_LIBINTL=
5947   rpathdirs=
5948   ltrpathdirs=
5949   names_already_handled=
5950   names_next_round='intl '
5951   while test -n "$names_next_round"; do
5952     names_this_round="$names_next_round"
5953     names_next_round=
5954     for name in $names_this_round; do
5955       already_handled=
5956       for n in $names_already_handled; do
5957         if test "$n" = "$name"; then
5958           already_handled=yes
5959           break
5960         fi
5961       done
5962       if test -z "$already_handled"; then
5963         names_already_handled="$names_already_handled $name"
5964                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5965         eval value=\"\$HAVE_LIB$uppername\"
5966         if test -n "$value"; then
5967           if test "$value" = yes; then
5968             eval value=\"\$LIB$uppername\"
5969             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5970             eval value=\"\$LTLIB$uppername\"
5971             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5972           else
5973                                     :
5974           fi
5975         else
5976                               found_dir=
5977           found_la=
5978           found_so=
5979           found_a=
5980           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5981           if test -n "$acl_shlibext"; then
5982             shrext=".$acl_shlibext"             # typically: shrext=.so
5983           else
5984             shrext=
5985           fi
5986           if test $use_additional = yes; then
5987             dir="$additional_libdir"
5988                                     if test -n "$acl_shlibext"; then
5989               if test -f "$dir/$libname$shrext"; then
5990                 found_dir="$dir"
5991                 found_so="$dir/$libname$shrext"
5992               else
5993                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5994                   ver=`(cd "$dir" && \
5995                         for f in "$libname$shrext".*; do echo "$f"; done \
5996                         | sed -e "s,^$libname$shrext\\\\.,," \
5997                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5998                         | sed 1q ) 2>/dev/null`
5999                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6000                     found_dir="$dir"
6001                     found_so="$dir/$libname$shrext.$ver"
6002                   fi
6003                 else
6004                   eval library_names=\"$acl_library_names_spec\"
6005                   for f in $library_names; do
6006                     if test -f "$dir/$f"; then
6007                       found_dir="$dir"
6008                       found_so="$dir/$f"
6009                       break
6010                     fi
6011                   done
6012                 fi
6013               fi
6014             fi
6015                         if test "X$found_dir" = "X"; then
6016               if test -f "$dir/$libname.$acl_libext"; then
6017                 found_dir="$dir"
6018                 found_a="$dir/$libname.$acl_libext"
6019               fi
6020             fi
6021             if test "X$found_dir" != "X"; then
6022               if test -f "$dir/$libname.la"; then
6023                 found_la="$dir/$libname.la"
6024               fi
6025             fi
6026           fi
6027           if test "X$found_dir" = "X"; then
6028             for x in $LDFLAGS $LTLIBINTL; do
6029
6030   acl_save_prefix="$prefix"
6031   prefix="$acl_final_prefix"
6032   acl_save_exec_prefix="$exec_prefix"
6033   exec_prefix="$acl_final_exec_prefix"
6034   eval x=\"$x\"
6035   exec_prefix="$acl_save_exec_prefix"
6036   prefix="$acl_save_prefix"
6037
6038               case "$x" in
6039                 -L*)
6040                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6041                                     if test -n "$acl_shlibext"; then
6042                     if test -f "$dir/$libname$shrext"; then
6043                       found_dir="$dir"
6044                       found_so="$dir/$libname$shrext"
6045                     else
6046                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6047                         ver=`(cd "$dir" && \
6048                               for f in "$libname$shrext".*; do echo "$f"; done \
6049                               | sed -e "s,^$libname$shrext\\\\.,," \
6050                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6051                               | sed 1q ) 2>/dev/null`
6052                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6053                           found_dir="$dir"
6054                           found_so="$dir/$libname$shrext.$ver"
6055                         fi
6056                       else
6057                         eval library_names=\"$acl_library_names_spec\"
6058                         for f in $library_names; do
6059                           if test -f "$dir/$f"; then
6060                             found_dir="$dir"
6061                             found_so="$dir/$f"
6062                             break
6063                           fi
6064                         done
6065                       fi
6066                     fi
6067                   fi
6068                                     if test "X$found_dir" = "X"; then
6069                     if test -f "$dir/$libname.$acl_libext"; then
6070                       found_dir="$dir"
6071                       found_a="$dir/$libname.$acl_libext"
6072                     fi
6073                   fi
6074                   if test "X$found_dir" != "X"; then
6075                     if test -f "$dir/$libname.la"; then
6076                       found_la="$dir/$libname.la"
6077                     fi
6078                   fi
6079                   ;;
6080               esac
6081               if test "X$found_dir" != "X"; then
6082                 break
6083               fi
6084             done
6085           fi
6086           if test "X$found_dir" != "X"; then
6087                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6088             if test "X$found_so" != "X"; then
6089                                                         if test "$enable_rpath" = no \
6090                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6091                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6092                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6093               else
6094                                                                                 haveit=
6095                 for x in $ltrpathdirs; do
6096                   if test "X$x" = "X$found_dir"; then
6097                     haveit=yes
6098                     break
6099                   fi
6100                 done
6101                 if test -z "$haveit"; then
6102                   ltrpathdirs="$ltrpathdirs $found_dir"
6103                 fi
6104                                 if test "$acl_hardcode_direct" = yes; then
6105                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6106                 else
6107                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6108                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6109                                                             haveit=
6110                     for x in $rpathdirs; do
6111                       if test "X$x" = "X$found_dir"; then
6112                         haveit=yes
6113                         break
6114                       fi
6115                     done
6116                     if test -z "$haveit"; then
6117                       rpathdirs="$rpathdirs $found_dir"
6118                     fi
6119                   else
6120                                                                                 haveit=
6121                     for x in $LDFLAGS $LIBINTL; do
6122
6123   acl_save_prefix="$prefix"
6124   prefix="$acl_final_prefix"
6125   acl_save_exec_prefix="$exec_prefix"
6126   exec_prefix="$acl_final_exec_prefix"
6127   eval x=\"$x\"
6128   exec_prefix="$acl_save_exec_prefix"
6129   prefix="$acl_save_prefix"
6130
6131                       if test "X$x" = "X-L$found_dir"; then
6132                         haveit=yes
6133                         break
6134                       fi
6135                     done
6136                     if test -z "$haveit"; then
6137                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6138                     fi
6139                     if test "$acl_hardcode_minus_L" != no; then
6140                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6141                     else
6142                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6143                     fi
6144                   fi
6145                 fi
6146               fi
6147             else
6148               if test "X$found_a" != "X"; then
6149                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6150               else
6151                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6152               fi
6153             fi
6154                         additional_includedir=
6155             case "$found_dir" in
6156               */$acl_libdirstem | */$acl_libdirstem/)
6157                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6158                 if test "$name" = 'intl'; then
6159                   LIBINTL_PREFIX="$basedir"
6160                 fi
6161                 additional_includedir="$basedir/include"
6162                 ;;
6163               */$acl_libdirstem2 | */$acl_libdirstem2/)
6164                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6165                 if test "$name" = 'intl'; then
6166                   LIBINTL_PREFIX="$basedir"
6167                 fi
6168                 additional_includedir="$basedir/include"
6169                 ;;
6170             esac
6171             if test "X$additional_includedir" != "X"; then
6172                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6173                 haveit=
6174                 if test "X$additional_includedir" = "X/usr/local/include"; then
6175                   if test -n "$GCC"; then
6176                     case $host_os in
6177                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6178                     esac
6179                   fi
6180                 fi
6181                 if test -z "$haveit"; then
6182                   for x in $CPPFLAGS $INCINTL; do
6183
6184   acl_save_prefix="$prefix"
6185   prefix="$acl_final_prefix"
6186   acl_save_exec_prefix="$exec_prefix"
6187   exec_prefix="$acl_final_exec_prefix"
6188   eval x=\"$x\"
6189   exec_prefix="$acl_save_exec_prefix"
6190   prefix="$acl_save_prefix"
6191
6192                     if test "X$x" = "X-I$additional_includedir"; then
6193                       haveit=yes
6194                       break
6195                     fi
6196                   done
6197                   if test -z "$haveit"; then
6198                     if test -d "$additional_includedir"; then
6199                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6200                     fi
6201                   fi
6202                 fi
6203               fi
6204             fi
6205                         if test -n "$found_la"; then
6206                                                         save_libdir="$libdir"
6207               case "$found_la" in
6208                 */* | *\\*) . "$found_la" ;;
6209                 *) . "./$found_la" ;;
6210               esac
6211               libdir="$save_libdir"
6212                             for dep in $dependency_libs; do
6213                 case "$dep" in
6214                   -L*)
6215                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6216                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6217                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6218                       haveit=
6219                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6220                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6221                         if test -n "$GCC"; then
6222                           case $host_os in
6223                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6224                           esac
6225                         fi
6226                       fi
6227                       if test -z "$haveit"; then
6228                         haveit=
6229                         for x in $LDFLAGS $LIBINTL; do
6230
6231   acl_save_prefix="$prefix"
6232   prefix="$acl_final_prefix"
6233   acl_save_exec_prefix="$exec_prefix"
6234   exec_prefix="$acl_final_exec_prefix"
6235   eval x=\"$x\"
6236   exec_prefix="$acl_save_exec_prefix"
6237   prefix="$acl_save_prefix"
6238
6239                           if test "X$x" = "X-L$additional_libdir"; then
6240                             haveit=yes
6241                             break
6242                           fi
6243                         done
6244                         if test -z "$haveit"; then
6245                           if test -d "$additional_libdir"; then
6246                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6247                           fi
6248                         fi
6249                         haveit=
6250                         for x in $LDFLAGS $LTLIBINTL; do
6251
6252   acl_save_prefix="$prefix"
6253   prefix="$acl_final_prefix"
6254   acl_save_exec_prefix="$exec_prefix"
6255   exec_prefix="$acl_final_exec_prefix"
6256   eval x=\"$x\"
6257   exec_prefix="$acl_save_exec_prefix"
6258   prefix="$acl_save_prefix"
6259
6260                           if test "X$x" = "X-L$additional_libdir"; then
6261                             haveit=yes
6262                             break
6263                           fi
6264                         done
6265                         if test -z "$haveit"; then
6266                           if test -d "$additional_libdir"; then
6267                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6268                           fi
6269                         fi
6270                       fi
6271                     fi
6272                     ;;
6273                   -R*)
6274                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6275                     if test "$enable_rpath" != no; then
6276                                                                   haveit=
6277                       for x in $rpathdirs; do
6278                         if test "X$x" = "X$dir"; then
6279                           haveit=yes
6280                           break
6281                         fi
6282                       done
6283                       if test -z "$haveit"; then
6284                         rpathdirs="$rpathdirs $dir"
6285                       fi
6286                                                                   haveit=
6287                       for x in $ltrpathdirs; do
6288                         if test "X$x" = "X$dir"; then
6289                           haveit=yes
6290                           break
6291                         fi
6292                       done
6293                       if test -z "$haveit"; then
6294                         ltrpathdirs="$ltrpathdirs $dir"
6295                       fi
6296                     fi
6297                     ;;
6298                   -l*)
6299                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6300                     ;;
6301                   *.la)
6302                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6303                     ;;
6304                   *)
6305                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6306                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6307                     ;;
6308                 esac
6309               done
6310             fi
6311           else
6312                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6313             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6314           fi
6315         fi
6316       fi
6317     done
6318   done
6319   if test "X$rpathdirs" != "X"; then
6320     if test -n "$acl_hardcode_libdir_separator"; then
6321                         alldirs=
6322       for found_dir in $rpathdirs; do
6323         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6324       done
6325             acl_save_libdir="$libdir"
6326       libdir="$alldirs"
6327       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6328       libdir="$acl_save_libdir"
6329       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6330     else
6331             for found_dir in $rpathdirs; do
6332         acl_save_libdir="$libdir"
6333         libdir="$found_dir"
6334         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6335         libdir="$acl_save_libdir"
6336         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6337       done
6338     fi
6339   fi
6340   if test "X$ltrpathdirs" != "X"; then
6341             for found_dir in $ltrpathdirs; do
6342       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6343     done
6344   fi
6345
6346
6347
6348
6349
6350
6351           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6352 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6353 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   gt_save_CPPFLAGS="$CPPFLAGS"
6357             CPPFLAGS="$CPPFLAGS $INCINTL"
6358             gt_save_LIBS="$LIBS"
6359             LIBS="$LIBS $LIBINTL"
6360                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h.  */
6362
6363 #include <libintl.h>
6364 $gt_revision_test_code
6365 extern int _nl_msg_cat_cntr;
6366 extern
6367 #ifdef __cplusplus
6368 "C"
6369 #endif
6370 const char *_nl_expand_alias (const char *);
6371
6372 int
6373 main ()
6374 {
6375
6376 bindtextdomain ("", "");
6377 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6378
6379   ;
6380   return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384   eval "$gt_func_gnugettext_libintl=yes"
6385 else
6386   eval "$gt_func_gnugettext_libintl=no"
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389     conftest$ac_exeext conftest.$ac_ext
6390                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6391               LIBS="$LIBS $LIBICONV"
6392               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h.  */
6394
6395 #include <libintl.h>
6396 $gt_revision_test_code
6397 extern int _nl_msg_cat_cntr;
6398 extern
6399 #ifdef __cplusplus
6400 "C"
6401 #endif
6402 const char *_nl_expand_alias (const char *);
6403
6404 int
6405 main ()
6406 {
6407
6408 bindtextdomain ("", "");
6409 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6410
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_c_try_link "$LINENO"; then :
6416   LIBINTL="$LIBINTL $LIBICONV"
6417                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6418                  eval "$gt_func_gnugettext_libintl=yes"
6419
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext \
6422     conftest$ac_exeext conftest.$ac_ext
6423             fi
6424             CPPFLAGS="$gt_save_CPPFLAGS"
6425             LIBS="$gt_save_LIBS"
6426 fi
6427 eval ac_res=\$$gt_func_gnugettext_libintl
6428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430         fi
6431
6432                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6433            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6434                 && test "$PACKAGE" != gettext-runtime \
6435                 && test "$PACKAGE" != gettext-tools; }; then
6436           gt_use_preinstalled_gnugettext=yes
6437         else
6438                     LIBINTL=
6439           LTLIBINTL=
6440           INCINTL=
6441         fi
6442
6443
6444
6445     if test -n "$INTL_MACOSX_LIBS"; then
6446       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6447          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6448                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6449         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6450       fi
6451     fi
6452
6453     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6454        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6455
6456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6457
6458     else
6459       USE_NLS=no
6460     fi
6461   fi
6462
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6464 $as_echo_n "checking whether to use NLS... " >&6; }
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6466 $as_echo "$USE_NLS" >&6; }
6467   if test "$USE_NLS" = "yes"; then
6468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6469 $as_echo_n "checking where the gettext function comes from... " >&6; }
6470     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6471       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6472         gt_source="external libintl"
6473       else
6474         gt_source="libc"
6475       fi
6476     else
6477       gt_source="included intl directory"
6478     fi
6479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6480 $as_echo "$gt_source" >&6; }
6481   fi
6482
6483   if test "$USE_NLS" = "yes"; then
6484
6485     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6486       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6488 $as_echo_n "checking how to link with libintl... " >&6; }
6489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6490 $as_echo "$LIBINTL" >&6; }
6491
6492   for element in $INCINTL; do
6493     haveit=
6494     for x in $CPPFLAGS; do
6495
6496   acl_save_prefix="$prefix"
6497   prefix="$acl_final_prefix"
6498   acl_save_exec_prefix="$exec_prefix"
6499   exec_prefix="$acl_final_exec_prefix"
6500   eval x=\"$x\"
6501   exec_prefix="$acl_save_exec_prefix"
6502   prefix="$acl_save_prefix"
6503
6504       if test "X$x" = "X$element"; then
6505         haveit=yes
6506         break
6507       fi
6508     done
6509     if test -z "$haveit"; then
6510       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6511     fi
6512   done
6513
6514       fi
6515
6516
6517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6518
6519
6520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6521
6522     fi
6523
6524         POSUB=po
6525   fi
6526
6527
6528
6529     INTLLIBS="$LIBINTL"
6530
6531
6532
6533
6534
6535
6536
6537 ############### common
6538
6539
6540
6541
6542
6543
6544
6545
6546 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6547         if test -n "$ac_tool_prefix"; then
6548   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6553   $as_echo_n "(cached) " >&6
6554 else
6555   case $PKG_CONFIG in
6556   [\\/]* | ?:[\\/]*)
6557   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6558   ;;
6559   *)
6560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575   ;;
6576 esac
6577 fi
6578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6579 if test -n "$PKG_CONFIG"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6581 $as_echo "$PKG_CONFIG" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588 fi
6589 if test -z "$ac_cv_path_PKG_CONFIG"; then
6590   ac_pt_PKG_CONFIG=$PKG_CONFIG
6591   # Extract the first word of "pkg-config", so it can be a program name with args.
6592 set dummy pkg-config; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   case $ac_pt_PKG_CONFIG in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618   ;;
6619 esac
6620 fi
6621 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6622 if test -n "$ac_pt_PKG_CONFIG"; then
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6624 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6625 else
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630   if test "x$ac_pt_PKG_CONFIG" = x; then
6631     PKG_CONFIG=""
6632   else
6633     case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     PKG_CONFIG=$ac_pt_PKG_CONFIG
6640   fi
6641 else
6642   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6643 fi
6644
6645 fi
6646 if test -n "$PKG_CONFIG"; then
6647         _pkg_min_version=0.9.0
6648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6649 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6650         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6651                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652 $as_echo "yes" >&6; }
6653         else
6654                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656                 PKG_CONFIG=""
6657         fi
6658 fi
6659
6660 pkg_failed=no
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6662 $as_echo_n "checking for X11... " >&6; }
6663
6664 if test -n "$X11_CFLAGS"; then
6665     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6666  elif test -n "$PKG_CONFIG"; then
6667     if test -n "$PKG_CONFIG" && \
6668     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6669   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6670   ac_status=$?
6671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672   test $ac_status = 0; }; then
6673   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6674                       test "x$?" != "x0" && pkg_failed=yes
6675 else
6676   pkg_failed=yes
6677 fi
6678  else
6679     pkg_failed=untried
6680 fi
6681 if test -n "$X11_LIBS"; then
6682     pkg_cv_X11_LIBS="$X11_LIBS"
6683  elif test -n "$PKG_CONFIG"; then
6684     if test -n "$PKG_CONFIG" && \
6685     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6686   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6687   ac_status=$?
6688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689   test $ac_status = 0; }; then
6690   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6691                       test "x$?" != "x0" && pkg_failed=yes
6692 else
6693   pkg_failed=yes
6694 fi
6695  else
6696     pkg_failed=untried
6697 fi
6698
6699
6700
6701 if test $pkg_failed = yes; then
6702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704
6705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6706         _pkg_short_errors_supported=yes
6707 else
6708         _pkg_short_errors_supported=no
6709 fi
6710         if test $_pkg_short_errors_supported = yes; then
6711                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6712         else
6713                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6714         fi
6715         # Put the nasty error message in config.log where it belongs
6716         echo "$X11_PKG_ERRORS" >&5
6717
6718         as_fn_error $? "Package requirements (x11) were not met:
6719
6720 $X11_PKG_ERRORS
6721
6722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6723 installed software in a non-standard prefix.
6724
6725 Alternatively, you may set the environment variables X11_CFLAGS
6726 and X11_LIBS to avoid the need to call pkg-config.
6727 See the pkg-config man page for more details." "$LINENO" 5
6728 elif test $pkg_failed = untried; then
6729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6733 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6734 is in your PATH or set the PKG_CONFIG environment variable to the full
6735 path to pkg-config.
6736
6737 Alternatively, you may set the environment variables X11_CFLAGS
6738 and X11_LIBS to avoid the need to call pkg-config.
6739 See the pkg-config man page for more details.
6740
6741 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6742 See \`config.log' for more details" "$LINENO" 5; }
6743 else
6744         X11_CFLAGS=$pkg_cv_X11_CFLAGS
6745         X11_LIBS=$pkg_cv_X11_LIBS
6746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6747 $as_echo "yes" >&6; }
6748
6749 fi
6750
6751
6752
6753
6754 pkg_failed=no
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
6756 $as_echo_n "checking for XEXT... " >&6; }
6757
6758 if test -n "$XEXT_CFLAGS"; then
6759     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
6760  elif test -n "$PKG_CONFIG"; then
6761     if test -n "$PKG_CONFIG" && \
6762     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6763   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6764   ac_status=$?
6765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766   test $ac_status = 0; }; then
6767   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
6768                       test "x$?" != "x0" && pkg_failed=yes
6769 else
6770   pkg_failed=yes
6771 fi
6772  else
6773     pkg_failed=untried
6774 fi
6775 if test -n "$XEXT_LIBS"; then
6776     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
6777  elif test -n "$PKG_CONFIG"; then
6778     if test -n "$PKG_CONFIG" && \
6779     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6780   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6781   ac_status=$?
6782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783   test $ac_status = 0; }; then
6784   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
6785                       test "x$?" != "x0" && pkg_failed=yes
6786 else
6787   pkg_failed=yes
6788 fi
6789  else
6790     pkg_failed=untried
6791 fi
6792
6793
6794
6795 if test $pkg_failed = yes; then
6796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798
6799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6800         _pkg_short_errors_supported=yes
6801 else
6802         _pkg_short_errors_supported=no
6803 fi
6804         if test $_pkg_short_errors_supported = yes; then
6805                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
6806         else
6807                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
6808         fi
6809         # Put the nasty error message in config.log where it belongs
6810         echo "$XEXT_PKG_ERRORS" >&5
6811
6812         as_fn_error $? "Package requirements (xext) were not met:
6813
6814 $XEXT_PKG_ERRORS
6815
6816 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6817 installed software in a non-standard prefix.
6818
6819 Alternatively, you may set the environment variables XEXT_CFLAGS
6820 and XEXT_LIBS to avoid the need to call pkg-config.
6821 See the pkg-config man page for more details." "$LINENO" 5
6822 elif test $pkg_failed = untried; then
6823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6827 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6828 is in your PATH or set the PKG_CONFIG environment variable to the full
6829 path to pkg-config.
6830
6831 Alternatively, you may set the environment variables XEXT_CFLAGS
6832 and XEXT_LIBS to avoid the need to call pkg-config.
6833 See the pkg-config man page for more details.
6834
6835 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6836 See \`config.log' for more details" "$LINENO" 5; }
6837 else
6838         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
6839         XEXT_LIBS=$pkg_cv_XEXT_LIBS
6840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6842
6843 fi
6844
6845
6846
6847 # Checks GTK+ 3.0
6848
6849 pkg_failed=no
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6851 $as_echo_n "checking for GTK... " >&6; }
6852
6853 if test -n "$GTK_CFLAGS"; then
6854     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6855  elif test -n "$PKG_CONFIG"; then
6856     if test -n "$PKG_CONFIG" && \
6857     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6858   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6859   ac_status=$?
6860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861   test $ac_status = 0; }; then
6862   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
6863                       test "x$?" != "x0" && pkg_failed=yes
6864 else
6865   pkg_failed=yes
6866 fi
6867  else
6868     pkg_failed=untried
6869 fi
6870 if test -n "$GTK_LIBS"; then
6871     pkg_cv_GTK_LIBS="$GTK_LIBS"
6872  elif test -n "$PKG_CONFIG"; then
6873     if test -n "$PKG_CONFIG" && \
6874     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6875   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6876   ac_status=$?
6877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878   test $ac_status = 0; }; then
6879   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
6880                       test "x$?" != "x0" && pkg_failed=yes
6881 else
6882   pkg_failed=yes
6883 fi
6884  else
6885     pkg_failed=untried
6886 fi
6887
6888
6889
6890 if test $pkg_failed = yes; then
6891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893
6894 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6895         _pkg_short_errors_supported=yes
6896 else
6897         _pkg_short_errors_supported=no
6898 fi
6899         if test $_pkg_short_errors_supported = yes; then
6900                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6901         else
6902                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6903         fi
6904         # Put the nasty error message in config.log where it belongs
6905         echo "$GTK_PKG_ERRORS" >&5
6906
6907         as_fn_error $? "Package requirements (gtk+-3.0) were not met:
6908
6909 $GTK_PKG_ERRORS
6910
6911 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6912 installed software in a non-standard prefix.
6913
6914 Alternatively, you may set the environment variables GTK_CFLAGS
6915 and GTK_LIBS to avoid the need to call pkg-config.
6916 See the pkg-config man page for more details." "$LINENO" 5
6917 elif test $pkg_failed = untried; then
6918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6922 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6923 is in your PATH or set the PKG_CONFIG environment variable to the full
6924 path to pkg-config.
6925
6926 Alternatively, you may set the environment variables GTK_CFLAGS
6927 and GTK_LIBS to avoid the need to call pkg-config.
6928 See the pkg-config man page for more details.
6929
6930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6931 See \`config.log' for more details" "$LINENO" 5; }
6932 else
6933         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6934         GTK_LIBS=$pkg_cv_GTK_LIBS
6935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6936 $as_echo "yes" >&6; }
6937
6938 fi
6939 # ensure that only allowed headers are included
6940 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
6941 # ensure that no gtk deprecated symbols are used
6942 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
6943
6944 # ensure use of accessors
6945 GTK_CFLAGS+=" -DGSEAL_ENABLE "
6946
6947
6948
6949 # Checks CURL
6950
6951 pkg_failed=no
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
6953 $as_echo_n "checking for CURL... " >&6; }
6954
6955 if test -n "$CURL_CFLAGS"; then
6956     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
6957  elif test -n "$PKG_CONFIG"; then
6958     if test -n "$PKG_CONFIG" && \
6959     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6960   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6961   ac_status=$?
6962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963   test $ac_status = 0; }; then
6964   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
6965                       test "x$?" != "x0" && pkg_failed=yes
6966 else
6967   pkg_failed=yes
6968 fi
6969  else
6970     pkg_failed=untried
6971 fi
6972 if test -n "$CURL_LIBS"; then
6973     pkg_cv_CURL_LIBS="$CURL_LIBS"
6974  elif test -n "$PKG_CONFIG"; then
6975     if test -n "$PKG_CONFIG" && \
6976     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6977   ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6978   ac_status=$?
6979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980   test $ac_status = 0; }; then
6981   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
6982                       test "x$?" != "x0" && pkg_failed=yes
6983 else
6984   pkg_failed=yes
6985 fi
6986  else
6987     pkg_failed=untried
6988 fi
6989
6990
6991
6992 if test $pkg_failed = yes; then
6993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995
6996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6997         _pkg_short_errors_supported=yes
6998 else
6999         _pkg_short_errors_supported=no
7000 fi
7001         if test $_pkg_short_errors_supported = yes; then
7002                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
7003         else
7004                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
7005         fi
7006         # Put the nasty error message in config.log where it belongs
7007         echo "$CURL_PKG_ERRORS" >&5
7008
7009         as_fn_error $? "Package requirements (libcurl ) were not met:
7010
7011 $CURL_PKG_ERRORS
7012
7013 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7014 installed software in a non-standard prefix.
7015
7016 Alternatively, you may set the environment variables CURL_CFLAGS
7017 and CURL_LIBS to avoid the need to call pkg-config.
7018 See the pkg-config man page for more details." "$LINENO" 5
7019 elif test $pkg_failed = untried; then
7020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7024 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7025 is in your PATH or set the PKG_CONFIG environment variable to the full
7026 path to pkg-config.
7027
7028 Alternatively, you may set the environment variables CURL_CFLAGS
7029 and CURL_LIBS to avoid the need to call pkg-config.
7030 See the pkg-config man page for more details.
7031
7032 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7033 See \`config.log' for more details" "$LINENO" 5; }
7034 else
7035         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
7036         CURL_LIBS=$pkg_cv_CURL_LIBS
7037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7038 $as_echo "yes" >&6; }
7039
7040 fi
7041
7042
7043
7044 # Check JSON
7045 JSON_LIBS=
7046
7047 pkg_failed=no
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
7049 $as_echo_n "checking for JSON... " >&6; }
7050
7051 if test -n "$JSON_CFLAGS"; then
7052     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
7053  elif test -n "$PKG_CONFIG"; then
7054     if test -n "$PKG_CONFIG" && \
7055     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7056   ($PKG_CONFIG --exists --print-errors "json") 2>&5
7057   ac_status=$?
7058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059   test $ac_status = 0; }; then
7060   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7061                       test "x$?" != "x0" && pkg_failed=yes
7062 else
7063   pkg_failed=yes
7064 fi
7065  else
7066     pkg_failed=untried
7067 fi
7068 if test -n "$JSON_LIBS"; then
7069     pkg_cv_JSON_LIBS="$JSON_LIBS"
7070  elif test -n "$PKG_CONFIG"; then
7071     if test -n "$PKG_CONFIG" && \
7072     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7073   ($PKG_CONFIG --exists --print-errors "json") 2>&5
7074   ac_status=$?
7075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7076   test $ac_status = 0; }; then
7077   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7078                       test "x$?" != "x0" && pkg_failed=yes
7079 else
7080   pkg_failed=yes
7081 fi
7082  else
7083     pkg_failed=untried
7084 fi
7085
7086
7087
7088 if test $pkg_failed = yes; then
7089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091
7092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7093         _pkg_short_errors_supported=yes
7094 else
7095         _pkg_short_errors_supported=no
7096 fi
7097         if test $_pkg_short_errors_supported = yes; then
7098                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
7099         else
7100                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
7101         fi
7102         # Put the nasty error message in config.log where it belongs
7103         echo "$JSON_PKG_ERRORS" >&5
7104
7105         as_fn_error $? "Package requirements (json) were not met:
7106
7107 $JSON_PKG_ERRORS
7108
7109 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7110 installed software in a non-standard prefix.
7111
7112 Alternatively, you may set the environment variables JSON_CFLAGS
7113 and JSON_LIBS to avoid the need to call pkg-config.
7114 See the pkg-config man page for more details." "$LINENO" 5
7115 elif test $pkg_failed = untried; then
7116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7120 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7121 is in your PATH or set the PKG_CONFIG environment variable to the full
7122 path to pkg-config.
7123
7124 Alternatively, you may set the environment variables JSON_CFLAGS
7125 and JSON_LIBS to avoid the need to call pkg-config.
7126 See the pkg-config man page for more details.
7127
7128 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7129 See \`config.log' for more details" "$LINENO" 5; }
7130 else
7131         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7132         JSON_LIBS=$pkg_cv_JSON_LIBS
7133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7134 $as_echo "yes" >&6; }
7135
7136 fi
7137
7138
7139
7140 # Gsettings
7141
7142
7143   # Check whether --enable-schemas-compile was given.
7144 if test "${enable_schemas_compile+set}" = set; then :
7145   enableval=$enable_schemas_compile; case ${enableval} in
7146                   yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
7147                   no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7148                   *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7149                  esac
7150 fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7161         if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   case $PKG_CONFIG in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7193 if test -n "$PKG_CONFIG"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7195 $as_echo "$PKG_CONFIG" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 fi
7203 if test -z "$ac_cv_path_PKG_CONFIG"; then
7204   ac_pt_PKG_CONFIG=$PKG_CONFIG
7205   # Extract the first word of "pkg-config", so it can be a program name with args.
7206 set dummy pkg-config; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   case $ac_pt_PKG_CONFIG in
7213   [\\/]* | ?:[\\/]*)
7214   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7215   ;;
7216   *)
7217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222     for ac_exec_ext in '' $ac_executable_extensions; do
7223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229   done
7230 IFS=$as_save_IFS
7231
7232   ;;
7233 esac
7234 fi
7235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7236 if test -n "$ac_pt_PKG_CONFIG"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244   if test "x$ac_pt_PKG_CONFIG" = x; then
7245     PKG_CONFIG=""
7246   else
7247     case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253     PKG_CONFIG=$ac_pt_PKG_CONFIG
7254   fi
7255 else
7256   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7257 fi
7258
7259 fi
7260 if test -n "$PKG_CONFIG"; then
7261         _pkg_min_version=0.16
7262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7264         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7266 $as_echo "yes" >&6; }
7267         else
7268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270                 PKG_CONFIG=""
7271         fi
7272 fi
7273   gsettingsschemadir=${datadir}/glib-2.0/schemas
7274
7275   if test x$cross_compiling != xyes; then
7276     GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7277   else
7278     # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7279 set dummy glib-compile-schemas; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   case $GLIB_COMPILE_SCHEMAS in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7309 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7311 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318   fi
7319
7320   if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7321     as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7322   else
7323     :
7324   fi
7325
7326   GSETTINGS_RULES='
7327 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7328
7329 mostlyclean-am: clean-gsettings-schemas
7330
7331 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7332
7333 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7334         $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7335
7336 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7337 uninstall-am: uninstall-gsettings-schemas
7338 install-data-am: install-gsettings-schemas
7339
7340 .SECONDARY: $(gsettings_SCHEMAS)
7341
7342 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7343         @$(NORMAL_INSTALL)
7344         if test -n "$^"; then \
7345                 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7346                 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7347                 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7348         fi
7349
7350 uninstall-gsettings-schemas:
7351         @$(NORMAL_UNINSTALL)
7352         @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7353         files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7354         test -n "$$files" || exit 0; \
7355         echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7356         cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7357         test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7358
7359 clean-gsettings-schemas:
7360         rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7361
7362 ifdef gsettings_ENUM_NAMESPACE
7363 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7364         $(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 $@
7365 endif
7366 '
7367
7368
7369
7370
7371
7372
7373
7374 # Webkit
7375
7376 pkg_failed=no
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7378 $as_echo_n "checking for WEBKIT... " >&6; }
7379
7380 if test -n "$WEBKIT_CFLAGS"; then
7381     pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
7382  elif test -n "$PKG_CONFIG"; then
7383     if test -n "$PKG_CONFIG" && \
7384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkitgtk-3.0\""; } >&5
7385   ($PKG_CONFIG --exists --print-errors "webkitgtk-3.0") 2>&5
7386   ac_status=$?
7387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388   test $ac_status = 0; }; then
7389   pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkitgtk-3.0" 2>/dev/null`
7390                       test "x$?" != "x0" && pkg_failed=yes
7391 else
7392   pkg_failed=yes
7393 fi
7394  else
7395     pkg_failed=untried
7396 fi
7397 if test -n "$WEBKIT_LIBS"; then
7398     pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
7399  elif test -n "$PKG_CONFIG"; then
7400     if test -n "$PKG_CONFIG" && \
7401     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkitgtk-3.0\""; } >&5
7402   ($PKG_CONFIG --exists --print-errors "webkitgtk-3.0") 2>&5
7403   ac_status=$?
7404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405   test $ac_status = 0; }; then
7406   pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkitgtk-3.0" 2>/dev/null`
7407                       test "x$?" != "x0" && pkg_failed=yes
7408 else
7409   pkg_failed=yes
7410 fi
7411  else
7412     pkg_failed=untried
7413 fi
7414
7415
7416
7417 if test $pkg_failed = yes; then
7418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420
7421 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7422         _pkg_short_errors_supported=yes
7423 else
7424         _pkg_short_errors_supported=no
7425 fi
7426         if test $_pkg_short_errors_supported = yes; then
7427                 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkitgtk-3.0" 2>&1`
7428         else
7429                 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkitgtk-3.0" 2>&1`
7430         fi
7431         # Put the nasty error message in config.log where it belongs
7432         echo "$WEBKIT_PKG_ERRORS" >&5
7433
7434         as_fn_error $? "Package requirements (webkitgtk-3.0) were not met:
7435
7436 $WEBKIT_PKG_ERRORS
7437
7438 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7439 installed software in a non-standard prefix.
7440
7441 Alternatively, you may set the environment variables WEBKIT_CFLAGS
7442 and WEBKIT_LIBS to avoid the need to call pkg-config.
7443 See the pkg-config man page for more details." "$LINENO" 5
7444 elif test $pkg_failed = untried; then
7445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7449 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7450 is in your PATH or set the PKG_CONFIG environment variable to the full
7451 path to pkg-config.
7452
7453 Alternatively, you may set the environment variables WEBKIT_CFLAGS
7454 and WEBKIT_LIBS to avoid the need to call pkg-config.
7455 See the pkg-config man page for more details.
7456
7457 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7458 See \`config.log' for more details" "$LINENO" 5; }
7459 else
7460         WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
7461         WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
7462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463 $as_echo "yes" >&6; }
7464
7465 fi
7466
7467
7468
7469 # Checks pthread
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7471 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7472 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lpthread  $LIBS"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h.  */
7479
7480 /* Override any GCC internal prototype to avoid an error.
7481    Use char because int might match the return type of a GCC
7482    builtin and then its argument prototype would still apply.  */
7483 #ifdef __cplusplus
7484 extern "C"
7485 #endif
7486 char pthread_create ();
7487 int
7488 main ()
7489 {
7490 return pthread_create ();
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496   ac_cv_lib_pthread_pthread_create=yes
7497 else
7498   ac_cv_lib_pthread_pthread_create=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501     conftest$ac_exeext conftest.$ac_ext
7502 LIBS=$ac_check_lib_save_LIBS
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7505 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7506 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7507   cat >>confdefs.h <<_ACEOF
7508 #define HAVE_LIBPTHREAD 1
7509 _ACEOF
7510
7511   LIBS="-lpthread $LIBS"
7512
7513 fi
7514
7515 PTHREAD_LIBS=-pthread
7516
7517
7518 ac_config_files="$ac_config_files Makefile doc/Makefile icons/hicolor/scalable/Makefile po/Makefile.in src/Makefile src/glade/Makefile tests/Makefile"
7519
7520
7521 for ac_prog in help2man
7522 do
7523   # Extract the first word of "$ac_prog", so it can be a program name with args.
7524 set dummy $ac_prog; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_HELP2MAN+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   if test -n "$HELP2MAN"; then
7531   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   test -z "$as_dir" && as_dir=.
7538     for ac_exec_ext in '' $ac_executable_extensions; do
7539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540     ac_cv_prog_HELP2MAN="$ac_prog"
7541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542     break 2
7543   fi
7544 done
7545   done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 HELP2MAN=$ac_cv_prog_HELP2MAN
7551 if test -n "$HELP2MAN"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7553 $as_echo "$HELP2MAN" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559
7560   test -n "$HELP2MAN" && break
7561 done
7562
7563
7564 # Extract the first word of "cppcheck", so it can be a program name with args.
7565 set dummy cppcheck; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
7569   $as_echo_n "(cached) " >&6
7570 else
7571   if test -n "$HAVE_CPPCHECK"; then
7572   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579     for ac_exec_ext in '' $ac_executable_extensions; do
7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581     ac_cv_prog_HAVE_CPPCHECK="yes"
7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586   done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
7592 if test -n "$HAVE_CPPCHECK"; then
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
7594 $as_echo "$HAVE_CPPCHECK" >&6; }
7595 else
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600
7601  if test -n "$HAVE_CPPCHECK"; then
7602   CPPCHECK_TRUE=
7603   CPPCHECK_FALSE='#'
7604 else
7605   CPPCHECK_TRUE='#'
7606   CPPCHECK_FALSE=
7607 fi
7608
7609
7610 cat >confcache <<\_ACEOF
7611 # This file is a shell script that caches the results of configure
7612 # tests run on this system so they can be shared between configure
7613 # scripts and configure runs, see configure's option --config-cache.
7614 # It is not useful on other systems.  If it contains results you don't
7615 # want to keep, you may remove or edit it.
7616 #
7617 # config.status only pays attention to the cache file if you give it
7618 # the --recheck option to rerun configure.
7619 #
7620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7622 # following values.
7623
7624 _ACEOF
7625
7626 # The following way of writing the cache mishandles newlines in values,
7627 # but we know of no workaround that is simple, portable, and efficient.
7628 # So, we kill variables containing newlines.
7629 # Ultrix sh set writes to stderr and can't be redirected directly,
7630 # and sets the high bit in the cache file unless we assign to the vars.
7631 (
7632   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7633     eval ac_val=\$$ac_var
7634     case $ac_val in #(
7635     *${as_nl}*)
7636       case $ac_var in #(
7637       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7639       esac
7640       case $ac_var in #(
7641       _ | IFS | as_nl) ;; #(
7642       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7643       *) { eval $ac_var=; unset $ac_var;} ;;
7644       esac ;;
7645     esac
7646   done
7647
7648   (set) 2>&1 |
7649     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7650     *${as_nl}ac_space=\ *)
7651       # `set' does not quote correctly, so add quotes: double-quote
7652       # substitution turns \\\\ into \\, and sed turns \\ into \.
7653       sed -n \
7654         "s/'/'\\\\''/g;
7655           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7656       ;; #(
7657     *)
7658       # `set' quotes correctly as required by POSIX, so do not add quotes.
7659       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7660       ;;
7661     esac |
7662     sort
7663 ) |
7664   sed '
7665      /^ac_cv_env_/b end
7666      t clear
7667      :clear
7668      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7669      t end
7670      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7671      :end' >>confcache
7672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7673   if test -w "$cache_file"; then
7674     if test "x$cache_file" != "x/dev/null"; then
7675       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7676 $as_echo "$as_me: updating cache $cache_file" >&6;}
7677       if test ! -f "$cache_file" || test -h "$cache_file"; then
7678         cat confcache >"$cache_file"
7679       else
7680         case $cache_file in #(
7681         */* | ?:*)
7682           mv -f confcache "$cache_file"$$ &&
7683           mv -f "$cache_file"$$ "$cache_file" ;; #(
7684         *)
7685           mv -f confcache "$cache_file" ;;
7686         esac
7687       fi
7688     fi
7689   else
7690     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7692   fi
7693 fi
7694 rm -f confcache
7695
7696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7697 # Let make expand exec_prefix.
7698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7699
7700 DEFS=-DHAVE_CONFIG_H
7701
7702 ac_libobjs=
7703 ac_ltlibobjs=
7704 U=
7705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7706   # 1. Remove the extension, and $U if already installed.
7707   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7708   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7709   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7710   #    will be set to the directory where LIBOBJS objects are built.
7711   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7712   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7713 done
7714 LIBOBJS=$ac_libobjs
7715
7716 LTLIBOBJS=$ac_ltlibobjs
7717
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7720 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7721    if test -n "$am_sleep_pid"; then
7722      # Hide warnings about reused PIDs.
7723      wait $am_sleep_pid 2>/dev/null
7724    fi
7725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7726 $as_echo "done" >&6; }
7727  if test -n "$EXEEXT"; then
7728   am__EXEEXT_TRUE=
7729   am__EXEEXT_FALSE='#'
7730 else
7731   am__EXEEXT_TRUE='#'
7732   am__EXEEXT_FALSE=
7733 fi
7734
7735 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7736   as_fn_error $? "conditional \"AMDEP\" was never defined.
7737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7738 fi
7739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7740   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7742 fi
7743 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
7744   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
7745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7746 fi
7747
7748 : "${CONFIG_STATUS=./config.status}"
7749 ac_write_fail=0
7750 ac_clean_files_save=$ac_clean_files
7751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7753 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7754 as_write_fail=0
7755 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7756 #! $SHELL
7757 # Generated by $as_me.
7758 # Run this file to recreate the current configuration.
7759 # Compiler output produced by configure, useful for debugging
7760 # configure, is in config.log if it exists.
7761
7762 debug=false
7763 ac_cs_recheck=false
7764 ac_cs_silent=false
7765
7766 SHELL=\${CONFIG_SHELL-$SHELL}
7767 export SHELL
7768 _ASEOF
7769 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7770 ## -------------------- ##
7771 ## M4sh Initialization. ##
7772 ## -------------------- ##
7773
7774 # Be more Bourne compatible
7775 DUALCASE=1; export DUALCASE # for MKS sh
7776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7777   emulate sh
7778   NULLCMD=:
7779   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7780   # is contrary to our usage.  Disable this feature.
7781   alias -g '${1+"$@"}'='"$@"'
7782   setopt NO_GLOB_SUBST
7783 else
7784   case `(set -o) 2>/dev/null` in #(
7785   *posix*) :
7786     set -o posix ;; #(
7787   *) :
7788      ;;
7789 esac
7790 fi
7791
7792
7793 as_nl='
7794 '
7795 export as_nl
7796 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7797 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7800 # Prefer a ksh shell builtin over an external printf program on Solaris,
7801 # but without wasting forks for bash or zsh.
7802 if test -z "$BASH_VERSION$ZSH_VERSION" \
7803     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7804   as_echo='print -r --'
7805   as_echo_n='print -rn --'
7806 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7807   as_echo='printf %s\n'
7808   as_echo_n='printf %s'
7809 else
7810   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7811     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7812     as_echo_n='/usr/ucb/echo -n'
7813   else
7814     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7815     as_echo_n_body='eval
7816       arg=$1;
7817       case $arg in #(
7818       *"$as_nl"*)
7819         expr "X$arg" : "X\\(.*\\)$as_nl";
7820         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7821       esac;
7822       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7823     '
7824     export as_echo_n_body
7825     as_echo_n='sh -c $as_echo_n_body as_echo'
7826   fi
7827   export as_echo_body
7828   as_echo='sh -c $as_echo_body as_echo'
7829 fi
7830
7831 # The user is always right.
7832 if test "${PATH_SEPARATOR+set}" != set; then
7833   PATH_SEPARATOR=:
7834   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7835     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7836       PATH_SEPARATOR=';'
7837   }
7838 fi
7839
7840
7841 # IFS
7842 # We need space, tab and new line, in precisely that order.  Quoting is
7843 # there to prevent editors from complaining about space-tab.
7844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7845 # splitting by setting IFS to empty value.)
7846 IFS=" ""        $as_nl"
7847
7848 # Find who we are.  Look in the path if we contain no directory separator.
7849 as_myself=
7850 case $0 in #((
7851   *[\\/]* ) as_myself=$0 ;;
7852   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7858   done
7859 IFS=$as_save_IFS
7860
7861      ;;
7862 esac
7863 # We did not find ourselves, most probably we were run as `sh COMMAND'
7864 # in which case we are not to be found in the path.
7865 if test "x$as_myself" = x; then
7866   as_myself=$0
7867 fi
7868 if test ! -f "$as_myself"; then
7869   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7870   exit 1
7871 fi
7872
7873 # Unset variables that we do not need and which cause bugs (e.g. in
7874 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7875 # suppresses any "Segmentation fault" message there.  '((' could
7876 # trigger a bug in pdksh 5.2.14.
7877 for as_var in BASH_ENV ENV MAIL MAILPATH
7878 do eval test x\${$as_var+set} = xset \
7879   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7880 done
7881 PS1='$ '
7882 PS2='> '
7883 PS4='+ '
7884
7885 # NLS nuisances.
7886 LC_ALL=C
7887 export LC_ALL
7888 LANGUAGE=C
7889 export LANGUAGE
7890
7891 # CDPATH.
7892 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7893
7894
7895 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7896 # ----------------------------------------
7897 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7898 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7899 # script with STATUS, using 1 if that was 0.
7900 as_fn_error ()
7901 {
7902   as_status=$1; test $as_status -eq 0 && as_status=1
7903   if test "$4"; then
7904     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7905     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7906   fi
7907   $as_echo "$as_me: error: $2" >&2
7908   as_fn_exit $as_status
7909 } # as_fn_error
7910
7911
7912 # as_fn_set_status STATUS
7913 # -----------------------
7914 # Set $? to STATUS, without forking.
7915 as_fn_set_status ()
7916 {
7917   return $1
7918 } # as_fn_set_status
7919
7920 # as_fn_exit STATUS
7921 # -----------------
7922 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7923 as_fn_exit ()
7924 {
7925   set +e
7926   as_fn_set_status $1
7927   exit $1
7928 } # as_fn_exit
7929
7930 # as_fn_unset VAR
7931 # ---------------
7932 # Portably unset VAR.
7933 as_fn_unset ()
7934 {
7935   { eval $1=; unset $1;}
7936 }
7937 as_unset=as_fn_unset
7938 # as_fn_append VAR VALUE
7939 # ----------------------
7940 # Append the text in VALUE to the end of the definition contained in VAR. Take
7941 # advantage of any shell optimizations that allow amortized linear growth over
7942 # repeated appends, instead of the typical quadratic growth present in naive
7943 # implementations.
7944 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7945   eval 'as_fn_append ()
7946   {
7947     eval $1+=\$2
7948   }'
7949 else
7950   as_fn_append ()
7951   {
7952     eval $1=\$$1\$2
7953   }
7954 fi # as_fn_append
7955
7956 # as_fn_arith ARG...
7957 # ------------------
7958 # Perform arithmetic evaluation on the ARGs, and store the result in the
7959 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7960 # must be portable across $(()) and expr.
7961 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7962   eval 'as_fn_arith ()
7963   {
7964     as_val=$(( $* ))
7965   }'
7966 else
7967   as_fn_arith ()
7968   {
7969     as_val=`expr "$@" || test $? -eq 1`
7970   }
7971 fi # as_fn_arith
7972
7973
7974 if expr a : '\(a\)' >/dev/null 2>&1 &&
7975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7976   as_expr=expr
7977 else
7978   as_expr=false
7979 fi
7980
7981 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7982   as_basename=basename
7983 else
7984   as_basename=false
7985 fi
7986
7987 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7988   as_dirname=dirname
7989 else
7990   as_dirname=false
7991 fi
7992
7993 as_me=`$as_basename -- "$0" ||
7994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7995          X"$0" : 'X\(//\)$' \| \
7996          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7997 $as_echo X/"$0" |
7998     sed '/^.*\/\([^/][^/]*\)\/*$/{
7999             s//\1/
8000             q
8001           }
8002           /^X\/\(\/\/\)$/{
8003             s//\1/
8004             q
8005           }
8006           /^X\/\(\/\).*/{
8007             s//\1/
8008             q
8009           }
8010           s/.*/./; q'`
8011
8012 # Avoid depending upon Character Ranges.
8013 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8014 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8015 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8016 as_cr_digits='0123456789'
8017 as_cr_alnum=$as_cr_Letters$as_cr_digits
8018
8019 ECHO_C= ECHO_N= ECHO_T=
8020 case `echo -n x` in #(((((
8021 -n*)
8022   case `echo 'xy\c'` in
8023   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8024   xy)  ECHO_C='\c';;
8025   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8026        ECHO_T=' ';;
8027   esac;;
8028 *)
8029   ECHO_N='-n';;
8030 esac
8031
8032 rm -f conf$$ conf$$.exe conf$$.file
8033 if test -d conf$$.dir; then
8034   rm -f conf$$.dir/conf$$.file
8035 else
8036   rm -f conf$$.dir
8037   mkdir conf$$.dir 2>/dev/null
8038 fi
8039 if (echo >conf$$.file) 2>/dev/null; then
8040   if ln -s conf$$.file conf$$ 2>/dev/null; then
8041     as_ln_s='ln -s'
8042     # ... but there are two gotchas:
8043     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8044     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8045     # In both cases, we have to default to `cp -pR'.
8046     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8047       as_ln_s='cp -pR'
8048   elif ln conf$$.file conf$$ 2>/dev/null; then
8049     as_ln_s=ln
8050   else
8051     as_ln_s='cp -pR'
8052   fi
8053 else
8054   as_ln_s='cp -pR'
8055 fi
8056 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8057 rmdir conf$$.dir 2>/dev/null
8058
8059
8060 # as_fn_mkdir_p
8061 # -------------
8062 # Create "$as_dir" as a directory, including parents if necessary.
8063 as_fn_mkdir_p ()
8064 {
8065
8066   case $as_dir in #(
8067   -*) as_dir=./$as_dir;;
8068   esac
8069   test -d "$as_dir" || eval $as_mkdir_p || {
8070     as_dirs=
8071     while :; do
8072       case $as_dir in #(
8073       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8074       *) as_qdir=$as_dir;;
8075       esac
8076       as_dirs="'$as_qdir' $as_dirs"
8077       as_dir=`$as_dirname -- "$as_dir" ||
8078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8079          X"$as_dir" : 'X\(//\)[^/]' \| \
8080          X"$as_dir" : 'X\(//\)$' \| \
8081          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8082 $as_echo X"$as_dir" |
8083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8084             s//\1/
8085             q
8086           }
8087           /^X\(\/\/\)[^/].*/{
8088             s//\1/
8089             q
8090           }
8091           /^X\(\/\/\)$/{
8092             s//\1/
8093             q
8094           }
8095           /^X\(\/\).*/{
8096             s//\1/
8097             q
8098           }
8099           s/.*/./; q'`
8100       test -d "$as_dir" && break
8101     done
8102     test -z "$as_dirs" || eval "mkdir $as_dirs"
8103   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8104
8105
8106 } # as_fn_mkdir_p
8107 if mkdir -p . 2>/dev/null; then
8108   as_mkdir_p='mkdir -p "$as_dir"'
8109 else
8110   test -d ./-p && rmdir ./-p
8111   as_mkdir_p=false
8112 fi
8113
8114
8115 # as_fn_executable_p FILE
8116 # -----------------------
8117 # Test if FILE is an executable regular file.
8118 as_fn_executable_p ()
8119 {
8120   test -f "$1" && test -x "$1"
8121 } # as_fn_executable_p
8122 as_test_x='test -x'
8123 as_executable_p=as_fn_executable_p
8124
8125 # Sed expression to map a string onto a valid CPP name.
8126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8127
8128 # Sed expression to map a string onto a valid variable name.
8129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8130
8131
8132 exec 6>&1
8133 ## ----------------------------------- ##
8134 ## Main body of $CONFIG_STATUS script. ##
8135 ## ----------------------------------- ##
8136 _ASEOF
8137 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8138
8139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8140 # Save the log message, to keep $0 and so on meaningful, and to
8141 # report actual input values of CONFIG_FILES etc. instead of their
8142 # values after options handling.
8143 ac_log="
8144 This file was extended by prss $as_me 0.0.x, which was
8145 generated by GNU Autoconf 2.69.  Invocation command line was
8146
8147   CONFIG_FILES    = $CONFIG_FILES
8148   CONFIG_HEADERS  = $CONFIG_HEADERS
8149   CONFIG_LINKS    = $CONFIG_LINKS
8150   CONFIG_COMMANDS = $CONFIG_COMMANDS
8151   $ $0 $@
8152
8153 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8154 "
8155
8156 _ACEOF
8157
8158 case $ac_config_files in *"
8159 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8160 esac
8161
8162 case $ac_config_headers in *"
8163 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8164 esac
8165
8166
8167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8168 # Files that config.status was made for.
8169 config_files="$ac_config_files"
8170 config_headers="$ac_config_headers"
8171 config_commands="$ac_config_commands"
8172
8173 _ACEOF
8174
8175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8176 ac_cs_usage="\
8177 \`$as_me' instantiates files and other configuration actions
8178 from templates according to the current configuration.  Unless the files
8179 and actions are specified as TAGs, all are instantiated by default.
8180
8181 Usage: $0 [OPTION]... [TAG]...
8182
8183   -h, --help       print this help, then exit
8184   -V, --version    print version number and configuration settings, then exit
8185       --config     print configuration, then exit
8186   -q, --quiet, --silent
8187                    do not print progress messages
8188   -d, --debug      don't remove temporary files
8189       --recheck    update $as_me by reconfiguring in the same conditions
8190       --file=FILE[:TEMPLATE]
8191                    instantiate the configuration file FILE
8192       --header=FILE[:TEMPLATE]
8193                    instantiate the configuration header FILE
8194
8195 Configuration files:
8196 $config_files
8197
8198 Configuration headers:
8199 $config_headers
8200
8201 Configuration commands:
8202 $config_commands
8203
8204 Report bugs to <jeanfi@gmail.com>.
8205 prss home page: <http://wpitchoune.net/prss>."
8206
8207 _ACEOF
8208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8209 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8210 ac_cs_version="\\
8211 prss config.status 0.0.x
8212 configured by $0, generated by GNU Autoconf 2.69,
8213   with options \\"\$ac_cs_config\\"
8214
8215 Copyright (C) 2012 Free Software Foundation, Inc.
8216 This config.status script is free software; the Free Software Foundation
8217 gives unlimited permission to copy, distribute and modify it."
8218
8219 ac_pwd='$ac_pwd'
8220 srcdir='$srcdir'
8221 INSTALL='$INSTALL'
8222 MKDIR_P='$MKDIR_P'
8223 AWK='$AWK'
8224 test -n "\$AWK" || AWK=awk
8225 _ACEOF
8226
8227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8228 # The default lists apply if the user does not specify any file.
8229 ac_need_defaults=:
8230 while test $# != 0
8231 do
8232   case $1 in
8233   --*=?*)
8234     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8235     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8236     ac_shift=:
8237     ;;
8238   --*=)
8239     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8240     ac_optarg=
8241     ac_shift=:
8242     ;;
8243   *)
8244     ac_option=$1
8245     ac_optarg=$2
8246     ac_shift=shift
8247     ;;
8248   esac
8249
8250   case $ac_option in
8251   # Handling of the options.
8252   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8253     ac_cs_recheck=: ;;
8254   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8255     $as_echo "$ac_cs_version"; exit ;;
8256   --config | --confi | --conf | --con | --co | --c )
8257     $as_echo "$ac_cs_config"; exit ;;
8258   --debug | --debu | --deb | --de | --d | -d )
8259     debug=: ;;
8260   --file | --fil | --fi | --f )
8261     $ac_shift
8262     case $ac_optarg in
8263     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8264     '') as_fn_error $? "missing file argument" ;;
8265     esac
8266     as_fn_append CONFIG_FILES " '$ac_optarg'"
8267     ac_need_defaults=false;;
8268   --header | --heade | --head | --hea )
8269     $ac_shift
8270     case $ac_optarg in
8271     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8272     esac
8273     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8274     ac_need_defaults=false;;
8275   --he | --h)
8276     # Conflict between --help and --header
8277     as_fn_error $? "ambiguous option: \`$1'
8278 Try \`$0 --help' for more information.";;
8279   --help | --hel | -h )
8280     $as_echo "$ac_cs_usage"; exit ;;
8281   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8282   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8283     ac_cs_silent=: ;;
8284
8285   # This is an error.
8286   -*) as_fn_error $? "unrecognized option: \`$1'
8287 Try \`$0 --help' for more information." ;;
8288
8289   *) as_fn_append ac_config_targets " $1"
8290      ac_need_defaults=false ;;
8291
8292   esac
8293   shift
8294 done
8295
8296 ac_configure_extra_args=
8297
8298 if $ac_cs_silent; then
8299   exec 6>/dev/null
8300   ac_configure_extra_args="$ac_configure_extra_args --silent"
8301 fi
8302
8303 _ACEOF
8304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8305 if \$ac_cs_recheck; then
8306   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8307   shift
8308   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8309   CONFIG_SHELL='$SHELL'
8310   export CONFIG_SHELL
8311   exec "\$@"
8312 fi
8313
8314 _ACEOF
8315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8316 exec 5>>config.log
8317 {
8318   echo
8319   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8320 ## Running $as_me. ##
8321 _ASBOX
8322   $as_echo "$ac_log"
8323 } >&5
8324
8325 _ACEOF
8326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8327 #
8328 # INIT-COMMANDS
8329 #
8330 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8332     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8333     # from automake < 1.5.
8334     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8335     # Capture the value of LINGUAS because we need it to compute CATALOGS.
8336     LINGUAS="${LINGUAS-%UNSET%}"
8337
8338
8339 _ACEOF
8340
8341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8342
8343 # Handling of arguments.
8344 for ac_config_target in $ac_config_targets
8345 do
8346   case $ac_config_target in
8347     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8348     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8349     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8350     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8351     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8352     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
8353     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8354     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8355     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
8356     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8357
8358   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8359   esac
8360 done
8361
8362
8363 # If the user did not use the arguments to specify the items to instantiate,
8364 # then the envvar interface is used.  Set only those that are not.
8365 # We use the long form for the default assignment because of an extremely
8366 # bizarre bug on SunOS 4.1.3.
8367 if $ac_need_defaults; then
8368   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8369   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8370   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8371 fi
8372
8373 # Have a temporary directory for convenience.  Make it in the build tree
8374 # simply because there is no reason against having it here, and in addition,
8375 # creating and moving files from /tmp can sometimes cause problems.
8376 # Hook for its removal unless debugging.
8377 # Note that there is a small window in which the directory will not be cleaned:
8378 # after its creation but before its name has been assigned to `$tmp'.
8379 $debug ||
8380 {
8381   tmp= ac_tmp=
8382   trap 'exit_status=$?
8383   : "${ac_tmp:=$tmp}"
8384   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8385 ' 0
8386   trap 'as_fn_exit 1' 1 2 13 15
8387 }
8388 # Create a (secure) tmp directory for tmp files.
8389
8390 {
8391   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8392   test -d "$tmp"
8393 }  ||
8394 {
8395   tmp=./conf$$-$RANDOM
8396   (umask 077 && mkdir "$tmp")
8397 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8398 ac_tmp=$tmp
8399
8400 # Set up the scripts for CONFIG_FILES section.
8401 # No need to generate them if there are no CONFIG_FILES.
8402 # This happens for instance with `./config.status config.h'.
8403 if test -n "$CONFIG_FILES"; then
8404
8405
8406 ac_cr=`echo X | tr X '\015'`
8407 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8408 # But we know of no other shell where ac_cr would be empty at this
8409 # point, so we can use a bashism as a fallback.
8410 if test "x$ac_cr" = x; then
8411   eval ac_cr=\$\'\\r\'
8412 fi
8413 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8414 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8415   ac_cs_awk_cr='\\r'
8416 else
8417   ac_cs_awk_cr=$ac_cr
8418 fi
8419
8420 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8421 _ACEOF
8422
8423
8424 {
8425   echo "cat >conf$$subs.awk <<_ACEOF" &&
8426   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8427   echo "_ACEOF"
8428 } >conf$$subs.sh ||
8429   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8430 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8431 ac_delim='%!_!# '
8432 for ac_last_try in false false false false false :; do
8433   . ./conf$$subs.sh ||
8434     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8435
8436   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8437   if test $ac_delim_n = $ac_delim_num; then
8438     break
8439   elif $ac_last_try; then
8440     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8441   else
8442     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8443   fi
8444 done
8445 rm -f conf$$subs.sh
8446
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8448 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8449 _ACEOF
8450 sed -n '
8451 h
8452 s/^/S["/; s/!.*/"]=/
8453 p
8454 g
8455 s/^[^!]*!//
8456 :repl
8457 t repl
8458 s/'"$ac_delim"'$//
8459 t delim
8460 :nl
8461 h
8462 s/\(.\{148\}\)..*/\1/
8463 t more1
8464 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8465 p
8466 n
8467 b repl
8468 :more1
8469 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8470 p
8471 g
8472 s/.\{148\}//
8473 t nl
8474 :delim
8475 h
8476 s/\(.\{148\}\)..*/\1/
8477 t more2
8478 s/["\\]/\\&/g; s/^/"/; s/$/"/
8479 p
8480 b
8481 :more2
8482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8483 p
8484 g
8485 s/.\{148\}//
8486 t delim
8487 ' <conf$$subs.awk | sed '
8488 /^[^""]/{
8489   N
8490   s/\n//
8491 }
8492 ' >>$CONFIG_STATUS || ac_write_fail=1
8493 rm -f conf$$subs.awk
8494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8495 _ACAWK
8496 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8497   for (key in S) S_is_set[key] = 1
8498   FS = "\a"
8499
8500 }
8501 {
8502   line = $ 0
8503   nfields = split(line, field, "@")
8504   substed = 0
8505   len = length(field[1])
8506   for (i = 2; i < nfields; i++) {
8507     key = field[i]
8508     keylen = length(key)
8509     if (S_is_set[key]) {
8510       value = S[key]
8511       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8512       len += length(value) + length(field[++i])
8513       substed = 1
8514     } else
8515       len += 1 + keylen
8516   }
8517
8518   print line
8519 }
8520
8521 _ACAWK
8522 _ACEOF
8523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8524 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8525   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8526 else
8527   cat
8528 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8529   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8530 _ACEOF
8531
8532 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8533 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8534 # trailing colons and then remove the whole line if VPATH becomes empty
8535 # (actually we leave an empty line to preserve line numbers).
8536 if test "x$srcdir" = x.; then
8537   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8538 h
8539 s///
8540 s/^/:/
8541 s/[      ]*$/:/
8542 s/:\$(srcdir):/:/g
8543 s/:\${srcdir}:/:/g
8544 s/:@srcdir@:/:/g
8545 s/^:*//
8546 s/:*$//
8547 x
8548 s/\(=[   ]*\).*/\1/
8549 G
8550 s/\n//
8551 s/^[^=]*=[       ]*$//
8552 }'
8553 fi
8554
8555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8556 fi # test -n "$CONFIG_FILES"
8557
8558 # Set up the scripts for CONFIG_HEADERS section.
8559 # No need to generate them if there are no CONFIG_HEADERS.
8560 # This happens for instance with `./config.status Makefile'.
8561 if test -n "$CONFIG_HEADERS"; then
8562 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8563 BEGIN {
8564 _ACEOF
8565
8566 # Transform confdefs.h into an awk script `defines.awk', embedded as
8567 # here-document in config.status, that substitutes the proper values into
8568 # config.h.in to produce config.h.
8569
8570 # Create a delimiter string that does not exist in confdefs.h, to ease
8571 # handling of long lines.
8572 ac_delim='%!_!# '
8573 for ac_last_try in false false :; do
8574   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8575   if test -z "$ac_tt"; then
8576     break
8577   elif $ac_last_try; then
8578     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8579   else
8580     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8581   fi
8582 done
8583
8584 # For the awk script, D is an array of macro values keyed by name,
8585 # likewise P contains macro parameters if any.  Preserve backslash
8586 # newline sequences.
8587
8588 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8589 sed -n '
8590 s/.\{148\}/&'"$ac_delim"'/g
8591 t rset
8592 :rset
8593 s/^[     ]*#[    ]*define[       ][      ]*/ /
8594 t def
8595 d
8596 :def
8597 s/\\$//
8598 t bsnl
8599 s/["\\]/\\&/g
8600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8601 D["\1"]=" \3"/p
8602 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8603 d
8604 :bsnl
8605 s/["\\]/\\&/g
8606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8607 D["\1"]=" \3\\\\\\n"\\/p
8608 t cont
8609 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8610 t cont
8611 d
8612 :cont
8613 n
8614 s/.\{148\}/&'"$ac_delim"'/g
8615 t clear
8616 :clear
8617 s/\\$//
8618 t bsnlc
8619 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8620 d
8621 :bsnlc
8622 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8623 b cont
8624 ' <confdefs.h | sed '
8625 s/'"$ac_delim"'/"\\\
8626 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8627
8628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8629   for (key in D) D_is_set[key] = 1
8630   FS = "\a"
8631 }
8632 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8633   line = \$ 0
8634   split(line, arg, " ")
8635   if (arg[1] == "#") {
8636     defundef = arg[2]
8637     mac1 = arg[3]
8638   } else {
8639     defundef = substr(arg[1], 2)
8640     mac1 = arg[2]
8641   }
8642   split(mac1, mac2, "(") #)
8643   macro = mac2[1]
8644   prefix = substr(line, 1, index(line, defundef) - 1)
8645   if (D_is_set[macro]) {
8646     # Preserve the white space surrounding the "#".
8647     print prefix "define", macro P[macro] D[macro]
8648     next
8649   } else {
8650     # Replace #undef with comments.  This is necessary, for example,
8651     # in the case of _POSIX_SOURCE, which is predefined and required
8652     # on some systems where configure will not decide to define it.
8653     if (defundef == "undef") {
8654       print "/*", prefix defundef, macro, "*/"
8655       next
8656     }
8657   }
8658 }
8659 { print }
8660 _ACAWK
8661 _ACEOF
8662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8663   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8664 fi # test -n "$CONFIG_HEADERS"
8665
8666
8667 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8668 shift
8669 for ac_tag
8670 do
8671   case $ac_tag in
8672   :[FHLC]) ac_mode=$ac_tag; continue;;
8673   esac
8674   case $ac_mode$ac_tag in
8675   :[FHL]*:*);;
8676   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8677   :[FH]-) ac_tag=-:-;;
8678   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8679   esac
8680   ac_save_IFS=$IFS
8681   IFS=:
8682   set x $ac_tag
8683   IFS=$ac_save_IFS
8684   shift
8685   ac_file=$1
8686   shift
8687
8688   case $ac_mode in
8689   :L) ac_source=$1;;
8690   :[FH])
8691     ac_file_inputs=
8692     for ac_f
8693     do
8694       case $ac_f in
8695       -) ac_f="$ac_tmp/stdin";;
8696       *) # Look for the file first in the build tree, then in the source tree
8697          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8698          # because $ac_f cannot contain `:'.
8699          test -f "$ac_f" ||
8700            case $ac_f in
8701            [\\/$]*) false;;
8702            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8703            esac ||
8704            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8705       esac
8706       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8707       as_fn_append ac_file_inputs " '$ac_f'"
8708     done
8709
8710     # Let's still pretend it is `configure' which instantiates (i.e., don't
8711     # use $as_me), people would be surprised to read:
8712     #    /* config.h.  Generated by config.status.  */
8713     configure_input='Generated from '`
8714           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8715         `' by configure.'
8716     if test x"$ac_file" != x-; then
8717       configure_input="$ac_file.  $configure_input"
8718       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8719 $as_echo "$as_me: creating $ac_file" >&6;}
8720     fi
8721     # Neutralize special characters interpreted by sed in replacement strings.
8722     case $configure_input in #(
8723     *\&* | *\|* | *\\* )
8724        ac_sed_conf_input=`$as_echo "$configure_input" |
8725        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8726     *) ac_sed_conf_input=$configure_input;;
8727     esac
8728
8729     case $ac_tag in
8730     *:-:* | *:-) cat >"$ac_tmp/stdin" \
8731       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8732     esac
8733     ;;
8734   esac
8735
8736   ac_dir=`$as_dirname -- "$ac_file" ||
8737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8738          X"$ac_file" : 'X\(//\)[^/]' \| \
8739          X"$ac_file" : 'X\(//\)$' \| \
8740          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8741 $as_echo X"$ac_file" |
8742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8743             s//\1/
8744             q
8745           }
8746           /^X\(\/\/\)[^/].*/{
8747             s//\1/
8748             q
8749           }
8750           /^X\(\/\/\)$/{
8751             s//\1/
8752             q
8753           }
8754           /^X\(\/\).*/{
8755             s//\1/
8756             q
8757           }
8758           s/.*/./; q'`
8759   as_dir="$ac_dir"; as_fn_mkdir_p
8760   ac_builddir=.
8761
8762 case "$ac_dir" in
8763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8764 *)
8765   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8766   # A ".." for each directory in $ac_dir_suffix.
8767   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8768   case $ac_top_builddir_sub in
8769   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8770   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8771   esac ;;
8772 esac
8773 ac_abs_top_builddir=$ac_pwd
8774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8775 # for backward compatibility:
8776 ac_top_builddir=$ac_top_build_prefix
8777
8778 case $srcdir in
8779   .)  # We are building in place.
8780     ac_srcdir=.
8781     ac_top_srcdir=$ac_top_builddir_sub
8782     ac_abs_top_srcdir=$ac_pwd ;;
8783   [\\/]* | ?:[\\/]* )  # Absolute name.
8784     ac_srcdir=$srcdir$ac_dir_suffix;
8785     ac_top_srcdir=$srcdir
8786     ac_abs_top_srcdir=$srcdir ;;
8787   *) # Relative name.
8788     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8789     ac_top_srcdir=$ac_top_build_prefix$srcdir
8790     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8791 esac
8792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8793
8794
8795   case $ac_mode in
8796   :F)
8797   #
8798   # CONFIG_FILE
8799   #
8800
8801   case $INSTALL in
8802   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8803   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8804   esac
8805   ac_MKDIR_P=$MKDIR_P
8806   case $MKDIR_P in
8807   [\\/$]* | ?:[\\/]* ) ;;
8808   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8809   esac
8810 _ACEOF
8811
8812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8813 # If the template does not know about datarootdir, expand it.
8814 # FIXME: This hack should be removed a few years after 2.60.
8815 ac_datarootdir_hack=; ac_datarootdir_seen=
8816 ac_sed_dataroot='
8817 /datarootdir/ {
8818   p
8819   q
8820 }
8821 /@datadir@/p
8822 /@docdir@/p
8823 /@infodir@/p
8824 /@localedir@/p
8825 /@mandir@/p'
8826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8827 *datarootdir*) ac_datarootdir_seen=yes;;
8828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8831 _ACEOF
8832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8833   ac_datarootdir_hack='
8834   s&@datadir@&$datadir&g
8835   s&@docdir@&$docdir&g
8836   s&@infodir@&$infodir&g
8837   s&@localedir@&$localedir&g
8838   s&@mandir@&$mandir&g
8839   s&\\\${datarootdir}&$datarootdir&g' ;;
8840 esac
8841 _ACEOF
8842
8843 # Neutralize VPATH when `$srcdir' = `.'.
8844 # Shell code in configure.ac might set extrasub.
8845 # FIXME: do we really want to maintain this feature?
8846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8847 ac_sed_extra="$ac_vpsub
8848 $extrasub
8849 _ACEOF
8850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8851 :t
8852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8853 s|@configure_input@|$ac_sed_conf_input|;t t
8854 s&@top_builddir@&$ac_top_builddir_sub&;t t
8855 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8856 s&@srcdir@&$ac_srcdir&;t t
8857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8858 s&@top_srcdir@&$ac_top_srcdir&;t t
8859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8860 s&@builddir@&$ac_builddir&;t t
8861 s&@abs_builddir@&$ac_abs_builddir&;t t
8862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8863 s&@INSTALL@&$ac_INSTALL&;t t
8864 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8865 $ac_datarootdir_hack
8866 "
8867 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8868   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8869
8870 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8871   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8872   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8873       "$ac_tmp/out"`; test -z "$ac_out"; } &&
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8875 which seems to be undefined.  Please make sure it is defined" >&5
8876 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8877 which seems to be undefined.  Please make sure it is defined" >&2;}
8878
8879   rm -f "$ac_tmp/stdin"
8880   case $ac_file in
8881   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8882   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8883   esac \
8884   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8885  ;;
8886   :H)
8887   #
8888   # CONFIG_HEADER
8889   #
8890   if test x"$ac_file" != x-; then
8891     {
8892       $as_echo "/* $configure_input  */" \
8893       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8894     } >"$ac_tmp/config.h" \
8895       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8896     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8897       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8898 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8899     else
8900       rm -f "$ac_file"
8901       mv "$ac_tmp/config.h" "$ac_file" \
8902         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8903     fi
8904   else
8905     $as_echo "/* $configure_input  */" \
8906       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8907       || as_fn_error $? "could not create -" "$LINENO" 5
8908   fi
8909 # Compute "$ac_file"'s index in $config_headers.
8910 _am_arg="$ac_file"
8911 _am_stamp_count=1
8912 for _am_header in $config_headers :; do
8913   case $_am_header in
8914     $_am_arg | $_am_arg:* )
8915       break ;;
8916     * )
8917       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8918   esac
8919 done
8920 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8921 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8922          X"$_am_arg" : 'X\(//\)[^/]' \| \
8923          X"$_am_arg" : 'X\(//\)$' \| \
8924          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8925 $as_echo X"$_am_arg" |
8926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8927             s//\1/
8928             q
8929           }
8930           /^X\(\/\/\)[^/].*/{
8931             s//\1/
8932             q
8933           }
8934           /^X\(\/\/\)$/{
8935             s//\1/
8936             q
8937           }
8938           /^X\(\/\).*/{
8939             s//\1/
8940             q
8941           }
8942           s/.*/./; q'`/stamp-h$_am_stamp_count
8943  ;;
8944
8945   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8946 $as_echo "$as_me: executing $ac_file commands" >&6;}
8947  ;;
8948   esac
8949
8950
8951   case $ac_file$ac_mode in
8952     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8953   # Older Autoconf quotes --file arguments for eval, but not when files
8954   # are listed without --file.  Let's play safe and only enable the eval
8955   # if we detect the quoting.
8956   case $CONFIG_FILES in
8957   *\'*) eval set x "$CONFIG_FILES" ;;
8958   *)   set x $CONFIG_FILES ;;
8959   esac
8960   shift
8961   for mf
8962   do
8963     # Strip MF so we end up with the name of the file.
8964     mf=`echo "$mf" | sed -e 's/:.*$//'`
8965     # Check whether this is an Automake generated Makefile or not.
8966     # We used to match only the files named 'Makefile.in', but
8967     # some people rename them; so instead we look at the file content.
8968     # Grep'ing the first line is not enough: some people post-process
8969     # each Makefile.in and add a new line on top of each file to say so.
8970     # Grep'ing the whole file is not good either: AIX grep has a line
8971     # limit of 2048, but all sed's we know have understand at least 4000.
8972     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8973       dirpart=`$as_dirname -- "$mf" ||
8974 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8975          X"$mf" : 'X\(//\)[^/]' \| \
8976          X"$mf" : 'X\(//\)$' \| \
8977          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8978 $as_echo X"$mf" |
8979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8980             s//\1/
8981             q
8982           }
8983           /^X\(\/\/\)[^/].*/{
8984             s//\1/
8985             q
8986           }
8987           /^X\(\/\/\)$/{
8988             s//\1/
8989             q
8990           }
8991           /^X\(\/\).*/{
8992             s//\1/
8993             q
8994           }
8995           s/.*/./; q'`
8996     else
8997       continue
8998     fi
8999     # Extract the definition of DEPDIR, am__include, and am__quote
9000     # from the Makefile without running 'make'.
9001     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9002     test -z "$DEPDIR" && continue
9003     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9004     test -z "$am__include" && continue
9005     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9006     # Find all dependency output files, they are included files with
9007     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9008     # simplest approach to changing $(DEPDIR) to its actual value in the
9009     # expansion.
9010     for file in `sed -n "
9011       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9012          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9013       # Make sure the directory exists.
9014       test -f "$dirpart/$file" && continue
9015       fdir=`$as_dirname -- "$file" ||
9016 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9017          X"$file" : 'X\(//\)[^/]' \| \
9018          X"$file" : 'X\(//\)$' \| \
9019          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9020 $as_echo X"$file" |
9021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9022             s//\1/
9023             q
9024           }
9025           /^X\(\/\/\)[^/].*/{
9026             s//\1/
9027             q
9028           }
9029           /^X\(\/\/\)$/{
9030             s//\1/
9031             q
9032           }
9033           /^X\(\/\).*/{
9034             s//\1/
9035             q
9036           }
9037           s/.*/./; q'`
9038       as_dir=$dirpart/$fdir; as_fn_mkdir_p
9039       # echo "creating $dirpart/$file"
9040       echo '# dummy' > "$dirpart/$file"
9041     done
9042   done
9043 }
9044  ;;
9045     "po-directories":C)
9046     for ac_file in $CONFIG_FILES; do
9047       # Support "outfile[:infile[:infile...]]"
9048       case "$ac_file" in
9049         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9050       esac
9051       # PO directories have a Makefile.in generated from Makefile.in.in.
9052       case "$ac_file" in */Makefile.in)
9053         # Adjust a relative srcdir.
9054         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9055         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9056         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9057         # In autoconf-2.13 it is called $ac_given_srcdir.
9058         # In autoconf-2.50 it is called $srcdir.
9059         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9060         case "$ac_given_srcdir" in
9061           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9062           /*) top_srcdir="$ac_given_srcdir" ;;
9063           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9064         esac
9065         # Treat a directory as a PO directory if and only if it has a
9066         # POTFILES.in file. This allows packages to have multiple PO
9067         # directories under different names or in different locations.
9068         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9069           rm -f "$ac_dir/POTFILES"
9070           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9071           gt_tab=`printf '\t'`
9072           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9073           POMAKEFILEDEPS="POTFILES.in"
9074           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9075           # on $ac_dir but don't depend on user-specified configuration
9076           # parameters.
9077           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9078             # The LINGUAS file contains the set of available languages.
9079             if test -n "$OBSOLETE_ALL_LINGUAS"; then
9080               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9081             fi
9082             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9083             # Hide the ALL_LINGUAS assignment from automake < 1.5.
9084             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9085             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9086           else
9087             # The set of available languages was given in configure.in.
9088             # Hide the ALL_LINGUAS assignment from automake < 1.5.
9089             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9090           fi
9091           # Compute POFILES
9092           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9093           # Compute UPDATEPOFILES
9094           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9095           # Compute DUMMYPOFILES
9096           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9097           # Compute GMOFILES
9098           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9099           case "$ac_given_srcdir" in
9100             .) srcdirpre= ;;
9101             *) srcdirpre='$(srcdir)/' ;;
9102           esac
9103           POFILES=
9104           UPDATEPOFILES=
9105           DUMMYPOFILES=
9106           GMOFILES=
9107           for lang in $ALL_LINGUAS; do
9108             POFILES="$POFILES $srcdirpre$lang.po"
9109             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9110             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9111             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9112           done
9113           # CATALOGS depends on both $ac_dir and the user's LINGUAS
9114           # environment variable.
9115           INST_LINGUAS=
9116           if test -n "$ALL_LINGUAS"; then
9117             for presentlang in $ALL_LINGUAS; do
9118               useit=no
9119               if test "%UNSET%" != "$LINGUAS"; then
9120                 desiredlanguages="$LINGUAS"
9121               else
9122                 desiredlanguages="$ALL_LINGUAS"
9123               fi
9124               for desiredlang in $desiredlanguages; do
9125                 # Use the presentlang catalog if desiredlang is
9126                 #   a. equal to presentlang, or
9127                 #   b. a variant of presentlang (because in this case,
9128                 #      presentlang can be used as a fallback for messages
9129                 #      which are not translated in the desiredlang catalog).
9130                 case "$desiredlang" in
9131                   "$presentlang"*) useit=yes;;
9132                 esac
9133               done
9134               if test $useit = yes; then
9135                 INST_LINGUAS="$INST_LINGUAS $presentlang"
9136               fi
9137             done
9138           fi
9139           CATALOGS=
9140           if test -n "$INST_LINGUAS"; then
9141             for lang in $INST_LINGUAS; do
9142               CATALOGS="$CATALOGS $lang.gmo"
9143             done
9144           fi
9145           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9146           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9147           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9148             if test -f "$f"; then
9149               case "$f" in
9150                 *.orig | *.bak | *~) ;;
9151                 *) cat "$f" >> "$ac_dir/Makefile" ;;
9152               esac
9153             fi
9154           done
9155         fi
9156         ;;
9157       esac
9158     done ;;
9159
9160   esac
9161 done # for ac_tag
9162
9163
9164 as_fn_exit 0
9165 _ACEOF
9166 ac_clean_files=$ac_clean_files_save
9167
9168 test $ac_write_fail = 0 ||
9169   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9170
9171
9172 # configure is writing to config.log, and then calls config.status.
9173 # config.status does its own redirection, appending to config.log.
9174 # Unfortunately, on DOS this fails, as config.log is still kept open
9175 # by configure, so config.status won't be able to write to it; its
9176 # output is simply discarded.  So we exec the FD to /dev/null,
9177 # effectively closing config.log, so it can be properly (re)opened and
9178 # appended to by config.status.  When coming back to configure, we
9179 # need to make the FD available again.
9180 if test "$no_create" != yes; then
9181   ac_cs_success=:
9182   ac_config_status_args=
9183   test "$silent" = yes &&
9184     ac_config_status_args="$ac_config_status_args --quiet"
9185   exec 5>/dev/null
9186   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9187   exec 5>>config.log
9188   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9189   # would make configure fail if this is the last instruction.
9190   $ac_cs_success || as_fn_exit 1
9191 fi
9192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9195 fi
9196