Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for HIME 0.10.1.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi
235 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell [email protected] and BUG-REPORT-ADDRESS
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
319 {
320 return $?
321 }
322 as_nop=as_fn_nop
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414 fi # as_fn_arith
415
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
420 {
421 return $?
422 }
423 as_nop=as_fn_nop
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535 *)
536 ECHO_N='-n';;
537 esac
538
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
544
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
592
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598 #
599 # Initializations.
600 #
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
609
610 # Identity of this package.
611 PACKAGE_NAME='HIME'
612 PACKAGE_TARNAME='hime'
613 PACKAGE_VERSION='0.10.1'
614 PACKAGE_STRING='HIME 0.10.1'
615 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
616 PACKAGE_URL=''
617
618 ac_subst_vars='am__EXEEXT_FALSE
619 am__EXEEXT_TRUE
620 LTLIBOBJS
621 LIBOBJS
622 USE_UNITY_TRAY_FALSE
623 USE_UNITY_TRAY_TRUE
624 APPINDICATOR_LIBS
625 APPINDICATOR_CFLAGS
626 USE_CHEWING_FALSE
627 USE_CHEWING_TRUE
628 CHEWING_LIBS
629 CHEWING_CFLAGS
630 USE_ANTHY_FALSE
631 USE_ANTHY_TRUE
632 ANTHY_INC
633 ANTHY_LIBS
634 ANTHY_CFLAGS
635 QT6_QMAKE_PATH
636 QT6_IM_DIR
637 QT6_MOC_PATH
638 QT5_QMAKE_PATH
639 QT5_IM_DIR
640 QT5_MOC_PATH
641 QT5_LIBS
642 QT5_CFLAGS
643 QT6_IM
644 QT5_IM
645 GTK2_FALSE
646 GTK2_TRUE
647 APPINDICATOR
648 GTKLDFLAGS
649 GTKINC
650 GTK3_IM
651 GTK_IM
652 GTK
653 GTK3_LIBS
654 GTK3_CFLAGS
655 GTK2_LIBS
656 GTK2_CFLAGS
657 XTST_LIBS
658 XTST_CFLAGS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 GIT_HAVE_FALSE
663 GIT_HAVE_TRUE
664 GIT_HASH
665 git_have
666 gcc_ld_run_path
667 hime_ld_run_path
668 himelibdir
669 use_lib
670 LIB
671 USE_SYSTEM_TRAY_FALSE
672 USE_SYSTEM_TRAY_TRUE
673 USE_XIM_FALSE
674 USE_XIM_TRUE
675 man1dir
676 filterdir
677 SYS_ICON_DIR
678 MAKE
679 LDFLAGS_ENV
680 SO_FLAGS
681 HIME_VERSION
682 HIME_TABLE_DIR
683 HIME_SCRIPT_DIR
684 HIME_OGG_DIR
685 HIME_DEFAULT_ICON_DIR
686 HIME_BIN_DIR
687 FREEBSD_FALSE
688 FREEBSD_TRUE
689 FREEBSD
690 ECHO
691 DOC_DIR
692 OPTFLAGS
693 CCX
694 CCLD
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 CSCOPE
700 ETAGS
701 CTAGS
702 am__fastdepCXX_FALSE
703 am__fastdepCXX_TRUE
704 CXXDEPMODE
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__include
713 DEPDIR
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 ac_ct_CXX
738 CXXFLAGS
739 CXX
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
746 CC
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 runstatedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL
786 am__quote'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_dependency_tracking
791 enable_silent_rules
792 enable_xim
793 enable_system_tray
794 enable_lib64
795 with_gtk
796 enable_qt5_immodule
797 with_qt5_moc_path
798 with_qt5_im_module_path
799 enable_qt6_immodule
800 with_qt6_moc_path
801 with_qt6_im_module_path
802 enable_anthy
803 enable_chewing
804 enable_appindicator
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 PKG_CONFIG
818 PKG_CONFIG_PATH
819 PKG_CONFIG_LIBDIR
820 XTST_CFLAGS
821 XTST_LIBS
822 GTK2_CFLAGS
823 GTK2_LIBS
824 GTK3_CFLAGS
825 GTK3_LIBS
826 QT5_CFLAGS
827 QT5_LIBS
828 ANTHY_CFLAGS
829 ANTHY_LIBS
830 CHEWING_CFLAGS
831 CHEWING_LIBS
832 APPINDICATOR_CFLAGS
833 APPINDICATOR_LIBS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 runstatedir='${localstatedir}/run'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: \`$ac_useropt'"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: \`$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -runstatedir | --runstatedir | --runstatedi | --runstated \
1124 | --runstate | --runstat | --runsta | --runst | --runs \
1125 | --run | --ru | --r)
1126 ac_prev=runstatedir ;;
1127 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129 | --run=* | --ru=* | --r=*)
1130 runstatedir=$ac_optarg ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: \`$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 ;;
1248
1249 esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1270 do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 printf "%s\n" X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347 else
1348 ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures HIME 0.10.1 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/hime]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of HIME 0.10.1:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-xim Enable XIM, default is yes
1464 --enable-system-tray Enable System Tray, default is yes
1465 --enable-lib64 Use lib64 directory, default is auto-detect
1466 --enable-qt5-immodule Enable QT5 im-module, default is auto-detect
1467 --enable-qt6-immodule Enable QT6 im-module, default is auto-detect
1468 --enable-anthy Enable Anthy, default is auto-detect
1469 --enable-chewing Enable Chewing, default is auto-detect
1470 --enable-appindicator Enable Ubuntu Unity Tray, default is auto-detect
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gtk Select GTK version, default is GTK 2. [ARG: 2.0|3.0]
1476 --with-qt5-moc-path=PATH
1477 Specify the path of 'moc' command for QT5
1478 --with-qt5-im-module-path=PATH
1479 Specify the install path for QT5 im-module
1480 --with-qt6-moc-path=PATH
1481 Specify the path of 'moc' command for QT6
1482 --with-qt6-im-module-path=PATH
1483 Specify the install path for QT6 im-module
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1501 XTST_LIBS linker flags for XTST, overriding pkg-config
1502 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1503 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1504 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1505 GTK3_LIBS linker flags for GTK3, overriding pkg-config
1506 QT5_CFLAGS C compiler flags for QT5, overriding pkg-config
1507 QT5_LIBS linker flags for QT5, overriding pkg-config
1508 ANTHY_CFLAGS
1509 C compiler flags for ANTHY, overriding pkg-config
1510 ANTHY_LIBS linker flags for ANTHY, overriding pkg-config
1511 CHEWING_CFLAGS
1512 C compiler flags for CHEWING, overriding pkg-config
1513 CHEWING_LIBS
1514 linker flags for CHEWING, overriding pkg-config
1515 APPINDICATOR_CFLAGS
1516 C compiler flags for APPINDICATOR, overriding pkg-config
1517 APPINDICATOR_LIBS
1518 linker flags for APPINDICATOR, overriding pkg-config
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <BUG-REPORT-ADDRESS>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 continue
1534 ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553 .) # We are building in place.
1554 ac_srcdir=.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1561 *) # Relative name.
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for configure.gnu first; this name is used for a wrapper for
1570 # Metaconfig's "Configure" on case-insensitive file systems.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 HIME configure 0.10.1
1588 generated by GNU Autoconf 2.71
1589
1590 Copyright (C) 2021 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594 exit
1595 fi
1596
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1600
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest.beam
1608 if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 printf "%s\n" "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext
1627 then :
1628 ac_retval=0
1629 else $as_nop
1630 printf "%s\n" "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634 fi
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_cxx_try_compile LINENO
1641 # ----------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_cxx_try_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest.beam
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext
1666 then :
1667 ac_retval=0
1668 else $as_nop
1669 printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_cxx_try_compile
1678 ac_configure_args_raw=
1679 for ac_arg
1680 do
1681 case $ac_arg in
1682 *\'*)
1683 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 as_fn_append ac_configure_args_raw " '$ac_arg'"
1686 done
1687
1688 case $ac_configure_args_raw in
1689 *$as_nl*)
1690 ac_safe_unquote= ;;
1691 *)
1692 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1693 ac_unsafe_a="$ac_unsafe_z#~"
1694 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1695 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1696 esac
1697
1698 cat >config.log <<_ACEOF
1699 This file contains any messages produced by compilers while
1700 running configure, to aid debugging if configure makes a mistake.
1701
1702 It was created by HIME $as_me 0.10.1, which was
1703 generated by GNU Autoconf 2.71. Invocation command line was
1704
1705 $ $0$ac_configure_args_raw
1706
1707 _ACEOF
1708 exec 5>>config.log
1709 {
1710 cat <<_ASUNAME
1711 ## --------- ##
1712 ## Platform. ##
1713 ## --------- ##
1714
1715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1720
1721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1723
1724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731
1732 _ASUNAME
1733
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1736 do
1737 IFS=$as_save_IFS
1738 case $as_dir in #(((
1739 '') as_dir=./ ;;
1740 */) ;;
1741 *) as_dir=$as_dir/ ;;
1742 esac
1743 printf "%s\n" "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1782 2)
1783 as_fn_append ac_configure_args1 " '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 as_fn_append ac_configure_args " '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 { ac_configure_args0=; unset ac_configure_args0;}
1805 { ac_configure_args1=; unset ac_configure_args1;}
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Sanitize IFS.
1814 IFS=" "" $as_nl"
1815 # Save into config.log some information that might help in debugging.
1816 {
1817 echo
1818
1819 printf "%s\n" "## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##"
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1831 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) { eval $ac_var=; unset $ac_var;} ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 printf "%s\n" "## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##"
1858 echo
1859 for ac_var in $ac_subst_vars
1860 do
1861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 printf "%s\n" "$ac_var='\''$ac_val'\''"
1866 done | sort
1867 echo
1868
1869 if test -n "$ac_subst_files"; then
1870 printf "%s\n" "## ------------------- ##
1871 ## File substitutions. ##
1872 ## ------------------- ##"
1873 echo
1874 for ac_var in $ac_subst_files
1875 do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 printf "%s\n" "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1883 fi
1884
1885 if test -s confdefs.h; then
1886 printf "%s\n" "## ----------- ##
1887 ## confdefs.h. ##
1888 ## ----------- ##"
1889 echo
1890 cat confdefs.h
1891 echo
1892 fi
1893 test "$ac_signal" != 0 &&
1894 printf "%s\n" "$as_me: caught signal $ac_signal"
1895 printf "%s\n" "$as_me: exit $exit_status"
1896 } >&5
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 exit $exit_status
1900 ' 0
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1903 done
1904 ac_signal=0
1905
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1908
1909 printf "%s\n" "/* confdefs.h */" > confdefs.h
1910
1911 # Predefined preprocessor variables.
1912
1913 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1914
1915 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1916
1917 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1918
1919 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1920
1921 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1922
1923 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1924
1925
1926 # Let the site file select an alternate cache file if it wants to.
1927 # Prefer an explicitly selected file to automatically selected ones.
1928 if test -n "$CONFIG_SITE"; then
1929 ac_site_files="$CONFIG_SITE"
1930 elif test "x$prefix" != xNONE; then
1931 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1932 else
1933 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1934 fi
1935
1936 for ac_site_file in $ac_site_files
1937 do
1938 case $ac_site_file in #(
1939 */*) :
1940 ;; #(
1941 *) :
1942 ac_site_file=./$ac_site_file ;;
1943 esac
1944 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1946 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1947 sed 's/^/| /' "$ac_site_file" >&5
1948 . "$ac_site_file" \
1949 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1950 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1951 as_fn_error $? "failed to load site script $ac_site_file
1952 See \`config.log' for more details" "$LINENO" 5; }
1953 fi
1954 done
1955
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special files
1958 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1959 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1961 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1966 fi
1967 else
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1969 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1971 fi
1972
1973 # Test code for whether the C compiler supports C89 (global declarations)
1974 ac_c_conftest_c89_globals='
1975 /* Does the compiler advertise C89 conformance?
1976 Do not test the value of __STDC__, because some compilers set it to 0
1977 while being otherwise adequately conformant. */
1978 #if !defined __STDC__
1979 # error "Compiler does not advertise C89 conformance"
1980 #endif
1981
1982 #include <stddef.h>
1983 #include <stdarg.h>
1984 struct stat;
1985 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1986 struct buf { int x; };
1987 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1988 static char *e (p, i)
1989 char **p;
1990 int i;
1991 {
1992 return p[i];
1993 }
1994 static char *f (char * (*g) (char **, int), char **p, ...)
1995 {
1996 char *s;
1997 va_list v;
1998 va_start (v,p);
1999 s = g (p, va_arg (v,int));
2000 va_end (v);
2001 return s;
2002 }
2003
2004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2005 function prototypes and stuff, but not \xHH hex character constants.
2006 These do not provoke an error unfortunately, instead are silently treated
2007 as an "x". The following induces an error, until -std is added to get
2008 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2009 array size at least. It is necessary to write \x00 == 0 to get something
2010 that is true only with -std. */
2011 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2012
2013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2014 inside strings and character constants. */
2015 #define FOO(x) '\''x'\''
2016 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2017
2018 int test (int i, double x);
2019 struct s1 {int (*f) (int a);};
2020 struct s2 {int (*f) (double a);};
2021 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2022 int, int);'
2023
2024 # Test code for whether the C compiler supports C89 (body of main).
2025 ac_c_conftest_c89_main='
2026 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2027 '
2028
2029 # Test code for whether the C compiler supports C99 (global declarations)
2030 ac_c_conftest_c99_globals='
2031 // Does the compiler advertise C99 conformance?
2032 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2033 # error "Compiler does not advertise C99 conformance"
2034 #endif
2035
2036 #include <stdbool.h>
2037 extern int puts (const char *);
2038 extern int printf (const char *, ...);
2039 extern int dprintf (int, const char *, ...);
2040 extern void *malloc (size_t);
2041
2042 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2043 // dprintf is used instead of fprintf to avoid needing to declare
2044 // FILE and stderr.
2045 #define debug(...) dprintf (2, __VA_ARGS__)
2046 #define showlist(...) puts (#__VA_ARGS__)
2047 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2048 static void
2049 test_varargs_macros (void)
2050 {
2051 int x = 1234;
2052 int y = 5678;
2053 debug ("Flag");
2054 debug ("X = %d\n", x);
2055 showlist (The first, second, and third items.);
2056 report (x>y, "x is %d but y is %d", x, y);
2057 }
2058
2059 // Check long long types.
2060 #define BIG64 18446744073709551615ull
2061 #define BIG32 4294967295ul
2062 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2063 #if !BIG_OK
2064 #error "your preprocessor is broken"
2065 #endif
2066 #if BIG_OK
2067 #else
2068 #error "your preprocessor is broken"
2069 #endif
2070 static long long int bignum = -9223372036854775807LL;
2071 static unsigned long long int ubignum = BIG64;
2072
2073 struct incomplete_array
2074 {
2075 int datasize;
2076 double data[];
2077 };
2078
2079 struct named_init {
2080 int number;
2081 const wchar_t *name;
2082 double average;
2083 };
2084
2085 typedef const char *ccp;
2086
2087 static inline int
2088 test_restrict (ccp restrict text)
2089 {
2090 // See if C++-style comments work.
2091 // Iterate through items via the restricted pointer.
2092 // Also check for declarations in for loops.
2093 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2094 continue;
2095 return 0;
2096 }
2097
2098 // Check varargs and va_copy.
2099 static bool
2100 test_varargs (const char *format, ...)
2101 {
2102 va_list args;
2103 va_start (args, format);
2104 va_list args_copy;
2105 va_copy (args_copy, args);
2106
2107 const char *str = "";
2108 int number = 0;
2109 float fnumber = 0;
2110
2111 while (*format)
2112 {
2113 switch (*format++)
2114 {
2115 case '\''s'\'': // string
2116 str = va_arg (args_copy, const char *);
2117 break;
2118 case '\''d'\'': // int
2119 number = va_arg (args_copy, int);
2120 break;
2121 case '\''f'\'': // float
2122 fnumber = va_arg (args_copy, double);
2123 break;
2124 default:
2125 break;
2126 }
2127 }
2128 va_end (args_copy);
2129 va_end (args);
2130
2131 return *str && number && fnumber;
2132 }
2133 '
2134
2135 # Test code for whether the C compiler supports C99 (body of main).
2136 ac_c_conftest_c99_main='
2137 // Check bool.
2138 _Bool success = false;
2139 success |= (argc != 0);
2140
2141 // Check restrict.
2142 if (test_restrict ("String literal") == 0)
2143 success = true;
2144 char *restrict newvar = "Another string";
2145
2146 // Check varargs.
2147 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2148 test_varargs_macros ();
2149
2150 // Check flexible array members.
2151 struct incomplete_array *ia =
2152 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2153 ia->datasize = 10;
2154 for (int i = 0; i < ia->datasize; ++i)
2155 ia->data[i] = i * 1.234;
2156
2157 // Check named initializers.
2158 struct named_init ni = {
2159 .number = 34,
2160 .name = L"Test wide string",
2161 .average = 543.34343,
2162 };
2163
2164 ni.number = 58;
2165
2166 int dynamic_array[ni.number];
2167 dynamic_array[0] = argv[0][0];
2168 dynamic_array[ni.number - 1] = 543;
2169
2170 // work around unused variable warnings
2171 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2172 || dynamic_array[ni.number - 1] != 543);
2173 '
2174
2175 # Test code for whether the C compiler supports C11 (global declarations)
2176 ac_c_conftest_c11_globals='
2177 // Does the compiler advertise C11 conformance?
2178 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2179 # error "Compiler does not advertise C11 conformance"
2180 #endif
2181
2182 // Check _Alignas.
2183 char _Alignas (double) aligned_as_double;
2184 char _Alignas (0) no_special_alignment;
2185 extern char aligned_as_int;
2186 char _Alignas (0) _Alignas (int) aligned_as_int;
2187
2188 // Check _Alignof.
2189 enum
2190 {
2191 int_alignment = _Alignof (int),
2192 int_array_alignment = _Alignof (int[100]),
2193 char_alignment = _Alignof (char)
2194 };
2195 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2196
2197 // Check _Noreturn.
2198 int _Noreturn does_not_return (void) { for (;;) continue; }
2199
2200 // Check _Static_assert.
2201 struct test_static_assert
2202 {
2203 int x;
2204 _Static_assert (sizeof (int) <= sizeof (long int),
2205 "_Static_assert does not work in struct");
2206 long int y;
2207 };
2208
2209 // Check UTF-8 literals.
2210 #define u8 syntax error!
2211 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2212
2213 // Check duplicate typedefs.
2214 typedef long *long_ptr;
2215 typedef long int *long_ptr;
2216 typedef long_ptr long_ptr;
2217
2218 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2219 struct anonymous
2220 {
2221 union {
2222 struct { int i; int j; };
2223 struct { int k; long int l; } w;
2224 };
2225 int m;
2226 } v1;
2227 '
2228
2229 # Test code for whether the C compiler supports C11 (body of main).
2230 ac_c_conftest_c11_main='
2231 _Static_assert ((offsetof (struct anonymous, i)
2232 == offsetof (struct anonymous, w.k)),
2233 "Anonymous union alignment botch");
2234 v1.i = 2;
2235 v1.w.k = 5;
2236 ok |= v1.i != 5;
2237 '
2238
2239 # Test code for whether the C compiler supports C11 (complete).
2240 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2241 ${ac_c_conftest_c99_globals}
2242 ${ac_c_conftest_c11_globals}
2243
2244 int
2245 main (int argc, char **argv)
2246 {
2247 int ok = 0;
2248 ${ac_c_conftest_c89_main}
2249 ${ac_c_conftest_c99_main}
2250 ${ac_c_conftest_c11_main}
2251 return ok;
2252 }
2253 "
2254
2255 # Test code for whether the C compiler supports C99 (complete).
2256 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2257 ${ac_c_conftest_c99_globals}
2258
2259 int
2260 main (int argc, char **argv)
2261 {
2262 int ok = 0;
2263 ${ac_c_conftest_c89_main}
2264 ${ac_c_conftest_c99_main}
2265 return ok;
2266 }
2267 "
2268
2269 # Test code for whether the C compiler supports C89 (complete).
2270 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2271
2272 int
2273 main (int argc, char **argv)
2274 {
2275 int ok = 0;
2276 ${ac_c_conftest_c89_main}
2277 return ok;
2278 }
2279 "
2280
2281 # Test code for whether the C++ compiler supports C++98 (global declarations)
2282 ac_cxx_conftest_cxx98_globals='
2283 // Does the compiler advertise C++98 conformance?
2284 #if !defined __cplusplus || __cplusplus < 199711L
2285 # error "Compiler does not advertise C++98 conformance"
2286 #endif
2287
2288 // These inclusions are to reject old compilers that
2289 // lack the unsuffixed header files.
2290 #include <cstdlib>
2291 #include <exception>
2292
2293 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2294 extern void assert (int);
2295 namespace std {
2296 extern int strcmp (const char *, const char *);
2297 }
2298
2299 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2300 using std::exception;
2301 using std::strcmp;
2302
2303 namespace {
2304
2305 void test_exception_syntax()
2306 {
2307 try {
2308 throw "test";
2309 } catch (const char *s) {
2310 // Extra parentheses suppress a warning when building autoconf itself,
2311 // due to lint rules shared with more typical C programs.
2312 assert (!(strcmp) (s, "test"));
2313 }
2314 }
2315
2316 template <typename T> struct test_template
2317 {
2318 T const val;
2319 explicit test_template(T t) : val(t) {}
2320 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2321 };
2322
2323 } // anonymous namespace
2324 '
2325
2326 # Test code for whether the C++ compiler supports C++98 (body of main)
2327 ac_cxx_conftest_cxx98_main='
2328 assert (argc);
2329 assert (! argv[0]);
2330 {
2331 test_exception_syntax ();
2332 test_template<double> tt (2.0);
2333 assert (tt.add (4) == 6.0);
2334 assert (true && !false);
2335 }
2336 '
2337
2338 # Test code for whether the C++ compiler supports C++11 (global declarations)
2339 ac_cxx_conftest_cxx11_globals='
2340 // Does the compiler advertise C++ 2011 conformance?
2341 #if !defined __cplusplus || __cplusplus < 201103L
2342 # error "Compiler does not advertise C++11 conformance"
2343 #endif
2344
2345 namespace cxx11test
2346 {
2347 constexpr int get_val() { return 20; }
2348
2349 struct testinit
2350 {
2351 int i;
2352 double d;
2353 };
2354
2355 class delegate
2356 {
2357 public:
2358 delegate(int n) : n(n) {}
2359 delegate(): delegate(2354) {}
2360
2361 virtual int getval() { return this->n; };
2362 protected:
2363 int n;
2364 };
2365
2366 class overridden : public delegate
2367 {
2368 public:
2369 overridden(int n): delegate(n) {}
2370 virtual int getval() override final { return this->n * 2; }
2371 };
2372
2373 class nocopy
2374 {
2375 public:
2376 nocopy(int i): i(i) {}
2377 nocopy() = default;
2378 nocopy(const nocopy&) = delete;
2379 nocopy & operator=(const nocopy&) = delete;
2380 private:
2381 int i;
2382 };
2383
2384 // for testing lambda expressions
2385 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2386 {
2387 return f(v);
2388 }
2389
2390 // for testing variadic templates and trailing return types
2391 template <typename V> auto sum(V first) -> V
2392 {
2393 return first;
2394 }
2395 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2396 {
2397 return first + sum(rest...);
2398 }
2399 }
2400 '
2401
2402 # Test code for whether the C++ compiler supports C++11 (body of main)
2403 ac_cxx_conftest_cxx11_main='
2404 {
2405 // Test auto and decltype
2406 auto a1 = 6538;
2407 auto a2 = 48573953.4;
2408 auto a3 = "String literal";
2409
2410 int total = 0;
2411 for (auto i = a3; *i; ++i) { total += *i; }
2412
2413 decltype(a2) a4 = 34895.034;
2414 }
2415 {
2416 // Test constexpr
2417 short sa[cxx11test::get_val()] = { 0 };
2418 }
2419 {
2420 // Test initializer lists
2421 cxx11test::testinit il = { 4323, 435234.23544 };
2422 }
2423 {
2424 // Test range-based for
2425 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2426 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2427 for (auto &x : array) { x += 23; }
2428 }
2429 {
2430 // Test lambda expressions
2431 using cxx11test::eval;
2432 assert (eval ([](int x) { return x*2; }, 21) == 42);
2433 double d = 2.0;
2434 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2435 assert (d == 5.0);
2436 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2437 assert (d == 5.0);
2438 }
2439 {
2440 // Test use of variadic templates
2441 using cxx11test::sum;
2442 auto a = sum(1);
2443 auto b = sum(1, 2);
2444 auto c = sum(1.0, 2.0, 3.0);
2445 }
2446 {
2447 // Test constructor delegation
2448 cxx11test::delegate d1;
2449 cxx11test::delegate d2();
2450 cxx11test::delegate d3(45);
2451 }
2452 {
2453 // Test override and final
2454 cxx11test::overridden o1(55464);
2455 }
2456 {
2457 // Test nullptr
2458 char *c = nullptr;
2459 }
2460 {
2461 // Test template brackets
2462 test_template<::test_template<int>> v(test_template<int>(12));
2463 }
2464 {
2465 // Unicode literals
2466 char const *utf8 = u8"UTF-8 string \u2500";
2467 char16_t const *utf16 = u"UTF-8 string \u2500";
2468 char32_t const *utf32 = U"UTF-32 string \u2500";
2469 }
2470 '
2471
2472 # Test code for whether the C compiler supports C++11 (complete).
2473 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2474 ${ac_cxx_conftest_cxx11_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_cxx_conftest_cxx98_main}
2481 ${ac_cxx_conftest_cxx11_main}
2482 return ok;
2483 }
2484 "
2485
2486 # Test code for whether the C compiler supports C++98 (complete).
2487 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2488 int
2489 main (int argc, char **argv)
2490 {
2491 int ok = 0;
2492 ${ac_cxx_conftest_cxx98_main}
2493 return ok;
2494 }
2495 "
2496
2497
2498 # Auxiliary files required by this configure script.
2499 ac_aux_files="missing install-sh compile"
2500
2501 # Locations in which to look for auxiliary files.
2502 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2503
2504 # Search for a directory containing all of the required auxiliary files,
2505 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2506 # If we don't find one directory that contains all the files we need,
2507 # we report the set of missing files from the *first* directory in
2508 # $ac_aux_dir_candidates and give up.
2509 ac_missing_aux_files=""
2510 ac_first_candidate=:
2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 as_found=false
2514 for as_dir in $ac_aux_dir_candidates
2515 do
2516 IFS=$as_save_IFS
2517 case $as_dir in #(((
2518 '') as_dir=./ ;;
2519 */) ;;
2520 *) as_dir=$as_dir/ ;;
2521 esac
2522 as_found=:
2523
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2525 ac_aux_dir_found=yes
2526 ac_install_sh=
2527 for ac_aux in $ac_aux_files
2528 do
2529 # As a special case, if "install-sh" is required, that requirement
2530 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2531 # and $ac_install_sh is set appropriately for whichever one is found.
2532 if test x"$ac_aux" = x"install-sh"
2533 then
2534 if test -f "${as_dir}install-sh"; then
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2536 ac_install_sh="${as_dir}install-sh -c"
2537 elif test -f "${as_dir}install.sh"; then
2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2539 ac_install_sh="${as_dir}install.sh -c"
2540 elif test -f "${as_dir}shtool"; then
2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2542 ac_install_sh="${as_dir}shtool install -c"
2543 else
2544 ac_aux_dir_found=no
2545 if $ac_first_candidate; then
2546 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2547 else
2548 break
2549 fi
2550 fi
2551 else
2552 if test -f "${as_dir}${ac_aux}"; then
2553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2554 else
2555 ac_aux_dir_found=no
2556 if $ac_first_candidate; then
2557 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2558 else
2559 break
2560 fi
2561 fi
2562 fi
2563 done
2564 if test "$ac_aux_dir_found" = yes; then
2565 ac_aux_dir="$as_dir"
2566 break
2567 fi
2568 ac_first_candidate=false
2569
2570 as_found=false
2571 done
2572 IFS=$as_save_IFS
2573 if $as_found
2574 then :
2575
2576 else $as_nop
2577 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2578 fi
2579
2580
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 if test -f "${ac_aux_dir}config.guess"; then
2586 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2587 fi
2588 if test -f "${ac_aux_dir}config.sub"; then
2589 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2590 fi
2591 if test -f "$ac_aux_dir/configure"; then
2592 ac_configure="$SHELL ${ac_aux_dir}configure"
2593 fi
2594
2595 # Check that the precious variables saved in the cache have kept the same
2596 # value.
2597 ac_cache_corrupted=false
2598 for ac_var in $ac_precious_vars; do
2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
2603 case $ac_old_set,$ac_new_set in
2604 set,)
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,set)
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2612 ,);;
2613 *)
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
2615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2622 else
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2626 fi
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2628 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2630 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2631 fi;;
2632 esac
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2635 case $ac_new_val in
2636 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 *) ac_arg=$ac_var=$ac_new_val ;;
2638 esac
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 esac
2643 fi
2644 done
2645 if $ac_cache_corrupted; then
2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2651 and start over" "$LINENO" 5
2652 fi
2653 ## -------------------- ##
2654 ## Main body of script. ##
2655 ## -------------------- ##
2656
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 printf %s "checking for $ac_word... " >&6; }
2683 if test ${ac_cv_prog_CC+y}
2684 then :
2685 printf %s "(cached) " >&6
2686 else $as_nop
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 case $as_dir in #(((
2695 '') as_dir=./ ;;
2696 */) ;;
2697 *) as_dir=$as_dir/ ;;
2698 esac
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714 printf "%s\n" "$CC" >&6; }
2715 else
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 printf "%s\n" "no" >&6; }
2718 fi
2719
2720
2721 fi
2722 if test -z "$ac_cv_prog_CC"; then
2723 ac_ct_CC=$CC
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725 set dummy gcc; ac_word=$2
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 printf %s "checking for $ac_word... " >&6; }
2728 if test ${ac_cv_prog_ac_ct_CC+y}
2729 then :
2730 printf %s "(cached) " >&6
2731 else $as_nop
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 case $as_dir in #(((
2740 '') as_dir=./ ;;
2741 */) ;;
2742 *) as_dir=$as_dir/ ;;
2743 esac
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759 printf "%s\n" "$ac_ct_CC" >&6; }
2760 else
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 printf "%s\n" "no" >&6; }
2763 fi
2764
2765 if test "x$ac_ct_CC" = x; then
2766 CC=""
2767 else
2768 case $cross_compiling:$ac_tool_warned in
2769 yes:)
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772 ac_tool_warned=yes ;;
2773 esac
2774 CC=$ac_ct_CC
2775 fi
2776 else
2777 CC="$ac_cv_prog_CC"
2778 fi
2779
2780 if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}cc; ac_word=$2
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 printf %s "checking for $ac_word... " >&6; }
2786 if test ${ac_cv_prog_CC+y}
2787 then :
2788 printf %s "(cached) " >&6
2789 else $as_nop
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 case $as_dir in #(((
2798 '') as_dir=./ ;;
2799 */) ;;
2800 *) as_dir=$as_dir/ ;;
2801 esac
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}cc"
2805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 printf "%s\n" "$CC" >&6; }
2818 else
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 printf "%s\n" "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 fi
2826 if test -z "$CC"; then
2827 # Extract the first word of "cc", so it can be a program name with args.
2828 set dummy cc; ac_word=$2
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 printf %s "checking for $ac_word... " >&6; }
2831 if test ${ac_cv_prog_CC+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else $as_nop
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 ac_prog_rejected=no
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 case $as_dir in #(((
2844 '') as_dir=./ ;;
2845 */) ;;
2846 *) as_dir=$as_dir/ ;;
2847 esac
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2850 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851 ac_prog_rejected=yes
2852 continue
2853 fi
2854 ac_cv_prog_CC="cc"
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 if test $ac_prog_rejected = yes; then
2863 # We found a bogon in the path, so make sure we never use it.
2864 set dummy $ac_cv_prog_CC
2865 shift
2866 if test $# != 0; then
2867 # We chose a different compiler from the bogus one.
2868 # However, it has the same basename, so the bogon will be chosen
2869 # first if we set CC to just the basename; use the full file name.
2870 shift
2871 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2872 fi
2873 fi
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 printf %s "checking for $ac_word... " >&6; }
2895 if test ${ac_cv_prog_CC+y}
2896 then :
2897 printf %s "(cached) " >&6
2898 else $as_nop
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 case $as_dir in #(((
2907 '') as_dir=./ ;;
2908 */) ;;
2909 *) as_dir=$as_dir/ ;;
2910 esac
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 printf "%s\n" "$CC" >&6; }
2927 else
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 printf "%s\n" "no" >&6; }
2930 fi
2931
2932
2933 test -n "$CC" && break
2934 done
2935 fi
2936 if test -z "$CC"; then
2937 ac_ct_CC=$CC
2938 for ac_prog in cl.exe
2939 do
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 printf %s "checking for $ac_word... " >&6; }
2944 if test ${ac_cv_prog_ac_ct_CC+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else $as_nop
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 case $as_dir in #(((
2956 '') as_dir=./ ;;
2957 */) ;;
2958 *) as_dir=$as_dir/ ;;
2959 esac
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_ac_ct_CC="$ac_prog"
2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 printf "%s\n" "$ac_ct_CC" >&6; }
2976 else
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 printf "%s\n" "no" >&6; }
2979 fi
2980
2981
2982 test -n "$ac_ct_CC" && break
2983 done
2984
2985 if test "x$ac_ct_CC" = x; then
2986 CC=""
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 CC=$ac_ct_CC
2995 fi
2996 fi
2997
2998 fi
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}clang; ac_word=$2
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 printf %s "checking for $ac_word... " >&6; }
3005 if test ${ac_cv_prog_CC+y}
3006 then :
3007 printf %s "(cached) " >&6
3008 else $as_nop
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 case $as_dir in #(((
3017 '') as_dir=./ ;;
3018 */) ;;
3019 *) as_dir=$as_dir/ ;;
3020 esac
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_CC="${ac_tool_prefix}clang"
3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 printf "%s\n" "$CC" >&6; }
3037 else
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 printf "%s\n" "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 if test -z "$ac_cv_prog_CC"; then
3045 ac_ct_CC=$CC
3046 # Extract the first word of "clang", so it can be a program name with args.
3047 set dummy clang; ac_word=$2
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 printf %s "checking for $ac_word... " >&6; }
3050 if test ${ac_cv_prog_ac_ct_CC+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else $as_nop
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 case $as_dir in #(((
3062 '') as_dir=./ ;;
3063 */) ;;
3064 *) as_dir=$as_dir/ ;;
3065 esac
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_ac_ct_CC="clang"
3069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3081 printf "%s\n" "$ac_ct_CC" >&6; }
3082 else
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 printf "%s\n" "no" >&6; }
3085 fi
3086
3087 if test "x$ac_ct_CC" = x; then
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091 yes:)
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3094 ac_tool_warned=yes ;;
3095 esac
3096 CC=$ac_ct_CC
3097 fi
3098 else
3099 CC="$ac_cv_prog_CC"
3100 fi
3101
3102 fi
3103
3104
3105 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details" "$LINENO" 5; }
3109
3110 # Provide some information about the compiler.
3111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3112 set X $ac_compile
3113 ac_compiler=$2
3114 for ac_option in --version -v -V -qversion -version; do
3115 { { ac_try="$ac_compiler $ac_option >&5"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 printf "%s\n" "$ac_try_echo"; } >&5
3122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3123 ac_status=$?
3124 if test -s conftest.err; then
3125 sed '10a\
3126 ... rest of stderr output deleted ...
3127 10q' conftest.err >conftest.er1
3128 cat conftest.er1 >&5
3129 fi
3130 rm -f conftest.er1 conftest.err
3131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }
3133 done
3134
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3137
3138 int
3139 main (void)
3140 {
3141
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 ac_clean_files_save=$ac_clean_files
3147 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3148 # Try to create an executable without -o first, disregard a.out.
3149 # It will help us diagnose broken compilers, and finding out an intuition
3150 # of exeext.
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3152 printf %s "checking whether the C compiler works... " >&6; }
3153 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3154
3155 # The possible output files:
3156 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3157
3158 ac_rmfiles=
3159 for ac_file in $ac_files
3160 do
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3164 esac
3165 done
3166 rm -f $ac_rmfiles
3167
3168 if { { ac_try="$ac_link_default"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 printf "%s\n" "$ac_try_echo"; } >&5
3175 (eval "$ac_link_default") 2>&5
3176 ac_status=$?
3177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }
3179 then :
3180 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3181 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3182 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3183 # so that the user can short-circuit this test for compilers unknown to
3184 # Autoconf.
3185 for ac_file in $ac_files ''
3186 do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3190 ;;
3191 [ab].out )
3192 # We found the default executable, but exeext='' is most
3193 # certainly right.
3194 break;;
3195 *.* )
3196 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3197 then :; else
3198 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199 fi
3200 # We set ac_cv_exeext here because the later test for it is not
3201 # safe: cross compilers may not add the suffix if given an `-o'
3202 # argument, so we may need to know it at that point already.
3203 # Even if this section looks crufty: it has the advantage of
3204 # actually working.
3205 break;;
3206 * )
3207 break;;
3208 esac
3209 done
3210 test "$ac_cv_exeext" = no && ac_cv_exeext=
3211
3212 else $as_nop
3213 ac_file=''
3214 fi
3215 if test -z "$ac_file"
3216 then :
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 printf "%s\n" "no" >&6; }
3219 printf "%s\n" "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error 77 "C compiler cannot create executables
3225 See \`config.log' for more details" "$LINENO" 5; }
3226 else $as_nop
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 printf "%s\n" "yes" >&6; }
3229 fi
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231 printf %s "checking for C compiler default output file name... " >&6; }
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233 printf "%s\n" "$ac_file" >&6; }
3234 ac_exeext=$ac_cv_exeext
3235
3236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3237 ac_clean_files=$ac_clean_files_save
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3239 printf %s "checking for suffix of executables... " >&6; }
3240 if { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 printf "%s\n" "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 then :
3252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3254 # work properly (i.e., refer to `conftest.exe'), while it won't with
3255 # `rm'.
3256 for ac_file in conftest.exe conftest conftest.*; do
3257 test -f "$ac_file" || continue
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 break;;
3262 * ) break;;
3263 esac
3264 done
3265 else $as_nop
3266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3269 See \`config.log' for more details" "$LINENO" 5; }
3270 fi
3271 rm -f conftest conftest$ac_cv_exeext
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3273 printf "%s\n" "$ac_cv_exeext" >&6; }
3274
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280 #include <stdio.h>
3281 int
3282 main (void)
3283 {
3284 FILE *f = fopen ("conftest.out", "w");
3285 return ferror (f) || fclose (f) != 0;
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 ac_clean_files="$ac_clean_files conftest.out"
3292 # Check that the compiler produces executables we can run. If not, either
3293 # the compiler is broken, or we cross compile.
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3295 printf %s "checking whether we are cross compiling... " >&6; }
3296 if test "$cross_compiling" != yes; then
3297 { { ac_try="$ac_link"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 printf "%s\n" "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3305 ac_status=$?
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3308 if { ac_try='./conftest$ac_cv_exeext'
3309 { { case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 printf "%s\n" "$ac_try_echo"; } >&5
3315 (eval "$ac_try") 2>&5
3316 ac_status=$?
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; }; then
3319 cross_compiling=no
3320 else
3321 if test "$cross_compiling" = maybe; then
3322 cross_compiling=yes
3323 else
3324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error 77 "cannot run C compiled programs.
3327 If you meant to cross compile, use \`--host'.
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 fi
3330 fi
3331 fi
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3333 printf "%s\n" "$cross_compiling" >&6; }
3334
3335 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3336 ac_clean_files=$ac_clean_files_save
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3338 printf %s "checking for suffix of object files... " >&6; }
3339 if test ${ac_cv_objext+y}
3340 then :
3341 printf %s "(cached) " >&6
3342 else $as_nop
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main (void)
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 rm -f conftest.o conftest.obj
3355 if { { ac_try="$ac_compile"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 printf "%s\n" "$ac_try_echo"; } >&5
3362 (eval "$ac_compile") 2>&5
3363 ac_status=$?
3364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }
3366 then :
3367 for ac_file in conftest.o conftest.obj conftest.*; do
3368 test -f "$ac_file" || continue;
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372 break;;
3373 esac
3374 done
3375 else $as_nop
3376 printf "%s\n" "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3385 fi
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3387 printf "%s\n" "$ac_cv_objext" >&6; }
3388 OBJEXT=$ac_cv_objext
3389 ac_objext=$OBJEXT
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3391 printf %s "checking whether the compiler supports GNU C... " >&6; }
3392 if test ${ac_cv_c_compiler_gnu+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else $as_nop
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main (void)
3401 {
3402 #ifndef __GNUC__
3403 choke me
3404 #endif
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"
3411 then :
3412 ac_compiler_gnu=yes
3413 else $as_nop
3414 ac_compiler_gnu=no
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418
3419 fi
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3421 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424 if test $ac_compiler_gnu = yes; then
3425 GCC=yes
3426 else
3427 GCC=
3428 fi
3429 ac_test_CFLAGS=${CFLAGS+y}
3430 ac_save_CFLAGS=$CFLAGS
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3432 printf %s "checking whether $CC accepts -g... " >&6; }
3433 if test ${ac_cv_prog_cc_g+y}
3434 then :
3435 printf %s "(cached) " >&6
3436 else $as_nop
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main (void)
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"
3453 then :
3454 ac_cv_prog_cc_g=yes
3455 else $as_nop
3456 CFLAGS=""
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main (void)
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"
3469 then :
3470
3471 else $as_nop
3472 ac_c_werror_flag=$ac_save_c_werror_flag
3473 CFLAGS="-g"
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main (void)
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"
3486 then :
3487 ac_cv_prog_cc_g=yes
3488 fi
3489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3495 fi
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3497 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3498 if test $ac_test_CFLAGS; then
3499 CFLAGS=$ac_save_CFLAGS
3500 elif test $ac_cv_prog_cc_g = yes; then
3501 if test "$GCC" = yes; then
3502 CFLAGS="-g -O2"
3503 else
3504 CFLAGS="-g"
3505 fi
3506 else
3507 if test "$GCC" = yes; then
3508 CFLAGS="-O2"
3509 else
3510 CFLAGS=
3511 fi
3512 fi
3513 ac_prog_cc_stdc=no
3514 if test x$ac_prog_cc_stdc = xno
3515 then :
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3517 printf %s "checking for $CC option to enable C11 features... " >&6; }
3518 if test ${ac_cv_prog_cc_c11+y}
3519 then :
3520 printf %s "(cached) " >&6
3521 else $as_nop
3522 ac_cv_prog_cc_c11=no
3523 ac_save_CC=$CC
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 $ac_c_conftest_c11_program
3527 _ACEOF
3528 for ac_arg in '' -std=gnu11
3529 do
3530 CC="$ac_save_CC $ac_arg"
3531 if ac_fn_c_try_compile "$LINENO"
3532 then :
3533 ac_cv_prog_cc_c11=$ac_arg
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.beam
3536 test "x$ac_cv_prog_cc_c11" != "xno" && break
3537 done
3538 rm -f conftest.$ac_ext
3539 CC=$ac_save_CC
3540 fi
3541
3542 if test "x$ac_cv_prog_cc_c11" = xno
3543 then :
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 printf "%s\n" "unsupported" >&6; }
3546 else $as_nop
3547 if test "x$ac_cv_prog_cc_c11" = x
3548 then :
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3550 printf "%s\n" "none needed" >&6; }
3551 else $as_nop
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3553 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3554 CC="$CC $ac_cv_prog_cc_c11"
3555 fi
3556 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3557 ac_prog_cc_stdc=c11
3558 fi
3559 fi
3560 if test x$ac_prog_cc_stdc = xno
3561 then :
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3563 printf %s "checking for $CC option to enable C99 features... " >&6; }
3564 if test ${ac_cv_prog_cc_c99+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else $as_nop
3568 ac_cv_prog_cc_c99=no
3569 ac_save_CC=$CC
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 $ac_c_conftest_c99_program
3573 _ACEOF
3574 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3575 do
3576 CC="$ac_save_CC $ac_arg"
3577 if ac_fn_c_try_compile "$LINENO"
3578 then :
3579 ac_cv_prog_cc_c99=$ac_arg
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.beam
3582 test "x$ac_cv_prog_cc_c99" != "xno" && break
3583 done
3584 rm -f conftest.$ac_ext
3585 CC=$ac_save_CC
3586 fi
3587
3588 if test "x$ac_cv_prog_cc_c99" = xno
3589 then :
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 printf "%s\n" "unsupported" >&6; }
3592 else $as_nop
3593 if test "x$ac_cv_prog_cc_c99" = x
3594 then :
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3596 printf "%s\n" "none needed" >&6; }
3597 else $as_nop
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3599 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3600 CC="$CC $ac_cv_prog_cc_c99"
3601 fi
3602 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3603 ac_prog_cc_stdc=c99
3604 fi
3605 fi
3606 if test x$ac_prog_cc_stdc = xno
3607 then :
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3609 printf %s "checking for $CC option to enable C89 features... " >&6; }
3610 if test ${ac_cv_prog_cc_c89+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else $as_nop
3614 ac_cv_prog_cc_c89=no
3615 ac_save_CC=$CC
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618 $ac_c_conftest_c89_program
3619 _ACEOF
3620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621 do
3622 CC="$ac_save_CC $ac_arg"
3623 if ac_fn_c_try_compile "$LINENO"
3624 then :
3625 ac_cv_prog_cc_c89=$ac_arg
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.beam
3628 test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 done
3630 rm -f conftest.$ac_ext
3631 CC=$ac_save_CC
3632 fi
3633
3634 if test "x$ac_cv_prog_cc_c89" = xno
3635 then :
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 printf "%s\n" "unsupported" >&6; }
3638 else $as_nop
3639 if test "x$ac_cv_prog_cc_c89" = x
3640 then :
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3642 printf "%s\n" "none needed" >&6; }
3643 else $as_nop
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3645 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3646 CC="$CC $ac_cv_prog_cc_c89"
3647 fi
3648 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3649 ac_prog_cc_stdc=c89
3650 fi
3651 fi
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658
3659
3660
3661 # Expand $ac_aux_dir to an absolute path.
3662 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3663
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3671 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3672 if test ${am_cv_prog_cc_c_o+y}
3673 then :
3674 printf %s "(cached) " >&6
3675 else $as_nop
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main (void)
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 # Make sure it works both with $CC and with simple cc.
3688 # Following AC_PROG_CC_C_O, we do the test twice because some
3689 # compilers refuse to overwrite an existing .o file with -o,
3690 # though they will create one.
3691 am_cv_prog_cc_c_o=yes
3692 for am_i in 1 2; do
3693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } \
3698 && test -f conftest2.$ac_objext; then
3699 : OK
3700 else
3701 am_cv_prog_cc_c_o=no
3702 break
3703 fi
3704 done
3705 rm -f core conftest*
3706 unset am_i
3707 fi
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3709 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3710 if test "$am_cv_prog_cc_c_o" != yes; then
3711 # Losing compiler, so override with the script.
3712 # FIXME: It is wrong to rewrite CC.
3713 # But if we don't then we get into trouble of one sort or another.
3714 # A longer-term fix would be to have automake use am__CC in this case,
3715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3716 CC="$am_aux_dir/compile $CC"
3717 fi
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724
3725
3726
3727
3728
3729
3730
3731 ac_ext=cpp
3732 ac_cpp='$CXXCPP $CPPFLAGS'
3733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3736 if test -z "$CXX"; then
3737 if test -n "$CCC"; then
3738 CXX=$CCC
3739 else
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3742 do
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 printf %s "checking for $ac_word... " >&6; }
3747 if test ${ac_cv_prog_CXX+y}
3748 then :
3749 printf %s "(cached) " >&6
3750 else $as_nop
3751 if test -n "$CXX"; then
3752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 case $as_dir in #(((
3759 '') as_dir=./ ;;
3760 */) ;;
3761 *) as_dir=$as_dir/ ;;
3762 esac
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769 done
3770 done
3771 IFS=$as_save_IFS
3772
3773 fi
3774 fi
3775 CXX=$ac_cv_prog_CXX
3776 if test -n "$CXX"; then
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3778 printf "%s\n" "$CXX" >&6; }
3779 else
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 printf "%s\n" "no" >&6; }
3782 fi
3783
3784
3785 test -n "$CXX" && break
3786 done
3787 fi
3788 if test -z "$CXX"; then
3789 ac_ct_CXX=$CXX
3790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3791 do
3792 # Extract the first word of "$ac_prog", so it can be a program name with args.
3793 set dummy $ac_prog; ac_word=$2
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 printf %s "checking for $ac_word... " >&6; }
3796 if test ${ac_cv_prog_ac_ct_CXX+y}
3797 then :
3798 printf %s "(cached) " >&6
3799 else $as_nop
3800 if test -n "$ac_ct_CXX"; then
3801 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 case $as_dir in #(((
3808 '') as_dir=./ ;;
3809 */) ;;
3810 *) as_dir=$as_dir/ ;;
3811 esac
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CXX="$ac_prog"
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3825 if test -n "$ac_ct_CXX"; then
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3827 printf "%s\n" "$ac_ct_CXX" >&6; }
3828 else
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 printf "%s\n" "no" >&6; }
3831 fi
3832
3833
3834 test -n "$ac_ct_CXX" && break
3835 done
3836
3837 if test "x$ac_ct_CXX" = x; then
3838 CXX="g++"
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CXX=$ac_ct_CXX
3847 fi
3848 fi
3849
3850 fi
3851 fi
3852 # Provide some information about the compiler.
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3854 set X $ac_compile
3855 ac_compiler=$2
3856 for ac_option in --version -v -V -qversion; do
3857 { { ac_try="$ac_compiler $ac_option >&5"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 printf "%s\n" "$ac_try_echo"; } >&5
3864 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3865 ac_status=$?
3866 if test -s conftest.err; then
3867 sed '10a\
3868 ... rest of stderr output deleted ...
3869 10q' conftest.err >conftest.er1
3870 cat conftest.er1 >&5
3871 fi
3872 rm -f conftest.er1 conftest.err
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }
3875 done
3876
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3878 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3879 if test ${ac_cv_cxx_compiler_gnu+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else $as_nop
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885
3886 int
3887 main (void)
3888 {
3889 #ifndef __GNUC__
3890 choke me
3891 #endif
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_cxx_try_compile "$LINENO"
3898 then :
3899 ac_compiler_gnu=yes
3900 else $as_nop
3901 ac_compiler_gnu=no
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3904 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3905
3906 fi
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3908 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3910
3911 if test $ac_compiler_gnu = yes; then
3912 GXX=yes
3913 else
3914 GXX=
3915 fi
3916 ac_test_CXXFLAGS=${CXXFLAGS+y}
3917 ac_save_CXXFLAGS=$CXXFLAGS
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3919 printf %s "checking whether $CXX accepts -g... " >&6; }
3920 if test ${ac_cv_prog_cxx_g+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else $as_nop
3924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3925 ac_cxx_werror_flag=yes
3926 ac_cv_prog_cxx_g=no
3927 CXXFLAGS="-g"
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930
3931 int
3932 main (void)
3933 {
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_cxx_try_compile "$LINENO"
3940 then :
3941 ac_cv_prog_cxx_g=yes
3942 else $as_nop
3943 CXXFLAGS=""
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946
3947 int
3948 main (void)
3949 {
3950
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_cxx_try_compile "$LINENO"
3956 then :
3957
3958 else $as_nop
3959 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3960 CXXFLAGS="-g"
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main (void)
3966 {
3967
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 if ac_fn_cxx_try_compile "$LINENO"
3973 then :
3974 ac_cv_prog_cxx_g=yes
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3982 fi
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3984 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3985 if test $ac_test_CXXFLAGS; then
3986 CXXFLAGS=$ac_save_CXXFLAGS
3987 elif test $ac_cv_prog_cxx_g = yes; then
3988 if test "$GXX" = yes; then
3989 CXXFLAGS="-g -O2"
3990 else
3991 CXXFLAGS="-g"
3992 fi
3993 else
3994 if test "$GXX" = yes; then
3995 CXXFLAGS="-O2"
3996 else
3997 CXXFLAGS=
3998 fi
3999 fi
4000 ac_prog_cxx_stdcxx=no
4001 if test x$ac_prog_cxx_stdcxx = xno
4002 then :
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4004 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4005 if test ${ac_cv_prog_cxx_11+y}
4006 then :
4007 printf %s "(cached) " >&6
4008 else $as_nop
4009 ac_cv_prog_cxx_11=no
4010 ac_save_CXX=$CXX
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 $ac_cxx_conftest_cxx11_program
4014 _ACEOF
4015 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4016 do
4017 CXX="$ac_save_CXX $ac_arg"
4018 if ac_fn_cxx_try_compile "$LINENO"
4019 then :
4020 ac_cv_prog_cxx_cxx11=$ac_arg
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam
4023 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4024 done
4025 rm -f conftest.$ac_ext
4026 CXX=$ac_save_CXX
4027 fi
4028
4029 if test "x$ac_cv_prog_cxx_cxx11" = xno
4030 then :
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 printf "%s\n" "unsupported" >&6; }
4033 else $as_nop
4034 if test "x$ac_cv_prog_cxx_cxx11" = x
4035 then :
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037 printf "%s\n" "none needed" >&6; }
4038 else $as_nop
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4040 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4041 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4042 fi
4043 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4044 ac_prog_cxx_stdcxx=cxx11
4045 fi
4046 fi
4047 if test x$ac_prog_cxx_stdcxx = xno
4048 then :
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4050 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4051 if test ${ac_cv_prog_cxx_98+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else $as_nop
4055 ac_cv_prog_cxx_98=no
4056 ac_save_CXX=$CXX
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 $ac_cxx_conftest_cxx98_program
4060 _ACEOF
4061 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4062 do
4063 CXX="$ac_save_CXX $ac_arg"
4064 if ac_fn_cxx_try_compile "$LINENO"
4065 then :
4066 ac_cv_prog_cxx_cxx98=$ac_arg
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam
4069 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4070 done
4071 rm -f conftest.$ac_ext
4072 CXX=$ac_save_CXX
4073 fi
4074
4075 if test "x$ac_cv_prog_cxx_cxx98" = xno
4076 then :
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 printf "%s\n" "unsupported" >&6; }
4079 else $as_nop
4080 if test "x$ac_cv_prog_cxx_cxx98" = x
4081 then :
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4083 printf "%s\n" "none needed" >&6; }
4084 else $as_nop
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4086 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4087 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4088 fi
4089 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4090 ac_prog_cxx_stdcxx=cxx98
4091 fi
4092 fi
4093
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100
4101 am__api_version='1.16'
4102
4103
4104 # Find a good install program. We prefer a C program (faster),
4105 # so one script is as good as another. But avoid the broken or
4106 # incompatible versions:
4107 # SysV /etc/install, /usr/sbin/install
4108 # SunOS /usr/etc/install
4109 # IRIX /sbin/install
4110 # AIX /bin/install
4111 # AmigaOS /C/install, which installs bootblocks on floppy discs
4112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4115 # OS/2's system install, which has a completely different semantic
4116 # ./install, which can be erroneously created by make from ./install.sh.
4117 # Reject install programs that cannot install multiple files.
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4119 printf %s "checking for a BSD-compatible install... " >&6; }
4120 if test -z "$INSTALL"; then
4121 if test ${ac_cv_path_install+y}
4122 then :
4123 printf %s "(cached) " >&6
4124 else $as_nop
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 case $as_dir in #(((
4130 '') as_dir=./ ;;
4131 */) ;;
4132 *) as_dir=$as_dir/ ;;
4133 esac
4134 # Account for fact that we put trailing slashes in our PATH walk.
4135 case $as_dir in #((
4136 ./ | /[cC]/* | \
4137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4138 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4139 /usr/ucb/* ) ;;
4140 *)
4141 # OSF1 and SCO ODT 3.0 have their own names for install.
4142 # Don't use installbsd from OSF since it installs stuff as root
4143 # by default.
4144 for ac_prog in ginstall scoinst install; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4147 if test $ac_prog = install &&
4148 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4149 # AIX install. It has an incompatible calling convention.
4150 :
4151 elif test $ac_prog = install &&
4152 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4153 # program-specific install script used by HP pwplus--don't use.
4154 :
4155 else
4156 rm -rf conftest.one conftest.two conftest.dir
4157 echo one > conftest.one
4158 echo two > conftest.two
4159 mkdir conftest.dir
4160 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4161 test -s conftest.one && test -s conftest.two &&
4162 test -s conftest.dir/conftest.one &&
4163 test -s conftest.dir/conftest.two
4164 then
4165 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4166 break 3
4167 fi
4168 fi
4169 fi
4170 done
4171 done
4172 ;;
4173 esac
4174
4175 done
4176 IFS=$as_save_IFS
4177
4178 rm -rf conftest.one conftest.two conftest.dir
4179
4180 fi
4181 if test ${ac_cv_path_install+y}; then
4182 INSTALL=$ac_cv_path_install
4183 else
4184 # As a last resort, use the slow shell script. Don't cache a
4185 # value for INSTALL within a source directory, because that will
4186 # break other packages using the cache if that directory is
4187 # removed, or if the value is a relative name.
4188 INSTALL=$ac_install_sh
4189 fi
4190 fi
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4192 printf "%s\n" "$INSTALL" >&6; }
4193
4194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4195 # It thinks the first close brace ends the variable substitution.
4196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4197
4198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4199
4200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4201
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4203 printf %s "checking whether build environment is sane... " >&6; }
4204 # Reject unsafe characters in $srcdir or the absolute working directory
4205 # name. Accept space and tab only in the latter.
4206 am_lf='
4207 '
4208 case `pwd` in
4209 *[\\\"\#\$\&\'\`$am_lf]*)
4210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4211 esac
4212 case $srcdir in
4213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4214 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4215 esac
4216
4217 # Do 'set' in a subshell so we don't clobber the current shell's
4218 # arguments. Must try -L first in case configure is actually a
4219 # symlink; some systems play weird games with the mod time of symlinks
4220 # (eg FreeBSD returns the mod time of the symlink's containing
4221 # directory).
4222 if (
4223 am_has_slept=no
4224 for am_try in 1 2; do
4225 echo "timestamp, slept: $am_has_slept" > conftest.file
4226 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4227 if test "$*" = "X"; then
4228 # -L didn't work.
4229 set X `ls -t "$srcdir/configure" conftest.file`
4230 fi
4231 if test "$*" != "X $srcdir/configure conftest.file" \
4232 && test "$*" != "X conftest.file $srcdir/configure"; then
4233
4234 # If neither matched, then we have a broken ls. This can happen
4235 # if, for instance, CONFIG_SHELL is bash and it inherits a
4236 # broken ls alias from the environment. This has actually
4237 # happened. Such a system could not be considered "sane".
4238 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4239 alias in your environment" "$LINENO" 5
4240 fi
4241 if test "$2" = conftest.file || test $am_try -eq 2; then
4242 break
4243 fi
4244 # Just in case.
4245 sleep 1
4246 am_has_slept=yes
4247 done
4248 test "$2" = conftest.file
4249 )
4250 then
4251 # Ok.
4252 :
4253 else
4254 as_fn_error $? "newly created file is older than distributed files!
4255 Check your system clock" "$LINENO" 5
4256 fi
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4258 printf "%s\n" "yes" >&6; }
4259 # If we didn't sleep, we still need to ensure time stamps of config.status and
4260 # generated files are strictly newer.
4261 am_sleep_pid=
4262 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4263 ( sleep 1 ) &
4264 am_sleep_pid=$!
4265 fi
4266
4267 rm -f conftest.file
4268
4269 test "$program_prefix" != NONE &&
4270 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4271 # Use a double $ so make ignores it.
4272 test "$program_suffix" != NONE &&
4273 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4274 # Double any \ or $.
4275 # By default was `s,x,x', remove it if useless.
4276 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4277 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4278
4279
4280 if test x"${MISSING+set}" != xset; then
4281 MISSING="\${SHELL} '$am_aux_dir/missing'"
4282 fi
4283 # Use eval to expand $SHELL
4284 if eval "$MISSING --is-lightweight"; then
4285 am_missing_run="$MISSING "
4286 else
4287 am_missing_run=
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4289 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4290 fi
4291
4292 if test x"${install_sh+set}" != xset; then
4293 case $am_aux_dir in
4294 *\ * | *\ *)
4295 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4296 *)
4297 install_sh="\${SHELL} $am_aux_dir/install-sh"
4298 esac
4299 fi
4300
4301 # Installed binaries are usually stripped using 'strip' when the user
4302 # run "make install-strip". However 'strip' might not be the right
4303 # tool to use in cross-compilation environments, therefore Automake
4304 # will honor the 'STRIP' environment variable to overrule this program.
4305 if test "$cross_compiling" != no; then
4306 if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}strip; ac_word=$2
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 printf %s "checking for $ac_word... " >&6; }
4311 if test ${ac_cv_prog_STRIP+y}
4312 then :
4313 printf %s "(cached) " >&6
4314 else $as_nop
4315 if test -n "$STRIP"; then
4316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321 IFS=$as_save_IFS
4322 case $as_dir in #(((
4323 '') as_dir=./ ;;
4324 */) ;;
4325 *) as_dir=$as_dir/ ;;
4326 esac
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333 done
4334 done
4335 IFS=$as_save_IFS
4336
4337 fi
4338 fi
4339 STRIP=$ac_cv_prog_STRIP
4340 if test -n "$STRIP"; then
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4342 printf "%s\n" "$STRIP" >&6; }
4343 else
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 printf "%s\n" "no" >&6; }
4346 fi
4347
4348
4349 fi
4350 if test -z "$ac_cv_prog_STRIP"; then
4351 ac_ct_STRIP=$STRIP
4352 # Extract the first word of "strip", so it can be a program name with args.
4353 set dummy strip; ac_word=$2
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 printf %s "checking for $ac_word... " >&6; }
4356 if test ${ac_cv_prog_ac_ct_STRIP+y}
4357 then :
4358 printf %s "(cached) " >&6
4359 else $as_nop
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366 IFS=$as_save_IFS
4367 case $as_dir in #(((
4368 '') as_dir=./ ;;
4369 */) ;;
4370 *) as_dir=$as_dir/ ;;
4371 esac
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_ac_ct_STRIP="strip"
4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4385 if test -n "$ac_ct_STRIP"; then
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4387 printf "%s\n" "$ac_ct_STRIP" >&6; }
4388 else
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 printf "%s\n" "no" >&6; }
4391 fi
4392
4393 if test "x$ac_ct_STRIP" = x; then
4394 STRIP=":"
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402 STRIP=$ac_ct_STRIP
4403 fi
4404 else
4405 STRIP="$ac_cv_prog_STRIP"
4406 fi
4407
4408 fi
4409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4410
4411
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4413 printf %s "checking for a race-free mkdir -p... " >&6; }
4414 if test -z "$MKDIR_P"; then
4415 if test ${ac_cv_path_mkdir+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else $as_nop
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4421 do
4422 IFS=$as_save_IFS
4423 case $as_dir in #(((
4424 '') as_dir=./ ;;
4425 */) ;;
4426 *) as_dir=$as_dir/ ;;
4427 esac
4428 for ac_prog in mkdir gmkdir; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4431 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4432 'mkdir ('*'coreutils) '* | \
4433 'BusyBox '* | \
4434 'mkdir (fileutils) '4.1*)
4435 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4436 break 3;;
4437 esac
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444
4445 test -d ./--version && rmdir ./--version
4446 if test ${ac_cv_path_mkdir+y}; then
4447 MKDIR_P="$ac_cv_path_mkdir -p"
4448 else
4449 # As a last resort, use the slow shell script. Don't cache a
4450 # value for MKDIR_P within a source directory, because that will
4451 # break other packages using the cache if that directory is
4452 # removed, or if the value is a relative name.
4453 MKDIR_P="$ac_install_sh -d"
4454 fi
4455 fi
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4457 printf "%s\n" "$MKDIR_P" >&6; }
4458
4459 for ac_prog in gawk mawk nawk awk
4460 do
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 printf %s "checking for $ac_word... " >&6; }
4465 if test ${ac_cv_prog_AWK+y}
4466 then :
4467 printf %s "(cached) " >&6
4468 else $as_nop
4469 if test -n "$AWK"; then
4470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 case $as_dir in #(((
4477 '') as_dir=./ ;;
4478 */) ;;
4479 *) as_dir=$as_dir/ ;;
4480 esac
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4483 ac_cv_prog_AWK="$ac_prog"
4484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 fi
4492 fi
4493 AWK=$ac_cv_prog_AWK
4494 if test -n "$AWK"; then
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4496 printf "%s\n" "$AWK" >&6; }
4497 else
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 printf "%s\n" "no" >&6; }
4500 fi
4501
4502
4503 test -n "$AWK" && break
4504 done
4505
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4507 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4508 set x ${MAKE-make}
4509 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else $as_nop
4514 cat >conftest.make <<\_ACEOF
4515 SHELL = /bin/sh
4516 all:
4517 @echo '@@@%%%=$(MAKE)=@@@%%%'
4518 _ACEOF
4519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4521 *@@@%%%=?*=@@@%%%*)
4522 eval ac_cv_prog_make_${ac_make}_set=yes;;
4523 *)
4524 eval ac_cv_prog_make_${ac_make}_set=no;;
4525 esac
4526 rm -f conftest.make
4527 fi
4528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 printf "%s\n" "yes" >&6; }
4531 SET_MAKE=
4532 else
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 printf "%s\n" "no" >&6; }
4535 SET_MAKE="MAKE=${MAKE-make}"
4536 fi
4537
4538 rm -rf .tst 2>/dev/null
4539 mkdir .tst 2>/dev/null
4540 if test -d .tst; then
4541 am__leading_dot=.
4542 else
4543 am__leading_dot=_
4544 fi
4545 rmdir .tst 2>/dev/null
4546
4547 DEPDIR="${am__leading_dot}deps"
4548
4549 ac_config_commands="$ac_config_commands depfiles"
4550
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4552 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4553 cat > confinc.mk << 'END'
4554 am__doit:
4555 @echo this is the am__doit target >confinc.out
4556 .PHONY: am__doit
4557 END
4558 am__include="#"
4559 am__quote=
4560 # BSD make does it like this.
4561 echo '.include "confinc.mk" # ignored' > confmf.BSD
4562 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4563 echo 'include confinc.mk # ignored' > confmf.GNU
4564 _am_result=no
4565 for s in GNU BSD; do
4566 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4567 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }
4571 case $?:`cat confinc.out 2>/dev/null` in #(
4572 '0:this is the am__doit target') :
4573 case $s in #(
4574 BSD) :
4575 am__include='.include' am__quote='"' ;; #(
4576 *) :
4577 am__include='include' am__quote='' ;;
4578 esac ;; #(
4579 *) :
4580 ;;
4581 esac
4582 if test "$am__include" != "#"; then
4583 _am_result="yes ($s style)"
4584 break
4585 fi
4586 done
4587 rm -f confinc.* confmf.*
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4589 printf "%s\n" "${_am_result}" >&6; }
4590
4591 # Check whether --enable-dependency-tracking was given.
4592 if test ${enable_dependency_tracking+y}
4593 then :
4594 enableval=$enable_dependency_tracking;
4595 fi
4596
4597 if test "x$enable_dependency_tracking" != xno; then
4598 am_depcomp="$ac_aux_dir/depcomp"
4599 AMDEPBACKSLASH='\'
4600 am__nodep='_no'
4601 fi
4602 if test "x$enable_dependency_tracking" != xno; then
4603 AMDEP_TRUE=
4604 AMDEP_FALSE='#'
4605 else
4606 AMDEP_TRUE='#'
4607 AMDEP_FALSE=
4608 fi
4609
4610
4611 # Check whether --enable-silent-rules was given.
4612 if test ${enable_silent_rules+y}
4613 then :
4614 enableval=$enable_silent_rules;
4615 fi
4616
4617 case $enable_silent_rules in # (((
4618 yes) AM_DEFAULT_VERBOSITY=0;;
4619 no) AM_DEFAULT_VERBOSITY=1;;
4620 *) AM_DEFAULT_VERBOSITY=1;;
4621 esac
4622 am_make=${MAKE-make}
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4624 printf %s "checking whether $am_make supports nested variables... " >&6; }
4625 if test ${am_cv_make_support_nested_variables+y}
4626 then :
4627 printf %s "(cached) " >&6
4628 else $as_nop
4629 if printf "%s\n" 'TRUE=$(BAR$(V))
4630 BAR0=false
4631 BAR1=true
4632 V=1
4633 am__doit:
4634 @$(TRUE)
4635 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4636 am_cv_make_support_nested_variables=yes
4637 else
4638 am_cv_make_support_nested_variables=no
4639 fi
4640 fi
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4642 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4643 if test $am_cv_make_support_nested_variables = yes; then
4644 AM_V='$(V)'
4645 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4646 else
4647 AM_V=$AM_DEFAULT_VERBOSITY
4648 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4649 fi
4650 AM_BACKSLASH='\'
4651
4652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4653 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4654 # is not polluted with repeated "-I."
4655 am__isrc=' -I$(srcdir)'
4656 # test to see if srcdir already configured
4657 if test -f $srcdir/config.status; then
4658 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4659 fi
4660 fi
4661
4662 # test whether we have cygpath
4663 if test -z "$CYGPATH_W"; then
4664 if (cygpath --version) >/dev/null 2>/dev/null; then
4665 CYGPATH_W='cygpath -w'
4666 else
4667 CYGPATH_W=echo
4668 fi
4669 fi
4670
4671
4672 # Define the identity of the package.
4673 PACKAGE='hime'
4674 VERSION='0.10.1'
4675
4676
4677 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4678
4679
4680 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4681
4682 # Some tools Automake needs.
4683
4684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4685
4686
4687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4688
4689
4690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4691
4692
4693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4694
4695
4696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4697
4698 # For better backward compatibility. To be removed once Automake 1.9.x
4699 # dies out for good. For more background, see:
4700 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4701 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4702 mkdir_p='$(MKDIR_P)'
4703
4704 # We need awk for the "check" target (and possibly the TAP driver). The
4705 # system "awk" is bad on some platforms.
4706 # Always define AMTAR for backward compatibility. Yes, it's still used
4707 # in the wild :-( We should find a proper way to deprecate it ...
4708 AMTAR='$${TAR-tar}'
4709
4710
4711 # We'll loop over all known methods to create a tar archive until one works.
4712 _am_tools='gnutar pax cpio none'
4713
4714 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4715
4716
4717
4718
4719
4720 depcc="$CC" am_compiler_list=
4721
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4723 printf %s "checking dependency style of $depcc... " >&6; }
4724 if test ${am_cv_CC_dependencies_compiler_type+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else $as_nop
4728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4729 # We make a subdir and do the tests there. Otherwise we can end up
4730 # making bogus files that we don't know about and never remove. For
4731 # instance it was reported that on HP-UX the gcc test will end up
4732 # making a dummy file named 'D' -- because '-MD' means "put the output
4733 # in D".
4734 rm -rf conftest.dir
4735 mkdir conftest.dir
4736 # Copy depcomp to subdir because otherwise we won't find it if we're
4737 # using a relative directory.
4738 cp "$am_depcomp" conftest.dir
4739 cd conftest.dir
4740 # We will build objects and dependencies in a subdirectory because
4741 # it helps to detect inapplicable dependency modes. For instance
4742 # both Tru64's cc and ICC support -MD to output dependencies as a
4743 # side effect of compilation, but ICC will put the dependencies in
4744 # the current directory while Tru64 will put them in the object
4745 # directory.
4746 mkdir sub
4747
4748 am_cv_CC_dependencies_compiler_type=none
4749 if test "$am_compiler_list" = ""; then
4750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4751 fi
4752 am__universal=false
4753 case " $depcc " in #(
4754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4755 esac
4756
4757 for depmode in $am_compiler_list; do
4758 # Setup a source with many dependencies, because some compilers
4759 # like to wrap large dependency lists on column 80 (with \), and
4760 # we should not choose a depcomp mode which is confused by this.
4761 #
4762 # We need to recreate these files for each test, as the compiler may
4763 # overwrite some of them when testing with obscure command lines.
4764 # This happens at least with the AIX C compiler.
4765 : > sub/conftest.c
4766 for i in 1 2 3 4 5 6; do
4767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4768 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4769 # Solaris 10 /bin/sh.
4770 echo '/* dummy */' > sub/conftst$i.h
4771 done
4772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4773
4774 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4775 # mode. It turns out that the SunPro C++ compiler does not properly
4776 # handle '-M -o', and we need to detect this. Also, some Intel
4777 # versions had trouble with output in subdirs.
4778 am__obj=sub/conftest.${OBJEXT-o}
4779 am__minus_obj="-o $am__obj"
4780 case $depmode in
4781 gcc)
4782 # This depmode causes a compiler race in universal mode.
4783 test "$am__universal" = false || continue
4784 ;;
4785 nosideeffect)
4786 # After this tag, mechanisms are not by side-effect, so they'll
4787 # only be used when explicitly requested.
4788 if test "x$enable_dependency_tracking" = xyes; then
4789 continue
4790 else
4791 break
4792 fi
4793 ;;
4794 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4795 # This compiler won't grok '-c -o', but also, the minuso test has
4796 # not run yet. These depmodes are late enough in the game, and
4797 # so weak that their functioning should not be impacted.
4798 am__obj=conftest.${OBJEXT-o}
4799 am__minus_obj=
4800 ;;
4801 none) break ;;
4802 esac
4803 if depmode=$depmode \
4804 source=sub/conftest.c object=$am__obj \
4805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4807 >/dev/null 2>conftest.err &&
4808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4812 # icc doesn't choke on unknown options, it will just issue warnings
4813 # or remarks (even with -Werror). So we grep stderr for any message
4814 # that says an option was ignored or not supported.
4815 # When given -MP, icc 7.0 and 7.1 complain thusly:
4816 # icc: Command line warning: ignoring option '-M'; no argument required
4817 # The diagnosis changed in icc 8.0:
4818 # icc: Command line remark: option '-MP' not supported
4819 if (grep 'ignoring option' conftest.err ||
4820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4821 am_cv_CC_dependencies_compiler_type=$depmode
4822 break
4823 fi
4824 fi
4825 done
4826
4827 cd ..
4828 rm -rf conftest.dir
4829 else
4830 am_cv_CC_dependencies_compiler_type=none
4831 fi
4832
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4835 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4837
4838 if
4839 test "x$enable_dependency_tracking" != xno \
4840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4841 am__fastdepCC_TRUE=
4842 am__fastdepCC_FALSE='#'
4843 else
4844 am__fastdepCC_TRUE='#'
4845 am__fastdepCC_FALSE=
4846 fi
4847
4848
4849 depcc="$CXX" am_compiler_list=
4850
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852 printf %s "checking dependency style of $depcc... " >&6; }
4853 if test ${am_cv_CXX_dependencies_compiler_type+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else $as_nop
4857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4858 # We make a subdir and do the tests there. Otherwise we can end up
4859 # making bogus files that we don't know about and never remove. For
4860 # instance it was reported that on HP-UX the gcc test will end up
4861 # making a dummy file named 'D' -- because '-MD' means "put the output
4862 # in D".
4863 rm -rf conftest.dir
4864 mkdir conftest.dir
4865 # Copy depcomp to subdir because otherwise we won't find it if we're
4866 # using a relative directory.
4867 cp "$am_depcomp" conftest.dir
4868 cd conftest.dir
4869 # We will build objects and dependencies in a subdirectory because
4870 # it helps to detect inapplicable dependency modes. For instance
4871 # both Tru64's cc and ICC support -MD to output dependencies as a
4872 # side effect of compilation, but ICC will put the dependencies in
4873 # the current directory while Tru64 will put them in the object
4874 # directory.
4875 mkdir sub
4876
4877 am_cv_CXX_dependencies_compiler_type=none
4878 if test "$am_compiler_list" = ""; then
4879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 fi
4881 am__universal=false
4882 case " $depcc " in #(
4883 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4884 esac
4885
4886 for depmode in $am_compiler_list; do
4887 # Setup a source with many dependencies, because some compilers
4888 # like to wrap large dependency lists on column 80 (with \), and
4889 # we should not choose a depcomp mode which is confused by this.
4890 #
4891 # We need to recreate these files for each test, as the compiler may
4892 # overwrite some of them when testing with obscure command lines.
4893 # This happens at least with the AIX C compiler.
4894 : > sub/conftest.c
4895 for i in 1 2 3 4 5 6; do
4896 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4897 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4898 # Solaris 10 /bin/sh.
4899 echo '/* dummy */' > sub/conftst$i.h
4900 done
4901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902
4903 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4904 # mode. It turns out that the SunPro C++ compiler does not properly
4905 # handle '-M -o', and we need to detect this. Also, some Intel
4906 # versions had trouble with output in subdirs.
4907 am__obj=sub/conftest.${OBJEXT-o}
4908 am__minus_obj="-o $am__obj"
4909 case $depmode in
4910 gcc)
4911 # This depmode causes a compiler race in universal mode.
4912 test "$am__universal" = false || continue
4913 ;;
4914 nosideeffect)
4915 # After this tag, mechanisms are not by side-effect, so they'll
4916 # only be used when explicitly requested.
4917 if test "x$enable_dependency_tracking" = xyes; then
4918 continue
4919 else
4920 break
4921 fi
4922 ;;
4923 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4924 # This compiler won't grok '-c -o', but also, the minuso test has
4925 # not run yet. These depmodes are late enough in the game, and
4926 # so weak that their functioning should not be impacted.
4927 am__obj=conftest.${OBJEXT-o}
4928 am__minus_obj=
4929 ;;
4930 none) break ;;
4931 esac
4932 if depmode=$depmode \
4933 source=sub/conftest.c object=$am__obj \
4934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4935 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4936 >/dev/null 2>conftest.err &&
4937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4939 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4941 # icc doesn't choke on unknown options, it will just issue warnings
4942 # or remarks (even with -Werror). So we grep stderr for any message
4943 # that says an option was ignored or not supported.
4944 # When given -MP, icc 7.0 and 7.1 complain thusly:
4945 # icc: Command line warning: ignoring option '-M'; no argument required
4946 # The diagnosis changed in icc 8.0:
4947 # icc: Command line remark: option '-MP' not supported
4948 if (grep 'ignoring option' conftest.err ||
4949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4950 am_cv_CXX_dependencies_compiler_type=$depmode
4951 break
4952 fi
4953 fi
4954 done
4955
4956 cd ..
4957 rm -rf conftest.dir
4958 else
4959 am_cv_CXX_dependencies_compiler_type=none
4960 fi
4961
4962 fi
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4964 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4965 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4966
4967 if
4968 test "x$enable_dependency_tracking" != xno \
4969 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4970 am__fastdepCXX_TRUE=
4971 am__fastdepCXX_FALSE='#'
4972 else
4973 am__fastdepCXX_TRUE='#'
4974 am__fastdepCXX_FALSE=
4975 fi
4976
4977
4978 # Variables for tags utilities; see am/tags.am
4979 if test -z "$CTAGS"; then
4980 CTAGS=ctags
4981 fi
4982
4983 if test -z "$ETAGS"; then
4984 ETAGS=etags
4985 fi
4986
4987 if test -z "$CSCOPE"; then
4988 CSCOPE=cscope
4989 fi
4990
4991
4992
4993 # POSIX will say in a future version that running "rm -f" with no argument
4994 # is OK; and we want to be able to make that assumption in our Makefile
4995 # recipes. So use an aggressive probe to check that the usage we want is
4996 # actually supported "in the wild" to an acceptable degree.
4997 # See automake bug#10828.
4998 # To make any issue more visible, cause the running configure to be aborted
4999 # by default if the 'rm' program in use doesn't match our expectations; the
5000 # user can still override this though.
5001 if rm -f && rm -fr && rm -rf; then : OK; else
5002 cat >&2 <<'END'
5003 Oops!
5004
5005 Your 'rm' program seems unable to run without file operands specified
5006 on the command line, even when the '-f' option is present. This is contrary
5007 to the behaviour of most rm programs out there, and not conforming with
5008 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5009
5010 Please tell [email protected] about your system, including the value
5011 of your $PATH and any error possibly output before this message. This
5012 can help us improve future automake versions.
5013
5014 END
5015 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5016 echo 'Configuration will proceed anyway, since you have set the' >&2
5017 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5018 echo >&2
5019 else
5020 cat >&2 <<'END'
5021 Aborting the configuration process, to ensure you take notice of the issue.
5022
5023 You can download and install GNU coreutils to get an 'rm' implementation
5024 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5025
5026 If you want to complete the configuration process using your problematic
5027 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5028 to "yes", and re-run configure.
5029
5030 END
5031 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5032 fi
5033 fi
5034
5035
5036
5037
5038 CCLD=$CC
5039
5040 CCX=$CC
5041
5042 # Set CFLAGS to empty string since AC_PROG_CC() would set it with the default value "-g -O2"
5043 CFLAGS=""
5044
5045 if test -z "$CFLAGS"
5046 then :
5047
5048 CFLAGS="-std=gnu17"
5049
5050 CXXFLAGS="-std=gnu++17"
5051
5052 OPTFLAGS="-Wall"
5053
5054
5055 else $as_nop
5056 OPTFLAGS="$CFLAGS"
5057
5058
5059 fi
5060 CFLAGS="$CFLAGS $CPPFLAGS"
5061
5062 CXXFLAGS="$CXXFLAGS $CPPFLAGS"
5063
5064 DOC_DIR="\${datadir}/doc/hime"
5065
5066 if test "x$ECHO" = "x"
5067 then :
5068
5069 ECHO="$(whereis -b echo | awk "{print \$2}")"
5070
5071 if test "x$ECHO" = "x"
5072 then :
5073 ECHO="echo"
5074
5075
5076 fi
5077
5078
5079 fi
5080 FREEBSD="0"
5081
5082 if uname | grep FreeBSD | grep -v GNU/kFreeBSD >/dev/null 2>/dev/null
5083 then :
5084 FREEBSD="1"
5085
5086
5087 fi
5088 if uname | grep OpenBSD >/dev/null 2>/dev/null
5089 then :
5090 FREEBSD="1"
5091
5092
5093 fi
5094 if test "x$FREEBSD" = "x1"; then
5095 FREEBSD_TRUE=
5096 FREEBSD_FALSE='#'
5097 else
5098 FREEBSD_TRUE='#'
5099 FREEBSD_FALSE=
5100 fi
5101
5102 HIME_BIN_DIR="\${bindir}"
5103
5104 HIME_DEFAULT_ICON_DIR="\${datadir}/pixmaps/hime"
5105
5106 HIME_OGG_DIR="\${datadir}/hime/ogg"
5107
5108 HIME_SCRIPT_DIR="\${datadir}/hime/script"
5109
5110 HIME_TABLE_DIR="\${datadir}/hime/table"
5111
5112 HIME_VERSION="$(head -n 1 ChangeLog)"
5113
5114 SO_FLAGS="$LDFLAGS -shared -Wl,--as-needed"
5115
5116 LDFLAGS_ENV="$LDFLAGS"
5117
5118 LDFLAGS="$LDFLAGS -Wl,--as-needed -lX11 -lm"
5119
5120 MAKE="make"
5121
5122 if command -v gmake > /dev/null 2> /dev/null
5123 then :
5124 MAKE="gmake"
5125
5126
5127 fi
5128 SYS_ICON_DIR="\${datadir}/pixmaps"
5129
5130 bindir="\${DESTDIR}$bindir"
5131
5132 datadir="\${DESTDIR}$datadir"
5133
5134 filterdir="\${datadir}/hime/filter"
5135
5136 includedir="\${DESTDIR}$includedir"
5137
5138 mandir="\${DESTDIR}$mandir"
5139
5140 man1dir="\${mandir}/man1"
5141
5142
5143 # USE_XIM
5144 # Check whether --enable-xim was given.
5145 if test ${enable_xim+y}
5146 then :
5147 enableval=$enable_xim; enable_xim=$enableval
5148 else $as_nop
5149 enable_xim=yes
5150
5151 fi
5152
5153 if test "x$enable_xim" = "xyes"; then
5154 USE_XIM_TRUE=
5155 USE_XIM_FALSE='#'
5156 else
5157 USE_XIM_TRUE='#'
5158 USE_XIM_FALSE=
5159 fi
5160
5161 # USE_SYSTEM_TRAY
5162 # Check whether --enable-system-tray was given.
5163 if test ${enable_system_tray+y}
5164 then :
5165 enableval=$enable_system_tray; enable_system_tray=$enableval
5166 else $as_nop
5167 enable_system_tray=yes
5168
5169 fi
5170
5171 if test "x$enable_system_tray" = "xyes"; then
5172 USE_SYSTEM_TRAY_TRUE=
5173 USE_SYSTEM_TRAY_FALSE='#'
5174 else
5175 USE_SYSTEM_TRAY_TRUE='#'
5176 USE_SYSTEM_TRAY_FALSE=
5177 fi
5178
5179 # LIB
5180 LIB="lib"
5181
5182 if test -d /usr/lib64 -a -d /lib64
5183 then :
5184 LIB="lib64"
5185
5186
5187 fi
5188 if test "x$(uname -s)" = "xLinux"
5189 then :
5190 if command -v lsb_release >/dev/null
5191 then :
5192
5193 distid=$(lsb_release -is 2>/dev/null)
5194 if test "x$distid" = "xUbuntu" -o "x$distid" = "xDebian" -o "x$distid" = "xArch" -o "x$distid" = "xarchlinux"
5195 then :
5196 LIB="lib"
5197
5198
5199 fi
5200
5201 else $as_nop
5202
5203 DEBIAN_LD=$(ld -v 2>&1 | grep -i debian)
5204 UBUNTU_LD=$(ld -v 2>&1 | grep -i ubuntu)
5205 if test "x$DEBIAN_LD" != "x" -o "x$UBUNTU_LD" != "x"; then
5206 LIB="lib"
5207
5208 elif test -e /etc/arch-release ; then
5209 LIB="lib"
5210
5211 fi
5212
5213
5214 fi
5215
5216 fi
5217 # use_lib
5218 use_lib=""
5219
5220 # Check whether --enable-lib64 was given.
5221 if test ${enable_lib64+y}
5222 then :
5223 enableval=$enable_lib64; enable_lib64=$enableval
5224 else $as_nop
5225 enable_lib64=""
5226
5227 fi
5228
5229 if test "x$enable_lib64" = "xyes"; then
5230 use_lib="lib64"
5231
5232 elif test "x$enable_lib64" = "xno"; then
5233 use_lib="lib"
5234
5235 elif test -n "$enable_lib64"; then
5236 use_lib="$enable_lib64"
5237
5238 fi
5239 if test -n "$use_lib"
5240 then :
5241 LIB="$use_lib"
5242
5243
5244 fi
5245 libdir="\${prefix}/$LIB"
5246
5247 libdir="\${DESTDIR}$libdir"
5248
5249 himelibdir="\${libdir}/hime"
5250
5251 hime_ld_run_path="\${himelibdir}"
5252
5253 gcc_ld_run_path="-Wl,-rpath,\${hime_ld_run_path}"
5254
5255 # GIT_HAVE
5256 # GIT_HASH
5257 if test -d .git
5258 then :
5259
5260 git_have="yes"
5261
5262 GIT_HASH="$(git log 2>/dev/null | head -n 1 | cut -d ' ' -f 2 | head -c 7)"
5263
5264
5265
5266 fi
5267 if test "x$git_have" = "xyes"; then
5268 GIT_HAVE_TRUE=
5269 GIT_HAVE_FALSE='#'
5270 else
5271 GIT_HAVE_TRUE='#'
5272 GIT_HAVE_FALSE=
5273 fi
5274
5275
5276 # Checks for programs.
5277 # pkg-config
5278
5279
5280
5281
5282
5283
5284
5285 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 printf %s "checking for $ac_word... " >&6; }
5291 if test ${ac_cv_path_PKG_CONFIG+y}
5292 then :
5293 printf %s "(cached) " >&6
5294 else $as_nop
5295 case $PKG_CONFIG in
5296 [\\/]* | ?:[\\/]*)
5297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5298 ;;
5299 *)
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 case $as_dir in #(((
5305 '') as_dir=./ ;;
5306 */) ;;
5307 *) as_dir=$as_dir/ ;;
5308 esac
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5311 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 ;;
5320 esac
5321 fi
5322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5323 if test -n "$PKG_CONFIG"; then
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5325 printf "%s\n" "$PKG_CONFIG" >&6; }
5326 else
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 printf "%s\n" "no" >&6; }
5329 fi
5330
5331
5332 fi
5333 if test -z "$ac_cv_path_PKG_CONFIG"; then
5334 ac_pt_PKG_CONFIG=$PKG_CONFIG
5335 # Extract the first word of "pkg-config", so it can be a program name with args.
5336 set dummy pkg-config; ac_word=$2
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 printf %s "checking for $ac_word... " >&6; }
5339 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else $as_nop
5343 case $ac_pt_PKG_CONFIG in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 case $as_dir in #(((
5353 '') as_dir=./ ;;
5354 */) ;;
5355 *) as_dir=$as_dir/ ;;
5356 esac
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5359 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 ;;
5368 esac
5369 fi
5370 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5371 if test -n "$ac_pt_PKG_CONFIG"; then
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5373 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5374 else
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 printf "%s\n" "no" >&6; }
5377 fi
5378
5379 if test "x$ac_pt_PKG_CONFIG" = x; then
5380 PKG_CONFIG=""
5381 else
5382 case $cross_compiling:$ac_tool_warned in
5383 yes:)
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386 ac_tool_warned=yes ;;
5387 esac
5388 PKG_CONFIG=$ac_pt_PKG_CONFIG
5389 fi
5390 else
5391 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5392 fi
5393
5394 fi
5395 if test -n "$PKG_CONFIG"; then
5396 _pkg_min_version=0.9.0
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5398 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5399 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401 printf "%s\n" "yes" >&6; }
5402 else
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405 PKG_CONFIG=""
5406 fi
5407 fi
5408
5409 # Checks for libraries.
5410 # Xtst
5411
5412 pkg_failed=no
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xtst" >&5
5414 printf %s "checking for xtst... " >&6; }
5415
5416 if test -n "$XTST_CFLAGS"; then
5417 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
5418 elif test -n "$PKG_CONFIG"; then
5419 if test -n "$PKG_CONFIG" && \
5420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
5421 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
5422 ac_status=$?
5423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5424 test $ac_status = 0; }; then
5425 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null`
5426 test "x$?" != "x0" && pkg_failed=yes
5427 else
5428 pkg_failed=yes
5429 fi
5430 else
5431 pkg_failed=untried
5432 fi
5433 if test -n "$XTST_LIBS"; then
5434 pkg_cv_XTST_LIBS="$XTST_LIBS"
5435 elif test -n "$PKG_CONFIG"; then
5436 if test -n "$PKG_CONFIG" && \
5437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
5438 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
5439 ac_status=$?
5440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441 test $ac_status = 0; }; then
5442 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null`
5443 test "x$?" != "x0" && pkg_failed=yes
5444 else
5445 pkg_failed=yes
5446 fi
5447 else
5448 pkg_failed=untried
5449 fi
5450
5451
5452
5453 if test $pkg_failed = yes; then
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 printf "%s\n" "no" >&6; }
5456
5457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5458 _pkg_short_errors_supported=yes
5459 else
5460 _pkg_short_errors_supported=no
5461 fi
5462 if test $_pkg_short_errors_supported = yes; then
5463 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtst" 2>&1`
5464 else
5465 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtst" 2>&1`
5466 fi
5467 # Put the nasty error message in config.log where it belongs
5468 echo "$XTST_PKG_ERRORS" >&5
5469
5470 as_fn_error $? "Please install Xtst" "$LINENO" 5
5471
5472 elif test $pkg_failed = untried; then
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 printf "%s\n" "no" >&6; }
5475 as_fn_error $? "Please install Xtst" "$LINENO" 5
5476
5477 else
5478 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
5479 XTST_LIBS=$pkg_cv_XTST_LIBS
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 printf "%s\n" "yes" >&6; }
5482
5483 fi
5484 # GTK
5485
5486 pkg_failed=no
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.24.31" >&5
5488 printf %s "checking for gtk+-2.0 >= 2.24.31... " >&6; }
5489
5490 if test -n "$GTK2_CFLAGS"; then
5491 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
5492 elif test -n "$PKG_CONFIG"; then
5493 if test -n "$PKG_CONFIG" && \
5494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24.31\""; } >&5
5495 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24.31") 2>&5
5496 ac_status=$?
5497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498 test $ac_status = 0; }; then
5499 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.24.31" 2>/dev/null`
5500 test "x$?" != "x0" && pkg_failed=yes
5501 else
5502 pkg_failed=yes
5503 fi
5504 else
5505 pkg_failed=untried
5506 fi
5507 if test -n "$GTK2_LIBS"; then
5508 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
5509 elif test -n "$PKG_CONFIG"; then
5510 if test -n "$PKG_CONFIG" && \
5511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24.31\""; } >&5
5512 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24.31") 2>&5
5513 ac_status=$?
5514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515 test $ac_status = 0; }; then
5516 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.24.31" 2>/dev/null`
5517 test "x$?" != "x0" && pkg_failed=yes
5518 else
5519 pkg_failed=yes
5520 fi
5521 else
5522 pkg_failed=untried
5523 fi
5524
5525
5526
5527 if test $pkg_failed = yes; then
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 printf "%s\n" "no" >&6; }
5530
5531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5532 _pkg_short_errors_supported=yes
5533 else
5534 _pkg_short_errors_supported=no
5535 fi
5536 if test $_pkg_short_errors_supported = yes; then
5537 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.24.31" 2>&1`
5538 else
5539 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.24.31" 2>&1`
5540 fi
5541 # Put the nasty error message in config.log where it belongs
5542 echo "$GTK2_PKG_ERRORS" >&5
5543
5544 gtk2_is_installed=no
5545
5546 elif test $pkg_failed = untried; then
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 printf "%s\n" "no" >&6; }
5549 gtk2_is_installed=no
5550
5551 else
5552 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
5553 GTK2_LIBS=$pkg_cv_GTK2_LIBS
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555 printf "%s\n" "yes" >&6; }
5556 gtk2_is_installed=yes
5557 fi
5558
5559 pkg_failed=no
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.22.30" >&5
5561 printf %s "checking for gtk+-3.0 >= 3.22.30... " >&6; }
5562
5563 if test -n "$GTK3_CFLAGS"; then
5564 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
5565 elif test -n "$PKG_CONFIG"; then
5566 if test -n "$PKG_CONFIG" && \
5567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.30\""; } >&5
5568 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.30") 2>&5
5569 ac_status=$?
5570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5571 test $ac_status = 0; }; then
5572 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.22.30" 2>/dev/null`
5573 test "x$?" != "x0" && pkg_failed=yes
5574 else
5575 pkg_failed=yes
5576 fi
5577 else
5578 pkg_failed=untried
5579 fi
5580 if test -n "$GTK3_LIBS"; then
5581 pkg_cv_GTK3_LIBS="$GTK3_LIBS"
5582 elif test -n "$PKG_CONFIG"; then
5583 if test -n "$PKG_CONFIG" && \
5584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.30\""; } >&5
5585 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.30") 2>&5
5586 ac_status=$?
5587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }; then
5589 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.22.30" 2>/dev/null`
5590 test "x$?" != "x0" && pkg_failed=yes
5591 else
5592 pkg_failed=yes
5593 fi
5594 else
5595 pkg_failed=untried
5596 fi
5597
5598
5599
5600 if test $pkg_failed = yes; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 printf "%s\n" "no" >&6; }
5603
5604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5605 _pkg_short_errors_supported=yes
5606 else
5607 _pkg_short_errors_supported=no
5608 fi
5609 if test $_pkg_short_errors_supported = yes; then
5610 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.22.30" 2>&1`
5611 else
5612 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.22.30" 2>&1`
5613 fi
5614 # Put the nasty error message in config.log where it belongs
5615 echo "$GTK3_PKG_ERRORS" >&5
5616
5617 gtk3_is_installed=no
5618
5619 elif test $pkg_failed = untried; then
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 printf "%s\n" "no" >&6; }
5622 gtk3_is_installed=no
5623
5624 else
5625 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
5626 GTK3_LIBS=$pkg_cv_GTK3_LIBS
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628 printf "%s\n" "yes" >&6; }
5629 gtk3_is_installed=yes
5630 fi
5631 if test "x$gtk2_is_installed" = "xno" -a "x$gtk3_is_installed" = "xno"
5632 then :
5633 as_fn_error $? "Please install GTK 2 or GTK 3" "$LINENO" 5
5634
5635 fi
5636
5637 # Check whether --with-gtk was given.
5638 if test ${with_gtk+y}
5639 then :
5640 withval=$with_gtk;
5641 with_gtk=$withval
5642 if test "x$with_gtk" != "x3.0"
5643 then :
5644 with_gtk=2.0
5645
5646 fi
5647
5648 else $as_nop
5649 with_gtk=2.0
5650
5651 fi
5652
5653 if test "x$with_gtk" = "x2.0"
5654 then :
5655
5656 GTK="gtk+-2.0"
5657
5658 GTK_IM="Y"
5659
5660 GTK3_IM="N"
5661
5662 GTKINC="$GTK2_CFLAGS"
5663
5664 GTKLDFLAGS="$GTK2_LIBS"
5665
5666 APPINDICATOR="appindicator-0.1"
5667
5668
5669 else $as_nop
5670
5671 GTK="gtk+-3.0"
5672
5673 GTK_IM="N"
5674
5675 GTK3_IM="Y"
5676
5677 GTKINC="$GTK3_CFLAGS"
5678
5679 GTKLDFLAGS="$GTK3_LIBS"
5680
5681 APPINDICATOR="appindicator3-0.1"
5682
5683
5684
5685 fi
5686 if test "x$with_gtk" = "x2.0"; then
5687 GTK2_TRUE=
5688 GTK2_FALSE='#'
5689 else
5690 GTK2_TRUE='#'
5691 GTK2_FALSE=
5692 fi
5693
5694 # Qt
5695 # QT5_IM
5696 # QT6_IM
5697 QT5_IM="N"
5698
5699 QT6_IM="N"
5700
5701 QT5_IM_DIR_CUSTOM=
5702 QT6_IM_DIR_CUSTOM=
5703 # debian fedora fedora freebsd slackware arch
5704 qt5_moc_path_list="/usr/share/qt5/bin/moc /usr/lib/qt5/bin/moc /usr/bin/moc-qt5 /usr/local/bin/moc-qt5 /usr/local/bin/moc /usr/bin/moc"
5705 qt6_moc_path_list="/usr/share/qt6/bin/moc /usr/lib/qt6/bin/moc /usr/bin/moc-qt6 /usr/local/bin/moc-qt6 /usr/local/bin/moc /usr/lib/qt6/moc"
5706 # QT5
5707
5708 pkg_failed=no
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Core Qt5Gui" >&5
5710 printf %s "checking for Qt5Core Qt5Gui... " >&6; }
5711
5712 if test -n "$QT5_CFLAGS"; then
5713 pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
5714 elif test -n "$PKG_CONFIG"; then
5715 if test -n "$PKG_CONFIG" && \
5716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui\""; } >&5
5717 ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui") 2>&5
5718 ac_status=$?
5719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; then
5721 pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core Qt5Gui" 2>/dev/null`
5722 test "x$?" != "x0" && pkg_failed=yes
5723 else
5724 pkg_failed=yes
5725 fi
5726 else
5727 pkg_failed=untried
5728 fi
5729 if test -n "$QT5_LIBS"; then
5730 pkg_cv_QT5_LIBS="$QT5_LIBS"
5731 elif test -n "$PKG_CONFIG"; then
5732 if test -n "$PKG_CONFIG" && \
5733 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui\""; } >&5
5734 ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui") 2>&5
5735 ac_status=$?
5736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; }; then
5738 pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs "Qt5Core Qt5Gui" 2>/dev/null`
5739 test "x$?" != "x0" && pkg_failed=yes
5740 else
5741 pkg_failed=yes
5742 fi
5743 else
5744 pkg_failed=untried
5745 fi
5746
5747
5748
5749 if test $pkg_failed = yes; then
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 printf "%s\n" "no" >&6; }
5752
5753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5754 _pkg_short_errors_supported=yes
5755 else
5756 _pkg_short_errors_supported=no
5757 fi
5758 if test $_pkg_short_errors_supported = yes; then
5759 QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core Qt5Gui" 2>&1`
5760 else
5761 QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core Qt5Gui" 2>&1`
5762 fi
5763 # Put the nasty error message in config.log where it belongs
5764 echo "$QT5_PKG_ERRORS" >&5
5765
5766 qt5_is_installed=no
5767
5768 elif test $pkg_failed = untried; then
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 printf "%s\n" "no" >&6; }
5771 qt5_is_installed=no
5772
5773 else
5774 QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
5775 QT5_LIBS=$pkg_cv_QT5_LIBS
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777 printf "%s\n" "yes" >&6; }
5778
5779 qt5_is_installed=yes
5780 QT5_IM="Y"
5781
5782
5783 fi
5784 # Check whether --enable-qt5_immodule was given.
5785 if test ${enable_qt5_immodule+y}
5786 then :
5787 enableval=$enable_qt5_immodule; enable_qt5_immodule=$enableval
5788 else $as_nop
5789 enable_qt5_immodule=yes
5790
5791 fi
5792
5793
5794 # Check whether --with-qt5_moc_path was given.
5795 if test ${with_qt5_moc_path+y}
5796 then :
5797 withval=$with_qt5_moc_path; QT5_MOC_PATH=$withval
5798 else $as_nop
5799 QT5_MOC_PATH=
5800
5801 fi
5802
5803
5804 # Check whether --with-qt5_im_module_path was given.
5805 if test ${with_qt5_im_module_path+y}
5806 then :
5807 withval=$with_qt5_im_module_path; QT5_IM_DIR_CUSTOM=$withval
5808 else $as_nop
5809 QT5_IM_DIR_CUSTOM=
5810
5811 fi
5812
5813 if test "x$qt5_is_installed" = "xno" -a "x$enable_qt5_immodule" = "xyes"
5814 then :
5815 as_fn_error $? "Require QT5 installed" "$LINENO" 5
5816
5817 fi
5818 if test "x$enable_qt5_immodule" = "xno"
5819 then :
5820 QT5_IM="N"
5821
5822
5823 fi
5824 if test "x$QT5_IM" = "xY"
5825 then :
5826
5827 if test ! -x "$QT5_MOC_PATH"; then
5828 mocs="$(pkg-config --variable=host_bins Qt5Core)/moc $qt5_moc_path_list"
5829 for moc in ${mocs}; do
5830 if test -x "$moc"; then
5831 QT5_MOC_PATH="$moc"
5832
5833 break
5834 fi
5835 done
5836 fi
5837 if test ! -x "$QT5_MOC_PATH"
5838 then :
5839 as_fn_error $? "\"Can not find moc for QT5\"" "$LINENO" 5
5840
5841 fi
5842
5843
5844 fi
5845 if test -z "$QT5_IM_DIR"
5846 then :
5847 QT5_IM_DIR="/qt5/plugins/platforminputcontexts"
5848
5849
5850 fi
5851 if test -z "$QT5_IM_DIR_CUSTOM"
5852 then :
5853 QT5_IM_DIR="$(pkg-config --define-variable=prefix=\$\(DESTDIR\)/\$\(prefix\) --variable=libdir Qt5Core)$QT5_IM_DIR"
5854
5855 else $as_nop
5856 QT5_IM_DIR="\$(DESTDIR)$QT5_IM_DIR_CUSTOM"
5857
5858
5859 fi
5860 QT5_MOC_PATH="$QT5_MOC_PATH"
5861
5862 QT5_QMAKE_PATH="$(echo $QT5_MOC_PATH | sed 's/moc/qmake/')"
5863
5864 # QT6
5865 # TODO(xatier): Qt6 doesn't provide pkg-config, we need to hardcode things manually.
5866 QT6_IM="Y"
5867
5868 # Check whether --enable-qt6_immodule was given.
5869 if test ${enable_qt6_immodule+y}
5870 then :
5871 enableval=$enable_qt6_immodule; enable_qt6_immodule=$enableval
5872 else $as_nop
5873 enable_qt6_immodule=yes
5874
5875 fi
5876
5877
5878 # Check whether --with-qt6_moc_path was given.
5879 if test ${with_qt6_moc_path+y}
5880 then :
5881 withval=$with_qt6_moc_path; QT6_MOC_PATH=$withval
5882 else $as_nop
5883 QT6_MOC_PATH=
5884
5885 fi
5886
5887
5888 # Check whether --with-qt6_im_module_path was given.
5889 if test ${with_qt6_im_module_path+y}
5890 then :
5891 withval=$with_qt6_im_module_path; QT6_IM_DIR_CUSTOM=$withval
5892 else $as_nop
5893 QT6_IM_DIR_CUSTOM=
5894
5895 fi
5896
5897 if test "x$enable_qt6_immodule" = "xno"
5898 then :
5899 QT6_IM="N"
5900
5901
5902 fi
5903 if test "x$QT6_IM" = "xY"
5904 then :
5905
5906 if test ! -x "$QT6_MOC_PATH"; then
5907 # TODO(xatier): hardcode moc path for now.
5908 mocs="/usr/lib/qt6/moc $qt6_moc_path_list"
5909 for moc in ${mocs}; do
5910 if test -x "$moc"; then
5911 QT6_MOC_PATH="$moc"
5912
5913 break
5914 fi
5915 done
5916 fi
5917 if test ! -x "$QT6_MOC_PATH"
5918 then :
5919 as_fn_error $? "\"Can not find moc for QT6\"" "$LINENO" 5
5920
5921 fi
5922
5923
5924 fi
5925 if test -z "$QT6_IM_DIR"
5926 then :
5927 QT6_IM_DIR="/qt6/plugins/platforminputcontexts"
5928
5929
5930 fi
5931 if test -z "$QT6_IM_DIR_CUSTOM"
5932 then :
5933 QT6_IM_DIR="\$(DESTDIR)/\$(prefix)/lib$QT6_IM_DIR"
5934
5935 else $as_nop
5936 QT6_IM_DIR="\$(DESTDIR)$QT6_IM_DIR_CUSTOM"
5937
5938
5939 fi
5940 QT6_MOC_PATH="$QT6_MOC_PATH"
5941
5942 QT6_QMAKE_PATH="$(echo $QT6_MOC_PATH | sed 's/moc/qmake/')"
5943
5944 # USE_ANTHY
5945
5946 pkg_failed=no
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for anthy" >&5
5948 printf %s "checking for anthy... " >&6; }
5949
5950 if test -n "$ANTHY_CFLAGS"; then
5951 pkg_cv_ANTHY_CFLAGS="$ANTHY_CFLAGS"
5952 elif test -n "$PKG_CONFIG"; then
5953 if test -n "$PKG_CONFIG" && \
5954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"anthy\""; } >&5
5955 ($PKG_CONFIG --exists --print-errors "anthy") 2>&5
5956 ac_status=$?
5957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }; then
5959 pkg_cv_ANTHY_CFLAGS=`$PKG_CONFIG --cflags "anthy" 2>/dev/null`
5960 test "x$?" != "x0" && pkg_failed=yes
5961 else
5962 pkg_failed=yes
5963 fi
5964 else
5965 pkg_failed=untried
5966 fi
5967 if test -n "$ANTHY_LIBS"; then
5968 pkg_cv_ANTHY_LIBS="$ANTHY_LIBS"
5969 elif test -n "$PKG_CONFIG"; then
5970 if test -n "$PKG_CONFIG" && \
5971 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"anthy\""; } >&5
5972 ($PKG_CONFIG --exists --print-errors "anthy") 2>&5
5973 ac_status=$?
5974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then
5976 pkg_cv_ANTHY_LIBS=`$PKG_CONFIG --libs "anthy" 2>/dev/null`
5977 test "x$?" != "x0" && pkg_failed=yes
5978 else
5979 pkg_failed=yes
5980 fi
5981 else
5982 pkg_failed=untried
5983 fi
5984
5985
5986
5987 if test $pkg_failed = yes; then
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 printf "%s\n" "no" >&6; }
5990
5991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5992 _pkg_short_errors_supported=yes
5993 else
5994 _pkg_short_errors_supported=no
5995 fi
5996 if test $_pkg_short_errors_supported = yes; then
5997 ANTHY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "anthy" 2>&1`
5998 else
5999 ANTHY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "anthy" 2>&1`
6000 fi
6001 # Put the nasty error message in config.log where it belongs
6002 echo "$ANTHY_PKG_ERRORS" >&5
6003
6004 anthy_is_installed=no
6005
6006 elif test $pkg_failed = untried; then
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 printf "%s\n" "no" >&6; }
6009 anthy_is_installed=no
6010
6011 else
6012 ANTHY_CFLAGS=$pkg_cv_ANTHY_CFLAGS
6013 ANTHY_LIBS=$pkg_cv_ANTHY_LIBS
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015 printf "%s\n" "yes" >&6; }
6016 anthy_is_installed=yes
6017 fi
6018 # Check whether --enable-anthy was given.
6019 if test ${enable_anthy+y}
6020 then :
6021 enableval=$enable_anthy; enable_anthy=$enableval
6022 else $as_nop
6023
6024 if test "x$anthy_is_installed" = "yes"
6025 then :
6026 enable_anthy=yes
6027 else $as_nop
6028 enable_anthy=no
6029
6030 fi
6031
6032
6033 fi
6034
6035 if test "x$anthy_is_installed" = "xyes" -a "x$enable_anthy" == "xyes"
6036 then :
6037 ANTHY_INC="-I$(pkg-config --variable=includedir anthy) $(pkg-config --libs anthy)"
6038
6039
6040 fi
6041 if test "x$anthy_is_installed" = "xyes" -a "x$enable_anthy" == "xyes"; then
6042 USE_ANTHY_TRUE=
6043 USE_ANTHY_FALSE='#'
6044 else
6045 USE_ANTHY_TRUE='#'
6046 USE_ANTHY_FALSE=
6047 fi
6048
6049 # USE_CHEWING
6050
6051 pkg_failed=no
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chewing >= 0.3.4" >&5
6053 printf %s "checking for chewing >= 0.3.4... " >&6; }
6054
6055 if test -n "$CHEWING_CFLAGS"; then
6056 pkg_cv_CHEWING_CFLAGS="$CHEWING_CFLAGS"
6057 elif test -n "$PKG_CONFIG"; then
6058 if test -n "$PKG_CONFIG" && \
6059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chewing >= 0.3.4\""; } >&5
6060 ($PKG_CONFIG --exists --print-errors "chewing >= 0.3.4") 2>&5
6061 ac_status=$?
6062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then
6064 pkg_cv_CHEWING_CFLAGS=`$PKG_CONFIG --cflags "chewing >= 0.3.4" 2>/dev/null`
6065 test "x$?" != "x0" && pkg_failed=yes
6066 else
6067 pkg_failed=yes
6068 fi
6069 else
6070 pkg_failed=untried
6071 fi
6072 if test -n "$CHEWING_LIBS"; then
6073 pkg_cv_CHEWING_LIBS="$CHEWING_LIBS"
6074 elif test -n "$PKG_CONFIG"; then
6075 if test -n "$PKG_CONFIG" && \
6076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chewing >= 0.3.4\""; } >&5
6077 ($PKG_CONFIG --exists --print-errors "chewing >= 0.3.4") 2>&5
6078 ac_status=$?
6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 pkg_cv_CHEWING_LIBS=`$PKG_CONFIG --libs "chewing >= 0.3.4" 2>/dev/null`
6082 test "x$?" != "x0" && pkg_failed=yes
6083 else
6084 pkg_failed=yes
6085 fi
6086 else
6087 pkg_failed=untried
6088 fi
6089
6090
6091
6092 if test $pkg_failed = yes; then
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 printf "%s\n" "no" >&6; }
6095
6096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6097 _pkg_short_errors_supported=yes
6098 else
6099 _pkg_short_errors_supported=no
6100 fi
6101 if test $_pkg_short_errors_supported = yes; then
6102 CHEWING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chewing >= 0.3.4" 2>&1`
6103 else
6104 CHEWING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chewing >= 0.3.4" 2>&1`
6105 fi
6106 # Put the nasty error message in config.log where it belongs
6107 echo "$CHEWING_PKG_ERRORS" >&5
6108
6109 chewing_is_installed=no
6110
6111 elif test $pkg_failed = untried; then
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 printf "%s\n" "no" >&6; }
6114 chewing_is_installed=no
6115
6116 else
6117 CHEWING_CFLAGS=$pkg_cv_CHEWING_CFLAGS
6118 CHEWING_LIBS=$pkg_cv_CHEWING_LIBS
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120 printf "%s\n" "yes" >&6; }
6121 chewing_is_installed=yes
6122 fi
6123 # Check whether --enable-chewing was given.
6124 if test ${enable_chewing+y}
6125 then :
6126 enableval=$enable_chewing; enable_chewing=$enableval
6127 else $as_nop
6128
6129 if test "x$chewing_is_installed" = "yes"
6130 then :
6131 enable_chewing=yes
6132 else $as_nop
6133 enable_chewing=no
6134
6135 fi
6136
6137
6138 fi
6139
6140 if test "x$chewing_is_installed" = "xyes" -a "x$enable_chewing" == "xyes"; then
6141 USE_CHEWING_TRUE=
6142 USE_CHEWING_FALSE='#'
6143 else
6144 USE_CHEWING_TRUE='#'
6145 USE_CHEWING_FALSE=
6146 fi
6147
6148 # USE_UNITY_TRAY
6149
6150 pkg_failed=no
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPINDICATOR >= 0.4.0" >&5
6152 printf %s "checking for $APPINDICATOR >= 0.4.0... " >&6; }
6153
6154 if test -n "$APPINDICATOR_CFLAGS"; then
6155 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
6156 elif test -n "$PKG_CONFIG"; then
6157 if test -n "$PKG_CONFIG" && \
6158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPINDICATOR >= 0.4.0\""; } >&5
6159 ($PKG_CONFIG --exists --print-errors "$APPINDICATOR >= 0.4.0") 2>&5
6160 ac_status=$?
6161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162 test $ac_status = 0; }; then
6163 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "$APPINDICATOR >= 0.4.0" 2>/dev/null`
6164 test "x$?" != "x0" && pkg_failed=yes
6165 else
6166 pkg_failed=yes
6167 fi
6168 else
6169 pkg_failed=untried
6170 fi
6171 if test -n "$APPINDICATOR_LIBS"; then
6172 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
6173 elif test -n "$PKG_CONFIG"; then
6174 if test -n "$PKG_CONFIG" && \
6175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPINDICATOR >= 0.4.0\""; } >&5
6176 ($PKG_CONFIG --exists --print-errors "$APPINDICATOR >= 0.4.0") 2>&5
6177 ac_status=$?
6178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "$APPINDICATOR >= 0.4.0" 2>/dev/null`
6181 test "x$?" != "x0" && pkg_failed=yes
6182 else
6183 pkg_failed=yes
6184 fi
6185 else
6186 pkg_failed=untried
6187 fi
6188
6189
6190
6191 if test $pkg_failed = yes; then
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 printf "%s\n" "no" >&6; }
6194
6195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6196 _pkg_short_errors_supported=yes
6197 else
6198 _pkg_short_errors_supported=no
6199 fi
6200 if test $_pkg_short_errors_supported = yes; then
6201 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPINDICATOR >= 0.4.0" 2>&1`
6202 else
6203 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPINDICATOR >= 0.4.0" 2>&1`
6204 fi
6205 # Put the nasty error message in config.log where it belongs
6206 echo "$APPINDICATOR_PKG_ERRORS" >&5
6207
6208 appindicator_is_installed=no
6209
6210 elif test $pkg_failed = untried; then
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 printf "%s\n" "no" >&6; }
6213 appindicator_is_installed=no
6214
6215 else
6216 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
6217 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219 printf "%s\n" "yes" >&6; }
6220 appindicator_is_installed=yes
6221 fi
6222 # Check whether --enable-appindicator was given.
6223 if test ${enable_appindicator+y}
6224 then :
6225 enableval=$enable_appindicator; enable_appindicator=$enableval
6226 else $as_nop
6227
6228 if test "x$appindicator_is_installed" = "yes"
6229 then :
6230 enable_appindicator=yes
6231 else $as_nop
6232 enable_appindicator=no
6233
6234 fi
6235
6236
6237 fi
6238
6239 if test "x$appindicator_is_installed" = "xyes" -a "x$enable_appindicator" == "xyes"
6240 then :
6241
6242 GTKINC="$GTKINC $APPINDICATORINC"
6243
6244 GTKLDFLAGS="$GTKLDFLAGS $APPINDICATORLDFLAGS"
6245
6246
6247
6248 fi
6249 if test "x$appindicator_is_installed" = "xyes" -a "x$enable_appindicator" == "xyes"; then
6250 USE_UNITY_TRAY_TRUE=
6251 USE_UNITY_TRAY_FALSE='#'
6252 else
6253 USE_UNITY_TRAY_TRUE='#'
6254 USE_UNITY_TRAY_FALSE=
6255 fi
6256
6257 LDFLAGS+=" $GTKLDFLAGS"
6258 if test "x$FREEBSD" = "x0"
6259 then :
6260 LDFLAGS="$LDFLAGS -ldl"
6261
6262
6263 fi
6264
6265
6266 if test "x$gtk2_is_installed" = "xyes"
6267 then :
6268
6269 if test "x$with_gtk" = "x2.0"
6270 then :
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 2
6272 is used" >&5
6273 printf "%s\n" "$as_me: GTK 2
6274 is used" >&6;}
6275 else $as_nop
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 2
6277 is installed but not used" >&5
6278 printf "%s\n" "$as_me: GTK 2
6279 is installed but not used" >&6;}
6280
6281 fi
6282
6283 else $as_nop
6284
6285 if test "x$with_gtk" = "x2.0"
6286 then :
6287 as_fn_error $? "GTK 2
6288 should be installed" "$LINENO" 5
6289 else $as_nop
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 2
6291 is not installed and not used" >&5
6292 printf "%s\n" "$as_me: GTK 2
6293 is not installed and not used" >&6;}
6294
6295 fi
6296
6297
6298 fi
6299
6300
6301
6302 if test "x$gtk3_is_installed" = "xyes"
6303 then :
6304
6305 if test "x$with_gtk" = "x3.0"
6306 then :
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 3
6308 is used" >&5
6309 printf "%s\n" "$as_me: GTK 3
6310 is used" >&6;}
6311 else $as_nop
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 3
6313 is installed but not used" >&5
6314 printf "%s\n" "$as_me: GTK 3
6315 is installed but not used" >&6;}
6316
6317 fi
6318
6319 else $as_nop
6320
6321 if test "x$with_gtk" = "x3.0"
6322 then :
6323 as_fn_error $? "GTK 3
6324 should be installed" "$LINENO" 5
6325 else $as_nop
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GTK 3
6327 is not installed and not used" >&5
6328 printf "%s\n" "$as_me: GTK 3
6329 is not installed and not used" >&6;}
6330
6331 fi
6332
6333
6334 fi
6335
6336
6337
6338 if test "x$anthy_is_installed" = "xyes"
6339 then :
6340
6341 if test "x$enable_anthy" = "xyes"
6342 then :
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Anthy
6344 is used" >&5
6345 printf "%s\n" "$as_me: Anthy
6346 is used" >&6;}
6347 else $as_nop
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Anthy
6349 is installed but not used" >&5
6350 printf "%s\n" "$as_me: Anthy
6351 is installed but not used" >&6;}
6352
6353 fi
6354
6355 else $as_nop
6356
6357 if test "x$enable_anthy" = "xyes"
6358 then :
6359 as_fn_error $? "Anthy
6360 should be installed" "$LINENO" 5
6361 else $as_nop
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Anthy
6363 is not installed and not used" >&5
6364 printf "%s\n" "$as_me: Anthy
6365 is not installed and not used" >&6;}
6366
6367 fi
6368
6369
6370 fi
6371
6372
6373
6374 if test "x$chewing_is_installed" = "xyes"
6375 then :
6376
6377 if test "x$enable_chewing" = "xyes"
6378 then :
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Chewing
6380 is used" >&5
6381 printf "%s\n" "$as_me: Chewing
6382 is used" >&6;}
6383 else $as_nop
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Chewing
6385 is installed but not used" >&5
6386 printf "%s\n" "$as_me: Chewing
6387 is installed but not used" >&6;}
6388
6389 fi
6390
6391 else $as_nop
6392
6393 if test "x$enable_chewing" = "xyes"
6394 then :
6395 as_fn_error $? "Chewing
6396 should be installed" "$LINENO" 5
6397 else $as_nop
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Chewing
6399 is not installed and not used" >&5
6400 printf "%s\n" "$as_me: Chewing
6401 is not installed and not used" >&6;}
6402
6403 fi
6404
6405
6406 fi
6407
6408
6409
6410 # Checks for header files.
6411
6412 # Checks for typedefs, structures, and compiler characteristics.
6413
6414 # Checks for library functions.
6415
6416 ac_config_files="$ac_config_files Makefile data/Makefile filter/Makefile icons/Makefile man/Makefile menu/Makefile po/Makefile scripts/Makefile src/Makefile src/gtk-im/Makefile src/gtk3-im/Makefile src/im-client/Makefile src/IMdkit/Makefile src/IMdkit/lib/Makefile src/modules/Makefile src/qt5-im/Makefile src/qt6-im/Makefile"
6417
6418 cat >confcache <<\_ACEOF
6419 # This file is a shell script that caches the results of configure
6420 # tests run on this system so they can be shared between configure
6421 # scripts and configure runs, see configure's option --config-cache.
6422 # It is not useful on other systems. If it contains results you don't
6423 # want to keep, you may remove or edit it.
6424 #
6425 # config.status only pays attention to the cache file if you give it
6426 # the --recheck option to rerun configure.
6427 #
6428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6430 # following values.
6431
6432 _ACEOF
6433
6434 # The following way of writing the cache mishandles newlines in values,
6435 # but we know of no workaround that is simple, portable, and efficient.
6436 # So, we kill variables containing newlines.
6437 # Ultrix sh set writes to stderr and can't be redirected directly,
6438 # and sets the high bit in the cache file unless we assign to the vars.
6439 (
6440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6441 eval ac_val=\$$ac_var
6442 case $ac_val in #(
6443 *${as_nl}*)
6444 case $ac_var in #(
6445 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6446 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6447 esac
6448 case $ac_var in #(
6449 _ | IFS | as_nl) ;; #(
6450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6451 *) { eval $ac_var=; unset $ac_var;} ;;
6452 esac ;;
6453 esac
6454 done
6455
6456 (set) 2>&1 |
6457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6458 *${as_nl}ac_space=\ *)
6459 # `set' does not quote correctly, so add quotes: double-quote
6460 # substitution turns \\\\ into \\, and sed turns \\ into \.
6461 sed -n \
6462 "s/'/'\\\\''/g;
6463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6464 ;; #(
6465 *)
6466 # `set' quotes correctly as required by POSIX, so do not add quotes.
6467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6468 ;;
6469 esac |
6470 sort
6471 ) |
6472 sed '
6473 /^ac_cv_env_/b end
6474 t clear
6475 :clear
6476 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6477 t end
6478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6479 :end' >>confcache
6480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6481 if test -w "$cache_file"; then
6482 if test "x$cache_file" != "x/dev/null"; then
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6484 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6485 if test ! -f "$cache_file" || test -h "$cache_file"; then
6486 cat confcache >"$cache_file"
6487 else
6488 case $cache_file in #(
6489 */* | ?:*)
6490 mv -f confcache "$cache_file"$$ &&
6491 mv -f "$cache_file"$$ "$cache_file" ;; #(
6492 *)
6493 mv -f confcache "$cache_file" ;;
6494 esac
6495 fi
6496 fi
6497 else
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6499 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6500 fi
6501 fi
6502 rm -f confcache
6503
6504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6505 # Let make expand exec_prefix.
6506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6507
6508 # Transform confdefs.h into DEFS.
6509 # Protect against shell expansion while executing Makefile rules.
6510 # Protect against Makefile macro expansion.
6511 #
6512 # If the first sed substitution is executed (which looks for macros that
6513 # take arguments), then branch to the quote section. Otherwise,
6514 # look for a macro that doesn't take arguments.
6515 ac_script='
6516 :mline
6517 /\\$/{
6518 N
6519 s,\\\n,,
6520 b mline
6521 }
6522 t clear
6523 :clear
6524 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6525 t quote
6526 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6527 t quote
6528 b any
6529 :quote
6530 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6531 s/\[/\\&/g
6532 s/\]/\\&/g
6533 s/\$/$$/g
6534 H
6535 :any
6536 ${
6537 g
6538 s/^\n//
6539 s/\n/ /g
6540 p
6541 }
6542 '
6543 DEFS=`sed -n "$ac_script" confdefs.h`
6544
6545
6546 ac_libobjs=
6547 ac_ltlibobjs=
6548 U=
6549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6550 # 1. Remove the extension, and $U if already installed.
6551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6552 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6554 # will be set to the directory where LIBOBJS objects are built.
6555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6557 done
6558 LIBOBJS=$ac_libobjs
6559
6560 LTLIBOBJS=$ac_ltlibobjs
6561
6562
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6564 printf %s "checking that generated files are newer than configure... " >&6; }
6565 if test -n "$am_sleep_pid"; then
6566 # Hide warnings about reused PIDs.
6567 wait $am_sleep_pid 2>/dev/null
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6570 printf "%s\n" "done" >&6; }
6571 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6572 as_fn_error $? "conditional \"AMDEP\" was never defined.
6573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6574 fi
6575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6576 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6578 fi
6579 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6580 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6582 fi
6583 if test -n "$EXEEXT"; then
6584 am__EXEEXT_TRUE=
6585 am__EXEEXT_FALSE='#'
6586 else
6587 am__EXEEXT_TRUE='#'
6588 am__EXEEXT_FALSE=
6589 fi
6590
6591 if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
6592 as_fn_error $? "conditional \"FREEBSD\" was never defined.
6593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6594 fi
6595 if test -z "${USE_XIM_TRUE}" && test -z "${USE_XIM_FALSE}"; then
6596 as_fn_error $? "conditional \"USE_XIM\" was never defined.
6597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6598 fi
6599 if test -z "${USE_SYSTEM_TRAY_TRUE}" && test -z "${USE_SYSTEM_TRAY_FALSE}"; then
6600 as_fn_error $? "conditional \"USE_SYSTEM_TRAY\" was never defined.
6601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6602 fi
6603 if test -z "${GIT_HAVE_TRUE}" && test -z "${GIT_HAVE_FALSE}"; then
6604 as_fn_error $? "conditional \"GIT_HAVE\" was never defined.
6605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6606 fi
6607 if test -z "${GTK2_TRUE}" && test -z "${GTK2_FALSE}"; then
6608 as_fn_error $? "conditional \"GTK2\" was never defined.
6609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6610 fi
6611 if test -z "${USE_ANTHY_TRUE}" && test -z "${USE_ANTHY_FALSE}"; then
6612 as_fn_error $? "conditional \"USE_ANTHY\" was never defined.
6613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6614 fi
6615 if test -z "${USE_CHEWING_TRUE}" && test -z "${USE_CHEWING_FALSE}"; then
6616 as_fn_error $? "conditional \"USE_CHEWING\" was never defined.
6617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6618 fi
6619 if test -z "${USE_UNITY_TRAY_TRUE}" && test -z "${USE_UNITY_TRAY_FALSE}"; then
6620 as_fn_error $? "conditional \"USE_UNITY_TRAY\" was never defined.
6621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6622 fi
6623
6624 : "${CONFIG_STATUS=./config.status}"
6625 ac_write_fail=0
6626 ac_clean_files_save=$ac_clean_files
6627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6629 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6630 as_write_fail=0
6631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6632 #! $SHELL
6633 # Generated by $as_me.
6634 # Run this file to recreate the current configuration.
6635 # Compiler output produced by configure, useful for debugging
6636 # configure, is in config.log if it exists.
6637
6638 debug=false
6639 ac_cs_recheck=false
6640 ac_cs_silent=false
6641
6642 SHELL=\${CONFIG_SHELL-$SHELL}
6643 export SHELL
6644 _ASEOF
6645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6646 ## -------------------- ##
6647 ## M4sh Initialization. ##
6648 ## -------------------- ##
6649
6650 # Be more Bourne compatible
6651 DUALCASE=1; export DUALCASE # for MKS sh
6652 as_nop=:
6653 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6654 then :
6655 emulate sh
6656 NULLCMD=:
6657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6658 # is contrary to our usage. Disable this feature.
6659 alias -g '${1+"$@"}'='"$@"'
6660 setopt NO_GLOB_SUBST
6661 else $as_nop
6662 case `(set -o) 2>/dev/null` in #(
6663 *posix*) :
6664 set -o posix ;; #(
6665 *) :
6666 ;;
6667 esac
6668 fi
6669
6670
6671
6672 # Reset variables that may have inherited troublesome values from
6673 # the environment.
6674
6675 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6676 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6677 # side effect of setting IFS to empty, thus disabling word splitting.)
6678 # Quoting is to prevent editors from complaining about space-tab.
6679 as_nl='
6680 '
6681 export as_nl
6682 IFS=" "" $as_nl"
6683
6684 PS1='$ '
6685 PS2='> '
6686 PS4='+ '
6687
6688 # Ensure predictable behavior from utilities with locale-dependent output.
6689 LC_ALL=C
6690 export LC_ALL
6691 LANGUAGE=C
6692 export LANGUAGE
6693
6694 # We cannot yet rely on "unset" to work, but we need these variables
6695 # to be unset--not just set to an empty or harmless value--now, to
6696 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6697 # also avoids known problems related to "unset" and subshell syntax
6698 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6699 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6700 do eval test \${$as_var+y} \
6701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6702 done
6703
6704 # Ensure that fds 0, 1, and 2 are open.
6705 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6706 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6707 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6708
6709 # The user is always right.
6710 if ${PATH_SEPARATOR+false} :; then
6711 PATH_SEPARATOR=:
6712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6714 PATH_SEPARATOR=';'
6715 }
6716 fi
6717
6718
6719 # Find who we are. Look in the path if we contain no directory separator.
6720 as_myself=
6721 case $0 in #((
6722 *[\\/]* ) as_myself=$0 ;;
6723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 case $as_dir in #(((
6728 '') as_dir=./ ;;
6729 */) ;;
6730 *) as_dir=$as_dir/ ;;
6731 esac
6732 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6733 done
6734 IFS=$as_save_IFS
6735
6736 ;;
6737 esac
6738 # We did not find ourselves, most probably we were run as `sh COMMAND'
6739 # in which case we are not to be found in the path.
6740 if test "x$as_myself" = x; then
6741 as_myself=$0
6742 fi
6743 if test ! -f "$as_myself"; then
6744 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6745 exit 1
6746 fi
6747
6748
6749
6750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6751 # ----------------------------------------
6752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6754 # script with STATUS, using 1 if that was 0.
6755 as_fn_error ()
6756 {
6757 as_status=$1; test $as_status -eq 0 && as_status=1
6758 if test "$4"; then
6759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6761 fi
6762 printf "%s\n" "$as_me: error: $2" >&2
6763 as_fn_exit $as_status
6764 } # as_fn_error
6765
6766
6767
6768 # as_fn_set_status STATUS
6769 # -----------------------
6770 # Set $? to STATUS, without forking.
6771 as_fn_set_status ()
6772 {
6773 return $1
6774 } # as_fn_set_status
6775
6776 # as_fn_exit STATUS
6777 # -----------------
6778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6779 as_fn_exit ()
6780 {
6781 set +e
6782 as_fn_set_status $1
6783 exit $1
6784 } # as_fn_exit
6785
6786 # as_fn_unset VAR
6787 # ---------------
6788 # Portably unset VAR.
6789 as_fn_unset ()
6790 {
6791 { eval $1=; unset $1;}
6792 }
6793 as_unset=as_fn_unset
6794
6795 # as_fn_append VAR VALUE
6796 # ----------------------
6797 # Append the text in VALUE to the end of the definition contained in VAR. Take
6798 # advantage of any shell optimizations that allow amortized linear growth over
6799 # repeated appends, instead of the typical quadratic growth present in naive
6800 # implementations.
6801 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6802 then :
6803 eval 'as_fn_append ()
6804 {
6805 eval $1+=\$2
6806 }'
6807 else $as_nop
6808 as_fn_append ()
6809 {
6810 eval $1=\$$1\$2
6811 }
6812 fi # as_fn_append
6813
6814 # as_fn_arith ARG...
6815 # ------------------
6816 # Perform arithmetic evaluation on the ARGs, and store the result in the
6817 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6818 # must be portable across $(()) and expr.
6819 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6820 then :
6821 eval 'as_fn_arith ()
6822 {
6823 as_val=$(( $* ))
6824 }'
6825 else $as_nop
6826 as_fn_arith ()
6827 {
6828 as_val=`expr "$@" || test $? -eq 1`
6829 }
6830 fi # as_fn_arith
6831
6832
6833 if expr a : '\(a\)' >/dev/null 2>&1 &&
6834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6835 as_expr=expr
6836 else
6837 as_expr=false
6838 fi
6839
6840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6841 as_basename=basename
6842 else
6843 as_basename=false
6844 fi
6845
6846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6847 as_dirname=dirname
6848 else
6849 as_dirname=false
6850 fi
6851
6852 as_me=`$as_basename -- "$0" ||
6853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6854 X"$0" : 'X\(//\)$' \| \
6855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6856 printf "%s\n" X/"$0" |
6857 sed '/^.*\/\([^/][^/]*\)\/*$/{
6858 s//\1/
6859 q
6860 }
6861 /^X\/\(\/\/\)$/{
6862 s//\1/
6863 q
6864 }
6865 /^X\/\(\/\).*/{
6866 s//\1/
6867 q
6868 }
6869 s/.*/./; q'`
6870
6871 # Avoid depending upon Character Ranges.
6872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6875 as_cr_digits='0123456789'
6876 as_cr_alnum=$as_cr_Letters$as_cr_digits
6877
6878
6879 # Determine whether it's possible to make 'echo' print without a newline.
6880 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6881 # for compatibility with existing Makefiles.
6882 ECHO_C= ECHO_N= ECHO_T=
6883 case `echo -n x` in #(((((
6884 -n*)
6885 case `echo 'xy\c'` in
6886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6887 xy) ECHO_C='\c';;
6888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6889 ECHO_T=' ';;
6890 esac;;
6891 *)
6892 ECHO_N='-n';;
6893 esac
6894
6895 # For backward compatibility with old third-party macros, we provide
6896 # the shell variables $as_echo and $as_echo_n. New code should use
6897 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6898 as_echo='printf %s\n'
6899 as_echo_n='printf %s'
6900
6901 rm -f conf$$ conf$$.exe conf$$.file
6902 if test -d conf$$.dir; then
6903 rm -f conf$$.dir/conf$$.file
6904 else
6905 rm -f conf$$.dir
6906 mkdir conf$$.dir 2>/dev/null
6907 fi
6908 if (echo >conf$$.file) 2>/dev/null; then
6909 if ln -s conf$$.file conf$$ 2>/dev/null; then
6910 as_ln_s='ln -s'
6911 # ... but there are two gotchas:
6912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6914 # In both cases, we have to default to `cp -pR'.
6915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6916 as_ln_s='cp -pR'
6917 elif ln conf$$.file conf$$ 2>/dev/null; then
6918 as_ln_s=ln
6919 else
6920 as_ln_s='cp -pR'
6921 fi
6922 else
6923 as_ln_s='cp -pR'
6924 fi
6925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6926 rmdir conf$$.dir 2>/dev/null
6927
6928
6929 # as_fn_mkdir_p
6930 # -------------
6931 # Create "$as_dir" as a directory, including parents if necessary.
6932 as_fn_mkdir_p ()
6933 {
6934
6935 case $as_dir in #(
6936 -*) as_dir=./$as_dir;;
6937 esac
6938 test -d "$as_dir" || eval $as_mkdir_p || {
6939 as_dirs=
6940 while :; do
6941 case $as_dir in #(
6942 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6943 *) as_qdir=$as_dir;;
6944 esac
6945 as_dirs="'$as_qdir' $as_dirs"
6946 as_dir=`$as_dirname -- "$as_dir" ||
6947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6948 X"$as_dir" : 'X\(//\)[^/]' \| \
6949 X"$as_dir" : 'X\(//\)$' \| \
6950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6951 printf "%s\n" X"$as_dir" |
6952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6953 s//\1/
6954 q
6955 }
6956 /^X\(\/\/\)[^/].*/{
6957 s//\1/
6958 q
6959 }
6960 /^X\(\/\/\)$/{
6961 s//\1/
6962 q
6963 }
6964 /^X\(\/\).*/{
6965 s//\1/
6966 q
6967 }
6968 s/.*/./; q'`
6969 test -d "$as_dir" && break
6970 done
6971 test -z "$as_dirs" || eval "mkdir $as_dirs"
6972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6973
6974
6975 } # as_fn_mkdir_p
6976 if mkdir -p . 2>/dev/null; then
6977 as_mkdir_p='mkdir -p "$as_dir"'
6978 else
6979 test -d ./-p && rmdir ./-p
6980 as_mkdir_p=false
6981 fi
6982
6983
6984 # as_fn_executable_p FILE
6985 # -----------------------
6986 # Test if FILE is an executable regular file.
6987 as_fn_executable_p ()
6988 {
6989 test -f "$1" && test -x "$1"
6990 } # as_fn_executable_p
6991 as_test_x='test -x'
6992 as_executable_p=as_fn_executable_p
6993
6994 # Sed expression to map a string onto a valid CPP name.
6995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6996
6997 # Sed expression to map a string onto a valid variable name.
6998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6999
7000
7001 exec 6>&1
7002 ## ----------------------------------- ##
7003 ## Main body of $CONFIG_STATUS script. ##
7004 ## ----------------------------------- ##
7005 _ASEOF
7006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7007
7008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7009 # Save the log message, to keep $0 and so on meaningful, and to
7010 # report actual input values of CONFIG_FILES etc. instead of their
7011 # values after options handling.
7012 ac_log="
7013 This file was extended by HIME $as_me 0.10.1, which was
7014 generated by GNU Autoconf 2.71. Invocation command line was
7015
7016 CONFIG_FILES = $CONFIG_FILES
7017 CONFIG_HEADERS = $CONFIG_HEADERS
7018 CONFIG_LINKS = $CONFIG_LINKS
7019 CONFIG_COMMANDS = $CONFIG_COMMANDS
7020 $ $0 $@
7021
7022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7023 "
7024
7025 _ACEOF
7026
7027 case $ac_config_files in *"
7028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7029 esac
7030
7031
7032
7033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7034 # Files that config.status was made for.
7035 config_files="$ac_config_files"
7036 config_commands="$ac_config_commands"
7037
7038 _ACEOF
7039
7040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7041 ac_cs_usage="\
7042 \`$as_me' instantiates files and other configuration actions
7043 from templates according to the current configuration. Unless the files
7044 and actions are specified as TAGs, all are instantiated by default.
7045
7046 Usage: $0 [OPTION]... [TAG]...
7047
7048 -h, --help print this help, then exit
7049 -V, --version print version number and configuration settings, then exit
7050 --config print configuration, then exit
7051 -q, --quiet, --silent
7052 do not print progress messages
7053 -d, --debug don't remove temporary files
7054 --recheck update $as_me by reconfiguring in the same conditions
7055 --file=FILE[:TEMPLATE]
7056 instantiate the configuration file FILE
7057
7058 Configuration files:
7059 $config_files
7060
7061 Configuration commands:
7062 $config_commands
7063
7064 Report bugs to <BUG-REPORT-ADDRESS>."
7065
7066 _ACEOF
7067 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7068 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7070 ac_cs_config='$ac_cs_config_escaped'
7071 ac_cs_version="\\
7072 HIME config.status 0.10.1
7073 configured by $0, generated by GNU Autoconf 2.71,
7074 with options \\"\$ac_cs_config\\"
7075
7076 Copyright (C) 2021 Free Software Foundation, Inc.
7077 This config.status script is free software; the Free Software Foundation
7078 gives unlimited permission to copy, distribute and modify it."
7079
7080 ac_pwd='$ac_pwd'
7081 srcdir='$srcdir'
7082 INSTALL='$INSTALL'
7083 MKDIR_P='$MKDIR_P'
7084 AWK='$AWK'
7085 test -n "\$AWK" || AWK=awk
7086 _ACEOF
7087
7088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7089 # The default lists apply if the user does not specify any file.
7090 ac_need_defaults=:
7091 while test $# != 0
7092 do
7093 case $1 in
7094 --*=?*)
7095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7097 ac_shift=:
7098 ;;
7099 --*=)
7100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7101 ac_optarg=
7102 ac_shift=:
7103 ;;
7104 *)
7105 ac_option=$1
7106 ac_optarg=$2
7107 ac_shift=shift
7108 ;;
7109 esac
7110
7111 case $ac_option in
7112 # Handling of the options.
7113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7114 ac_cs_recheck=: ;;
7115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7116 printf "%s\n" "$ac_cs_version"; exit ;;
7117 --config | --confi | --conf | --con | --co | --c )
7118 printf "%s\n" "$ac_cs_config"; exit ;;
7119 --debug | --debu | --deb | --de | --d | -d )
7120 debug=: ;;
7121 --file | --fil | --fi | --f )
7122 $ac_shift
7123 case $ac_optarg in
7124 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7125 '') as_fn_error $? "missing file argument" ;;
7126 esac
7127 as_fn_append CONFIG_FILES " '$ac_optarg'"
7128 ac_need_defaults=false;;
7129 --he | --h | --help | --hel | -h )
7130 printf "%s\n" "$ac_cs_usage"; exit ;;
7131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7133 ac_cs_silent=: ;;
7134
7135 # This is an error.
7136 -*) as_fn_error $? "unrecognized option: \`$1'
7137 Try \`$0 --help' for more information." ;;
7138
7139 *) as_fn_append ac_config_targets " $1"
7140 ac_need_defaults=false ;;
7141
7142 esac
7143 shift
7144 done
7145
7146 ac_configure_extra_args=
7147
7148 if $ac_cs_silent; then
7149 exec 6>/dev/null
7150 ac_configure_extra_args="$ac_configure_extra_args --silent"
7151 fi
7152
7153 _ACEOF
7154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7155 if \$ac_cs_recheck; then
7156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7157 shift
7158 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7159 CONFIG_SHELL='$SHELL'
7160 export CONFIG_SHELL
7161 exec "\$@"
7162 fi
7163
7164 _ACEOF
7165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7166 exec 5>>config.log
7167 {
7168 echo
7169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7170 ## Running $as_me. ##
7171 _ASBOX
7172 printf "%s\n" "$ac_log"
7173 } >&5
7174
7175 _ACEOF
7176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7177 #
7178 # INIT-COMMANDS
7179 #
7180 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7181
7182 _ACEOF
7183
7184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7185
7186 # Handling of arguments.
7187 for ac_config_target in $ac_config_targets
7188 do
7189 case $ac_config_target in
7190 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7192 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
7193 "filter/Makefile") CONFIG_FILES="$CONFIG_FILES filter/Makefile" ;;
7194 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
7195 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
7196 "menu/Makefile") CONFIG_FILES="$CONFIG_FILES menu/Makefile" ;;
7197 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
7198 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
7199 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7200 "src/gtk-im/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-im/Makefile" ;;
7201 "src/gtk3-im/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk3-im/Makefile" ;;
7202 "src/im-client/Makefile") CONFIG_FILES="$CONFIG_FILES src/im-client/Makefile" ;;
7203 "src/IMdkit/Makefile") CONFIG_FILES="$CONFIG_FILES src/IMdkit/Makefile" ;;
7204 "src/IMdkit/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/IMdkit/lib/Makefile" ;;
7205 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
7206 "src/qt5-im/Makefile") CONFIG_FILES="$CONFIG_FILES src/qt5-im/Makefile" ;;
7207 "src/qt6-im/Makefile") CONFIG_FILES="$CONFIG_FILES src/qt6-im/Makefile" ;;
7208
7209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7210 esac
7211 done
7212
7213
7214 # If the user did not use the arguments to specify the items to instantiate,
7215 # then the envvar interface is used. Set only those that are not.
7216 # We use the long form for the default assignment because of an extremely
7217 # bizarre bug on SunOS 4.1.3.
7218 if $ac_need_defaults; then
7219 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7220 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7221 fi
7222
7223 # Have a temporary directory for convenience. Make it in the build tree
7224 # simply because there is no reason against having it here, and in addition,
7225 # creating and moving files from /tmp can sometimes cause problems.
7226 # Hook for its removal unless debugging.
7227 # Note that there is a small window in which the directory will not be cleaned:
7228 # after its creation but before its name has been assigned to `$tmp'.
7229 $debug ||
7230 {
7231 tmp= ac_tmp=
7232 trap 'exit_status=$?
7233 : "${ac_tmp:=$tmp}"
7234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7235 ' 0
7236 trap 'as_fn_exit 1' 1 2 13 15
7237 }
7238 # Create a (secure) tmp directory for tmp files.
7239
7240 {
7241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7242 test -d "$tmp"
7243 } ||
7244 {
7245 tmp=./conf$$-$RANDOM
7246 (umask 077 && mkdir "$tmp")
7247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7248 ac_tmp=$tmp
7249
7250 # Set up the scripts for CONFIG_FILES section.
7251 # No need to generate them if there are no CONFIG_FILES.
7252 # This happens for instance with `./config.status config.h'.
7253 if test -n "$CONFIG_FILES"; then
7254
7255
7256 ac_cr=`echo X | tr X '\015'`
7257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7258 # But we know of no other shell where ac_cr would be empty at this
7259 # point, so we can use a bashism as a fallback.
7260 if test "x$ac_cr" = x; then
7261 eval ac_cr=\$\'\\r\'
7262 fi
7263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7265 ac_cs_awk_cr='\\r'
7266 else
7267 ac_cs_awk_cr=$ac_cr
7268 fi
7269
7270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7271 _ACEOF
7272
7273
7274 {
7275 echo "cat >conf$$subs.awk <<_ACEOF" &&
7276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7277 echo "_ACEOF"
7278 } >conf$$subs.sh ||
7279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7281 ac_delim='%!_!# '
7282 for ac_last_try in false false false false false :; do
7283 . ./conf$$subs.sh ||
7284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7285
7286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7287 if test $ac_delim_n = $ac_delim_num; then
7288 break
7289 elif $ac_last_try; then
7290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7291 else
7292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7293 fi
7294 done
7295 rm -f conf$$subs.sh
7296
7297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7299 _ACEOF
7300 sed -n '
7301 h
7302 s/^/S["/; s/!.*/"]=/
7303 p
7304 g
7305 s/^[^!]*!//
7306 :repl
7307 t repl
7308 s/'"$ac_delim"'$//
7309 t delim
7310 :nl
7311 h
7312 s/\(.\{148\}\)..*/\1/
7313 t more1
7314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7315 p
7316 n
7317 b repl
7318 :more1
7319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7320 p
7321 g
7322 s/.\{148\}//
7323 t nl
7324 :delim
7325 h
7326 s/\(.\{148\}\)..*/\1/
7327 t more2
7328 s/["\\]/\\&/g; s/^/"/; s/$/"/
7329 p
7330 b
7331 :more2
7332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7333 p
7334 g
7335 s/.\{148\}//
7336 t delim
7337 ' <conf$$subs.awk | sed '
7338 /^[^""]/{
7339 N
7340 s/\n//
7341 }
7342 ' >>$CONFIG_STATUS || ac_write_fail=1
7343 rm -f conf$$subs.awk
7344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7345 _ACAWK
7346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7347 for (key in S) S_is_set[key] = 1
7348 FS = ""
7349
7350 }
7351 {
7352 line = $ 0
7353 nfields = split(line, field, "@")
7354 substed = 0
7355 len = length(field[1])
7356 for (i = 2; i < nfields; i++) {
7357 key = field[i]
7358 keylen = length(key)
7359 if (S_is_set[key]) {
7360 value = S[key]
7361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7362 len += length(value) + length(field[++i])
7363 substed = 1
7364 } else
7365 len += 1 + keylen
7366 }
7367
7368 print line
7369 }
7370
7371 _ACAWK
7372 _ACEOF
7373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7376 else
7377 cat
7378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7380 _ACEOF
7381
7382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7384 # trailing colons and then remove the whole line if VPATH becomes empty
7385 # (actually we leave an empty line to preserve line numbers).
7386 if test "x$srcdir" = x.; then
7387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7388 h
7389 s///
7390 s/^/:/
7391 s/[ ]*$/:/
7392 s/:\$(srcdir):/:/g
7393 s/:\${srcdir}:/:/g
7394 s/:@srcdir@:/:/g
7395 s/^:*//
7396 s/:*$//
7397 x
7398 s/\(=[ ]*\).*/\1/
7399 G
7400 s/\n//
7401 s/^[^=]*=[ ]*$//
7402 }'
7403 fi
7404
7405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7406 fi # test -n "$CONFIG_FILES"
7407
7408
7409 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7410 shift
7411 for ac_tag
7412 do
7413 case $ac_tag in
7414 :[FHLC]) ac_mode=$ac_tag; continue;;
7415 esac
7416 case $ac_mode$ac_tag in
7417 :[FHL]*:*);;
7418 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7419 :[FH]-) ac_tag=-:-;;
7420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7421 esac
7422 ac_save_IFS=$IFS
7423 IFS=:
7424 set x $ac_tag
7425 IFS=$ac_save_IFS
7426 shift
7427 ac_file=$1
7428 shift
7429
7430 case $ac_mode in
7431 :L) ac_source=$1;;
7432 :[FH])
7433 ac_file_inputs=
7434 for ac_f
7435 do
7436 case $ac_f in
7437 -) ac_f="$ac_tmp/stdin";;
7438 *) # Look for the file first in the build tree, then in the source tree
7439 # (if the path is not absolute). The absolute path cannot be DOS-style,
7440 # because $ac_f cannot contain `:'.
7441 test -f "$ac_f" ||
7442 case $ac_f in
7443 [\\/$]*) false;;
7444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7445 esac ||
7446 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7447 esac
7448 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7449 as_fn_append ac_file_inputs " '$ac_f'"
7450 done
7451
7452 # Let's still pretend it is `configure' which instantiates (i.e., don't
7453 # use $as_me), people would be surprised to read:
7454 # /* config.h. Generated by config.status. */
7455 configure_input='Generated from '`
7456 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7457 `' by configure.'
7458 if test x"$ac_file" != x-; then
7459 configure_input="$ac_file. $configure_input"
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7461 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7462 fi
7463 # Neutralize special characters interpreted by sed in replacement strings.
7464 case $configure_input in #(
7465 *\&* | *\|* | *\\* )
7466 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7468 *) ac_sed_conf_input=$configure_input;;
7469 esac
7470
7471 case $ac_tag in
7472 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7474 esac
7475 ;;
7476 esac
7477
7478 ac_dir=`$as_dirname -- "$ac_file" ||
7479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7480 X"$ac_file" : 'X\(//\)[^/]' \| \
7481 X"$ac_file" : 'X\(//\)$' \| \
7482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7483 printf "%s\n" X"$ac_file" |
7484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7485 s//\1/
7486 q
7487 }
7488 /^X\(\/\/\)[^/].*/{
7489 s//\1/
7490 q
7491 }
7492 /^X\(\/\/\)$/{
7493 s//\1/
7494 q
7495 }
7496 /^X\(\/\).*/{
7497 s//\1/
7498 q
7499 }
7500 s/.*/./; q'`
7501 as_dir="$ac_dir"; as_fn_mkdir_p
7502 ac_builddir=.
7503
7504 case "$ac_dir" in
7505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7506 *)
7507 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7508 # A ".." for each directory in $ac_dir_suffix.
7509 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7510 case $ac_top_builddir_sub in
7511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7513 esac ;;
7514 esac
7515 ac_abs_top_builddir=$ac_pwd
7516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7517 # for backward compatibility:
7518 ac_top_builddir=$ac_top_build_prefix
7519
7520 case $srcdir in
7521 .) # We are building in place.
7522 ac_srcdir=.
7523 ac_top_srcdir=$ac_top_builddir_sub
7524 ac_abs_top_srcdir=$ac_pwd ;;
7525 [\\/]* | ?:[\\/]* ) # Absolute name.
7526 ac_srcdir=$srcdir$ac_dir_suffix;
7527 ac_top_srcdir=$srcdir
7528 ac_abs_top_srcdir=$srcdir ;;
7529 *) # Relative name.
7530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7531 ac_top_srcdir=$ac_top_build_prefix$srcdir
7532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7533 esac
7534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7535
7536
7537 case $ac_mode in
7538 :F)
7539 #
7540 # CONFIG_FILE
7541 #
7542
7543 case $INSTALL in
7544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7546 esac
7547 ac_MKDIR_P=$MKDIR_P
7548 case $MKDIR_P in
7549 [\\/$]* | ?:[\\/]* ) ;;
7550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7551 esac
7552 _ACEOF
7553
7554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7555 # If the template does not know about datarootdir, expand it.
7556 # FIXME: This hack should be removed a few years after 2.60.
7557 ac_datarootdir_hack=; ac_datarootdir_seen=
7558 ac_sed_dataroot='
7559 /datarootdir/ {
7560 p
7561 q
7562 }
7563 /@datadir@/p
7564 /@docdir@/p
7565 /@infodir@/p
7566 /@localedir@/p
7567 /@mandir@/p'
7568 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7569 *datarootdir*) ac_datarootdir_seen=yes;;
7570 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7572 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7573 _ACEOF
7574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7575 ac_datarootdir_hack='
7576 s&@datadir@&$datadir&g
7577 s&@docdir@&$docdir&g
7578 s&@infodir@&$infodir&g
7579 s&@localedir@&$localedir&g
7580 s&@mandir@&$mandir&g
7581 s&\\\${datarootdir}&$datarootdir&g' ;;
7582 esac
7583 _ACEOF
7584
7585 # Neutralize VPATH when `$srcdir' = `.'.
7586 # Shell code in configure.ac might set extrasub.
7587 # FIXME: do we really want to maintain this feature?
7588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7589 ac_sed_extra="$ac_vpsub
7590 $extrasub
7591 _ACEOF
7592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7593 :t
7594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7595 s|@configure_input@|$ac_sed_conf_input|;t t
7596 s&@top_builddir@&$ac_top_builddir_sub&;t t
7597 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7598 s&@srcdir@&$ac_srcdir&;t t
7599 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7600 s&@top_srcdir@&$ac_top_srcdir&;t t
7601 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7602 s&@builddir@&$ac_builddir&;t t
7603 s&@abs_builddir@&$ac_abs_builddir&;t t
7604 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7605 s&@INSTALL@&$ac_INSTALL&;t t
7606 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7607 $ac_datarootdir_hack
7608 "
7609 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7610 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7611
7612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7615 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7617 which seems to be undefined. Please make sure it is defined" >&5
7618 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7619 which seems to be undefined. Please make sure it is defined" >&2;}
7620
7621 rm -f "$ac_tmp/stdin"
7622 case $ac_file in
7623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7625 esac \
7626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7627 ;;
7628
7629
7630 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7631 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7632 ;;
7633 esac
7634
7635
7636 case $ac_file$ac_mode in
7637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7638 # Older Autoconf quotes --file arguments for eval, but not when files
7639 # are listed without --file. Let's play safe and only enable the eval
7640 # if we detect the quoting.
7641 # TODO: see whether this extra hack can be removed once we start
7642 # requiring Autoconf 2.70 or later.
7643 case $CONFIG_FILES in #(
7644 *\'*) :
7645 eval set x "$CONFIG_FILES" ;; #(
7646 *) :
7647 set x $CONFIG_FILES ;; #(
7648 *) :
7649 ;;
7650 esac
7651 shift
7652 # Used to flag and report bootstrapping failures.
7653 am_rc=0
7654 for am_mf
7655 do
7656 # Strip MF so we end up with the name of the file.
7657 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7658 # Check whether this is an Automake generated Makefile which includes
7659 # dependency-tracking related rules and includes.
7660 # Grep'ing the whole file directly is not great: AIX grep has a line
7661 # limit of 2048, but all sed's we know have understand at least 4000.
7662 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7663 || continue
7664 am_dirpart=`$as_dirname -- "$am_mf" ||
7665 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7666 X"$am_mf" : 'X\(//\)[^/]' \| \
7667 X"$am_mf" : 'X\(//\)$' \| \
7668 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7669 printf "%s\n" X"$am_mf" |
7670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7671 s//\1/
7672 q
7673 }
7674 /^X\(\/\/\)[^/].*/{
7675 s//\1/
7676 q
7677 }
7678 /^X\(\/\/\)$/{
7679 s//\1/
7680 q
7681 }
7682 /^X\(\/\).*/{
7683 s//\1/
7684 q
7685 }
7686 s/.*/./; q'`
7687 am_filepart=`$as_basename -- "$am_mf" ||
7688 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7689 X"$am_mf" : 'X\(//\)$' \| \
7690 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7691 printf "%s\n" X/"$am_mf" |
7692 sed '/^.*\/\([^/][^/]*\)\/*$/{
7693 s//\1/
7694 q
7695 }
7696 /^X\/\(\/\/\)$/{
7697 s//\1/
7698 q
7699 }
7700 /^X\/\(\/\).*/{
7701 s//\1/
7702 q
7703 }
7704 s/.*/./; q'`
7705 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7706 && sed -e '/# am--include-marker/d' "$am_filepart" \
7707 | $MAKE -f - am--depfiles" >&5
7708 (cd "$am_dirpart" \
7709 && sed -e '/# am--include-marker/d' "$am_filepart" \
7710 | $MAKE -f - am--depfiles) >&5 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } || am_rc=$?
7714 done
7715 if test $am_rc -ne 0; then
7716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7717 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7718 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7719 for automatic dependency tracking. If GNU make was not used, consider
7720 re-running the configure script with MAKE=\"gmake\" (or whatever is
7721 necessary). You can also try re-running configure with the
7722 '--disable-dependency-tracking' option to at least be able to build
7723 the package (albeit without support for automatic dependency tracking).
7724 See \`config.log' for more details" "$LINENO" 5; }
7725 fi
7726 { am_dirpart=; unset am_dirpart;}
7727 { am_filepart=; unset am_filepart;}
7728 { am_mf=; unset am_mf;}
7729 { am_rc=; unset am_rc;}
7730 rm -f conftest-deps.mk
7731 }
7732 ;;
7733
7734 esac
7735 done # for ac_tag
7736
7737
7738 as_fn_exit 0
7739 _ACEOF
7740 ac_clean_files=$ac_clean_files_save
7741
7742 test $ac_write_fail = 0 ||
7743 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7744
7745
7746 # configure is writing to config.log, and then calls config.status.
7747 # config.status does its own redirection, appending to config.log.
7748 # Unfortunately, on DOS this fails, as config.log is still kept open
7749 # by configure, so config.status won't be able to write to it; its
7750 # output is simply discarded. So we exec the FD to /dev/null,
7751 # effectively closing config.log, so it can be properly (re)opened and
7752 # appended to by config.status. When coming back to configure, we
7753 # need to make the FD available again.
7754 if test "$no_create" != yes; then
7755 ac_cs_success=:
7756 ac_config_status_args=
7757 test "$silent" = yes &&
7758 ac_config_status_args="$ac_config_status_args --quiet"
7759 exec 5>/dev/null
7760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7761 exec 5>>config.log
7762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7763 # would make configure fail if this is the last instruction.
7764 $ac_cs_success || as_fn_exit 1
7765 fi
7766 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7768 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7769 fi
7770
7771