Debian Codegraph @

configure

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