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