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