Debian Codegraph @

configure

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