Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for BRLTTY 6.9.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and [email protected]
274 $0: about your system, including any error possibly output
275 $0: before this message. Then install a modern shell, or
276 $0: manually run the script under such a shell if you do
277 $0: have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='BRLTTY'
606 PACKAGE_TARNAME='brltty'
607 PACKAGE_VERSION='6.9.1'
608 PACKAGE_STRING='BRLTTY 6.9.1'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL='https://brltty.app/'
611
612 ac_unique_file="Programs/brltty.c"
613 ac_default_prefix=
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='LTLIBOBJS
647 LIBOBJS
648 install_drivers
649 BRLAPI_SOCKETPATH
650 BRLAPI_ETCDIR
651 WRITABLE_DIRECTORY
652 UPDATABLE_DIRECTORY
653 CONFIGURATION_DIRECTORY
654 HELPERS_DIRECTORY
655 DRIVERS_DIRECTORY
656 TABLES_DIRECTORY
657 LOCALE_DIRECTORY
658 INSTALL_OPTION_STRIP
659 brltty_enabled_stripping
660 brltty_enabled_relocatable_install
661 screen_help
662 screen_drivers
663 screen_driver_objects
664 screen_parameters
665 screen_driver_libraries
666 default_screen_driver
667 brltty_internal_names_screen
668 brltty_internal_codes_screen
669 brltty_external_names_screen
670 brltty_external_codes_screen
671 brltty_item_names_screen
672 brltty_item_codes_screen
673 atspi2_libs
674 atspi2_includes
675 atspi2_package
676 glib2_libs
677 glib2_includes
678 glib2_package
679 screen_libraries_a2
680 cspi_libs
681 cspi_includes
682 cspi_package
683 screen_libraries_as
684 install_brltty_pty
685 all_brltty_pty
686 screen_libraries_em
687 screen_libraries_sc
688 screen_libraries_tx
689 screen_libraries_fv
690 screen_libraries_gb
691 screen_libraries_pb
692 screen_libraries_wn
693 screen_libraries_hd
694 screen_libraries_lx
695 screen_libraries_an
696 speech_help
697 speech_drivers
698 speech_driver_objects
699 speech_parameters
700 speech_driver_libraries
701 default_speech_driver
702 brltty_internal_names_speech
703 brltty_internal_codes_speech
704 brltty_external_names_speech
705 brltty_external_codes_speech
706 brltty_item_names_speech
707 brltty_item_codes_speech
708 speech_support_object
709 speech_libraries_an
710 speech_libraries_xs
711 speech_libraries_vv
712 speech_libraries_th
713 theta_root
714 speech_libraries_sw
715 swift_root
716 speech_libraries_sd
717 speechd_root
718 speechd_libs
719 speechd_includes
720 speechd_package
721 speech_libraries_mp
722 mikropuhe_root
723 speech_libraries_gs
724 speech_libraries_fv
725 speech_libraries_fl
726 flite_voice
727 flite_lexicon
728 flite_language
729 flite_root
730 speech_libraries_es
731 espeak_root
732 speech_libraries_en
733 espeak_ng_root
734 speech_libraries_cb
735 speech_libraries_bl
736 speech_libraries_al
737 brltty_enabled_speech_support
738 attributes_table
739 install_attributes_tables
740 contraction_table
741 install_contraction_tables
742 text_table
743 install_text_tables
744 braille_device
745 serial_first_device
746 braille_help
747 braille_drivers
748 braille_driver_objects
749 braille_parameters
750 braille_driver_libraries
751 default_braille_driver
752 brltty_internal_names_braille
753 brltty_internal_codes_braille
754 brltty_external_names_braille
755 brltty_external_codes_braille
756 brltty_item_names_braille
757 brltty_item_codes_braille
758 braille_libraries_bg
759 braille_libraries_xw
760 braille_libraries_vs
761 braille_libraries_vo
762 braille_libraries_vd
763 braille_libraries_tt
764 braille_libraries_ts
765 braille_libraries_tn
766 braille_libraries_sk
767 braille_libraries_pm
768 braille_libraries_pg
769 braille_libraries_np
770 braille_libraries_mt
771 braille_libraries_mn
772 braille_libraries_mm
773 braille_libraries_md
774 braille_libraries_mb
775 braille_libraries_lt
776 braille_libraries_lb
777 libbraille_root
778 braille_libraries_ic
779 braille_libraries_ir
780 braille_libraries_hw
781 braille_libraries_ht
782 braille_libraries_hm
783 braille_libraries_hd
784 braille_libraries_fs
785 braille_libraries_fa
786 braille_libraries_eu
787 braille_libraries_ec
788 braille_libraries_dp
789 braille_libraries_cn
790 braille_libraries_ce
791 braille_libraries_cb
792 braille_libraries_bn
793 braille_libraries_bm
794 braille_libraries_bl
795 braille_libraries_bd
796 braille_libraries_bc
797 braille_libraries_ba
798 braille_libraries_at
799 braille_libraries_al
800 ports_libs
801 ports_includes
802 ports_package
803 hid_libs
804 hid_includes
805 hid_package
806 libudev_libs
807 libudev_includes
808 libudev_package
809 bluetooth_libs
810 bluetooth_includes
811 bluetooth_package
812 dbus_libs
813 dbus_includes
814 dbus_package
815 usb_libs
816 usb_includes
817 usb_package
818 serial_libs
819 serial_includes
820 serial_package
821 fm_libs
822 fm_includes
823 fm_package
824 midi_libs
825 midi_includes
826 midi_package
827 pcm_libs
828 pcm_includes
829 pcm_package
830 beep_libs
831 beep_includes
832 beep_package
833 leds_libs
834 leds_includes
835 leds_package
836 bell_libs
837 bell_includes
838 bell_package
839 kbd_libs
840 kbd_includes
841 kbd_package
842 mntfs_libs
843 mntfs_includes
844 mntfs_package
845 mntpt_libs
846 mntpt_includes
847 mntpt_package
848 hostcmd_libs
849 hostcmd_includes
850 hostcmd_package
851 charset_libs
852 charset_includes
853 charset_package
854 rgx_libs
855 rgx_includes
856 rgx_package
857 dynld_libs
858 dynld_includes
859 dynld_package
860 params_libs
861 params_includes
862 params_package
863 systemd_libs
864 systemd_includes
865 systemd_package
866 SYSTEMD_SERVICE_ARGUMENTS
867 SYSTEMD_SERVICE_TYPE
868 service_libs
869 service_includes
870 service_package
871 pgmprivs_libs
872 pgmprivs_includes
873 pgmprivs_package
874 pgmpath_libs
875 pgmpath_includes
876 pgmpath_package
877 brltty_enabled_gpm
878 contracted_braille_objects
879 louis_libs
880 louis_includes
881 louis_package
882 louis_tables_directory
883 brltty_enabled_liblouis
884 expat_libs
885 expat_includes
886 expat_package
887 brltty_enabled_expat
888 system_libs
889 system_includes
890 system_package
891 SYSTEMD_CONF_DIR
892 SYSTEMD_UNIT_DIR
893 SYSTEMD_TMPFILES_DIR
894 SYSTEMD_SYSUSERS_DIR
895 POLKIT_RULE_DIR
896 POLKIT_POLICY_DIR
897 libsearch_variable
898 module_extension
899 module_name
900 library_extension
901 library_prefix
902 archive_extension
903 archive_prefix
904 xsel_object
905 install_xbrlapi
906 all_xbrlapi
907 xtk_libs
908 xkb_libs
909 x11_libs
910 x11_includes
911 x11_package
912 xt_libs
913 xt_includes
914 xt_package
915 gui_toolkit_package
916 xext_libs
917 xext_includes
918 xext_package
919 xfixes_libs
920 xfixes_includes
921 xfixes_package
922 xtst_libs
923 xtst_includes
924 xtst_package
925 brltty_enabled_x
926 curses_libs
927 curses_package
928 CPP
929 fuzzer_libs
930 brltty_enabled_api_fuzzing
931 api_socket_path
932 api_authkeyfile
933 uninstall_api_libraries
934 install_api_libraries
935 api_dynamic_library
936 api_ref
937 install_api
938 build_api
939 all_api
940 install_api_bindings
941 all_api_bindings
942 api_bindings
943 api_libraries
944 api_server_objects
945 TCL_DIR
946 TCL_LIBS
947 TCL_CPPFLAGS
948 TCL_OK
949 TCLSH
950 brltty_enabled_tcl_bindings
951 PYTHON_OK
952 CYTHON_CFLAGS
953 CYTHON
954 PYTHON_SITE_PKG
955 PYTHON_EXTRA_LDFLAGS
956 PYTHON_EXTRA_LIBS
957 PYTHON_LIBS
958 PYTHON_CPPFLAGS
959 PYTHON_VERSION
960 PYTHON
961 brltty_enabled_python_bindings
962 OCAML_OK
963 OCAML_UNINSTALL_TARGET
964 OCAML_INSTALL_TARGET
965 OCAML_NCLIB
966 OCAML_CLIBS
967 OCAMLWIN32
968 OCAMLLIB
969 OCAMLVERSION
970 OCAMLBEST
971 OCAMLFIND
972 OCAMLOPTDOTOPT
973 OCAMLCDOTOPT
974 OCAMLOPT
975 OCAMLMKLIB
976 OCAMLC
977 brltty_enabled_ocaml_bindings
978 LUA_LIBRARY_DIRECTORY
979 LUA_OK
980 lua_libs
981 lua_includes
982 lua_package
983 LUA
984 brltty_enabled_lua_bindings
985 LISP_OK
986 brltty_enabled_lisp_bindings
987 JAVA_JNI_FLAGS
988 JAVA_JNI_INC
989 JAVA_JNI_HDR
990 JAVA_JNI_DIR
991 JAVA_JNI
992 JAVA_JAR_DIR
993 JAVA_JAR
994 java_archive_command
995 java_document_command
996 java_compiler_path
997 JAR
998 JAVADOC
999 JAVAC
1000 JAVA_OK
1001 brltty_enabled_java_bindings
1002 EMACS_SUBDIRECTORY
1003 EMACS_OK
1004 EMACS
1005 brltty_enabled_emacs_bindings
1006 api_parameters
1007 brltty_enabled_api
1008 polkit_libs
1009 polkit_includes
1010 polkit_package
1011 brltty_enabled_polkit
1012 brltty_enabled_iconv
1013 icu_libs
1014 icu_includes
1015 icu_package
1016 brltty_enabled_icu
1017 install_messages
1018 brltty_enabled_i18n
1019 CONFLIBDIR
1020 MKLIB
1021 MKSHR
1022 can_make_BrlAPIref
1023 can_make_manual
1024 INSTALL_DATA
1025 INSTALL_SCRIPT
1026 INSTALL_PROGRAM
1027 brltty_enabled_standalone_programs
1028 DOXYGEN
1029 LINUXDOC
1030 MSGFMT
1031 MSGMERGE
1032 PKG_CONFIG_LIBDIR
1033 PKG_CONFIG_PATH
1034 PKG_CONFIG
1035 LN_S
1036 AWK
1037 RANLIB
1038 STRIP
1039 LD
1040 LIBCXXFLAGS
1041 LIBCFLAGS
1042 ac_ct_CXX
1043 CXXFLAGS
1044 CXX
1045 OBJEXT
1046 EXEEXT
1047 ac_ct_CC
1048 CPPFLAGS
1049 LDFLAGS
1050 CFLAGS
1051 CC
1052 SET_MAKE
1053 stderr_path
1054 privilege_parameters
1055 init_path
1056 include_directory
1057 manpage_directory
1058 LANGUAGE_PROFILE_EXTENSION
1059 PROFILES_SUBDIRECTORY
1060 KEY_HELP_EXTENSION
1061 KEY_SUBTABLE_EXTENSION
1062 KEY_TABLE_EXTENSION
1063 ATTRIBUTES_SUBTABLE_EXTENSION
1064 ATTRIBUTES_TABLE_EXTENSION
1065 CONTRACTION_SUBTABLE_EXTENSION
1066 CONTRACTION_TABLE_EXTENSION
1067 TEXT_SUBTABLE_EXTENSION
1068 TEXT_TABLE_EXTENSION
1069 INPUT_TABLES_SUBDIRECTORY
1070 KEYBOARD_TABLES_SUBDIRECTORY
1071 ATTRIBUTES_TABLES_SUBDIRECTORY
1072 CONTRACTION_TABLES_SUBDIRECTORY
1073 TEXT_TABLES_SUBDIRECTORY
1074 tables_directory
1075 writable_directory
1076 updatable_directory
1077 drivers_directory
1078 helpers_directory
1079 program_directory
1080 PREFERENCES_FILE
1081 CONFIGURATION_FILE
1082 install_root
1083 execute_root
1084 target_os
1085 target_vendor
1086 target_cpu
1087 target
1088 host_os
1089 host_vendor
1090 host_cpu
1091 host
1092 build_os
1093 build_vendor
1094 build_cpu
1095 build
1096 brltty_manual_directories
1097 api_release
1098 api_version
1099 api_name
1100 api_revision
1101 api_minor
1102 api_major
1103 PACKAGE_COPYRIGHT
1104 target_alias
1105 host_alias
1106 build_alias
1107 LIBS
1108 ECHO_T
1109 ECHO_N
1110 ECHO_C
1111 DEFS
1112 mandir
1113 localedir
1114 libdir
1115 psdir
1116 pdfdir
1117 dvidir
1118 htmldir
1119 infodir
1120 docdir
1121 oldincludedir
1122 includedir
1123 runstatedir
1124 localstatedir
1125 sharedstatedir
1126 sysconfdir
1127 datadir
1128 datarootdir
1129 libexecdir
1130 sbindir
1131 bindir
1132 program_transform_name
1133 prefix
1134 exec_prefix
1135 PACKAGE_URL
1136 PACKAGE_BUGREPORT
1137 PACKAGE_STRING
1138 PACKAGE_VERSION
1139 PACKAGE_TARNAME
1140 PACKAGE_NAME
1141 PATH_SEPARATOR
1142 SHELL'
1143 ac_subst_files=''
1144 ac_user_opts='
1145 enable_option_checking
1146 with_execute_root
1147 with_install_root
1148 with_configuration_file
1149 with_program_directory
1150 with_helpers_directory
1151 with_drivers_directory
1152 with_updatable_directory
1153 with_writable_directory
1154 with_tables_directory
1155 with_manpage_directory
1156 with_include_directory
1157 with_init_path
1158 with_privilege_parameters
1159 with_stderr_path
1160 enable_standalone_programs
1161 enable_i18n
1162 enable_icu
1163 enable_iconv
1164 enable_polkit
1165 enable_api
1166 with_api_parameters
1167 with_api_socket_path
1168 enable_emacs_bindings
1169 enable_java_bindings
1170 enable_lisp_bindings
1171 enable_lua_bindings
1172 enable_ocaml_bindings
1173 enable_python_bindings
1174 enable_tcl_bindings
1175 enable_api_fuzzing
1176 with_curses
1177 enable_x
1178 with_gui_toolkit
1179 with_system_package
1180 enable_expat
1181 enable_liblouis
1182 enable_gpm
1183 with_pgmpath_package
1184 with_pgmprivs_package
1185 with_service_package
1186 with_params_package
1187 with_dynld_package
1188 with_rgx_package
1189 with_charset_package
1190 with_hostcmd_package
1191 with_mntpt_package
1192 with_mntfs_package
1193 with_kbd_package
1194 with_bell_package
1195 with_leds_package
1196 with_beep_package
1197 with_pcm_package
1198 with_midi_package
1199 with_fm_package
1200 with_serial_package
1201 with_usb_package
1202 with_bluetooth_package
1203 with_hid_package
1204 with_ports_package
1205 with_libbraille
1206 with_braille_driver
1207 with_braille_parameters
1208 with_braille_device
1209 with_text_table
1210 with_contraction_table
1211 with_attributes_table
1212 enable_speech_support
1213 with_espeak_ng
1214 with_espeak
1215 with_flite
1216 with_flite_language
1217 with_flite_lexicon
1218 with_flite_voice
1219 with_mikropuhe
1220 with_speechd
1221 with_swift
1222 with_theta
1223 with_speech_driver
1224 with_speech_parameters
1225 with_screen_driver
1226 with_screen_parameters
1227 enable_relocatable_install
1228 enable_stripping
1229 '
1230 ac_precious_vars='build_alias
1231 host_alias
1232 target_alias
1233 CC
1234 CFLAGS
1235 LDFLAGS
1236 LIBS
1237 CPPFLAGS
1238 CXX
1239 CXXFLAGS
1240 CCC
1241 PKG_CONFIG
1242 PKG_CONFIG_PATH
1243 PKG_CONFIG_LIBDIR
1244 CPP'
1245
1246
1247 # Initialize some variables set by options.
1248 ac_init_help=
1249 ac_init_version=false
1250 ac_unrecognized_opts=
1251 ac_unrecognized_sep=
1252 # The variables have the same names as the options, with
1253 # dashes changed to underlines.
1254 cache_file=/dev/null
1255 exec_prefix=NONE
1256 no_create=
1257 no_recursion=
1258 prefix=NONE
1259 program_prefix=NONE
1260 program_suffix=NONE
1261 program_transform_name=s,x,x,
1262 silent=
1263 site=
1264 srcdir=
1265 verbose=
1266 x_includes=NONE
1267 x_libraries=NONE
1268
1269 # Installation directory options.
1270 # These are left unexpanded so users can "make install exec_prefix=/foo"
1271 # and all the variables that are supposed to be based on exec_prefix
1272 # by default will actually change.
1273 # Use braces instead of parens because sh, perl, etc. also accept them.
1274 # (The list follows the same order as the GNU Coding Standards.)
1275 bindir='${exec_prefix}/bin'
1276 sbindir='${exec_prefix}/sbin'
1277 libexecdir='${exec_prefix}/libexec'
1278 datarootdir='${prefix}/share'
1279 datadir='${datarootdir}'
1280 sysconfdir='${prefix}/etc'
1281 sharedstatedir='${prefix}/com'
1282 localstatedir='${prefix}/var'
1283 runstatedir='${localstatedir}/run'
1284 includedir='${prefix}/include'
1285 oldincludedir='/usr/include'
1286 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1287 infodir='${datarootdir}/info'
1288 htmldir='${docdir}'
1289 dvidir='${docdir}'
1290 pdfdir='${docdir}'
1291 psdir='${docdir}'
1292 libdir='${exec_prefix}/lib'
1293 localedir='${datarootdir}/locale'
1294 mandir='${datarootdir}/man'
1295
1296 ac_prev=
1297 ac_dashdash=
1298 for ac_option
1299 do
1300 # If the previous option needs an argument, assign it.
1301 if test -n "$ac_prev"; then
1302 eval $ac_prev=\$ac_option
1303 ac_prev=
1304 continue
1305 fi
1306
1307 case $ac_option in
1308 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1309 *=) ac_optarg= ;;
1310 *) ac_optarg=yes ;;
1311 esac
1312
1313 case $ac_dashdash$ac_option in
1314 --)
1315 ac_dashdash=yes ;;
1316
1317 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1318 ac_prev=bindir ;;
1319 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1320 bindir=$ac_optarg ;;
1321
1322 -build | --build | --buil | --bui | --bu)
1323 ac_prev=build_alias ;;
1324 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1325 build_alias=$ac_optarg ;;
1326
1327 -cache-file | --cache-file | --cache-fil | --cache-fi \
1328 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1329 ac_prev=cache_file ;;
1330 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1331 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1332 cache_file=$ac_optarg ;;
1333
1334 --config-cache | -C)
1335 cache_file=config.cache ;;
1336
1337 -datadir | --datadir | --datadi | --datad)
1338 ac_prev=datadir ;;
1339 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1340 datadir=$ac_optarg ;;
1341
1342 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1343 | --dataroo | --dataro | --datar)
1344 ac_prev=datarootdir ;;
1345 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1346 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1347 datarootdir=$ac_optarg ;;
1348
1349 -disable-* | --disable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid feature name: '$ac_useropt'"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval enable_$ac_useropt=no ;;
1364
1365 -docdir | --docdir | --docdi | --doc | --do)
1366 ac_prev=docdir ;;
1367 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1368 docdir=$ac_optarg ;;
1369
1370 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1371 ac_prev=dvidir ;;
1372 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1373 dvidir=$ac_optarg ;;
1374
1375 -enable-* | --enable-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error $? "invalid feature name: '$ac_useropt'"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1383 *"
1384 "enable_$ac_useropt"
1385 "*) ;;
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1388 esac
1389 eval enable_$ac_useropt=\$ac_optarg ;;
1390
1391 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1392 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1393 | --exec | --exe | --ex)
1394 ac_prev=exec_prefix ;;
1395 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1396 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1397 | --exec=* | --exe=* | --ex=*)
1398 exec_prefix=$ac_optarg ;;
1399
1400 -gas | --gas | --ga | --g)
1401 # Obsolete; use --with-gas.
1402 with_gas=yes ;;
1403
1404 -help | --help | --hel | --he | -h)
1405 ac_init_help=long ;;
1406 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1407 ac_init_help=recursive ;;
1408 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1409 ac_init_help=short ;;
1410
1411 -host | --host | --hos | --ho)
1412 ac_prev=host_alias ;;
1413 -host=* | --host=* | --hos=* | --ho=*)
1414 host_alias=$ac_optarg ;;
1415
1416 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1417 ac_prev=htmldir ;;
1418 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1419 | --ht=*)
1420 htmldir=$ac_optarg ;;
1421
1422 -includedir | --includedir | --includedi | --included | --include \
1423 | --includ | --inclu | --incl | --inc)
1424 ac_prev=includedir ;;
1425 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1426 | --includ=* | --inclu=* | --incl=* | --inc=*)
1427 includedir=$ac_optarg ;;
1428
1429 -infodir | --infodir | --infodi | --infod | --info | --inf)
1430 ac_prev=infodir ;;
1431 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1432 infodir=$ac_optarg ;;
1433
1434 -libdir | --libdir | --libdi | --libd)
1435 ac_prev=libdir ;;
1436 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1437 libdir=$ac_optarg ;;
1438
1439 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1440 | --libexe | --libex | --libe)
1441 ac_prev=libexecdir ;;
1442 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1443 | --libexe=* | --libex=* | --libe=*)
1444 libexecdir=$ac_optarg ;;
1445
1446 -localedir | --localedir | --localedi | --localed | --locale)
1447 ac_prev=localedir ;;
1448 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1449 localedir=$ac_optarg ;;
1450
1451 -localstatedir | --localstatedir | --localstatedi | --localstated \
1452 | --localstate | --localstat | --localsta | --localst | --locals)
1453 ac_prev=localstatedir ;;
1454 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1455 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1456 localstatedir=$ac_optarg ;;
1457
1458 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1459 ac_prev=mandir ;;
1460 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1461 mandir=$ac_optarg ;;
1462
1463 -nfp | --nfp | --nf)
1464 # Obsolete; use --without-fp.
1465 with_fp=no ;;
1466
1467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1468 | --no-cr | --no-c | -n)
1469 no_create=yes ;;
1470
1471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1473 no_recursion=yes ;;
1474
1475 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1476 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1477 | --oldin | --oldi | --old | --ol | --o)
1478 ac_prev=oldincludedir ;;
1479 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1480 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1481 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1482 oldincludedir=$ac_optarg ;;
1483
1484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1485 ac_prev=prefix ;;
1486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1487 prefix=$ac_optarg ;;
1488
1489 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1490 | --program-pre | --program-pr | --program-p)
1491 ac_prev=program_prefix ;;
1492 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1493 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1494 program_prefix=$ac_optarg ;;
1495
1496 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1497 | --program-suf | --program-su | --program-s)
1498 ac_prev=program_suffix ;;
1499 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1500 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1501 program_suffix=$ac_optarg ;;
1502
1503 -program-transform-name | --program-transform-name \
1504 | --program-transform-nam | --program-transform-na \
1505 | --program-transform-n | --program-transform- \
1506 | --program-transform | --program-transfor \
1507 | --program-transfo | --program-transf \
1508 | --program-trans | --program-tran \
1509 | --progr-tra | --program-tr | --program-t)
1510 ac_prev=program_transform_name ;;
1511 -program-transform-name=* | --program-transform-name=* \
1512 | --program-transform-nam=* | --program-transform-na=* \
1513 | --program-transform-n=* | --program-transform-=* \
1514 | --program-transform=* | --program-transfor=* \
1515 | --program-transfo=* | --program-transf=* \
1516 | --program-trans=* | --program-tran=* \
1517 | --progr-tra=* | --program-tr=* | --program-t=*)
1518 program_transform_name=$ac_optarg ;;
1519
1520 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1521 ac_prev=pdfdir ;;
1522 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1523 pdfdir=$ac_optarg ;;
1524
1525 -psdir | --psdir | --psdi | --psd | --ps)
1526 ac_prev=psdir ;;
1527 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1528 psdir=$ac_optarg ;;
1529
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 silent=yes ;;
1533
1534 -runstatedir | --runstatedir | --runstatedi | --runstated \
1535 | --runstate | --runstat | --runsta | --runst | --runs \
1536 | --run | --ru | --r)
1537 ac_prev=runstatedir ;;
1538 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1539 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1540 | --run=* | --ru=* | --r=*)
1541 runstatedir=$ac_optarg ;;
1542
1543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1544 ac_prev=sbindir ;;
1545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1546 | --sbi=* | --sb=*)
1547 sbindir=$ac_optarg ;;
1548
1549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1551 | --sharedst | --shareds | --shared | --share | --shar \
1552 | --sha | --sh)
1553 ac_prev=sharedstatedir ;;
1554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1557 | --sha=* | --sh=*)
1558 sharedstatedir=$ac_optarg ;;
1559
1560 -site | --site | --sit)
1561 ac_prev=site ;;
1562 -site=* | --site=* | --sit=*)
1563 site=$ac_optarg ;;
1564
1565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1566 ac_prev=srcdir ;;
1567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1568 srcdir=$ac_optarg ;;
1569
1570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1571 | --syscon | --sysco | --sysc | --sys | --sy)
1572 ac_prev=sysconfdir ;;
1573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1575 sysconfdir=$ac_optarg ;;
1576
1577 -target | --target | --targe | --targ | --tar | --ta | --t)
1578 ac_prev=target_alias ;;
1579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1580 target_alias=$ac_optarg ;;
1581
1582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1583 verbose=yes ;;
1584
1585 -version | --version | --versio | --versi | --vers | -V)
1586 ac_init_version=: ;;
1587
1588 -with-* | --with-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error $? "invalid package name: '$ac_useropt'"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1596 *"
1597 "with_$ac_useropt"
1598 "*) ;;
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1601 esac
1602 eval with_$ac_useropt=\$ac_optarg ;;
1603
1604 -without-* | --without-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error $? "invalid package name: '$ac_useropt'"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1612 *"
1613 "with_$ac_useropt"
1614 "*) ;;
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1617 esac
1618 eval with_$ac_useropt=no ;;
1619
1620 --x)
1621 # Obsolete; use --with-x.
1622 with_x=yes ;;
1623
1624 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1625 | --x-incl | --x-inc | --x-in | --x-i)
1626 ac_prev=x_includes ;;
1627 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1628 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1629 x_includes=$ac_optarg ;;
1630
1631 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1632 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1633 ac_prev=x_libraries ;;
1634 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1635 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1636 x_libraries=$ac_optarg ;;
1637
1638 -*) as_fn_error $? "unrecognized option: '$ac_option'
1639 Try '$0 --help' for more information"
1640 ;;
1641
1642 *=*)
1643 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' | [0-9]* | *[!_$as_cr_alnum]* )
1647 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1648 esac
1649 eval $ac_envvar=\$ac_optarg
1650 export $ac_envvar ;;
1651
1652 *)
1653 # FIXME: should be removed in autoconf 3.0.
1654 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1656 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1658 ;;
1659
1660 esac
1661 done
1662
1663 if test -n "$ac_prev"; then
1664 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error $? "missing argument to $ac_option"
1666 fi
1667
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1670 no) ;;
1671 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1672 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1673 esac
1674 fi
1675
1676 # Check all directory arguments for consistency.
1677 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir runstatedir
1681 do
1682 eval ac_val=\$$ac_var
1683 # Remove trailing slashes.
1684 case $ac_val in
1685 */ )
1686 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\$ac_val;;
1688 esac
1689 # Be sure to have absolute directory names.
1690 case $ac_val in
1691 [\\/$]* | ?:[\\/]* ) continue;;
1692 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1693 esac
1694 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1695 done
1696
1697 # There might be people who depend on the old broken behavior: '$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1700 build=$build_alias
1701 host=$host_alias
1702 target=$target_alias
1703
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x; then
1706 if test "x$build_alias" = x; then
1707 cross_compiling=maybe
1708 elif test "x$build_alias" != "x$host_alias"; then
1709 cross_compiling=yes
1710 fi
1711 fi
1712
1713 ac_tool_prefix=
1714 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1715
1716 test "$silent" = yes && exec 6>/dev/null
1717
1718
1719 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1720 ac_ls_di=`ls -di .` &&
1721 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1722 as_fn_error $? "working directory cannot be determined"
1723 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1724 as_fn_error $? "pwd does not report name of working directory"
1725
1726
1727 # Find the source files, if location was not specified.
1728 if test -z "$srcdir"; then
1729 ac_srcdir_defaulted=yes
1730 # Try the directory containing this script, then the parent directory.
1731 ac_confdir=`$as_dirname -- "$as_myself" ||
1732 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1733 X"$as_myself" : 'X\(//\)[^/]' \| \
1734 X"$as_myself" : 'X\(//\)$' \| \
1735 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1736 printf "%s\n" X"$as_myself" |
1737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1738 s//\1/
1739 q
1740 }
1741 /^X\(\/\/\)[^/].*/{
1742 s//\1/
1743 q
1744 }
1745 /^X\(\/\/\)$/{
1746 s//\1/
1747 q
1748 }
1749 /^X\(\/\).*/{
1750 s//\1/
1751 q
1752 }
1753 s/.*/./; q'`
1754 srcdir=$ac_confdir
1755 if test ! -r "$srcdir/$ac_unique_file"; then
1756 srcdir=..
1757 fi
1758 else
1759 ac_srcdir_defaulted=no
1760 fi
1761 if test ! -r "$srcdir/$ac_unique_file"; then
1762 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1763 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1764 fi
1765 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1766 ac_abs_confdir=`(
1767 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1768 pwd)`
1769 # When building in place, set srcdir=.
1770 if test "$ac_abs_confdir" = "$ac_pwd"; then
1771 srcdir=.
1772 fi
1773 # Remove unnecessary trailing slashes from srcdir.
1774 # Double slashes in file names in object file debugging info
1775 # mess up M-x gdb in Emacs.
1776 case $srcdir in
1777 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1778 esac
1779 for ac_var in $ac_precious_vars; do
1780 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1781 eval ac_env_${ac_var}_value=\$${ac_var}
1782 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1783 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1784 done
1785
1786 #
1787 # Report the --help message.
1788 #
1789 if test "$ac_init_help" = "long"; then
1790 # Omit some internal or obsolete options to make the list less imposing.
1791 # This message is too long to be a string in the A/UX 3.1 sh.
1792 cat <<_ACEOF
1793 'configure' configures BRLTTY 6.9.1 to adapt to many kinds of systems.
1794
1795 Usage: $0 [OPTION]... [VAR=VALUE]...
1796
1797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1798 VAR=VALUE. See below for descriptions of some of the useful variables.
1799
1800 Defaults for the options are specified in brackets.
1801
1802 Configuration:
1803 -h, --help display this help and exit
1804 --help=short display options specific to this package
1805 --help=recursive display the short help of all the included packages
1806 -V, --version display version information and exit
1807 -q, --quiet, --silent do not print 'checking ...' messages
1808 --cache-file=FILE cache test results in FILE [disabled]
1809 -C, --config-cache alias for '--cache-file=config.cache'
1810 -n, --no-create do not create output files
1811 --srcdir=DIR find the sources in DIR [configure dir or '..']
1812
1813 Installation directories:
1814 --prefix=PREFIX install architecture-independent files in PREFIX
1815 [$ac_default_prefix]
1816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1817 [PREFIX]
1818
1819 By default, 'make install' will install all the files in
1820 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1821 an installation prefix other than '$ac_default_prefix' using '--prefix',
1822 for instance '--prefix=\$HOME'.
1823
1824 For better control, use the options below.
1825
1826 Fine tuning of the installation directories:
1827 --bindir=DIR user executables [EPREFIX/bin]
1828 --sbindir=DIR system admin executables [EPREFIX/sbin]
1829 --libexecdir=DIR program executables [EPREFIX/libexec]
1830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1833 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1834 --libdir=DIR object code libraries [EPREFIX/lib]
1835 --includedir=DIR C header files [PREFIX/include]
1836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1837 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1838 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1839 --infodir=DIR info documentation [DATAROOTDIR/info]
1840 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1841 --mandir=DIR man documentation [DATAROOTDIR/man]
1842 --docdir=DIR documentation root [DATAROOTDIR/doc/brltty]
1843 --htmldir=DIR html documentation [DOCDIR]
1844 --dvidir=DIR dvi documentation [DOCDIR]
1845 --pdfdir=DIR pdf documentation [DOCDIR]
1846 --psdir=DIR ps documentation [DOCDIR]
1847 _ACEOF
1848
1849 cat <<\_ACEOF
1850
1851 System types:
1852 --build=BUILD configure for building on BUILD [guessed]
1853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1854 --target=TARGET configure for building compilers for TARGET [HOST]
1855 _ACEOF
1856 fi
1857
1858 if test -n "$ac_init_help"; then
1859 case $ac_init_help in
1860 short | recursive ) echo "Configuration of BRLTTY 6.9.1:";;
1861 esac
1862 cat <<\_ACEOF
1863
1864 Optional Features:
1865 --disable-option-checking ignore unrecognized --enable/--with options
1866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1868 --enable-standalone-programs statically linked executables
1869 --disable-i18n support for internationalization
1870 --disable-icu support for Unicode-based internationalization
1871 --disable-iconv support for character encoding conversion
1872 --disable-polkit support for the Polkit authorization manager
1873 --disable-api the application programming interface
1874 --disable-emacs-bindings Emacs bindings for BrlAPI
1875 --disable-java-bindings Java bindings for BrlAPI
1876 --disable-lisp-bindings Lisp bindings for BrlAPI
1877 --disable-lua-bindings Lua bindings for BrlAPI
1878 --disable-ocaml-bindings OCaml bindings for BrlAPI
1879 --disable-python-bindings Python bindings for BrlAPI
1880 --disable-tcl-bindings Tcl bindings for BrlAPI
1881 --enable-api-fuzzing fuzzing the application programming interface
1882 --disable-x support for X11
1883 --disable-expat support for XML parsing (CLDR)
1884 --disable-liblouis support for LibLouis-based contracted braille
1885 --disable-gpm mouse tracking via GPM
1886 --disable-speech-support support for speech synthesizers and
1887 text-to-speech engines
1888 --enable-relocatable-install installation using paths relative to the
1889 program directory
1890 --disable-stripping stripping of executables and shared objects
1891 during installation
1892
1893 Optional Packages:
1894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1896 --with-execute-root=DIRECTORY where the package is to be anchored at
1897 run-time
1898 --with-install-root=DIRECTORY where to install the package
1899 --with-configuration-file=FILE
1900 name of configuration file
1901 --with-program-directory=DIRECTORY
1902 path to directory containing executables
1903 --with-helpers-directory=DIRECTORY
1904 path to directory containing helper commands
1905 --with-drivers-directory=DIRECTORY
1906 path to directory containing drivers
1907 --with-updatable-directory=DIRECTORY
1908 path to directory which contains files that
1909 can be updated
1910 --with-writable-directory=DIRECTORY
1911 path to directory which can be written to
1912 --with-tables-directory=DIRECTORY
1913 path to directory containing data files
1914 --with-manpage-directory=DIRECTORY
1915 path to directory containing manual pages
1916 --with-include-directory=DIRECTORY
1917 path to directory containing header files
1918 --with-init-path=FILE path to real init program
1919 --with-privilege-parameters=PLATFORM:NAME=VALUE... (comma-separated)
1920 default parameters for the privilege
1921 establishment stage
1922 --with-stderr-path=FILE path to standard error log file
1923 --with-api-parameters=NAME=VALUE... (comma-separated)
1924 default parameters for the application
1925 programming interface
1926 --with-api-socket-path=PATH where local sockets for the API are stored
1927 --with-curses=PACKAGE which curses package to use (ncursesw
1928 pdcursesw ncurses pdcursesu curses pdcurses)
1929 --with-gui-toolkit=PACKAGE which gui toolkit package to use (Xaw Xaw3d
1930 neXtaw XawPlus Xm)
1931 --with-system-package=PACKAGE which base system package to use
1932 --with-pgmpath-package=PACKAGE
1933 which program path package to use
1934 --with-pgmprivs-package=PACKAGE
1935 which program privileges package to use
1936 --with-service-package=PACKAGE
1937 which system service package to use
1938 --with-params-package=PACKAGE which boot parameters package to use
1939 --with-dynld-package=PACKAGE which dynamic loading package to use
1940 --with-rgx-package=PACKAGE which regular expression package to use
1941 --with-charset-package=PACKAGE
1942 which character set package to use
1943 --with-hostcmd-package=PACKAGE
1944 which host command package to use
1945 --with-mntpt-package=PACKAGE which mount point package to use
1946 --with-mntfs-package=PACKAGE which mount file system package to use
1947 --with-kbd-package=PACKAGE which keyboard package to use
1948 --with-bell-package=PACKAGE which console bell package to use
1949 --with-leds-package=PACKAGE which keyboard LEDs package to use
1950 --with-beep-package=PACKAGE which beeper package to use
1951 --with-pcm-package=PACKAGE which PCm package to use
1952 --with-midi-package=PACKAGE which MIDI package to use
1953 --with-fm-package=PACKAGE which FM package to use
1954 --with-serial-package=PACKAGE which serial I/O package to use
1955 --with-usb-package=PACKAGE which USB I/O package to use
1956 --with-bluetooth-package=PACKAGE
1957 which Bluetooth I/O package to use
1958 --with-hid-package=PACKAGE which Human Interface Device I/O package to
1959 use
1960 --with-ports-package=PACKAGE which I/O ports package to use
1961 --with-libbraille=DIRECTORY where the Libbraille package is installed
1962 --with-braille-driver=DRIVER braille driver(s) to build in
1963 - al Alva
1964 - at Albatross
1965 - ba BrlAPI
1966 - bc BrailComm
1967 - bd Braudi
1968 - bl BrailleLite
1969 - bm Baum
1970 - bn BrailleNote
1971 - cb CombiBraille
1972 - ce Cebra
1973 - cn Canute
1974 - dp DotPad
1975 - ec EcoBraille
1976 - eu EuroBraille
1977 - fa FrankAudiodata
1978 - fs FreedomScientific
1979 - hd Hedo
1980 - hm HIMS
1981 - ht HandyTech
1982 - hw HumanWare
1983 - ir Iris
1984 - ic Inceptor
1985 - lb Libbraille
1986 - lt LogText
1987 - mb MultiBraille
1988 - md MDV
1989 - mm BrailleMemo
1990 - mn MiniBraille
1991 - mt Metec
1992 - np NinePoint
1993 - pg Pegasus
1994 - pm Papenmeier
1995 - sk Seika
1996 - tn TechniBraille
1997 - ts TSI
1998 - tt TTY
1999 - vd VideoBraille
2000 - vo Voyager
2001 - vs VisioBraille
2002 - xw XWindow
2003 - bg B2G
2004 --with-braille-parameters=DRIVER:NAME=VALUE... (comma-separated)
2005 default parameters for the braille driver(s)
2006 --with-braille-device=DEVICE default braille device
2007 --with-text-table=NAME built-in text table
2008 --with-contraction-table=NAME built-in contraction table
2009 --with-attributes-table=NAME built-in attributes table
2010 --with-espeak_ng=DIRECTORY where the eSpeak-NG package is installed
2011 --with-espeak=DIRECTORY where the eSpeak package is installed
2012 --with-flite=DIRECTORY where the FestivalLite package is installed
2013 --with-flite-language=LANGUAGE
2014 the FestivalLite language to use
2015 --with-flite-lexicon=LEXICON the FestivalLite lexicon to use
2016 --with-flite-voice=VOICE the FestivalLite voice to use
2017 --with-mikropuhe=DIRECTORY where the Mikropuhe package is installed
2018 --with-speechd=DIRECTORY where the speech-dispatcher package is
2019 installed
2020 --with-swift=DIRECTORY where the Swift package is installed
2021 --with-theta=DIRECTORY where the Theta package is installed
2022 --with-speech-driver=DRIVER speech driver(s) to build in
2023 - al Alva
2024 - bl BrailleLite
2025 - cb CombiBraille
2026 - en eSpeak-NG
2027 - es eSpeak
2028 - fl FestivalLite
2029 - fv Festival
2030 - gs GenericSay
2031 - mp Mikropuhe
2032 - sd SpeechDispatcher
2033 - sw Swift
2034 - th Theta
2035 - vv ViaVoice
2036 - xs ExternalSpeech
2037 - an Android
2038 --with-speech-parameters=DRIVER:NAME=VALUE... (comma-separated)
2039 default parameters for the speech driver(s)
2040 --with-screen-driver=DRIVER screen driver(s) to build in
2041 - an Android
2042 - lx Linux
2043 - hd Hurd
2044 - wn Windows
2045 - pb PcBios
2046 - gb Grub
2047 - fv FileViewer
2048 - tx Tmux
2049 - sc Screen
2050 - em TerminalEmulator
2051 - as AtSpi
2052 - a2 AtSpi2
2053 --with-screen-parameters=DRIVER:NAME=VALUE... (comma-separated)
2054 default parameters for the screen driver(s)
2055
2056 Some influential environment variables:
2057 CC C compiler command
2058 CFLAGS C compiler flags
2059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2060 nonstandard directory <lib dir>
2061 LIBS libraries to pass to the linker, e.g. -l<library>
2062 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2063 you have headers in a nonstandard directory <include dir>
2064 CXX C++ compiler command
2065 CXXFLAGS C++ compiler flags
2066 PKG_CONFIG path to pkg-config utility
2067 PKG_CONFIG_PATH
2068 directories to add to pkg-config's search path
2069 PKG_CONFIG_LIBDIR
2070 path overriding pkg-config's built-in search path
2071 CPP C preprocessor
2072
2073 Use these variables to override the choices made by 'configure' or to help
2074 it to find libraries and programs with nonstandard names/locations.
2075
2076 Report bugs to <[email protected]>.
2077 BRLTTY home page: <https://brltty.app/>.
2078 _ACEOF
2079 ac_status=$?
2080 fi
2081
2082 if test "$ac_init_help" = "recursive"; then
2083 # If there are subdirs, report their specific --help.
2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2085 test -d "$ac_dir" ||
2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2087 continue
2088 ac_builddir=.
2089
2090 case "$ac_dir" in
2091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2092 *)
2093 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2094 # A ".." for each directory in $ac_dir_suffix.
2095 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2096 case $ac_top_builddir_sub in
2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2099 esac ;;
2100 esac
2101 ac_abs_top_builddir=$ac_pwd
2102 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2103 # for backward compatibility:
2104 ac_top_builddir=$ac_top_build_prefix
2105
2106 case $srcdir in
2107 .) # We are building in place.
2108 ac_srcdir=.
2109 ac_top_srcdir=$ac_top_builddir_sub
2110 ac_abs_top_srcdir=$ac_pwd ;;
2111 [\\/]* | ?:[\\/]* ) # Absolute name.
2112 ac_srcdir=$srcdir$ac_dir_suffix;
2113 ac_top_srcdir=$srcdir
2114 ac_abs_top_srcdir=$srcdir ;;
2115 *) # Relative name.
2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2117 ac_top_srcdir=$ac_top_build_prefix$srcdir
2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2119 esac
2120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2121
2122 cd "$ac_dir" || { ac_status=$?; continue; }
2123 # Check for configure.gnu first; this name is used for a wrapper for
2124 # Metaconfig's "Configure" on case-insensitive file systems.
2125 if test -f "$ac_srcdir/configure.gnu"; then
2126 echo &&
2127 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2128 elif test -f "$ac_srcdir/configure"; then
2129 echo &&
2130 $SHELL "$ac_srcdir/configure" --help=recursive
2131 else
2132 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2133 fi || ac_status=$?
2134 cd "$ac_pwd" || { ac_status=$?; break; }
2135 done
2136 fi
2137
2138 test -n "$ac_init_help" && exit $ac_status
2139 if $ac_init_version; then
2140 cat <<\_ACEOF
2141 BRLTTY configure 6.9.1
2142 generated by GNU Autoconf 2.72
2143
2144 Copyright (C) 2023 Free Software Foundation, Inc.
2145 This configure script is free software; the Free Software Foundation
2146 gives unlimited permission to copy, distribute and modify it.
2147 _ACEOF
2148 exit
2149 fi
2150
2151 ## ------------------------ ##
2152 ## Autoconf initialization. ##
2153 ## ------------------------ ##
2154
2155 # ac_fn_c_try_compile LINENO
2156 # --------------------------
2157 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2158 ac_fn_c_try_compile ()
2159 {
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 rm -f conftest.$ac_objext conftest.beam
2162 if { { ac_try="$ac_compile"
2163 case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166 esac
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 printf "%s\n" "$ac_try_echo"; } >&5
2169 (eval "$ac_compile") 2>conftest.err
2170 ac_status=$?
2171 if test -s conftest.err; then
2172 grep -v '^ *+' conftest.err >conftest.er1
2173 cat conftest.er1 >&5
2174 mv -f conftest.er1 conftest.err
2175 fi
2176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177 test $ac_status = 0; } && {
2178 test -z "$ac_c_werror_flag" ||
2179 test ! -s conftest.err
2180 } && test -s conftest.$ac_objext
2181 then :
2182 ac_retval=0
2183 else case e in #(
2184 e) printf "%s\n" "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=1 ;;
2188 esac
2189 fi
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
2192
2193 } # ac_fn_c_try_compile
2194
2195 # ac_fn_cxx_try_compile LINENO
2196 # ----------------------------
2197 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2198 ac_fn_cxx_try_compile ()
2199 {
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 rm -f conftest.$ac_objext conftest.beam
2202 if { { ac_try="$ac_compile"
2203 case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206 esac
2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208 printf "%s\n" "$ac_try_echo"; } >&5
2209 (eval "$ac_compile") 2>conftest.err
2210 ac_status=$?
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2215 fi
2216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && {
2218 test -z "$ac_cxx_werror_flag" ||
2219 test ! -s conftest.err
2220 } && test -s conftest.$ac_objext
2221 then :
2222 ac_retval=0
2223 else case e in #(
2224 e) printf "%s\n" "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 ac_retval=1 ;;
2228 esac
2229 fi
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2232
2233 } # ac_fn_cxx_try_compile
2234
2235 # ac_fn_c_try_link LINENO
2236 # -----------------------
2237 # Try to link conftest.$ac_ext, and return whether this succeeded.
2238 ac_fn_c_try_link ()
2239 {
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2242 if { { ac_try="$ac_link"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 printf "%s\n" "$ac_try_echo"; } >&5
2249 (eval "$ac_link") 2>conftest.err
2250 ac_status=$?
2251 if test -s conftest.err; then
2252 grep -v '^ *+' conftest.err >conftest.er1
2253 cat conftest.er1 >&5
2254 mv -f conftest.er1 conftest.err
2255 fi
2256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && {
2258 test -z "$ac_c_werror_flag" ||
2259 test ! -s conftest.err
2260 } && test -s conftest$ac_exeext && {
2261 test "$cross_compiling" = yes ||
2262 test -x conftest$ac_exeext
2263 }
2264 then :
2265 ac_retval=0
2266 else case e in #(
2267 e) printf "%s\n" "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 ac_retval=1 ;;
2271 esac
2272 fi
2273 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2274 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2275 # interfere with the next link command; also delete a directory that is
2276 # left behind by Apple's compiler. We do this before executing the actions.
2277 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 as_fn_set_status $ac_retval
2280
2281 } # ac_fn_c_try_link
2282
2283 # ac_fn_c_try_run LINENO
2284 # ----------------------
2285 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2286 # executables *can* be run.
2287 ac_fn_c_try_run ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 if { { ac_try="$ac_link"
2291 case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 printf "%s\n" "$ac_try_echo"; } >&5
2297 (eval "$ac_link") 2>&5
2298 ac_status=$?
2299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2301 { { case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 printf "%s\n" "$ac_try_echo"; } >&5
2307 (eval "$ac_try") 2>&5
2308 ac_status=$?
2309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; }; }
2311 then :
2312 ac_retval=0
2313 else case e in #(
2314 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2315 printf "%s\n" "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 ac_retval=$ac_status ;;
2319 esac
2320 fi
2321 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
2324
2325 } # ac_fn_c_try_run
2326
2327 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2328 # -------------------------------------------------------
2329 # Tests whether HEADER exists and can be compiled using the include files in
2330 # INCLUDES, setting the cache variable VAR accordingly.
2331 ac_fn_c_check_header_compile ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 printf %s "checking for $2... " >&6; }
2336 if eval test \${$3+y}
2337 then :
2338 printf %s "(cached) " >&6
2339 else case e in #(
2340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $4
2343 #include <$2>
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"
2346 then :
2347 eval "$3=yes"
2348 else case e in #(
2349 e) eval "$3=no" ;;
2350 esac
2351 fi
2352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2353 esac
2354 fi
2355 eval ac_res=\$$3
2356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 printf "%s\n" "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359
2360 } # ac_fn_c_check_header_compile
2361
2362 # ac_fn_c_check_func LINENO FUNC VAR
2363 # ----------------------------------
2364 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2365 ac_fn_c_check_func ()
2366 {
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 printf %s "checking for $2... " >&6; }
2370 if eval test \${$3+y}
2371 then :
2372 printf %s "(cached) " >&6
2373 else case e in #(
2374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2376 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2378 #define $2 innocuous_$2
2379
2380 /* System header to define __stub macros and hopefully few prototypes,
2381 which can conflict with char $2 (void); below. */
2382
2383 #include <limits.h>
2384 #undef $2
2385
2386 /* Override any GCC internal prototype to avoid an error.
2387 Use char because int might match the return type of a GCC
2388 builtin and then its argument prototype would still apply. */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 char $2 (void);
2393 /* The GNU C library defines this for functions which it implements
2394 to always fail with ENOSYS. Some functions are actually named
2395 something starting with __ and the normal name is an alias. */
2396 #if defined __stub_$2 || defined __stub___$2
2397 choke me
2398 #endif
2399
2400 int
2401 main (void)
2402 {
2403 return $2 ();
2404 ;
2405 return 0;
2406 }
2407 _ACEOF
2408 if ac_fn_c_try_link "$LINENO"
2409 then :
2410 eval "$3=yes"
2411 else case e in #(
2412 e) eval "$3=no" ;;
2413 esac
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2416 conftest$ac_exeext conftest.$ac_ext ;;
2417 esac
2418 fi
2419 eval ac_res=\$$3
2420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 printf "%s\n" "$ac_res" >&6; }
2422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423
2424 } # ac_fn_c_check_func
2425
2426 # ac_fn_c_try_cpp LINENO
2427 # ----------------------
2428 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2429 ac_fn_c_try_cpp ()
2430 {
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_cpp conftest.$ac_ext"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 printf "%s\n" "$ac_try_echo"; } >&5
2439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2440 ac_status=$?
2441 if test -s conftest.err; then
2442 grep -v '^ *+' conftest.err >conftest.er1
2443 cat conftest.er1 >&5
2444 mv -f conftest.er1 conftest.err
2445 fi
2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 test $ac_status = 0; } > conftest.i && {
2448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2449 test ! -s conftest.err
2450 }
2451 then :
2452 ac_retval=0
2453 else case e in #(
2454 e) printf "%s\n" "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 ac_retval=1 ;;
2458 esac
2459 fi
2460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 as_fn_set_status $ac_retval
2462
2463 } # ac_fn_c_try_cpp
2464
2465 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2466 # ------------------------------------------------------------------
2467 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2468 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2469 ac_fn_check_decl ()
2470 {
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 as_decl_name=`echo $2|sed 's/ *(.*//'`
2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2474 printf %s "checking whether $as_decl_name is declared... " >&6; }
2475 if eval test \${$3+y}
2476 then :
2477 printf %s "(cached) " >&6
2478 else case e in #(
2479 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2480 eval ac_save_FLAGS=\$$6
2481 as_fn_append $6 " $5"
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 $4
2485 int
2486 main (void)
2487 {
2488 #ifndef $as_decl_name
2489 #ifdef __cplusplus
2490 (void) $as_decl_use;
2491 #else
2492 (void) $as_decl_name;
2493 #endif
2494 #endif
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"
2501 then :
2502 eval "$3=yes"
2503 else case e in #(
2504 e) eval "$3=no" ;;
2505 esac
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2508 eval $6=\$ac_save_FLAGS
2509 ;;
2510 esac
2511 fi
2512 eval ac_res=\$$3
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 printf "%s\n" "$ac_res" >&6; }
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516
2517 } # ac_fn_check_decl
2518
2519 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2520 # -------------------------------------------
2521 # Tests whether TYPE exists after having included INCLUDES, setting cache
2522 # variable VAR accordingly.
2523 ac_fn_c_check_type ()
2524 {
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 printf %s "checking for $2... " >&6; }
2528 if eval test \${$3+y}
2529 then :
2530 printf %s "(cached) " >&6
2531 else case e in #(
2532 e) eval "$3=no"
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $4
2536 int
2537 main (void)
2538 {
2539 if (sizeof ($2))
2540 return 0;
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"
2546 then :
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549 $4
2550 int
2551 main (void)
2552 {
2553 if (sizeof (($2)))
2554 return 0;
2555 ;
2556 return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"
2560 then :
2561
2562 else case e in #(
2563 e) eval "$3=yes" ;;
2564 esac
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2569 esac
2570 fi
2571 eval ac_res=\$$3
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 printf "%s\n" "$ac_res" >&6; }
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575
2576 } # ac_fn_c_check_type
2577
2578 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2579 # --------------------------------------------
2580 # Tries to find the compile-time value of EXPR in a program that includes
2581 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2582 # computed
2583 ac_fn_c_compute_int ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 if test "$cross_compiling" = yes; then
2587 # Depending upon the size, compute the lo and hi bounds.
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 int
2592 main (void)
2593 {
2594 static int test_array [1 - 2 * !(($2) >= 0)];
2595 test_array [0] = 0;
2596 return test_array [0];
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"
2603 then :
2604 ac_lo=0 ac_mid=0
2605 while :; do
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $4
2609 int
2610 main (void)
2611 {
2612 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2613 test_array [0] = 0;
2614 return test_array [0];
2615
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"
2621 then :
2622 ac_hi=$ac_mid; break
2623 else case e in #(
2624 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2625 if test $ac_lo -le $ac_mid; then
2626 ac_lo= ac_hi=
2627 break
2628 fi
2629 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2630 esac
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2633 done
2634 else case e in #(
2635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 $4
2638 int
2639 main (void)
2640 {
2641 static int test_array [1 - 2 * !(($2) < 0)];
2642 test_array [0] = 0;
2643 return test_array [0];
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"
2650 then :
2651 ac_hi=-1 ac_mid=-1
2652 while :; do
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2655 $4
2656 int
2657 main (void)
2658 {
2659 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2660 test_array [0] = 0;
2661 return test_array [0];
2662
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"
2668 then :
2669 ac_lo=$ac_mid; break
2670 else case e in #(
2671 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2672 if test $ac_mid -le $ac_hi; then
2673 ac_lo= ac_hi=
2674 break
2675 fi
2676 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2677 esac
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2680 done
2681 else case e in #(
2682 e) ac_lo= ac_hi= ;;
2683 esac
2684 fi
2685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2686 esac
2687 fi
2688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2689 # Binary search between lo and hi bounds.
2690 while test "x$ac_lo" != "x$ac_hi"; do
2691 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2694 $4
2695 int
2696 main (void)
2697 {
2698 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2699 test_array [0] = 0;
2700 return test_array [0];
2701
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"
2707 then :
2708 ac_hi=$ac_mid
2709 else case e in #(
2710 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2711 esac
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2714 done
2715 case $ac_lo in #((
2716 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2717 '') ac_retval=1 ;;
2718 esac
2719 else
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2722 $4
2723 static long int longval (void) { return $2; }
2724 static unsigned long int ulongval (void) { return $2; }
2725 #include <stdio.h>
2726 #include <stdlib.h>
2727 int
2728 main (void)
2729 {
2730
2731 FILE *f = fopen ("conftest.val", "w");
2732 if (! f)
2733 return 1;
2734 if (($2) < 0)
2735 {
2736 long int i = longval ();
2737 if (i != ($2))
2738 return 1;
2739 fprintf (f, "%ld", i);
2740 }
2741 else
2742 {
2743 unsigned long int i = ulongval ();
2744 if (i != ($2))
2745 return 1;
2746 fprintf (f, "%lu", i);
2747 }
2748 /* Do not output a trailing newline, as this causes \r\n confusion
2749 on some platforms. */
2750 return ferror (f) || fclose (f) != 0;
2751
2752 ;
2753 return 0;
2754 }
2755 _ACEOF
2756 if ac_fn_c_try_run "$LINENO"
2757 then :
2758 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2759 else case e in #(
2760 e) ac_retval=1 ;;
2761 esac
2762 fi
2763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2764 conftest.$ac_objext conftest.beam conftest.$ac_ext
2765 rm -f conftest.val
2766
2767 fi
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2769 as_fn_set_status $ac_retval
2770
2771 } # ac_fn_c_compute_int
2772 ac_configure_args_raw=
2773 for ac_arg
2774 do
2775 case $ac_arg in
2776 *\'*)
2777 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 esac
2779 as_fn_append ac_configure_args_raw " '$ac_arg'"
2780 done
2781
2782 case $ac_configure_args_raw in
2783 *$as_nl*)
2784 ac_safe_unquote= ;;
2785 *)
2786 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2787 ac_unsafe_a="$ac_unsafe_z#~"
2788 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2789 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2790 esac
2791
2792 cat >config.log <<_ACEOF
2793 This file contains any messages produced by compilers while
2794 running configure, to aid debugging if configure makes a mistake.
2795
2796 It was created by BRLTTY $as_me 6.9.1, which was
2797 generated by GNU Autoconf 2.72. Invocation command line was
2798
2799 $ $0$ac_configure_args_raw
2800
2801 _ACEOF
2802 exec 5>>config.log
2803 {
2804 cat <<_ASUNAME
2805 ## --------- ##
2806 ## Platform. ##
2807 ## --------- ##
2808
2809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2814
2815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2817
2818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2825
2826 _ASUNAME
2827
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 case $as_dir in #(((
2833 '') as_dir=./ ;;
2834 */) ;;
2835 *) as_dir=$as_dir/ ;;
2836 esac
2837 printf "%s\n" "PATH: $as_dir"
2838 done
2839 IFS=$as_save_IFS
2840
2841 } >&5
2842
2843 cat >&5 <<_ACEOF
2844
2845
2846 ## ----------- ##
2847 ## Core tests. ##
2848 ## ----------- ##
2849
2850 _ACEOF
2851
2852
2853 # Keep a trace of the command line.
2854 # Strip out --no-create and --no-recursion so they do not pile up.
2855 # Strip out --silent because we don't want to record it for future runs.
2856 # Also quote any args containing shell meta-characters.
2857 # Make two passes to allow for proper duplicate-argument suppression.
2858 ac_configure_args=
2859 ac_configure_args0=
2860 ac_configure_args1=
2861 ac_must_keep_next=false
2862 for ac_pass in 1 2
2863 do
2864 for ac_arg
2865 do
2866 case $ac_arg in
2867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2869 | -silent | --silent | --silen | --sile | --sil)
2870 continue ;;
2871 *\'*)
2872 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2873 esac
2874 case $ac_pass in
2875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2876 2)
2877 as_fn_append ac_configure_args1 " '$ac_arg'"
2878 if test $ac_must_keep_next = true; then
2879 ac_must_keep_next=false # Got value, back to normal.
2880 else
2881 case $ac_arg in
2882 *=* | --config-cache | -C | -disable-* | --disable-* \
2883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2885 | -with-* | --with-* | -without-* | --without-* | --x)
2886 case "$ac_configure_args0 " in
2887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2888 esac
2889 ;;
2890 -* ) ac_must_keep_next=true ;;
2891 esac
2892 fi
2893 as_fn_append ac_configure_args " '$ac_arg'"
2894 ;;
2895 esac
2896 done
2897 done
2898 { ac_configure_args0=; unset ac_configure_args0;}
2899 { ac_configure_args1=; unset ac_configure_args1;}
2900
2901 # When interrupted or exit'd, cleanup temporary files, and complete
2902 # config.log. We remove comments because anyway the quotes in there
2903 # would cause problems or look ugly.
2904 # WARNING: Use '\'' to represent an apostrophe within the trap.
2905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2906 trap 'exit_status=$?
2907 # Sanitize IFS.
2908 IFS=" "" $as_nl"
2909 # Save into config.log some information that might help in debugging.
2910 {
2911 echo
2912
2913 printf "%s\n" "## ---------------- ##
2914 ## Cache variables. ##
2915 ## ---------------- ##"
2916 echo
2917 # The following way of writing the cache mishandles newlines in values,
2918 (
2919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2920 eval ac_val=\$$ac_var
2921 case $ac_val in #(
2922 *${as_nl}*)
2923 case $ac_var in #(
2924 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2925 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2926 esac
2927 case $ac_var in #(
2928 _ | IFS | as_nl) ;; #(
2929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2930 *) { eval $ac_var=; unset $ac_var;} ;;
2931 esac ;;
2932 esac
2933 done
2934 (set) 2>&1 |
2935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2936 *${as_nl}ac_space=\ *)
2937 sed -n \
2938 "s/'\''/'\''\\\\'\'''\''/g;
2939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2940 ;; #(
2941 *)
2942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2943 ;;
2944 esac |
2945 sort
2946 )
2947 echo
2948
2949 printf "%s\n" "## ----------------- ##
2950 ## Output variables. ##
2951 ## ----------------- ##"
2952 echo
2953 for ac_var in $ac_subst_vars
2954 do
2955 eval ac_val=\$$ac_var
2956 case $ac_val in
2957 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2958 esac
2959 printf "%s\n" "$ac_var='\''$ac_val'\''"
2960 done | sort
2961 echo
2962
2963 if test -n "$ac_subst_files"; then
2964 printf "%s\n" "## ------------------- ##
2965 ## File substitutions. ##
2966 ## ------------------- ##"
2967 echo
2968 for ac_var in $ac_subst_files
2969 do
2970 eval ac_val=\$$ac_var
2971 case $ac_val in
2972 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2973 esac
2974 printf "%s\n" "$ac_var='\''$ac_val'\''"
2975 done | sort
2976 echo
2977 fi
2978
2979 if test -s confdefs.h; then
2980 printf "%s\n" "## ----------- ##
2981 ## confdefs.h. ##
2982 ## ----------- ##"
2983 echo
2984 cat confdefs.h
2985 echo
2986 fi
2987 test "$ac_signal" != 0 &&
2988 printf "%s\n" "$as_me: caught signal $ac_signal"
2989 printf "%s\n" "$as_me: exit $exit_status"
2990 } >&5
2991 rm -f core *.core core.conftest.* &&
2992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2993 exit $exit_status
2994 ' 0
2995 for ac_signal in 1 2 13 15; do
2996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2997 done
2998 ac_signal=0
2999
3000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3001 rm -f -r conftest* confdefs.h
3002
3003 printf "%s\n" "/* confdefs.h */" > confdefs.h
3004
3005 # Predefined preprocessor variables.
3006
3007 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3008
3009 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3010
3011 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3012
3013 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3014
3015 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3016
3017 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3018
3019
3020 # Let the site file select an alternate cache file if it wants to.
3021 # Prefer an explicitly selected file to automatically selected ones.
3022 if test -n "$CONFIG_SITE"; then
3023 ac_site_files="$CONFIG_SITE"
3024 elif test "x$prefix" != xNONE; then
3025 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3026 else
3027 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3028 fi
3029
3030 for ac_site_file in $ac_site_files
3031 do
3032 case $ac_site_file in #(
3033 */*) :
3034 ;; #(
3035 *) :
3036 ac_site_file=./$ac_site_file ;;
3037 esac
3038 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3040 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3041 sed 's/^/| /' "$ac_site_file" >&5
3042 . "$ac_site_file" \
3043 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3044 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3045 as_fn_error $? "failed to load site script $ac_site_file
3046 See 'config.log' for more details" "$LINENO" 5; }
3047 fi
3048 done
3049
3050 if test -r "$cache_file"; then
3051 # Some versions of bash will fail to source /dev/null (special files
3052 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3053 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3055 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3056 case $cache_file in
3057 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3058 *) . "./$cache_file";;
3059 esac
3060 fi
3061 else
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3063 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3064 >$cache_file
3065 fi
3066
3067 # Test code for whether the C compiler supports C89 (global declarations)
3068 ac_c_conftest_c89_globals='
3069 /* Does the compiler advertise C89 conformance?
3070 Do not test the value of __STDC__, because some compilers set it to 0
3071 while being otherwise adequately conformant. */
3072 #if !defined __STDC__
3073 # error "Compiler does not advertise C89 conformance"
3074 #endif
3075
3076 #include <stddef.h>
3077 #include <stdarg.h>
3078 struct stat;
3079 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3080 struct buf { int x; };
3081 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3082 static char *e (char **p, int i)
3083 {
3084 return p[i];
3085 }
3086 static char *f (char * (*g) (char **, int), char **p, ...)
3087 {
3088 char *s;
3089 va_list v;
3090 va_start (v,p);
3091 s = g (p, va_arg (v,int));
3092 va_end (v);
3093 return s;
3094 }
3095
3096 /* C89 style stringification. */
3097 #define noexpand_stringify(a) #a
3098 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3099
3100 /* C89 style token pasting. Exercises some of the corner cases that
3101 e.g. old MSVC gets wrong, but not very hard. */
3102 #define noexpand_concat(a,b) a##b
3103 #define expand_concat(a,b) noexpand_concat(a,b)
3104 extern int vA;
3105 extern int vbee;
3106 #define aye A
3107 #define bee B
3108 int *pvA = &expand_concat(v,aye);
3109 int *pvbee = &noexpand_concat(v,bee);
3110
3111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3112 function prototypes and stuff, but not \xHH hex character constants.
3113 These do not provoke an error unfortunately, instead are silently treated
3114 as an "x". The following induces an error, until -std is added to get
3115 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3116 array size at least. It is necessary to write \x00 == 0 to get something
3117 that is true only with -std. */
3118 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3119
3120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3121 inside strings and character constants. */
3122 #define FOO(x) '\''x'\''
3123 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3124
3125 int test (int i, double x);
3126 struct s1 {int (*f) (int a);};
3127 struct s2 {int (*f) (double a);};
3128 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3129 int, int);'
3130
3131 # Test code for whether the C compiler supports C89 (body of main).
3132 ac_c_conftest_c89_main='
3133 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3134 '
3135
3136 # Test code for whether the C compiler supports C99 (global declarations)
3137 ac_c_conftest_c99_globals='
3138 /* Does the compiler advertise C99 conformance? */
3139 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3140 # error "Compiler does not advertise C99 conformance"
3141 #endif
3142
3143 // See if C++-style comments work.
3144
3145 #include <stdbool.h>
3146 extern int puts (const char *);
3147 extern int printf (const char *, ...);
3148 extern int dprintf (int, const char *, ...);
3149 extern void *malloc (size_t);
3150 extern void free (void *);
3151
3152 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3153 // dprintf is used instead of fprintf to avoid needing to declare
3154 // FILE and stderr.
3155 #define debug(...) dprintf (2, __VA_ARGS__)
3156 #define showlist(...) puts (#__VA_ARGS__)
3157 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3158 static void
3159 test_varargs_macros (void)
3160 {
3161 int x = 1234;
3162 int y = 5678;
3163 debug ("Flag");
3164 debug ("X = %d\n", x);
3165 showlist (The first, second, and third items.);
3166 report (x>y, "x is %d but y is %d", x, y);
3167 }
3168
3169 // Check long long types.
3170 #define BIG64 18446744073709551615ull
3171 #define BIG32 4294967295ul
3172 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3173 #if !BIG_OK
3174 #error "your preprocessor is broken"
3175 #endif
3176 #if BIG_OK
3177 #else
3178 #error "your preprocessor is broken"
3179 #endif
3180 static long long int bignum = -9223372036854775807LL;
3181 static unsigned long long int ubignum = BIG64;
3182
3183 struct incomplete_array
3184 {
3185 int datasize;
3186 double data[];
3187 };
3188
3189 struct named_init {
3190 int number;
3191 const wchar_t *name;
3192 double average;
3193 };
3194
3195 typedef const char *ccp;
3196
3197 static inline int
3198 test_restrict (ccp restrict text)
3199 {
3200 // Iterate through items via the restricted pointer.
3201 // Also check for declarations in for loops.
3202 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3203 continue;
3204 return 0;
3205 }
3206
3207 // Check varargs and va_copy.
3208 static bool
3209 test_varargs (const char *format, ...)
3210 {
3211 va_list args;
3212 va_start (args, format);
3213 va_list args_copy;
3214 va_copy (args_copy, args);
3215
3216 const char *str = "";
3217 int number = 0;
3218 float fnumber = 0;
3219
3220 while (*format)
3221 {
3222 switch (*format++)
3223 {
3224 case '\''s'\'': // string
3225 str = va_arg (args_copy, const char *);
3226 break;
3227 case '\''d'\'': // int
3228 number = va_arg (args_copy, int);
3229 break;
3230 case '\''f'\'': // float
3231 fnumber = va_arg (args_copy, double);
3232 break;
3233 default:
3234 break;
3235 }
3236 }
3237 va_end (args_copy);
3238 va_end (args);
3239
3240 return *str && number && fnumber;
3241 }
3242 '
3243
3244 # Test code for whether the C compiler supports C99 (body of main).
3245 ac_c_conftest_c99_main='
3246 // Check bool.
3247 _Bool success = false;
3248 success |= (argc != 0);
3249
3250 // Check restrict.
3251 if (test_restrict ("String literal") == 0)
3252 success = true;
3253 char *restrict newvar = "Another string";
3254
3255 // Check varargs.
3256 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3257 test_varargs_macros ();
3258
3259 // Check flexible array members.
3260 struct incomplete_array *ia =
3261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3262 ia->datasize = 10;
3263 for (int i = 0; i < ia->datasize; ++i)
3264 ia->data[i] = i * 1.234;
3265 // Work around memory leak warnings.
3266 free (ia);
3267
3268 // Check named initializers.
3269 struct named_init ni = {
3270 .number = 34,
3271 .name = L"Test wide string",
3272 .average = 543.34343,
3273 };
3274
3275 ni.number = 58;
3276
3277 int dynamic_array[ni.number];
3278 dynamic_array[0] = argv[0][0];
3279 dynamic_array[ni.number - 1] = 543;
3280
3281 // work around unused variable warnings
3282 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3283 || dynamic_array[ni.number - 1] != 543);
3284 '
3285
3286 # Test code for whether the C compiler supports C11 (global declarations)
3287 ac_c_conftest_c11_globals='
3288 /* Does the compiler advertise C11 conformance? */
3289 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3290 # error "Compiler does not advertise C11 conformance"
3291 #endif
3292
3293 // Check _Alignas.
3294 char _Alignas (double) aligned_as_double;
3295 char _Alignas (0) no_special_alignment;
3296 extern char aligned_as_int;
3297 char _Alignas (0) _Alignas (int) aligned_as_int;
3298
3299 // Check _Alignof.
3300 enum
3301 {
3302 int_alignment = _Alignof (int),
3303 int_array_alignment = _Alignof (int[100]),
3304 char_alignment = _Alignof (char)
3305 };
3306 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3307
3308 // Check _Noreturn.
3309 int _Noreturn does_not_return (void) { for (;;) continue; }
3310
3311 // Check _Static_assert.
3312 struct test_static_assert
3313 {
3314 int x;
3315 _Static_assert (sizeof (int) <= sizeof (long int),
3316 "_Static_assert does not work in struct");
3317 long int y;
3318 };
3319
3320 // Check UTF-8 literals.
3321 #define u8 syntax error!
3322 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3323
3324 // Check duplicate typedefs.
3325 typedef long *long_ptr;
3326 typedef long int *long_ptr;
3327 typedef long_ptr long_ptr;
3328
3329 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3330 struct anonymous
3331 {
3332 union {
3333 struct { int i; int j; };
3334 struct { int k; long int l; } w;
3335 };
3336 int m;
3337 } v1;
3338 '
3339
3340 # Test code for whether the C compiler supports C11 (body of main).
3341 ac_c_conftest_c11_main='
3342 _Static_assert ((offsetof (struct anonymous, i)
3343 == offsetof (struct anonymous, w.k)),
3344 "Anonymous union alignment botch");
3345 v1.i = 2;
3346 v1.w.k = 5;
3347 ok |= v1.i != 5;
3348 '
3349
3350 # Test code for whether the C compiler supports C11 (complete).
3351 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3352 ${ac_c_conftest_c99_globals}
3353 ${ac_c_conftest_c11_globals}
3354
3355 int
3356 main (int argc, char **argv)
3357 {
3358 int ok = 0;
3359 ${ac_c_conftest_c89_main}
3360 ${ac_c_conftest_c99_main}
3361 ${ac_c_conftest_c11_main}
3362 return ok;
3363 }
3364 "
3365
3366 # Test code for whether the C compiler supports C99 (complete).
3367 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3368 ${ac_c_conftest_c99_globals}
3369
3370 int
3371 main (int argc, char **argv)
3372 {
3373 int ok = 0;
3374 ${ac_c_conftest_c89_main}
3375 ${ac_c_conftest_c99_main}
3376 return ok;
3377 }
3378 "
3379
3380 # Test code for whether the C compiler supports C89 (complete).
3381 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3382
3383 int
3384 main (int argc, char **argv)
3385 {
3386 int ok = 0;
3387 ${ac_c_conftest_c89_main}
3388 return ok;
3389 }
3390 "
3391
3392 # Test code for whether the C++ compiler supports C++98 (global declarations)
3393 ac_cxx_conftest_cxx98_globals='
3394 // Does the compiler advertise C++98 conformance?
3395 #if !defined __cplusplus || __cplusplus < 199711L
3396 # error "Compiler does not advertise C++98 conformance"
3397 #endif
3398
3399 // These inclusions are to reject old compilers that
3400 // lack the unsuffixed header files.
3401 #include <cstdlib>
3402 #include <exception>
3403
3404 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3405 extern void assert (int);
3406 namespace std {
3407 extern int strcmp (const char *, const char *);
3408 }
3409
3410 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3411 using std::exception;
3412 using std::strcmp;
3413
3414 namespace {
3415
3416 void test_exception_syntax()
3417 {
3418 try {
3419 throw "test";
3420 } catch (const char *s) {
3421 // Extra parentheses suppress a warning when building autoconf itself,
3422 // due to lint rules shared with more typical C programs.
3423 assert (!(strcmp) (s, "test"));
3424 }
3425 }
3426
3427 template <typename T> struct test_template
3428 {
3429 T const val;
3430 explicit test_template(T t) : val(t) {}
3431 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3432 };
3433
3434 } // anonymous namespace
3435 '
3436
3437 # Test code for whether the C++ compiler supports C++98 (body of main)
3438 ac_cxx_conftest_cxx98_main='
3439 assert (argc);
3440 assert (! argv[0]);
3441 {
3442 test_exception_syntax ();
3443 test_template<double> tt (2.0);
3444 assert (tt.add (4) == 6.0);
3445 assert (true && !false);
3446 }
3447 '
3448
3449 # Test code for whether the C++ compiler supports C++11 (global declarations)
3450 ac_cxx_conftest_cxx11_globals='
3451 // Does the compiler advertise C++ 2011 conformance?
3452 #if !defined __cplusplus || __cplusplus < 201103L
3453 # error "Compiler does not advertise C++11 conformance"
3454 #endif
3455
3456 namespace cxx11test
3457 {
3458 constexpr int get_val() { return 20; }
3459
3460 struct testinit
3461 {
3462 int i;
3463 double d;
3464 };
3465
3466 class delegate
3467 {
3468 public:
3469 delegate(int n) : n(n) {}
3470 delegate(): delegate(2354) {}
3471
3472 virtual int getval() { return this->n; };
3473 protected:
3474 int n;
3475 };
3476
3477 class overridden : public delegate
3478 {
3479 public:
3480 overridden(int n): delegate(n) {}
3481 virtual int getval() override final { return this->n * 2; }
3482 };
3483
3484 class nocopy
3485 {
3486 public:
3487 nocopy(int i): i(i) {}
3488 nocopy() = default;
3489 nocopy(const nocopy&) = delete;
3490 nocopy & operator=(const nocopy&) = delete;
3491 private:
3492 int i;
3493 };
3494
3495 // for testing lambda expressions
3496 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3497 {
3498 return f(v);
3499 }
3500
3501 // for testing variadic templates and trailing return types
3502 template <typename V> auto sum(V first) -> V
3503 {
3504 return first;
3505 }
3506 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3507 {
3508 return first + sum(rest...);
3509 }
3510 }
3511 '
3512
3513 # Test code for whether the C++ compiler supports C++11 (body of main)
3514 ac_cxx_conftest_cxx11_main='
3515 {
3516 // Test auto and decltype
3517 auto a1 = 6538;
3518 auto a2 = 48573953.4;
3519 auto a3 = "String literal";
3520
3521 int total = 0;
3522 for (auto i = a3; *i; ++i) { total += *i; }
3523
3524 decltype(a2) a4 = 34895.034;
3525 }
3526 {
3527 // Test constexpr
3528 short sa[cxx11test::get_val()] = { 0 };
3529 }
3530 {
3531 // Test initializer lists
3532 cxx11test::testinit il = { 4323, 435234.23544 };
3533 }
3534 {
3535 // Test range-based for
3536 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3537 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3538 for (auto &x : array) { x += 23; }
3539 }
3540 {
3541 // Test lambda expressions
3542 using cxx11test::eval;
3543 assert (eval ([](int x) { return x*2; }, 21) == 42);
3544 double d = 2.0;
3545 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3546 assert (d == 5.0);
3547 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3548 assert (d == 5.0);
3549 }
3550 {
3551 // Test use of variadic templates
3552 using cxx11test::sum;
3553 auto a = sum(1);
3554 auto b = sum(1, 2);
3555 auto c = sum(1.0, 2.0, 3.0);
3556 }
3557 {
3558 // Test constructor delegation
3559 cxx11test::delegate d1;
3560 cxx11test::delegate d2();
3561 cxx11test::delegate d3(45);
3562 }
3563 {
3564 // Test override and final
3565 cxx11test::overridden o1(55464);
3566 }
3567 {
3568 // Test nullptr
3569 char *c = nullptr;
3570 }
3571 {
3572 // Test template brackets
3573 test_template<::test_template<int>> v(test_template<int>(12));
3574 }
3575 {
3576 // Unicode literals
3577 char const *utf8 = u8"UTF-8 string \u2500";
3578 char16_t const *utf16 = u"UTF-8 string \u2500";
3579 char32_t const *utf32 = U"UTF-32 string \u2500";
3580 }
3581 '
3582
3583 # Test code for whether the C compiler supports C++11 (complete).
3584 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3585 ${ac_cxx_conftest_cxx11_globals}
3586
3587 int
3588 main (int argc, char **argv)
3589 {
3590 int ok = 0;
3591 ${ac_cxx_conftest_cxx98_main}
3592 ${ac_cxx_conftest_cxx11_main}
3593 return ok;
3594 }
3595 "
3596
3597 # Test code for whether the C compiler supports C++98 (complete).
3598 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3599 int
3600 main (int argc, char **argv)
3601 {
3602 int ok = 0;
3603 ${ac_cxx_conftest_cxx98_main}
3604 return ok;
3605 }
3606 "
3607
3608 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3609 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3610 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3611 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3612 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3613 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3614 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3615 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3616 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3617
3618 # Auxiliary files required by this configure script.
3619 ac_aux_files="install-sh config.guess config.sub"
3620
3621 # Locations in which to look for auxiliary files.
3622 ac_aux_dir_candidates="${srcdir}/acdir"
3623
3624 # Search for a directory containing all of the required auxiliary files,
3625 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3626 # If we don't find one directory that contains all the files we need,
3627 # we report the set of missing files from the *first* directory in
3628 # $ac_aux_dir_candidates and give up.
3629 ac_missing_aux_files=""
3630 ac_first_candidate=:
3631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 as_found=false
3634 for as_dir in $ac_aux_dir_candidates
3635 do
3636 IFS=$as_save_IFS
3637 case $as_dir in #(((
3638 '') as_dir=./ ;;
3639 */) ;;
3640 *) as_dir=$as_dir/ ;;
3641 esac
3642 as_found=:
3643
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3645 ac_aux_dir_found=yes
3646 ac_install_sh=
3647 for ac_aux in $ac_aux_files
3648 do
3649 # As a special case, if "install-sh" is required, that requirement
3650 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3651 # and $ac_install_sh is set appropriately for whichever one is found.
3652 if test x"$ac_aux" = x"install-sh"
3653 then
3654 if test -f "${as_dir}install-sh"; then
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3656 ac_install_sh="${as_dir}install-sh -c"
3657 elif test -f "${as_dir}install.sh"; then
3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3659 ac_install_sh="${as_dir}install.sh -c"
3660 elif test -f "${as_dir}shtool"; then
3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3662 ac_install_sh="${as_dir}shtool install -c"
3663 else
3664 ac_aux_dir_found=no
3665 if $ac_first_candidate; then
3666 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3667 else
3668 break
3669 fi
3670 fi
3671 else
3672 if test -f "${as_dir}${ac_aux}"; then
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3674 else
3675 ac_aux_dir_found=no
3676 if $ac_first_candidate; then
3677 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3678 else
3679 break
3680 fi
3681 fi
3682 fi
3683 done
3684 if test "$ac_aux_dir_found" = yes; then
3685 ac_aux_dir="$as_dir"
3686 break
3687 fi
3688 ac_first_candidate=false
3689
3690 as_found=false
3691 done
3692 IFS=$as_save_IFS
3693 if $as_found
3694 then :
3695
3696 else case e in #(
3697 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3698 esac
3699 fi
3700
3701
3702 # These three variables are undocumented and unsupported,
3703 # and are intended to be withdrawn in a future Autoconf release.
3704 # They can cause serious problems if a builder's source tree is in a directory
3705 # whose full name contains unusual characters.
3706 if test -f "${ac_aux_dir}config.guess"; then
3707 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3708 fi
3709 if test -f "${ac_aux_dir}config.sub"; then
3710 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3711 fi
3712 if test -f "$ac_aux_dir/configure"; then
3713 ac_configure="$SHELL ${ac_aux_dir}configure"
3714 fi
3715
3716 # Check that the precious variables saved in the cache have kept the same
3717 # value.
3718 ac_cache_corrupted=false
3719 for ac_var in $ac_precious_vars; do
3720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3721 eval ac_new_set=\$ac_env_${ac_var}_set
3722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3723 eval ac_new_val=\$ac_env_${ac_var}_value
3724 case $ac_old_set,$ac_new_set in
3725 set,)
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3727 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3728 ac_cache_corrupted=: ;;
3729 ,set)
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3731 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3732 ac_cache_corrupted=: ;;
3733 ,);;
3734 *)
3735 if test "x$ac_old_val" != "x$ac_new_val"; then
3736 # differences in whitespace do not lead to failure.
3737 ac_old_val_w=`echo x $ac_old_val`
3738 ac_new_val_w=`echo x $ac_new_val`
3739 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3741 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3742 ac_cache_corrupted=:
3743 else
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3745 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3746 eval $ac_var=\$ac_old_val
3747 fi
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3749 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3751 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3752 fi;;
3753 esac
3754 # Pass precious variables to config.status.
3755 if test "$ac_new_set" = set; then
3756 case $ac_new_val in
3757 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3758 *) ac_arg=$ac_var=$ac_new_val ;;
3759 esac
3760 case " $ac_configure_args " in
3761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3762 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3763 esac
3764 fi
3765 done
3766 if $ac_cache_corrupted; then
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3768 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3770 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3771 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3772 and start over" "$LINENO" 5
3773 fi
3774 ## -------------------- ##
3775 ## Main body of script. ##
3776 ## -------------------- ##
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785
3786
3787
3788 ###############################################################################
3789 # libbrlapi - A library providing access to braille terminals for applications.
3790 #
3791 # Copyright (C) 2006-2026 by Dave Mielke <[email protected]>
3792 #
3793 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3794 #
3795 # This is free software, placed under the terms of the
3796 # GNU Lesser General Public License, as published by the Free Software
3797 # Foundation; either version 2.1 of the License, or (at your option) any
3798 # later version. Please see the file LICENSE-LGPL for details.
3799 #
3800 # Web Page: http://brltty.app/
3801 #
3802 # This software is maintained by Dave Mielke <[email protected]>.
3803 ###############################################################################
3804
3805
3806
3807 ###############################################################################
3808 # libbrlapi - A library providing access to braille terminals for applications.
3809 #
3810 # Copyright (C) 2006-2026 by
3811 # Samuel Thibault <[email protected]>
3812 # Sébastien Hinderer <[email protected]>
3813 #
3814 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3815 #
3816 # This is free software, placed under the terms of the
3817 # GNU Lesser General Public License, as published by the Free Software
3818 # Foundation; either version 2.1 of the License, or (at your option) any
3819 # later version. Please see the file LICENSE-LGPL for details.
3820 #
3821 # Web Page: http://brltty.app/
3822 #
3823 # This software is maintained by Dave Mielke <[email protected]>.
3824 ###############################################################################
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840 ###############################################################################
3841 # libbrlapi - A library providing access to braille terminals for applications.
3842 #
3843 # Copyright (C) 2006-2026 by Dave Mielke <[email protected]>
3844 #
3845 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3846 #
3847 # This is free software, placed under the terms of the
3848 # GNU Lesser General Public License, as published by the Free Software
3849 # Foundation; either version 2.1 of the License, or (at your option) any
3850 # later version. Please see the file LICENSE-LGPL for details.
3851 #
3852 # Web Page: http://brltty.app/
3853 #
3854 # This software is maintained by Dave Mielke <[email protected]>.
3855 ###############################################################################
3856
3857
3858
3859 ###############################################################################
3860 # libbrlapi - A library providing access to braille terminals for applications.
3861 #
3862 # Copyright (C) 2006-2026 by Dave Mielke <[email protected]>
3863 #
3864 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3865 #
3866 # This is free software, placed under the terms of the
3867 # GNU Lesser General Public License, as published by the Free Software
3868 # Foundation; either version 2.1 of the License, or (at your option) any
3869 # later version. Please see the file LICENSE-LGPL for details.
3870 #
3871 # Web Page: http://brltty.app/
3872 #
3873 # This software is maintained by Dave Mielke <[email protected]>.
3874 ###############################################################################
3875
3876
3877
3878
3879
3880 # autoconf input for Objective Caml programs
3881 # Copyright (C) 2001 Jean-Christophe Filliâtre
3882 # from a first script by Georges Mariano
3883 #
3884 # Modified to be an autoconf m4 function in 2006
3885 # for BRLTTY [http://brltty.app/]
3886 # by Dave Mielke <[email protected]>
3887 #
3888 # This library is free software; you can redistribute it and/or
3889 # modify it under the terms of the GNU Library General Public
3890 # License version 2, as published by the Free Software Foundation.
3891 #
3892 # This library is distributed in the hope that it will be useful,
3893 # but WITHOUT ANY WARRANTY; without even the implied warranty of
3894 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3895 #
3896 # See the GNU Library General Public License version 2 for more details
3897 # (enclosed in the file LGPL).
3898
3899 # the script generated by autoconf from this input will set the following
3900 # variables:
3901 # OCAMLC "ocamlc" if present in the path, or a failure
3902 # or "ocamlc.opt" if present with same version number as ocamlc
3903 # OCAMLOPT "ocamlopt" (or "ocamlopt.opt" if present), or "no"
3904 # OCAMLMKLIB "ocamlkmlib", or "no"
3905 # OCAMLBEST either "byte" if no native compiler was found,
3906 # or "opt" otherwise
3907 # OCAMLDEP "ocamldep"
3908 # OCAMLLEX "ocamllex" (or "ocamllex.opt" if present)
3909 # OCAMLYACC "ocamlyac"
3910 # OCAMLLIB the path to the ocaml standard library
3911 # OCAMLVERSION the ocaml version number
3912 # OCAMLWEB "ocamlweb" (not mandatory)
3913 # OCAMLWIN32 "yes"/"no" depending on Sys.os_type = "Win32"
3914
3915
3916
3917 ###############################################################################
3918 # libbrlapi - A library providing access to braille terminals for applications.
3919 #
3920 # Copyright (C) 2005-2026 by
3921 # Alexis Robert <[email protected]>
3922 # Samuel Thibault <[email protected]>
3923 #
3924 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3925 #
3926 # This is free software, placed under the terms of the
3927 # GNU Lesser General Public License, as published by the Free Software
3928 # Foundation; either version 2.1 of the License, or (at your option) any
3929 # later version. Please see the file LICENSE-LGPL for details.
3930 #
3931 # Web Page: http://brltty.app/
3932 #
3933 # This software is maintained by Dave Mielke <[email protected]>.
3934 ###############################################################################
3935
3936
3937
3938
3939
3940 ###############################################################################
3941 # libbrlapi - A library providing access to braille terminals for applications.
3942 #
3943 # Copyright (C) 2006-2026 by Dave Mielke <[email protected]>
3944 #
3945 # libbrlapi comes with ABSOLUTELY NO WARRANTY.
3946 #
3947 # This is free software, placed under the terms of the
3948 # GNU Lesser General Public License, as published by the Free Software
3949 # Foundation; either version 2.1 of the License, or (at your option) any
3950 # later version. Please see the file LICENSE-LGPL for details.
3951 #
3952 # Web Page: http://brltty.app/
3953 #
3954 # This software is maintained by Dave Mielke <[email protected]>.
3955 ###############################################################################
3956
3957
3958
3959
3960
3961
3962 copyright="© 1995-2026 by The BRLTTY Developers"
3963 PACKAGE_COPYRIGHT="${copyright}"
3964
3965
3966 printf "%s\n" "#define PACKAGE_COPYRIGHT \"${copyright}\"" >>confdefs.h
3967
3968
3969 api_major=0
3970
3971 api_minor=8
3972
3973 api_revision=8
3974
3975
3976 api_name=BrlAPI
3977
3978 api_version=${api_major}.${api_minor}
3979
3980 api_release=${api_version}.${api_revision}
3981
3982
3983
3984 printf "%s\n" "#define BRLAPI_RELEASE \"${api_release}\"" >>confdefs.h
3985
3986
3987 printf "%s\n" "#define BRLAPI_MAJOR ${api_major}" >>confdefs.h
3988
3989
3990 printf "%s\n" "#define BRLAPI_MINOR ${api_minor}" >>confdefs.h
3991
3992
3993 printf "%s\n" "#define BRLAPI_REVISION ${api_revision}" >>confdefs.h
3994
3995
3996 brltty_summary_lines="Options Summary:"
3997
3998 brltty_build_directories=". Programs Documents Messages"
3999 brltty_source_directory="`dirname "${0}"`"
4000 brltty_manual_directories=""
4001
4002 for brltty_directory in Autostart Authorization Initramfs Android
4003 do
4004 for brltty_subdirectory in `cd "${brltty_source_directory}/${brltty_directory}" && echo *`
4005 do
4006 brltty_path="${brltty_directory}/${brltty_subdirectory}"
4007 test -f "${brltty_source_directory}/${brltty_path}/Makefile.in" && {
4008 brltty_build_directories="${brltty_build_directories} ${brltty_path}"
4009 }
4010 done
4011 done
4012
4013 for brltty_manual_directory in `(cd "${brltty_source_directory}" && echo Documents/Manual-*/*)`
4014 do
4015 test -f "${brltty_source_directory}/${brltty_manual_directory}/Makefile.in" && {
4016 brltty_manual_directories="${brltty_manual_directories} ${brltty_manual_directory}"
4017 }
4018 done
4019
4020
4021 brltty_build_directories="${brltty_build_directories} ${brltty_manual_directories}"
4022
4023 ac_config_headers="$ac_config_headers config.h"
4024
4025 ac_config_headers="$ac_config_headers Programs/brlapi.h"
4026
4027
4028
4029
4030
4031
4032 # Make sure we can run config.sub.
4033 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4034 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4035
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4037 printf %s "checking build system type... " >&6; }
4038 if test ${ac_cv_build+y}
4039 then :
4040 printf %s "(cached) " >&6
4041 else case e in #(
4042 e) ac_build_alias=$build_alias
4043 test "x$ac_build_alias" = x &&
4044 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4045 test "x$ac_build_alias" = x &&
4046 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4047 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4048 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4049 ;;
4050 esac
4051 fi
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4053 printf "%s\n" "$ac_cv_build" >&6; }
4054 case $ac_cv_build in
4055 *-*-*) ;;
4056 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4057 esac
4058 build=$ac_cv_build
4059 ac_save_IFS=$IFS; IFS='-'
4060 set x $ac_cv_build
4061 shift
4062 build_cpu=$1
4063 build_vendor=$2
4064 shift; shift
4065 # Remember, the first character of IFS is used to create $*,
4066 # except with old shells:
4067 build_os=$*
4068 IFS=$ac_save_IFS
4069 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4070
4071
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4073 printf %s "checking host system type... " >&6; }
4074 if test ${ac_cv_host+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else case e in #(
4078 e) if test "x$host_alias" = x; then
4079 ac_cv_host=$ac_cv_build
4080 else
4081 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4082 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4083 fi
4084 ;;
4085 esac
4086 fi
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4088 printf "%s\n" "$ac_cv_host" >&6; }
4089 case $ac_cv_host in
4090 *-*-*) ;;
4091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4092 esac
4093 host=$ac_cv_host
4094 ac_save_IFS=$IFS; IFS='-'
4095 set x $ac_cv_host
4096 shift
4097 host_cpu=$1
4098 host_vendor=$2
4099 shift; shift
4100 # Remember, the first character of IFS is used to create $*,
4101 # except with old shells:
4102 host_os=$*
4103 IFS=$ac_save_IFS
4104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4105
4106
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4108 printf %s "checking target system type... " >&6; }
4109 if test ${ac_cv_target+y}
4110 then :
4111 printf %s "(cached) " >&6
4112 else case e in #(
4113 e) if test "x$target_alias" = x; then
4114 ac_cv_target=$ac_cv_host
4115 else
4116 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
4117 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
4118 fi
4119 ;;
4120 esac
4121 fi
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4123 printf "%s\n" "$ac_cv_target" >&6; }
4124 case $ac_cv_target in
4125 *-*-*) ;;
4126 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4127 esac
4128 target=$ac_cv_target
4129 ac_save_IFS=$IFS; IFS='-'
4130 set x $ac_cv_target
4131 shift
4132 target_cpu=$1
4133 target_vendor=$2
4134 shift; shift
4135 # Remember, the first character of IFS is used to create $*,
4136 # except with old shells:
4137 target_os=$*
4138 IFS=$ac_save_IFS
4139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4140
4141
4142 # The aliases save the names the user supplied, while $host etc.
4143 # will get canonicalized.
4144 test -n "$target_alias" &&
4145 test "$program_prefix$program_suffix$program_transform_name" = \
4146 NONENONEs,x,x, &&
4147 program_prefix=${target_alias}-
4148
4149 brltty_default_execute_root="/${PACKAGE_TARNAME}-${PACKAGE_VERSION}"
4150
4151 # Check whether --with-execute-root was given.
4152 if test ${with_execute_root+y}
4153 then :
4154 withval=$with_execute_root; execute_root="${withval}"
4155 else case e in #(
4156 e) execute_root=""
4157 ;;
4158 esac
4159 fi
4160
4161 if test "${execute_root}" = "no"
4162 then
4163 execute_root=""
4164 elif test "${execute_root}" = "yes"
4165 then
4166 execute_root="${brltty_default_execute_root}"
4167 fi
4168
4169 brltty_summary_lines="${brltty_summary_lines}
4170 execute-root: ${execute_root}"
4171
4172 brltty_default_install_root="/tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION}"
4173
4174 # Check whether --with-install-root was given.
4175 if test ${with_install_root+y}
4176 then :
4177 withval=$with_install_root; install_root="${withval}"
4178 else case e in #(
4179 e) install_root="${execute_root}"
4180 ;;
4181 esac
4182 fi
4183
4184 if test "${install_root}" = "no"
4185 then
4186 install_root="${execute_root}"
4187 elif test "${install_root}" = "yes"
4188 then
4189 install_root="${brltty_default_install_root}"
4190 fi
4191
4192 brltty_summary_lines="${brltty_summary_lines}
4193 install-root: ${install_root}"
4194
4195
4196 # Check whether --with-configuration-file was given.
4197 if test ${with_configuration_file+y}
4198 then :
4199 withval=$with_configuration_file; CONFIGURATION_FILE="${withval}"
4200 else case e in #(
4201 e) CONFIGURATION_FILE="${PACKAGE_TARNAME}.conf"
4202 ;;
4203 esac
4204 fi
4205
4206
4207 brltty_expanded='"${CONFIGURATION_FILE}"'
4208 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
4209 do
4210 eval 'brltty_expanded="'"${brltty_expanded}"'"'
4211 done
4212
4213
4214 printf "%s\n" "#define CONFIGURATION_FILE \"${brltty_expanded}\"" >>confdefs.h
4215
4216
4217 PREFERENCES_FILE="${PACKAGE_TARNAME}.prefs"
4218
4219 brltty_expanded='"${PREFERENCES_FILE}"'
4220 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
4221 do
4222 eval 'brltty_expanded="'"${brltty_expanded}"'"'
4223 done
4224
4225
4226 printf "%s\n" "#define PREFERENCES_FILE \"${brltty_expanded}\"" >>confdefs.h
4227
4228
4229 if test "${prefix}" = "NONE"
4230 then
4231 if test -z "${execute_root}"
4232 then
4233 if test `expr "${includedir} " : '\${prefix}/[^/]*$'` -gt 0
4234 then
4235 includedir="`echo ${includedir} | sed -e 's%/%/usr/%'`"
4236 fi
4237 fi
4238 fi
4239 if test "${prefix}" = "NONE"
4240 then
4241 if test -z "${execute_root}"
4242 then
4243 if test `expr "${datarootdir} " : '\${prefix}/[^/]*$'` -gt 0
4244 then
4245 datarootdir="`echo ${datarootdir} | sed -e 's%/%/usr/%'`"
4246 fi
4247 fi
4248 fi
4249 if test "${prefix}" = "NONE"
4250 then
4251 if test -z "${execute_root}"
4252 then
4253 if test `expr "${localstatedir} " : '\${prefix}/[^/]*$'` -gt 0
4254 then
4255 localstatedir="`echo ${localstatedir} | sed -e 's%/%/%'`"
4256 fi
4257 fi
4258 fi
4259
4260 brltty_summary_lines="${brltty_summary_lines}
4261 libdir: ${libdir}"
4262 brltty_summary_lines="${brltty_summary_lines}
4263 sysconfdir: ${sysconfdir}"
4264
4265
4266 # Check whether --with-program-directory was given.
4267 if test ${with_program_directory+y}
4268 then :
4269 withval=$with_program_directory; program_directory="${withval}"
4270 else case e in #(
4271 e) program_directory="yes" ;;
4272 esac
4273 fi
4274
4275 if test "${program_directory}" = "no"
4276 then
4277 as_fn_error $? "program-directory not specified" "$LINENO" 5
4278 elif test "${program_directory}" = "yes"
4279 then
4280 program_directory="${bindir}"
4281
4282 fi
4283
4284 brltty_summary_lines="${brltty_summary_lines}
4285 program-directory: ${program_directory}"
4286
4287
4288 # Check whether --with-helpers-directory was given.
4289 if test ${with_helpers_directory+y}
4290 then :
4291 withval=$with_helpers_directory; helpers_directory="${withval}"
4292 else case e in #(
4293 e) helpers_directory="yes" ;;
4294 esac
4295 fi
4296
4297 if test "${helpers_directory}" = "no"
4298 then
4299 as_fn_error $? "helpers-directory not specified" "$LINENO" 5
4300 elif test "${helpers_directory}" = "yes"
4301 then
4302 helpers_directory="${libexecdir}/${PACKAGE_TARNAME}"
4303
4304 fi
4305
4306 brltty_summary_lines="${brltty_summary_lines}
4307 helpers-directory: ${helpers_directory}"
4308
4309
4310 # Check whether --with-drivers-directory was given.
4311 if test ${with_drivers_directory+y}
4312 then :
4313 withval=$with_drivers_directory; drivers_directory="${withval}"
4314 else case e in #(
4315 e) drivers_directory="yes" ;;
4316 esac
4317 fi
4318
4319 if test "${drivers_directory}" = "no"
4320 then
4321 as_fn_error $? "drivers-directory not specified" "$LINENO" 5
4322 elif test "${drivers_directory}" = "yes"
4323 then
4324 drivers_directory="${libdir}/${PACKAGE_TARNAME}"
4325
4326 fi
4327
4328 brltty_summary_lines="${brltty_summary_lines}
4329 drivers-directory: ${drivers_directory}"
4330
4331
4332 # Check whether --with-updatable-directory was given.
4333 if test ${with_updatable_directory+y}
4334 then :
4335 withval=$with_updatable_directory; updatable_directory="${withval}"
4336 else case e in #(
4337 e) updatable_directory="yes"
4338 ;;
4339 esac
4340 fi
4341
4342 if test "${updatable_directory}" = "no"
4343 then
4344 updatable_directory=""
4345 elif test "${updatable_directory}" = "yes"
4346 then
4347 updatable_directory="${localstatedir}/lib/${PACKAGE_TARNAME}"
4348 fi
4349
4350 brltty_summary_lines="${brltty_summary_lines}
4351 updatable-directory: ${updatable_directory}"
4352
4353
4354 # Check whether --with-writable-directory was given.
4355 if test ${with_writable_directory+y}
4356 then :
4357 withval=$with_writable_directory; writable_directory="${withval}"
4358 else case e in #(
4359 e) writable_directory="yes"
4360 ;;
4361 esac
4362 fi
4363
4364 if test "${writable_directory}" = "no"
4365 then
4366 writable_directory=""
4367 elif test "${writable_directory}" = "yes"
4368 then
4369 writable_directory="/run/${PACKAGE_TARNAME}"
4370 fi
4371
4372 brltty_summary_lines="${brltty_summary_lines}
4373 writable-directory: ${writable_directory}"
4374
4375
4376 # Check whether --with-tables-directory was given.
4377 if test ${with_tables_directory+y}
4378 then :
4379 withval=$with_tables_directory; tables_directory="${withval}"
4380 else case e in #(
4381 e) tables_directory="yes" ;;
4382 esac
4383 fi
4384
4385 if test "${tables_directory}" = "no"
4386 then
4387 as_fn_error $? "tables-directory not specified" "$LINENO" 5
4388 elif test "${tables_directory}" = "yes"
4389 then
4390 tables_directory="${sysconfdir}/${PACKAGE_TARNAME}"
4391
4392 fi
4393
4394 brltty_summary_lines="${brltty_summary_lines}
4395 tables-directory: ${tables_directory}"
4396
4397 TEXT_TABLES_SUBDIRECTORY=Text
4398
4399
4400 printf "%s\n" "#define TEXT_TABLES_SUBDIRECTORY \"Text\"" >>confdefs.h
4401
4402
4403 CONTRACTION_TABLES_SUBDIRECTORY=Contraction
4404
4405
4406 printf "%s\n" "#define CONTRACTION_TABLES_SUBDIRECTORY \"Contraction\"" >>confdefs.h
4407
4408
4409 ATTRIBUTES_TABLES_SUBDIRECTORY=Attributes
4410
4411
4412 printf "%s\n" "#define ATTRIBUTES_TABLES_SUBDIRECTORY \"Attributes\"" >>confdefs.h
4413
4414
4415 KEYBOARD_TABLES_SUBDIRECTORY=Keyboard
4416
4417
4418 printf "%s\n" "#define KEYBOARD_TABLES_SUBDIRECTORY \"Keyboard\"" >>confdefs.h
4419
4420
4421 INPUT_TABLES_SUBDIRECTORY=Input
4422
4423
4424 printf "%s\n" "#define INPUT_TABLES_SUBDIRECTORY \"Input\"" >>confdefs.h
4425
4426
4427
4428 TEXT_TABLE_EXTENSION=.ttb
4429
4430
4431 printf "%s\n" "#define TEXT_TABLE_EXTENSION \".ttb\"" >>confdefs.h
4432
4433
4434 TEXT_SUBTABLE_EXTENSION=.tti
4435
4436
4437 printf "%s\n" "#define TEXT_SUBTABLE_EXTENSION \".tti\"" >>confdefs.h
4438
4439
4440
4441 CONTRACTION_TABLE_EXTENSION=.ctb
4442
4443
4444 printf "%s\n" "#define CONTRACTION_TABLE_EXTENSION \".ctb\"" >>confdefs.h
4445
4446
4447 CONTRACTION_SUBTABLE_EXTENSION=.cti
4448
4449
4450 printf "%s\n" "#define CONTRACTION_SUBTABLE_EXTENSION \".cti\"" >>confdefs.h
4451
4452
4453
4454 ATTRIBUTES_TABLE_EXTENSION=.atb
4455
4456
4457 printf "%s\n" "#define ATTRIBUTES_TABLE_EXTENSION \".atb\"" >>confdefs.h
4458
4459
4460 ATTRIBUTES_SUBTABLE_EXTENSION=.ati
4461
4462
4463 printf "%s\n" "#define ATTRIBUTES_SUBTABLE_EXTENSION \".ati\"" >>confdefs.h
4464
4465
4466
4467 KEY_TABLE_EXTENSION=.ktb
4468
4469
4470 printf "%s\n" "#define KEY_TABLE_EXTENSION \".ktb\"" >>confdefs.h
4471
4472
4473 KEY_SUBTABLE_EXTENSION=.kti
4474
4475
4476 printf "%s\n" "#define KEY_SUBTABLE_EXTENSION \".kti\"" >>confdefs.h
4477
4478
4479 KEY_HELP_EXTENSION=.txt
4480
4481
4482 printf "%s\n" "#define KEY_HELP_EXTENSION \".txt\"" >>confdefs.h
4483
4484
4485
4486 PROFILES_SUBDIRECTORY=Profiles
4487
4488
4489 printf "%s\n" "#define PROFILES_SUBDIRECTORY \"Profiles\"" >>confdefs.h
4490
4491
4492 LANGUAGE_PROFILE_EXTENSION=.lpf
4493
4494
4495 printf "%s\n" "#define LANGUAGE_PROFILE_EXTENSION \".lpf\"" >>confdefs.h
4496
4497
4498
4499
4500 # Check whether --with-manpage-directory was given.
4501 if test ${with_manpage_directory+y}
4502 then :
4503 withval=$with_manpage_directory; manpage_directory="${withval}"
4504 else case e in #(
4505 e) manpage_directory="yes" ;;
4506 esac
4507 fi
4508
4509 if test "${manpage_directory}" = "no"
4510 then
4511 as_fn_error $? "manpage-directory not specified" "$LINENO" 5
4512 elif test "${manpage_directory}" = "yes"
4513 then
4514 manpage_directory="${mandir}"
4515
4516 fi
4517
4518 brltty_summary_lines="${brltty_summary_lines}
4519 manpage-directory: ${manpage_directory}"
4520
4521
4522 # Check whether --with-include-directory was given.
4523 if test ${with_include_directory+y}
4524 then :
4525 withval=$with_include_directory; include_directory="${withval}"
4526 else case e in #(
4527 e) include_directory="yes" ;;
4528 esac
4529 fi
4530
4531 if test "${include_directory}" = "no"
4532 then
4533 as_fn_error $? "include-directory not specified" "$LINENO" 5
4534 elif test "${include_directory}" = "yes"
4535 then
4536 include_directory="${includedir}/${PACKAGE_TARNAME}"
4537
4538 fi
4539
4540 brltty_summary_lines="${brltty_summary_lines}
4541 include-directory: ${include_directory}"
4542
4543 brltty_default_init_path=/sbin/init_real
4544
4545 # Check whether --with-init-path was given.
4546 if test ${with_init_path+y}
4547 then :
4548 withval=$with_init_path; init_path="${withval}"
4549 else case e in #(
4550 e) init_path=""
4551 ;;
4552 esac
4553 fi
4554
4555 if test "${init_path}" = "no"
4556 then
4557 init_path=""
4558 elif test "${init_path}" = "yes"
4559 then
4560 init_path="${brltty_default_init_path}"
4561 fi
4562 if test -n "${init_path}"
4563 then
4564
4565 printf "%s\n" "#define INIT_PATH \"${init_path}\"" >>confdefs.h
4566
4567 fi
4568 brltty_summary_lines="${brltty_summary_lines}
4569 init-path: ${init_path}"
4570
4571
4572
4573 # Check whether --with-privilege-parameters was given.
4574 if test ${with_privilege_parameters+y}
4575 then :
4576 withval=$with_privilege_parameters; privilege_parameters="${withval}"
4577 else case e in #(
4578 e) privilege_parameters="yes"
4579 ;;
4580 esac
4581 fi
4582
4583 if test "${privilege_parameters}" = "no"
4584 then
4585 privilege_parameters=""
4586 elif test "${privilege_parameters}" = "yes"
4587 then
4588 privilege_parameters=""
4589 fi
4590
4591
4592 printf "%s\n" "#define PRIVILEGE_PARAMETERS \"${privilege_parameters}\"" >>confdefs.h
4593
4594 brltty_summary_lines="${brltty_summary_lines}
4595 privilege-parameters: ${privilege_parameters}"
4596
4597 brltty_default_stderr_path=/tmp/brltty.log
4598
4599 # Check whether --with-stderr-path was given.
4600 if test ${with_stderr_path+y}
4601 then :
4602 withval=$with_stderr_path; stderr_path="${withval}"
4603 else case e in #(
4604 e) stderr_path=""
4605 ;;
4606 esac
4607 fi
4608
4609 if test "${stderr_path}" = "no"
4610 then
4611 stderr_path=""
4612 elif test "${stderr_path}" = "yes"
4613 then
4614 stderr_path="${brltty_default_stderr_path}"
4615 fi
4616 if test -n "${stderr_path}"
4617 then
4618
4619 printf "%s\n" "#define STDERR_PATH \"${stderr_path}\"" >>confdefs.h
4620
4621 fi
4622 brltty_summary_lines="${brltty_summary_lines}
4623 stderr-path: ${stderr_path}"
4624
4625
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4627 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4628 set x ${MAKE-make}
4629 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4630 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4631 then :
4632 printf %s "(cached) " >&6
4633 else case e in #(
4634 e) cat >conftest.make <<\_ACEOF
4635 SHELL = /bin/sh
4636 all:
4637 @echo '@@@%%%=$(MAKE)=@@@%%%'
4638 _ACEOF
4639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4640 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4641 *@@@%%%=?*=@@@%%%*)
4642 eval ac_cv_prog_make_${ac_make}_set=yes;;
4643 *)
4644 eval ac_cv_prog_make_${ac_make}_set=no;;
4645 esac
4646 rm -f conftest.make ;;
4647 esac
4648 fi
4649 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 printf "%s\n" "yes" >&6; }
4652 SET_MAKE=
4653 else
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 printf "%s\n" "no" >&6; }
4656 SET_MAKE="MAKE=${MAKE-make}"
4657 fi
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669 ac_ext=c
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 printf %s "checking for $ac_word... " >&6; }
4679 if test ${ac_cv_prog_CC+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else case e in #(
4683 e) if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 case $as_dir in #(((
4691 '') as_dir=./ ;;
4692 */) ;;
4693 *) as_dir=$as_dir/ ;;
4694 esac
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi ;;
4706 esac
4707 fi
4708 CC=$ac_cv_prog_CC
4709 if test -n "$CC"; then
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4711 printf "%s\n" "$CC" >&6; }
4712 else
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 printf "%s\n" "no" >&6; }
4715 fi
4716
4717
4718 fi
4719 if test -z "$ac_cv_prog_CC"; then
4720 ac_ct_CC=$CC
4721 # Extract the first word of "gcc", so it can be a program name with args.
4722 set dummy gcc; ac_word=$2
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 printf %s "checking for $ac_word... " >&6; }
4725 if test ${ac_cv_prog_ac_ct_CC+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else case e in #(
4729 e) if test -n "$ac_ct_CC"; then
4730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 case $as_dir in #(((
4737 '') as_dir=./ ;;
4738 */) ;;
4739 *) as_dir=$as_dir/ ;;
4740 esac
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_ac_ct_CC="gcc"
4744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi ;;
4752 esac
4753 fi
4754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4755 if test -n "$ac_ct_CC"; then
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4757 printf "%s\n" "$ac_ct_CC" >&6; }
4758 else
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 printf "%s\n" "no" >&6; }
4761 fi
4762
4763 if test "x$ac_ct_CC" = x; then
4764 CC=""
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767 yes:)
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4771 esac
4772 CC=$ac_ct_CC
4773 fi
4774 else
4775 CC="$ac_cv_prog_CC"
4776 fi
4777
4778 if test -z "$CC"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}cc; ac_word=$2
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 printf %s "checking for $ac_word... " >&6; }
4784 if test ${ac_cv_prog_CC+y}
4785 then :
4786 printf %s "(cached) " >&6
4787 else case e in #(
4788 e) if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 case $as_dir in #(((
4796 '') as_dir=./ ;;
4797 */) ;;
4798 *) as_dir=$as_dir/ ;;
4799 esac
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_CC="${ac_tool_prefix}cc"
4803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 fi ;;
4811 esac
4812 fi
4813 CC=$ac_cv_prog_CC
4814 if test -n "$CC"; then
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4816 printf "%s\n" "$CC" >&6; }
4817 else
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 printf "%s\n" "no" >&6; }
4820 fi
4821
4822
4823 fi
4824 fi
4825 if test -z "$CC"; then
4826 # Extract the first word of "cc", so it can be a program name with args.
4827 set dummy cc; ac_word=$2
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 printf %s "checking for $ac_word... " >&6; }
4830 if test ${ac_cv_prog_CC+y}
4831 then :
4832 printf %s "(cached) " >&6
4833 else case e in #(
4834 e) if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 else
4837 ac_prog_rejected=no
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 case $as_dir in #(((
4843 '') as_dir=./ ;;
4844 */) ;;
4845 *) as_dir=$as_dir/ ;;
4846 esac
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4849 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4850 ac_prog_rejected=yes
4851 continue
4852 fi
4853 ac_cv_prog_CC="cc"
4854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 if test $ac_prog_rejected = yes; then
4862 # We found a bogon in the path, so make sure we never use it.
4863 set dummy $ac_cv_prog_CC
4864 shift
4865 if test $# != 0; then
4866 # We chose a different compiler from the bogus one.
4867 # However, it has the same basename, so the bogon will be chosen
4868 # first if we set CC to just the basename; use the full file name.
4869 shift
4870 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4871 fi
4872 fi
4873 fi ;;
4874 esac
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 printf "%s\n" "$CC" >&6; }
4880 else
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 printf "%s\n" "no" >&6; }
4883 fi
4884
4885
4886 fi
4887 if test -z "$CC"; then
4888 if test -n "$ac_tool_prefix"; then
4889 for ac_prog in cl.exe
4890 do
4891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 printf %s "checking for $ac_word... " >&6; }
4895 if test ${ac_cv_prog_CC+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else case e in #(
4899 e) if test -n "$CC"; then
4900 ac_cv_prog_CC="$CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 case $as_dir in #(((
4907 '') as_dir=./ ;;
4908 */) ;;
4909 *) as_dir=$as_dir/ ;;
4910 esac
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi ;;
4922 esac
4923 fi
4924 CC=$ac_cv_prog_CC
4925 if test -n "$CC"; then
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4927 printf "%s\n" "$CC" >&6; }
4928 else
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 printf "%s\n" "no" >&6; }
4931 fi
4932
4933
4934 test -n "$CC" && break
4935 done
4936 fi
4937 if test -z "$CC"; then
4938 ac_ct_CC=$CC
4939 for ac_prog in cl.exe
4940 do
4941 # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 printf %s "checking for $ac_word... " >&6; }
4945 if test ${ac_cv_prog_ac_ct_CC+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else case e in #(
4949 e) if test -n "$ac_ct_CC"; then
4950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 case $as_dir in #(((
4957 '') as_dir=./ ;;
4958 */) ;;
4959 *) as_dir=$as_dir/ ;;
4960 esac
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_ac_ct_CC="$ac_prog"
4964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971 fi ;;
4972 esac
4973 fi
4974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4975 if test -n "$ac_ct_CC"; then
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4977 printf "%s\n" "$ac_ct_CC" >&6; }
4978 else
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 printf "%s\n" "no" >&6; }
4981 fi
4982
4983
4984 test -n "$ac_ct_CC" && break
4985 done
4986
4987 if test "x$ac_ct_CC" = x; then
4988 CC=""
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 CC=$ac_ct_CC
4997 fi
4998 fi
4999
5000 fi
5001 if test -z "$CC"; then
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}clang; ac_word=$2
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 printf %s "checking for $ac_word... " >&6; }
5007 if test ${ac_cv_prog_CC+y}
5008 then :
5009 printf %s "(cached) " >&6
5010 else case e in #(
5011 e) if test -n "$CC"; then
5012 ac_cv_prog_CC="$CC" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 case $as_dir in #(((
5019 '') as_dir=./ ;;
5020 */) ;;
5021 *) as_dir=$as_dir/ ;;
5022 esac
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_CC="${ac_tool_prefix}clang"
5026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi ;;
5034 esac
5035 fi
5036 CC=$ac_cv_prog_CC
5037 if test -n "$CC"; then
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5039 printf "%s\n" "$CC" >&6; }
5040 else
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 printf "%s\n" "no" >&6; }
5043 fi
5044
5045
5046 fi
5047 if test -z "$ac_cv_prog_CC"; then
5048 ac_ct_CC=$CC
5049 # Extract the first word of "clang", so it can be a program name with args.
5050 set dummy clang; ac_word=$2
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 printf %s "checking for $ac_word... " >&6; }
5053 if test ${ac_cv_prog_ac_ct_CC+y}
5054 then :
5055 printf %s "(cached) " >&6
5056 else case e in #(
5057 e) if test -n "$ac_ct_CC"; then
5058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 case $as_dir in #(((
5065 '') as_dir=./ ;;
5066 */) ;;
5067 *) as_dir=$as_dir/ ;;
5068 esac
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_ac_ct_CC="clang"
5072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi ;;
5080 esac
5081 fi
5082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5083 if test -n "$ac_ct_CC"; then
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5085 printf "%s\n" "$ac_ct_CC" >&6; }
5086 else
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 printf "%s\n" "no" >&6; }
5089 fi
5090
5091 if test "x$ac_ct_CC" = x; then
5092 CC=""
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 CC=$ac_ct_CC
5101 fi
5102 else
5103 CC="$ac_cv_prog_CC"
5104 fi
5105
5106 fi
5107
5108
5109 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5110 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5111 as_fn_error $? "no acceptable C compiler found in \$PATH
5112 See 'config.log' for more details" "$LINENO" 5; }
5113
5114 # Provide some information about the compiler.
5115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5116 set X $ac_compile
5117 ac_compiler=$2
5118 for ac_option in --version -v -V -qversion -version; do
5119 { { ac_try="$ac_compiler $ac_option >&5"
5120 case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 printf "%s\n" "$ac_try_echo"; } >&5
5126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5127 ac_status=$?
5128 if test -s conftest.err; then
5129 sed '10a\
5130 ... rest of stderr output deleted ...
5131 10q' conftest.err >conftest.er1
5132 cat conftest.er1 >&5
5133 fi
5134 rm -f conftest.er1 conftest.err
5135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }
5137 done
5138
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141
5142 int
5143 main (void)
5144 {
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 ac_clean_files_save=$ac_clean_files
5151 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5152 # Try to create an executable without -o first, disregard a.out.
5153 # It will help us diagnose broken compilers, and finding out an intuition
5154 # of exeext.
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5156 printf %s "checking whether the C compiler works... " >&6; }
5157 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5158
5159 # The possible output files:
5160 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5161
5162 ac_rmfiles=
5163 for ac_file in $ac_files
5164 do
5165 case $ac_file in
5166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5168 esac
5169 done
5170 rm -f $ac_rmfiles
5171
5172 if { { ac_try="$ac_link_default"
5173 case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 printf "%s\n" "$ac_try_echo"; } >&5
5179 (eval "$ac_link_default") 2>&5
5180 ac_status=$?
5181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183 then :
5184 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5185 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5186 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5187 # so that the user can short-circuit this test for compilers unknown to
5188 # Autoconf.
5189 for ac_file in $ac_files ''
5190 do
5191 test -f "$ac_file" || continue
5192 case $ac_file in
5193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5194 ;;
5195 [ab].out )
5196 # We found the default executable, but exeext='' is most
5197 # certainly right.
5198 break;;
5199 *.* )
5200 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5201 then :; else
5202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5203 fi
5204 # We set ac_cv_exeext here because the later test for it is not
5205 # safe: cross compilers may not add the suffix if given an '-o'
5206 # argument, so we may need to know it at that point already.
5207 # Even if this section looks crufty: it has the advantage of
5208 # actually working.
5209 break;;
5210 * )
5211 break;;
5212 esac
5213 done
5214 test "$ac_cv_exeext" = no && ac_cv_exeext=
5215
5216 else case e in #(
5217 e) ac_file='' ;;
5218 esac
5219 fi
5220 if test -z "$ac_file"
5221 then :
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5224 printf "%s\n" "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5229 as_fn_error 77 "C compiler cannot create executables
5230 See 'config.log' for more details" "$LINENO" 5; }
5231 else case e in #(
5232 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 printf "%s\n" "yes" >&6; } ;;
5234 esac
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5237 printf %s "checking for C compiler default output file name... " >&6; }
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5239 printf "%s\n" "$ac_file" >&6; }
5240 ac_exeext=$ac_cv_exeext
5241
5242 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5243 ac_clean_files=$ac_clean_files_save
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5245 printf %s "checking for suffix of executables... " >&6; }
5246 if { { ac_try="$ac_link"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253 (eval "$ac_link") 2>&5
5254 ac_status=$?
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }
5257 then :
5258 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5259 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5260 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5261 # 'rm'.
5262 for ac_file in conftest.exe conftest conftest.*; do
5263 test -f "$ac_file" || continue
5264 case $ac_file in
5265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5267 break;;
5268 * ) break;;
5269 esac
5270 done
5271 else case e in #(
5272 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5273 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5274 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5275 See 'config.log' for more details" "$LINENO" 5; } ;;
5276 esac
5277 fi
5278 rm -f conftest conftest$ac_cv_exeext
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5280 printf "%s\n" "$ac_cv_exeext" >&6; }
5281
5282 rm -f conftest.$ac_ext
5283 EXEEXT=$ac_cv_exeext
5284 ac_exeext=$EXEEXT
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <stdio.h>
5288 int
5289 main (void)
5290 {
5291 FILE *f = fopen ("conftest.out", "w");
5292 if (!f)
5293 return 1;
5294 return ferror (f) || fclose (f) != 0;
5295
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 ac_clean_files="$ac_clean_files conftest.out"
5301 # Check that the compiler produces executables we can run. If not, either
5302 # the compiler is broken, or we cross compile.
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5304 printf %s "checking whether we are cross compiling... " >&6; }
5305 if test "$cross_compiling" != yes; then
5306 { { ac_try="$ac_link"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5312 printf "%s\n" "$ac_try_echo"; } >&5
5313 (eval "$ac_link") 2>&5
5314 ac_status=$?
5315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }
5317 if { ac_try='./conftest$ac_cv_exeext'
5318 { { case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5323 printf "%s\n" "$ac_try_echo"; } >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327 test $ac_status = 0; }; }; then
5328 cross_compiling=no
5329 else
5330 if test "$cross_compiling" = maybe; then
5331 cross_compiling=yes
5332 else
5333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5334 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5335 as_fn_error 77 "cannot run C compiled programs.
5336 If you meant to cross compile, use '--host'.
5337 See 'config.log' for more details" "$LINENO" 5; }
5338 fi
5339 fi
5340 fi
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5342 printf "%s\n" "$cross_compiling" >&6; }
5343
5344 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5345 conftest.o conftest.obj conftest.out
5346 ac_clean_files=$ac_clean_files_save
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5348 printf %s "checking for suffix of object files... " >&6; }
5349 if test ${ac_cv_objext+y}
5350 then :
5351 printf %s "(cached) " >&6
5352 else case e in #(
5353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355
5356 int
5357 main (void)
5358 {
5359
5360 ;
5361 return 0;
5362 }
5363 _ACEOF
5364 rm -f conftest.o conftest.obj
5365 if { { ac_try="$ac_compile"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5371 printf "%s\n" "$ac_try_echo"; } >&5
5372 (eval "$ac_compile") 2>&5
5373 ac_status=$?
5374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375 test $ac_status = 0; }
5376 then :
5377 for ac_file in conftest.o conftest.obj conftest.*; do
5378 test -f "$ac_file" || continue;
5379 case $ac_file in
5380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5382 break;;
5383 esac
5384 done
5385 else case e in #(
5386 e) printf "%s\n" "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5390 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5391 as_fn_error $? "cannot compute suffix of object files: cannot compile
5392 See 'config.log' for more details" "$LINENO" 5; } ;;
5393 esac
5394 fi
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5396 esac
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5399 printf "%s\n" "$ac_cv_objext" >&6; }
5400 OBJEXT=$ac_cv_objext
5401 ac_objext=$OBJEXT
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5403 printf %s "checking whether the compiler supports GNU C... " >&6; }
5404 if test ${ac_cv_c_compiler_gnu+y}
5405 then :
5406 printf %s "(cached) " >&6
5407 else case e in #(
5408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410
5411 int
5412 main (void)
5413 {
5414 #ifndef __GNUC__
5415 choke me
5416 #endif
5417
5418 ;
5419 return 0;
5420 }
5421 _ACEOF
5422 if ac_fn_c_try_compile "$LINENO"
5423 then :
5424 ac_compiler_gnu=yes
5425 else case e in #(
5426 e) ac_compiler_gnu=no ;;
5427 esac
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5431 ;;
5432 esac
5433 fi
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5435 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437
5438 if test $ac_compiler_gnu = yes; then
5439 GCC=yes
5440 else
5441 GCC=
5442 fi
5443 ac_test_CFLAGS=${CFLAGS+y}
5444 ac_save_CFLAGS=$CFLAGS
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5446 printf %s "checking whether $CC accepts -g... " >&6; }
5447 if test ${ac_cv_prog_cc_g+y}
5448 then :
5449 printf %s "(cached) " >&6
5450 else case e in #(
5451 e) ac_save_c_werror_flag=$ac_c_werror_flag
5452 ac_c_werror_flag=yes
5453 ac_cv_prog_cc_g=no
5454 CFLAGS="-g"
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 int
5459 main (void)
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"
5467 then :
5468 ac_cv_prog_cc_g=yes
5469 else case e in #(
5470 e) CFLAGS=""
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473
5474 int
5475 main (void)
5476 {
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"
5483 then :
5484
5485 else case e in #(
5486 e) ac_c_werror_flag=$ac_save_c_werror_flag
5487 CFLAGS="-g"
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490
5491 int
5492 main (void)
5493 {
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"
5500 then :
5501 ac_cv_prog_cc_g=yes
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5504 esac
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5507 esac
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5510 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5511 esac
5512 fi
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5514 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5515 if test $ac_test_CFLAGS; then
5516 CFLAGS=$ac_save_CFLAGS
5517 elif test $ac_cv_prog_cc_g = yes; then
5518 if test "$GCC" = yes; then
5519 CFLAGS="-g -O2"
5520 else
5521 CFLAGS="-g"
5522 fi
5523 else
5524 if test "$GCC" = yes; then
5525 CFLAGS="-O2"
5526 else
5527 CFLAGS=
5528 fi
5529 fi
5530 ac_prog_cc_stdc=no
5531 if test x$ac_prog_cc_stdc = xno
5532 then :
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5534 printf %s "checking for $CC option to enable C11 features... " >&6; }
5535 if test ${ac_cv_prog_cc_c11+y}
5536 then :
5537 printf %s "(cached) " >&6
5538 else case e in #(
5539 e) ac_cv_prog_cc_c11=no
5540 ac_save_CC=$CC
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 $ac_c_conftest_c11_program
5544 _ACEOF
5545 for ac_arg in '' -std=gnu11
5546 do
5547 CC="$ac_save_CC $ac_arg"
5548 if ac_fn_c_try_compile "$LINENO"
5549 then :
5550 ac_cv_prog_cc_c11=$ac_arg
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.beam
5553 test "x$ac_cv_prog_cc_c11" != "xno" && break
5554 done
5555 rm -f conftest.$ac_ext
5556 CC=$ac_save_CC ;;
5557 esac
5558 fi
5559
5560 if test "x$ac_cv_prog_cc_c11" = xno
5561 then :
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5563 printf "%s\n" "unsupported" >&6; }
5564 else case e in #(
5565 e) if test "x$ac_cv_prog_cc_c11" = x
5566 then :
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5568 printf "%s\n" "none needed" >&6; }
5569 else case e in #(
5570 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5571 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5572 CC="$CC $ac_cv_prog_cc_c11" ;;
5573 esac
5574 fi
5575 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5576 ac_prog_cc_stdc=c11 ;;
5577 esac
5578 fi
5579 fi
5580 if test x$ac_prog_cc_stdc = xno
5581 then :
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5583 printf %s "checking for $CC option to enable C99 features... " >&6; }
5584 if test ${ac_cv_prog_cc_c99+y}
5585 then :
5586 printf %s "(cached) " >&6
5587 else case e in #(
5588 e) ac_cv_prog_cc_c99=no
5589 ac_save_CC=$CC
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 $ac_c_conftest_c99_program
5593 _ACEOF
5594 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5595 do
5596 CC="$ac_save_CC $ac_arg"
5597 if ac_fn_c_try_compile "$LINENO"
5598 then :
5599 ac_cv_prog_cc_c99=$ac_arg
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext conftest.beam
5602 test "x$ac_cv_prog_cc_c99" != "xno" && break
5603 done
5604 rm -f conftest.$ac_ext
5605 CC=$ac_save_CC ;;
5606 esac
5607 fi
5608
5609 if test "x$ac_cv_prog_cc_c99" = xno
5610 then :
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5612 printf "%s\n" "unsupported" >&6; }
5613 else case e in #(
5614 e) if test "x$ac_cv_prog_cc_c99" = x
5615 then :
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5617 printf "%s\n" "none needed" >&6; }
5618 else case e in #(
5619 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5620 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5621 CC="$CC $ac_cv_prog_cc_c99" ;;
5622 esac
5623 fi
5624 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5625 ac_prog_cc_stdc=c99 ;;
5626 esac
5627 fi
5628 fi
5629 if test x$ac_prog_cc_stdc = xno
5630 then :
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5632 printf %s "checking for $CC option to enable C89 features... " >&6; }
5633 if test ${ac_cv_prog_cc_c89+y}
5634 then :
5635 printf %s "(cached) " >&6
5636 else case e in #(
5637 e) ac_cv_prog_cc_c89=no
5638 ac_save_CC=$CC
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 $ac_c_conftest_c89_program
5642 _ACEOF
5643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5644 do
5645 CC="$ac_save_CC $ac_arg"
5646 if ac_fn_c_try_compile "$LINENO"
5647 then :
5648 ac_cv_prog_cc_c89=$ac_arg
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.beam
5651 test "x$ac_cv_prog_cc_c89" != "xno" && break
5652 done
5653 rm -f conftest.$ac_ext
5654 CC=$ac_save_CC ;;
5655 esac
5656 fi
5657
5658 if test "x$ac_cv_prog_cc_c89" = xno
5659 then :
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5661 printf "%s\n" "unsupported" >&6; }
5662 else case e in #(
5663 e) if test "x$ac_cv_prog_cc_c89" = x
5664 then :
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5666 printf "%s\n" "none needed" >&6; }
5667 else case e in #(
5668 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5669 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5670 CC="$CC $ac_cv_prog_cc_c89" ;;
5671 esac
5672 fi
5673 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5674 ac_prog_cc_stdc=c89 ;;
5675 esac
5676 fi
5677 fi
5678
5679 ac_ext=c
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684
5685
5686
5687
5688
5689
5690
5691 ac_ext=cpp
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 if test -z "$CXX"; then
5697 if test -n "$CCC"; then
5698 CXX=$CCC
5699 else
5700 if test -n "$ac_tool_prefix"; then
5701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5702 do
5703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 printf %s "checking for $ac_word... " >&6; }
5707 if test ${ac_cv_prog_CXX+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) if test -n "$CXX"; then
5712 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 case $as_dir in #(((
5719 '') as_dir=./ ;;
5720 */) ;;
5721 *) as_dir=$as_dir/ ;;
5722 esac
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi ;;
5734 esac
5735 fi
5736 CXX=$ac_cv_prog_CXX
5737 if test -n "$CXX"; then
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5739 printf "%s\n" "$CXX" >&6; }
5740 else
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 printf "%s\n" "no" >&6; }
5743 fi
5744
5745
5746 test -n "$CXX" && break
5747 done
5748 fi
5749 if test -z "$CXX"; then
5750 ac_ct_CXX=$CXX
5751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5752 do
5753 # Extract the first word of "$ac_prog", so it can be a program name with args.
5754 set dummy $ac_prog; ac_word=$2
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 printf %s "checking for $ac_word... " >&6; }
5757 if test ${ac_cv_prog_ac_ct_CXX+y}
5758 then :
5759 printf %s "(cached) " >&6
5760 else case e in #(
5761 e) if test -n "$ac_ct_CXX"; then
5762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 case $as_dir in #(((
5769 '') as_dir=./ ;;
5770 */) ;;
5771 *) as_dir=$as_dir/ ;;
5772 esac
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_ac_ct_CXX="$ac_prog"
5776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi ;;
5784 esac
5785 fi
5786 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5787 if test -n "$ac_ct_CXX"; then
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5789 printf "%s\n" "$ac_ct_CXX" >&6; }
5790 else
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 printf "%s\n" "no" >&6; }
5793 fi
5794
5795
5796 test -n "$ac_ct_CXX" && break
5797 done
5798
5799 if test "x$ac_ct_CXX" = x; then
5800 CXX="g++"
5801 else
5802 case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808 CXX=$ac_ct_CXX
5809 fi
5810 fi
5811
5812 fi
5813 fi
5814 # Provide some information about the compiler.
5815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5816 set X $ac_compile
5817 ac_compiler=$2
5818 for ac_option in --version -v -V -qversion; do
5819 { { ac_try="$ac_compiler $ac_option >&5"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5825 printf "%s\n" "$ac_try_echo"; } >&5
5826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5827 ac_status=$?
5828 if test -s conftest.err; then
5829 sed '10a\
5830 ... rest of stderr output deleted ...
5831 10q' conftest.err >conftest.er1
5832 cat conftest.er1 >&5
5833 fi
5834 rm -f conftest.er1 conftest.err
5835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; }
5837 done
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5840 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5841 if test ${ac_cv_cxx_compiler_gnu+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847
5848 int
5849 main (void)
5850 {
5851 #ifndef __GNUC__
5852 choke me
5853 #endif
5854
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 if ac_fn_cxx_try_compile "$LINENO"
5860 then :
5861 ac_compiler_gnu=yes
5862 else case e in #(
5863 e) ac_compiler_gnu=no ;;
5864 esac
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5867 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5868 ;;
5869 esac
5870 fi
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5872 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5874
5875 if test $ac_compiler_gnu = yes; then
5876 GXX=yes
5877 else
5878 GXX=
5879 fi
5880 ac_test_CXXFLAGS=${CXXFLAGS+y}
5881 ac_save_CXXFLAGS=$CXXFLAGS
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5883 printf %s "checking whether $CXX accepts -g... " >&6; }
5884 if test ${ac_cv_prog_cxx_g+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else case e in #(
5888 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5889 ac_cxx_werror_flag=yes
5890 ac_cv_prog_cxx_g=no
5891 CXXFLAGS="-g"
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894
5895 int
5896 main (void)
5897 {
5898
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_cxx_try_compile "$LINENO"
5904 then :
5905 ac_cv_prog_cxx_g=yes
5906 else case e in #(
5907 e) CXXFLAGS=""
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911 int
5912 main (void)
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_cxx_try_compile "$LINENO"
5920 then :
5921
5922 else case e in #(
5923 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5924 CXXFLAGS="-g"
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927
5928 int
5929 main (void)
5930 {
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_cxx_try_compile "$LINENO"
5937 then :
5938 ac_cv_prog_cxx_g=yes
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5941 esac
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5944 esac
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5948 esac
5949 fi
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5951 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5952 if test $ac_test_CXXFLAGS; then
5953 CXXFLAGS=$ac_save_CXXFLAGS
5954 elif test $ac_cv_prog_cxx_g = yes; then
5955 if test "$GXX" = yes; then
5956 CXXFLAGS="-g -O2"
5957 else
5958 CXXFLAGS="-g"
5959 fi
5960 else
5961 if test "$GXX" = yes; then
5962 CXXFLAGS="-O2"
5963 else
5964 CXXFLAGS=
5965 fi
5966 fi
5967 ac_prog_cxx_stdcxx=no
5968 if test x$ac_prog_cxx_stdcxx = xno
5969 then :
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5971 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5972 if test ${ac_cv_prog_cxx_cxx11+y}
5973 then :
5974 printf %s "(cached) " >&6
5975 else case e in #(
5976 e) ac_cv_prog_cxx_cxx11=no
5977 ac_save_CXX=$CXX
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 $ac_cxx_conftest_cxx11_program
5981 _ACEOF
5982 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5983 do
5984 CXX="$ac_save_CXX $ac_arg"
5985 if ac_fn_cxx_try_compile "$LINENO"
5986 then :
5987 ac_cv_prog_cxx_cxx11=$ac_arg
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext conftest.beam
5990 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5991 done
5992 rm -f conftest.$ac_ext
5993 CXX=$ac_save_CXX ;;
5994 esac
5995 fi
5996
5997 if test "x$ac_cv_prog_cxx_cxx11" = xno
5998 then :
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6000 printf "%s\n" "unsupported" >&6; }
6001 else case e in #(
6002 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6003 then :
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6005 printf "%s\n" "none needed" >&6; }
6006 else case e in #(
6007 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6008 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6009 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6010 esac
6011 fi
6012 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6013 ac_prog_cxx_stdcxx=cxx11 ;;
6014 esac
6015 fi
6016 fi
6017 if test x$ac_prog_cxx_stdcxx = xno
6018 then :
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6020 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6021 if test ${ac_cv_prog_cxx_cxx98+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else case e in #(
6025 e) ac_cv_prog_cxx_cxx98=no
6026 ac_save_CXX=$CXX
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 $ac_cxx_conftest_cxx98_program
6030 _ACEOF
6031 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6032 do
6033 CXX="$ac_save_CXX $ac_arg"
6034 if ac_fn_cxx_try_compile "$LINENO"
6035 then :
6036 ac_cv_prog_cxx_cxx98=$ac_arg
6037 fi
6038 rm -f core conftest.err conftest.$ac_objext conftest.beam
6039 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6040 done
6041 rm -f conftest.$ac_ext
6042 CXX=$ac_save_CXX ;;
6043 esac
6044 fi
6045
6046 if test "x$ac_cv_prog_cxx_cxx98" = xno
6047 then :
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6049 printf "%s\n" "unsupported" >&6; }
6050 else case e in #(
6051 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6052 then :
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6054 printf "%s\n" "none needed" >&6; }
6055 else case e in #(
6056 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6057 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6058 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6059 esac
6060 fi
6061 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6062 ac_prog_cxx_stdcxx=cxx98 ;;
6063 esac
6064 fi
6065 fi
6066
6067 ac_ext=c
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072
6073
6074 brltty_gcc_cflags="-std=gnu99 -Wall"
6075 brltty_gcc_cppflags=""
6076
6077 case "${host_os}"
6078 in
6079 darwin*)
6080 brltty_gcc_cflags="${brltty_gcc_cflags} -Wno-initializer-overrides -Wno-unused-const-variable -Wno-pointer-bool-conversion"
6081 ;;
6082 elf*)
6083 brltty_gcc_cppflags="${brltty_gcc_cppflags} -ffreestanding -nostdinc -nostdlib"
6084 CPPFLAGS="${CPPFLAGS} -DGRUB_RUNTIME -DGRUB_FILE=__FILE__ -DNESTED_FUNC_ATTR="
6085
6086 brltty_include_directory=`$CC -print-file-name=include`
6087 CPPFLAGS="${CPPFLAGS} -isystem $brltty_include_directory"
6088
6089 brltty_grub_root="`pwd`/grub-root"
6090 test -d $brltty_grub_root || {
6091 as_fn_error $? "symbolic link not found: $brltty_grub_root" "$LINENO" 5
6092 }
6093 CPPFLAGS="${CPPFLAGS} -I$brltty_grub_root -I$brltty_grub_root/grub-core/lib/posix_wrap/include -I$brltty_grub_root/include"
6094 ;;
6095 esac
6096
6097 test "${GCC}" = "yes" && {
6098 CFLAGS="${CFLAGS} ${brltty_gcc_cflags}"
6099 CPPFLAGS="${CPPFLAGS} ${brltty_gcc_cppflags}"
6100
6101 extraCFlags=""
6102 for flag in unknown-warning-option
6103 do
6104
6105 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__-Werror=${flag}" | sed "$as_sed_sh"`
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=${flag}" >&5
6107 printf %s "checking whether C compiler accepts -Werror=${flag}... " >&6; }
6108 if eval test \${$as_CACHEVAR+y}
6109 then :
6110 printf %s "(cached) " >&6
6111 else case e in #(
6112 e)
6113 ax_check_save_flags=$CFLAGS
6114 CFLAGS="$CFLAGS -Werror=${flag}"
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117
6118 int
6119 main (void)
6120 {
6121
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 if ac_fn_c_try_compile "$LINENO"
6127 then :
6128 eval "$as_CACHEVAR=yes"
6129 else case e in #(
6130 e) eval "$as_CACHEVAR=no" ;;
6131 esac
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 CFLAGS=$ax_check_save_flags ;;
6135 esac
6136 fi
6137 eval ac_res=\$$as_CACHEVAR
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6139 printf "%s\n" "$ac_res" >&6; }
6140 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
6141 then :
6142 extraCFlags="${extraCFlags} -Werror=${flag}"
6143
6144 else case e in #(
6145 e) : ;;
6146 esac
6147 fi
6148
6149 done
6150
6151 # warnings that should be errors
6152 for flag in format-security
6153 do
6154 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_${extraCFlags}_-Werror=${flag}" | sed "$as_sed_sh"`
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=${flag}" >&5
6156 printf %s "checking whether C compiler accepts -Werror=${flag}... " >&6; }
6157 if eval test \${$as_CACHEVAR+y}
6158 then :
6159 printf %s "(cached) " >&6
6160 else case e in #(
6161 e)
6162 ax_check_save_flags=$CFLAGS
6163 CFLAGS="$CFLAGS ${extraCFlags} -Werror=${flag}"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167 int
6168 main (void)
6169 {
6170
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"
6176 then :
6177 eval "$as_CACHEVAR=yes"
6178 else case e in #(
6179 e) eval "$as_CACHEVAR=no" ;;
6180 esac
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6183 CFLAGS=$ax_check_save_flags ;;
6184 esac
6185 fi
6186 eval ac_res=\$$as_CACHEVAR
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6188 printf "%s\n" "$ac_res" >&6; }
6189 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
6190 then :
6191 CFLAGS="${CFLAGS} -Werror=${flag}"
6192
6193 else case e in #(
6194 e) : ;;
6195 esac
6196 fi
6197
6198 done
6199
6200 # warnings that should be suppressed
6201 for flag in address-of-packed-member stringop-truncation initializer-overrides
6202 do
6203 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_${extraCFlags}_-Werror=${flag}" | sed "$as_sed_sh"`
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=${flag}" >&5
6205 printf %s "checking whether C compiler accepts -Werror=${flag}... " >&6; }
6206 if eval test \${$as_CACHEVAR+y}
6207 then :
6208 printf %s "(cached) " >&6
6209 else case e in #(
6210 e)
6211 ax_check_save_flags=$CFLAGS
6212 CFLAGS="$CFLAGS ${extraCFlags} -Werror=${flag}"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215
6216 int
6217 main (void)
6218 {
6219
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"
6225 then :
6226 eval "$as_CACHEVAR=yes"
6227 else case e in #(
6228 e) eval "$as_CACHEVAR=no" ;;
6229 esac
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6232 CFLAGS=$ax_check_save_flags ;;
6233 esac
6234 fi
6235 eval ac_res=\$$as_CACHEVAR
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6237 printf "%s\n" "$ac_res" >&6; }
6238 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
6239 then :
6240 CFLAGS="${CFLAGS} -Wno-${flag}"
6241
6242 else case e in #(
6243 e) : ;;
6244 esac
6245 fi
6246
6247 done
6248
6249
6250
6251
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((packed))" >&5
6253 printf %s "checking for __attribute__((packed))... " >&6; }
6254 if test ${ax_cv_have_var_attribute_packed+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else case e in #(
6258 e)
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261
6262
6263 struct bar {
6264 int baz __attribute__((packed));
6265 };
6266
6267 int
6268 main (void)
6269 {
6270
6271
6272
6273 ;
6274 return 0;
6275 }
6276
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"
6279 then :
6280 if test -s conftest.err
6281 then :
6282 ax_cv_have_var_attribute_packed=no
6283 else case e in #(
6284 e) ax_cv_have_var_attribute_packed=yes ;;
6285 esac
6286 fi
6287 else case e in #(
6288 e) ax_cv_have_var_attribute_packed=no ;;
6289 esac
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6292 conftest$ac_exeext conftest.$ac_ext
6293 ;;
6294 esac
6295 fi
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_packed" >&5
6297 printf "%s\n" "$ax_cv_have_var_attribute_packed" >&6; }
6298
6299 if test yes = $ax_cv_have_var_attribute_packed
6300 then :
6301
6302 printf "%s\n" "#define HAVE_VAR_ATTRIBUTE_PACKED 1" >>confdefs.h
6303
6304 fi
6305
6306
6307
6308
6309
6310
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((unused))" >&5
6312 printf %s "checking for __attribute__((unused))... " >&6; }
6313 if test ${ax_cv_have_var_attribute_unused+y}
6314 then :
6315 printf %s "(cached) " >&6
6316 else case e in #(
6317 e)
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320
6321
6322 int foo __attribute__((unused));
6323
6324 int
6325 main (void)
6326 {
6327
6328
6329
6330 ;
6331 return 0;
6332 }
6333
6334 _ACEOF
6335 if ac_fn_c_try_link "$LINENO"
6336 then :
6337 if test -s conftest.err
6338 then :
6339 ax_cv_have_var_attribute_unused=no
6340 else case e in #(
6341 e) ax_cv_have_var_attribute_unused=yes ;;
6342 esac
6343 fi
6344 else case e in #(
6345 e) ax_cv_have_var_attribute_unused=no ;;
6346 esac
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6349 conftest$ac_exeext conftest.$ac_ext
6350 ;;
6351 esac
6352 fi
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_unused" >&5
6354 printf "%s\n" "$ax_cv_have_var_attribute_unused" >&6; }
6355
6356 if test yes = $ax_cv_have_var_attribute_unused
6357 then :
6358
6359 printf "%s\n" "#define HAVE_VAR_ATTRIBUTE_UNUSED 1" >>confdefs.h
6360
6361 fi
6362
6363
6364
6365
6366
6367
6368
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
6370 printf %s "checking for __attribute__((format))... " >&6; }
6371 if test ${ax_cv_have_func_attribute_format+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else case e in #(
6375 e)
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378
6379
6380 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
6381
6382 int
6383 main (void)
6384 {
6385
6386 ;
6387 return 0;
6388 }
6389
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"
6392 then :
6393 if grep -- -Wattributes conftest.err
6394 then :
6395 ax_cv_have_func_attribute_format=no
6396 else case e in #(
6397 e) ax_cv_have_func_attribute_format=yes ;;
6398 esac
6399 fi
6400 else case e in #(
6401 e) ax_cv_have_func_attribute_format=no ;;
6402 esac
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6405 conftest$ac_exeext conftest.$ac_ext
6406 ;;
6407 esac
6408 fi
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
6410 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
6411
6412 if test yes = $ax_cv_have_func_attribute_format
6413 then :
6414
6415 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
6416
6417 fi
6418
6419
6420
6421
6422
6423
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format_arg))" >&5
6425 printf %s "checking for __attribute__((format_arg))... " >&6; }
6426 if test ${ax_cv_have_func_attribute_format_arg+y}
6427 then :
6428 printf %s "(cached) " >&6
6429 else case e in #(
6430 e)
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433
6434
6435 char *foo(const char *p) __attribute__((format_arg(1)));
6436
6437 int
6438 main (void)
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444
6445 _ACEOF
6446 if ac_fn_c_try_link "$LINENO"
6447 then :
6448 if grep -- -Wattributes conftest.err
6449 then :
6450 ax_cv_have_func_attribute_format_arg=no
6451 else case e in #(
6452 e) ax_cv_have_func_attribute_format_arg=yes ;;
6453 esac
6454 fi
6455 else case e in #(
6456 e) ax_cv_have_func_attribute_format_arg=no ;;
6457 esac
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6460 conftest$ac_exeext conftest.$ac_ext
6461 ;;
6462 esac
6463 fi
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format_arg" >&5
6465 printf "%s\n" "$ax_cv_have_func_attribute_format_arg" >&6; }
6466
6467 if test yes = $ax_cv_have_func_attribute_format_arg
6468 then :
6469
6470 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT_ARG 1" >>confdefs.h
6471
6472 fi
6473
6474
6475
6476
6477
6478
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5
6480 printf %s "checking for __attribute__((noreturn))... " >&6; }
6481 if test ${ax_cv_have_func_attribute_noreturn+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else case e in #(
6485 e)
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488
6489
6490 void foo( void ) __attribute__((noreturn));
6491
6492 int
6493 main (void)
6494 {
6495
6496 ;
6497 return 0;
6498 }
6499
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"
6502 then :
6503 if grep -- -Wattributes conftest.err
6504 then :
6505 ax_cv_have_func_attribute_noreturn=no
6506 else case e in #(
6507 e) ax_cv_have_func_attribute_noreturn=yes ;;
6508 esac
6509 fi
6510 else case e in #(
6511 e) ax_cv_have_func_attribute_noreturn=no ;;
6512 esac
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6515 conftest$ac_exeext conftest.$ac_ext
6516 ;;
6517 esac
6518 fi
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5
6520 printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; }
6521
6522 if test yes = $ax_cv_have_func_attribute_noreturn
6523 then :
6524
6525 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
6526
6527 fi
6528
6529
6530
6531
6532
6533
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((unused))" >&5
6535 printf %s "checking for __attribute__((unused))... " >&6; }
6536 if test ${ax_cv_have_func_attribute_unused+y}
6537 then :
6538 printf %s "(cached) " >&6
6539 else case e in #(
6540 e)
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543
6544
6545 int foo( void ) __attribute__((unused));
6546
6547 int
6548 main (void)
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554
6555 _ACEOF
6556 if ac_fn_c_try_link "$LINENO"
6557 then :
6558 if grep -- -Wattributes conftest.err
6559 then :
6560 ax_cv_have_func_attribute_unused=no
6561 else case e in #(
6562 e) ax_cv_have_func_attribute_unused=yes ;;
6563 esac
6564 fi
6565 else case e in #(
6566 e) ax_cv_have_func_attribute_unused=no ;;
6567 esac
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6570 conftest$ac_exeext conftest.$ac_ext
6571 ;;
6572 esac
6573 fi
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_unused" >&5
6575 printf "%s\n" "$ax_cv_have_func_attribute_unused" >&6; }
6576
6577 if test yes = $ax_cv_have_func_attribute_unused
6578 then :
6579
6580 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_UNUSED 1" >>confdefs.h
6581
6582 fi
6583
6584
6585
6586 }
6587
6588 test "${GXX}" = "yes" && {
6589 CXXFLAGS="${CXXFLAGS} ${brltty_gcc_cflags}"
6590 }
6591
6592 case "${host_os}"
6593 in
6594 linux*|gnu*|kfreebsd*)
6595 brltty_prog_cc_sysflags="-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE"
6596 ;;
6597 solaris2.1?*) # Solaris 10 & 11 require _XOPEN_SOURCE=600 if using C99
6598 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
6599 ;;
6600 solaris*)
6601 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6602 ;;
6603 hpux*)
6604 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE"
6605 ;;
6606 osf*)
6607 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE -D_OSF_SOURCE"
6608 ;;
6609 cygwin*)
6610 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE"
6611 ;;
6612 mingw*)
6613 brltty_prog_cc_sysflags="-D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE"
6614 ;;
6615 *)
6616 brltty_prog_cc_sysflags=""
6617 ;;
6618 esac
6619 CPPFLAGS="${CPPFLAGS} ${brltty_prog_cc_sysflags}"
6620
6621 if test "${GCC}" = "yes"
6622 then
6623 case "${host_os}"
6624 in
6625 cygwin*|mingw*)
6626 LIBCFLAGS=""
6627 ;;
6628 msdos*)
6629 LIBCFLAGS=""
6630 ;;
6631 darwin*)
6632 LIBCFLAGS=""
6633 ;;
6634 *)
6635 LIBCFLAGS="-fPIC"
6636 ;;
6637 esac
6638 else
6639 case "${host_os}"
6640 in
6641 *)
6642 LIBCFLAGS=""
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: library flags not configured for ${host_os}" >&5
6644 printf "%s\n" "$as_me: WARNING: library flags not configured for ${host_os}" >&2;}
6645 ;;
6646 esac
6647 fi
6648
6649
6650 if test "$GXX" = "yes"
6651 then
6652 LIBCXXFLAGS="-fPIC"
6653 else
6654 case "${host_os}"
6655 in
6656 *)
6657 LIBCXXFLAGS=""
6658 ;;
6659 esac
6660 fi
6661
6662
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}ld; ac_word=$2
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 printf %s "checking for $ac_word... " >&6; }
6668 if test ${ac_cv_prog_LD+y}
6669 then :
6670 printf %s "(cached) " >&6
6671 else case e in #(
6672 e) if test -n "$LD"; then
6673 ac_cv_prog_LD="$LD" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 case $as_dir in #(((
6680 '') as_dir=./ ;;
6681 */) ;;
6682 *) as_dir=$as_dir/ ;;
6683 esac
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_LD="${ac_tool_prefix}ld"
6687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6688 break 2
6689 fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694 fi ;;
6695 esac
6696 fi
6697 LD=$ac_cv_prog_LD
6698 if test -n "$LD"; then
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6700 printf "%s\n" "$LD" >&6; }
6701 else
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 printf "%s\n" "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_LD"; then
6709 ac_ct_LD=$LD
6710 # Extract the first word of "ld", so it can be a program name with args.
6711 set dummy ld; ac_word=$2
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 printf %s "checking for $ac_word... " >&6; }
6714 if test ${ac_cv_prog_ac_ct_LD+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else case e in #(
6718 e) if test -n "$ac_ct_LD"; then
6719 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 case $as_dir in #(((
6726 '') as_dir=./ ;;
6727 */) ;;
6728 *) as_dir=$as_dir/ ;;
6729 esac
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_ac_ct_LD="ld"
6733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi ;;
6741 esac
6742 fi
6743 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6744 if test -n "$ac_ct_LD"; then
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6746 printf "%s\n" "$ac_ct_LD" >&6; }
6747 else
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 printf "%s\n" "no" >&6; }
6750 fi
6751
6752 if test "x$ac_ct_LD" = x; then
6753 LD=""
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 LD=$ac_ct_LD
6762 fi
6763 else
6764 LD="$ac_cv_prog_LD"
6765 fi
6766
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}strip; ac_word=$2
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 printf %s "checking for $ac_word... " >&6; }
6772 if test ${ac_cv_prog_STRIP+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) if test -n "$STRIP"; then
6777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi ;;
6799 esac
6800 fi
6801 STRIP=$ac_cv_prog_STRIP
6802 if test -n "$STRIP"; then
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6804 printf "%s\n" "$STRIP" >&6; }
6805 else
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 printf "%s\n" "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_STRIP"; then
6813 ac_ct_STRIP=$STRIP
6814 # Extract the first word of "strip", so it can be a program name with args.
6815 set dummy strip; ac_word=$2
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 printf %s "checking for $ac_word... " >&6; }
6818 if test ${ac_cv_prog_ac_ct_STRIP+y}
6819 then :
6820 printf %s "(cached) " >&6
6821 else case e in #(
6822 e) if test -n "$ac_ct_STRIP"; then
6823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 case $as_dir in #(((
6830 '') as_dir=./ ;;
6831 */) ;;
6832 *) as_dir=$as_dir/ ;;
6833 esac
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_STRIP="strip"
6837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi ;;
6845 esac
6846 fi
6847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6848 if test -n "$ac_ct_STRIP"; then
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6850 printf "%s\n" "$ac_ct_STRIP" >&6; }
6851 else
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 printf "%s\n" "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_STRIP" = x; then
6857 STRIP=""
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 STRIP=$ac_ct_STRIP
6866 fi
6867 else
6868 STRIP="$ac_cv_prog_STRIP"
6869 fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 printf %s "checking for $ac_word... " >&6; }
6876 if test ${ac_cv_prog_RANLIB+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else case e in #(
6880 e) if test -n "$RANLIB"; then
6881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 case $as_dir in #(((
6888 '') as_dir=./ ;;
6889 */) ;;
6890 *) as_dir=$as_dir/ ;;
6891 esac
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi ;;
6903 esac
6904 fi
6905 RANLIB=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6908 printf "%s\n" "$RANLIB" >&6; }
6909 else
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 printf "%s\n" "no" >&6; }
6912 fi
6913
6914
6915 fi
6916 if test -z "$ac_cv_prog_RANLIB"; then
6917 ac_ct_RANLIB=$RANLIB
6918 # Extract the first word of "ranlib", so it can be a program name with args.
6919 set dummy ranlib; ac_word=$2
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 printf %s "checking for $ac_word... " >&6; }
6922 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else case e in #(
6926 e) if test -n "$ac_ct_RANLIB"; then
6927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 case $as_dir in #(((
6934 '') as_dir=./ ;;
6935 */) ;;
6936 *) as_dir=$as_dir/ ;;
6937 esac
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi ;;
6949 esac
6950 fi
6951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6952 if test -n "$ac_ct_RANLIB"; then
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6954 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6955 else
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 printf "%s\n" "no" >&6; }
6958 fi
6959
6960 if test "x$ac_ct_RANLIB" = x; then
6961 RANLIB=""
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 RANLIB=$ac_ct_RANLIB
6970 fi
6971 else
6972 RANLIB="$ac_cv_prog_RANLIB"
6973 fi
6974
6975
6976 for ac_prog in gawk mawk nawk awk
6977 do
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy $ac_prog; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_prog_AWK+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else case e in #(
6986 e) if test -n "$AWK"; then
6987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 case $as_dir in #(((
6994 '') as_dir=./ ;;
6995 */) ;;
6996 *) as_dir=$as_dir/ ;;
6997 esac
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_AWK="$ac_prog"
7001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi ;;
7009 esac
7010 fi
7011 AWK=$ac_cv_prog_AWK
7012 if test -n "$AWK"; then
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7014 printf "%s\n" "$AWK" >&6; }
7015 else
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 printf "%s\n" "no" >&6; }
7018 fi
7019
7020
7021 test -n "$AWK" && break
7022 done
7023
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7025 printf %s "checking whether ln -s works... " >&6; }
7026 LN_S=$as_ln_s
7027 if test "$LN_S" = "ln -s"; then
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7029 printf "%s\n" "yes" >&6; }
7030 else
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7032 printf "%s\n" "no, using $LN_S" >&6; }
7033 fi
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 printf %s "checking for $ac_word... " >&6; }
7049 if test ${ac_cv_path_PKG_CONFIG+y}
7050 then :
7051 printf %s "(cached) " >&6
7052 else case e in #(
7053 e) case $PKG_CONFIG in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 case $as_dir in #(((
7063 '') as_dir=./ ;;
7064 */) ;;
7065 *) as_dir=$as_dir/ ;;
7066 esac
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7069 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 ;;
7078 esac ;;
7079 esac
7080 fi
7081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7082 if test -n "$PKG_CONFIG"; then
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7084 printf "%s\n" "$PKG_CONFIG" >&6; }
7085 else
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 printf "%s\n" "no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_path_PKG_CONFIG"; then
7093 ac_pt_PKG_CONFIG=$PKG_CONFIG
7094 # Extract the first word of "pkg-config", so it can be a program name with args.
7095 set dummy pkg-config; ac_word=$2
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 printf %s "checking for $ac_word... " >&6; }
7098 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7099 then :
7100 printf %s "(cached) " >&6
7101 else case e in #(
7102 e) case $ac_pt_PKG_CONFIG in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 case $as_dir in #(((
7112 '') as_dir=./ ;;
7113 */) ;;
7114 *) as_dir=$as_dir/ ;;
7115 esac
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7118 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 ;;
7127 esac ;;
7128 esac
7129 fi
7130 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7131 if test -n "$ac_pt_PKG_CONFIG"; then
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7133 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7134 else
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 printf "%s\n" "no" >&6; }
7137 fi
7138
7139 if test "x$ac_pt_PKG_CONFIG" = x; then
7140 PKG_CONFIG=""
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 PKG_CONFIG=$ac_pt_PKG_CONFIG
7149 fi
7150 else
7151 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7152 fi
7153
7154 fi
7155 if test -n "$PKG_CONFIG"; then
7156 _pkg_min_version=0.9.0
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7158 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7159 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 printf "%s\n" "yes" >&6; }
7162 else
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 printf "%s\n" "no" >&6; }
7165 PKG_CONFIG=""
7166 fi
7167 fi
7168 if test -z "$PKG_CONFIG"; then
7169 as_fn_error $? "pkg-config not found" "$LINENO" 5
7170 fi
7171
7172
7173 if test -z "${PKG_CONFIG}"
7174 then
7175 PKG_CONFIG=false
7176 fi
7177
7178 # Extract the first word of "msgmerge", so it can be a program name with args.
7179 set dummy msgmerge; ac_word=$2
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 printf %s "checking for $ac_word... " >&6; }
7182 if test ${ac_cv_path_MSGMERGE+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) case $MSGMERGE in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 case $as_dir in #(((
7196 '') as_dir=./ ;;
7197 */) ;;
7198 *) as_dir=$as_dir/ ;;
7199 esac
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7202 ac_cv_path_MSGMERGE="$as_dir$ac_word$ac_exec_ext"
7203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="false"
7211 ;;
7212 esac ;;
7213 esac
7214 fi
7215 MSGMERGE=$ac_cv_path_MSGMERGE
7216 if test -n "$MSGMERGE"; then
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7218 printf "%s\n" "$MSGMERGE" >&6; }
7219 else
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 printf "%s\n" "no" >&6; }
7222 fi
7223
7224
7225 # Extract the first word of "msgfmt", so it can be a program name with args.
7226 set dummy msgfmt; ac_word=$2
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 printf %s "checking for $ac_word... " >&6; }
7229 if test ${ac_cv_path_MSGFMT+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else case e in #(
7233 e) case $MSGFMT in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 case $as_dir in #(((
7243 '') as_dir=./ ;;
7244 */) ;;
7245 *) as_dir=$as_dir/ ;;
7246 esac
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7249 ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext"
7250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="false"
7258 ;;
7259 esac ;;
7260 esac
7261 fi
7262 MSGFMT=$ac_cv_path_MSGFMT
7263 if test -n "$MSGFMT"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7265 printf "%s\n" "$MSGFMT" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 printf "%s\n" "no" >&6; }
7269 fi
7270
7271
7272
7273 # Extract the first word of "linuxdoc", so it can be a program name with args.
7274 set dummy linuxdoc; ac_word=$2
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 printf %s "checking for $ac_word... " >&6; }
7277 if test ${ac_cv_path_LINUXDOC+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else case e in #(
7281 e) case $LINUXDOC in
7282 [\\/]* | ?:[\\/]*)
7283 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
7284 ;;
7285 *)
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 case $as_dir in #(((
7291 '') as_dir=./ ;;
7292 */) ;;
7293 *) as_dir=$as_dir/ ;;
7294 esac
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7297 ac_cv_path_LINUXDOC="$as_dir$ac_word$ac_exec_ext"
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 test -z "$ac_cv_path_LINUXDOC" && ac_cv_path_LINUXDOC="false"
7306 ;;
7307 esac ;;
7308 esac
7309 fi
7310 LINUXDOC=$ac_cv_path_LINUXDOC
7311 if test -n "$LINUXDOC"; then
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINUXDOC" >&5
7313 printf "%s\n" "$LINUXDOC" >&6; }
7314 else
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 printf "%s\n" "no" >&6; }
7317 fi
7318
7319
7320 # Extract the first word of "doxygen", so it can be a program name with args.
7321 set dummy doxygen; ac_word=$2
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 printf %s "checking for $ac_word... " >&6; }
7324 if test ${ac_cv_path_DOXYGEN+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else case e in #(
7328 e) case $DOXYGEN in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7331 ;;
7332 *)
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 case $as_dir in #(((
7338 '') as_dir=./ ;;
7339 */) ;;
7340 *) as_dir=$as_dir/ ;;
7341 esac
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7344 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
7353 ;;
7354 esac ;;
7355 esac
7356 fi
7357 DOXYGEN=$ac_cv_path_DOXYGEN
7358 if test -n "$DOXYGEN"; then
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7360 printf "%s\n" "$DOXYGEN" >&6; }
7361 else
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 printf "%s\n" "no" >&6; }
7364 fi
7365
7366
7367
7368 case "${host_os}"
7369 in
7370 cygwin* ) LDFLAGS_DYNAMIC="--export-all-symbols --enable-auto-import";;
7371 darwin* ) LDFLAGS_DYNAMIC="";;
7372 elf* ) LDFLAGS_DYNAMIC="";;
7373 freebsd* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7374 gnu* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7375 haiku* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7376 hpux* ) LDFLAGS_DYNAMIC="-E +s";;
7377 kfreebsd*) LDFLAGS_DYNAMIC="-export-dynamic";;
7378 linux* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7379 mingw* ) LDFLAGS_DYNAMIC="--export-all-symbols --enable-auto-import";;
7380 msdos* ) LDFLAGS_DYNAMIC="";;
7381 netbsd* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7382 openbsd* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7383 osf* ) LDFLAGS_DYNAMIC="";;
7384 *qnx* ) LDFLAGS_DYNAMIC="-export-dynamic";;
7385 solaris* ) LDFLAGS_DYNAMIC="";;
7386 *) as_fn_error $? "dynamic linkage not supported for ${host_os}" "$LINENO" 5;;
7387 esac
7388 LDFLAGS_DYNAMIC="`echo "${LDFLAGS_DYNAMIC}" | sed -e '
7389 /^$/d
7390 s/^ */-Wl /
7391 s/ *$//
7392 s/ */,/g
7393 '`"
7394
7395 if test "${GCC}" = "yes"
7396 then
7397 LDFLAGS_STATIC="-static"
7398 else
7399 case "${host_os}"
7400 in
7401 cygwin* ) LDFLAGS_STATIC="-static";;
7402 elf* ) LDFLAGS_STATIC="-static";;
7403 freebsd* ) LDFLAGS_STATIC="-static";;
7404 gnu* ) LDFLAGS_STATIC="-static";;
7405 hpux* ) LDFLAGS_STATIC="-Bstatic";;
7406 kfreebsd*) LDFLAGS_STATIC="-static";;
7407 linux* ) LDFLAGS_STATIC="-static";;
7408 mingw* ) LDFLAGS_STATIC="-static";;
7409 netbsd* ) LDFLAGS_STATIC="-Bstatic";;
7410 openbsd* ) LDFLAGS_STATIC="-static";;
7411 osf* ) LDFLAGS_STATIC="-non_shared";;
7412 *qnx* ) LDFLAGS_STATIC="-static";;
7413 solaris* ) LDFLAGS_STATIC="-dn";;
7414 *) as_fn_error $? "static linkage not supported for ${host_os}" "$LINENO" 5;;
7415 esac
7416 LDFLAGS_STATIC="`echo "${LDFLAGS_STATIC}" | sed -e '
7417 /^$/d
7418 s/^ */-Wl /
7419 s/ *$//
7420 s/ */,/g
7421 '`"
7422 fi
7423
7424 pkgconfig_flags_libs="--libs"
7425
7426 # Check whether --enable-standalone-programs was given.
7427 if test ${enable_standalone_programs+y}
7428 then :
7429 enableval=$enable_standalone_programs;
7430 else case e in #(
7431 e) enableval="no" ;;
7432 esac
7433 fi
7434
7435
7436 brltty_enabled_standalone_programs="${enableval}"
7437
7438 brltty_summary_lines="${brltty_summary_lines}
7439 standalone-programs: ${brltty_enabled_standalone_programs}"
7440
7441 if test "${enableval}" = "no"
7442 then
7443 LDFLAGS="${LDFLAGS} ${LDFLAGS_DYNAMIC}"
7444
7445
7446 printf "%s\n" "#define ENABLE_SHARED_OBJECTS 1" >>confdefs.h
7447
7448
7449 else
7450 if test "${enableval}" = "yes"
7451 then
7452 brltty_ok=true
7453 else
7454 brltty_ok=false
7455 fi
7456
7457 if "${brltty_ok}"
7458 then
7459 LDFLAGS="${LDFLAGS} ${LDFLAGS_STATIC}"
7460 brltty_standalone_programs="yes"
7461 pkgconfig_flags_libs="${pkgconfig_flags_libs} --static"
7462
7463 else
7464 as_fn_error $? "invalid selection: --enable-standalone-programs=${enableval}" "$LINENO" 5
7465 fi
7466 fi
7467
7468
7469 # Find a good install program. We prefer a C program (faster),
7470 # so one script is as good as another. But avoid the broken or
7471 # incompatible versions:
7472 # SysV /etc/install, /usr/sbin/install
7473 # SunOS /usr/etc/install
7474 # IRIX /sbin/install
7475 # AIX /bin/install
7476 # AmigaOS /C/install, which installs bootblocks on floppy discs
7477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7480 # OS/2's system install, which has a completely different semantic
7481 # ./install, which can be erroneously created by make from ./install.sh.
7482 # Reject install programs that cannot install multiple files.
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7484 printf %s "checking for a BSD-compatible install... " >&6; }
7485 if test -z "$INSTALL"; then
7486 if test ${ac_cv_path_install+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else case e in #(
7490 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493 IFS=$as_save_IFS
7494 case $as_dir in #(((
7495 '') as_dir=./ ;;
7496 */) ;;
7497 *) as_dir=$as_dir/ ;;
7498 esac
7499 # Account for fact that we put trailing slashes in our PATH walk.
7500 case $as_dir in #((
7501 ./ | /[cC]/* | \
7502 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7503 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7504 /usr/ucb/* ) ;;
7505 *)
7506 # OSF1 and SCO ODT 3.0 have their own names for install.
7507 # Don't use installbsd from OSF since it installs stuff as root
7508 # by default.
7509 for ac_prog in ginstall scoinst install; do
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
7512 if test $ac_prog = install &&
7513 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7514 # AIX install. It has an incompatible calling convention.
7515 :
7516 elif test $ac_prog = install &&
7517 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7518 # program-specific install script used by HP pwplus--don't use.
7519 :
7520 else
7521 rm -rf conftest.one conftest.two conftest.dir
7522 echo one > conftest.one
7523 echo two > conftest.two
7524 mkdir conftest.dir
7525 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
7526 test -s conftest.one && test -s conftest.two &&
7527 test -s conftest.dir/conftest.one &&
7528 test -s conftest.dir/conftest.two
7529 then
7530 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
7531 break 3
7532 fi
7533 fi
7534 fi
7535 done
7536 done
7537 ;;
7538 esac
7539
7540 done
7541 IFS=$as_save_IFS
7542
7543 rm -rf conftest.one conftest.two conftest.dir
7544 ;;
7545 esac
7546 fi
7547 if test ${ac_cv_path_install+y}; then
7548 INSTALL=$ac_cv_path_install
7549 else
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for INSTALL within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 INSTALL=$ac_install_sh
7555 fi
7556 fi
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7558 printf "%s\n" "$INSTALL" >&6; }
7559
7560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7561 # It thinks the first close brace ends the variable substitution.
7562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7563
7564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7565
7566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7567
7568 if test `expr "${INSTALL} " : '[^/ ][^/ ]*/'` -gt 0
7569 then
7570 INSTALL="`pwd`/${INSTALL}"
7571 fi
7572
7573 test "${LINUXDOC}" = "false" && can_make_manual=no || can_make_manual=yes
7574
7575
7576 test "${DOXYGEN}" = "false" && can_make_BrlAPIref=no || can_make_BrlAPIref=yes
7577
7578
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared object creation command" >&5
7580 printf %s "checking for shared object creation command... " >&6; }
7581 if test ${brltty_cv_prog_make_object_shared+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else case e in #(
7585 e) case "${host_os}"
7586 in
7587 linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|msdos*|elf*|haiku*)
7588 brltty_mkshr_ld_make="-shared"
7589 ;;
7590 solaris*)
7591 brltty_mkshr_ld_make="-G"
7592 ;;
7593 hpux*)
7594 brltty_mkshr_ld_make="-b"
7595 ;;
7596 osf*)
7597 brltty_mkshr_ld_make="-shared"
7598 ;;
7599 darwin*)
7600 brltty_mkshr_ld_make="-bundle"
7601 brltty_mkshr_ld_options="-flat_namespace -undefined suppress"
7602 brltty_mkshr_gcc_make="-bundle"
7603 ;;
7604 *)
7605 as_fn_error $? "loadable module creation command not configured for ${host_os}" "$LINENO" 5
7606 brltty_mkshr_ld_make="NOT_SUPPORTED"
7607 brltty_mkshr_ld_options="NOT_SUPPORTED"
7608 brltty_mkshr_gcc_make="NOT_SUPPORTED"
7609 ;;
7610 esac
7611
7612 if test "${GCC}" = "yes"
7613 then
7614 brltty_cv_prog_make_object_shared="\$(CC) ${brltty_mkshr_gcc_make=-shared} `echo "${brltty_mkshr_ld_options}" | sed -e '
7615 /^$/d
7616 s/^ */-Wl /
7617 s/ *$//
7618 s/ */,/g
7619 '`"
7620 else
7621 brltty_cv_prog_make_object_shared="\$(LD) ${brltty_mkshr_ld_make} ${brltty_mkshr_ld_options}"
7622 fi
7623
7624 brltty_cv_prog_make_object_shared="${brltty_cv_prog_make_object_shared} ${LDFLAGS} -o"
7625 ;;
7626 esac
7627 fi
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_prog_make_object_shared" >&5
7629 printf "%s\n" "$brltty_cv_prog_make_object_shared" >&6; }
7630 MKSHR="${brltty_cv_prog_make_object_shared}"
7631
7632
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic library creation command" >&5
7634 printf %s "checking for dynamic library creation command... " >&6; }
7635 if test ${brltty_cv_prog_mklib+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else case e in #(
7639 e) case "${host_os}"
7640 in
7641 linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|elf*|haiku*)
7642 brltty_mklib_ld_make="-shared"
7643 brltty_mklib_ld_options="-soname"
7644 ;;
7645 solaris*)
7646 brltty_mklib_ld_make="-G"
7647 brltty_mklib_ld_options="-h"
7648 ;;
7649 hpux*)
7650 brltty_mklib_ld_make="-b"
7651 brltty_mklib_ld_options="+h"
7652 ;;
7653 osf*)
7654 brltty_mklib_ld_make="-shared"
7655 brltty_mklib_ld_options="-expect_unresolved '*' -soname"
7656 ;;
7657 cygwin*|mingw*)
7658 brltty_mklib_ld_make="-shared"
7659 brltty_mklib_ld_options="--out-implib implib.a --output-def lib.def -soname"
7660 ;;
7661 msdos*)
7662 brltty_mklib_ld_make="not_supported_on_msdos"
7663 brltty_mklib_ld_options="not_supported_on_msdos"
7664 brltty_mklib_gcc_make="not_supported_on_msdos"
7665 ;;
7666 darwin*)
7667 dylibFound=false
7668 dylibPath=/usr/lib/dylib1.o
7669 set -- "${dylibPath}"
7670
7671 sdkRootPrefix="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX"
7672 sdkRootSuffix=".sdk/${dylibPath}"
7673 sdkVersion=`sw_vers -productVersion`
7674
7675 while true
7676 do
7677 set -- "${@}" "${sdkRootPrefix}${sdkVersion}${sdkRootSuffix}"
7678 sdkNext="${sdkVersion%.*}"
7679 test "${sdkNext}" != "${sdkVersion}" || break
7680 sdkVersion="${sdkNext}"
7681 done
7682
7683 set -- "${@}" "${sdkRootPrefix}"*"${sdkRootSuffix}"
7684 for sdkPath
7685 do
7686 test ! -f "${sdkPath}" || {
7687 dylibPath="${sdkPath}"
7688 dylibFound=true
7689 break
7690 }
7691 done
7692 "${dylibFound}" || { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ${dylibPath}" >&5
7693 printf "%s\n" "$as_me: WARNING: cannot find ${dylibPath}" >&2;}
7694
7695 brltty_mklib_ld_make="-dylib"
7696 brltty_mklib_ld_options="${dylibPath} -single_module -install_name"
7697 brltty_mklib_gcc_make="-dynamiclib"
7698 ;;
7699 *)
7700 as_fn_error $? "dynamic library creation command not configured for ${host_os}" "$LINENO" 5
7701 ;;
7702 esac
7703 if test "${GCC}" = "yes"
7704 then
7705 brltty_cv_prog_mklib="\$(CC) \$(LDFLAGS) ${brltty_mklib_gcc_make=-shared} `echo "${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>}" | sed -e '
7706 /^$/d
7707 s/^ */-Wl /
7708 s/ *$//
7709 s/ */,/g
7710 '` -o"
7711 else
7712 brltty_cv_prog_mklib="\$(LD) \$(LDFLAGS) ${brltty_mklib_ld_make} ${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>} -o"
7713 fi ;;
7714 esac
7715 fi
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_prog_mklib" >&5
7717 printf "%s\n" "$brltty_cv_prog_mklib" >&6; }
7718 MKLIB="${brltty_cv_prog_mklib}"
7719
7720
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for configure shared object directory command" >&5
7722 printf %s "checking for configure shared object directory command... " >&6; }
7723 if test ${brltty_cv_prog_conflibdir+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else case e in #(
7727 e) case "${host_os}"
7728 in
7729 linux*|gnu*|kfreebsd*|elf*)
7730 brltty_cv_prog_conflibdir="/sbin/ldconfig -n"
7731 ;;
7732 *)
7733 brltty_cv_prog_conflibdir=":"
7734 ;;
7735 esac ;;
7736 esac
7737 fi
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_prog_conflibdir" >&5
7739 printf "%s\n" "$brltty_cv_prog_conflibdir" >&6; }
7740 CONFLIBDIR="${brltty_cv_prog_conflibdir}"
7741
7742
7743 case "${host_os}"
7744 in
7745 mingw*)
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DLL ws2_32 can be loaded" >&5
7747 printf %s "checking if DLL ws2_32 can be loaded... " >&6; }
7748 if test ${brltty_cv_dll_ws2_32+y}
7749 then :
7750 printf %s "(cached) " >&6
7751 else case e in #(
7752 e)
7753 # If cross-compiling we cannot run the test program.
7754 # Assume that all Windows libraries exist.
7755 if test "x${cross_compiling}" = "xyes"
7756 then
7757 brltty_cv_dll_ws2_32=yes
7758 else
7759 if test "$cross_compiling" = yes
7760 then :
7761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7762 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7763 as_fn_error $? "cannot run test program while cross compiling
7764 See 'config.log' for more details" "$LINENO" 5; }
7765 else case e in #(
7766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768
7769
7770 #include <windows.h>
7771 int main () {
7772 return !LoadLibrary("ws2_32.DLL");
7773 }
7774
7775
7776 _ACEOF
7777 if ac_fn_c_try_run "$LINENO"
7778 then :
7779 brltty_cv_dll_ws2_32=yes
7780 else case e in #(
7781 e) brltty_cv_dll_ws2_32=no
7782 ;;
7783 esac
7784 fi
7785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7786 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7787 esac
7788 fi
7789
7790 fi
7791
7792 ;;
7793 esac
7794 fi
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_dll_ws2_32" >&5
7796 printf "%s\n" "$brltty_cv_dll_ws2_32" >&6; }
7797 if test "${brltty_cv_dll_ws2_32}" = "yes"
7798 then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
7800 printf %s "checking for main in -lws2_32... " >&6; }
7801 if test ${ac_cv_lib_ws2_32_main+y}
7802 then :
7803 printf %s "(cached) " >&6
7804 else case e in #(
7805 e) ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lws2_32 $LIBS"
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809
7810
7811 int
7812 main (void)
7813 {
7814 return main ();
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"
7820 then :
7821 ac_cv_lib_ws2_32_main=yes
7822 else case e in #(
7823 e) ac_cv_lib_ws2_32_main=no ;;
7824 esac
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7827 conftest$ac_exeext conftest.$ac_ext
7828 LIBS=$ac_check_lib_save_LIBS ;;
7829 esac
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
7832 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
7833 if test "x$ac_cv_lib_ws2_32_main" = xyes
7834 then :
7835 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
7836
7837 LIBS="-lws2_32 $LIBS"
7838
7839 fi
7840
7841
7842 else
7843 :
7844
7845 fi
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DLL gdi32 can be loaded" >&5
7847 printf %s "checking if DLL gdi32 can be loaded... " >&6; }
7848 if test ${brltty_cv_dll_gdi32+y}
7849 then :
7850 printf %s "(cached) " >&6
7851 else case e in #(
7852 e)
7853 # If cross-compiling we cannot run the test program.
7854 # Assume that all Windows libraries exist.
7855 if test "x${cross_compiling}" = "xyes"
7856 then
7857 brltty_cv_dll_gdi32=yes
7858 else
7859 if test "$cross_compiling" = yes
7860 then :
7861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7863 as_fn_error $? "cannot run test program while cross compiling
7864 See 'config.log' for more details" "$LINENO" 5; }
7865 else case e in #(
7866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869
7870 #include <windows.h>
7871 int main () {
7872 return !LoadLibrary("gdi32.DLL");
7873 }
7874
7875
7876 _ACEOF
7877 if ac_fn_c_try_run "$LINENO"
7878 then :
7879 brltty_cv_dll_gdi32=yes
7880 else case e in #(
7881 e) brltty_cv_dll_gdi32=no
7882 ;;
7883 esac
7884 fi
7885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7887 esac
7888 fi
7889
7890 fi
7891
7892 ;;
7893 esac
7894 fi
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_dll_gdi32" >&5
7896 printf "%s\n" "$brltty_cv_dll_gdi32" >&6; }
7897 if test "${brltty_cv_dll_gdi32}" = "yes"
7898 then
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
7900 printf %s "checking for main in -lgdi32... " >&6; }
7901 if test ${ac_cv_lib_gdi32_main+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else case e in #(
7905 e) ac_check_lib_save_LIBS=$LIBS
7906 LIBS="-lgdi32 $LIBS"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909
7910
7911 int
7912 main (void)
7913 {
7914 return main ();
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"
7920 then :
7921 ac_cv_lib_gdi32_main=yes
7922 else case e in #(
7923 e) ac_cv_lib_gdi32_main=no ;;
7924 esac
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7927 conftest$ac_exeext conftest.$ac_ext
7928 LIBS=$ac_check_lib_save_LIBS ;;
7929 esac
7930 fi
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
7932 printf "%s\n" "$ac_cv_lib_gdi32_main" >&6; }
7933 if test "x$ac_cv_lib_gdi32_main" = xyes
7934 then :
7935 printf "%s\n" "#define HAVE_LIBGDI32 1" >>confdefs.h
7936
7937 LIBS="-lgdi32 $LIBS"
7938
7939 fi
7940
7941
7942 else
7943 :
7944
7945 fi
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DLL winmm can be loaded" >&5
7947 printf %s "checking if DLL winmm can be loaded... " >&6; }
7948 if test ${brltty_cv_dll_winmm+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else case e in #(
7952 e)
7953 # If cross-compiling we cannot run the test program.
7954 # Assume that all Windows libraries exist.
7955 if test "x${cross_compiling}" = "xyes"
7956 then
7957 brltty_cv_dll_winmm=yes
7958 else
7959 if test "$cross_compiling" = yes
7960 then :
7961 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7962 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7963 as_fn_error $? "cannot run test program while cross compiling
7964 See 'config.log' for more details" "$LINENO" 5; }
7965 else case e in #(
7966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968
7969
7970 #include <windows.h>
7971 int main () {
7972 return !LoadLibrary("winmm.DLL");
7973 }
7974
7975
7976 _ACEOF
7977 if ac_fn_c_try_run "$LINENO"
7978 then :
7979 brltty_cv_dll_winmm=yes
7980 else case e in #(
7981 e) brltty_cv_dll_winmm=no
7982 ;;
7983 esac
7984 fi
7985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7986 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7987 esac
7988 fi
7989
7990 fi
7991
7992 ;;
7993 esac
7994 fi
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_dll_winmm" >&5
7996 printf "%s\n" "$brltty_cv_dll_winmm" >&6; }
7997 if test "${brltty_cv_dll_winmm}" = "yes"
7998 then
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lwinmm" >&5
8000 printf %s "checking for main in -lwinmm... " >&6; }
8001 if test ${ac_cv_lib_winmm_main+y}
8002 then :
8003 printf %s "(cached) " >&6
8004 else case e in #(
8005 e) ac_check_lib_save_LIBS=$LIBS
8006 LIBS="-lwinmm $LIBS"
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009
8010
8011 int
8012 main (void)
8013 {
8014 return main ();
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_link "$LINENO"
8020 then :
8021 ac_cv_lib_winmm_main=yes
8022 else case e in #(
8023 e) ac_cv_lib_winmm_main=no ;;
8024 esac
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027 conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS ;;
8029 esac
8030 fi
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_main" >&5
8032 printf "%s\n" "$ac_cv_lib_winmm_main" >&6; }
8033 if test "x$ac_cv_lib_winmm_main" = xyes
8034 then :
8035 printf "%s\n" "#define HAVE_LIBWINMM 1" >>confdefs.h
8036
8037 LIBS="-lwinmm $LIBS"
8038
8039 fi
8040
8041
8042 else
8043 :
8044
8045 fi
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regexec" >&5
8047 printf %s "checking for library containing regexec... " >&6; }
8048 if test ${ac_cv_search_regexec+y}
8049 then :
8050 printf %s "(cached) " >&6
8051 else case e in #(
8052 e) ac_func_search_save_LIBS=$LIBS
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055
8056 /* Override any GCC internal prototype to avoid an error.
8057 Use char because int might match the return type of a GCC
8058 builtin and then its argument prototype would still apply.
8059 The 'extern "C"' is for builds by C++ compilers;
8060 although this is not generally supported in C code supporting it here
8061 has little cost and some practical benefit (sr 110532). */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char regexec (void);
8066 int
8067 main (void)
8068 {
8069 return regexec ();
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 for ac_lib in '' systre
8075 do
8076 if test -z "$ac_lib"; then
8077 ac_res="none required"
8078 else
8079 ac_res=-l$ac_lib
8080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8081 fi
8082 if ac_fn_c_try_link "$LINENO"
8083 then :
8084 ac_cv_search_regexec=$ac_res
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8087 conftest$ac_exeext
8088 if test ${ac_cv_search_regexec+y}
8089 then :
8090 break
8091 fi
8092 done
8093 if test ${ac_cv_search_regexec+y}
8094 then :
8095
8096 else case e in #(
8097 e) ac_cv_search_regexec=no ;;
8098 esac
8099 fi
8100 rm conftest.$ac_ext
8101 LIBS=$ac_func_search_save_LIBS ;;
8102 esac
8103 fi
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regexec" >&5
8105 printf "%s\n" "$ac_cv_search_regexec" >&6; }
8106 ac_res=$ac_cv_search_regexec
8107 if test "$ac_res" != no
8108 then :
8109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8110
8111 fi
8112
8113 ;;
8114 cygwin*)
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DLL gdi32 can be loaded" >&5
8116 printf %s "checking if DLL gdi32 can be loaded... " >&6; }
8117 if test ${brltty_cv_dll_gdi32+y}
8118 then :
8119 printf %s "(cached) " >&6
8120 else case e in #(
8121 e)
8122 # If cross-compiling we cannot run the test program.
8123 # Assume that all Windows libraries exist.
8124 if test "x${cross_compiling}" = "xyes"
8125 then
8126 brltty_cv_dll_gdi32=yes
8127 else
8128 if test "$cross_compiling" = yes
8129 then :
8130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8132 as_fn_error $? "cannot run test program while cross compiling
8133 See 'config.log' for more details" "$LINENO" 5; }
8134 else case e in #(
8135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137
8138
8139 #include <windows.h>
8140 int main () {
8141 return !LoadLibrary("gdi32.DLL");
8142 }
8143
8144
8145 _ACEOF
8146 if ac_fn_c_try_run "$LINENO"
8147 then :
8148 brltty_cv_dll_gdi32=yes
8149 else case e in #(
8150 e) brltty_cv_dll_gdi32=no
8151 ;;
8152 esac
8153 fi
8154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8155 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8156 esac
8157 fi
8158
8159 fi
8160
8161 ;;
8162 esac
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_dll_gdi32" >&5
8165 printf "%s\n" "$brltty_cv_dll_gdi32" >&6; }
8166 if test "${brltty_cv_dll_gdi32}" = "yes"
8167 then
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
8169 printf %s "checking for main in -lgdi32... " >&6; }
8170 if test ${ac_cv_lib_gdi32_main+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else case e in #(
8174 e) ac_check_lib_save_LIBS=$LIBS
8175 LIBS="-lgdi32 $LIBS"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178
8179
8180 int
8181 main (void)
8182 {
8183 return main ();
8184 ;
8185 return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"
8189 then :
8190 ac_cv_lib_gdi32_main=yes
8191 else case e in #(
8192 e) ac_cv_lib_gdi32_main=no ;;
8193 esac
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8196 conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS ;;
8198 esac
8199 fi
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
8201 printf "%s\n" "$ac_cv_lib_gdi32_main" >&6; }
8202 if test "x$ac_cv_lib_gdi32_main" = xyes
8203 then :
8204 printf "%s\n" "#define HAVE_LIBGDI32 1" >>confdefs.h
8205
8206 LIBS="-lgdi32 $LIBS"
8207
8208 fi
8209
8210
8211 else
8212 :
8213
8214 fi
8215 ;;
8216 *)
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8218 printf %s "checking for library containing socket... " >&6; }
8219 if test ${ac_cv_search_socket+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else case e in #(
8223 e) ac_func_search_save_LIBS=$LIBS
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply.
8230 The 'extern "C"' is for builds by C++ compilers;
8231 although this is not generally supported in C code supporting it here
8232 has little cost and some practical benefit (sr 110532). */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char socket (void);
8237 int
8238 main (void)
8239 {
8240 return socket ();
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 for ac_lib in '' socket network
8246 do
8247 if test -z "$ac_lib"; then
8248 ac_res="none required"
8249 else
8250 ac_res=-l$ac_lib
8251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8252 fi
8253 if ac_fn_c_try_link "$LINENO"
8254 then :
8255 ac_cv_search_socket=$ac_res
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8258 conftest$ac_exeext
8259 if test ${ac_cv_search_socket+y}
8260 then :
8261 break
8262 fi
8263 done
8264 if test ${ac_cv_search_socket+y}
8265 then :
8266
8267 else case e in #(
8268 e) ac_cv_search_socket=no ;;
8269 esac
8270 fi
8271 rm conftest.$ac_ext
8272 LIBS=$ac_func_search_save_LIBS ;;
8273 esac
8274 fi
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8276 printf "%s\n" "$ac_cv_search_socket" >&6; }
8277 ac_res=$ac_cv_search_socket
8278 if test "$ac_res" != no
8279 then :
8280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8281
8282 fi
8283
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
8285 printf %s "checking for library containing inet_ntoa... " >&6; }
8286 if test ${ac_cv_search_inet_ntoa+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else case e in #(
8290 e) ac_func_search_save_LIBS=$LIBS
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293
8294 /* Override any GCC internal prototype to avoid an error.
8295 Use char because int might match the return type of a GCC
8296 builtin and then its argument prototype would still apply.
8297 The 'extern "C"' is for builds by C++ compilers;
8298 although this is not generally supported in C code supporting it here
8299 has little cost and some practical benefit (sr 110532). */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 char inet_ntoa (void);
8304 int
8305 main (void)
8306 {
8307 return inet_ntoa ();
8308 ;
8309 return 0;
8310 }
8311 _ACEOF
8312 for ac_lib in '' nsl
8313 do
8314 if test -z "$ac_lib"; then
8315 ac_res="none required"
8316 else
8317 ac_res=-l$ac_lib
8318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8319 fi
8320 if ac_fn_c_try_link "$LINENO"
8321 then :
8322 ac_cv_search_inet_ntoa=$ac_res
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8325 conftest$ac_exeext
8326 if test ${ac_cv_search_inet_ntoa+y}
8327 then :
8328 break
8329 fi
8330 done
8331 if test ${ac_cv_search_inet_ntoa+y}
8332 then :
8333
8334 else case e in #(
8335 e) ac_cv_search_inet_ntoa=no ;;
8336 esac
8337 fi
8338 rm conftest.$ac_ext
8339 LIBS=$ac_func_search_save_LIBS ;;
8340 esac
8341 fi
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
8343 printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; }
8344 ac_res=$ac_cv_search_inet_ntoa
8345 if test "$ac_res" != no
8346 then :
8347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8348
8349 fi
8350
8351 ;;
8352 esac
8353
8354 install_messages=
8355 ac_header= ac_cache=
8356 for ac_item in $ac_header_c_list
8357 do
8358 if test $ac_cache; then
8359 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8360 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8361 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8362 fi
8363 ac_header= ac_cache=
8364 elif test $ac_header; then
8365 ac_cache=$ac_item
8366 else
8367 ac_header=$ac_item
8368 fi
8369 done
8370
8371
8372
8373
8374
8375
8376
8377
8378 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8379 then :
8380
8381 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8382
8383 fi
8384 # Check whether --enable-i18n was given.
8385 if test ${enable_i18n+y}
8386 then :
8387 enableval=$enable_i18n;
8388 else case e in #(
8389 e) enableval="yes" ;;
8390 esac
8391 fi
8392
8393
8394 brltty_enabled_i18n="${enableval}"
8395
8396 brltty_summary_lines="${brltty_summary_lines}
8397 i18n: ${brltty_enabled_i18n}"
8398
8399 if test "${enableval}" = "no"
8400 then
8401 :
8402 else
8403 if test "${enableval}" = "yes"
8404 then
8405 brltty_ok=true
8406 else
8407 brltty_ok=false
8408 fi
8409
8410 if "${brltty_ok}"
8411 then
8412 test "${MSGMERGE}" = "false" || {
8413 install_messages=install-messages
8414
8415 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8416 if test "x$ac_cv_header_libintl_h" = xyes
8417 then :
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
8419 printf %s "checking for main in -lintl... " >&6; }
8420 if test ${ac_cv_lib_intl_main+y}
8421 then :
8422 printf %s "(cached) " >&6
8423 else case e in #(
8424 e) ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-lintl $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428
8429
8430 int
8431 main (void)
8432 {
8433 return main ();
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_link "$LINENO"
8439 then :
8440 ac_cv_lib_intl_main=yes
8441 else case e in #(
8442 e) ac_cv_lib_intl_main=no ;;
8443 esac
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LIBS=$ac_check_lib_save_LIBS ;;
8448 esac
8449 fi
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
8451 printf "%s\n" "$ac_cv_lib_intl_main" >&6; }
8452 if test "x$ac_cv_lib_intl_main" = xyes
8453 then :
8454 printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
8455
8456 LIBS="-lintl $LIBS"
8457
8458 fi
8459
8460
8461 printf "%s\n" "#define ENABLE_I18N_SUPPORT 1" >>confdefs.h
8462
8463
8464 fi
8465
8466 }
8467
8468 else
8469 as_fn_error $? "invalid selection: --enable-i18n=${enableval}" "$LINENO" 5
8470 fi
8471 fi
8472
8473
8474 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
8475 if test "x$ac_cv_func_wcslen" = xyes
8476 then :
8477 for ac_header in wchar.h
8478 do :
8479 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
8480 if test "x$ac_cv_header_wchar_h" = xyes
8481 then :
8482 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
8483 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
8484 if test "x$ac_cv_func_wcwidth" = xyes
8485 then :
8486 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
8487
8488 fi
8489
8490
8491 fi
8492
8493 done
8494 fi
8495
8496
8497 for ac_header in glob.h
8498 do :
8499 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
8500 if test "x$ac_cv_header_glob_h" = xyes
8501 then :
8502 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
8503 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
8504 if test "x$ac_cv_func_glob" = xyes
8505 then :
8506 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
8507
8508 fi
8509
8510
8511 fi
8512
8513 done
8514
8515 for ac_header in langinfo.h
8516 do :
8517 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
8518 if test "x$ac_cv_header_langinfo_h" = xyes
8519 then :
8520 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
8521 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
8522 if test "x$ac_cv_func_nl_langinfo" = xyes
8523 then :
8524 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
8525
8526 fi
8527
8528
8529 fi
8530
8531 done
8532
8533 icu_includes=""
8534 icu_libs=""
8535 # Check whether --enable-icu was given.
8536 if test ${enable_icu+y}
8537 then :
8538 enableval=$enable_icu;
8539 else case e in #(
8540 e) enableval="yes" ;;
8541 esac
8542 fi
8543
8544
8545 brltty_enabled_icu="${enableval}"
8546
8547 brltty_summary_lines="${brltty_summary_lines}
8548 icu: ${brltty_enabled_icu}"
8549
8550 if test "${enableval}" = "no"
8551 then
8552 :
8553 else
8554 if test "${enableval}" = "yes"
8555 then
8556 brltty_ok=true
8557 else
8558 brltty_ok=false
8559 fi
8560
8561 if "${brltty_ok}"
8562 then
8563 icu_package=""
8564 icu_includes=""
8565 icu_libs=""
8566
8567 for package_specification in icu-uc
8568 do
8569 ${PKG_CONFIG} --exists "${package_specification}" && {
8570 printf "%s\n" "#define HAVE_PKG_ICU 1" >>confdefs.h
8571
8572
8573 icu_package="${package_specification%% *}"
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: icu package: ${icu_package}" >&5
8575 printf "%s\n" "$as_me: icu package: ${icu_package}" >&6;}
8576
8577 icu_includes=`${PKG_CONFIG} --cflags-only-I "${icu_package}"`
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: icu includes: ${icu_includes}" >&5
8579 printf "%s\n" "$as_me: icu includes: ${icu_includes}" >&6;}
8580
8581 icu_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${icu_package}"`
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: icu libs: ${icu_libs}" >&5
8583 printf "%s\n" "$as_me: icu libs: ${icu_libs}" >&6;}
8584
8585 ac_fn_c_check_header_compile "$LINENO" "unicode/unorm2.h" "ac_cv_header_unicode_unorm2_h" "$ac_includes_default"
8586 if test "x$ac_cv_header_unicode_unorm2_h" = xyes
8587 then :
8588 printf "%s\n" "#define HAVE_UNICODE_UNORM2_H 1" >>confdefs.h
8589
8590 fi
8591
8592
8593 printf "%s\n" "#define HAVE_ICU 1" >>confdefs.h
8594
8595
8596 if test "${brltty_standalone_programs}" = "yes"
8597 then
8598 icu_libs="`echo ${icu_libs} | sed -e 's/\(-l\)\(icu\)/\1s\2/g'`"
8599 fi
8600
8601 break
8602 }
8603 done
8604
8605 test -n "${icu_package}" || {
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: icu support not available" >&5
8607 printf "%s\n" "$as_me: WARNING: icu support not available" >&2;}
8608 }
8609
8610
8611
8612
8613
8614
8615 else
8616 as_fn_error $? "invalid selection: --enable-icu=${enableval}" "$LINENO" 5
8617 fi
8618 fi
8619
8620
8621
8622 # Check whether --enable-iconv was given.
8623 if test ${enable_iconv+y}
8624 then :
8625 enableval=$enable_iconv;
8626 else case e in #(
8627 e) enableval="yes" ;;
8628 esac
8629 fi
8630
8631
8632 brltty_enabled_iconv="${enableval}"
8633
8634 brltty_summary_lines="${brltty_summary_lines}
8635 iconv: ${brltty_enabled_iconv}"
8636
8637 if test "${enableval}" = "no"
8638 then
8639 :
8640 else
8641 if test "${enableval}" = "yes"
8642 then
8643 brltty_ok=true
8644 else
8645 brltty_ok=false
8646 fi
8647
8648 if "${brltty_ok}"
8649 then
8650 for ac_header in iconv.h
8651 do :
8652 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
8653 if test "x$ac_cv_header_iconv_h" = xyes
8654 then :
8655 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
8656
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5
8658 printf %s "checking for main in -liconv... " >&6; }
8659 if test ${ac_cv_lib_iconv_main+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else case e in #(
8663 e) ac_check_lib_save_LIBS=$LIBS
8664 LIBS="-liconv $LIBS"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667
8668
8669 int
8670 main (void)
8671 {
8672 return main ();
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_c_try_link "$LINENO"
8678 then :
8679 ac_cv_lib_iconv_main=yes
8680 else case e in #(
8681 e) ac_cv_lib_iconv_main=no ;;
8682 esac
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS ;;
8687 esac
8688 fi
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5
8690 printf "%s\n" "$ac_cv_lib_iconv_main" >&6; }
8691 if test "x$ac_cv_lib_iconv_main" = xyes
8692 then :
8693 printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h
8694
8695 LIBS="-liconv $LIBS"
8696
8697 fi
8698
8699
8700 fi
8701
8702 done
8703
8704 else
8705 as_fn_error $? "invalid selection: --enable-iconv=${enableval}" "$LINENO" 5
8706 fi
8707 fi
8708
8709 # Check whether --enable-polkit was given.
8710 if test ${enable_polkit+y}
8711 then :
8712 enableval=$enable_polkit;
8713 else case e in #(
8714 e) enableval="yes" ;;
8715 esac
8716 fi
8717
8718
8719 brltty_enabled_polkit="${enableval}"
8720
8721 brltty_summary_lines="${brltty_summary_lines}
8722 polkit: ${brltty_enabled_polkit}"
8723
8724 if test "${enableval}" = "no"
8725 then
8726 :
8727 else
8728 if test "${enableval}" = "yes"
8729 then
8730 brltty_ok=true
8731 else
8732 brltty_ok=false
8733 fi
8734
8735 if "${brltty_ok}"
8736 then
8737 polkit_package=""
8738 polkit_includes=""
8739 polkit_libs=""
8740
8741 for package_specification in polkit-gobject-1
8742 do
8743 ${PKG_CONFIG} --exists "${package_specification}" && {
8744 printf "%s\n" "#define HAVE_PKG_POLKIT 1" >>confdefs.h
8745
8746
8747 polkit_package="${package_specification%% *}"
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: polkit package: ${polkit_package}" >&5
8749 printf "%s\n" "$as_me: polkit package: ${polkit_package}" >&6;}
8750
8751 polkit_includes=`${PKG_CONFIG} --cflags-only-I "${polkit_package}"`
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: polkit includes: ${polkit_includes}" >&5
8753 printf "%s\n" "$as_me: polkit includes: ${polkit_includes}" >&6;}
8754
8755 polkit_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${polkit_package}"`
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: polkit libs: ${polkit_libs}" >&5
8757 printf "%s\n" "$as_me: polkit libs: ${polkit_libs}" >&6;}
8758
8759
8760 printf "%s\n" "#define HAVE_POLKIT 1" >>confdefs.h
8761
8762
8763 break
8764 }
8765 done
8766
8767 test -n "${polkit_package}" || {
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: polkit support not available" >&5
8769 printf "%s\n" "$as_me: WARNING: polkit support not available" >&2;}
8770 }
8771
8772
8773
8774
8775
8776
8777 else
8778 as_fn_error $? "invalid selection: --enable-polkit=${enableval}" "$LINENO" 5
8779 fi
8780 fi
8781
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthreads are available" >&5
8783 printf %s "checking if pthreads are available... " >&6; }
8784 if test ${brltty_cv_have_pthreads+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else case e in #(
8788 e) SYSCFLAGS="${SYSCFLAGS} -D_REENTRANT"
8789 case "${host_os}"
8790 in
8791 mingw32*)
8792 brltty_cv_have_pthreads=yes
8793 ;;
8794 *)
8795 brltty_cv_have_pthreads=no
8796 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8797 if test "x$ac_cv_header_pthread_h" = xyes
8798 then :
8799 case "${host_os}"
8800 in
8801 solaris*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing _getfp" >&5
8802 printf %s "checking for library containing _getfp... " >&6; }
8803 if test ${ac_cv_search__getfp+y}
8804 then :
8805 printf %s "(cached) " >&6
8806 else case e in #(
8807 e) ac_func_search_save_LIBS=$LIBS
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810
8811 /* Override any GCC internal prototype to avoid an error.
8812 Use char because int might match the return type of a GCC
8813 builtin and then its argument prototype would still apply.
8814 The 'extern "C"' is for builds by C++ compilers;
8815 although this is not generally supported in C code supporting it here
8816 has little cost and some practical benefit (sr 110532). */
8817 #ifdef __cplusplus
8818 extern "C"
8819 #endif
8820 char _getfp (void);
8821 int
8822 main (void)
8823 {
8824 return _getfp ();
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 for ac_lib in '' pthread
8830 do
8831 if test -z "$ac_lib"; then
8832 ac_res="none required"
8833 else
8834 ac_res=-l$ac_lib
8835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8836 fi
8837 if ac_fn_c_try_link "$LINENO"
8838 then :
8839 ac_cv_search__getfp=$ac_res
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8842 conftest$ac_exeext
8843 if test ${ac_cv_search__getfp+y}
8844 then :
8845 break
8846 fi
8847 done
8848 if test ${ac_cv_search__getfp+y}
8849 then :
8850
8851 else case e in #(
8852 e) ac_cv_search__getfp=no ;;
8853 esac
8854 fi
8855 rm conftest.$ac_ext
8856 LIBS=$ac_func_search_save_LIBS ;;
8857 esac
8858 fi
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search__getfp" >&5
8860 printf "%s\n" "$ac_cv_search__getfp" >&6; }
8861 ac_res=$ac_cv_search__getfp
8862 if test "$ac_res" != no
8863 then :
8864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8865 brltty_cv_have_pthreads=yes
8866 fi
8867 ;;
8868 hpux*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __pthread_cancel_stack" >&5
8869 printf %s "checking for library containing __pthread_cancel_stack... " >&6; }
8870 if test ${ac_cv_search___pthread_cancel_stack+y}
8871 then :
8872 printf %s "(cached) " >&6
8873 else case e in #(
8874 e) ac_func_search_save_LIBS=$LIBS
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877
8878 /* Override any GCC internal prototype to avoid an error.
8879 Use char because int might match the return type of a GCC
8880 builtin and then its argument prototype would still apply.
8881 The 'extern "C"' is for builds by C++ compilers;
8882 although this is not generally supported in C code supporting it here
8883 has little cost and some practical benefit (sr 110532). */
8884 #ifdef __cplusplus
8885 extern "C"
8886 #endif
8887 char __pthread_cancel_stack (void);
8888 int
8889 main (void)
8890 {
8891 return __pthread_cancel_stack ();
8892 ;
8893 return 0;
8894 }
8895 _ACEOF
8896 for ac_lib in '' pthread
8897 do
8898 if test -z "$ac_lib"; then
8899 ac_res="none required"
8900 else
8901 ac_res=-l$ac_lib
8902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8903 fi
8904 if ac_fn_c_try_link "$LINENO"
8905 then :
8906 ac_cv_search___pthread_cancel_stack=$ac_res
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8909 conftest$ac_exeext
8910 if test ${ac_cv_search___pthread_cancel_stack+y}
8911 then :
8912 break
8913 fi
8914 done
8915 if test ${ac_cv_search___pthread_cancel_stack+y}
8916 then :
8917
8918 else case e in #(
8919 e) ac_cv_search___pthread_cancel_stack=no ;;
8920 esac
8921 fi
8922 rm conftest.$ac_ext
8923 LIBS=$ac_func_search_save_LIBS ;;
8924 esac
8925 fi
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___pthread_cancel_stack" >&5
8927 printf "%s\n" "$ac_cv_search___pthread_cancel_stack" >&6; }
8928 ac_res=$ac_cv_search___pthread_cancel_stack
8929 if test "$ac_res" != no
8930 then :
8931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8932 brltty_cv_have_pthreads=yes
8933 fi
8934 ;;
8935 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8936 printf %s "checking for library containing pthread_create... " >&6; }
8937 if test ${ac_cv_search_pthread_create+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else case e in #(
8941 e) ac_func_search_save_LIBS=$LIBS
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944
8945 /* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply.
8948 The 'extern "C"' is for builds by C++ compilers;
8949 although this is not generally supported in C code supporting it here
8950 has little cost and some practical benefit (sr 110532). */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char pthread_create (void);
8955 int
8956 main (void)
8957 {
8958 return pthread_create ();
8959 ;
8960 return 0;
8961 }
8962 _ACEOF
8963 for ac_lib in '' pthread c_r
8964 do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required"
8967 else
8968 ac_res=-l$ac_lib
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8970 fi
8971 if ac_fn_c_try_link "$LINENO"
8972 then :
8973 ac_cv_search_pthread_create=$ac_res
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8976 conftest$ac_exeext
8977 if test ${ac_cv_search_pthread_create+y}
8978 then :
8979 break
8980 fi
8981 done
8982 if test ${ac_cv_search_pthread_create+y}
8983 then :
8984
8985 else case e in #(
8986 e) ac_cv_search_pthread_create=no ;;
8987 esac
8988 fi
8989 rm conftest.$ac_ext
8990 LIBS=$ac_func_search_save_LIBS ;;
8991 esac
8992 fi
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8994 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
8995 ac_res=$ac_cv_search_pthread_create
8996 if test "$ac_res" != no
8997 then :
8998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8999 brltty_cv_have_pthreads=yes
9000 fi
9001 ;;
9002 esac
9003
9004 fi
9005
9006 ;;
9007 esac
9008 ;;
9009 esac
9010 fi
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_have_pthreads" >&5
9012 printf "%s\n" "$brltty_cv_have_pthreads" >&6; }
9013
9014 # Check whether --enable-api was given.
9015 if test ${enable_api+y}
9016 then :
9017 enableval=$enable_api;
9018 else case e in #(
9019 e) enableval="yes" ;;
9020 esac
9021 fi
9022
9023
9024 brltty_enabled_api="${enableval}"
9025
9026 brltty_summary_lines="${brltty_summary_lines}
9027 api: ${brltty_enabled_api}"
9028
9029 if test "${enableval}" = "no"
9030 then
9031 :
9032 else
9033 if test "${enableval}" = "yes"
9034 then
9035 brltty_ok=true
9036 else
9037 brltty_ok=false
9038 fi
9039
9040 if "${brltty_ok}"
9041 then
9042
9043 test "${brltty_cv_have_pthreads}" = "yes" && {
9044
9045 printf "%s\n" "#define ENABLE_API 1" >>confdefs.h
9046
9047
9048 # Check whether --with-api-parameters was given.
9049 if test ${with_api_parameters+y}
9050 then :
9051 withval=$with_api_parameters; api_parameters="${withval}"
9052 else case e in #(
9053 e) api_parameters="yes"
9054 ;;
9055 esac
9056 fi
9057
9058 if test "${api_parameters}" = "no"
9059 then
9060 api_parameters=""
9061 elif test "${api_parameters}" = "yes"
9062 then
9063 api_parameters=""
9064 fi
9065
9066
9067 printf "%s\n" "#define API_PARAMETERS \"${api_parameters}\"" >>confdefs.h
9068
9069 brltty_summary_lines="${brltty_summary_lines}
9070 api-parameters: ${api_parameters}"
9071
9072 api_server_objects='brlapi_server.$O brlapi_keyranges.$O auth.$O'
9073 api_libraries="${LIBS}"
9074
9075 all_api="all-api"
9076 build_api="api"
9077 install_api="install-api"
9078 api_ref='$(API_LIBS)'
9079
9080 api_dynamic_library="api-dynamic-library"
9081 install_api_libraries="install-api-libraries"
9082 uninstall_api_libraries="uninstall-api-libraries"
9083 default_api_socket_path="${localstatedir}/lib/BrlAPI"
9084
9085 case "${host_os}"
9086 in
9087 cygwin*|mingw*)
9088
9089 printf "%s\n" "#define BRLAPI_WIN32 1" >>confdefs.h
9090
9091 default_api_socket_path='\\\\.\\pipe\\BrlAPI'
9092 api_dynamic_library="api-dynamic-library-windows"
9093 install_api_libraries="install-api-libraries-windows"
9094 uninstall_api_libraries="uninstall-api-libraries-windows"
9095 ;;
9096 esac
9097
9098
9099 # Check whether --with-api-socket-path was given.
9100 if test ${with_api_socket_path+y}
9101 then :
9102 withval=$with_api_socket_path; api_socket_path="${withval}"
9103 else case e in #(
9104 e) api_socket_path="${default_api_socket_path}"
9105 ;;
9106 esac
9107 fi
9108
9109
9110 # Check whether --enable-emacs-bindings was given.
9111 if test ${enable_emacs_bindings+y}
9112 then :
9113 enableval=$enable_emacs_bindings;
9114 else case e in #(
9115 e) enableval="yes" ;;
9116 esac
9117 fi
9118
9119
9120 brltty_enabled_emacs_bindings="${enableval}"
9121
9122 brltty_summary_lines="${brltty_summary_lines}
9123 emacs-bindings: ${brltty_enabled_emacs_bindings}"
9124
9125 if test "${enableval}" = "no"
9126 then
9127 :
9128 else
9129 if test "${enableval}" = "yes"
9130 then
9131 brltty_ok=true
9132 else
9133 brltty_ok=false
9134 fi
9135
9136 if "${brltty_ok}"
9137 then
9138
9139 EMACS_OK=false
9140 EMACS=""
9141
9142 ac_fn_c_check_header_compile "$LINENO" "emacs-module.h" "ac_cv_header_emacs_module_h" "$ac_includes_default"
9143 if test "x$ac_cv_header_emacs_module_h" = xyes
9144 then :
9145 # Extract the first word of "emacs", so it can be a program name with args.
9146 set dummy emacs; ac_word=$2
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 printf %s "checking for $ac_word... " >&6; }
9149 if test ${ac_cv_path_EMACS+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else case e in #(
9153 e) case $EMACS in
9154 [\\/]* | ?:[\\/]*)
9155 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9156 ;;
9157 *)
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9160 do
9161 IFS=$as_save_IFS
9162 case $as_dir in #(((
9163 '') as_dir=./ ;;
9164 */) ;;
9165 *) as_dir=$as_dir/ ;;
9166 esac
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9169 ac_cv_path_EMACS="$as_dir$ac_word$ac_exec_ext"
9170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9171 break 2
9172 fi
9173 done
9174 done
9175 IFS=$as_save_IFS
9176
9177 ;;
9178 esac ;;
9179 esac
9180 fi
9181 EMACS=$ac_cv_path_EMACS
9182 if test -n "$EMACS"; then
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
9184 printf "%s\n" "$EMACS" >&6; }
9185 else
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 printf "%s\n" "no" >&6; }
9188 fi
9189
9190
9191
9192 if test -n "${EMACS}"
9193 then
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: emacs editor: ${EMACS}" >&5
9195 printf "%s\n" "$as_me: emacs editor: ${EMACS}" >&6;}
9196 EMACS_OK=true
9197 else
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: emacs editor not found" >&5
9199 printf "%s\n" "$as_me: WARNING: emacs editor not found" >&2;}
9200 EMACS="EMACS_EDITOR_NOT_FOUND_BY_CONFIGURE"
9201 fi
9202
9203 fi
9204
9205
9206
9207
9208 EMACS_SUBDIRECTORY=Emacs
9209
9210
9211 if "${EMACS_OK}"
9212 then
9213 api_bindings="${api_bindings} Emacs"
9214 else
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Emacs BrlAPI bindings not included" >&5
9216 printf "%s\n" "$as_me: WARNING: Emacs BrlAPI bindings not included" >&2;}
9217 fi
9218
9219
9220 else
9221 as_fn_error $? "invalid selection: --enable-emacs-bindings=${enableval}" "$LINENO" 5
9222 fi
9223 fi
9224 # Check whether --enable-java-bindings was given.
9225 if test ${enable_java_bindings+y}
9226 then :
9227 enableval=$enable_java_bindings;
9228 else case e in #(
9229 e) enableval="yes" ;;
9230 esac
9231 fi
9232
9233
9234 brltty_enabled_java_bindings="${enableval}"
9235
9236 brltty_summary_lines="${brltty_summary_lines}
9237 java-bindings: ${brltty_enabled_java_bindings}"
9238
9239 if test "${enableval}" = "no"
9240 then
9241 :
9242 else
9243 if test "${enableval}" = "yes"
9244 then
9245 brltty_ok=true
9246 else
9247 brltty_ok=false
9248 fi
9249
9250 if "${brltty_ok}"
9251 then
9252
9253 JAVA_OK=false
9254
9255 JAVAC=JAVA_COMPILER_NOT_FOUND_BY_CONFIGURE
9256
9257 JAVADOC=JAVA_DOCUMENT_COMMAND_NOT_FOUND_BY_CONFIGURE
9258
9259 JAR=JAVA_ARCHIVE_COMMAND_NOT_FOUND_BY_CONFIGURE
9260
9261
9262 java_compiler_name="javac"
9263 java_compiler_path=""
9264
9265 if test -n "${JAVA_HOME}"
9266 then
9267 test -n "${java_compiler_path}" || {
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"${JAVA_HOME}\" is a JDK" >&5
9269 printf %s "checking if \"${JAVA_HOME}\" is a JDK... " >&6; }
9270 brltty_path=""${JAVA_HOME}"/bin/${java_compiler_name}"
9271
9272 if test -f "${brltty_path}" -a -x "${brltty_path}"
9273 then
9274 java_compiler_path="${brltty_path}"
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9276 printf "%s\n" "yes" >&6; }
9277 else
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 printf "%s\n" "no" >&6; }
9280 fi
9281 }
9282
9283 else
9284 test -n "${java_compiler_path}" || {
9285 # Extract the first word of "${java_compiler_name}", so it can be a program name with args.
9286 set dummy ${java_compiler_name}; ac_word=$2
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 printf %s "checking for $ac_word... " >&6; }
9289 if test ${ac_cv_path_java_compiler_path+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else case e in #(
9293 e) case $java_compiler_path in
9294 [\\/]* | ?:[\\/]*)
9295 ac_cv_path_java_compiler_path="$java_compiler_path" # Let the user override the test with a path.
9296 ;;
9297 *)
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301 IFS=$as_save_IFS
9302 case $as_dir in #(((
9303 '') as_dir=./ ;;
9304 */) ;;
9305 *) as_dir=$as_dir/ ;;
9306 esac
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9309 ac_cv_path_java_compiler_path="$as_dir$ac_word$ac_exec_ext"
9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313 done
9314 done
9315 IFS=$as_save_IFS
9316
9317 ;;
9318 esac ;;
9319 esac
9320 fi
9321 java_compiler_path=$ac_cv_path_java_compiler_path
9322 if test -n "$java_compiler_path"; then
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $java_compiler_path" >&5
9324 printf "%s\n" "$java_compiler_path" >&6; }
9325 else
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 printf "%s\n" "no" >&6; }
9328 fi
9329
9330
9331
9332 }
9333
9334
9335 test -n "${java_compiler_path}" || {
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"/usr/java\" is a JDK" >&5
9337 printf %s "checking if \"/usr/java\" is a JDK... " >&6; }
9338 brltty_path=""/usr/java"/bin/${java_compiler_name}"
9339
9340 if test -f "${brltty_path}" -a -x "${brltty_path}"
9341 then
9342 java_compiler_path="${brltty_path}"
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9344 printf "%s\n" "yes" >&6; }
9345 else
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 printf "%s\n" "no" >&6; }
9348 fi
9349 }
9350
9351 test -n "${java_compiler_path}" || {
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"/usr/lib/jvm/default-java\" is a JDK" >&5
9353 printf %s "checking if \"/usr/lib/jvm/default-java\" is a JDK... " >&6; }
9354 brltty_path=""/usr/lib/jvm/default-java"/bin/${java_compiler_name}"
9355
9356 if test -f "${brltty_path}" -a -x "${brltty_path}"
9357 then
9358 java_compiler_path="${brltty_path}"
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9360 printf "%s\n" "yes" >&6; }
9361 else
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 printf "%s\n" "no" >&6; }
9364 fi
9365 }
9366
9367 test -n "${java_compiler_path}" || {
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"/usr/lib/jvm/java\" is a JDK" >&5
9369 printf %s "checking if \"/usr/lib/jvm/java\" is a JDK... " >&6; }
9370 brltty_path=""/usr/lib/jvm/java"/bin/${java_compiler_name}"
9371
9372 if test -f "${brltty_path}" -a -x "${brltty_path}"
9373 then
9374 java_compiler_path="${brltty_path}"
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9376 printf "%s\n" "yes" >&6; }
9377 else
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 printf "%s\n" "no" >&6; }
9380 fi
9381 }
9382
9383 test -n "${java_compiler_path}" || {
9384 # Extract the first word of "gcj", so it can be a program name with args.
9385 set dummy gcj; ac_word=$2
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 printf %s "checking for $ac_word... " >&6; }
9388 if test ${ac_cv_path_java_compiler_path+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) case $java_compiler_path in
9393 [\\/]* | ?:[\\/]*)
9394 ac_cv_path_java_compiler_path="$java_compiler_path" # Let the user override the test with a path.
9395 ;;
9396 *)
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400 IFS=$as_save_IFS
9401 case $as_dir in #(((
9402 '') as_dir=./ ;;
9403 */) ;;
9404 *) as_dir=$as_dir/ ;;
9405 esac
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9408 ac_cv_path_java_compiler_path="$as_dir$ac_word$ac_exec_ext"
9409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412 done
9413 done
9414 IFS=$as_save_IFS
9415
9416 ;;
9417 esac ;;
9418 esac
9419 fi
9420 java_compiler_path=$ac_cv_path_java_compiler_path
9421 if test -n "$java_compiler_path"; then
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $java_compiler_path" >&5
9423 printf "%s\n" "$java_compiler_path" >&6; }
9424 else
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 printf "%s\n" "no" >&6; }
9427 fi
9428
9429
9430
9431 }
9432
9433
9434 fi
9435
9436 test -n "${java_compiler_path}" && {
9437 brltty_path=`realpath -- "${java_compiler_path}"` && java_compiler_path="${brltty_path}"
9438 test "${java_compiler_path##*/}" = "javavm" && java_compiler_path=""
9439 }
9440
9441 test -n "${java_compiler_path}" || {
9442 test -n "${JAVA_VERSION}" || export JAVA_VERSION=11+
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Java version: ${JAVA_VERSION}" >&5
9444 printf "%s\n" "$as_me: Java version: ${JAVA_VERSION}" >&6;}
9445
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking JVM path" >&5
9447 printf %s "checking JVM path... " >&6; }
9448 brltty_path=`"${srcdir}/Tools/javacmd" jvmpath`
9449
9450
9451 if test -n "${brltty_path}"
9452 then
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${brltty_path}" >&5
9454 printf "%s\n" "${brltty_path}" >&6; }
9455 java_compiler_path="${brltty_path%/*}/${java_compiler_name}"
9456 else
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9458 printf "%s\n" "not found" >&6; }
9459 fi
9460
9461 }
9462
9463
9464 if test -n "${java_compiler_path}"
9465 then
9466 JAVA_OK=true
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Java compiler: ${java_compiler_path}" >&5
9468 printf "%s\n" "$as_me: Java compiler: ${java_compiler_path}" >&6;}
9469
9470 java_compiler_name="${java_compiler_path##*/}"
9471 java_source_encoding="UTF-8"
9472
9473 case "${java_compiler_name}"
9474 in
9475 javac) java_compiler_options="-encoding ${java_source_encoding}";;
9476 gcj) java_compiler_options="-C --encoding=${java_source_encoding}";;
9477
9478 *) java_compiler_options=""
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Java compiler name not handled: ${java_compiler_name}" >&5
9480 printf "%s\n" "$as_me: WARNING: Java compiler name not handled: ${java_compiler_name}" >&2;}
9481 ;;
9482 esac
9483
9484 JAVAC="'${java_compiler_path}' ${java_compiler_options}"
9485 java_commands_directory=`$as_dirname -- "${java_compiler_path}" ||
9486 $as_expr X"${java_compiler_path}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487 X"${java_compiler_path}" : 'X\(//\)[^/]' \| \
9488 X"${java_compiler_path}" : 'X\(//\)$' \| \
9489 X"${java_compiler_path}" : 'X\(/\)' \| . 2>/dev/null ||
9490 printf "%s\n" X"${java_compiler_path}" |
9491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9492 s//\1/
9493 q
9494 }
9495 /^X\(\/\/\)[^/].*/{
9496 s//\1/
9497 q
9498 }
9499 /^X\(\/\/\)$/{
9500 s//\1/
9501 q
9502 }
9503 /^X\(\/\).*/{
9504 s//\1/
9505 q
9506 }
9507 s/.*/./; q'`
9508 java_home_directory=`$as_dirname -- "${java_commands_directory}" ||
9509 $as_expr X"${java_commands_directory}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"${java_commands_directory}" : 'X\(//\)[^/]' \| \
9511 X"${java_commands_directory}" : 'X\(//\)$' \| \
9512 X"${java_commands_directory}" : 'X\(/\)' \| . 2>/dev/null ||
9513 printf "%s\n" X"${java_commands_directory}" |
9514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9515 s//\1/
9516 q
9517 }
9518 /^X\(\/\/\)[^/].*/{
9519 s//\1/
9520 q
9521 }
9522 /^X\(\/\/\)$/{
9523 s//\1/
9524 q
9525 }
9526 /^X\(\/\).*/{
9527 s//\1/
9528 q
9529 }
9530 s/.*/./; q'`
9531
9532 for ac_prog in javadoc gjdoc
9533 do
9534 # Extract the first word of "$ac_prog", so it can be a program name with args.
9535 set dummy $ac_prog; ac_word=$2
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 printf %s "checking for $ac_word... " >&6; }
9538 if test ${ac_cv_path_java_document_command+y}
9539 then :
9540 printf %s "(cached) " >&6
9541 else case e in #(
9542 e) case $java_document_command in
9543 [\\/]* | ?:[\\/]*)
9544 ac_cv_path_java_document_command="$java_document_command" # Let the user override the test with a path.
9545 ;;
9546 *)
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in "${java_commands_directory}"
9549 do
9550 IFS=$as_save_IFS
9551 case $as_dir in #(((
9552 '') as_dir=./ ;;
9553 */) ;;
9554 *) as_dir=$as_dir/ ;;
9555 esac
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9558 ac_cv_path_java_document_command="$as_dir$ac_word$ac_exec_ext"
9559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9560 break 2
9561 fi
9562 done
9563 done
9564 IFS=$as_save_IFS
9565
9566 ;;
9567 esac ;;
9568 esac
9569 fi
9570 java_document_command=$ac_cv_path_java_document_command
9571 if test -n "$java_document_command"; then
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $java_document_command" >&5
9573 printf "%s\n" "$java_document_command" >&6; }
9574 else
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 printf "%s\n" "no" >&6; }
9577 fi
9578
9579
9580 test -n "$java_document_command" && break
9581 done
9582
9583
9584 test -n "${java_document_command}" || java_document_command=":"
9585 JAVADOC="'${java_document_command}' -encoding ${java_source_encoding}"
9586
9587 for ac_prog in jar gjar
9588 do
9589 # Extract the first word of "$ac_prog", so it can be a program name with args.
9590 set dummy $ac_prog; ac_word=$2
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 printf %s "checking for $ac_word... " >&6; }
9593 if test ${ac_cv_path_java_archive_command+y}
9594 then :
9595 printf %s "(cached) " >&6
9596 else case e in #(
9597 e) case $java_archive_command in
9598 [\\/]* | ?:[\\/]*)
9599 ac_cv_path_java_archive_command="$java_archive_command" # Let the user override the test with a path.
9600 ;;
9601 *)
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in "${java_commands_directory}"
9604 do
9605 IFS=$as_save_IFS
9606 case $as_dir in #(((
9607 '') as_dir=./ ;;
9608 */) ;;
9609 *) as_dir=$as_dir/ ;;
9610 esac
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9613 ac_cv_path_java_archive_command="$as_dir$ac_word$ac_exec_ext"
9614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9615 break 2
9616 fi
9617 done
9618 done
9619 IFS=$as_save_IFS
9620
9621 ;;
9622 esac ;;
9623 esac
9624 fi
9625 java_archive_command=$ac_cv_path_java_archive_command
9626 if test -n "$java_archive_command"; then
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $java_archive_command" >&5
9628 printf "%s\n" "$java_archive_command" >&6; }
9629 else
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 printf "%s\n" "no" >&6; }
9632 fi
9633
9634
9635 test -n "$java_archive_command" && break
9636 done
9637
9638
9639 JAR="'${java_archive_command}'"
9640
9641 test -n "${JAVA_JAR_DIR}" || {
9642 for directory in /usr/share/java /mingw
9643 do
9644 test -d "${directory}" && {
9645 JAVA_JAR_DIR="${directory}"
9646 break
9647 }
9648 done
9649 }
9650
9651 if test -n "${JAVA_JAR_DIR}"
9652 then
9653 JAVA_JAR="yes"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Java jar installation directory: ${JAVA_JAR_DIR}" >&5
9655 printf "%s\n" "$as_me: Java jar installation directory: ${JAVA_JAR_DIR}" >&6;}
9656 else
9657 JAVA_JAR="no"
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no commonly used jar installation directory" >&5
9659 printf "%s\n" "$as_me: WARNING: no commonly used jar installation directory" >&2;}
9660 fi
9661
9662
9663
9664
9665 test -n "${JAVA_JNI_DIR}" || {
9666 for directory in /usr/lib*/java /usr/lib*/jni /usr/lib/*/jni /mingw
9667 do
9668 test -d "${directory}" && {
9669 JAVA_JNI_DIR="${directory}"
9670 break
9671 }
9672 done
9673 }
9674
9675 if test -n "${JAVA_JNI_DIR}"
9676 then
9677 JAVA_JNI="yes"
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Java jni installation directory: ${JAVA_JNI_DIR}" >&5
9679 printf "%s\n" "$as_me: Java jni installation directory: ${JAVA_JNI_DIR}" >&6;}
9680 else
9681 JAVA_JNI="no"
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no commonly used jni installation directory" >&5
9683 printf "%s\n" "$as_me: WARNING: no commonly used jni installation directory" >&2;}
9684 fi
9685
9686
9687
9688
9689
9690 JAVA_JNI_INC="${java_home_directory}/include"
9691 JAVA_JNI_HDR="jni.h"
9692 JAVA_JNI_FLAGS=""
9693 as_ac_Header=`printf "%s\n" "ac_cv_header_${JAVA_JNI_HDR}" | sed "$as_sed_sh"`
9694 ac_fn_c_check_header_compile "$LINENO" "${JAVA_JNI_HDR}" "$as_ac_Header" "$ac_includes_default"
9695 if eval test \"x\$"$as_ac_Header"\" = x"yes"
9696 then :
9697
9698 else case e in #(
9699 e) if test -e "${JAVA_JNI_INC}/${JAVA_JNI_HDR}"
9700 then :
9701 JAVA_JNI_FLAGS="-I${JAVA_JNI_INC}"
9702 else case e in #(
9703 e) JAVA_OK=false ;;
9704 esac
9705 fi ;;
9706 esac
9707 fi
9708
9709
9710 "${JAVA_OK}" && {
9711 set -- "${JAVA_JNI_INC}"/*/jni_md.h
9712
9713 if test ${#} -eq 1
9714 then
9715 brltty_directory=`$as_dirname -- "${1}" ||
9716 $as_expr X"${1}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9717 X"${1}" : 'X\(//\)[^/]' \| \
9718 X"${1}" : 'X\(//\)$' \| \
9719 X"${1}" : 'X\(/\)' \| . 2>/dev/null ||
9720 printf "%s\n" X"${1}" |
9721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9722 s//\1/
9723 q
9724 }
9725 /^X\(\/\/\)[^/].*/{
9726 s//\1/
9727 q
9728 }
9729 /^X\(\/\/\)$/{
9730 s//\1/
9731 q
9732 }
9733 /^X\(\/\).*/{
9734 s//\1/
9735 q
9736 }
9737 s/.*/./; q'`
9738 JAVA_JNI_FLAGS="${JAVA_JNI_FLAGS} -I${brltty_directory}"
9739 elif test ${#} -gt 0
9740 then
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: more than one machine-dependent Java header found: ${*}" >&5
9742 printf "%s\n" "$as_me: WARNING: more than one machine-dependent Java header found: ${*}" >&2;}
9743 JAVA_OK=false
9744 fi
9745 }
9746
9747
9748 JAVA_JNI_INC="'${JAVA_JNI_INC}'"
9749
9750
9751 else
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Java compiler not found" >&5
9753 printf "%s\n" "$as_me: WARNING: Java compiler not found" >&2;}
9754 fi
9755
9756 if "${JAVA_OK}"
9757 then
9758 api_bindings="${api_bindings} Java"
9759 else
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Java BrlAPI bindings not included" >&5
9761 printf "%s\n" "$as_me: WARNING: Java BrlAPI bindings not included" >&2;}
9762 fi
9763
9764
9765 else
9766 as_fn_error $? "invalid selection: --enable-java-bindings=${enableval}" "$LINENO" 5
9767 fi
9768 fi
9769 # Check whether --enable-lisp-bindings was given.
9770 if test ${enable_lisp_bindings+y}
9771 then :
9772 enableval=$enable_lisp_bindings;
9773 else case e in #(
9774 e) enableval="yes" ;;
9775 esac
9776 fi
9777
9778
9779 brltty_enabled_lisp_bindings="${enableval}"
9780
9781 brltty_summary_lines="${brltty_summary_lines}
9782 lisp-bindings: ${brltty_enabled_lisp_bindings}"
9783
9784 if test "${enableval}" = "no"
9785 then
9786 :
9787 else
9788 if test "${enableval}" = "yes"
9789 then
9790 brltty_ok=true
9791 else
9792 brltty_ok=false
9793 fi
9794
9795 if "${brltty_ok}"
9796 then
9797
9798 LISP_OK=true
9799
9800
9801 if "${LISP_OK}"
9802 then
9803 api_bindings="${api_bindings} Lisp"
9804 else
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Lisp BrlAPI bindings not included" >&5
9806 printf "%s\n" "$as_me: WARNING: Lisp BrlAPI bindings not included" >&2;}
9807 fi
9808
9809
9810 else
9811 as_fn_error $? "invalid selection: --enable-lisp-bindings=${enableval}" "$LINENO" 5
9812 fi
9813 fi
9814 # Check whether --enable-lua-bindings was given.
9815 if test ${enable_lua_bindings+y}
9816 then :
9817 enableval=$enable_lua_bindings;
9818 else case e in #(
9819 e) enableval="yes" ;;
9820 esac
9821 fi
9822
9823
9824 brltty_enabled_lua_bindings="${enableval}"
9825
9826 brltty_summary_lines="${brltty_summary_lines}
9827 lua-bindings: ${brltty_enabled_lua_bindings}"
9828
9829 if test "${enableval}" = "no"
9830 then
9831 :
9832 else
9833 if test "${enableval}" = "yes"
9834 then
9835 brltty_ok=true
9836 else
9837 brltty_ok=false
9838 fi
9839
9840 if "${brltty_ok}"
9841 then
9842
9843 LUA_OK=false
9844 LUA=""
9845 LUA_LIBRARY_DIRECTORY=""
9846
9847 lua_package=""
9848 lua_includes=""
9849 lua_libs=""
9850
9851 for package_specification in lua5.4 lua
9852 do
9853 ${PKG_CONFIG} --exists "${package_specification}" && {
9854 printf "%s\n" "#define HAVE_PKG_LUA 1" >>confdefs.h
9855
9856
9857 lua_package="${package_specification%% *}"
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lua package: ${lua_package}" >&5
9859 printf "%s\n" "$as_me: lua package: ${lua_package}" >&6;}
9860
9861 lua_includes=`${PKG_CONFIG} --cflags-only-I "${lua_package}"`
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lua includes: ${lua_includes}" >&5
9863 printf "%s\n" "$as_me: lua includes: ${lua_includes}" >&6;}
9864
9865 lua_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${lua_package}"`
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lua libs: ${lua_libs}" >&5
9867 printf "%s\n" "$as_me: lua libs: ${lua_libs}" >&6;}
9868
9869 for ac_prog in lua5.4 lua
9870 do
9871 # Extract the first word of "$ac_prog", so it can be a program name with args.
9872 set dummy $ac_prog; ac_word=$2
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 printf %s "checking for $ac_word... " >&6; }
9875 if test ${ac_cv_path_LUA+y}
9876 then :
9877 printf %s "(cached) " >&6
9878 else case e in #(
9879 e) case $LUA in
9880 [\\/]* | ?:[\\/]*)
9881 ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
9882 ;;
9883 *)
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 for as_dir in $PATH
9886 do
9887 IFS=$as_save_IFS
9888 case $as_dir in #(((
9889 '') as_dir=./ ;;
9890 */) ;;
9891 *) as_dir=$as_dir/ ;;
9892 esac
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9895 ac_cv_path_LUA="$as_dir$ac_word$ac_exec_ext"
9896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9897 break 2
9898 fi
9899 done
9900 done
9901 IFS=$as_save_IFS
9902
9903 ;;
9904 esac ;;
9905 esac
9906 fi
9907 LUA=$ac_cv_path_LUA
9908 if test -n "$LUA"; then
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
9910 printf "%s\n" "$LUA" >&6; }
9911 else
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 printf "%s\n" "no" >&6; }
9914 fi
9915
9916
9917 test -n "$LUA" && break
9918 done
9919
9920
9921 if test -n "${LUA}"
9922 then
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lua shell: ${LUA}" >&5
9924 printf "%s\n" "$as_me: Lua shell: ${LUA}" >&6;}
9925 LUA_LIBRARY_DIRECTORY=`"${srcdir}/Tools/luacmd" libdir`
9926
9927
9928 if test -n "${LUA_LIBRARY_DIRECTORY}"
9929 then
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lua library directory: ${LUA_LIBRARY_DIRECTORY}" >&5
9931 printf "%s\n" "$as_me: Lua library directory: ${LUA_LIBRARY_DIRECTORY}" >&6;}
9932 LUA_OK=true
9933 else
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Lua library directory not found" >&5
9935 printf "%s\n" "$as_me: WARNING: Lua library directory not found" >&2;}
9936 fi
9937 else
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Lua shell not found" >&5
9939 printf "%s\n" "$as_me: WARNING: Lua shell not found" >&2;}
9940 LUA="LUA_SHELL_NOT_FOUND_BY_CONFIGURE"
9941 fi
9942
9943 break
9944 }
9945 done
9946
9947 test -n "${lua_package}" || {
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lua support not available" >&5
9949 printf "%s\n" "$as_me: WARNING: lua support not available" >&2;}
9950 }
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961 if "${LUA_OK}"
9962 then
9963 api_bindings="${api_bindings} Lua"
9964 else
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Lua BrlAPI bindings not included" >&5
9966 printf "%s\n" "$as_me: WARNING: Lua BrlAPI bindings not included" >&2;}
9967 fi
9968
9969
9970 else
9971 as_fn_error $? "invalid selection: --enable-lua-bindings=${enableval}" "$LINENO" 5
9972 fi
9973 fi
9974 # Check whether --enable-ocaml-bindings was given.
9975 if test ${enable_ocaml_bindings+y}
9976 then :
9977 enableval=$enable_ocaml_bindings;
9978 else case e in #(
9979 e) enableval="yes" ;;
9980 esac
9981 fi
9982
9983
9984 brltty_enabled_ocaml_bindings="${enableval}"
9985
9986 brltty_summary_lines="${brltty_summary_lines}
9987 ocaml-bindings: ${brltty_enabled_ocaml_bindings}"
9988
9989 if test "${enableval}" = "no"
9990 then
9991 :
9992 else
9993 if test "${enableval}" = "yes"
9994 then
9995 brltty_ok=true
9996 else
9997 brltty_ok=false
9998 fi
9999
10000 if "${brltty_ok}"
10001 then
10002
10003 # Check for Ocaml compilers
10004
10005 # we first look for ocamlc in the path; if not present, we fail
10006 # Extract the first word of "ocamlc", so it can be a program name with args.
10007 set dummy ocamlc; ac_word=$2
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 printf %s "checking for $ac_word... " >&6; }
10010 if test ${ac_cv_prog_OCAMLC+y}
10011 then :
10012 printf %s "(cached) " >&6
10013 else case e in #(
10014 e) if test -n "$OCAMLC"; then
10015 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
10016 else
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020 IFS=$as_save_IFS
10021 case $as_dir in #(((
10022 '') as_dir=./ ;;
10023 */) ;;
10024 *) as_dir=$as_dir/ ;;
10025 esac
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_OCAMLC="ocamlc"
10029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032 done
10033 done
10034 IFS=$as_save_IFS
10035
10036 test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
10037 fi ;;
10038 esac
10039 fi
10040 OCAMLC=$ac_cv_prog_OCAMLC
10041 if test -n "$OCAMLC"; then
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
10043 printf "%s\n" "$OCAMLC" >&6; }
10044 else
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 printf "%s\n" "no" >&6; }
10047 fi
10048
10049
10050 if test "$OCAMLC" = no ; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlc." >&5
10052 printf "%s\n" "$as_me: WARNING: Cannot find ocamlc." >&2;}
10053 OCAML_OK=false
10054 else
10055 # checking for ocamlmklib
10056 # Extract the first word of "ocamlmklib", so it can be a program name with args.
10057 set dummy ocamlmklib; ac_word=$2
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 printf %s "checking for $ac_word... " >&6; }
10060 if test ${ac_cv_prog_OCAMLMKLIB+y}
10061 then :
10062 printf %s "(cached) " >&6
10063 else case e in #(
10064 e) if test -n "$OCAMLMKLIB"; then
10065 ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test.
10066 else
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10069 do
10070 IFS=$as_save_IFS
10071 case $as_dir in #(((
10072 '') as_dir=./ ;;
10073 */) ;;
10074 *) as_dir=$as_dir/ ;;
10075 esac
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10078 ac_cv_prog_OCAMLMKLIB="ocamlmklib"
10079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10080 break 2
10081 fi
10082 done
10083 done
10084 IFS=$as_save_IFS
10085
10086 test -z "$ac_cv_prog_OCAMLMKLIB" && ac_cv_prog_OCAMLMKLIB="no"
10087 fi ;;
10088 esac
10089 fi
10090 OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB
10091 if test -n "$OCAMLMKLIB"; then
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
10093 printf "%s\n" "$OCAMLMKLIB" >&6; }
10094 else
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 printf "%s\n" "no" >&6; }
10097 fi
10098
10099
10100 if test "$OCAMLMKLIB" = no ; then
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlmklib." >&5
10102 printf "%s\n" "$as_me: WARNING: Cannot find ocamlmklib." >&2;}
10103 OCAML_OK=false
10104 else
10105 OCAML_OK=true
10106 # we extract Ocaml version number and library path
10107 OCAMLVERSION=`$OCAMLC -version`
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OCaml version is $OCAMLVERSION" >&5
10109 printf "%s\n" "$as_me: OCaml version is $OCAMLVERSION" >&6;}
10110
10111 OCAMLLIB=`$OCAMLC -where`
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OCaml library path is $OCAMLLIB" >&5
10113 printf "%s\n" "$as_me: OCaml library path is $OCAMLLIB" >&6;}
10114
10115 # then we look for ocamlopt; if not present, we issue a warning
10116 # if the version is not the same, we also discard it
10117 # we set OCAMLBEST to "opt" or "byte", whether ocamlopt is available or not
10118 # Extract the first word of "ocamlopt", so it can be a program name with args.
10119 set dummy ocamlopt; ac_word=$2
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 printf %s "checking for $ac_word... " >&6; }
10122 if test ${ac_cv_prog_OCAMLOPT+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else case e in #(
10126 e) if test -n "$OCAMLOPT"; then
10127 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132 IFS=$as_save_IFS
10133 case $as_dir in #(((
10134 '') as_dir=./ ;;
10135 */) ;;
10136 *) as_dir=$as_dir/ ;;
10137 esac
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10140 ac_cv_prog_OCAMLOPT="ocamlopt"
10141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10142 break 2
10143 fi
10144 done
10145 done
10146 IFS=$as_save_IFS
10147
10148 test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
10149 fi ;;
10150 esac
10151 fi
10152 OCAMLOPT=$ac_cv_prog_OCAMLOPT
10153 if test -n "$OCAMLOPT"; then
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
10155 printf "%s\n" "$OCAMLOPT" >&6; }
10156 else
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 printf "%s\n" "no" >&6; }
10159 fi
10160
10161
10162 OCAMLBEST=byte
10163 OCAML_NCLIB=
10164 if test "$OCAMLOPT" = no ; then
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
10166 printf "%s\n" "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
10167 else
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ocamlopt version" >&5
10169 printf %s "checking ocamlopt version... " >&6; }
10170 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
10171 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: differs from ocamlc; ocamlopt discarded." >&5
10173 printf "%s\n" "differs from ocamlc; ocamlopt discarded." >&6; }
10174 OCAMLOPT=no
10175 else
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10177 printf "%s\n" "ok" >&6; }
10178 OCAMLBEST=opt
10179 OCAML_NCLIB="\$(OCAML_LIB).cmxa"
10180 fi
10181 fi
10182
10183 # checking for ocamlc.opt
10184 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
10185 set dummy ocamlc.opt; ac_word=$2
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 printf %s "checking for $ac_word... " >&6; }
10188 if test ${ac_cv_prog_OCAMLCDOTOPT+y}
10189 then :
10190 printf %s "(cached) " >&6
10191 else case e in #(
10192 e) if test -n "$OCAMLCDOTOPT"; then
10193 ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
10194 else
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10197 do
10198 IFS=$as_save_IFS
10199 case $as_dir in #(((
10200 '') as_dir=./ ;;
10201 */) ;;
10202 *) as_dir=$as_dir/ ;;
10203 esac
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_OCAMLCDOTOPT="ocamlc.opt"
10207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 test -z "$ac_cv_prog_OCAMLCDOTOPT" && ac_cv_prog_OCAMLCDOTOPT="no"
10215 fi ;;
10216 esac
10217 fi
10218 OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT
10219 if test -n "$OCAMLCDOTOPT"; then
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
10221 printf "%s\n" "$OCAMLCDOTOPT" >&6; }
10222 else
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 printf "%s\n" "no" >&6; }
10225 fi
10226
10227
10228 if test "$OCAMLCDOTOPT" != no ; then
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ocamlc.opt version" >&5
10230 printf %s "checking ocamlc.opt version... " >&6; }
10231 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
10232 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: differs from ocamlc; ocamlc.opt discarded." >&5
10234 printf "%s\n" "differs from ocamlc; ocamlc.opt discarded." >&6; }
10235 else
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10237 printf "%s\n" "ok" >&6; }
10238 OCAMLC=$OCAMLCDOTOPT
10239 fi
10240 fi
10241
10242 # checking for ocamlopt.opt
10243 if test "$OCAMLOPT" != no ; then
10244 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
10245 set dummy ocamlopt.opt; ac_word=$2
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 printf %s "checking for $ac_word... " >&6; }
10248 if test ${ac_cv_prog_OCAMLOPTDOTOPT+y}
10249 then :
10250 printf %s "(cached) " >&6
10251 else case e in #(
10252 e) if test -n "$OCAMLOPTDOTOPT"; then
10253 ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258 IFS=$as_save_IFS
10259 case $as_dir in #(((
10260 '') as_dir=./ ;;
10261 */) ;;
10262 *) as_dir=$as_dir/ ;;
10263 esac
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10266 ac_cv_prog_OCAMLOPTDOTOPT="ocamlopt.opt"
10267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270 done
10271 done
10272 IFS=$as_save_IFS
10273
10274 test -z "$ac_cv_prog_OCAMLOPTDOTOPT" && ac_cv_prog_OCAMLOPTDOTOPT="no"
10275 fi ;;
10276 esac
10277 fi
10278 OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT
10279 if test -n "$OCAMLOPTDOTOPT"; then
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
10281 printf "%s\n" "$OCAMLOPTDOTOPT" >&6; }
10282 else
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 printf "%s\n" "no" >&6; }
10285 fi
10286
10287
10288 if test "$OCAMLOPTDOTOPT" != no ; then
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ocamlc.opt version" >&5
10290 printf %s "checking ocamlc.opt version... " >&6; }
10291 TMPVER=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
10292 if test "$TMPVER" != "$OCAMLVERSION" ; then
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: differs from ocamlc; ocamlopt.opt discarded." >&5
10294 printf "%s\n" "differs from ocamlc; ocamlopt.opt discarded." >&6; }
10295 else
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10297 printf "%s\n" "ok" >&6; }
10298 OCAMLOPT=$OCAMLOPTDOTOPT
10299 fi
10300 fi
10301 fi
10302
10303 # platform
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
10305 printf %s "checking platform... " >&6; }
10306 if echo "let _ = Sys.os_type;;" | ocaml | grep -q Win32; then
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
10308 printf "%s\n" "Win32" >&6; }
10309 OCAMLWIN32=yes
10310 OCAML_CLIBS=libbrlapi_stubs.a
10311 elif echo "let _ = Sys.os_type;;" | ocaml | grep -q Cygwin; then
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cygwin" >&5
10313 printf "%s\n" "Cygwin" >&6; }
10314 OCAMLWIN32=yes
10315 OCAML_CLIBS=libbrlapi_stubs.a
10316 else
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unix" >&5
10318 printf "%s\n" "Unix" >&6; }
10319 OCAMLWIN32=no
10320 OCAML_CLIBS="libbrlapi_stubs.a dllbrlapi_stubs.so"
10321 fi
10322
10323 # checking for ocamlfindlib
10324 # Extract the first word of "ocamlfind", so it can be a program name with args.
10325 set dummy ocamlfind; ac_word=$2
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 printf %s "checking for $ac_word... " >&6; }
10328 if test ${ac_cv_prog_OCAMLFIND+y}
10329 then :
10330 printf %s "(cached) " >&6
10331 else case e in #(
10332 e) if test -n "$OCAMLFIND"; then
10333 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 case $as_dir in #(((
10340 '') as_dir=./ ;;
10341 */) ;;
10342 *) as_dir=$as_dir/ ;;
10343 esac
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_OCAMLFIND="ocamlfind"
10347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350 done
10351 done
10352 IFS=$as_save_IFS
10353
10354 test -z "$ac_cv_prog_OCAMLFIND" && ac_cv_prog_OCAMLFIND="no"
10355 fi ;;
10356 esac
10357 fi
10358 OCAMLFIND=$ac_cv_prog_OCAMLFIND
10359 if test -n "$OCAMLFIND"; then
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10361 printf "%s\n" "$OCAMLFIND" >&6; }
10362 else
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 printf "%s\n" "no" >&6; }
10365 fi
10366
10367
10368 if test "$OCAMLFIND" = ocamlfind; then
10369 OCAMLC='ocamlfind ocamlc'
10370 if test "$OCAMLOPT" = ocamlopt; then
10371 OCAMLOPT='ocamlfind ocamlopt'
10372 fi
10373 OCAML_INSTALL_TARGET=install-with-findlib
10374 OCAML_UNINSTALL_TARGET=uninstall-without-findlib
10375 else
10376 OCAML_INSTALL_TARGET=install-without-findlib
10377 OCAML_UNINSTALL_TARGET=uninstall-without-findlib
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlfind." >&5
10379 printf "%s\n" "$as_me: WARNING: Cannot find ocamlfind." >&2;}
10380 fi
10381 fi
10382 fi
10383
10384 # substitutions to perform
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400 if "${OCAML_OK}"
10401 then
10402 api_bindings="${api_bindings} OCaml"
10403 else
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OCaml BrlAPI bindings not included" >&5
10405 printf "%s\n" "$as_me: WARNING: OCaml BrlAPI bindings not included" >&2;}
10406 fi
10407
10408
10409 else
10410 as_fn_error $? "invalid selection: --enable-ocaml-bindings=${enableval}" "$LINENO" 5
10411 fi
10412 fi
10413 # Check whether --enable-python-bindings was given.
10414 if test ${enable_python_bindings+y}
10415 then :
10416 enableval=$enable_python_bindings;
10417 else case e in #(
10418 e) enableval="yes" ;;
10419 esac
10420 fi
10421
10422
10423 brltty_enabled_python_bindings="${enableval}"
10424
10425 brltty_summary_lines="${brltty_summary_lines}
10426 python-bindings: ${brltty_enabled_python_bindings}"
10427
10428 if test "${enableval}" = "no"
10429 then
10430 :
10431 else
10432 if test "${enableval}" = "yes"
10433 then
10434 brltty_ok=true
10435 else
10436 brltty_ok=false
10437 fi
10438
10439 if "${brltty_ok}"
10440 then
10441
10442 PYTHON_OK=true
10443
10444 # Suppress a new warning introduced in Python 3.6:
10445 #
10446 # Python runtime initialized with LC_CTYPE=C
10447 # (a locale with default ASCII encoding),
10448 # which may cause Unicode compatibility problems.
10449 # Using C.UTF-8, C.utf8, or UTF-8 (if available)
10450 # as alternative Unicode-compatible locales is recommended.
10451 #
10452 export PYTHONCOERCECLOCALE=0
10453
10454 for ac_prog in python python3
10455 do
10456 # Extract the first word of "$ac_prog", so it can be a program name with args.
10457 set dummy $ac_prog; ac_word=$2
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 printf %s "checking for $ac_word... " >&6; }
10460 if test ${ac_cv_path_PYTHON+y}
10461 then :
10462 printf %s "(cached) " >&6
10463 else case e in #(
10464 e) case $PYTHON in
10465 [\\/]* | ?:[\\/]*)
10466 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10467 ;;
10468 *)
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472 IFS=$as_save_IFS
10473 case $as_dir in #(((
10474 '') as_dir=./ ;;
10475 */) ;;
10476 *) as_dir=$as_dir/ ;;
10477 esac
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10480 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
10481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484 done
10485 done
10486 IFS=$as_save_IFS
10487
10488 ;;
10489 esac ;;
10490 esac
10491 fi
10492 PYTHON=$ac_cv_path_PYTHON
10493 if test -n "$PYTHON"; then
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10495 printf "%s\n" "$PYTHON" >&6; }
10496 else
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 printf "%s\n" "no" >&6; }
10499 fi
10500
10501
10502 test -n "$PYTHON" && break
10503 done
10504 test -n "$PYTHON" || PYTHON="python"
10505
10506 if test -n "${PYTHON}"
10507 then
10508 test -n "${PYTHON_VERSION}" || {
10509 PYTHON_VERSION=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" version`
10510
10511
10512 if test -n "${PYTHON_VERSION}"
10513 then
10514 test "${PYTHON_VERSION}" = "3" || {
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python version ${PYTHON_VERSION} is not supported" >&5
10516 printf "%s\n" "$as_me: WARNING: Python version ${PYTHON_VERSION} is not supported" >&2;}
10517 PYTHON_OK=false
10518 }
10519 else
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python version not defined" >&5
10521 printf "%s\n" "$as_me: WARNING: Python version not defined" >&2;}
10522 PYTHON_OK=false
10523 fi
10524 }
10525
10526
10527 test -n "${PYTHON_CPPFLAGS}" || {
10528 python_include_directory=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" incdir`
10529
10530
10531 if test -n "${python_include_directory}"
10532 then
10533 PYTHON_CPPFLAGS="-I${python_include_directory}"
10534
10535 test -f "${python_include_directory}/Python.h" || {
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python developer environment not installed" >&5
10537 printf "%s\n" "$as_me: WARNING: Python developer environment not installed" >&2;}
10538 PYTHON_OK=false
10539 }
10540 else
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python include directory not found" >&5
10542 printf "%s\n" "$as_me: WARNING: Python include directory not found" >&2;}
10543 PYTHON_OK=false
10544 fi
10545 }
10546
10547
10548 test -n "${PYTHON_LIBS}" || {
10549 PYTHON_LIBS="-lpython${PYTHON_VERSION}"
10550 python_library_directory=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" libdir`
10551
10552
10553 if test -n "${python_library_directory}"
10554 then
10555 PYTHON_LIBS="-L${python_library_directory}/config ${PYTHON_LIBS}"
10556 else
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python library directory not found" >&5
10558 printf "%s\n" "$as_me: WARNING: Python library directory not found" >&2;}
10559 PYTHON_OK=false
10560 fi
10561 }
10562
10563
10564 test -n "${PYTHON_EXTRA_LIBS}" || {
10565 PYTHON_EXTRA_LIBS=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" libopts`
10566
10567 }
10568
10569
10570 test -n "${PYTHON_EXTRA_LDFLAGS}" || {
10571 PYTHON_EXTRA_LDFLAGS=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" linkopts`
10572
10573 }
10574
10575
10576 test -n "${PYTHON_SITE_PKG}" || {
10577 PYTHON_SITE_PKG=`"${PYTHON}" "${srcdir}/Tools/pythoncmd" pkgdir`
10578
10579
10580 test -n "${PYTHON_SITE_PKG}" || {
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python packages directory not found" >&5
10582 printf "%s\n" "$as_me: WARNING: Python packages directory not found" >&2;}
10583 PYTHON_OK=false
10584 }
10585 }
10586
10587 else
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python interpreter not found" >&5
10589 printf "%s\n" "$as_me: WARNING: Python interpreter not found" >&2;}
10590 PYTHON_OK=false
10591 fi
10592
10593 for ac_prog in cython3 cython
10594 do
10595 # Extract the first word of "$ac_prog", so it can be a program name with args.
10596 set dummy $ac_prog; ac_word=$2
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 printf %s "checking for $ac_word... " >&6; }
10599 if test ${ac_cv_path_CYTHON+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else case e in #(
10603 e) case $CYTHON in
10604 [\\/]* | ?:[\\/]*)
10605 ac_cv_path_CYTHON="$CYTHON" # Let the user override the test with a path.
10606 ;;
10607 *)
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 case $as_dir in #(((
10613 '') as_dir=./ ;;
10614 */) ;;
10615 *) as_dir=$as_dir/ ;;
10616 esac
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10619 ac_cv_path_CYTHON="$as_dir$ac_word$ac_exec_ext"
10620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623 done
10624 done
10625 IFS=$as_save_IFS
10626
10627 ;;
10628 esac ;;
10629 esac
10630 fi
10631 CYTHON=$ac_cv_path_CYTHON
10632 if test -n "$CYTHON"; then
10633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
10634 printf "%s\n" "$CYTHON" >&6; }
10635 else
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 printf "%s\n" "no" >&6; }
10638 fi
10639
10640
10641 test -n "$CYTHON" && break
10642 done
10643
10644 test -n "${CYTHON}" || {
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cython compiler not found" >&5
10646 printf "%s\n" "$as_me: WARNING: Cython compiler not found" >&2;}
10647 PYTHON_OK=false
10648 }
10649
10650 if test "${GCC}" = "yes"
10651 then
10652 CYTHON_CFLAGS="-Wno-parentheses -Wno-unused -fno-strict-aliasing -U_POSIX_C_SOURCE -U_XOPEN_SOURCE"
10653 else
10654 case "${host_os}"
10655 in
10656 *)
10657 CYTHON_CFLAGS=""
10658 ;;
10659 esac
10660 fi
10661
10662
10663
10664
10665 if "${PYTHON_OK}"
10666 then
10667 api_bindings="${api_bindings} Python"
10668 else
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python BrlAPI bindings not included" >&5
10670 printf "%s\n" "$as_me: WARNING: Python BrlAPI bindings not included" >&2;}
10671 fi
10672
10673
10674 else
10675 as_fn_error $? "invalid selection: --enable-python-bindings=${enableval}" "$LINENO" 5
10676 fi
10677 fi
10678 # Check whether --enable-tcl-bindings was given.
10679 if test ${enable_tcl_bindings+y}
10680 then :
10681 enableval=$enable_tcl_bindings;
10682 else case e in #(
10683 e) enableval="yes" ;;
10684 esac
10685 fi
10686
10687
10688 brltty_enabled_tcl_bindings="${enableval}"
10689
10690 brltty_summary_lines="${brltty_summary_lines}
10691 tcl-bindings: ${brltty_enabled_tcl_bindings}"
10692
10693 if test "${enableval}" = "no"
10694 then
10695 :
10696 else
10697 if test "${enableval}" = "yes"
10698 then
10699 brltty_ok=true
10700 else
10701 brltty_ok=false
10702 fi
10703
10704 if "${brltty_ok}"
10705 then
10706
10707 for ac_prog in tclsh tclsh8.5 tclsh8.6 tclsh8.7
10708 do
10709 # Extract the first word of "$ac_prog", so it can be a program name with args.
10710 set dummy $ac_prog; ac_word=$2
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 printf %s "checking for $ac_word... " >&6; }
10713 if test ${ac_cv_path_TCLSH+y}
10714 then :
10715 printf %s "(cached) " >&6
10716 else case e in #(
10717 e) case $TCLSH in
10718 [\\/]* | ?:[\\/]*)
10719 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
10720 ;;
10721 *)
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725 IFS=$as_save_IFS
10726 case $as_dir in #(((
10727 '') as_dir=./ ;;
10728 */) ;;
10729 *) as_dir=$as_dir/ ;;
10730 esac
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10733 ac_cv_path_TCLSH="$as_dir$ac_word$ac_exec_ext"
10734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10735 break 2
10736 fi
10737 done
10738 done
10739 IFS=$as_save_IFS
10740
10741 ;;
10742 esac ;;
10743 esac
10744 fi
10745 TCLSH=$ac_cv_path_TCLSH
10746 if test -n "$TCLSH"; then
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
10748 printf "%s\n" "$TCLSH" >&6; }
10749 else
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 printf "%s\n" "no" >&6; }
10752 fi
10753
10754
10755 test -n "$TCLSH" && break
10756 done
10757
10758
10759 TCL_OK=false
10760 TCL_CPPFLAGS=""
10761 TCL_LIBS=""
10762 TCL_DIR=""
10763
10764 if test -n "${TCLSH}"
10765 then
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Tcl shell: ${TCLSH}" >&5
10767 printf "%s\n" "$as_me: Tcl shell: ${TCLSH}" >&6;}
10768 tcl_configuration_script=`"${TCLSH}" "${srcdir}/Tools/tclcmd" config`
10769
10770
10771 if test -n "${tcl_configuration_script}"
10772 then
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Tcl configuration script: ${tcl_configuration_script}" >&5
10774 printf "%s\n" "$as_me: Tcl configuration script: ${tcl_configuration_script}" >&6;}
10775
10776 if test ! -r "${tcl_configuration_script}"
10777 then
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tcl configuration script not readable: ${tcl_configuration_script}" >&5
10779 printf "%s\n" "$as_me: WARNING: Tcl configuration script not readable: ${tcl_configuration_script}" >&2;}
10780 elif . "${tcl_configuration_script}"
10781 then
10782 TCL_OK=true
10783 TCL_CPPFLAGS="${TCL_INCLUDE_SPEC}"
10784 TCL_LIBS="${TCL_LIB_SPEC}"
10785 fi
10786 else
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tcl configuration script not found" >&5
10788 printf "%s\n" "$as_me: WARNING: Tcl configuration script not found" >&2;}
10789 fi
10790 else
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tcl shell not found" >&5
10792 printf "%s\n" "$as_me: WARNING: Tcl shell not found" >&2;}
10793 TCLSH="TCL_SHELL_NOT_FOUND_BY_CONFIGURE"
10794 fi
10795
10796 ${TCL_OK} && {
10797 test -n "${TCL_PACKAGE_PATH}" && {
10798 directories="${TCL_PACKAGE_PATH}"
10799
10800 test "${directories#*:}" = "${directories}" && {
10801 # There's no colon so it's an old-style (before tcl-8.6.15) path.
10802 # Replace each sequence of one or more spaces with a single colon.
10803 directories="${directories// /:}"
10804 }
10805
10806 while test "${#directories}" -gt 0
10807 do
10808 directory="${directories%%:*}"
10809 directories="${directories#*:}"
10810 test "${#directory}" -eq 0 && continue
10811
10812 test `expr "${directory}" : '.*/lib'` -eq 0 || {
10813 TCL_DIR="${directory}"
10814 break
10815 }
10816 done
10817 }
10818
10819 if test -n "${TCL_DIR}"
10820 then
10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Tcl packages directory: ${TCL_DIR}" >&5
10822 printf "%s\n" "$as_me: Tcl packages directory: ${TCL_DIR}" >&6;}
10823 else
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tcl packages directory not found" >&5
10825 printf "%s\n" "$as_me: WARNING: Tcl packages directory not found" >&2;}
10826 TCL_DIR="TCL_PACKAGES_DIRECTORY_NOT_FOUND_BY_CONFIGURE"
10827 fi
10828 }
10829
10830
10831
10832
10833
10834
10835 if "${TCL_OK}"
10836 then
10837 api_bindings="${api_bindings} Tcl"
10838 else
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tcl BrlAPI bindings not included" >&5
10840 printf "%s\n" "$as_me: WARNING: Tcl BrlAPI bindings not included" >&2;}
10841 fi
10842
10843
10844 else
10845 as_fn_error $? "invalid selection: --enable-tcl-bindings=${enableval}" "$LINENO" 5
10846 fi
10847 fi
10848
10849 test -n "${api_bindings}" && {
10850 for brltty_bindings_directory in ${api_bindings}
10851 do
10852 brltty_build_directories="${brltty_build_directories} Bindings/${brltty_bindings_directory}"
10853 done
10854
10855 all_api_bindings="all-api-bindings"
10856 install_api_bindings="install-api-bindings"
10857 }
10858
10859 }
10860
10861 else
10862 as_fn_error $? "invalid selection: --enable-api=${enableval}" "$LINENO" 5
10863 fi
10864 fi
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 api_authkeyfile=brlapi.key
10878
10879
10880 brltty_summary_lines="${brltty_summary_lines}
10881 api-socket-path: ${api_socket_path}"
10882 brltty_expanded='"${api_authkeyfile}"'
10883 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
10884 do
10885 eval 'brltty_expanded="'"${brltty_expanded}"'"'
10886 done
10887
10888
10889 printf "%s\n" "#define BRLAPI_AUTHKEYFILE \"${brltty_expanded}\"" >>confdefs.h
10890
10891
10892 # Check whether --enable-api-fuzzing was given.
10893 if test ${enable_api_fuzzing+y}
10894 then :
10895 enableval=$enable_api_fuzzing;
10896 else case e in #(
10897 e) enableval="no" ;;
10898 esac
10899 fi
10900
10901
10902 brltty_enabled_api_fuzzing="${enableval}"
10903
10904 brltty_summary_lines="${brltty_summary_lines}
10905 api-fuzzing: ${brltty_enabled_api_fuzzing}"
10906
10907 if test "${enableval}" = "no"
10908 then
10909 :
10910 else
10911 if test "${enableval}" = "yes"
10912 then
10913 brltty_ok=true
10914 else
10915 brltty_ok=false
10916 fi
10917
10918 if "${brltty_ok}"
10919 then
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LLVM fuzzer" >&5
10921 printf %s "checking for LLVM fuzzer... " >&6; }
10922 if test ${brltty_cv_llvm_fuzzer+y}
10923 then :
10924 printf %s "(cached) " >&6
10925 else case e in #(
10926 e) HOST_CPU="`$CC -print-target-triple | sed -e 's/-.*//'`"
10927 fuzzer_libs="`$CC -print-file-name=libclang_rt.fuzzer_no_main-$HOST_CPU.a` -lstdc++ -lm"
10928 CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link -fsanitize=address,undefined -fstack-protector-strong"
10929 LIBS="$LIBS -fsanitize=address,undefined -lubsan"
10930 OLD_LIBS="$LIBS"
10931 LIBS="$LIBS $fuzzer_libs"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934
10935 int
10936 main (void)
10937 {
10938
10939 ;
10940 return 0;
10941 }
10942 _ACEOF
10943 if ac_fn_c_try_compile "$LINENO"
10944 then :
10945
10946 else case e in #(
10947 e) as_fn_error $? "Compiler does not support fuzzing, did you set CC=clang?" "$LINENO" 5 ;;
10948 esac
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10951 LIBS="$OLD_LIBS"
10952 ;;
10953 esac
10954 fi
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_llvm_fuzzer" >&5
10956 printf "%s\n" "$brltty_cv_llvm_fuzzer" >&6; }
10957
10958 printf "%s\n" "#define ENABLE_API_FUZZING 1" >>confdefs.h
10959
10960
10961 else
10962 as_fn_error $? "invalid selection: --enable-api-fuzzing=${enableval}" "$LINENO" 5
10963 fi
10964 fi
10965
10966
10967 brltty_curses_libs_save="${LIBS}"
10968 ac_ext=c
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10974 printf %s "checking how to run the C preprocessor... " >&6; }
10975 # On Suns, sometimes $CPP names a directory.
10976 if test -n "$CPP" && test -d "$CPP"; then
10977 CPP=
10978 fi
10979 if test -z "$CPP"; then
10980 if test ${ac_cv_prog_CPP+y}
10981 then :
10982 printf %s "(cached) " >&6
10983 else case e in #(
10984 e) # Double quotes because $CC needs to be expanded
10985 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
10986 do
10987 ac_preproc_ok=false
10988 for ac_c_preproc_warn_flag in '' yes
10989 do
10990 # Use a header file that comes with gcc, so configuring glibc
10991 # with a fresh cross-compiler works.
10992 # On the NeXT, cc -E runs the code through the compiler's parser,
10993 # not just through cpp. "Syntax error" is here to catch this case.
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #include <limits.h>
10997 Syntax error
10998 _ACEOF
10999 if ac_fn_c_try_cpp "$LINENO"
11000 then :
11001
11002 else case e in #(
11003 e) # Broken: fails on valid input.
11004 continue ;;
11005 esac
11006 fi
11007 rm -f conftest.err conftest.i conftest.$ac_ext
11008
11009 # OK, works on sane cases. Now check whether nonexistent headers
11010 # can be detected and how.
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013 #include <ac_nonexistent.h>
11014 _ACEOF
11015 if ac_fn_c_try_cpp "$LINENO"
11016 then :
11017 # Broken: success on invalid input.
11018 continue
11019 else case e in #(
11020 e) # Passes both tests.
11021 ac_preproc_ok=:
11022 break ;;
11023 esac
11024 fi
11025 rm -f conftest.err conftest.i conftest.$ac_ext
11026
11027 done
11028 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11029 rm -f conftest.i conftest.err conftest.$ac_ext
11030 if $ac_preproc_ok
11031 then :
11032 break
11033 fi
11034
11035 done
11036 ac_cv_prog_CPP=$CPP
11037 ;;
11038 esac
11039 fi
11040 CPP=$ac_cv_prog_CPP
11041 else
11042 ac_cv_prog_CPP=$CPP
11043 fi
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11045 printf "%s\n" "$CPP" >&6; }
11046 ac_preproc_ok=false
11047 for ac_c_preproc_warn_flag in '' yes
11048 do
11049 # Use a header file that comes with gcc, so configuring glibc
11050 # with a fresh cross-compiler works.
11051 # On the NeXT, cc -E runs the code through the compiler's parser,
11052 # not just through cpp. "Syntax error" is here to catch this case.
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 #include <limits.h>
11056 Syntax error
11057 _ACEOF
11058 if ac_fn_c_try_cpp "$LINENO"
11059 then :
11060
11061 else case e in #(
11062 e) # Broken: fails on valid input.
11063 continue ;;
11064 esac
11065 fi
11066 rm -f conftest.err conftest.i conftest.$ac_ext
11067
11068 # OK, works on sane cases. Now check whether nonexistent headers
11069 # can be detected and how.
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #include <ac_nonexistent.h>
11073 _ACEOF
11074 if ac_fn_c_try_cpp "$LINENO"
11075 then :
11076 # Broken: success on invalid input.
11077 continue
11078 else case e in #(
11079 e) # Passes both tests.
11080 ac_preproc_ok=:
11081 break ;;
11082 esac
11083 fi
11084 rm -f conftest.err conftest.i conftest.$ac_ext
11085
11086 done
11087 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11088 rm -f conftest.i conftest.err conftest.$ac_ext
11089 if $ac_preproc_ok
11090 then :
11091
11092 else case e in #(
11093 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11094 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11095 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11096 See 'config.log' for more details" "$LINENO" 5; } ;;
11097 esac
11098 fi
11099
11100 ac_ext=c
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106
11107
11108 # Check whether --with-curses was given.
11109 if test ${with_curses+y}
11110 then :
11111 withval=$with_curses; curses_package="${withval}"
11112 else case e in #(
11113 e) curses_package="yes"
11114 ;;
11115 esac
11116 fi
11117
11118 if test "${curses_package}" = "no"
11119 then
11120 curses_package=""
11121 elif test "${curses_package}" = "yes"
11122 then
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which curses package to use" >&5
11124 printf %s "checking which curses package to use... " >&6; }
11125 if test ${brltty_cv_package_curses+y}
11126 then :
11127 printf %s "(cached) " >&6
11128 else case e in #(
11129 e) brltty_cv_package_curses=""
11130 brltty_packages=""
11131
11132 set -- ncursesw ncursesw/ncurses.h
11133 brltty_package="${1}"
11134 shift 1
11135 eval "brltty_headers_${brltty_package}"'="${*}"'
11136 brltty_packages="${brltty_packages} ${brltty_package}"
11137
11138 set -- pdcursesw curses.h
11139 brltty_package="${1}"
11140 shift 1
11141 eval "brltty_headers_${brltty_package}"'="${*}"'
11142 brltty_packages="${brltty_packages} ${brltty_package}"
11143
11144 set -- ncurses ncurses.h
11145 brltty_package="${1}"
11146 shift 1
11147 eval "brltty_headers_${brltty_package}"'="${*}"'
11148 brltty_packages="${brltty_packages} ${brltty_package}"
11149
11150 set -- pdcursesu curses.h
11151 brltty_package="${1}"
11152 shift 1
11153 eval "brltty_headers_${brltty_package}"'="${*}"'
11154 brltty_packages="${brltty_packages} ${brltty_package}"
11155
11156 set -- curses curses.h
11157 brltty_package="${1}"
11158 shift 1
11159 eval "brltty_headers_${brltty_package}"'="${*}"'
11160 brltty_packages="${brltty_packages} ${brltty_package}"
11161
11162 set -- pdcurses curses.h
11163 brltty_package="${1}"
11164 shift 1
11165 eval "brltty_headers_${brltty_package}"'="${*}"'
11166 brltty_packages="${brltty_packages} ${brltty_package}"
11167
11168
11169 for brltty_package in ${brltty_packages}
11170 do
11171 eval 'brltty_headers="${brltty_headers_'"${brltty_package}"'}"'
11172 test -n "${brltty_headers}" && {
11173 brltty_found=true
11174 for brltty_header in ${brltty_headers}
11175 do
11176
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 #include <${brltty_header}>
11180 _ACEOF
11181 if ac_fn_c_try_cpp "$LINENO"
11182 then :
11183
11184 else case e in #(
11185 e) brltty_found=false ;;
11186 esac
11187 fi
11188 rm -f conftest.err conftest.i conftest.$ac_ext
11189
11190 "${brltty_found}" || break
11191 done
11192 "${brltty_found}" || continue
11193 }
11194
11195 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${brltty_package}""_main" | sed "$as_sed_sh"`
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l${brltty_package}" >&5
11197 printf %s "checking for main in -l${brltty_package}... " >&6; }
11198 if eval test \${$as_ac_Lib+y}
11199 then :
11200 printf %s "(cached) " >&6
11201 else case e in #(
11202 e) ac_check_lib_save_LIBS=$LIBS
11203 LIBS="-l${brltty_package} $LIBS"
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206
11207
11208 int
11209 main (void)
11210 {
11211 return main ();
11212 ;
11213 return 0;
11214 }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"
11217 then :
11218 eval "$as_ac_Lib=yes"
11219 else case e in #(
11220 e) eval "$as_ac_Lib=no" ;;
11221 esac
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS ;;
11226 esac
11227 fi
11228 eval ac_res=\$$as_ac_Lib
11229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11230 printf "%s\n" "$ac_res" >&6; }
11231 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
11232 then :
11233 cat >>confdefs.h <<_ACEOF
11234 #define `printf "%s\n" "HAVE_LIB${brltty_package}" | sed "$as_sed_cpp"` 1
11235 _ACEOF
11236
11237 LIBS="-l${brltty_package} $LIBS"
11238
11239 else case e in #(
11240 e) continue ;;
11241 esac
11242 fi
11243
11244 brltty_cv_package_curses="${brltty_package}"
11245 break
11246 done
11247 ;;
11248 esac
11249 fi
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_package_curses" >&5
11251 printf "%s\n" "$brltty_cv_package_curses" >&6; }
11252 curses_package="${brltty_cv_package_curses}"
11253 else
11254 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${curses_package}""_main" | sed "$as_sed_sh"`
11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l${curses_package}" >&5
11256 printf %s "checking for main in -l${curses_package}... " >&6; }
11257 if eval test \${$as_ac_Lib+y}
11258 then :
11259 printf %s "(cached) " >&6
11260 else case e in #(
11261 e) ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-l${curses_package} $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265
11266
11267 int
11268 main (void)
11269 {
11270 return main ();
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_c_try_link "$LINENO"
11276 then :
11277 eval "$as_ac_Lib=yes"
11278 else case e in #(
11279 e) eval "$as_ac_Lib=no" ;;
11280 esac
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS ;;
11285 esac
11286 fi
11287 eval ac_res=\$$as_ac_Lib
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11289 printf "%s\n" "$ac_res" >&6; }
11290 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
11291 then :
11292 cat >>confdefs.h <<_ACEOF
11293 #define `printf "%s\n" "HAVE_LIB${curses_package}" | sed "$as_sed_cpp"` 1
11294 _ACEOF
11295
11296 LIBS="-l${curses_package} $LIBS"
11297
11298 else case e in #(
11299 e) curses_package="" ;;
11300 esac
11301 fi
11302
11303 fi
11304
11305 test -n "${curses_package}" && {
11306 brltty_uc=`echo "${curses_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
11307 printf "%s\n" "#define HAVE_PKG_${brltty_uc} 1" >>confdefs.h
11308
11309 brltty_summary_lines="${brltty_summary_lines}
11310 curses-package: ${curses_package}"
11311 }
11312 if test -n "${curses_package}"
11313 then
11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intrflush in -ltinfo" >&5
11315 printf %s "checking for intrflush in -ltinfo... " >&6; }
11316 if test ${ac_cv_lib_tinfo_intrflush+y}
11317 then :
11318 printf %s "(cached) " >&6
11319 else case e in #(
11320 e) ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ltinfo $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply.
11328 The 'extern "C"' is for builds by C++ compilers;
11329 although this is not generally supported in C code supporting it here
11330 has little cost and some practical benefit (sr 110532). */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char intrflush (void);
11335 int
11336 main (void)
11337 {
11338 return intrflush ();
11339 ;
11340 return 0;
11341 }
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"
11344 then :
11345 ac_cv_lib_tinfo_intrflush=yes
11346 else case e in #(
11347 e) ac_cv_lib_tinfo_intrflush=no ;;
11348 esac
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS ;;
11353 esac
11354 fi
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_intrflush" >&5
11356 printf "%s\n" "$ac_cv_lib_tinfo_intrflush" >&6; }
11357 if test "x$ac_cv_lib_tinfo_intrflush" = xyes
11358 then :
11359 printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h
11360
11361 LIBS="-ltinfo $LIBS"
11362
11363 fi
11364
11365 fi
11366 curses_libs="${LIBS%${brltty_curses_libs_save}}"
11367 LIBS="${brltty_curses_libs_save}"
11368
11369
11370 xkb_libs=""
11371 xtk_libs=""
11372 all_xbrlapi=""
11373 install_xbrlapi=""
11374 xsel_object=""
11375 # Check whether --enable-x was given.
11376 if test ${enable_x+y}
11377 then :
11378 enableval=$enable_x;
11379 else case e in #(
11380 e) enableval="yes" ;;
11381 esac
11382 fi
11383
11384
11385 brltty_enabled_x="${enableval}"
11386
11387 brltty_summary_lines="${brltty_summary_lines}
11388 x: ${brltty_enabled_x}"
11389
11390 if test "${enableval}" = "no"
11391 then
11392 :
11393 else
11394 if test "${enableval}" = "yes"
11395 then
11396 brltty_ok=true
11397 else
11398 brltty_ok=false
11399 fi
11400
11401 if "${brltty_ok}"
11402 then
11403 x11_package=""
11404 x11_includes=""
11405 x11_libs=""
11406
11407 for package_specification in x11
11408 do
11409 ${PKG_CONFIG} --exists "${package_specification}" && {
11410 printf "%s\n" "#define HAVE_PKG_X11 1" >>confdefs.h
11411
11412
11413 x11_package="${package_specification%% *}"
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: x11 package: ${x11_package}" >&5
11415 printf "%s\n" "$as_me: x11 package: ${x11_package}" >&6;}
11416
11417 x11_includes=`${PKG_CONFIG} --cflags-only-I "${x11_package}"`
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: x11 includes: ${x11_includes}" >&5
11419 printf "%s\n" "$as_me: x11 includes: ${x11_includes}" >&6;}
11420
11421 x11_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${x11_package}"`
11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: x11 libs: ${x11_libs}" >&5
11423 printf "%s\n" "$as_me: x11 libs: ${x11_libs}" >&6;}
11424
11425 all_xbrlapi="all-xbrlapi"
11426 install_xbrlapi="install-xbrlapi"
11427 xsel_object='xsel.$O'
11428
11429 ac_fn_c_check_header_compile "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
11430 if test "x$ac_cv_header_X11_keysym_h" = xyes
11431 then :
11432 printf "%s\n" "#define HAVE_X11_KEYSYM_H 1" >>confdefs.h
11433
11434 fi
11435
11436
11437 xext_package=""
11438 xext_includes=""
11439 xext_libs=""
11440
11441 for package_specification in xext
11442 do
11443 ${PKG_CONFIG} --exists "${package_specification}" && {
11444 printf "%s\n" "#define HAVE_PKG_XEXT 1" >>confdefs.h
11445
11446
11447 xext_package="${package_specification%% *}"
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xext package: ${xext_package}" >&5
11449 printf "%s\n" "$as_me: xext package: ${xext_package}" >&6;}
11450
11451 xext_includes=`${PKG_CONFIG} --cflags-only-I "${xext_package}"`
11452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xext includes: ${xext_includes}" >&5
11453 printf "%s\n" "$as_me: xext includes: ${xext_includes}" >&6;}
11454
11455 xext_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${xext_package}"`
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xext libs: ${xext_libs}" >&5
11457 printf "%s\n" "$as_me: xext libs: ${xext_libs}" >&6;}
11458
11459 xkb_libs="${xext_libs} ${xkb_libs}"
11460
11461 xtst_package=""
11462 xtst_includes=""
11463 xtst_libs=""
11464
11465 for package_specification in xtst
11466 do
11467 ${PKG_CONFIG} --exists "${package_specification}" && {
11468 printf "%s\n" "#define HAVE_PKG_XTST 1" >>confdefs.h
11469
11470
11471 xtst_package="${package_specification%% *}"
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xtst package: ${xtst_package}" >&5
11473 printf "%s\n" "$as_me: xtst package: ${xtst_package}" >&6;}
11474
11475 xtst_includes=`${PKG_CONFIG} --cflags-only-I "${xtst_package}"`
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xtst includes: ${xtst_includes}" >&5
11477 printf "%s\n" "$as_me: xtst includes: ${xtst_includes}" >&6;}
11478
11479 xtst_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${xtst_package}"`
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xtst libs: ${xtst_libs}" >&5
11481 printf "%s\n" "$as_me: xtst libs: ${xtst_libs}" >&6;}
11482
11483 xkb_libs="${xtst_libs} ${xkb_libs}"
11484
11485 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XTest.h" "ac_cv_header_X11_extensions_XTest_h" "$ac_includes_default"
11486 if test "x$ac_cv_header_X11_extensions_XTest_h" = xyes
11487 then :
11488 printf "%s\n" "#define HAVE_X11_EXTENSIONS_XTEST_H 1" >>confdefs.h
11489
11490 fi
11491
11492 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XKB.h" "ac_cv_header_X11_extensions_XKB_h" "$ac_includes_default"
11493 if test "x$ac_cv_header_X11_extensions_XKB_h" = xyes
11494 then :
11495 printf "%s\n" "#define HAVE_X11_EXTENSIONS_XKB_H 1" >>confdefs.h
11496
11497 fi
11498
11499
11500 break
11501 }
11502 done
11503
11504 test -n "${xtst_package}" || {
11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xtst support not available" >&5
11506 printf "%s\n" "$as_me: WARNING: xtst support not available" >&2;}
11507 }
11508
11509
11510
11511
11512
11513
11514 xfixes_package=""
11515 xfixes_includes=""
11516 xfixes_libs=""
11517
11518 for package_specification in xfixes
11519 do
11520 ${PKG_CONFIG} --exists "${package_specification}" && {
11521 printf "%s\n" "#define HAVE_PKG_XFIXES 1" >>confdefs.h
11522
11523
11524 xfixes_package="${package_specification%% *}"
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xfixes package: ${xfixes_package}" >&5
11526 printf "%s\n" "$as_me: xfixes package: ${xfixes_package}" >&6;}
11527
11528 xfixes_includes=`${PKG_CONFIG} --cflags-only-I "${xfixes_package}"`
11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xfixes includes: ${xfixes_includes}" >&5
11530 printf "%s\n" "$as_me: xfixes includes: ${xfixes_includes}" >&6;}
11531
11532 xfixes_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${xfixes_package}"`
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xfixes libs: ${xfixes_libs}" >&5
11534 printf "%s\n" "$as_me: xfixes libs: ${xfixes_libs}" >&6;}
11535
11536 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "$ac_includes_default"
11537 if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes
11538 then :
11539 printf "%s\n" "#define HAVE_X11_EXTENSIONS_XFIXES_H 1" >>confdefs.h
11540
11541 fi
11542
11543
11544 break
11545 }
11546 done
11547
11548 test -n "${xfixes_package}" || {
11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xfixes support not available" >&5
11550 printf "%s\n" "$as_me: WARNING: xfixes support not available" >&2;}
11551 }
11552
11553
11554
11555
11556
11557
11558 break
11559 }
11560 done
11561
11562 test -n "${xext_package}" || {
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xext support not available" >&5
11564 printf "%s\n" "$as_me: WARNING: xext support not available" >&2;}
11565 }
11566
11567
11568
11569
11570
11571
11572 brltty_cppflags_save="${CPPFLAGS}"
11573 CPPFLAGS="${CPPFLAGS} ${x11_includes}"
11574 brltty_libs_save="${LIBS}"
11575 LIBS="${x11_libs} ${LIBS}"
11576
11577 ac_fn_c_check_func "$LINENO" "XSetIOErrorExitHandler" "ac_cv_func_XSetIOErrorExitHandler"
11578 if test "x$ac_cv_func_XSetIOErrorExitHandler" = xyes
11579 then :
11580 printf "%s\n" "#define HAVE_XSETIOERROREXITHANDLER 1" >>confdefs.h
11581
11582 fi
11583
11584
11585 CPPFLAGS="${brltty_cppflags_save}"
11586 LIBS="${brltty_libs_save}"
11587
11588 xt_package=""
11589 xt_includes=""
11590 xt_libs=""
11591
11592 for package_specification in xt
11593 do
11594 ${PKG_CONFIG} --exists "${package_specification}" && {
11595 printf "%s\n" "#define HAVE_PKG_XT 1" >>confdefs.h
11596
11597
11598 xt_package="${package_specification%% *}"
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xt package: ${xt_package}" >&5
11600 printf "%s\n" "$as_me: xt package: ${xt_package}" >&6;}
11601
11602 xt_includes=`${PKG_CONFIG} --cflags-only-I "${xt_package}"`
11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xt includes: ${xt_includes}" >&5
11604 printf "%s\n" "$as_me: xt includes: ${xt_includes}" >&6;}
11605
11606 xt_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${xt_package}"`
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xt libs: ${xt_libs}" >&5
11608 printf "%s\n" "$as_me: xt libs: ${xt_libs}" >&6;}
11609
11610 xtk_libs="${xt_libs} ${xtk_libs}"
11611
11612 brltty_cppflags_save="${CPPFLAGS}"
11613 CPPFLAGS="${CPPFLAGS} ${x11_includes}"
11614
11615 brltty_libs_save="${LIBS}"
11616 LIBS="${xtk_libs} ${x11_libs} ${LIBS}"
11617
11618
11619 # Check whether --with-gui-toolkit was given.
11620 if test ${with_gui_toolkit+y}
11621 then :
11622 withval=$with_gui_toolkit; gui_toolkit_package="${withval}"
11623 else case e in #(
11624 e) gui_toolkit_package="yes"
11625 ;;
11626 esac
11627 fi
11628
11629 if test "${gui_toolkit_package}" = "no"
11630 then
11631 gui_toolkit_package=""
11632 elif test "${gui_toolkit_package}" = "yes"
11633 then
11634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which gui toolkit package to use" >&5
11635 printf %s "checking which gui toolkit package to use... " >&6; }
11636 if test ${brltty_cv_package_gui_toolkit+y}
11637 then :
11638 printf %s "(cached) " >&6
11639 else case e in #(
11640 e) brltty_cv_package_gui_toolkit=""
11641 brltty_packages=""
11642
11643 set -- Xaw X11/Xaw/Form.h X11/Xaw/Paned.h X11/Xaw/Label.h X11/Xaw/Command.h X11/Xaw/Repeater.h
11644 brltty_package="${1}"
11645 shift 1
11646 eval "brltty_headers_${brltty_package}"'="${*}"'
11647 brltty_packages="${brltty_packages} ${brltty_package}"
11648
11649 set -- Xaw3d X11/Xaw3d/Form.h X11/Xaw3d/Paned.h X11/Xaw3d/Label.h X11/Xaw3d/Command.h X11/Xaw3d/Repeater.h
11650 brltty_package="${1}"
11651 shift 1
11652 eval "brltty_headers_${brltty_package}"'="${*}"'
11653 brltty_packages="${brltty_packages} ${brltty_package}"
11654
11655 set -- neXtaw X11/neXtaw/Form.h X11/neXtaw/Paned.h X11/neXtaw/Label.h X11/neXtaw/Command.h X11/neXtaw/Repeater.h
11656 brltty_package="${1}"
11657 shift 1
11658 eval "brltty_headers_${brltty_package}"'="${*}"'
11659 brltty_packages="${brltty_packages} ${brltty_package}"
11660
11661 set -- XawPlus X11/XawPlus/Form.h X11/XawPlus/Paned.h X11/XawPlus/Label.h X11/XawPlus/Command.h X11/XawPlus/Repeater.h
11662 brltty_package="${1}"
11663 shift 1
11664 eval "brltty_headers_${brltty_package}"'="${*}"'
11665 brltty_packages="${brltty_packages} ${brltty_package}"
11666
11667 set -- Xm Xm/Xm.h Xm/Form.h Xm/PanedW.h Xm/Label.h Xm/PushB.h
11668 brltty_package="${1}"
11669 shift 1
11670 eval "brltty_headers_${brltty_package}"'="${*}"'
11671 brltty_packages="${brltty_packages} ${brltty_package}"
11672
11673
11674 for brltty_package in ${brltty_packages}
11675 do
11676 eval 'brltty_headers="${brltty_headers_'"${brltty_package}"'}"'
11677 test -n "${brltty_headers}" && {
11678 brltty_found=true
11679 for brltty_header in ${brltty_headers}
11680 do
11681
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #include <${brltty_header}>
11685 _ACEOF
11686 if ac_fn_c_try_cpp "$LINENO"
11687 then :
11688
11689 else case e in #(
11690 e) brltty_found=false ;;
11691 esac
11692 fi
11693 rm -f conftest.err conftest.i conftest.$ac_ext
11694
11695 "${brltty_found}" || break
11696 done
11697 "${brltty_found}" || continue
11698 }
11699
11700 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${brltty_package}""_main" | sed "$as_sed_sh"`
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l${brltty_package}" >&5
11702 printf %s "checking for main in -l${brltty_package}... " >&6; }
11703 if eval test \${$as_ac_Lib+y}
11704 then :
11705 printf %s "(cached) " >&6
11706 else case e in #(
11707 e) ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-l${brltty_package} $LIBS"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711
11712
11713 int
11714 main (void)
11715 {
11716 return main ();
11717 ;
11718 return 0;
11719 }
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"
11722 then :
11723 eval "$as_ac_Lib=yes"
11724 else case e in #(
11725 e) eval "$as_ac_Lib=no" ;;
11726 esac
11727 fi
11728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11729 conftest$ac_exeext conftest.$ac_ext
11730 LIBS=$ac_check_lib_save_LIBS ;;
11731 esac
11732 fi
11733 eval ac_res=\$$as_ac_Lib
11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11735 printf "%s\n" "$ac_res" >&6; }
11736 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
11737 then :
11738 cat >>confdefs.h <<_ACEOF
11739 #define `printf "%s\n" "HAVE_LIB${brltty_package}" | sed "$as_sed_cpp"` 1
11740 _ACEOF
11741
11742 LIBS="-l${brltty_package} $LIBS"
11743
11744 else case e in #(
11745 e) continue ;;
11746 esac
11747 fi
11748
11749 brltty_cv_package_gui_toolkit="${brltty_package}"
11750 break
11751 done
11752 ;;
11753 esac
11754 fi
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_package_gui_toolkit" >&5
11756 printf "%s\n" "$brltty_cv_package_gui_toolkit" >&6; }
11757 gui_toolkit_package="${brltty_cv_package_gui_toolkit}"
11758 else
11759 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${gui_toolkit_package}""_main" | sed "$as_sed_sh"`
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l${gui_toolkit_package}" >&5
11761 printf %s "checking for main in -l${gui_toolkit_package}... " >&6; }
11762 if eval test \${$as_ac_Lib+y}
11763 then :
11764 printf %s "(cached) " >&6
11765 else case e in #(
11766 e) ac_check_lib_save_LIBS=$LIBS
11767 LIBS="-l${gui_toolkit_package} $LIBS"
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770
11771
11772 int
11773 main (void)
11774 {
11775 return main ();
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_link "$LINENO"
11781 then :
11782 eval "$as_ac_Lib=yes"
11783 else case e in #(
11784 e) eval "$as_ac_Lib=no" ;;
11785 esac
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS ;;
11790 esac
11791 fi
11792 eval ac_res=\$$as_ac_Lib
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11794 printf "%s\n" "$ac_res" >&6; }
11795 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
11796 then :
11797 cat >>confdefs.h <<_ACEOF
11798 #define `printf "%s\n" "HAVE_LIB${gui_toolkit_package}" | sed "$as_sed_cpp"` 1
11799 _ACEOF
11800
11801 LIBS="-l${gui_toolkit_package} $LIBS"
11802
11803 else case e in #(
11804 e) gui_toolkit_package="" ;;
11805 esac
11806 fi
11807
11808 fi
11809
11810 test -n "${gui_toolkit_package}" && {
11811 brltty_uc=`echo "${gui_toolkit_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
11812 printf "%s\n" "#define HAVE_PKG_${brltty_uc} 1" >>confdefs.h
11813
11814 brltty_summary_lines="${brltty_summary_lines}
11815 gui-toolkit-package: ${gui_toolkit_package}"
11816 }
11817
11818 xtk_libs="${LIBS%${x11_libs} ${brltty_libs_save}}"
11819
11820 CPPFLAGS="${brltty_cppflags_save}"
11821 LIBS="${brltty_libs_save}"
11822
11823 break
11824 }
11825 done
11826
11827 test -n "${xt_package}" || {
11828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xt support not available" >&5
11829 printf "%s\n" "$as_me: WARNING: xt support not available" >&2;}
11830 }
11831
11832
11833
11834
11835
11836
11837 break
11838 }
11839 done
11840
11841 test -n "${x11_package}" || {
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: x11 support not available" >&5
11843 printf "%s\n" "$as_me: WARNING: x11 support not available" >&2;}
11844 }
11845
11846
11847
11848
11849
11850
11851 else
11852 as_fn_error $? "invalid selection: --enable-x=${enableval}" "$LINENO" 5
11853 fi
11854 fi
11855
11856
11857
11858
11859
11860
11861 test -z "$gui_toolkit_package" && {
11862 case "${host_os}"
11863 in
11864 cygwin*|mingw*)
11865 gui_toolkit_package="windows"
11866 ;;
11867 esac
11868 }
11869
11870 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
11871 if test "x$ac_cv_func_time" = xyes
11872 then :
11873 printf "%s\n" "#define HAVE_TIME 1" >>confdefs.h
11874
11875 fi
11876 ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
11877 if test "x$ac_cv_func_stime" = xyes
11878 then :
11879 printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h
11880
11881 fi
11882 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11883 if test "x$ac_cv_func_gettimeofday" = xyes
11884 then :
11885 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11886
11887 fi
11888 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
11889 if test "x$ac_cv_func_settimeofday" = xyes
11890 then :
11891 printf "%s\n" "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
11892
11893 fi
11894 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
11895 if test "x$ac_cv_func_nanosleep" = xyes
11896 then :
11897 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
11898
11899 fi
11900
11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
11902 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
11903 if test ${ac_cv_c_undeclared_builtin_options+y}
11904 then :
11905 printf %s "(cached) " >&6
11906 else case e in #(
11907 e) ac_save_CFLAGS=$CFLAGS
11908 ac_cv_c_undeclared_builtin_options='cannot detect'
11909 for ac_arg in '' -fno-builtin; do
11910 CFLAGS="$ac_save_CFLAGS $ac_arg"
11911 # This test program should *not* compile successfully.
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914
11915 int
11916 main (void)
11917 {
11918 (void) strchr;
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"
11924 then :
11925
11926 else case e in #(
11927 e) # This test program should compile successfully.
11928 # No library function is consistently available on
11929 # freestanding implementations, so test against a dummy
11930 # declaration. Include always-available headers on the
11931 # off chance that they somehow elicit warnings.
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #include <float.h>
11935 #include <limits.h>
11936 #include <stdarg.h>
11937 #include <stddef.h>
11938 extern void ac_decl (int, char *);
11939
11940 int
11941 main (void)
11942 {
11943 (void) ac_decl (0, (char *) 0);
11944 (void) ac_decl;
11945
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_compile "$LINENO"
11951 then :
11952 if test x"$ac_arg" = x
11953 then :
11954 ac_cv_c_undeclared_builtin_options='none needed'
11955 else case e in #(
11956 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
11957 esac
11958 fi
11959 break
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11962 esac
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11965 done
11966 CFLAGS=$ac_save_CFLAGS
11967 ;;
11968 esac
11969 fi
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
11971 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
11972 case $ac_cv_c_undeclared_builtin_options in #(
11973 'cannot detect') :
11974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11975 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11976 as_fn_error $? "cannot make $CC report undeclared builtins
11977 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11978 'none needed') :
11979 ac_c_undeclared_builtin_options='' ;; #(
11980 *) :
11981 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
11982 esac
11983
11984 ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "
11985 #include <time.h>
11986
11987 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11988 if test "x$ac_cv_have_decl_clock_gettime" = xyes
11989 then :
11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11991 printf %s "checking for library containing clock_gettime... " >&6; }
11992 if test ${ac_cv_search_clock_gettime+y}
11993 then :
11994 printf %s "(cached) " >&6
11995 else case e in #(
11996 e) ac_func_search_save_LIBS=$LIBS
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply.
12003 The 'extern "C"' is for builds by C++ compilers;
12004 although this is not generally supported in C code supporting it here
12005 has little cost and some practical benefit (sr 110532). */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 char clock_gettime (void);
12010 int
12011 main (void)
12012 {
12013 return clock_gettime ();
12014 ;
12015 return 0;
12016 }
12017 _ACEOF
12018 for ac_lib in '' rt
12019 do
12020 if test -z "$ac_lib"; then
12021 ac_res="none required"
12022 else
12023 ac_res=-l$ac_lib
12024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12025 fi
12026 if ac_fn_c_try_link "$LINENO"
12027 then :
12028 ac_cv_search_clock_gettime=$ac_res
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12031 conftest$ac_exeext
12032 if test ${ac_cv_search_clock_gettime+y}
12033 then :
12034 break
12035 fi
12036 done
12037 if test ${ac_cv_search_clock_gettime+y}
12038 then :
12039
12040 else case e in #(
12041 e) ac_cv_search_clock_gettime=no ;;
12042 esac
12043 fi
12044 rm conftest.$ac_ext
12045 LIBS=$ac_func_search_save_LIBS ;;
12046 esac
12047 fi
12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12049 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
12050 ac_res=$ac_cv_search_clock_gettime
12051 if test "$ac_res" != no
12052 then :
12053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12054 brltty_define=`echo "have_clock_gettime" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
12055
12056 printf "%s\n" "#define ${brltty_define} 1" >>confdefs.h
12057
12058
12059 fi
12060
12061
12062 fi
12063
12064 ac_fn_check_decl "$LINENO" "clock_settime" "ac_cv_have_decl_clock_settime" "
12065 #include <time.h>
12066
12067 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12068 if test "x$ac_cv_have_decl_clock_settime" = xyes
12069 then :
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_settime" >&5
12071 printf %s "checking for library containing clock_settime... " >&6; }
12072 if test ${ac_cv_search_clock_settime+y}
12073 then :
12074 printf %s "(cached) " >&6
12075 else case e in #(
12076 e) ac_func_search_save_LIBS=$LIBS
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply.
12083 The 'extern "C"' is for builds by C++ compilers;
12084 although this is not generally supported in C code supporting it here
12085 has little cost and some practical benefit (sr 110532). */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char clock_settime (void);
12090 int
12091 main (void)
12092 {
12093 return clock_settime ();
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 for ac_lib in '' rt
12099 do
12100 if test -z "$ac_lib"; then
12101 ac_res="none required"
12102 else
12103 ac_res=-l$ac_lib
12104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12105 fi
12106 if ac_fn_c_try_link "$LINENO"
12107 then :
12108 ac_cv_search_clock_settime=$ac_res
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12111 conftest$ac_exeext
12112 if test ${ac_cv_search_clock_settime+y}
12113 then :
12114 break
12115 fi
12116 done
12117 if test ${ac_cv_search_clock_settime+y}
12118 then :
12119
12120 else case e in #(
12121 e) ac_cv_search_clock_settime=no ;;
12122 esac
12123 fi
12124 rm conftest.$ac_ext
12125 LIBS=$ac_func_search_save_LIBS ;;
12126 esac
12127 fi
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_settime" >&5
12129 printf "%s\n" "$ac_cv_search_clock_settime" >&6; }
12130 ac_res=$ac_cv_search_clock_settime
12131 if test "$ac_res" != no
12132 then :
12133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12134 brltty_define=`echo "have_clock_settime" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
12135
12136 printf "%s\n" "#define ${brltty_define} 1" >>confdefs.h
12137
12138
12139 fi
12140
12141
12142 fi
12143
12144
12145 ac_fn_check_decl "$LINENO" "pthread_getname_np" "ac_cv_have_decl_pthread_getname_np" "
12146 #include <pthread.h>
12147
12148 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12149 if test "x$ac_cv_have_decl_pthread_getname_np" = xyes
12150 then :
12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getname_np" >&5
12152 printf %s "checking for library containing pthread_getname_np... " >&6; }
12153 if test ${ac_cv_search_pthread_getname_np+y}
12154 then :
12155 printf %s "(cached) " >&6
12156 else case e in #(
12157 e) ac_func_search_save_LIBS=$LIBS
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply.
12164 The 'extern "C"' is for builds by C++ compilers;
12165 although this is not generally supported in C code supporting it here
12166 has little cost and some practical benefit (sr 110532). */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char pthread_getname_np (void);
12171 int
12172 main (void)
12173 {
12174 return pthread_getname_np ();
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 for ac_lib in '' pthread
12180 do
12181 if test -z "$ac_lib"; then
12182 ac_res="none required"
12183 else
12184 ac_res=-l$ac_lib
12185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12186 fi
12187 if ac_fn_c_try_link "$LINENO"
12188 then :
12189 ac_cv_search_pthread_getname_np=$ac_res
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12192 conftest$ac_exeext
12193 if test ${ac_cv_search_pthread_getname_np+y}
12194 then :
12195 break
12196 fi
12197 done
12198 if test ${ac_cv_search_pthread_getname_np+y}
12199 then :
12200
12201 else case e in #(
12202 e) ac_cv_search_pthread_getname_np=no ;;
12203 esac
12204 fi
12205 rm conftest.$ac_ext
12206 LIBS=$ac_func_search_save_LIBS ;;
12207 esac
12208 fi
12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getname_np" >&5
12210 printf "%s\n" "$ac_cv_search_pthread_getname_np" >&6; }
12211 ac_res=$ac_cv_search_pthread_getname_np
12212 if test "$ac_res" != no
12213 then :
12214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12215 brltty_define=`echo "have_pthread_getname_np" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
12216
12217 printf "%s\n" "#define ${brltty_define} 1" >>confdefs.h
12218
12219
12220 fi
12221
12222
12223 fi
12224
12225 ac_fn_check_decl "$LINENO" "pthread_atfork" "ac_cv_have_decl_pthread_atfork" "
12226 #include <pthread.h>
12227
12228 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12229 if test "x$ac_cv_have_decl_pthread_atfork" = xyes
12230 then :
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_atfork" >&5
12232 printf %s "checking for library containing pthread_atfork... " >&6; }
12233 if test ${ac_cv_search_pthread_atfork+y}
12234 then :
12235 printf %s "(cached) " >&6
12236 else case e in #(
12237 e) ac_func_search_save_LIBS=$LIBS
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply.
12244 The 'extern "C"' is for builds by C++ compilers;
12245 although this is not generally supported in C code supporting it here
12246 has little cost and some practical benefit (sr 110532). */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char pthread_atfork (void);
12251 int
12252 main (void)
12253 {
12254 return pthread_atfork ();
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 for ac_lib in '' pthread
12260 do
12261 if test -z "$ac_lib"; then
12262 ac_res="none required"
12263 else
12264 ac_res=-l$ac_lib
12265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 fi
12267 if ac_fn_c_try_link "$LINENO"
12268 then :
12269 ac_cv_search_pthread_atfork=$ac_res
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12272 conftest$ac_exeext
12273 if test ${ac_cv_search_pthread_atfork+y}
12274 then :
12275 break
12276 fi
12277 done
12278 if test ${ac_cv_search_pthread_atfork+y}
12279 then :
12280
12281 else case e in #(
12282 e) ac_cv_search_pthread_atfork=no ;;
12283 esac
12284 fi
12285 rm conftest.$ac_ext
12286 LIBS=$ac_func_search_save_LIBS ;;
12287 esac
12288 fi
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_atfork" >&5
12290 printf "%s\n" "$ac_cv_search_pthread_atfork" >&6; }
12291 ac_res=$ac_cv_search_pthread_atfork
12292 if test "$ac_res" != no
12293 then :
12294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12295 brltty_define=`echo "have_pthread_atfork" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
12296
12297 printf "%s\n" "#define ${brltty_define} 1" >>confdefs.h
12298
12299
12300 fi
12301
12302
12303 fi
12304
12305
12306 ac_fn_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
12307
12308 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12309 if test "x$ac_cv_have_decl_localtime_r" = xyes
12310 then :
12311 ac_have_decl=1
12312 else case e in #(
12313 e) ac_have_decl=0 ;;
12314 esac
12315 fi
12316 printf "%s\n" "#define HAVE_DECL_LOCALTIME_R $ac_have_decl" >>confdefs.h
12317
12318
12319 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12320 if test "x$ac_cv_header_sys_poll_h" = xyes
12321 then :
12322 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
12323
12324 fi
12325 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12326 if test "x$ac_cv_header_sys_select_h" = xyes
12327 then :
12328 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12329
12330 fi
12331 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12332 if test "x$ac_cv_header_sys_wait_h" = xyes
12333 then :
12334 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12335
12336 fi
12337
12338 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
12339 if test "x$ac_cv_func_select" = xyes
12340 then :
12341 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
12342
12343 fi
12344
12345 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
12346 if test "x$ac_cv_func_poll" = xyes
12347 then :
12348 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
12349
12350 fi
12351
12352
12353 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
12354 if test "x$ac_cv_header_sys_capability_h" = xyes
12355 then :
12356 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
12357
12358 fi
12359 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12360 if test "x$ac_cv_header_sys_prctl_h" = xyes
12361 then :
12362 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12363
12364 fi
12365 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
12366 if test "x$ac_cv_header_sched_h" = xyes
12367 then :
12368 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
12369
12370 fi
12371
12372 ac_fn_c_check_header_compile "$LINENO" "linux/seccomp.h" "ac_cv_header_linux_seccomp_h" "$ac_includes_default"
12373 if test "x$ac_cv_header_linux_seccomp_h" = xyes
12374 then :
12375 printf "%s\n" "#define HAVE_LINUX_SECCOMP_H 1" >>confdefs.h
12376
12377 fi
12378 ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "$ac_includes_default"
12379 if test "x$ac_cv_header_linux_filter_h" = xyes
12380 then :
12381 printf "%s\n" "#define HAVE_LINUX_FILTER_H 1" >>confdefs.h
12382
12383 fi
12384 ac_fn_c_check_header_compile "$LINENO" "linux/audit.h" "ac_cv_header_linux_audit_h" "$ac_includes_default"
12385 if test "x$ac_cv_header_linux_audit_h" = xyes
12386 then :
12387 printf "%s\n" "#define HAVE_LINUX_AUDIT_H 1" >>confdefs.h
12388
12389 fi
12390
12391
12392 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12393 if test "x$ac_cv_header_signal_h" = xyes
12394 then :
12395 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
12396
12397 fi
12398 ac_fn_c_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
12399 if test "x$ac_cv_header_sys_signalfd_h" = xyes
12400 then :
12401 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
12402
12403 fi
12404
12405 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
12406 if test "x$ac_cv_func_sigaction" = xyes
12407 then :
12408 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
12409
12410 fi
12411
12412
12413 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12414 if test "x$ac_cv_header_alloca_h" = xyes
12415 then :
12416 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
12417
12418 fi
12419 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12420 if test "x$ac_cv_header_getopt_h" = xyes
12421 then :
12422 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
12423
12424 fi
12425 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
12426 if test "x$ac_cv_header_regex_h" = xyes
12427 then :
12428 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
12429
12430 fi
12431 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
12432 if test "x$ac_cv_header_termios_h" = xyes
12433 then :
12434 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
12435
12436 fi
12437
12438 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
12439 if test "x$ac_cv_header_syslog_h" = xyes
12440 then :
12441 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
12442
12443 fi
12444
12445 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_sys_file_h" = xyes
12447 then :
12448 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12449
12450 fi
12451 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12452 if test "x$ac_cv_header_sys_socket_h" = xyes
12453 then :
12454 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12455
12456 fi
12457
12458 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_pwd_h" = xyes
12460 then :
12461 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
12462
12463 fi
12464 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
12465 if test "x$ac_cv_header_grp_h" = xyes
12466 then :
12467 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
12468
12469 fi
12470
12471 ac_fn_c_check_header_compile "$LINENO" "sys/io.h" "ac_cv_header_sys_io_h" "$ac_includes_default"
12472 if test "x$ac_cv_header_sys_io_h" = xyes
12473 then :
12474 printf "%s\n" "#define HAVE_SYS_IO_H 1" >>confdefs.h
12475
12476 fi
12477 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
12478 if test "x$ac_cv_header_sys_modem_h" = xyes
12479 then :
12480 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
12481
12482 fi
12483 ac_fn_c_check_header_compile "$LINENO" "machine/speaker.h" "ac_cv_header_machine_speaker_h" "$ac_includes_default"
12484 if test "x$ac_cv_header_machine_speaker_h" = xyes
12485 then :
12486 printf "%s\n" "#define HAVE_MACHINE_SPEAKER_H 1" >>confdefs.h
12487
12488 fi
12489 ac_fn_c_check_header_compile "$LINENO" "dev/speaker/speaker.h" "ac_cv_header_dev_speaker_speaker_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_dev_speaker_speaker_h" = xyes
12491 then :
12492 printf "%s\n" "#define HAVE_DEV_SPEAKER_SPEAKER_H 1" >>confdefs.h
12493
12494 fi
12495 ac_fn_c_check_header_compile "$LINENO" "linux/vt.h" "ac_cv_header_linux_vt_h" "$ac_includes_default"
12496 if test "x$ac_cv_header_linux_vt_h" = xyes
12497 then :
12498 printf "%s\n" "#define HAVE_LINUX_VT_H 1" >>confdefs.h
12499
12500 fi
12501
12502 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
12503 if test "x$ac_cv_header_sdkddkver_h" = xyes
12504 then :
12505 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
12506
12507 fi
12508
12509
12510 for ac_header in execinfo.h
12511 do :
12512 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_execinfo_h" = xyes
12514 then :
12515 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lexecinfo" >&5
12517 printf %s "checking for main in -lexecinfo... " >&6; }
12518 if test ${ac_cv_lib_execinfo_main+y}
12519 then :
12520 printf %s "(cached) " >&6
12521 else case e in #(
12522 e) ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lexecinfo $LIBS"
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12526
12527
12528 int
12529 main (void)
12530 {
12531 return main ();
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"
12537 then :
12538 ac_cv_lib_execinfo_main=yes
12539 else case e in #(
12540 e) ac_cv_lib_execinfo_main=no ;;
12541 esac
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS ;;
12546 esac
12547 fi
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_main" >&5
12549 printf "%s\n" "$ac_cv_lib_execinfo_main" >&6; }
12550 if test "x$ac_cv_lib_execinfo_main" = xyes
12551 then :
12552 printf "%s\n" "#define HAVE_LIBEXECINFO 1" >>confdefs.h
12553
12554 LIBS="-lexecinfo $LIBS"
12555
12556 fi
12557
12558 fi
12559
12560 done
12561
12562 for ac_header in linux/input.h
12563 do :
12564 ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
12565 if test "x$ac_cv_header_linux_input_h" = xyes
12566 then :
12567 printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
12568
12569 ac_fn_c_check_header_compile "$LINENO" "linux/uinput.h" "ac_cv_header_linux_uinput_h" "
12570 #include <linux/input.h>
12571
12572 "
12573 if test "x$ac_cv_header_linux_uinput_h" = xyes
12574 then :
12575 printf "%s\n" "#define HAVE_LINUX_UINPUT_H 1" >>confdefs.h
12576
12577 fi
12578
12579 fi
12580
12581 done
12582
12583 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12584 if test "x$ac_cv_func_getopt_long" = xyes
12585 then :
12586 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12587
12588 fi
12589 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
12590 if test "x$ac_cv_func_hstrerror" = xyes
12591 then :
12592 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
12593
12594 fi
12595 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
12596 if test "x$ac_cv_func_vsyslog" = xyes
12597 then :
12598 printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h
12599
12600 fi
12601
12602 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
12603 if test "x$ac_cv_func_realpath" = xyes
12604 then :
12605 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
12606
12607 fi
12608 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
12609 if test "x$ac_cv_func_readlink" = xyes
12610 then :
12611 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
12612
12613 fi
12614
12615 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
12616 if test "x$ac_cv_func_pause" = xyes
12617 then :
12618 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
12619
12620 fi
12621
12622 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
12623 if test "x$ac_cv_func_fchdir" = xyes
12624 then :
12625 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
12626
12627 fi
12628 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
12629 if test "x$ac_cv_func_fchmod" = xyes
12630 then :
12631 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
12632
12633 fi
12634
12635 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget"
12636 if test "x$ac_cv_func_shmget" = xyes
12637 then :
12638 printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h
12639
12640 fi
12641 ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
12642 if test "x$ac_cv_func_shm_open" = xyes
12643 then :
12644 printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h
12645
12646 fi
12647
12648 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
12649 if test "x$ac_cv_func_getpeereid" = xyes
12650 then :
12651 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
12652
12653 fi
12654 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
12655 if test "x$ac_cv_func_getpeerucred" = xyes
12656 then :
12657 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
12658
12659 fi
12660 ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid"
12661 if test "x$ac_cv_func_getzoneid" = xyes
12662 then :
12663 printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h
12664
12665 fi
12666
12667 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
12668 if test "x$ac_cv_func_mempcpy" = xyes
12669 then :
12670 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
12671
12672 fi
12673 ac_fn_c_check_func "$LINENO" "wmempcpy" "ac_cv_func_wmempcpy"
12674 if test "x$ac_cv_func_wmempcpy" = xyes
12675 then :
12676 printf "%s\n" "#define HAVE_WMEMPCPY 1" >>confdefs.h
12677
12678 fi
12679
12680
12681 if test "${ac_cv_header_sys_io_h}" = "yes"; then
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inb,outb (provided by sys/io.h)" >&5
12683 printf %s "checking for inb,outb (provided by sys/io.h)... " >&6; }
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #include <sys/io.h>
12687 int
12688 main (void)
12689 {
12690 inb(0);outb(0,0);
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"
12696 then :
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698 printf "%s\n" "yes" >&6; }
12699 brltty_cv_have_sys_io_h_with_inb_outb="yes"
12700 else case e in #(
12701 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 printf "%s\n" "no" >&6; }
12703 brltty_cv_have_sys_io_h_with_inb_outb="no"
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&5
12705 printf "%s\n" "$as_me: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&2;} ;;
12706 esac
12707 fi
12708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12709 conftest$ac_exeext conftest.$ac_ext
12710 if test "$brltty_cv_have_sys_io_h_with_inb_outb" = "yes"; then
12711
12712 printf "%s\n" "#define BRLTTY_HAVE_SYS_IO_H_WITH_INB_OUTB 1" >>confdefs.h
12713
12714 fi
12715 else
12716 brltty_cv_have_sys_io_h_with_inb_outb="no"
12717 fi
12718
12719 case "${host_os}"
12720 in
12721 cygwin*|mingw*)
12722 if test "${brltty_cv_dll_ws2_32}" = "yes"
12723 then
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if function getaddrinfo in DLL ws2_32 exists" >&5
12725 printf %s "checking if function getaddrinfo in DLL ws2_32 exists... " >&6; }
12726 if test ${brltty_cv_function_getaddrinfo+y}
12727 then :
12728 printf %s "(cached) " >&6
12729 else case e in #(
12730 e)
12731 # When cross-compiling we cannot run the test program.
12732 # Use a link-time check for the symbol.
12733 if test "x${cross_compiling}" = "xyes"
12734 then
12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lws2_32" >&5
12736 printf %s "checking for getaddrinfo in -lws2_32... " >&6; }
12737 if test ${ac_cv_lib_ws2_32_getaddrinfo+y}
12738 then :
12739 printf %s "(cached) " >&6
12740 else case e in #(
12741 e) ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lws2_32 $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply.
12749 The 'extern "C"' is for builds by C++ compilers;
12750 although this is not generally supported in C code supporting it here
12751 has little cost and some practical benefit (sr 110532). */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char getaddrinfo (void);
12756 int
12757 main (void)
12758 {
12759 return getaddrinfo ();
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_link "$LINENO"
12765 then :
12766 ac_cv_lib_ws2_32_getaddrinfo=yes
12767 else case e in #(
12768 e) ac_cv_lib_ws2_32_getaddrinfo=no ;;
12769 esac
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12772 conftest$ac_exeext conftest.$ac_ext
12773 LIBS=$ac_check_lib_save_LIBS ;;
12774 esac
12775 fi
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_getaddrinfo" >&5
12777 printf "%s\n" "$ac_cv_lib_ws2_32_getaddrinfo" >&6; }
12778 if test "x$ac_cv_lib_ws2_32_getaddrinfo" = xyes
12779 then :
12780 brltty_cv_function_getaddrinfo=yes
12781 else case e in #(
12782 e) brltty_cv_function_getaddrinfo=no ;;
12783 esac
12784 fi
12785
12786 else
12787 if test "$cross_compiling" = yes
12788 then :
12789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12790 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12791 as_fn_error $? "cannot run test program while cross compiling
12792 See 'config.log' for more details" "$LINENO" 5; }
12793 else case e in #(
12794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796
12797
12798 #include <windows.h>
12799 #include <stdio.h>
12800 #include <errno.h>
12801
12802 int
12803 main (void) {
12804 HMODULE module;
12805 HINSTANCE instance;
12806 if (!(instance = LoadLibrary("ws2_32.dll"))) return 1;
12807 if (!(module = GetModuleHandle("ws2_32.dll"))) return 2;
12808 if (!(GetProcAddress(module, "getaddrinfo"))) return 3;
12809 return 0;
12810 }
12811 ,
12812 brltty_cv_function_getaddrinfo=yes,
12813 brltty_cv_function_getaddrinfo=no
12814
12815 _ACEOF
12816 if ac_fn_c_try_run "$LINENO"
12817 then :
12818
12819 fi
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12822 esac
12823 fi
12824
12825 fi
12826
12827 ;;
12828 esac
12829 fi
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_function_getaddrinfo" >&5
12831 printf "%s\n" "$brltty_cv_function_getaddrinfo" >&6; }
12832 if test "${brltty_cv_function_getaddrinfo}" = "yes"
12833 then
12834
12835 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
12836
12837
12838 else
12839 :
12840
12841 fi
12842
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if function getnameinfo in DLL ws2_32 exists" >&5
12844 printf %s "checking if function getnameinfo in DLL ws2_32 exists... " >&6; }
12845 if test ${brltty_cv_function_getnameinfo+y}
12846 then :
12847 printf %s "(cached) " >&6
12848 else case e in #(
12849 e)
12850 # When cross-compiling we cannot run the test program.
12851 # Use a link-time check for the symbol.
12852 if test "x${cross_compiling}" = "xyes"
12853 then
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lws2_32" >&5
12855 printf %s "checking for getnameinfo in -lws2_32... " >&6; }
12856 if test ${ac_cv_lib_ws2_32_getnameinfo+y}
12857 then :
12858 printf %s "(cached) " >&6
12859 else case e in #(
12860 e) ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lws2_32 $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply.
12868 The 'extern "C"' is for builds by C++ compilers;
12869 although this is not generally supported in C code supporting it here
12870 has little cost and some practical benefit (sr 110532). */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char getnameinfo (void);
12875 int
12876 main (void)
12877 {
12878 return getnameinfo ();
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"
12884 then :
12885 ac_cv_lib_ws2_32_getnameinfo=yes
12886 else case e in #(
12887 e) ac_cv_lib_ws2_32_getnameinfo=no ;;
12888 esac
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS ;;
12893 esac
12894 fi
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_getnameinfo" >&5
12896 printf "%s\n" "$ac_cv_lib_ws2_32_getnameinfo" >&6; }
12897 if test "x$ac_cv_lib_ws2_32_getnameinfo" = xyes
12898 then :
12899 brltty_cv_function_getnameinfo=yes
12900 else case e in #(
12901 e) brltty_cv_function_getnameinfo=no ;;
12902 esac
12903 fi
12904
12905 else
12906 if test "$cross_compiling" = yes
12907 then :
12908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12909 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12910 as_fn_error $? "cannot run test program while cross compiling
12911 See 'config.log' for more details" "$LINENO" 5; }
12912 else case e in #(
12913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915
12916
12917 #include <windows.h>
12918 #include <stdio.h>
12919 #include <errno.h>
12920
12921 int
12922 main (void) {
12923 HMODULE module;
12924 HINSTANCE instance;
12925 if (!(instance = LoadLibrary("ws2_32.dll"))) return 1;
12926 if (!(module = GetModuleHandle("ws2_32.dll"))) return 2;
12927 if (!(GetProcAddress(module, "getnameinfo"))) return 3;
12928 return 0;
12929 }
12930 ,
12931 brltty_cv_function_getnameinfo=yes,
12932 brltty_cv_function_getnameinfo=no
12933
12934 _ACEOF
12935 if ac_fn_c_try_run "$LINENO"
12936 then :
12937
12938 fi
12939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12941 esac
12942 fi
12943
12944 fi
12945
12946 ;;
12947 esac
12948 fi
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_function_getnameinfo" >&5
12950 printf "%s\n" "$brltty_cv_function_getnameinfo" >&6; }
12951 if test "${brltty_cv_function_getnameinfo}" = "yes"
12952 then
12953
12954 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
12955
12956
12957 else
12958 :
12959
12960 fi
12961
12962 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
12963 if test "x$ac_cv_func_gai_strerror" = xyes
12964 then :
12965 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
12966
12967 fi
12968
12969 fi
12970 ac_fn_c_check_type "$LINENO" "PROCESS_INFORMATION_CLASS" "ac_cv_type_PROCESS_INFORMATION_CLASS" "
12971 #include <windows.h>
12972
12973 "
12974 if test "x$ac_cv_type_PROCESS_INFORMATION_CLASS" = xyes
12975 then :
12976
12977 printf "%s\n" "#define HAVE_PROCESS_INFORMATION_CLASS 1" >>confdefs.h
12978
12979
12980 fi
12981
12982 ac_fn_check_decl "$LINENO" "ProcessUserModeIOPL" "ac_cv_have_decl_ProcessUserModeIOPL" "
12983 #include <windows.h>
12984
12985 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12986 if test "x$ac_cv_have_decl_ProcessUserModeIOPL" = xyes
12987 then :
12988 ac_have_decl=1
12989 else case e in #(
12990 e) ac_have_decl=0 ;;
12991 esac
12992 fi
12993 printf "%s\n" "#define HAVE_DECL_PROCESSUSERMODEIOPL $ac_have_decl" >>confdefs.h
12994
12995 ;;
12996 *)
12997 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
12998 if test "x$ac_cv_func_gai_strerror" = xyes
12999 then :
13000 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
13001
13002 fi
13003 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13004 if test "x$ac_cv_func_getaddrinfo" = xyes
13005 then :
13006 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
13007
13008 fi
13009 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13010 if test "x$ac_cv_func_getnameinfo" = xyes
13011 then :
13012 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
13013
13014 fi
13015
13016 ;;
13017 esac
13018
13019 # The cast to long int works around a bug in the HP C Compiler
13020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13021 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13022 # This bug is HP SR number 8606223364.
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13024 printf %s "checking size of wchar_t... " >&6; }
13025 if test ${ac_cv_sizeof_wchar_t+y}
13026 then :
13027 printf %s "(cached) " >&6
13028 else case e in #(
13029 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
13030 #include <wchar.h>
13031
13032 "
13033 then :
13034
13035 else case e in #(
13036 e) if test "$ac_cv_type_wchar_t" = yes; then
13037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13038 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13039 as_fn_error 77 "cannot compute sizeof (wchar_t)
13040 See 'config.log' for more details" "$LINENO" 5; }
13041 else
13042 ac_cv_sizeof_wchar_t=0
13043 fi ;;
13044 esac
13045 fi
13046 ;;
13047 esac
13048 fi
13049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13050 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
13051
13052
13053
13054 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
13055
13056
13057
13058 printf "%s\n" "#define SIZEOF_WCHAR_T_STR \"${ac_cv_sizeof_wchar_t}\"" >>confdefs.h
13059
13060
13061
13062 test "${brltty_cv_have_pthreads}" = "yes" && {
13063
13064 printf "%s\n" "#define HAVE_POSIX_THREADS 1" >>confdefs.h
13065
13066
13067 }
13068
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13070 printf %s "checking whether byte ordering is bigendian... " >&6; }
13071 if test ${ac_cv_c_bigendian+y}
13072 then :
13073 printf %s "(cached) " >&6
13074 else case e in #(
13075 e) ac_cv_c_bigendian=unknown
13076 # See if we're dealing with a universal compiler.
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #ifndef __APPLE_CC__
13080 not a universal capable compiler
13081 #endif
13082 typedef int dummy;
13083
13084 _ACEOF
13085 if ac_fn_c_try_compile "$LINENO"
13086 then :
13087
13088 # Check for potential -arch flags. It is not universal unless
13089 # there are at least two -arch flags with different values.
13090 ac_arch=
13091 ac_prev=
13092 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13093 if test -n "$ac_prev"; then
13094 case $ac_word in
13095 i?86 | x86_64 | ppc | ppc64)
13096 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13097 ac_arch=$ac_word
13098 else
13099 ac_cv_c_bigendian=universal
13100 break
13101 fi
13102 ;;
13103 esac
13104 ac_prev=
13105 elif test "x$ac_word" = "x-arch"; then
13106 ac_prev=arch
13107 fi
13108 done
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13111 if test $ac_cv_c_bigendian = unknown; then
13112 # See if sys/param.h defines the BYTE_ORDER macro.
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #include <sys/types.h>
13116 #include <sys/param.h>
13117
13118 int
13119 main (void)
13120 {
13121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
13122 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
13123 && LITTLE_ENDIAN)
13124 bogus endian macros
13125 #endif
13126
13127 ;
13128 return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"
13132 then :
13133 # It does; now see whether it defined to BIG_ENDIAN or not.
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <sys/types.h>
13137 #include <sys/param.h>
13138
13139 int
13140 main (void)
13141 {
13142 #if BYTE_ORDER != BIG_ENDIAN
13143 not big endian
13144 #endif
13145
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"
13151 then :
13152 ac_cv_c_bigendian=yes
13153 else case e in #(
13154 e) ac_cv_c_bigendian=no ;;
13155 esac
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13160 fi
13161 if test $ac_cv_c_bigendian = unknown; then
13162 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 #include <limits.h>
13166
13167 int
13168 main (void)
13169 {
13170 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13171 bogus endian macros
13172 #endif
13173
13174 ;
13175 return 0;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_compile "$LINENO"
13179 then :
13180 # It does; now see whether it defined to _BIG_ENDIAN or not.
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <limits.h>
13184
13185 int
13186 main (void)
13187 {
13188 #ifndef _BIG_ENDIAN
13189 not big endian
13190 #endif
13191
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"
13197 then :
13198 ac_cv_c_bigendian=yes
13199 else case e in #(
13200 e) ac_cv_c_bigendian=no ;;
13201 esac
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 fi
13207 if test $ac_cv_c_bigendian = unknown; then
13208 # Compile a test program.
13209 if test "$cross_compiling" = yes
13210 then :
13211 # Try to guess by grepping values from an object file.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 unsigned short int ascii_mm[] =
13215 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13216 unsigned short int ascii_ii[] =
13217 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13218 int use_ascii (int i) {
13219 return ascii_mm[i] + ascii_ii[i];
13220 }
13221 unsigned short int ebcdic_ii[] =
13222 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13223 unsigned short int ebcdic_mm[] =
13224 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13225 int use_ebcdic (int i) {
13226 return ebcdic_mm[i] + ebcdic_ii[i];
13227 }
13228 int
13229 main (int argc, char **argv)
13230 {
13231 /* Intimidate the compiler so that it does not
13232 optimize the arrays away. */
13233 char *p = argv[0];
13234 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
13235 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
13236 return use_ascii (argc) == use_ebcdic (*p);
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"
13240 then :
13241 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
13242 ac_cv_c_bigendian=yes
13243 fi
13244 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
13245 if test "$ac_cv_c_bigendian" = unknown; then
13246 ac_cv_c_bigendian=no
13247 else
13248 # finding both strings is unlikely to happen, but who knows?
13249 ac_cv_c_bigendian=unknown
13250 fi
13251 fi
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13254 conftest$ac_exeext conftest.$ac_ext
13255 else case e in #(
13256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 int
13260 main (void)
13261 {
13262
13263 /* Are we little or big endian? From Harbison&Steele. */
13264 union
13265 {
13266 long int l;
13267 char c[sizeof (long int)];
13268 } u;
13269 u.l = 1;
13270 return u.c[sizeof (long int) - 1] == 1;
13271
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_c_try_run "$LINENO"
13277 then :
13278 ac_cv_c_bigendian=no
13279 else case e in #(
13280 e) ac_cv_c_bigendian=yes ;;
13281 esac
13282 fi
13283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13284 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13285 esac
13286 fi
13287
13288 fi ;;
13289 esac
13290 fi
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13292 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13293 case $ac_cv_c_bigendian in #(
13294 yes)
13295 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
13296 ;; #(
13297 no)
13298 ;; #(
13299 universal)
13300
13301 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13302
13303 ;; #(
13304 *)
13305 as_fn_error $? "unknown endianness
13306 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13307 esac
13308
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13310 printf %s "checking for an ANSI C-conforming const... " >&6; }
13311 if test ${ac_cv_c_const+y}
13312 then :
13313 printf %s "(cached) " >&6
13314 else case e in #(
13315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317
13318 int
13319 main (void)
13320 {
13321
13322 #ifndef __cplusplus
13323 /* Ultrix mips cc rejects this sort of thing. */
13324 typedef int charset[2];
13325 const charset cs = { 0, 0 };
13326 /* SunOS 4.1.1 cc rejects this. */
13327 char const *const *pcpcc;
13328 char **ppc;
13329 /* NEC SVR4.0.2 mips cc rejects this. */
13330 struct point {int x, y;};
13331 static struct point const zero = {0,0};
13332 /* IBM XL C 1.02.0.0 rejects this.
13333 It does not let you subtract one const X* pointer from another in
13334 an arm of an if-expression whose if-part is not a constant
13335 expression */
13336 const char *g = "string";
13337 pcpcc = &g + (g ? g-g : 0);
13338 /* HPUX 7.0 cc rejects these. */
13339 ++pcpcc;
13340 ppc = (char**) pcpcc;
13341 pcpcc = (char const *const *) ppc;
13342 { /* SCO 3.2v4 cc rejects this sort of thing. */
13343 char tx;
13344 char *t = &tx;
13345 char const *s = 0 ? (char *) 0 : (char const *) 0;
13346
13347 *t++ = 0;
13348 if (s) return 0;
13349 }
13350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13351 int x[] = {25, 17};
13352 const int *foo = &x[0];
13353 ++foo;
13354 }
13355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13356 typedef const int *iptr;
13357 iptr p = 0;
13358 ++p;
13359 }
13360 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13362 struct s { int j; const int *ap[3]; } bx;
13363 struct s *b = &bx; b->j = 5;
13364 }
13365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13366 const int foo = 10;
13367 if (!foo) return 0;
13368 }
13369 return !cs[0] && !zero.x;
13370 #endif
13371
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"
13377 then :
13378 ac_cv_c_const=yes
13379 else case e in #(
13380 e) ac_cv_c_const=no ;;
13381 esac
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13384 esac
13385 fi
13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13387 printf "%s\n" "$ac_cv_c_const" >&6; }
13388 if test $ac_cv_c_const = no; then
13389
13390 printf "%s\n" "#define const /**/" >>confdefs.h
13391
13392 fi
13393
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13395 printf %s "checking for inline... " >&6; }
13396 if test ${ac_cv_c_inline+y}
13397 then :
13398 printf %s "(cached) " >&6
13399 else case e in #(
13400 e) ac_cv_c_inline=no
13401 for ac_kw in inline __inline__ __inline; do
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #ifndef __cplusplus
13405 typedef int foo_t;
13406 static $ac_kw foo_t static_foo (void) {return 0; }
13407 $ac_kw foo_t foo (void) {return 0; }
13408 #endif
13409
13410 _ACEOF
13411 if ac_fn_c_try_compile "$LINENO"
13412 then :
13413 ac_cv_c_inline=$ac_kw
13414 fi
13415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13416 test "$ac_cv_c_inline" != no && break
13417 done
13418 ;;
13419 esac
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13422 printf "%s\n" "$ac_cv_c_inline" >&6; }
13423
13424 case $ac_cv_c_inline in
13425 inline | yes) ;;
13426 *)
13427 case $ac_cv_c_inline in
13428 no) ac_val=;;
13429 *) ac_val=$ac_cv_c_inline;;
13430 esac
13431 cat >>confdefs.h <<_ACEOF
13432 #ifndef __cplusplus
13433 #define inline $ac_val
13434 #endif
13435 _ACEOF
13436 ;;
13437 esac
13438
13439
13440
13441
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands the __alignof__ operator" >&5
13443 printf %s "checking if the compiler understands the __alignof__ operator... " >&6; }
13444 if test ${brltty_cv_c_operator_alignof+y}
13445 then :
13446 printf %s "(cached) " >&6
13447 else case e in #(
13448 e)
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451
13452
13453 int a;
13454 int b = __alignof__(a);
13455
13456 int
13457 main (void)
13458 {
13459
13460
13461
13462 ;
13463 return 0;
13464 }
13465
13466 _ACEOF
13467 if ac_fn_c_try_compile "$LINENO"
13468 then :
13469
13470 brltty_cv_c_operator_alignof=yes
13471
13472 else case e in #(
13473 e)
13474 brltty_cv_c_operator_alignof=no
13475
13476 ;;
13477 esac
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13480
13481 ;;
13482 esac
13483 fi
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_c_operator_alignof" >&5
13485 printf "%s\n" "$brltty_cv_c_operator_alignof" >&6; }
13486 if test "${brltty_cv_c_operator_alignof}" = "yes"
13487 then
13488
13489 printf "%s\n" "#define HAVE_OPERATOR_ALIGNOF 1" >>confdefs.h
13490
13491 fi
13492
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports thread-local variables" >&5
13494 printf %s "checking if the compiler supports thread-local variables... " >&6; }
13495 if test ${brltty_cv_c_thread_local+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else case e in #(
13499 e)
13500 brltty_cv_c_thread_local=""
13501 for thread_local_qualifier in "_Thread_local" "__thread" "__declspec(thread)"
13502 do
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505
13506
13507 static ${thread_local_qualifier} int i;
13508
13509 int
13510 main (void)
13511 {
13512
13513
13514
13515 ;
13516 return 0;
13517 }
13518
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"
13521 then :
13522
13523 brltty_cv_c_thread_local="${thread_local_qualifier}"
13524 break
13525
13526
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13529 done
13530
13531 ;;
13532 esac
13533 fi
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_c_thread_local" >&5
13535 printf "%s\n" "$brltty_cv_c_thread_local" >&6; }
13536 if test -n "${brltty_cv_c_thread_local}"
13537 then
13538
13539 printf "%s\n" "#define THREAD_LOCAL ${brltty_cv_c_thread_local}" >>confdefs.h
13540
13541 fi
13542
13543 archive_prefix=lib
13544
13545 archive_extension=a
13546
13547
13548 case "${host_os}"
13549 in
13550 cygwin*)
13551 library_prefix="cyg"
13552 ;;
13553 mingw*)
13554 library_prefix=""
13555 ;;
13556 *)
13557 library_prefix="${archive_prefix}"
13558 ;;
13559 esac
13560
13561
13562 case "${host_os}"
13563 in
13564 hpux*)
13565 library_extension="sl"
13566 ;;
13567 cygwin*|mingw*)
13568 library_extension="dll"
13569 ;;
13570 darwin*)
13571 library_extension="dylib"
13572 ;;
13573 *)
13574 library_extension="so"
13575 ;;
13576 esac
13577
13578
13579 printf "%s\n" "#define LIBRARY_EXTENSION \"${library_extension}\"" >>confdefs.h
13580
13581
13582 module_name="${library_prefix}${PACKAGE_TARNAME}"
13583
13584
13585 printf "%s\n" "#define MODULE_NAME \"${module_name}\"" >>confdefs.h
13586
13587
13588 case "${host_os}"
13589 in
13590 darwin*)
13591 module_extension="bundle"
13592 ;;
13593 *)
13594 module_extension="${library_extension}"
13595 ;;
13596 esac
13597
13598
13599 printf "%s\n" "#define MODULE_EXTENSION \"${module_extension}\"" >>confdefs.h
13600
13601
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static archive extension" >&5
13603 printf %s "checking for static archive extension... " >&6; }
13604 if test ${brltty_cv_ext_arc+y}
13605 then :
13606 printf %s "(cached) " >&6
13607 else case e in #(
13608 e) case "${host_os}"
13609 in
13610 *)
13611 brltty_cv_ext_arc="a"
13612 ;;
13613 esac ;;
13614 esac
13615 fi
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_ext_arc" >&5
13617 printf "%s\n" "$brltty_cv_ext_arc" >&6; }
13618 archive_extension="${brltty_cv_ext_arc}"
13619
13620
13621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared object run-time search path environment variable" >&5
13622 printf %s "checking for shared object run-time search path environment variable... " >&6; }
13623 if test ${brltty_cv_env_libsearch+y}
13624 then :
13625 printf %s "(cached) " >&6
13626 else case e in #(
13627 e) case "${host_os}"
13628 in
13629 hpux*)
13630 brltty_cv_env_libsearch="SHLIB_PATH"
13631 ;;
13632 darwin*)
13633 brltty_cv_env_libsearch="DYLD_LIBRARY_PATH"
13634 ;;
13635 *)
13636 brltty_cv_env_libsearch="LD_LIBRARY_PATH"
13637 ;;
13638 esac ;;
13639 esac
13640 fi
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_env_libsearch" >&5
13642 printf "%s\n" "$brltty_cv_env_libsearch" >&6; }
13643 libsearch_variable="${brltty_cv_env_libsearch}"
13644
13645
13646 POLKIT_POLICY_DIR=$($PKG_CONFIG --silence-errors --variable="policydir" -- "polkit-gobject-1")
13647 test -n "${POLKIT_POLICY_DIR}" || POLKIT_POLICY_DIR="/usr/share/polkit-1/actions"
13648
13649
13650 POLKIT_RULE_DIR=$($PKG_CONFIG --silence-errors --variable="ruledir" -- "polkit-gobject-1")
13651 test -n "${POLKIT_RULE_DIR}" || POLKIT_RULE_DIR="/usr/share/polkit-1/rules.d"
13652
13653
13654 SYSTEMD_SYSUSERS_DIR=$($PKG_CONFIG --silence-errors --variable="sysusersdir" -- "systemd")
13655 test -n "${SYSTEMD_SYSUSERS_DIR}" || SYSTEMD_SYSUSERS_DIR="/usr/lib/sysusers.d"
13656
13657
13658 SYSTEMD_TMPFILES_DIR=$($PKG_CONFIG --silence-errors --variable="tmpfilesdir" -- "systemd")
13659 test -n "${SYSTEMD_TMPFILES_DIR}" || SYSTEMD_TMPFILES_DIR="/usr/lib/tmpfiles.d"
13660
13661
13662 SYSTEMD_UNIT_DIR=$($PKG_CONFIG --silence-errors --variable="systemdsystemunitdir" -- "systemd")
13663 test -n "${SYSTEMD_UNIT_DIR}" || SYSTEMD_UNIT_DIR="/usr/lib/systemd/system"
13664
13665
13666 SYSTEMD_CONF_DIR=$($PKG_CONFIG --silence-errors --variable="systemdsystemconfdir" -- "systemd")
13667 test -n "${SYSTEMD_CONF_DIR}" || SYSTEMD_CONF_DIR="/usr/lib/systemd/system"
13668
13669
13670
13671 system_package=""
13672 system_includes=""
13673 system_libs=""
13674
13675
13676 # Check whether --with-system-package was given.
13677 if test ${with_system_package+y}
13678 then :
13679 withval=$with_system_package; packages="${withval}"
13680 else case e in #(
13681 e) packages="yes"
13682 ;;
13683 esac
13684 fi
13685
13686
13687 if test "${packages}" = "no"
13688 then
13689 system_package="none"
13690 elif test "${packages}" = "yes"
13691 then
13692 packages=""
13693 case "${host_os}"
13694 in
13695 *android*)
13696 system_package="java"
13697 system_libs="-llog"
13698 ;;
13699 *qnx*)
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
13701 printf %s "checking for snd_pcm_open in -lasound... " >&6; }
13702 if test ${ac_cv_lib_asound_snd_pcm_open+y}
13703 then :
13704 printf %s "(cached) " >&6
13705 else case e in #(
13706 e) ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lasound $LIBS"
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply.
13714 The 'extern "C"' is for builds by C++ compilers;
13715 although this is not generally supported in C code supporting it here
13716 has little cost and some practical benefit (sr 110532). */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char snd_pcm_open (void);
13721 int
13722 main (void)
13723 {
13724 return snd_pcm_open ();
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"
13730 then :
13731 ac_cv_lib_asound_snd_pcm_open=yes
13732 else case e in #(
13733 e) ac_cv_lib_asound_snd_pcm_open=no ;;
13734 esac
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13737 conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS ;;
13739 esac
13740 fi
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
13742 printf "%s\n" "$ac_cv_lib_asound_snd_pcm_open" >&6; }
13743 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes
13744 then :
13745 printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
13746
13747 LIBS="-lasound $LIBS"
13748
13749 fi
13750
13751 ;;
13752 cygwin*)
13753 system_package="windows"
13754 ;;
13755 darwin*)
13756 system_package="darwin"
13757 system_includes="-x objective-c"
13758 system_libs="-framework IOKit -framework Foundation -framework CoreFoundation -lobjc"
13759 ;;
13760 hpux*)
13761 if test -d /opt/audio/include
13762 then
13763 CPPFLAGS="${CPPFLAGS} -I/opt/audio/include"
13764 system_libs="-L/opt/audio/lib -lAlib"
13765
13766 printf "%s\n" "#define HAVE_HPUX_AUDIO 1" >>confdefs.h
13767
13768 fi
13769 ;;
13770 linux*)
13771 system_package="linux"
13772 ;;
13773 mingw*)
13774 system_package="windows"
13775 ;;
13776 msdos*)
13777 system_package="msdos"
13778 system_libs="-ldbg"
13779 ;;
13780
13781 *);;
13782 esac
13783
13784 else
13785 packages=`echo "${packages}" | sed -e 'y/,/ /'`
13786 fi
13787
13788 test -z "${system_package}" && {
13789 test -n "${packages}" && {
13790 for package in ${packages}
13791 do
13792 system_package=""
13793 system_includes=""
13794 system_libs=""
13795
13796 for package_specification in ${package}
13797 do
13798 ${PKG_CONFIG} --exists "${package_specification}" && {
13799 printf "%s\n" "#define HAVE_PKG_SYSTEM 1" >>confdefs.h
13800
13801
13802 system_package="${package_specification%% *}"
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: system package: ${system_package}" >&5
13804 printf "%s\n" "$as_me: system package: ${system_package}" >&6;}
13805
13806 system_includes=`${PKG_CONFIG} --cflags-only-I "${system_package}"`
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: system includes: ${system_includes}" >&5
13808 printf "%s\n" "$as_me: system includes: ${system_includes}" >&6;}
13809
13810 system_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${system_package}"`
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: system libs: ${system_libs}" >&5
13812 printf "%s\n" "$as_me: system libs: ${system_libs}" >&6;}
13813
13814
13815 break
13816 }
13817 done
13818
13819 test -n "${system_package}" || {
13820 :
13821 }
13822
13823
13824
13825
13826
13827 test -n "${system_package}" && break
13828
13829
13830
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: base system package not available: ${package}" >&5
13832 printf "%s\n" "$as_me: base system package not available: ${package}" >&6;}
13833 done
13834 }
13835 }
13836
13837 test -z "${system_package}" && {
13838 system_package="none"
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: base system support not available on this platform" >&5
13840 printf "%s\n" "$as_me: WARNING: base system support not available on this platform" >&2;}
13841 }
13842
13843
13844
13845
13846
13847 printf "%s\n" "#define SYSTEM_PACKAGE ${system_package}" >>confdefs.h
13848
13849 brltty_uc=`echo "use_pkg_system_${system_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
13850 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
13851
13852 brltty_summary_lines="${brltty_summary_lines}
13853 system-package: ${system_package}"
13854
13855 expat_includes=""
13856 expat_libs=""
13857 # Check whether --enable-expat was given.
13858 if test ${enable_expat+y}
13859 then :
13860 enableval=$enable_expat;
13861 else case e in #(
13862 e) enableval="yes" ;;
13863 esac
13864 fi
13865
13866
13867 brltty_enabled_expat="${enableval}"
13868
13869 brltty_summary_lines="${brltty_summary_lines}
13870 expat: ${brltty_enabled_expat}"
13871
13872 if test "${enableval}" = "no"
13873 then
13874 :
13875 else
13876 if test "${enableval}" = "yes"
13877 then
13878 brltty_ok=true
13879 else
13880 brltty_ok=false
13881 fi
13882
13883 if "${brltty_ok}"
13884 then
13885 expat_package=""
13886 expat_includes=""
13887 expat_libs=""
13888
13889 for package_specification in expat
13890 do
13891 ${PKG_CONFIG} --exists "${package_specification}" && {
13892 printf "%s\n" "#define HAVE_PKG_EXPAT 1" >>confdefs.h
13893
13894
13895 expat_package="${package_specification%% *}"
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: expat package: ${expat_package}" >&5
13897 printf "%s\n" "$as_me: expat package: ${expat_package}" >&6;}
13898
13899 expat_includes=`${PKG_CONFIG} --cflags-only-I "${expat_package}"`
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: expat includes: ${expat_includes}" >&5
13901 printf "%s\n" "$as_me: expat includes: ${expat_includes}" >&6;}
13902
13903 expat_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${expat_package}"`
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: expat libs: ${expat_libs}" >&5
13905 printf "%s\n" "$as_me: expat libs: ${expat_libs}" >&6;}
13906
13907
13908 printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
13909
13910
13911 break
13912 }
13913 done
13914
13915 test -n "${expat_package}" || {
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: expat support not available" >&5
13917 printf "%s\n" "$as_me: WARNING: expat support not available" >&2;}
13918 }
13919
13920
13921
13922
13923
13924
13925 else
13926 as_fn_error $? "invalid selection: --enable-expat=${enableval}" "$LINENO" 5
13927 fi
13928 fi
13929
13930
13931
13932 contracted_braille_objects='ctb_compile.$O cldr.$O ctb_translate.$O ctb_native.$O ctb_external.$O'
13933 louis_includes=""
13934 louis_libs=""
13935 # Check whether --enable-liblouis was given.
13936 if test ${enable_liblouis+y}
13937 then :
13938 enableval=$enable_liblouis;
13939 else case e in #(
13940 e) enableval="yes" ;;
13941 esac
13942 fi
13943
13944
13945 brltty_enabled_liblouis="${enableval}"
13946
13947 brltty_summary_lines="${brltty_summary_lines}
13948 liblouis: ${brltty_enabled_liblouis}"
13949
13950 if test "${enableval}" = "no"
13951 then
13952 :
13953 else
13954 if test "${enableval}" = "yes"
13955 then
13956 brltty_ok=true
13957 else
13958 brltty_ok=false
13959 fi
13960
13961 if "${brltty_ok}"
13962 then
13963 louis_package=""
13964 louis_includes=""
13965 louis_libs=""
13966
13967 for package_specification in liblouis
13968 do
13969 ${PKG_CONFIG} --exists "${package_specification}" && {
13970 printf "%s\n" "#define HAVE_PKG_LOUIS 1" >>confdefs.h
13971
13972
13973 louis_package="${package_specification%% *}"
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: louis package: ${louis_package}" >&5
13975 printf "%s\n" "$as_me: louis package: ${louis_package}" >&6;}
13976
13977 louis_includes=`${PKG_CONFIG} --cflags-only-I "${louis_package}"`
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: louis includes: ${louis_includes}" >&5
13979 printf "%s\n" "$as_me: louis includes: ${louis_includes}" >&6;}
13980
13981 louis_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${louis_package}"`
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: louis libs: ${louis_libs}" >&5
13983 printf "%s\n" "$as_me: louis libs: ${louis_libs}" >&6;}
13984
13985 louisTablesDirectory=`${PKG_CONFIG} --variable=tablesdir ${louis_package}`
13986 if test -n "${louisTablesDirectory}"
13987 then
13988 louis_tables_directory="${louisTablesDirectory}"
13989
13990
13991 printf "%s\n" "#define LOUIS_TABLES_DIRECTORY \"${louisTablesDirectory}\"" >>confdefs.h
13992
13993 contracted_braille_objects="${contracted_braille_objects} ctb_louis.\$O"
13994 fi
13995
13996 break
13997 }
13998 done
13999
14000 test -n "${louis_package}" || {
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: louis support not available" >&5
14002 printf "%s\n" "$as_me: WARNING: louis support not available" >&2;}
14003 }
14004
14005
14006
14007
14008
14009
14010 else
14011 as_fn_error $? "invalid selection: --enable-liblouis=${enableval}" "$LINENO" 5
14012 fi
14013 fi
14014
14015
14016
14017
14018 # Check whether --enable-gpm was given.
14019 if test ${enable_gpm+y}
14020 then :
14021 enableval=$enable_gpm;
14022 else case e in #(
14023 e) enableval="yes" ;;
14024 esac
14025 fi
14026
14027
14028 brltty_enabled_gpm="${enableval}"
14029
14030 brltty_summary_lines="${brltty_summary_lines}
14031 gpm: ${brltty_enabled_gpm}"
14032
14033 if test "${enableval}" = "no"
14034 then
14035 :
14036 else
14037 if test "${enableval}" = "yes"
14038 then
14039 brltty_ok=true
14040 else
14041 brltty_ok=false
14042 fi
14043
14044 if "${brltty_ok}"
14045 then
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14047 printf %s "checking for Gpm_Open in -lgpm... " >&6; }
14048 if test ${ac_cv_lib_gpm_Gpm_Open+y}
14049 then :
14050 printf %s "(cached) " >&6
14051 else case e in #(
14052 e) ac_check_lib_save_LIBS=$LIBS
14053 LIBS="-lgpm $LIBS"
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056
14057 /* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply.
14060 The 'extern "C"' is for builds by C++ compilers;
14061 although this is not generally supported in C code supporting it here
14062 has little cost and some practical benefit (sr 110532). */
14063 #ifdef __cplusplus
14064 extern "C"
14065 #endif
14066 char Gpm_Open (void);
14067 int
14068 main (void)
14069 {
14070 return Gpm_Open ();
14071 ;
14072 return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"
14076 then :
14077 ac_cv_lib_gpm_Gpm_Open=yes
14078 else case e in #(
14079 e) ac_cv_lib_gpm_Gpm_Open=no ;;
14080 esac
14081 fi
14082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS ;;
14085 esac
14086 fi
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14088 printf "%s\n" "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14089 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
14090 then :
14091 printf "%s\n" "#define HAVE_LIBGPM 1" >>confdefs.h
14092
14093 LIBS="-lgpm $LIBS"
14094
14095 fi
14096
14097
14098 else
14099 as_fn_error $? "invalid selection: --enable-gpm=${enableval}" "$LINENO" 5
14100 fi
14101 fi
14102
14103 case "${host_os}"
14104 in
14105 hpux*)
14106 brltty_uc=`echo "shl_load" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
14108 printf %s "checking for library containing shl_load... " >&6; }
14109 if test ${ac_cv_search_shl_load+y}
14110 then :
14111 printf %s "(cached) " >&6
14112 else case e in #(
14113 e) ac_func_search_save_LIBS=$LIBS
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply.
14120 The 'extern "C"' is for builds by C++ compilers;
14121 although this is not generally supported in C code supporting it here
14122 has little cost and some practical benefit (sr 110532). */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char shl_load (void);
14127 int
14128 main (void)
14129 {
14130 return shl_load ();
14131 ;
14132 return 0;
14133 }
14134 _ACEOF
14135 for ac_lib in '' dld
14136 do
14137 if test -z "$ac_lib"; then
14138 ac_res="none required"
14139 else
14140 ac_res=-l$ac_lib
14141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14142 fi
14143 if ac_fn_c_try_link "$LINENO"
14144 then :
14145 ac_cv_search_shl_load=$ac_res
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14148 conftest$ac_exeext
14149 if test ${ac_cv_search_shl_load+y}
14150 then :
14151 break
14152 fi
14153 done
14154 if test ${ac_cv_search_shl_load+y}
14155 then :
14156
14157 else case e in #(
14158 e) ac_cv_search_shl_load=no ;;
14159 esac
14160 fi
14161 rm conftest.$ac_ext
14162 LIBS=$ac_func_search_save_LIBS ;;
14163 esac
14164 fi
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
14166 printf "%s\n" "$ac_cv_search_shl_load" >&6; }
14167 ac_res=$ac_cv_search_shl_load
14168 if test "$ac_res" != no
14169 then :
14170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14171
14172 printf "%s\n" "#define HAVE_${brltty_uc} 1" >>confdefs.h
14173
14174 fi
14175
14176 ;;
14177 *)
14178 ;;
14179 esac
14180
14181 pgmpath_package=""
14182 pgmpath_includes=""
14183 pgmpath_libs=""
14184
14185
14186 # Check whether --with-pgmpath-package was given.
14187 if test ${with_pgmpath_package+y}
14188 then :
14189 withval=$with_pgmpath_package; packages="${withval}"
14190 else case e in #(
14191 e) packages="yes"
14192 ;;
14193 esac
14194 fi
14195
14196
14197 if test "${packages}" = "no"
14198 then
14199 pgmpath_package="none"
14200 elif test "${packages}" = "yes"
14201 then
14202 packages=""
14203 case "${host_os}"
14204 in
14205 cygwin*)
14206 pgmpath_package="windows"
14207 ;;
14208 freebsd*)
14209 pgmpath_package="freebsd"
14210 ;;
14211 linux*)
14212 pgmpath_package="linux"
14213 ;;
14214 gnu*)
14215 pgmpath_package="hurd"
14216 ;;
14217 mingw*)
14218 pgmpath_package="windows"
14219 ;;
14220 solaris*)
14221 pgmpath_package="solaris"
14222 ;;
14223
14224 *);;
14225 esac
14226
14227 else
14228 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14229 fi
14230
14231 test -z "${pgmpath_package}" && {
14232 test -n "${packages}" && {
14233 for package in ${packages}
14234 do
14235 pgmpath_package=""
14236 pgmpath_includes=""
14237 pgmpath_libs=""
14238
14239 for package_specification in ${package}
14240 do
14241 ${PKG_CONFIG} --exists "${package_specification}" && {
14242 printf "%s\n" "#define HAVE_PKG_PGMPATH 1" >>confdefs.h
14243
14244
14245 pgmpath_package="${package_specification%% *}"
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmpath package: ${pgmpath_package}" >&5
14247 printf "%s\n" "$as_me: pgmpath package: ${pgmpath_package}" >&6;}
14248
14249 pgmpath_includes=`${PKG_CONFIG} --cflags-only-I "${pgmpath_package}"`
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmpath includes: ${pgmpath_includes}" >&5
14251 printf "%s\n" "$as_me: pgmpath includes: ${pgmpath_includes}" >&6;}
14252
14253 pgmpath_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${pgmpath_package}"`
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmpath libs: ${pgmpath_libs}" >&5
14255 printf "%s\n" "$as_me: pgmpath libs: ${pgmpath_libs}" >&6;}
14256
14257
14258 break
14259 }
14260 done
14261
14262 test -n "${pgmpath_package}" || {
14263 :
14264 }
14265
14266
14267
14268
14269
14270 test -n "${pgmpath_package}" && break
14271
14272
14273
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: program path package not available: ${package}" >&5
14275 printf "%s\n" "$as_me: program path package not available: ${package}" >&6;}
14276 done
14277 }
14278 }
14279
14280 test -z "${pgmpath_package}" && {
14281 pgmpath_package="none"
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: program path support not available on this platform" >&5
14283 printf "%s\n" "$as_me: WARNING: program path support not available on this platform" >&2;}
14284 }
14285
14286
14287
14288
14289
14290 printf "%s\n" "#define PGMPATH_PACKAGE ${pgmpath_package}" >>confdefs.h
14291
14292 brltty_uc=`echo "use_pkg_pgmpath_${pgmpath_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
14293 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
14294
14295 brltty_summary_lines="${brltty_summary_lines}
14296 pgmpath-package: ${pgmpath_package}"
14297
14298 pgmprivs_package=""
14299 pgmprivs_includes=""
14300 pgmprivs_libs=""
14301
14302
14303 # Check whether --with-pgmprivs-package was given.
14304 if test ${with_pgmprivs_package+y}
14305 then :
14306 withval=$with_pgmprivs_package; packages="${withval}"
14307 else case e in #(
14308 e) packages="yes"
14309 ;;
14310 esac
14311 fi
14312
14313
14314 if test "${packages}" = "no"
14315 then
14316 pgmprivs_package="none"
14317 elif test "${packages}" = "yes"
14318 then
14319 packages=""
14320 case "${host_os}"
14321 in
14322 linux*)
14323 pgmprivs_package="linux"
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lcap" >&5
14325 printf %s "checking for main in -lcap... " >&6; }
14326 if test ${ac_cv_lib_cap_main+y}
14327 then :
14328 printf %s "(cached) " >&6
14329 else case e in #(
14330 e) ac_check_lib_save_LIBS=$LIBS
14331 LIBS="-lcap $LIBS"
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334
14335
14336 int
14337 main (void)
14338 {
14339 return main ();
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_link "$LINENO"
14345 then :
14346 ac_cv_lib_cap_main=yes
14347 else case e in #(
14348 e) ac_cv_lib_cap_main=no ;;
14349 esac
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS ;;
14354 esac
14355 fi
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_main" >&5
14357 printf "%s\n" "$ac_cv_lib_cap_main" >&6; }
14358 if test "x$ac_cv_lib_cap_main" = xyes
14359 then :
14360 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
14361
14362 LIBS="-lcap $LIBS"
14363
14364 fi
14365
14366 ;;
14367
14368 *);;
14369 esac
14370
14371 else
14372 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14373 fi
14374
14375 test -z "${pgmprivs_package}" && {
14376 test -n "${packages}" && {
14377 for package in ${packages}
14378 do
14379 pgmprivs_package=""
14380 pgmprivs_includes=""
14381 pgmprivs_libs=""
14382
14383 for package_specification in ${package}
14384 do
14385 ${PKG_CONFIG} --exists "${package_specification}" && {
14386 printf "%s\n" "#define HAVE_PKG_PGMPRIVS 1" >>confdefs.h
14387
14388
14389 pgmprivs_package="${package_specification%% *}"
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmprivs package: ${pgmprivs_package}" >&5
14391 printf "%s\n" "$as_me: pgmprivs package: ${pgmprivs_package}" >&6;}
14392
14393 pgmprivs_includes=`${PKG_CONFIG} --cflags-only-I "${pgmprivs_package}"`
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmprivs includes: ${pgmprivs_includes}" >&5
14395 printf "%s\n" "$as_me: pgmprivs includes: ${pgmprivs_includes}" >&6;}
14396
14397 pgmprivs_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${pgmprivs_package}"`
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pgmprivs libs: ${pgmprivs_libs}" >&5
14399 printf "%s\n" "$as_me: pgmprivs libs: ${pgmprivs_libs}" >&6;}
14400
14401
14402 break
14403 }
14404 done
14405
14406 test -n "${pgmprivs_package}" || {
14407 :
14408 }
14409
14410
14411
14412
14413
14414 test -n "${pgmprivs_package}" && break
14415
14416
14417
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: program privileges package not available: ${package}" >&5
14419 printf "%s\n" "$as_me: program privileges package not available: ${package}" >&6;}
14420 done
14421 }
14422 }
14423
14424 test -z "${pgmprivs_package}" && {
14425 pgmprivs_package="none"
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: program privileges support not available on this platform" >&5
14427 printf "%s\n" "$as_me: WARNING: program privileges support not available on this platform" >&2;}
14428 }
14429
14430
14431
14432
14433
14434 printf "%s\n" "#define PGMPRIVS_PACKAGE ${pgmprivs_package}" >>confdefs.h
14435
14436 brltty_uc=`echo "use_pkg_pgmprivs_${pgmprivs_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
14437 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
14438
14439 brltty_summary_lines="${brltty_summary_lines}
14440 pgmprivs-package: ${pgmprivs_package}"
14441
14442 service_package=""
14443 service_includes=""
14444 service_libs=""
14445
14446
14447 # Check whether --with-service-package was given.
14448 if test ${with_service_package+y}
14449 then :
14450 withval=$with_service_package; packages="${withval}"
14451 else case e in #(
14452 e) packages="yes"
14453 ;;
14454 esac
14455 fi
14456
14457
14458 if test "${packages}" = "no"
14459 then
14460 service_package="none"
14461 elif test "${packages}" = "yes"
14462 then
14463 packages="libsystemd"
14464 case "${host_os}"
14465 in
14466 mingw*)
14467 service_package="windows"
14468 ;;
14469
14470 *);;
14471 esac
14472
14473 else
14474 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14475 fi
14476
14477 test -z "${service_package}" && {
14478 test -n "${packages}" && {
14479 for package in ${packages}
14480 do
14481 service_package=""
14482 service_includes=""
14483 service_libs=""
14484
14485 for package_specification in ${package}
14486 do
14487 ${PKG_CONFIG} --exists "${package_specification}" && {
14488 printf "%s\n" "#define HAVE_PKG_SERVICE 1" >>confdefs.h
14489
14490
14491 service_package="${package_specification%% *}"
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: service package: ${service_package}" >&5
14493 printf "%s\n" "$as_me: service package: ${service_package}" >&6;}
14494
14495 service_includes=`${PKG_CONFIG} --cflags-only-I "${service_package}"`
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: service includes: ${service_includes}" >&5
14497 printf "%s\n" "$as_me: service includes: ${service_includes}" >&6;}
14498
14499 service_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${service_package}"`
14500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: service libs: ${service_libs}" >&5
14501 printf "%s\n" "$as_me: service libs: ${service_libs}" >&6;}
14502
14503
14504 break
14505 }
14506 done
14507
14508 test -n "${service_package}" || {
14509 :
14510 }
14511
14512
14513
14514
14515
14516 test -n "${service_package}" && break
14517
14518
14519
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: system service package not available: ${package}" >&5
14521 printf "%s\n" "$as_me: system service package not available: ${package}" >&6;}
14522 done
14523 }
14524 }
14525
14526 test -z "${service_package}" && {
14527 service_package="none"
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: system service support not available on this platform" >&5
14529 printf "%s\n" "$as_me: WARNING: system service support not available on this platform" >&2;}
14530 }
14531
14532
14533
14534
14535
14536 printf "%s\n" "#define SERVICE_PACKAGE ${service_package}" >>confdefs.h
14537
14538 brltty_uc=`echo "use_pkg_service_${service_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
14539 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
14540
14541 brltty_summary_lines="${brltty_summary_lines}
14542 service-package: ${service_package}"
14543
14544 SYSTEMD_SERVICE_TYPE="forking"
14545
14546 SYSTEMD_SERVICE_ARGUMENTS=""
14547
14548
14549 case "${service_package}"
14550 in
14551 libsystemd)
14552 SYSTEMD_SERVICE_TYPE="notify"
14553 SYSTEMD_SERVICE_ARGUMENTS="-n"
14554 ;;
14555 esac
14556
14557 systemd_package=""
14558 systemd_includes=""
14559 systemd_libs=""
14560
14561 for package_specification in libsystemd
14562 do
14563 ${PKG_CONFIG} --exists "${package_specification}" && {
14564 printf "%s\n" "#define HAVE_PKG_SYSTEMD 1" >>confdefs.h
14565
14566
14567 systemd_package="${package_specification%% *}"
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd package: ${systemd_package}" >&5
14569 printf "%s\n" "$as_me: systemd package: ${systemd_package}" >&6;}
14570
14571 systemd_includes=`${PKG_CONFIG} --cflags-only-I "${systemd_package}"`
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd includes: ${systemd_includes}" >&5
14573 printf "%s\n" "$as_me: systemd includes: ${systemd_includes}" >&6;}
14574
14575 systemd_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${systemd_package}"`
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd libs: ${systemd_libs}" >&5
14577 printf "%s\n" "$as_me: systemd libs: ${systemd_libs}" >&6;}
14578
14579
14580 brltty_libs_save="${LIBS}"
14581 LIBS="${LIBS} ${systemd_libs}"
14582 ac_fn_c_check_func "$LINENO" "sd_session_get_vt" "ac_cv_func_sd_session_get_vt"
14583 if test "x$ac_cv_func_sd_session_get_vt" = xyes
14584 then :
14585
14586 printf "%s\n" "#define HAVE_SD_SESSION_GET_VT 1" >>confdefs.h
14587
14588 api_libraries="${api_libraries} ${systemd_libs}"
14589
14590 else case e in #(
14591 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: function not available: systemd:sd_session_get_vt()" >&5
14592 printf "%s\n" "$as_me: WARNING: function not available: systemd:sd_session_get_vt()" >&2;}
14593 ;;
14594 esac
14595 fi
14596
14597 LIBS="${brltty_libs_save}"
14598
14599 break
14600 }
14601 done
14602
14603 test -n "${systemd_package}" || {
14604 :
14605 }
14606
14607
14608
14609
14610
14611
14612 params_package=""
14613 params_includes=""
14614 params_libs=""
14615
14616
14617 # Check whether --with-params-package was given.
14618 if test ${with_params_package+y}
14619 then :
14620 withval=$with_params_package; packages="${withval}"
14621 else case e in #(
14622 e) packages="yes"
14623 ;;
14624 esac
14625 fi
14626
14627
14628 if test "${packages}" = "no"
14629 then
14630 params_package="none"
14631 elif test "${packages}" = "yes"
14632 then
14633 packages=""
14634 case "${host_os}"
14635 in
14636 linux*)
14637 params_package="linux"
14638 ;;
14639
14640 *);;
14641 esac
14642
14643 else
14644 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14645 fi
14646
14647 test -z "${params_package}" && {
14648 test -n "${packages}" && {
14649 for package in ${packages}
14650 do
14651 params_package=""
14652 params_includes=""
14653 params_libs=""
14654
14655 for package_specification in ${package}
14656 do
14657 ${PKG_CONFIG} --exists "${package_specification}" && {
14658 printf "%s\n" "#define HAVE_PKG_PARAMS 1" >>confdefs.h
14659
14660
14661 params_package="${package_specification%% *}"
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: params package: ${params_package}" >&5
14663 printf "%s\n" "$as_me: params package: ${params_package}" >&6;}
14664
14665 params_includes=`${PKG_CONFIG} --cflags-only-I "${params_package}"`
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: params includes: ${params_includes}" >&5
14667 printf "%s\n" "$as_me: params includes: ${params_includes}" >&6;}
14668
14669 params_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${params_package}"`
14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: params libs: ${params_libs}" >&5
14671 printf "%s\n" "$as_me: params libs: ${params_libs}" >&6;}
14672
14673
14674 break
14675 }
14676 done
14677
14678 test -n "${params_package}" || {
14679 :
14680 }
14681
14682
14683
14684
14685
14686 test -n "${params_package}" && break
14687
14688
14689
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: boot parameters package not available: ${package}" >&5
14691 printf "%s\n" "$as_me: boot parameters package not available: ${package}" >&6;}
14692 done
14693 }
14694 }
14695
14696 test -z "${params_package}" && {
14697 params_package="none"
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: boot parameters support not available on this platform" >&5
14699 printf "%s\n" "$as_me: WARNING: boot parameters support not available on this platform" >&2;}
14700 }
14701
14702
14703
14704
14705
14706 printf "%s\n" "#define PARAMS_PACKAGE ${params_package}" >>confdefs.h
14707
14708 brltty_uc=`echo "use_pkg_params_${params_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
14709 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
14710
14711 brltty_summary_lines="${brltty_summary_lines}
14712 params-package: ${params_package}"
14713
14714 dynld_package=""
14715 dynld_includes=""
14716 dynld_libs=""
14717
14718
14719 # Check whether --with-dynld-package was given.
14720 if test ${with_dynld_package+y}
14721 then :
14722 withval=$with_dynld_package; packages="${withval}"
14723 else case e in #(
14724 e) packages="yes"
14725 ;;
14726 esac
14727 fi
14728
14729
14730 if test "${packages}" = "no"
14731 then
14732 dynld_package="none"
14733 elif test "${packages}" = "yes"
14734 then
14735 packages="dlfcn dyld"
14736 case "${host_os}"
14737 in
14738 elf*)
14739 dynld_package="grub"
14740 ;;
14741 hpux*)
14742 dynld_package="shl"
14743 ;;
14744 mingw*)
14745 dynld_package="windows"
14746 ;;
14747
14748 *);;
14749 esac
14750
14751 else
14752 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14753 fi
14754
14755 test -z "${dynld_package}" && {
14756 test -n "${packages}" && {
14757 for package in ${packages}
14758 do
14759 dynld_package=""
14760 dynld_includes=""
14761 dynld_libs=""
14762
14763 for package_specification in ${package}
14764 do
14765 ${PKG_CONFIG} --exists "${package_specification}" && {
14766 printf "%s\n" "#define HAVE_PKG_DYNLD 1" >>confdefs.h
14767
14768
14769 dynld_package="${package_specification%% *}"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dynld package: ${dynld_package}" >&5
14771 printf "%s\n" "$as_me: dynld package: ${dynld_package}" >&6;}
14772
14773 dynld_includes=`${PKG_CONFIG} --cflags-only-I "${dynld_package}"`
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dynld includes: ${dynld_includes}" >&5
14775 printf "%s\n" "$as_me: dynld includes: ${dynld_includes}" >&6;}
14776
14777 dynld_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${dynld_package}"`
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dynld libs: ${dynld_libs}" >&5
14779 printf "%s\n" "$as_me: dynld libs: ${dynld_libs}" >&6;}
14780
14781
14782 break
14783 }
14784 done
14785
14786 test -n "${dynld_package}" || {
14787 :
14788 }
14789
14790
14791
14792
14793
14794 test -n "${dynld_package}" && break
14795
14796 case "${package}"
14797 in
14798 dlfcn)
14799 for ac_header in dlfcn.h
14800 do :
14801 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14802 if test "x$ac_cv_header_dlfcn_h" = xyes
14803 then :
14804 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14805
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14807 printf %s "checking for library containing dlopen... " >&6; }
14808 if test ${ac_cv_search_dlopen+y}
14809 then :
14810 printf %s "(cached) " >&6
14811 else case e in #(
14812 e) ac_func_search_save_LIBS=$LIBS
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply.
14819 The 'extern "C"' is for builds by C++ compilers;
14820 although this is not generally supported in C code supporting it here
14821 has little cost and some practical benefit (sr 110532). */
14822 #ifdef __cplusplus
14823 extern "C"
14824 #endif
14825 char dlopen (void);
14826 int
14827 main (void)
14828 {
14829 return dlopen ();
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 for ac_lib in '' dl
14835 do
14836 if test -z "$ac_lib"; then
14837 ac_res="none required"
14838 else
14839 ac_res=-l$ac_lib
14840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14841 fi
14842 if ac_fn_c_try_link "$LINENO"
14843 then :
14844 ac_cv_search_dlopen=$ac_res
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14847 conftest$ac_exeext
14848 if test ${ac_cv_search_dlopen+y}
14849 then :
14850 break
14851 fi
14852 done
14853 if test ${ac_cv_search_dlopen+y}
14854 then :
14855
14856 else case e in #(
14857 e) ac_cv_search_dlopen=no ;;
14858 esac
14859 fi
14860 rm conftest.$ac_ext
14861 LIBS=$ac_func_search_save_LIBS ;;
14862 esac
14863 fi
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14865 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14866 ac_res=$ac_cv_search_dlopen
14867 if test "$ac_res" != no
14868 then :
14869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14870 dynld_package="dlfcn"
14871
14872 fi
14873
14874
14875 fi
14876
14877 done
14878 ;;
14879 dyld)
14880 for ac_header in mach-o/dyld.h
14881 do :
14882 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
14883 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
14884 then :
14885 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
14886
14887 dynld_package="dyld"
14888
14889 fi
14890
14891 done
14892 ;;
14893
14894 *);;
14895 esac
14896
14897 test -n "${dynld_package}" && break
14898
14899
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dynamic loading package not available: ${package}" >&5
14901 printf "%s\n" "$as_me: dynamic loading package not available: ${package}" >&6;}
14902 done
14903 }
14904 }
14905
14906 test -z "${dynld_package}" && {
14907 dynld_package="none"
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dynamic loading support not available on this platform" >&5
14909 printf "%s\n" "$as_me: WARNING: dynamic loading support not available on this platform" >&2;}
14910 }
14911
14912
14913
14914
14915
14916 printf "%s\n" "#define DYNLD_PACKAGE ${dynld_package}" >>confdefs.h
14917
14918 brltty_uc=`echo "use_pkg_dynld_${dynld_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
14919 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
14920
14921 brltty_summary_lines="${brltty_summary_lines}
14922 dynld-package: ${dynld_package}"
14923
14924 rgx_package=""
14925 rgx_includes=""
14926 rgx_libs=""
14927
14928
14929 # Check whether --with-rgx-package was given.
14930 if test ${with_rgx_package+y}
14931 then :
14932 withval=$with_rgx_package; packages="${withval}"
14933 else case e in #(
14934 e) packages="yes"
14935 ;;
14936 esac
14937 fi
14938
14939
14940 if test "${packages}" = "no"
14941 then
14942 rgx_package="none"
14943 elif test "${packages}" = "yes"
14944 then
14945 packages="libpcre2-32 libpcre32"
14946 case "${host_os}"
14947 in
14948
14949 *);;
14950 esac
14951
14952 else
14953 packages=`echo "${packages}" | sed -e 'y/,/ /'`
14954 fi
14955
14956 test -z "${rgx_package}" && {
14957 test -n "${packages}" && {
14958 for package in ${packages}
14959 do
14960 rgx_package=""
14961 rgx_includes=""
14962 rgx_libs=""
14963
14964 for package_specification in ${package}
14965 do
14966 ${PKG_CONFIG} --exists "${package_specification}" && {
14967 printf "%s\n" "#define HAVE_PKG_RGX 1" >>confdefs.h
14968
14969
14970 rgx_package="${package_specification%% *}"
14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: rgx package: ${rgx_package}" >&5
14972 printf "%s\n" "$as_me: rgx package: ${rgx_package}" >&6;}
14973
14974 rgx_includes=`${PKG_CONFIG} --cflags-only-I "${rgx_package}"`
14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: rgx includes: ${rgx_includes}" >&5
14976 printf "%s\n" "$as_me: rgx includes: ${rgx_includes}" >&6;}
14977
14978 rgx_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${rgx_package}"`
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: rgx libs: ${rgx_libs}" >&5
14980 printf "%s\n" "$as_me: rgx libs: ${rgx_libs}" >&6;}
14981
14982
14983 break
14984 }
14985 done
14986
14987 test -n "${rgx_package}" || {
14988 :
14989 }
14990
14991
14992
14993
14994
14995 test -n "${rgx_package}" && break
14996
14997
14998
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: regular expression package not available: ${package}" >&5
15000 printf "%s\n" "$as_me: regular expression package not available: ${package}" >&6;}
15001 done
15002 }
15003 }
15004
15005 test -z "${rgx_package}" && {
15006 rgx_package="none"
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: regular expression support not available on this platform" >&5
15008 printf "%s\n" "$as_me: WARNING: regular expression support not available on this platform" >&2;}
15009 }
15010
15011
15012
15013
15014
15015 printf "%s\n" "#define RGX_PACKAGE ${rgx_package}" >>confdefs.h
15016
15017 brltty_uc=`echo "use_pkg_rgx_${rgx_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15018 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15019
15020 brltty_summary_lines="${brltty_summary_lines}
15021 rgx-package: ${rgx_package}"
15022
15023 charset_package=""
15024 charset_includes=""
15025 charset_libs=""
15026
15027
15028 # Check whether --with-charset-package was given.
15029 if test ${with_charset_package+y}
15030 then :
15031 withval=$with_charset_package; packages="${withval}"
15032 else case e in #(
15033 e) packages="yes"
15034 ;;
15035 esac
15036 fi
15037
15038
15039 if test "${packages}" = "no"
15040 then
15041 charset_package="none"
15042 elif test "${packages}" = "yes"
15043 then
15044 packages="iconv"
15045 case "${host_os}"
15046 in
15047 elf*)
15048 charset_package=grub
15049 ;;
15050 mingw*)
15051 charset_package=windows
15052 ;;
15053 msdos*)
15054 charset_package=msdos
15055 ;;
15056
15057 *);;
15058 esac
15059
15060 else
15061 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15062 fi
15063
15064 test -z "${charset_package}" && {
15065 test -n "${packages}" && {
15066 for package in ${packages}
15067 do
15068 charset_package=""
15069 charset_includes=""
15070 charset_libs=""
15071
15072 for package_specification in ${package}
15073 do
15074 ${PKG_CONFIG} --exists "${package_specification}" && {
15075 printf "%s\n" "#define HAVE_PKG_CHARSET 1" >>confdefs.h
15076
15077
15078 charset_package="${package_specification%% *}"
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: charset package: ${charset_package}" >&5
15080 printf "%s\n" "$as_me: charset package: ${charset_package}" >&6;}
15081
15082 charset_includes=`${PKG_CONFIG} --cflags-only-I "${charset_package}"`
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: charset includes: ${charset_includes}" >&5
15084 printf "%s\n" "$as_me: charset includes: ${charset_includes}" >&6;}
15085
15086 charset_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${charset_package}"`
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: charset libs: ${charset_libs}" >&5
15088 printf "%s\n" "$as_me: charset libs: ${charset_libs}" >&6;}
15089
15090
15091 break
15092 }
15093 done
15094
15095 test -n "${charset_package}" || {
15096 :
15097 }
15098
15099
15100
15101
15102
15103 test -n "${charset_package}" && break
15104
15105 case "${package}"
15106 in
15107 iconv)
15108 if test "${brltty_enabled_iconv}" = "yes"
15109 then
15110 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15111 if test "x$ac_cv_header_iconv_h" = xyes
15112 then :
15113 charset_package=iconv
15114
15115 fi
15116
15117 fi
15118 ;;
15119
15120 *);;
15121 esac
15122
15123 test -n "${charset_package}" && break
15124
15125
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: character set package not available: ${package}" >&5
15127 printf "%s\n" "$as_me: character set package not available: ${package}" >&6;}
15128 done
15129 }
15130 }
15131
15132 test -z "${charset_package}" && {
15133 charset_package="none"
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: character set support not available on this platform" >&5
15135 printf "%s\n" "$as_me: WARNING: character set support not available on this platform" >&2;}
15136 }
15137
15138
15139
15140
15141
15142 printf "%s\n" "#define CHARSET_PACKAGE ${charset_package}" >>confdefs.h
15143
15144 brltty_uc=`echo "use_pkg_charset_${charset_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15145 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15146
15147 brltty_summary_lines="${brltty_summary_lines}
15148 charset-package: ${charset_package}"
15149
15150 hostcmd_package=""
15151 hostcmd_includes=""
15152 hostcmd_libs=""
15153
15154
15155 # Check whether --with-hostcmd-package was given.
15156 if test ${with_hostcmd_package+y}
15157 then :
15158 withval=$with_hostcmd_package; packages="${withval}"
15159 else case e in #(
15160 e) packages="yes"
15161 ;;
15162 esac
15163 fi
15164
15165
15166 if test "${packages}" = "no"
15167 then
15168 hostcmd_package="none"
15169 elif test "${packages}" = "yes"
15170 then
15171 packages="unix"
15172 case "${host_os}"
15173 in
15174 mingw*)
15175 hostcmd_package=windows
15176 ;;
15177
15178 *);;
15179 esac
15180
15181 else
15182 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15183 fi
15184
15185 test -z "${hostcmd_package}" && {
15186 test -n "${packages}" && {
15187 for package in ${packages}
15188 do
15189 hostcmd_package=""
15190 hostcmd_includes=""
15191 hostcmd_libs=""
15192
15193 for package_specification in ${package}
15194 do
15195 ${PKG_CONFIG} --exists "${package_specification}" && {
15196 printf "%s\n" "#define HAVE_PKG_HOSTCMD 1" >>confdefs.h
15197
15198
15199 hostcmd_package="${package_specification%% *}"
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hostcmd package: ${hostcmd_package}" >&5
15201 printf "%s\n" "$as_me: hostcmd package: ${hostcmd_package}" >&6;}
15202
15203 hostcmd_includes=`${PKG_CONFIG} --cflags-only-I "${hostcmd_package}"`
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hostcmd includes: ${hostcmd_includes}" >&5
15205 printf "%s\n" "$as_me: hostcmd includes: ${hostcmd_includes}" >&6;}
15206
15207 hostcmd_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${hostcmd_package}"`
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hostcmd libs: ${hostcmd_libs}" >&5
15209 printf "%s\n" "$as_me: hostcmd libs: ${hostcmd_libs}" >&6;}
15210
15211
15212 break
15213 }
15214 done
15215
15216 test -n "${hostcmd_package}" || {
15217 :
15218 }
15219
15220
15221
15222
15223
15224 test -n "${hostcmd_package}" && break
15225
15226 case "${package}"
15227 in
15228 unix)
15229 ac_fn_check_decl "$LINENO" "fork" "ac_cv_have_decl_fork" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15230 if test "x$ac_cv_have_decl_fork" = xyes
15231 then :
15232 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
15233 if test "x$ac_cv_header_signal_h" = xyes
15234 then :
15235 ac_fn_check_decl "$LINENO" "SIGCHLD" "ac_cv_have_decl_SIGCHLD" "#include <signal.h>
15236
15237 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15238 if test "x$ac_cv_have_decl_SIGCHLD" = xyes
15239 then :
15240 hostcmd_package=unix
15241
15242 fi
15243
15244 fi
15245
15246
15247 fi
15248 ;;
15249
15250 *);;
15251 esac
15252
15253 test -n "${hostcmd_package}" && break
15254
15255
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: host command package not available: ${package}" >&5
15257 printf "%s\n" "$as_me: host command package not available: ${package}" >&6;}
15258 done
15259 }
15260 }
15261
15262 test -z "${hostcmd_package}" && {
15263 hostcmd_package="none"
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: host command support not available on this platform" >&5
15265 printf "%s\n" "$as_me: WARNING: host command support not available on this platform" >&2;}
15266 }
15267
15268
15269
15270
15271
15272 printf "%s\n" "#define HOSTCMD_PACKAGE ${hostcmd_package}" >>confdefs.h
15273
15274 brltty_uc=`echo "use_pkg_hostcmd_${hostcmd_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15275 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15276
15277 brltty_summary_lines="${brltty_summary_lines}
15278 hostcmd-package: ${hostcmd_package}"
15279
15280 mntpt_package=""
15281 mntpt_includes=""
15282 mntpt_libs=""
15283
15284
15285 # Check whether --with-mntpt-package was given.
15286 if test ${with_mntpt_package+y}
15287 then :
15288 withval=$with_mntpt_package; packages="${withval}"
15289 else case e in #(
15290 e) packages="yes"
15291 ;;
15292 esac
15293 fi
15294
15295
15296 if test "${packages}" = "no"
15297 then
15298 mntpt_package="none"
15299 elif test "${packages}" = "yes"
15300 then
15301 packages="mntent mnttab"
15302 case "${host_os}"
15303 in
15304
15305 *);;
15306 esac
15307
15308 else
15309 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15310 fi
15311
15312 test -z "${mntpt_package}" && {
15313 test -n "${packages}" && {
15314 for package in ${packages}
15315 do
15316 mntpt_package=""
15317 mntpt_includes=""
15318 mntpt_libs=""
15319
15320 for package_specification in ${package}
15321 do
15322 ${PKG_CONFIG} --exists "${package_specification}" && {
15323 printf "%s\n" "#define HAVE_PKG_MNTPT 1" >>confdefs.h
15324
15325
15326 mntpt_package="${package_specification%% *}"
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntpt package: ${mntpt_package}" >&5
15328 printf "%s\n" "$as_me: mntpt package: ${mntpt_package}" >&6;}
15329
15330 mntpt_includes=`${PKG_CONFIG} --cflags-only-I "${mntpt_package}"`
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntpt includes: ${mntpt_includes}" >&5
15332 printf "%s\n" "$as_me: mntpt includes: ${mntpt_includes}" >&6;}
15333
15334 mntpt_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${mntpt_package}"`
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntpt libs: ${mntpt_libs}" >&5
15336 printf "%s\n" "$as_me: mntpt libs: ${mntpt_libs}" >&6;}
15337
15338
15339 break
15340 }
15341 done
15342
15343 test -n "${mntpt_package}" || {
15344 :
15345 }
15346
15347
15348
15349
15350
15351 test -n "${mntpt_package}" && break
15352
15353 case "${package}"
15354 in
15355 mntent)
15356 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
15357 if test "x$ac_cv_header_mntent_h" = xyes
15358 then :
15359 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
15360 if test "x$ac_cv_func_setmntent" = xyes
15361 then :
15362 mntpt_package=mntent
15363 ac_fn_c_check_func "$LINENO" "addmntent" "ac_cv_func_addmntent"
15364 if test "x$ac_cv_func_addmntent" = xyes
15365 then :
15366 printf "%s\n" "#define HAVE_ADDMNTENT 1" >>confdefs.h
15367
15368 fi
15369
15370
15371 fi
15372
15373
15374 fi
15375
15376 ;;
15377 mnttab)
15378 ac_fn_c_check_header_compile "$LINENO" "sys/mnttab.h" "ac_cv_header_sys_mnttab_h" "$ac_includes_default"
15379 if test "x$ac_cv_header_sys_mnttab_h" = xyes
15380 then :
15381 mntpt_package=mnttab
15382
15383 fi
15384
15385 ;;
15386
15387 *);;
15388 esac
15389
15390 test -n "${mntpt_package}" && break
15391
15392
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mount point package not available: ${package}" >&5
15394 printf "%s\n" "$as_me: mount point package not available: ${package}" >&6;}
15395 done
15396 }
15397 }
15398
15399 test -z "${mntpt_package}" && {
15400 mntpt_package="none"
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mount point support not available on this platform" >&5
15402 printf "%s\n" "$as_me: WARNING: mount point support not available on this platform" >&2;}
15403 }
15404
15405
15406
15407
15408
15409 printf "%s\n" "#define MNTPT_PACKAGE ${mntpt_package}" >>confdefs.h
15410
15411 brltty_uc=`echo "use_pkg_mntpt_${mntpt_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15412 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15413
15414 brltty_summary_lines="${brltty_summary_lines}
15415 mntpt-package: ${mntpt_package}"
15416
15417 mntfs_package=""
15418 mntfs_includes=""
15419 mntfs_libs=""
15420
15421
15422 # Check whether --with-mntfs-package was given.
15423 if test ${with_mntfs_package+y}
15424 then :
15425 withval=$with_mntfs_package; packages="${withval}"
15426 else case e in #(
15427 e) packages="yes"
15428 ;;
15429 esac
15430 fi
15431
15432
15433 if test "${packages}" = "no"
15434 then
15435 mntfs_package="none"
15436 elif test "${packages}" = "yes"
15437 then
15438 packages=""
15439 case "${host_os}"
15440 in
15441 linux*)
15442 mntfs_package="linux"
15443 ;;
15444
15445 *);;
15446 esac
15447
15448 else
15449 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15450 fi
15451
15452 test -z "${mntfs_package}" && {
15453 test -n "${packages}" && {
15454 for package in ${packages}
15455 do
15456 mntfs_package=""
15457 mntfs_includes=""
15458 mntfs_libs=""
15459
15460 for package_specification in ${package}
15461 do
15462 ${PKG_CONFIG} --exists "${package_specification}" && {
15463 printf "%s\n" "#define HAVE_PKG_MNTFS 1" >>confdefs.h
15464
15465
15466 mntfs_package="${package_specification%% *}"
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntfs package: ${mntfs_package}" >&5
15468 printf "%s\n" "$as_me: mntfs package: ${mntfs_package}" >&6;}
15469
15470 mntfs_includes=`${PKG_CONFIG} --cflags-only-I "${mntfs_package}"`
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntfs includes: ${mntfs_includes}" >&5
15472 printf "%s\n" "$as_me: mntfs includes: ${mntfs_includes}" >&6;}
15473
15474 mntfs_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${mntfs_package}"`
15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mntfs libs: ${mntfs_libs}" >&5
15476 printf "%s\n" "$as_me: mntfs libs: ${mntfs_libs}" >&6;}
15477
15478
15479 break
15480 }
15481 done
15482
15483 test -n "${mntfs_package}" || {
15484 :
15485 }
15486
15487
15488
15489
15490
15491 test -n "${mntfs_package}" && break
15492
15493
15494
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: mount file system package not available: ${package}" >&5
15496 printf "%s\n" "$as_me: mount file system package not available: ${package}" >&6;}
15497 done
15498 }
15499 }
15500
15501 test -z "${mntfs_package}" && {
15502 mntfs_package="none"
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mount file system support not available on this platform" >&5
15504 printf "%s\n" "$as_me: WARNING: mount file system support not available on this platform" >&2;}
15505 }
15506
15507
15508
15509
15510
15511 printf "%s\n" "#define MNTFS_PACKAGE ${mntfs_package}" >>confdefs.h
15512
15513 brltty_uc=`echo "use_pkg_mntfs_${mntfs_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15514 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15515
15516 brltty_summary_lines="${brltty_summary_lines}
15517 mntfs-package: ${mntfs_package}"
15518
15519 kbd_package=""
15520 kbd_includes=""
15521 kbd_libs=""
15522
15523
15524 # Check whether --with-kbd-package was given.
15525 if test ${with_kbd_package+y}
15526 then :
15527 withval=$with_kbd_package; packages="${withval}"
15528 else case e in #(
15529 e) packages="yes"
15530 ;;
15531 esac
15532 fi
15533
15534
15535 if test "${packages}" = "no"
15536 then
15537 kbd_package="none"
15538 elif test "${packages}" = "yes"
15539 then
15540 packages=""
15541 case "${host_os}"
15542 in
15543 *android*) kbd_package="android";;
15544 linux*) kbd_package="linux";;
15545
15546 *);;
15547 esac
15548
15549 else
15550 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15551 fi
15552
15553 test -z "${kbd_package}" && {
15554 test -n "${packages}" && {
15555 for package in ${packages}
15556 do
15557 kbd_package=""
15558 kbd_includes=""
15559 kbd_libs=""
15560
15561 for package_specification in ${package}
15562 do
15563 ${PKG_CONFIG} --exists "${package_specification}" && {
15564 printf "%s\n" "#define HAVE_PKG_KBD 1" >>confdefs.h
15565
15566
15567 kbd_package="${package_specification%% *}"
15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: kbd package: ${kbd_package}" >&5
15569 printf "%s\n" "$as_me: kbd package: ${kbd_package}" >&6;}
15570
15571 kbd_includes=`${PKG_CONFIG} --cflags-only-I "${kbd_package}"`
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: kbd includes: ${kbd_includes}" >&5
15573 printf "%s\n" "$as_me: kbd includes: ${kbd_includes}" >&6;}
15574
15575 kbd_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${kbd_package}"`
15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: kbd libs: ${kbd_libs}" >&5
15577 printf "%s\n" "$as_me: kbd libs: ${kbd_libs}" >&6;}
15578
15579
15580 break
15581 }
15582 done
15583
15584 test -n "${kbd_package}" || {
15585 :
15586 }
15587
15588
15589
15590
15591
15592 test -n "${kbd_package}" && break
15593
15594
15595
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: keyboard package not available: ${package}" >&5
15597 printf "%s\n" "$as_me: keyboard package not available: ${package}" >&6;}
15598 done
15599 }
15600 }
15601
15602 test -z "${kbd_package}" && {
15603 kbd_package="none"
15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: keyboard support not available on this platform" >&5
15605 printf "%s\n" "$as_me: WARNING: keyboard support not available on this platform" >&2;}
15606 }
15607
15608
15609
15610
15611
15612 printf "%s\n" "#define KBD_PACKAGE ${kbd_package}" >>confdefs.h
15613
15614 brltty_uc=`echo "use_pkg_kbd_${kbd_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15615 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15616
15617 brltty_summary_lines="${brltty_summary_lines}
15618 kbd-package: ${kbd_package}"
15619
15620 bell_package=""
15621 bell_includes=""
15622 bell_libs=""
15623
15624
15625 # Check whether --with-bell-package was given.
15626 if test ${with_bell_package+y}
15627 then :
15628 withval=$with_bell_package; packages="${withval}"
15629 else case e in #(
15630 e) packages="yes"
15631 ;;
15632 esac
15633 fi
15634
15635
15636 if test "${packages}" = "no"
15637 then
15638 bell_package="none"
15639 elif test "${packages}" = "yes"
15640 then
15641 packages=""
15642 case "${host_os}"
15643 in
15644 linux*)
15645 bell_package="linux"
15646 ;;
15647
15648 *);;
15649 esac
15650
15651 else
15652 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15653 fi
15654
15655 test -z "${bell_package}" && {
15656 test -n "${packages}" && {
15657 for package in ${packages}
15658 do
15659 bell_package=""
15660 bell_includes=""
15661 bell_libs=""
15662
15663 for package_specification in ${package}
15664 do
15665 ${PKG_CONFIG} --exists "${package_specification}" && {
15666 printf "%s\n" "#define HAVE_PKG_BELL 1" >>confdefs.h
15667
15668
15669 bell_package="${package_specification%% *}"
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bell package: ${bell_package}" >&5
15671 printf "%s\n" "$as_me: bell package: ${bell_package}" >&6;}
15672
15673 bell_includes=`${PKG_CONFIG} --cflags-only-I "${bell_package}"`
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bell includes: ${bell_includes}" >&5
15675 printf "%s\n" "$as_me: bell includes: ${bell_includes}" >&6;}
15676
15677 bell_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${bell_package}"`
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bell libs: ${bell_libs}" >&5
15679 printf "%s\n" "$as_me: bell libs: ${bell_libs}" >&6;}
15680
15681
15682 break
15683 }
15684 done
15685
15686 test -n "${bell_package}" || {
15687 :
15688 }
15689
15690
15691
15692
15693
15694 test -n "${bell_package}" && break
15695
15696
15697
15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: console bell package not available: ${package}" >&5
15699 printf "%s\n" "$as_me: console bell package not available: ${package}" >&6;}
15700 done
15701 }
15702 }
15703
15704 test -z "${bell_package}" && {
15705 bell_package="none"
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: console bell support not available on this platform" >&5
15707 printf "%s\n" "$as_me: WARNING: console bell support not available on this platform" >&2;}
15708 }
15709
15710
15711
15712
15713
15714 printf "%s\n" "#define BELL_PACKAGE ${bell_package}" >>confdefs.h
15715
15716 brltty_uc=`echo "use_pkg_bell_${bell_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15717 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15718
15719 brltty_summary_lines="${brltty_summary_lines}
15720 bell-package: ${bell_package}"
15721
15722 leds_package=""
15723 leds_includes=""
15724 leds_libs=""
15725
15726
15727 # Check whether --with-leds-package was given.
15728 if test ${with_leds_package+y}
15729 then :
15730 withval=$with_leds_package; packages="${withval}"
15731 else case e in #(
15732 e) packages="yes"
15733 ;;
15734 esac
15735 fi
15736
15737
15738 if test "${packages}" = "no"
15739 then
15740 leds_package="none"
15741 elif test "${packages}" = "yes"
15742 then
15743 packages=""
15744 case "${host_os}"
15745 in
15746 linux*)
15747 leds_package="linux"
15748 ;;
15749
15750 *);;
15751 esac
15752
15753 else
15754 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15755 fi
15756
15757 test -z "${leds_package}" && {
15758 test -n "${packages}" && {
15759 for package in ${packages}
15760 do
15761 leds_package=""
15762 leds_includes=""
15763 leds_libs=""
15764
15765 for package_specification in ${package}
15766 do
15767 ${PKG_CONFIG} --exists "${package_specification}" && {
15768 printf "%s\n" "#define HAVE_PKG_LEDS 1" >>confdefs.h
15769
15770
15771 leds_package="${package_specification%% *}"
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: leds package: ${leds_package}" >&5
15773 printf "%s\n" "$as_me: leds package: ${leds_package}" >&6;}
15774
15775 leds_includes=`${PKG_CONFIG} --cflags-only-I "${leds_package}"`
15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: leds includes: ${leds_includes}" >&5
15777 printf "%s\n" "$as_me: leds includes: ${leds_includes}" >&6;}
15778
15779 leds_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${leds_package}"`
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: leds libs: ${leds_libs}" >&5
15781 printf "%s\n" "$as_me: leds libs: ${leds_libs}" >&6;}
15782
15783
15784 break
15785 }
15786 done
15787
15788 test -n "${leds_package}" || {
15789 :
15790 }
15791
15792
15793
15794
15795
15796 test -n "${leds_package}" && break
15797
15798
15799
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: keyboard LEDs package not available: ${package}" >&5
15801 printf "%s\n" "$as_me: keyboard LEDs package not available: ${package}" >&6;}
15802 done
15803 }
15804 }
15805
15806 test -z "${leds_package}" && {
15807 leds_package="none"
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: keyboard LEDs support not available on this platform" >&5
15809 printf "%s\n" "$as_me: WARNING: keyboard LEDs support not available on this platform" >&2;}
15810 }
15811
15812
15813
15814
15815
15816 printf "%s\n" "#define LEDS_PACKAGE ${leds_package}" >>confdefs.h
15817
15818 brltty_uc=`echo "use_pkg_leds_${leds_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15819 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15820
15821 brltty_summary_lines="${brltty_summary_lines}
15822 leds-package: ${leds_package}"
15823
15824 beep_package=""
15825 beep_includes=""
15826 beep_libs=""
15827
15828
15829 # Check whether --with-beep-package was given.
15830 if test ${with_beep_package+y}
15831 then :
15832 withval=$with_beep_package; packages="${withval}"
15833 else case e in #(
15834 e) packages="yes"
15835 ;;
15836 esac
15837 fi
15838
15839
15840 if test "${packages}" = "no"
15841 then
15842 beep_package="none"
15843 elif test "${packages}" = "yes"
15844 then
15845 packages=""
15846 case "${host_os}"
15847 in
15848 *android*)
15849 beep_package="none"
15850 ;;
15851 cygwin*)
15852 beep_package="windows"
15853 ;;
15854 freebsd*)
15855 beep_package="spkr"
15856 ;;
15857 kfreebsd*)
15858 beep_package="spkr"
15859 ;;
15860 linux*)
15861 beep_package="linux"
15862 ;;
15863 mingw*)
15864 beep_package="windows"
15865 ;;
15866 msdos*)
15867 beep_package="msdos"
15868 ;;
15869 netbsd*)
15870 beep_package="wskbd"
15871 ;;
15872 openbsd*)
15873 beep_package="wskbd"
15874 ;;
15875 solaris*)
15876 beep_package="solaris"
15877 ;;
15878
15879 *);;
15880 esac
15881
15882 else
15883 packages=`echo "${packages}" | sed -e 'y/,/ /'`
15884 fi
15885
15886 test -z "${beep_package}" && {
15887 test -n "${packages}" && {
15888 for package in ${packages}
15889 do
15890 beep_package=""
15891 beep_includes=""
15892 beep_libs=""
15893
15894 for package_specification in ${package}
15895 do
15896 ${PKG_CONFIG} --exists "${package_specification}" && {
15897 printf "%s\n" "#define HAVE_PKG_BEEP 1" >>confdefs.h
15898
15899
15900 beep_package="${package_specification%% *}"
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: beep package: ${beep_package}" >&5
15902 printf "%s\n" "$as_me: beep package: ${beep_package}" >&6;}
15903
15904 beep_includes=`${PKG_CONFIG} --cflags-only-I "${beep_package}"`
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: beep includes: ${beep_includes}" >&5
15906 printf "%s\n" "$as_me: beep includes: ${beep_includes}" >&6;}
15907
15908 beep_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${beep_package}"`
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: beep libs: ${beep_libs}" >&5
15910 printf "%s\n" "$as_me: beep libs: ${beep_libs}" >&6;}
15911
15912
15913 break
15914 }
15915 done
15916
15917 test -n "${beep_package}" || {
15918 :
15919 }
15920
15921
15922
15923
15924
15925 test -n "${beep_package}" && break
15926
15927
15928
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: beeper package not available: ${package}" >&5
15930 printf "%s\n" "$as_me: beeper package not available: ${package}" >&6;}
15931 done
15932 }
15933 }
15934
15935 test -z "${beep_package}" && {
15936 beep_package="none"
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: beeper support not available on this platform" >&5
15938 printf "%s\n" "$as_me: WARNING: beeper support not available on this platform" >&2;}
15939 }
15940
15941
15942
15943
15944
15945 printf "%s\n" "#define BEEP_PACKAGE ${beep_package}" >>confdefs.h
15946
15947 brltty_uc=`echo "use_pkg_beep_${beep_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
15948 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
15949
15950 brltty_summary_lines="${brltty_summary_lines}
15951 beep-package: ${beep_package}"
15952
15953 pcm_package=""
15954 pcm_includes=""
15955 pcm_libs=""
15956
15957
15958 # Check whether --with-pcm-package was given.
15959 if test ${with_pcm_package+y}
15960 then :
15961 withval=$with_pcm_package; packages="${withval}"
15962 else case e in #(
15963 e) packages="yes"
15964 ;;
15965 esac
15966 fi
15967
15968
15969 if test "${packages}" = "no"
15970 then
15971 pcm_package="none"
15972 elif test "${packages}" = "yes"
15973 then
15974 packages="alsa oss"
15975 case "${host_os}"
15976 in
15977 *android*)
15978 pcm_package="android"
15979 ;;
15980 *qnx*)
15981 pcm_package="qsa"
15982 ;;
15983 hpux*)
15984 pcm_package="hpux"
15985 ;;
15986 mingw*)
15987 pcm_package="windows"
15988 ;;
15989 msdos*)
15990 pcm_package="none"
15991 ;;
15992 netbsd*)
15993 pcm_package="audio"
15994 ;;
15995 openbsd*)
15996 pcm_package="audio"
15997 ;;
15998 solaris*)
15999 pcm_package="audio"
16000 ;;
16001
16002 *);;
16003 esac
16004
16005 else
16006 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16007 fi
16008
16009 test -z "${pcm_package}" && {
16010 test -n "${packages}" && {
16011 for package in ${packages}
16012 do
16013 pcm_package=""
16014 pcm_includes=""
16015 pcm_libs=""
16016
16017 for package_specification in ${package}
16018 do
16019 ${PKG_CONFIG} --exists "${package_specification}" && {
16020 printf "%s\n" "#define HAVE_PKG_PCM 1" >>confdefs.h
16021
16022
16023 pcm_package="${package_specification%% *}"
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pcm package: ${pcm_package}" >&5
16025 printf "%s\n" "$as_me: pcm package: ${pcm_package}" >&6;}
16026
16027 pcm_includes=`${PKG_CONFIG} --cflags-only-I "${pcm_package}"`
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pcm includes: ${pcm_includes}" >&5
16029 printf "%s\n" "$as_me: pcm includes: ${pcm_includes}" >&6;}
16030
16031 pcm_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${pcm_package}"`
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pcm libs: ${pcm_libs}" >&5
16033 printf "%s\n" "$as_me: pcm libs: ${pcm_libs}" >&6;}
16034
16035
16036 break
16037 }
16038 done
16039
16040 test -n "${pcm_package}" || {
16041 :
16042 }
16043
16044
16045
16046
16047
16048 test -n "${pcm_package}" && break
16049
16050 case "${package}"
16051 in
16052 oss)
16053 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
16054 if test "x$ac_cv_header_sys_soundcard_h" = xyes
16055 then :
16056 pcm_package="oss"
16057
16058 fi
16059
16060 ;;
16061
16062 *);;
16063 esac
16064
16065 test -n "${pcm_package}" && break
16066
16067
16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PCm package not available: ${package}" >&5
16069 printf "%s\n" "$as_me: PCm package not available: ${package}" >&6;}
16070 done
16071 }
16072 }
16073
16074 test -z "${pcm_package}" && {
16075 pcm_package="none"
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PCm support not available on this platform" >&5
16077 printf "%s\n" "$as_me: WARNING: PCm support not available on this platform" >&2;}
16078 }
16079
16080
16081
16082
16083
16084 printf "%s\n" "#define PCM_PACKAGE ${pcm_package}" >>confdefs.h
16085
16086 brltty_uc=`echo "use_pkg_pcm_${pcm_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16087 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16088
16089 brltty_summary_lines="${brltty_summary_lines}
16090 pcm-package: ${pcm_package}"
16091
16092 midi_package=""
16093 midi_includes=""
16094 midi_libs=""
16095
16096
16097 # Check whether --with-midi-package was given.
16098 if test ${with_midi_package+y}
16099 then :
16100 withval=$with_midi_package; packages="${withval}"
16101 else case e in #(
16102 e) packages="yes"
16103 ;;
16104 esac
16105 fi
16106
16107
16108 if test "${packages}" = "no"
16109 then
16110 midi_package="none"
16111 elif test "${packages}" = "yes"
16112 then
16113 packages="alsa oss"
16114 case "${host_os}"
16115 in
16116 darwin*)
16117 midi_package="darwin"
16118 midi_libs="-framework AudioUnit -framework AudioToolbox"
16119 ;;
16120 mingw*)
16121 midi_package="windows"
16122 ;;
16123 msdos*)
16124 midi_package="none"
16125 ;;
16126
16127 *);;
16128 esac
16129
16130 else
16131 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16132 fi
16133
16134 test -z "${midi_package}" && {
16135 test -n "${packages}" && {
16136 for package in ${packages}
16137 do
16138 midi_package=""
16139 midi_includes=""
16140 midi_libs=""
16141
16142 for package_specification in ${package}
16143 do
16144 ${PKG_CONFIG} --exists "${package_specification}" && {
16145 printf "%s\n" "#define HAVE_PKG_MIDI 1" >>confdefs.h
16146
16147
16148 midi_package="${package_specification%% *}"
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: midi package: ${midi_package}" >&5
16150 printf "%s\n" "$as_me: midi package: ${midi_package}" >&6;}
16151
16152 midi_includes=`${PKG_CONFIG} --cflags-only-I "${midi_package}"`
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: midi includes: ${midi_includes}" >&5
16154 printf "%s\n" "$as_me: midi includes: ${midi_includes}" >&6;}
16155
16156 midi_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${midi_package}"`
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: midi libs: ${midi_libs}" >&5
16158 printf "%s\n" "$as_me: midi libs: ${midi_libs}" >&6;}
16159
16160
16161 break
16162 }
16163 done
16164
16165 test -n "${midi_package}" || {
16166 :
16167 }
16168
16169
16170
16171
16172
16173 test -n "${midi_package}" && break
16174
16175 case "${package}"
16176 in
16177 oss)
16178 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
16179 if test "x$ac_cv_header_sys_soundcard_h" = xyes
16180 then :
16181 midi_package="oss"
16182
16183 fi
16184
16185 ;;
16186
16187 *);;
16188 esac
16189
16190 test -n "${midi_package}" && break
16191
16192
16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: MIDI package not available: ${package}" >&5
16194 printf "%s\n" "$as_me: MIDI package not available: ${package}" >&6;}
16195 done
16196 }
16197 }
16198
16199 test -z "${midi_package}" && {
16200 midi_package="none"
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MIDI support not available on this platform" >&5
16202 printf "%s\n" "$as_me: WARNING: MIDI support not available on this platform" >&2;}
16203 }
16204
16205
16206
16207
16208
16209 printf "%s\n" "#define MIDI_PACKAGE ${midi_package}" >>confdefs.h
16210
16211 brltty_uc=`echo "use_pkg_midi_${midi_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16212 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16213
16214 brltty_summary_lines="${brltty_summary_lines}
16215 midi-package: ${midi_package}"
16216
16217 fm_package=""
16218 fm_includes=""
16219 fm_libs=""
16220
16221
16222 # Check whether --with-fm-package was given.
16223 if test ${with_fm_package+y}
16224 then :
16225 withval=$with_fm_package; packages="${withval}"
16226 else case e in #(
16227 e) packages="yes"
16228 ;;
16229 esac
16230 fi
16231
16232
16233 if test "${packages}" = "no"
16234 then
16235 fm_package="none"
16236 elif test "${packages}" = "yes"
16237 then
16238 packages="adlib"
16239 case "${host_os}"
16240 in
16241
16242 *);;
16243 esac
16244
16245 else
16246 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16247 fi
16248
16249 test -z "${fm_package}" && {
16250 test -n "${packages}" && {
16251 for package in ${packages}
16252 do
16253 fm_package=""
16254 fm_includes=""
16255 fm_libs=""
16256
16257 for package_specification in ${package}
16258 do
16259 ${PKG_CONFIG} --exists "${package_specification}" && {
16260 printf "%s\n" "#define HAVE_PKG_FM 1" >>confdefs.h
16261
16262
16263 fm_package="${package_specification%% *}"
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: fm package: ${fm_package}" >&5
16265 printf "%s\n" "$as_me: fm package: ${fm_package}" >&6;}
16266
16267 fm_includes=`${PKG_CONFIG} --cflags-only-I "${fm_package}"`
16268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: fm includes: ${fm_includes}" >&5
16269 printf "%s\n" "$as_me: fm includes: ${fm_includes}" >&6;}
16270
16271 fm_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${fm_package}"`
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: fm libs: ${fm_libs}" >&5
16273 printf "%s\n" "$as_me: fm libs: ${fm_libs}" >&6;}
16274
16275
16276 break
16277 }
16278 done
16279
16280 test -n "${fm_package}" || {
16281 :
16282 }
16283
16284
16285
16286
16287
16288 test -n "${fm_package}" && break
16289
16290 case "${package}"
16291 in
16292 adlib)
16293 fm_package="adlib"
16294 ;;
16295
16296 *);;
16297 esac
16298
16299 test -n "${fm_package}" && break
16300
16301
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FM package not available: ${package}" >&5
16303 printf "%s\n" "$as_me: FM package not available: ${package}" >&6;}
16304 done
16305 }
16306 }
16307
16308 test -z "${fm_package}" && {
16309 fm_package="none"
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FM support not available on this platform" >&5
16311 printf "%s\n" "$as_me: WARNING: FM support not available on this platform" >&2;}
16312 }
16313
16314
16315
16316
16317
16318 printf "%s\n" "#define FM_PACKAGE ${fm_package}" >>confdefs.h
16319
16320 brltty_uc=`echo "use_pkg_fm_${fm_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16321 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16322
16323 brltty_summary_lines="${brltty_summary_lines}
16324 fm-package: ${fm_package}"
16325
16326 serial_package=""
16327 serial_includes=""
16328 serial_libs=""
16329
16330
16331 # Check whether --with-serial-package was given.
16332 if test ${with_serial_package+y}
16333 then :
16334 withval=$with_serial_package; packages="${withval}"
16335 else case e in #(
16336 e) packages="yes"
16337 ;;
16338 esac
16339 fi
16340
16341
16342 if test "${packages}" = "no"
16343 then
16344 serial_package="none"
16345 elif test "${packages}" = "yes"
16346 then
16347 packages="termios"
16348 case "${host_os}"
16349 in
16350 elf*)
16351 serial_package="grub"
16352 ;;
16353 mingw*)
16354 serial_package="windows"
16355 ;;
16356 msdos*)
16357 serial_package="msdos"
16358 ;;
16359
16360 *);;
16361 esac
16362
16363 else
16364 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16365 fi
16366
16367 test -z "${serial_package}" && {
16368 test -n "${packages}" && {
16369 for package in ${packages}
16370 do
16371 serial_package=""
16372 serial_includes=""
16373 serial_libs=""
16374
16375 for package_specification in ${package}
16376 do
16377 ${PKG_CONFIG} --exists "${package_specification}" && {
16378 printf "%s\n" "#define HAVE_PKG_SERIAL 1" >>confdefs.h
16379
16380
16381 serial_package="${package_specification%% *}"
16382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: serial package: ${serial_package}" >&5
16383 printf "%s\n" "$as_me: serial package: ${serial_package}" >&6;}
16384
16385 serial_includes=`${PKG_CONFIG} --cflags-only-I "${serial_package}"`
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: serial includes: ${serial_includes}" >&5
16387 printf "%s\n" "$as_me: serial includes: ${serial_includes}" >&6;}
16388
16389 serial_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${serial_package}"`
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: serial libs: ${serial_libs}" >&5
16391 printf "%s\n" "$as_me: serial libs: ${serial_libs}" >&6;}
16392
16393
16394 break
16395 }
16396 done
16397
16398 test -n "${serial_package}" || {
16399 :
16400 }
16401
16402
16403
16404
16405
16406 test -n "${serial_package}" && break
16407
16408 case "${package}"
16409 in
16410 termios)
16411 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
16412 if test "x$ac_cv_header_termios_h" = xyes
16413 then :
16414 serial_package="termios"
16415 ac_fn_c_check_func "$LINENO" "tcdrain" "ac_cv_func_tcdrain"
16416 if test "x$ac_cv_func_tcdrain" = xyes
16417 then :
16418 printf "%s\n" "#define HAVE_TCDRAIN 1" >>confdefs.h
16419
16420 fi
16421
16422
16423 fi
16424
16425 ;;
16426
16427 *);;
16428 esac
16429
16430 test -n "${serial_package}" && break
16431
16432
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: serial I/O package not available: ${package}" >&5
16434 printf "%s\n" "$as_me: serial I/O package not available: ${package}" >&6;}
16435 done
16436 }
16437 }
16438
16439 test -z "${serial_package}" && {
16440 serial_package="none"
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: serial I/O support not available on this platform" >&5
16442 printf "%s\n" "$as_me: WARNING: serial I/O support not available on this platform" >&2;}
16443 }
16444
16445
16446
16447
16448
16449 printf "%s\n" "#define SERIAL_PACKAGE ${serial_package}" >>confdefs.h
16450
16451 brltty_uc=`echo "use_pkg_serial_${serial_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16452 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16453
16454 brltty_summary_lines="${brltty_summary_lines}
16455 serial-package: ${serial_package}"
16456
16457 usb_package=""
16458 usb_includes=""
16459 usb_libs=""
16460
16461
16462 # Check whether --with-usb-package was given.
16463 if test ${with_usb_package+y}
16464 then :
16465 withval=$with_usb_package; packages="${withval}"
16466 else case e in #(
16467 e) packages="yes"
16468 ;;
16469 esac
16470 fi
16471
16472
16473 if test "${packages}" = "no"
16474 then
16475 usb_package="none"
16476 elif test "${packages}" = "yes"
16477 then
16478 packages="winusb libusb-1.0 libusb"
16479 case "${host_os}"
16480 in
16481 *android*)
16482 usb_package="android"
16483 ;;
16484 darwin*)
16485 usb_package="darwin"
16486 usb_includes="-x objective-c"
16487 ;;
16488 elf*)
16489 usb_package="grub"
16490 ;;
16491 freebsd*)
16492 usb_package="freebsd"
16493 ;;
16494 kfreebsd*)
16495 usb_package="kfreebsd"
16496 ac_fn_c_check_header_compile "$LINENO" "legacy/dev/usb/usb.h" "ac_cv_header_legacy_dev_usb_usb_h" "$ac_includes_default"
16497 if test "x$ac_cv_header_legacy_dev_usb_usb_h" = xyes
16498 then :
16499 printf "%s\n" "#define HAVE_LEGACY_DEV_USB_USB_H 1" >>confdefs.h
16500
16501 fi
16502
16503 ;;
16504 linux*)
16505 usb_package="linux"
16506 ;;
16507 netbsd*)
16508 usb_package="netbsd"
16509 ;;
16510 openbsd*)
16511 usb_package="openbsd"
16512 ;;
16513 solaris*)
16514 usb_package="solaris"
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -laio" >&5
16516 printf %s "checking for main in -laio... " >&6; }
16517 if test ${ac_cv_lib_aio_main+y}
16518 then :
16519 printf %s "(cached) " >&6
16520 else case e in #(
16521 e) ac_check_lib_save_LIBS=$LIBS
16522 LIBS="-laio $LIBS"
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525
16526
16527 int
16528 main (void)
16529 {
16530 return main ();
16531 ;
16532 return 0;
16533 }
16534 _ACEOF
16535 if ac_fn_c_try_link "$LINENO"
16536 then :
16537 ac_cv_lib_aio_main=yes
16538 else case e in #(
16539 e) ac_cv_lib_aio_main=no ;;
16540 esac
16541 fi
16542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16543 conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS ;;
16545 esac
16546 fi
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aio_main" >&5
16548 printf "%s\n" "$ac_cv_lib_aio_main" >&6; }
16549 if test "x$ac_cv_lib_aio_main" = xyes
16550 then :
16551 printf "%s\n" "#define HAVE_LIBAIO 1" >>confdefs.h
16552
16553 LIBS="-laio $LIBS"
16554
16555 fi
16556
16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
16558 printf %s "checking for main in -lrt... " >&6; }
16559 if test ${ac_cv_lib_rt_main+y}
16560 then :
16561 printf %s "(cached) " >&6
16562 else case e in #(
16563 e) ac_check_lib_save_LIBS=$LIBS
16564 LIBS="-lrt $LIBS"
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16567
16568
16569 int
16570 main (void)
16571 {
16572 return main ();
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"
16578 then :
16579 ac_cv_lib_rt_main=yes
16580 else case e in #(
16581 e) ac_cv_lib_rt_main=no ;;
16582 esac
16583 fi
16584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16585 conftest$ac_exeext conftest.$ac_ext
16586 LIBS=$ac_check_lib_save_LIBS ;;
16587 esac
16588 fi
16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
16590 printf "%s\n" "$ac_cv_lib_rt_main" >&6; }
16591 if test "x$ac_cv_lib_rt_main" = xyes
16592 then :
16593 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
16594
16595 LIBS="-lrt $LIBS"
16596
16597 fi
16598
16599 ;;
16600
16601 *);;
16602 esac
16603
16604 else
16605 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16606 fi
16607
16608 test -z "${usb_package}" && {
16609 test -n "${packages}" && {
16610 for package in ${packages}
16611 do
16612 usb_package=""
16613 usb_includes=""
16614 usb_libs=""
16615
16616 for package_specification in ${package}
16617 do
16618 ${PKG_CONFIG} --exists "${package_specification}" && {
16619 printf "%s\n" "#define HAVE_PKG_USB 1" >>confdefs.h
16620
16621
16622 usb_package="${package_specification%% *}"
16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: usb package: ${usb_package}" >&5
16624 printf "%s\n" "$as_me: usb package: ${usb_package}" >&6;}
16625
16626 usb_includes=`${PKG_CONFIG} --cflags-only-I "${usb_package}"`
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: usb includes: ${usb_includes}" >&5
16628 printf "%s\n" "$as_me: usb includes: ${usb_includes}" >&6;}
16629
16630 usb_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${usb_package}"`
16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: usb libs: ${usb_libs}" >&5
16632 printf "%s\n" "$as_me: usb libs: ${usb_libs}" >&6;}
16633
16634
16635 break
16636 }
16637 done
16638
16639 test -n "${usb_package}" || {
16640 :
16641 }
16642
16643
16644
16645
16646
16647 test -n "${usb_package}" && break
16648
16649 case "${package}"
16650 in
16651 winusb)
16652
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 #include <winusb.h>
16656 _ACEOF
16657 if ac_fn_c_try_cpp "$LINENO"
16658 then :
16659 usb_package="winusb"
16660 usb_libs="-lwinusb"
16661
16662 fi
16663 rm -f conftest.err conftest.i conftest.$ac_ext
16664
16665 ;;
16666 libusb)
16667
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 #include <usb.h>
16671 _ACEOF
16672 if ac_fn_c_try_cpp "$LINENO"
16673 then :
16674 usb_package="libusb"
16675 usb_libs="-lusb"
16676
16677 fi
16678 rm -f conftest.err conftest.i conftest.$ac_ext
16679
16680 ;;
16681
16682 *);;
16683 esac
16684
16685 test -n "${usb_package}" && break
16686
16687
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: USB I/O package not available: ${package}" >&5
16689 printf "%s\n" "$as_me: USB I/O package not available: ${package}" >&6;}
16690 done
16691 }
16692 }
16693
16694 test -z "${usb_package}" && {
16695 usb_package="none"
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: USB I/O support not available on this platform" >&5
16697 printf "%s\n" "$as_me: WARNING: USB I/O support not available on this platform" >&2;}
16698 }
16699
16700
16701
16702
16703
16704 printf "%s\n" "#define USB_PACKAGE ${usb_package}" >>confdefs.h
16705
16706 brltty_uc=`echo "use_pkg_usb_${usb_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16707 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16708
16709 brltty_summary_lines="${brltty_summary_lines}
16710 usb-package: ${usb_package}"
16711
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if D-Bus is available" >&5
16713 printf %s "checking if D-Bus is available... " >&6; }
16714 if test ${brltty_cv_have_dbus+y}
16715 then :
16716 printf %s "(cached) " >&6
16717 else case e in #(
16718 e) dbus_package=""
16719 dbus_includes=""
16720 dbus_libs=""
16721
16722 for package_specification in "dbus-1 >= 1.0"
16723 do
16724 ${PKG_CONFIG} --exists "${package_specification}" && {
16725 printf "%s\n" "#define HAVE_PKG_DBUS 1" >>confdefs.h
16726
16727
16728 dbus_package="${package_specification%% *}"
16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dbus package: ${dbus_package}" >&5
16730 printf "%s\n" "$as_me: dbus package: ${dbus_package}" >&6;}
16731
16732 dbus_includes=`${PKG_CONFIG} --cflags-only-I "${dbus_package}"`
16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dbus includes: ${dbus_includes}" >&5
16734 printf "%s\n" "$as_me: dbus includes: ${dbus_includes}" >&6;}
16735
16736 dbus_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${dbus_package}"`
16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dbus libs: ${dbus_libs}" >&5
16738 printf "%s\n" "$as_me: dbus libs: ${dbus_libs}" >&6;}
16739
16740 brltty_cv_have_dbus=yes
16741
16742 break
16743 }
16744 done
16745
16746 test -n "${dbus_package}" || {
16747 brltty_cv_have_dbus=no
16748
16749 }
16750
16751
16752
16753
16754
16755 ;;
16756 esac
16757 fi
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_have_dbus" >&5
16759 printf "%s\n" "$brltty_cv_have_dbus" >&6; }
16760
16761 bluetooth_package=""
16762 bluetooth_includes=""
16763 bluetooth_libs=""
16764
16765
16766 # Check whether --with-bluetooth-package was given.
16767 if test ${with_bluetooth_package+y}
16768 then :
16769 withval=$with_bluetooth_package; packages="${withval}"
16770 else case e in #(
16771 e) packages="yes"
16772 ;;
16773 esac
16774 fi
16775
16776
16777 if test "${packages}" = "no"
16778 then
16779 bluetooth_package="none"
16780 elif test "${packages}" = "yes"
16781 then
16782 packages=""
16783 case "${host_os}"
16784 in
16785 *android*)
16786 bluetooth_package="android"
16787 ;;
16788 darwin*)
16789 bluetooth_package="darwin"
16790 bluetooth_includes="-x objective-c"
16791 bluetooth_libs="-framework IOBluetooth"
16792 ;;
16793 cygwin*|mingw*)
16794 ac_fn_c_check_header_compile "$LINENO" "ws2bth.h" "ac_cv_header_ws2bth_h" "#include <windows.h>
16795 "
16796 if test "x$ac_cv_header_ws2bth_h" = xyes
16797 then :
16798 bluetooth_package="windows"
16799 bluetooth_libs="-lbthprops -lws2_32"
16800
16801 fi
16802
16803 ;;
16804 linux*)
16805 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
16806 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
16807 then :
16808 bluetooth_package="linux"
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lbluetooth" >&5
16810 printf %s "checking for main in -lbluetooth... " >&6; }
16811 if test ${ac_cv_lib_bluetooth_main+y}
16812 then :
16813 printf %s "(cached) " >&6
16814 else case e in #(
16815 e) ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lbluetooth $LIBS"
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819
16820
16821 int
16822 main (void)
16823 {
16824 return main ();
16825 ;
16826 return 0;
16827 }
16828 _ACEOF
16829 if ac_fn_c_try_link "$LINENO"
16830 then :
16831 ac_cv_lib_bluetooth_main=yes
16832 else case e in #(
16833 e) ac_cv_lib_bluetooth_main=no ;;
16834 esac
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS ;;
16839 esac
16840 fi
16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bluetooth_main" >&5
16842 printf "%s\n" "$ac_cv_lib_bluetooth_main" >&6; }
16843 if test "x$ac_cv_lib_bluetooth_main" = xyes
16844 then :
16845 printf "%s\n" "#define HAVE_LIBBLUETOOTH 1" >>confdefs.h
16846
16847 LIBS="-lbluetooth $LIBS"
16848
16849 fi
16850
16851
16852
16853 test "${brltty_cv_have_dbus}" = "yes" && {
16854 bluetooth_includes="${dbus_includes}"
16855 bluetooth_libs="${dbus_libs}"
16856
16857 }
16858
16859 fi
16860
16861 ;;
16862
16863 *);;
16864 esac
16865
16866 else
16867 packages=`echo "${packages}" | sed -e 'y/,/ /'`
16868 fi
16869
16870 test -z "${bluetooth_package}" && {
16871 test -n "${packages}" && {
16872 for package in ${packages}
16873 do
16874 bluetooth_package=""
16875 bluetooth_includes=""
16876 bluetooth_libs=""
16877
16878 for package_specification in ${package}
16879 do
16880 ${PKG_CONFIG} --exists "${package_specification}" && {
16881 printf "%s\n" "#define HAVE_PKG_BLUETOOTH 1" >>confdefs.h
16882
16883
16884 bluetooth_package="${package_specification%% *}"
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bluetooth package: ${bluetooth_package}" >&5
16886 printf "%s\n" "$as_me: bluetooth package: ${bluetooth_package}" >&6;}
16887
16888 bluetooth_includes=`${PKG_CONFIG} --cflags-only-I "${bluetooth_package}"`
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bluetooth includes: ${bluetooth_includes}" >&5
16890 printf "%s\n" "$as_me: bluetooth includes: ${bluetooth_includes}" >&6;}
16891
16892 bluetooth_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${bluetooth_package}"`
16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: bluetooth libs: ${bluetooth_libs}" >&5
16894 printf "%s\n" "$as_me: bluetooth libs: ${bluetooth_libs}" >&6;}
16895
16896
16897 break
16898 }
16899 done
16900
16901 test -n "${bluetooth_package}" || {
16902 :
16903 }
16904
16905
16906
16907
16908
16909 test -n "${bluetooth_package}" && break
16910
16911
16912
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Bluetooth I/O package not available: ${package}" >&5
16914 printf "%s\n" "$as_me: Bluetooth I/O package not available: ${package}" >&6;}
16915 done
16916 }
16917 }
16918
16919 test -z "${bluetooth_package}" && {
16920 bluetooth_package="none"
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bluetooth I/O support not available on this platform" >&5
16922 printf "%s\n" "$as_me: WARNING: Bluetooth I/O support not available on this platform" >&2;}
16923 }
16924
16925
16926
16927
16928
16929 printf "%s\n" "#define BLUETOOTH_PACKAGE ${bluetooth_package}" >>confdefs.h
16930
16931 brltty_uc=`echo "use_pkg_bluetooth_${bluetooth_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
16932 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
16933
16934 brltty_summary_lines="${brltty_summary_lines}
16935 bluetooth-package: ${bluetooth_package}"
16936
16937 hid_package=""
16938 hid_includes=""
16939 hid_libs=""
16940
16941
16942 # Check whether --with-hid-package was given.
16943 if test ${with_hid_package+y}
16944 then :
16945 withval=$with_hid_package; packages="${withval}"
16946 else case e in #(
16947 e) packages="yes"
16948 ;;
16949 esac
16950 fi
16951
16952
16953 if test "${packages}" = "no"
16954 then
16955 hid_package="none"
16956 elif test "${packages}" = "yes"
16957 then
16958 packages=""
16959 case "${host_os}"
16960 in
16961 linux*)
16962 ac_fn_c_check_header_compile "$LINENO" "linux/hidraw.h" "ac_cv_header_linux_hidraw_h" "$ac_includes_default"
16963 if test "x$ac_cv_header_linux_hidraw_h" = xyes
16964 then :
16965 libudev_package=""
16966 libudev_includes=""
16967 libudev_libs=""
16968
16969 for package_specification in libudev
16970 do
16971 ${PKG_CONFIG} --exists "${package_specification}" && {
16972 printf "%s\n" "#define HAVE_PKG_LIBUDEV 1" >>confdefs.h
16973
16974
16975 libudev_package="${package_specification%% *}"
16976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libudev package: ${libudev_package}" >&5
16977 printf "%s\n" "$as_me: libudev package: ${libudev_package}" >&6;}
16978
16979 libudev_includes=`${PKG_CONFIG} --cflags-only-I "${libudev_package}"`
16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libudev includes: ${libudev_includes}" >&5
16981 printf "%s\n" "$as_me: libudev includes: ${libudev_includes}" >&6;}
16982
16983 libudev_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${libudev_package}"`
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libudev libs: ${libudev_libs}" >&5
16985 printf "%s\n" "$as_me: libudev libs: ${libudev_libs}" >&6;}
16986
16987 hid_package="linux"
16988 hid_includes="${libudev_includes}"
16989 hid_libs="${libudev_libs}"
16990
16991 break
16992 }
16993 done
16994
16995 test -n "${libudev_package}" || {
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libudev support not available" >&5
16997 printf "%s\n" "$as_me: WARNING: libudev support not available" >&2;}
16998 }
16999
17000
17001
17002
17003
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lbluetooth" >&5
17005 printf %s "checking for main in -lbluetooth... " >&6; }
17006 if test ${ac_cv_lib_bluetooth_main+y}
17007 then :
17008 printf %s "(cached) " >&6
17009 else case e in #(
17010 e) ac_check_lib_save_LIBS=$LIBS
17011 LIBS="-lbluetooth $LIBS"
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17014
17015
17016 int
17017 main (void)
17018 {
17019 return main ();
17020 ;
17021 return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_link "$LINENO"
17025 then :
17026 ac_cv_lib_bluetooth_main=yes
17027 else case e in #(
17028 e) ac_cv_lib_bluetooth_main=no ;;
17029 esac
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17032 conftest$ac_exeext conftest.$ac_ext
17033 LIBS=$ac_check_lib_save_LIBS ;;
17034 esac
17035 fi
17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bluetooth_main" >&5
17037 printf "%s\n" "$ac_cv_lib_bluetooth_main" >&6; }
17038 if test "x$ac_cv_lib_bluetooth_main" = xyes
17039 then :
17040 printf "%s\n" "#define HAVE_LIBBLUETOOTH 1" >>confdefs.h
17041
17042 LIBS="-lbluetooth $LIBS"
17043
17044 fi
17045
17046
17047 fi
17048
17049 ;;
17050
17051 *);;
17052 esac
17053
17054 else
17055 packages=`echo "${packages}" | sed -e 'y/,/ /'`
17056 fi
17057
17058 test -z "${hid_package}" && {
17059 test -n "${packages}" && {
17060 for package in ${packages}
17061 do
17062 hid_package=""
17063 hid_includes=""
17064 hid_libs=""
17065
17066 for package_specification in ${package}
17067 do
17068 ${PKG_CONFIG} --exists "${package_specification}" && {
17069 printf "%s\n" "#define HAVE_PKG_HID 1" >>confdefs.h
17070
17071
17072 hid_package="${package_specification%% *}"
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hid package: ${hid_package}" >&5
17074 printf "%s\n" "$as_me: hid package: ${hid_package}" >&6;}
17075
17076 hid_includes=`${PKG_CONFIG} --cflags-only-I "${hid_package}"`
17077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hid includes: ${hid_includes}" >&5
17078 printf "%s\n" "$as_me: hid includes: ${hid_includes}" >&6;}
17079
17080 hid_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${hid_package}"`
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hid libs: ${hid_libs}" >&5
17082 printf "%s\n" "$as_me: hid libs: ${hid_libs}" >&6;}
17083
17084
17085 break
17086 }
17087 done
17088
17089 test -n "${hid_package}" || {
17090 :
17091 }
17092
17093
17094
17095
17096
17097 test -n "${hid_package}" && break
17098
17099
17100
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Human Interface Device I/O package not available: ${package}" >&5
17102 printf "%s\n" "$as_me: Human Interface Device I/O package not available: ${package}" >&6;}
17103 done
17104 }
17105 }
17106
17107 test -z "${hid_package}" && {
17108 hid_package="none"
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Human Interface Device I/O support not available on this platform" >&5
17110 printf "%s\n" "$as_me: WARNING: Human Interface Device I/O support not available on this platform" >&2;}
17111 }
17112
17113
17114
17115
17116
17117 printf "%s\n" "#define HID_PACKAGE ${hid_package}" >>confdefs.h
17118
17119 brltty_uc=`echo "use_pkg_hid_${hid_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
17120 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
17121
17122 brltty_summary_lines="${brltty_summary_lines}
17123 hid-package: ${hid_package}"
17124
17125 ports_package=""
17126 ports_includes=""
17127 ports_libs=""
17128
17129
17130 # Check whether --with-ports-package was given.
17131 if test ${with_ports_package+y}
17132 then :
17133 withval=$with_ports_package; packages="${withval}"
17134 else case e in #(
17135 e) packages="yes"
17136 ;;
17137 esac
17138 fi
17139
17140
17141 if test "${packages}" = "no"
17142 then
17143 ports_package="none"
17144 elif test "${packages}" = "yes"
17145 then
17146 packages=""
17147 case "${host_os}"
17148 in
17149 cygwin*)
17150 ports_package="windows"
17151 ;;
17152 elf*)
17153 ports_package="grub"
17154 ;;
17155 gnu*)
17156 ports_package="glibc"
17157 ;;
17158 kfreebsd*)
17159 ports_package="kfreebsd"
17160 ;;
17161 linux*)
17162 ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
17163 if test "x$ac_cv_func_ioperm" = xyes
17164 then :
17165
17166 ports_package="glibc"
17167
17168 fi
17169
17170 ;;
17171 mingw*)
17172 ports_package="windows"
17173 ;;
17174 msdos*)
17175 ports_package="msdos"
17176 ;;
17177
17178 *);;
17179 esac
17180
17181 else
17182 packages=`echo "${packages}" | sed -e 'y/,/ /'`
17183 fi
17184
17185 test -z "${ports_package}" && {
17186 test -n "${packages}" && {
17187 for package in ${packages}
17188 do
17189 ports_package=""
17190 ports_includes=""
17191 ports_libs=""
17192
17193 for package_specification in ${package}
17194 do
17195 ${PKG_CONFIG} --exists "${package_specification}" && {
17196 printf "%s\n" "#define HAVE_PKG_PORTS 1" >>confdefs.h
17197
17198
17199 ports_package="${package_specification%% *}"
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ports package: ${ports_package}" >&5
17201 printf "%s\n" "$as_me: ports package: ${ports_package}" >&6;}
17202
17203 ports_includes=`${PKG_CONFIG} --cflags-only-I "${ports_package}"`
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ports includes: ${ports_includes}" >&5
17205 printf "%s\n" "$as_me: ports includes: ${ports_includes}" >&6;}
17206
17207 ports_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${ports_package}"`
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ports libs: ${ports_libs}" >&5
17209 printf "%s\n" "$as_me: ports libs: ${ports_libs}" >&6;}
17210
17211
17212 break
17213 }
17214 done
17215
17216 test -n "${ports_package}" || {
17217 :
17218 }
17219
17220
17221
17222
17223
17224 test -n "${ports_package}" && break
17225
17226
17227
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: I/O ports package not available: ${package}" >&5
17229 printf "%s\n" "$as_me: I/O ports package not available: ${package}" >&6;}
17230 done
17231 }
17232 }
17233
17234 test -z "${ports_package}" && {
17235 ports_package="none"
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I/O ports support not available on this platform" >&5
17237 printf "%s\n" "$as_me: WARNING: I/O ports support not available on this platform" >&2;}
17238 }
17239
17240
17241
17242
17243
17244 printf "%s\n" "#define PORTS_PACKAGE ${ports_package}" >>confdefs.h
17245
17246 brltty_uc=`echo "use_pkg_ports_${ports_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-.%ABCDEFGHIJKLMNOPQRSTUVWXYZ__%'`
17247 printf "%s\n" "#define ${brltty_uc} 1" >>confdefs.h
17248
17249 brltty_summary_lines="${brltty_summary_lines}
17250 ports-package: ${ports_package}"
17251
17252 brltty_item_entries_braille="${brltty_item_entries_braille} al-Alva"
17253 brltty_item_codes_braille="${brltty_item_codes_braille} al"
17254 brltty_item_names_braille="${brltty_item_names_braille} Alva"
17255 braille_libraries_al=''
17256
17257 brltty_item_entries_braille="${brltty_item_entries_braille} at-Albatross"
17258 brltty_item_codes_braille="${brltty_item_codes_braille} at"
17259 brltty_item_names_braille="${brltty_item_names_braille} Albatross"
17260 braille_libraries_at=''
17261
17262 test -n "${api_server_objects}" && {
17263 brltty_item_entries_braille="${brltty_item_entries_braille} ba-BrlAPI"
17264 brltty_item_codes_braille="${brltty_item_codes_braille} ba"
17265 brltty_item_names_braille="${brltty_item_names_braille} BrlAPI"
17266 braille_libraries_ba='$(API_LIBS)'
17267
17268 }
17269 brltty_item_entries_braille="${brltty_item_entries_braille} bc-BrailComm"
17270 brltty_item_codes_braille="${brltty_item_codes_braille} bc"
17271 brltty_item_names_braille="${brltty_item_names_braille} BrailComm"
17272 braille_libraries_bc=''
17273
17274 brltty_item_entries_braille="${brltty_item_entries_braille} bd-Braudi"
17275 brltty_item_codes_braille="${brltty_item_codes_braille} bd"
17276 brltty_item_names_braille="${brltty_item_names_braille} Braudi"
17277 braille_libraries_bd=''
17278
17279 brltty_item_entries_braille="${brltty_item_entries_braille} bl-BrailleLite"
17280 brltty_item_codes_braille="${brltty_item_codes_braille} bl"
17281 brltty_item_names_braille="${brltty_item_names_braille} BrailleLite"
17282 braille_libraries_bl=''
17283
17284 brltty_item_entries_braille="${brltty_item_entries_braille} bm-Baum"
17285 brltty_item_codes_braille="${brltty_item_codes_braille} bm"
17286 brltty_item_names_braille="${brltty_item_names_braille} Baum"
17287 braille_libraries_bm=''
17288
17289 brltty_item_entries_braille="${brltty_item_entries_braille} bn-BrailleNote"
17290 brltty_item_codes_braille="${brltty_item_codes_braille} bn"
17291 brltty_item_names_braille="${brltty_item_names_braille} BrailleNote"
17292 braille_libraries_bn=''
17293
17294 brltty_item_entries_braille="${brltty_item_entries_braille} cb-CombiBraille"
17295 brltty_item_codes_braille="${brltty_item_codes_braille} cb"
17296 brltty_item_names_braille="${brltty_item_names_braille} CombiBraille"
17297 braille_libraries_cb=''
17298
17299 brltty_item_entries_braille="${brltty_item_entries_braille} ce-Cebra"
17300 brltty_item_codes_braille="${brltty_item_codes_braille} ce"
17301 brltty_item_names_braille="${brltty_item_names_braille} Cebra"
17302 braille_libraries_ce=''
17303
17304 brltty_item_entries_braille="${brltty_item_entries_braille} cn-Canute"
17305 brltty_item_codes_braille="${brltty_item_codes_braille} cn"
17306 brltty_item_names_braille="${brltty_item_names_braille} Canute"
17307 braille_libraries_cn=''
17308
17309 brltty_item_entries_braille="${brltty_item_entries_braille} dp-DotPad"
17310 brltty_item_codes_braille="${brltty_item_codes_braille} dp"
17311 brltty_item_names_braille="${brltty_item_names_braille} DotPad"
17312 braille_libraries_dp=''
17313
17314 brltty_item_entries_braille="${brltty_item_entries_braille} ec-EcoBraille"
17315 brltty_item_codes_braille="${brltty_item_codes_braille} ec"
17316 brltty_item_names_braille="${brltty_item_names_braille} EcoBraille"
17317 braille_libraries_ec=''
17318
17319 brltty_item_entries_braille="${brltty_item_entries_braille} eu-EuroBraille"
17320 brltty_item_codes_braille="${brltty_item_codes_braille} eu"
17321 brltty_item_names_braille="${brltty_item_names_braille} EuroBraille"
17322 braille_libraries_eu=''
17323
17324 brltty_item_entries_braille="${brltty_item_entries_braille} fa-FrankAudiodata"
17325 brltty_item_codes_braille="${brltty_item_codes_braille} fa"
17326 brltty_item_names_braille="${brltty_item_names_braille} FrankAudiodata"
17327 braille_libraries_fa=''
17328
17329 brltty_item_entries_braille="${brltty_item_entries_braille} fs-FreedomScientific"
17330 brltty_item_codes_braille="${brltty_item_codes_braille} fs"
17331 brltty_item_names_braille="${brltty_item_names_braille} FreedomScientific"
17332 braille_libraries_fs=''
17333
17334 brltty_item_entries_braille="${brltty_item_entries_braille} hd-Hedo"
17335 brltty_item_codes_braille="${brltty_item_codes_braille} hd"
17336 brltty_item_names_braille="${brltty_item_names_braille} Hedo"
17337 braille_libraries_hd=''
17338
17339 brltty_item_entries_braille="${brltty_item_entries_braille} hm-HIMS"
17340 brltty_item_codes_braille="${brltty_item_codes_braille} hm"
17341 brltty_item_names_braille="${brltty_item_names_braille} HIMS"
17342 braille_libraries_hm=''
17343
17344 brltty_item_entries_braille="${brltty_item_entries_braille} ht-HandyTech"
17345 brltty_item_codes_braille="${brltty_item_codes_braille} ht"
17346 brltty_item_names_braille="${brltty_item_names_braille} HandyTech"
17347 braille_libraries_ht=''
17348
17349 brltty_item_entries_braille="${brltty_item_entries_braille} hw-HumanWare"
17350 brltty_item_codes_braille="${brltty_item_codes_braille} hw"
17351 brltty_item_names_braille="${brltty_item_names_braille} HumanWare"
17352 braille_libraries_hw=''
17353
17354 brltty_item_entries_braille="${brltty_item_entries_braille} ir-Iris"
17355 brltty_item_codes_braille="${brltty_item_codes_braille} ir"
17356 brltty_item_names_braille="${brltty_item_names_braille} Iris"
17357 braille_libraries_ir=''
17358
17359 brltty_item_entries_braille="${brltty_item_entries_braille} ic-Inceptor"
17360 brltty_item_codes_braille="${brltty_item_codes_braille} ic"
17361 brltty_item_names_braille="${brltty_item_names_braille} Inceptor"
17362 braille_libraries_ic=''
17363
17364
17365 # Check whether --with-libbraille was given.
17366 if test ${with_libbraille+y}
17367 then :
17368 withval=$with_libbraille; libbraille_root="${withval}"
17369 else case e in #(
17370 e) libbraille_root="yes"
17371 ;;
17372 esac
17373 fi
17374
17375
17376 libbraille_found=false
17377
17378
17379
17380 if test "${libbraille_root}" = "no"
17381 then
17382 libbraille_root=""
17383 elif test "${libbraille_root}" = "yes"
17384 then
17385 "${libbraille_found}" || {
17386 libbraille_root=""
17387 roots="/usr /usr/local /usr/local/Libbraille /usr/local/libbraille /opt/Libbraille /opt/libbraille /mingw /mingw/Libbraille /mingw/libbraille"
17388
17389 for root in ${roots}
17390 do
17391 test -f "${root}/include/braille.h" && {
17392 libbraille_root="${root}"
17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Libbraille root: ${libbraille_root}" >&5
17394 printf "%s\n" "$as_me: Libbraille root: ${libbraille_root}" >&6;}
17395 break
17396 }
17397 done
17398
17399 if test -z "${libbraille_root}"
17400 then
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libbraille package not found: ${roots}" >&5
17402 printf "%s\n" "$as_me: WARNING: Libbraille package not found: ${roots}" >&2;}
17403 fi
17404 }
17405 fi
17406
17407
17408 brltty_summary_lines="${brltty_summary_lines}
17409 libbraille-root: ${libbraille_root}"
17410
17411 test -n "${libbraille_root}" && {
17412
17413
17414
17415 printf "%s\n" "#define LIBBRAILLE_ROOT \"${libbraille_root}\"" >>confdefs.h
17416
17417
17418 brltty_item_entries_braille="${brltty_item_entries_braille} lb-Libbraille"
17419 brltty_item_codes_braille="${brltty_item_codes_braille} lb"
17420 brltty_item_names_braille="${brltty_item_names_braille} Libbraille"
17421 braille_libraries_lb='-L$(LIBBRAILLE_ROOT)/lib -lbraille'
17422
17423
17424 }
17425
17426 brltty_item_entries_braille="${brltty_item_entries_braille} lt-LogText"
17427 brltty_item_codes_braille="${brltty_item_codes_braille} lt"
17428 brltty_item_names_braille="${brltty_item_names_braille} LogText"
17429 braille_libraries_lt=''
17430
17431 brltty_item_entries_braille="${brltty_item_entries_braille} mb-MultiBraille"
17432 brltty_item_codes_braille="${brltty_item_codes_braille} mb"
17433 brltty_item_names_braille="${brltty_item_names_braille} MultiBraille"
17434 braille_libraries_mb=''
17435
17436 brltty_item_entries_braille="${brltty_item_entries_braille} md-MDV"
17437 brltty_item_codes_braille="${brltty_item_codes_braille} md"
17438 brltty_item_names_braille="${brltty_item_names_braille} MDV"
17439 braille_libraries_md=''
17440
17441 brltty_item_entries_braille="${brltty_item_entries_braille} mm-BrailleMemo"
17442 brltty_item_codes_braille="${brltty_item_codes_braille} mm"
17443 brltty_item_names_braille="${brltty_item_names_braille} BrailleMemo"
17444 braille_libraries_mm=''
17445
17446 brltty_item_entries_braille="${brltty_item_entries_braille} mn-MiniBraille"
17447 brltty_item_codes_braille="${brltty_item_codes_braille} mn"
17448 brltty_item_names_braille="${brltty_item_names_braille} MiniBraille"
17449 braille_libraries_mn=''
17450
17451 brltty_item_entries_braille="${brltty_item_entries_braille} mt-Metec"
17452 brltty_item_codes_braille="${brltty_item_codes_braille} mt"
17453 brltty_item_names_braille="${brltty_item_names_braille} Metec"
17454 braille_libraries_mt=''
17455
17456 brltty_item_entries_braille="${brltty_item_entries_braille} np-NinePoint"
17457 brltty_item_codes_braille="${brltty_item_codes_braille} np"
17458 brltty_item_names_braille="${brltty_item_names_braille} NinePoint"
17459 braille_libraries_np=''
17460
17461 brltty_item_entries_braille="${brltty_item_entries_braille} pg-Pegasus"
17462 brltty_item_codes_braille="${brltty_item_codes_braille} pg"
17463 brltty_item_names_braille="${brltty_item_names_braille} Pegasus"
17464 braille_libraries_pg=''
17465
17466 brltty_item_entries_braille="${brltty_item_entries_braille} pm-Papenmeier"
17467 brltty_item_codes_braille="${brltty_item_codes_braille} pm"
17468 brltty_item_names_braille="${brltty_item_names_braille} Papenmeier"
17469 braille_libraries_pm=''
17470
17471 brltty_item_entries_braille="${brltty_item_entries_braille} sk-Seika"
17472 brltty_item_codes_braille="${brltty_item_codes_braille} sk"
17473 brltty_item_names_braille="${brltty_item_names_braille} Seika"
17474 braille_libraries_sk=''
17475
17476 brltty_item_entries_braille="${brltty_item_entries_braille} tn-TechniBraille"
17477 brltty_item_codes_braille="${brltty_item_codes_braille} tn"
17478 brltty_item_names_braille="${brltty_item_names_braille} TechniBraille"
17479 braille_libraries_tn=''
17480
17481 brltty_item_entries_braille="${brltty_item_entries_braille} ts-TSI"
17482 brltty_item_codes_braille="${brltty_item_codes_braille} ts"
17483 brltty_item_names_braille="${brltty_item_names_braille} TSI"
17484 braille_libraries_ts=''
17485
17486 brltty_item_entries_braille="${brltty_item_entries_braille} tt-TTY"
17487 brltty_item_codes_braille="${brltty_item_codes_braille} tt"
17488 brltty_item_names_braille="${brltty_item_names_braille} TTY"
17489 braille_libraries_tt='$(CURSES_LIBS)'
17490
17491 brltty_item_entries_braille="${brltty_item_entries_braille} vd-VideoBraille"
17492 brltty_item_codes_braille="${brltty_item_codes_braille} vd"
17493 brltty_item_names_braille="${brltty_item_names_braille} VideoBraille"
17494 braille_libraries_vd=''
17495
17496 brltty_item_entries_braille="${brltty_item_entries_braille} vo-Voyager"
17497 brltty_item_codes_braille="${brltty_item_codes_braille} vo"
17498 brltty_item_names_braille="${brltty_item_names_braille} Voyager"
17499 braille_libraries_vo=''
17500
17501 brltty_item_entries_braille="${brltty_item_entries_braille} vs-VisioBraille"
17502 brltty_item_codes_braille="${brltty_item_codes_braille} vs"
17503 brltty_item_names_braille="${brltty_item_names_braille} VisioBraille"
17504 braille_libraries_vs=''
17505
17506 test -n "${gui_toolkit_package}" && {
17507 brltty_item_entries_braille="${brltty_item_entries_braille} xw-XWindow"
17508 brltty_item_codes_braille="${brltty_item_codes_braille} xw"
17509 brltty_item_names_braille="${brltty_item_names_braille} XWindow"
17510 braille_libraries_xw='$(XTK_LIBS) $(X11_LIBS)'
17511
17512 }
17513 case "${host_os}"
17514 in
17515 linux*)
17516 brltty_item_entries_braille="${brltty_item_entries_braille} bg-B2G"
17517 brltty_item_codes_braille="${brltty_item_codes_braille} bg"
17518 brltty_item_names_braille="${brltty_item_names_braille} B2G"
17519 braille_libraries_bg=''
17520
17521 ;;
17522 *) ;;
17523 esac
17524 brltty_item_codes_braille="`echo "${brltty_item_codes_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17525
17526
17527
17528 brltty_item_names_braille="`echo "${brltty_item_names_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17529
17530
17531
17532 case "${host_os}"
17533 in
17534 cygwin*|mingw*)
17535 brltty_default="all"
17536 ;;
17537 *)
17538 brltty_default="yes"
17539 ;;
17540 esac
17541
17542
17543 # Check whether --with-braille-driver was given.
17544 if test ${with_braille_driver+y}
17545 then :
17546 withval=$with_braille_driver; brltty_items="${withval}"
17547 else case e in #(
17548 e) brltty_items="${brltty_default}"
17549 ;;
17550 esac
17551 fi
17552
17553
17554 if test "${brltty_items}" = "no"
17555 then
17556 brltty_external_codes_braille=""
17557 brltty_external_names_braille=""
17558 brltty_internal_codes_braille=""
17559 brltty_internal_names_braille=""
17560 else
17561 brltty_items_left_braille=" ${brltty_item_entries_braille} "
17562 brltty_external_codes_braille=" ${brltty_item_codes_braille} "
17563 brltty_external_names_braille=" ${brltty_item_names_braille} "
17564 brltty_internal_codes_braille=""
17565 brltty_internal_names_braille=""
17566
17567 if test "${brltty_items}" != "yes"
17568 then
17569 while :
17570 do
17571 brltty_delimiter="`expr "${brltty_items}" : '[^,]*,'`"
17572 if test "${brltty_delimiter}" -eq 0
17573 then
17574 brltty_item="${brltty_items}"
17575 brltty_items=""
17576 if test "${brltty_item}" = "all"
17577 then
17578 brltty_item_all=true
17579 brltty_item_include=true
17580 elif test "${brltty_item}" = "-all"
17581 then
17582 brltty_item_all=true
17583 brltty_item_include=false
17584 else
17585 brltty_item_all=false
17586 fi
17587 if "${brltty_item_all}"
17588 then
17589 if "${brltty_item_include}"
17590 then
17591 brltty_internal_codes_braille="${brltty_internal_codes_braille}${brltty_external_codes_braille}"
17592 brltty_internal_names_braille="${brltty_internal_names_braille}${brltty_external_names_braille}"
17593 fi
17594 brltty_external_codes_braille=""
17595 brltty_external_names_braille=""
17596 break
17597 fi
17598 else
17599 brltty_item="`expr "${brltty_items}" : '\([^,]*\)'`"
17600 brltty_items="`expr "${brltty_items}" : '[^,]*,\(.*\)'`"
17601 fi
17602 brltty_item_suffix="${brltty_item#-}"
17603 if test "${brltty_item}" = "${brltty_item_suffix}"
17604 then
17605 brltty_item_include=true
17606 else
17607 brltty_item_include=false
17608 brltty_item="${brltty_item_suffix}"
17609 fi
17610
17611 brltty_item_unknown=true
17612 brltty_item_length=`expr length "${brltty_item}"`
17613
17614 if test "${brltty_item_length}" -eq 2
17615 then
17616 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
17617 if test -n "${brltty_item_entry}"
17618 then
17619 brltty_item_code="${brltty_item}"
17620 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
17621 brltty_item_unknown=false
17622 fi
17623 elif test "${brltty_item_length}" -gt 2
17624 then
17625 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
17626 if test -z "${brltty_item_entry}"
17627 then
17628 brltty_lowercase=`echo "${brltty_items_left_braille}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
17629 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
17630 if test -n "${brltty_item_code}"
17631 then
17632 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
17633 fi
17634 fi
17635
17636 if test -n "${brltty_item_entry}"
17637 then
17638 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
17639 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
17640 brltty_item_unknown=false
17641 fi
17642 fi
17643
17644 "${brltty_item_unknown}" && {
17645 as_fn_error $? "unknown braille driver: ${brltty_item}" "$LINENO" 5
17646 }
17647
17648 brltty_item_found="`expr "${brltty_external_codes_braille}" : ".* ${brltty_item_code} "`"
17649 test "${brltty_item_found}" -eq 0 && {
17650 as_fn_error $? "duplicate braille driver: ${brltty_item}" "$LINENO" 5
17651 }
17652
17653 brltty_items_left_braille="`echo "${brltty_items_left_braille}" | sed -e "s% ${brltty_item_entry} % %"`"
17654 brltty_external_codes_braille="`echo "${brltty_external_codes_braille}" | sed -e "s% ${brltty_item_code} % %"`"
17655 brltty_external_names_braille="`echo "${brltty_external_names_braille}" | sed -e "s% ${brltty_item_name} % %"`"
17656
17657 "${brltty_item_include}" && {
17658 brltty_internal_codes_braille="${brltty_internal_codes_braille} ${brltty_item_code}"
17659 brltty_internal_names_braille="${brltty_internal_names_braille} ${brltty_item_name}"
17660 }
17661
17662 brltty_item_unknown=true
17663 brltty_item_length=`expr length "${brltty_item}"`
17664
17665 if test "${brltty_item_length}" -eq 2
17666 then
17667 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
17668 if test -n "${brltty_item_entry}"
17669 then
17670 brltty_item_code="${brltty_item}"
17671 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
17672 brltty_item_unknown=false
17673 fi
17674 elif test "${brltty_item_length}" -gt 2
17675 then
17676 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
17677 if test -z "${brltty_item_entry}"
17678 then
17679 brltty_lowercase=`echo "${brltty_items_left_braille}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
17680 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
17681 if test -n "${brltty_item_code}"
17682 then
17683 brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
17684 fi
17685 fi
17686
17687 if test -n "${brltty_item_entry}"
17688 then
17689 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
17690 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
17691 brltty_item_unknown=false
17692 fi
17693 fi
17694
17695 "${brltty_item_unknown}" || {
17696 as_fn_error $? "ambiguous braille driver: ${brltty_item}" "$LINENO" 5
17697 }
17698
17699 test "${brltty_delimiter}" -eq 0 && break
17700 done
17701 fi
17702
17703 brltty_external_codes_braille="`echo "${brltty_external_codes_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17704
17705 brltty_external_names_braille="`echo "${brltty_external_names_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17706
17707 brltty_internal_codes_braille="`echo "${brltty_internal_codes_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17708
17709 brltty_internal_names_braille="`echo "${brltty_internal_names_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
17710
17711 fi
17712
17713
17714
17715
17716
17717
17718 set -- ${brltty_internal_codes_braille} ${brltty_external_codes_braille}
17719
17720 printf "%s\n" "#define BRAILLE_DRIVER_CODES \"${*}\"" >>confdefs.h
17721
17722
17723 default_braille_driver="${1}"
17724
17725
17726 printf "%s\n" "#define DEFAULT_BRAILLE_DRIVER \"${1}\"" >>confdefs.h
17727
17728
17729 braille_driver_libraries=""
17730 if test -n "${brltty_internal_codes_braille}"
17731 then
17732 for brltty_driver in ${brltty_internal_codes_braille}
17733 do
17734 eval 'brltty_libraries="${braille_libraries_'"${brltty_driver}"'}"'
17735 if test -n "${brltty_libraries}"
17736 then
17737 braille_driver_libraries="${braille_driver_libraries} ${brltty_libraries}"
17738 fi
17739 done
17740 fi
17741 braille_driver_libraries="`echo "${braille_driver_libraries}" | sed -e 's/^ *//' -e 's/ *$//'`"
17742
17743
17744
17745 if test "${brltty_enabled_braille_support}" != "no"
17746 then
17747 if test -n "${brltty_internal_codes_braille}"
17748 then
17749 braille_driver_objects="`echo "${brltty_internal_names_braille}" | sed -e 's%\([^ ][^ ]*\)%$(BLD_TOP)Drivers/Braille/\1/braille.$(ARC_EXT)%g'`"
17750 braille_help="braille-help"
17751 fi
17752
17753 if test "${brltty_standalone_programs}" != "yes"
17754 then
17755 if test -n "${brltty_external_codes_braille}"
17756 then
17757 braille_drivers="braille-drivers"
17758 install_drivers="install-drivers"
17759 fi
17760 brltty_summary_lines="${brltty_summary_lines}
17761 external-braille-drivers: ${brltty_external_codes_braille}"
17762 fi
17763
17764 brltty_summary_lines="${brltty_summary_lines}
17765 internal-braille-drivers: ${brltty_internal_codes_braille}"
17766
17767 # Check whether --with-braille-parameters was given.
17768 if test ${with_braille_parameters+y}
17769 then :
17770 withval=$with_braille_parameters; braille_parameters="${withval}"
17771 else case e in #(
17772 e) braille_parameters="yes"
17773 ;;
17774 esac
17775 fi
17776
17777 if test "${braille_parameters}" = "no"
17778 then
17779 braille_parameters=""
17780 elif test "${braille_parameters}" = "yes"
17781 then
17782 braille_parameters=""
17783 fi
17784
17785
17786 printf "%s\n" "#define BRAILLE_PARAMETERS \"${braille_parameters}\"" >>confdefs.h
17787
17788 brltty_summary_lines="${brltty_summary_lines}
17789 braille-parameters: ${braille_parameters}"
17790 fi
17791
17792 for brltty_driver in ${brltty_item_names_braille}
17793 do
17794 brltty_build_directories="${brltty_build_directories} Drivers/Braille/${brltty_driver}"
17795 done
17796
17797
17798
17799
17800
17801
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device directory" >&5
17803 printf %s "checking for device directory... " >&6; }
17804 if test ${brltty_cv_device_directory+y}
17805 then :
17806 printf %s "(cached) " >&6
17807 else case e in #(
17808 e) case "${host_os}"
17809 in
17810 mingw*)
17811 brltty_cv_device_directory="//."
17812 ;;
17813 elf*|msdos*)
17814 brltty_cv_device_directory=""
17815 ;;
17816 *)
17817 brltty_cv_device_directory="/dev"
17818 ;;
17819 esac ;;
17820 esac
17821 fi
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_device_directory" >&5
17823 printf "%s\n" "$brltty_cv_device_directory" >&6; }
17824
17825 printf "%s\n" "#define DEVICE_DIRECTORY \"${brltty_cv_device_directory}\"" >>confdefs.h
17826
17827
17828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for first serial device" >&5
17829 printf %s "checking for first serial device... " >&6; }
17830 if test ${brltty_cv_device_serial_first+y}
17831 then :
17832 printf %s "(cached) " >&6
17833 else case e in #(
17834 e) case "${host_os}"
17835 in
17836 linux*)
17837 brltty_cv_device_serial_first="ttyS0"
17838 ;;
17839 gnu*)
17840 brltty_cv_device_serial_first="com0"
17841 ;;
17842 solaris*)
17843 brltty_cv_device_serial_first="ttya"
17844 ;;
17845 haiku*)
17846 brltty_cv_device_serial_first="ports/pc_serial0"
17847 ;;
17848 hpux*)
17849 brltty_cv_device_serial_first="tty0p0"
17850 ;;
17851 openbsd*)
17852 brltty_cv_device_serial_first="cua00"
17853 ;;
17854 freebsd*)
17855 brltty_cv_device_serial_first="cuaa0"
17856 ;;
17857 kfreebsd*)
17858 brltty_cv_device_serial_first="cuaa0"
17859 ;;
17860 netbsd*)
17861 brltty_cv_device_serial_first="dty00"
17862 ;;
17863 osf*)
17864 brltty_cv_device_serial_first="tty00"
17865 ;;
17866 *qnx*)
17867 brltty_cv_device_serial_first="ser1"
17868 ;;
17869 cygwin*)
17870 brltty_cv_device_serial_first="ttyS0"
17871 ;;
17872 mingw*|msdos*)
17873 brltty_cv_device_serial_first="COM1"
17874 ;;
17875 elf*)
17876 brltty_cv_device_serial_first="com0"
17877 ;;
17878 *)
17879 brltty_cv_device_serial_first=""
17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: primary serial device not configured for ${host_os}" >&5
17881 printf "%s\n" "$as_me: WARNING: primary serial device not configured for ${host_os}" >&2;}
17882 ;;
17883 esac ;;
17884 esac
17885 fi
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $brltty_cv_device_serial_first" >&5
17887 printf "%s\n" "$brltty_cv_device_serial_first" >&6; }
17888 serial_first_device=${brltty_cv_device_serial_first}
17889
17890
17891 printf "%s\n" "#define SERIAL_FIRST_DEVICE \"${serial_first_device}\"" >>confdefs.h
17892
17893
17894
17895 # Check whether --with-braille-device was given.
17896 if test ${with_braille_device+y}
17897 then :
17898 withval=$with_braille_device; braille_device="${withval}"
17899 else case e in #(
17900 e) braille_device="yes"
17901 ;;
17902 esac
17903 fi
17904
17905 if test "${braille_device}" = "no"
17906 then
17907 braille_device=""
17908 elif test "${braille_device}" = "yes"
17909 then
17910 braille_device=""
17911 test "${usb_package}" != "none" && braille_device="${braille_device},usb:"
17912 test "${bluetooth_package}" != "none" && braille_device="${braille_device},bluetooth:"
17913
17914 if test -n "${braille_device}"
17915 then
17916 braille_device="${braille_device#,}"
17917 else
17918 braille_device="serial:${serial_first_device}"
17919 fi
17920 fi
17921
17922
17923 printf "%s\n" "#define BRAILLE_DEVICE \"${braille_device}\"" >>confdefs.h
17924
17925 brltty_summary_lines="${brltty_summary_lines}
17926 braille-device: ${braille_device}"
17927
17928 brltty_default_table="en-nabcc"
17929
17930 # Check whether --with-text-table was given.
17931 if test ${with_text_table+y}
17932 then :
17933 withval=$with_text_table; text_table="${withval}"
17934 else case e in #(
17935 e) text_table="${brltty_default_table}"
17936 ;;
17937 esac
17938 fi
17939
17940 install_text_tables=install-text-tables
17941 if test "${text_table}" = "no"
17942 then
17943 install_text_tables=
17944 text_table="${brltty_default_table}"
17945 elif test "${text_table}" = "yes"
17946 then
17947 text_table="${brltty_default_table}"
17948 fi
17949
17950 brltty_summary_lines="${brltty_summary_lines}
17951 text-table: ${text_table}"
17952
17953 printf "%s\n" "#define TEXT_TABLE \"${text_table}\"" >>confdefs.h
17954
17955
17956 brltty_default_table="none"
17957
17958 # Check whether --with-contraction-table was given.
17959 if test ${with_contraction_table+y}
17960 then :
17961 withval=$with_contraction_table; contraction_table="${withval}"
17962 else case e in #(
17963 e) contraction_table="${brltty_default_table}"
17964 ;;
17965 esac
17966 fi
17967
17968 install_contraction_tables=install-contraction-tables
17969 if test "${contraction_table}" = "no"
17970 then
17971 install_contraction_tables=
17972 contraction_table="${brltty_default_table}"
17973 elif test "${contraction_table}" = "yes"
17974 then
17975 contraction_table="${brltty_default_table}"
17976 fi
17977
17978 brltty_summary_lines="${brltty_summary_lines}
17979 contraction-table: ${contraction_table}"
17980
17981 printf "%s\n" "#define CONTRACTION_TABLE \"${contraction_table}\"" >>confdefs.h
17982
17983
17984 brltty_default_table="left_right"
17985
17986 # Check whether --with-attributes-table was given.
17987 if test ${with_attributes_table+y}
17988 then :
17989 withval=$with_attributes_table; attributes_table="${withval}"
17990 else case e in #(
17991 e) attributes_table="${brltty_default_table}"
17992 ;;
17993 esac
17994 fi
17995
17996 install_attributes_tables=install-attributes-tables
17997 if test "${attributes_table}" = "no"
17998 then
17999 install_attributes_tables=
18000 attributes_table="${brltty_default_table}"
18001 elif test "${attributes_table}" = "yes"
18002 then
18003 attributes_table="${brltty_default_table}"
18004 fi
18005
18006 brltty_summary_lines="${brltty_summary_lines}
18007 attributes-table: ${attributes_table}"
18008
18009 printf "%s\n" "#define ATTRIBUTES_TABLE \"${attributes_table}\"" >>confdefs.h
18010
18011
18012
18013 # Check whether --enable-speech-support was given.
18014 if test ${enable_speech_support+y}
18015 then :
18016 enableval=$enable_speech_support;
18017 else case e in #(
18018 e) enableval="yes" ;;
18019 esac
18020 fi
18021
18022
18023 brltty_enabled_speech_support="${enableval}"
18024
18025 brltty_summary_lines="${brltty_summary_lines}
18026 speech-support: ${brltty_enabled_speech_support}"
18027
18028 if test "${enableval}" = "no"
18029 then
18030 :
18031 else
18032 if test "${enableval}" = "yes"
18033 then
18034 brltty_ok=true
18035 else
18036 brltty_ok=false
18037 fi
18038
18039 if "${brltty_ok}"
18040 then
18041
18042 printf "%s\n" "#define ENABLE_SPEECH_SUPPORT 1" >>confdefs.h
18043
18044 speech_support_object='spk.$O'
18045
18046 brltty_item_entries_speech="${brltty_item_entries_speech} al-Alva"
18047 brltty_item_codes_speech="${brltty_item_codes_speech} al"
18048 brltty_item_names_speech="${brltty_item_names_speech} Alva"
18049 speech_libraries_al=''
18050
18051 brltty_item_entries_speech="${brltty_item_entries_speech} bl-BrailleLite"
18052 brltty_item_codes_speech="${brltty_item_codes_speech} bl"
18053 brltty_item_names_speech="${brltty_item_names_speech} BrailleLite"
18054 speech_libraries_bl=''
18055
18056 brltty_item_entries_speech="${brltty_item_entries_speech} cb-CombiBraille"
18057 brltty_item_codes_speech="${brltty_item_codes_speech} cb"
18058 brltty_item_names_speech="${brltty_item_names_speech} CombiBraille"
18059 speech_libraries_cb=''
18060
18061
18062
18063 # Check whether --with-espeak_ng was given.
18064 if test ${with_espeak_ng+y}
18065 then :
18066 withval=$with_espeak_ng; espeak_ng_root="${withval}"
18067 else case e in #(
18068 e) espeak_ng_root="yes"
18069 ;;
18070 esac
18071 fi
18072
18073
18074 espeak_ng_found=false
18075
18076
18077
18078 if test "${espeak_ng_root}" = "no"
18079 then
18080 espeak_ng_root=""
18081 elif test "${espeak_ng_root}" = "yes"
18082 then
18083 "${espeak_ng_found}" || {
18084 espeak_ng_root=""
18085 roots="/usr /usr/local /usr/local/eSpeak-NG /usr/local/espeak_ng /opt/eSpeak-NG /opt/espeak_ng /mingw /mingw/eSpeak-NG /mingw/espeak_ng"
18086
18087 for root in ${roots}
18088 do
18089 test -f "${root}/include/espeak-ng/speak_lib.h" && {
18090 espeak_ng_root="${root}"
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eSpeak-NG root: ${espeak_ng_root}" >&5
18092 printf "%s\n" "$as_me: eSpeak-NG root: ${espeak_ng_root}" >&6;}
18093 break
18094 }
18095 done
18096
18097 if test -z "${espeak_ng_root}"
18098 then
18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: eSpeak-NG package not found: ${roots}" >&5
18100 printf "%s\n" "$as_me: WARNING: eSpeak-NG package not found: ${roots}" >&2;}
18101 fi
18102 }
18103 fi
18104
18105
18106 brltty_summary_lines="${brltty_summary_lines}
18107 espeak_ng-root: ${espeak_ng_root}"
18108
18109 test -n "${espeak_ng_root}" && {
18110
18111
18112
18113 printf "%s\n" "#define ESPEAK_NG_ROOT \"${espeak_ng_root}\"" >>confdefs.h
18114
18115
18116 brltty_item_entries_speech="${brltty_item_entries_speech} en-eSpeak-NG"
18117 brltty_item_codes_speech="${brltty_item_codes_speech} en"
18118 brltty_item_names_speech="${brltty_item_names_speech} eSpeak-NG"
18119 speech_libraries_en='-L$(ESPEAK_NG_ROOT)/lib -lespeak-ng'
18120
18121
18122 }
18123
18124
18125
18126 # Check whether --with-espeak was given.
18127 if test ${with_espeak+y}
18128 then :
18129 withval=$with_espeak; espeak_root="${withval}"
18130 else case e in #(
18131 e) espeak_root="yes"
18132 ;;
18133 esac
18134 fi
18135
18136
18137 espeak_found=false
18138
18139
18140
18141 if test "${espeak_root}" = "no"
18142 then
18143 espeak_root=""
18144 elif test "${espeak_root}" = "yes"
18145 then
18146 "${espeak_found}" || {
18147 espeak_root=""
18148 roots="/usr /usr/local /usr/local/eSpeak /usr/local/espeak /opt/eSpeak /opt/espeak /mingw /mingw/eSpeak /mingw/espeak"
18149
18150 for root in ${roots}
18151 do
18152 test -f "${root}/include/espeak/speak_lib.h" && {
18153 espeak_root="${root}"
18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eSpeak root: ${espeak_root}" >&5
18155 printf "%s\n" "$as_me: eSpeak root: ${espeak_root}" >&6;}
18156 break
18157 }
18158 done
18159
18160 if test -z "${espeak_root}"
18161 then
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: eSpeak package not found: ${roots}" >&5
18163 printf "%s\n" "$as_me: WARNING: eSpeak package not found: ${roots}" >&2;}
18164 fi
18165 }
18166 fi
18167
18168
18169 brltty_summary_lines="${brltty_summary_lines}
18170 espeak-root: ${espeak_root}"
18171
18172 test -n "${espeak_root}" && {
18173
18174
18175
18176 printf "%s\n" "#define ESPEAK_ROOT \"${espeak_root}\"" >>confdefs.h
18177
18178
18179 brltty_item_entries_speech="${brltty_item_entries_speech} es-eSpeak"
18180 brltty_item_codes_speech="${brltty_item_codes_speech} es"
18181 brltty_item_names_speech="${brltty_item_names_speech} eSpeak"
18182 speech_libraries_es='-L$(ESPEAK_ROOT)/lib -lespeak'
18183
18184
18185 }
18186
18187
18188
18189 # Check whether --with-flite was given.
18190 if test ${with_flite+y}
18191 then :
18192 withval=$with_flite; flite_root="${withval}"
18193 else case e in #(
18194 e) flite_root="yes"
18195 ;;
18196 esac
18197 fi
18198
18199
18200 flite_found=false
18201
18202
18203
18204 if test "${flite_root}" = "no"
18205 then
18206 flite_root=""
18207 elif test "${flite_root}" = "yes"
18208 then
18209 "${flite_found}" || {
18210 flite_root=""
18211 roots="/usr /usr/local /usr/local/FestivalLite /usr/local/flite /opt/FestivalLite /opt/flite /mingw /mingw/FestivalLite /mingw/flite"
18212
18213 for root in ${roots}
18214 do
18215 test -f "${root}/include/flite/flite.h" && {
18216 flite_root="${root}"
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FestivalLite root: ${flite_root}" >&5
18218 printf "%s\n" "$as_me: FestivalLite root: ${flite_root}" >&6;}
18219 break
18220 }
18221 done
18222
18223 if test -z "${flite_root}"
18224 then
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FestivalLite package not found: ${roots}" >&5
18226 printf "%s\n" "$as_me: WARNING: FestivalLite package not found: ${roots}" >&2;}
18227 fi
18228 }
18229 fi
18230
18231
18232 brltty_summary_lines="${brltty_summary_lines}
18233 flite-root: ${flite_root}"
18234
18235 test -n "${flite_root}" && {
18236
18237
18238
18239 printf "%s\n" "#define FLITE_ROOT \"${flite_root}\"" >>confdefs.h
18240
18241
18242
18243 # Check whether --with-flite-language was given.
18244 if test ${with_flite_language+y}
18245 then :
18246 withval=$with_flite_language; flite_language="${withval}"
18247 else case e in #(
18248 e) flite_language="yes" ;;
18249 esac
18250 fi
18251
18252 if test "${flite_language}" = "no"
18253 then
18254 as_fn_error $? "flite-language not specified" "$LINENO" 5
18255 elif test "${flite_language}" = "yes"
18256 then
18257 flite_language="usenglish"
18258
18259 fi
18260
18261 brltty_summary_lines="${brltty_summary_lines}
18262 flite-language: ${flite_language}"
18263
18264
18265 # Check whether --with-flite-lexicon was given.
18266 if test ${with_flite_lexicon+y}
18267 then :
18268 withval=$with_flite_lexicon; flite_lexicon="${withval}"
18269 else case e in #(
18270 e) flite_lexicon="yes" ;;
18271 esac
18272 fi
18273
18274 if test "${flite_lexicon}" = "no"
18275 then
18276 as_fn_error $? "flite-lexicon not specified" "$LINENO" 5
18277 elif test "${flite_lexicon}" = "yes"
18278 then
18279 flite_lexicon="cmulex"
18280
18281 fi
18282
18283 brltty_summary_lines="${brltty_summary_lines}
18284 flite-lexicon: ${flite_lexicon}"
18285
18286
18287 # Check whether --with-flite-voice was given.
18288 if test ${with_flite_voice+y}
18289 then :
18290 withval=$with_flite_voice; flite_voice="${withval}"
18291 else case e in #(
18292 e) flite_voice="yes" ;;
18293 esac
18294 fi
18295
18296 if test "${flite_voice}" = "no"
18297 then
18298 as_fn_error $? "flite-voice not specified" "$LINENO" 5
18299 elif test "${flite_voice}" = "yes"
18300 then
18301 flite_voice="cmu_us_kal"
18302
18303 fi
18304
18305 brltty_summary_lines="${brltty_summary_lines}
18306 flite-voice: ${flite_voice}"
18307
18308 brltty_item_entries_speech="${brltty_item_entries_speech} fl-FestivalLite"
18309 brltty_item_codes_speech="${brltty_item_codes_speech} fl"
18310 brltty_item_names_speech="${brltty_item_names_speech} FestivalLite"
18311 speech_libraries_fl='-L$(FLITE_ROOT)/lib -lflite_$(FLITE_VOICE) -lflite_$(FLITE_LEXICON) -lflite_$(FLITE_LANGUAGE) -lflite -lm'
18312
18313
18314 }
18315
18316
18317 brltty_item_entries_speech="${brltty_item_entries_speech} fv-Festival"
18318 brltty_item_codes_speech="${brltty_item_codes_speech} fv"
18319 brltty_item_names_speech="${brltty_item_names_speech} Festival"
18320 speech_libraries_fv=''
18321
18322 brltty_item_entries_speech="${brltty_item_entries_speech} gs-GenericSay"
18323 brltty_item_codes_speech="${brltty_item_codes_speech} gs"
18324 brltty_item_names_speech="${brltty_item_names_speech} GenericSay"
18325 speech_libraries_gs=''
18326
18327
18328
18329 # Check whether --with-mikropuhe was given.
18330 if test ${with_mikropuhe+y}
18331 then :
18332 withval=$with_mikropuhe; mikropuhe_root="${withval}"
18333 else case e in #(
18334 e) mikropuhe_root="yes"
18335 ;;
18336 esac
18337 fi
18338
18339
18340 mikropuhe_found=false
18341
18342
18343
18344 if test "${mikropuhe_root}" = "no"
18345 then
18346 mikropuhe_root=""
18347 elif test "${mikropuhe_root}" = "yes"
18348 then
18349 "${mikropuhe_found}" || {
18350 mikropuhe_root=""
18351 roots="/usr /usr/local /usr/local/Mikropuhe /usr/local/mikropuhe /opt/Mikropuhe /opt/mikropuhe /mingw /mingw/Mikropuhe /mingw/mikropuhe"
18352
18353 for root in ${roots}
18354 do
18355 test -f "${root}/mpwrfile.h" && {
18356 mikropuhe_root="${root}"
18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Mikropuhe root: ${mikropuhe_root}" >&5
18358 printf "%s\n" "$as_me: Mikropuhe root: ${mikropuhe_root}" >&6;}
18359 break
18360 }
18361 done
18362
18363 if test -z "${mikropuhe_root}"
18364 then
18365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Mikropuhe package not found: ${roots}" >&5
18366 printf "%s\n" "$as_me: WARNING: Mikropuhe package not found: ${roots}" >&2;}
18367 fi
18368 }
18369 fi
18370
18371
18372 brltty_summary_lines="${brltty_summary_lines}
18373 mikropuhe-root: ${mikropuhe_root}"
18374
18375 test -n "${mikropuhe_root}" && {
18376
18377
18378
18379 printf "%s\n" "#define MIKROPUHE_ROOT \"${mikropuhe_root}\"" >>confdefs.h
18380
18381
18382
18383 test "${brltty_cv_have_pthreads}" = "yes" && {
18384 brltty_item_entries_speech="${brltty_item_entries_speech} mp-Mikropuhe"
18385 brltty_item_codes_speech="${brltty_item_codes_speech} mp"
18386 brltty_item_names_speech="${brltty_item_names_speech} Mikropuhe"
18387 speech_libraries_mp='-L$(MPLINUX_ROOT) -lmplinux'
18388
18389
18390 }
18391
18392 }
18393
18394
18395
18396 # Check whether --with-speechd was given.
18397 if test ${with_speechd+y}
18398 then :
18399 withval=$with_speechd; speechd_root="${withval}"
18400 else case e in #(
18401 e) speechd_root="yes"
18402 ;;
18403 esac
18404 fi
18405
18406
18407 speechd_found=false
18408
18409 speechd_package=""
18410 speechd_includes=""
18411 speechd_libs=""
18412
18413 for package_specification in speech-dispatcher
18414 do
18415 ${PKG_CONFIG} --exists "${package_specification}" && {
18416 printf "%s\n" "#define HAVE_PKG_SPEECHD 1" >>confdefs.h
18417
18418
18419 speechd_package="${package_specification%% *}"
18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: speechd package: ${speechd_package}" >&5
18421 printf "%s\n" "$as_me: speechd package: ${speechd_package}" >&6;}
18422
18423 speechd_includes=`${PKG_CONFIG} --cflags-only-I "${speechd_package}"`
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: speechd includes: ${speechd_includes}" >&5
18425 printf "%s\n" "$as_me: speechd includes: ${speechd_includes}" >&6;}
18426
18427 speechd_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${speechd_package}"`
18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: speechd libs: ${speechd_libs}" >&5
18429 printf "%s\n" "$as_me: speechd libs: ${speechd_libs}" >&6;}
18430
18431 speechd_found=true
18432 break
18433 }
18434 done
18435
18436 test -n "${speechd_package}" || {
18437 :
18438 }
18439
18440
18441
18442
18443
18444
18445 if test "${speechd_root}" = "no"
18446 then
18447 speechd_root=""
18448 elif test "${speechd_root}" = "yes"
18449 then
18450 "${speechd_found}" || {
18451 speechd_root=""
18452 roots="/usr /usr/local /usr/local/speech-dispatcher /usr/local/speechd /opt/speech-dispatcher /opt/speechd /mingw /mingw/speech-dispatcher /mingw/speechd"
18453
18454 for root in ${roots}
18455 do
18456 test -f "${root}/include/libspeechd.h" && {
18457 speechd_root="${root}"
18458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: speech-dispatcher root: ${speechd_root}" >&5
18459 printf "%s\n" "$as_me: speech-dispatcher root: ${speechd_root}" >&6;}
18460 break
18461 }
18462 done
18463
18464 if test -z "${speechd_root}"
18465 then
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: speech-dispatcher package not found: ${roots}" >&5
18467 printf "%s\n" "$as_me: WARNING: speech-dispatcher package not found: ${roots}" >&2;}
18468 fi
18469 }
18470 fi
18471
18472
18473 brltty_summary_lines="${brltty_summary_lines}
18474 speechd-root: ${speechd_root}"
18475
18476 test -n "${speechd_root}" && {
18477 if test "${speechd_root}" = "yes"
18478 then
18479 speechd_root="/usr"
18480 else
18481 speechd_includes="-I${speechd_root}/include"
18482 speechd_libs="-L${speechd_root}/lib -lspeechd"
18483 fi
18484
18485
18486
18487 printf "%s\n" "#define SPEECHD_ROOT \"${speechd_root}\"" >>confdefs.h
18488
18489
18490 brltty_item_entries_speech="${brltty_item_entries_speech} sd-SpeechDispatcher"
18491 brltty_item_codes_speech="${brltty_item_codes_speech} sd"
18492 brltty_item_names_speech="${brltty_item_names_speech} SpeechDispatcher"
18493 speech_libraries_sd=''
18494
18495
18496 }
18497
18498
18499
18500 # Check whether --with-swift was given.
18501 if test ${with_swift+y}
18502 then :
18503 withval=$with_swift; swift_root="${withval}"
18504 else case e in #(
18505 e) swift_root="yes"
18506 ;;
18507 esac
18508 fi
18509
18510
18511 swift_found=false
18512
18513
18514
18515 if test "${swift_root}" = "no"
18516 then
18517 swift_root=""
18518 elif test "${swift_root}" = "yes"
18519 then
18520 "${swift_found}" || {
18521 swift_root=""
18522 roots="/usr /usr/local /usr/local/Swift /usr/local/swift /opt/Swift /opt/swift /mingw /mingw/Swift /mingw/swift"
18523
18524 for root in ${roots}
18525 do
18526 test -f "${root}/include/swift.h" && {
18527 swift_root="${root}"
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Swift root: ${swift_root}" >&5
18529 printf "%s\n" "$as_me: Swift root: ${swift_root}" >&6;}
18530 break
18531 }
18532 done
18533
18534 if test -z "${swift_root}"
18535 then
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Swift package not found: ${roots}" >&5
18537 printf "%s\n" "$as_me: WARNING: Swift package not found: ${roots}" >&2;}
18538 fi
18539 }
18540 fi
18541
18542
18543 brltty_summary_lines="${brltty_summary_lines}
18544 swift-root: ${swift_root}"
18545
18546 test -n "${swift_root}" && {
18547
18548
18549
18550 printf "%s\n" "#define SWIFT_ROOT \"${swift_root}\"" >>confdefs.h
18551
18552
18553 brltty_item_entries_speech="${brltty_item_entries_speech} sw-Swift"
18554 brltty_item_codes_speech="${brltty_item_codes_speech} sw"
18555 brltty_item_names_speech="${brltty_item_names_speech} Swift"
18556 speech_libraries_sw='-L$(SWIFT_ROOT)/lib -lswift -lm'
18557
18558
18559 }
18560
18561
18562
18563 # Check whether --with-theta was given.
18564 if test ${with_theta+y}
18565 then :
18566 withval=$with_theta; theta_root="${withval}"
18567 else case e in #(
18568 e) theta_root="yes"
18569 ;;
18570 esac
18571 fi
18572
18573
18574 theta_found=false
18575
18576
18577
18578 if test "${theta_root}" = "no"
18579 then
18580 theta_root=""
18581 elif test "${theta_root}" = "yes"
18582 then
18583 "${theta_found}" || {
18584 theta_root=""
18585 roots="/usr /usr/local /usr/local/Theta /usr/local/theta /opt/Theta /opt/theta /mingw /mingw/Theta /mingw/theta"
18586
18587 for root in ${roots}
18588 do
18589 test -f "${root}/include/theta.h" && {
18590 theta_root="${root}"
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Theta root: ${theta_root}" >&5
18592 printf "%s\n" "$as_me: Theta root: ${theta_root}" >&6;}
18593 break
18594 }
18595 done
18596
18597 if test -z "${theta_root}"
18598 then
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Theta package not found: ${roots}" >&5
18600 printf "%s\n" "$as_me: WARNING: Theta package not found: ${roots}" >&2;}
18601 fi
18602 }
18603 fi
18604
18605
18606 brltty_summary_lines="${brltty_summary_lines}
18607 theta-root: ${theta_root}"
18608
18609 test -n "${theta_root}" && {
18610
18611
18612
18613 printf "%s\n" "#define THETA_ROOT \"${theta_root}\"" >>confdefs.h
18614
18615
18616 brltty_item_entries_speech="${brltty_item_entries_speech} th-Theta"
18617 brltty_item_codes_speech="${brltty_item_codes_speech} th"
18618 brltty_item_names_speech="${brltty_item_names_speech} Theta"
18619 speech_libraries_th='-L$(THETA_ROOT)/lib -ltheta'
18620
18621
18622 }
18623
18624
18625 ac_fn_c_check_header_compile "$LINENO" "eci.h" "ac_cv_header_eci_h" "$ac_includes_default"
18626 if test "x$ac_cv_header_eci_h" = xyes
18627 then :
18628 brltty_item_entries_speech="${brltty_item_entries_speech} vv-ViaVoice"
18629 brltty_item_codes_speech="${brltty_item_codes_speech} vv"
18630 brltty_item_names_speech="${brltty_item_names_speech} ViaVoice"
18631 speech_libraries_vv='-libmeci'
18632
18633
18634 fi
18635
18636
18637 brltty_item_entries_speech="${brltty_item_entries_speech} xs-ExternalSpeech"
18638 brltty_item_codes_speech="${brltty_item_codes_speech} xs"
18639 brltty_item_names_speech="${brltty_item_names_speech} ExternalSpeech"
18640 speech_libraries_xs=''
18641
18642
18643 case "${host_os}"
18644 in
18645 *android*)
18646 brltty_item_entries_speech="${brltty_item_entries_speech} an-Android"
18647 brltty_item_codes_speech="${brltty_item_codes_speech} an"
18648 brltty_item_names_speech="${brltty_item_names_speech} Android"
18649 speech_libraries_an=''
18650
18651 ;;
18652 *) ;;
18653 esac
18654
18655 else
18656 as_fn_error $? "invalid selection: --enable-speech-support=${enableval}" "$LINENO" 5
18657 fi
18658 fi
18659
18660 brltty_item_codes_speech="`echo "${brltty_item_codes_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18661
18662
18663
18664 brltty_item_names_speech="`echo "${brltty_item_names_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18665
18666
18667
18668 case "${host_os}"
18669 in
18670 cygwin*|mingw*)
18671 brltty_default="all"
18672 ;;
18673 *)
18674 brltty_default="yes"
18675 ;;
18676 esac
18677
18678
18679 # Check whether --with-speech-driver was given.
18680 if test ${with_speech_driver+y}
18681 then :
18682 withval=$with_speech_driver; brltty_items="${withval}"
18683 else case e in #(
18684 e) brltty_items="${brltty_default}"
18685 ;;
18686 esac
18687 fi
18688
18689
18690 if test "${brltty_items}" = "no"
18691 then
18692 brltty_external_codes_speech=""
18693 brltty_external_names_speech=""
18694 brltty_internal_codes_speech=""
18695 brltty_internal_names_speech=""
18696 else
18697 brltty_items_left_speech=" ${brltty_item_entries_speech} "
18698 brltty_external_codes_speech=" ${brltty_item_codes_speech} "
18699 brltty_external_names_speech=" ${brltty_item_names_speech} "
18700 brltty_internal_codes_speech=""
18701 brltty_internal_names_speech=""
18702
18703 if test "${brltty_items}" != "yes"
18704 then
18705 while :
18706 do
18707 brltty_delimiter="`expr "${brltty_items}" : '[^,]*,'`"
18708 if test "${brltty_delimiter}" -eq 0
18709 then
18710 brltty_item="${brltty_items}"
18711 brltty_items=""
18712 if test "${brltty_item}" = "all"
18713 then
18714 brltty_item_all=true
18715 brltty_item_include=true
18716 elif test "${brltty_item}" = "-all"
18717 then
18718 brltty_item_all=true
18719 brltty_item_include=false
18720 else
18721 brltty_item_all=false
18722 fi
18723 if "${brltty_item_all}"
18724 then
18725 if "${brltty_item_include}"
18726 then
18727 brltty_internal_codes_speech="${brltty_internal_codes_speech}${brltty_external_codes_speech}"
18728 brltty_internal_names_speech="${brltty_internal_names_speech}${brltty_external_names_speech}"
18729 fi
18730 brltty_external_codes_speech=""
18731 brltty_external_names_speech=""
18732 break
18733 fi
18734 else
18735 brltty_item="`expr "${brltty_items}" : '\([^,]*\)'`"
18736 brltty_items="`expr "${brltty_items}" : '[^,]*,\(.*\)'`"
18737 fi
18738 brltty_item_suffix="${brltty_item#-}"
18739 if test "${brltty_item}" = "${brltty_item_suffix}"
18740 then
18741 brltty_item_include=true
18742 else
18743 brltty_item_include=false
18744 brltty_item="${brltty_item_suffix}"
18745 fi
18746
18747 brltty_item_unknown=true
18748 brltty_item_length=`expr length "${brltty_item}"`
18749
18750 if test "${brltty_item_length}" -eq 2
18751 then
18752 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
18753 if test -n "${brltty_item_entry}"
18754 then
18755 brltty_item_code="${brltty_item}"
18756 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
18757 brltty_item_unknown=false
18758 fi
18759 elif test "${brltty_item_length}" -gt 2
18760 then
18761 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
18762 if test -z "${brltty_item_entry}"
18763 then
18764 brltty_lowercase=`echo "${brltty_items_left_speech}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
18765 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
18766 if test -n "${brltty_item_code}"
18767 then
18768 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
18769 fi
18770 fi
18771
18772 if test -n "${brltty_item_entry}"
18773 then
18774 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
18775 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
18776 brltty_item_unknown=false
18777 fi
18778 fi
18779
18780 "${brltty_item_unknown}" && {
18781 as_fn_error $? "unknown speech driver: ${brltty_item}" "$LINENO" 5
18782 }
18783
18784 brltty_item_found="`expr "${brltty_external_codes_speech}" : ".* ${brltty_item_code} "`"
18785 test "${brltty_item_found}" -eq 0 && {
18786 as_fn_error $? "duplicate speech driver: ${brltty_item}" "$LINENO" 5
18787 }
18788
18789 brltty_items_left_speech="`echo "${brltty_items_left_speech}" | sed -e "s% ${brltty_item_entry} % %"`"
18790 brltty_external_codes_speech="`echo "${brltty_external_codes_speech}" | sed -e "s% ${brltty_item_code} % %"`"
18791 brltty_external_names_speech="`echo "${brltty_external_names_speech}" | sed -e "s% ${brltty_item_name} % %"`"
18792
18793 "${brltty_item_include}" && {
18794 brltty_internal_codes_speech="${brltty_internal_codes_speech} ${brltty_item_code}"
18795 brltty_internal_names_speech="${brltty_internal_names_speech} ${brltty_item_name}"
18796 }
18797
18798 brltty_item_unknown=true
18799 brltty_item_length=`expr length "${brltty_item}"`
18800
18801 if test "${brltty_item_length}" -eq 2
18802 then
18803 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
18804 if test -n "${brltty_item_entry}"
18805 then
18806 brltty_item_code="${brltty_item}"
18807 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
18808 brltty_item_unknown=false
18809 fi
18810 elif test "${brltty_item_length}" -gt 2
18811 then
18812 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
18813 if test -z "${brltty_item_entry}"
18814 then
18815 brltty_lowercase=`echo "${brltty_items_left_speech}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
18816 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
18817 if test -n "${brltty_item_code}"
18818 then
18819 brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
18820 fi
18821 fi
18822
18823 if test -n "${brltty_item_entry}"
18824 then
18825 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
18826 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
18827 brltty_item_unknown=false
18828 fi
18829 fi
18830
18831 "${brltty_item_unknown}" || {
18832 as_fn_error $? "ambiguous speech driver: ${brltty_item}" "$LINENO" 5
18833 }
18834
18835 test "${brltty_delimiter}" -eq 0 && break
18836 done
18837 fi
18838
18839 brltty_external_codes_speech="`echo "${brltty_external_codes_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18840
18841 brltty_external_names_speech="`echo "${brltty_external_names_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18842
18843 brltty_internal_codes_speech="`echo "${brltty_internal_codes_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18844
18845 brltty_internal_names_speech="`echo "${brltty_internal_names_speech}" | sed -e 's/^ *//' -e 's/ *$//'`"
18846
18847 fi
18848
18849
18850
18851
18852
18853
18854 set -- ${brltty_internal_codes_speech} ${brltty_external_codes_speech}
18855
18856 printf "%s\n" "#define SPEECH_DRIVER_CODES \"${*}\"" >>confdefs.h
18857
18858
18859 default_speech_driver="${1}"
18860
18861
18862 printf "%s\n" "#define DEFAULT_SPEECH_DRIVER \"${1}\"" >>confdefs.h
18863
18864
18865 speech_driver_libraries=""
18866 if test -n "${brltty_internal_codes_speech}"
18867 then
18868 for brltty_driver in ${brltty_internal_codes_speech}
18869 do
18870 eval 'brltty_libraries="${speech_libraries_'"${brltty_driver}"'}"'
18871 if test -n "${brltty_libraries}"
18872 then
18873 speech_driver_libraries="${speech_driver_libraries} ${brltty_libraries}"
18874 fi
18875 done
18876 fi
18877 speech_driver_libraries="`echo "${speech_driver_libraries}" | sed -e 's/^ *//' -e 's/ *$//'`"
18878
18879
18880
18881 if test "${brltty_enabled_speech_support}" != "no"
18882 then
18883 if test -n "${brltty_internal_codes_speech}"
18884 then
18885 speech_driver_objects="`echo "${brltty_internal_names_speech}" | sed -e 's%\([^ ][^ ]*\)%$(BLD_TOP)Drivers/Speech/\1/speech.$(ARC_EXT)%g'`"
18886 speech_help="speech-help"
18887 fi
18888
18889 if test "${brltty_standalone_programs}" != "yes"
18890 then
18891 if test -n "${brltty_external_codes_speech}"
18892 then
18893 speech_drivers="speech-drivers"
18894 install_drivers="install-drivers"
18895 fi
18896 brltty_summary_lines="${brltty_summary_lines}
18897 external-speech-drivers: ${brltty_external_codes_speech}"
18898 fi
18899
18900 brltty_summary_lines="${brltty_summary_lines}
18901 internal-speech-drivers: ${brltty_internal_codes_speech}"
18902
18903 # Check whether --with-speech-parameters was given.
18904 if test ${with_speech_parameters+y}
18905 then :
18906 withval=$with_speech_parameters; speech_parameters="${withval}"
18907 else case e in #(
18908 e) speech_parameters="yes"
18909 ;;
18910 esac
18911 fi
18912
18913 if test "${speech_parameters}" = "no"
18914 then
18915 speech_parameters=""
18916 elif test "${speech_parameters}" = "yes"
18917 then
18918 speech_parameters=""
18919 fi
18920
18921
18922 printf "%s\n" "#define SPEECH_PARAMETERS \"${speech_parameters}\"" >>confdefs.h
18923
18924 brltty_summary_lines="${brltty_summary_lines}
18925 speech-parameters: ${speech_parameters}"
18926 fi
18927
18928 for brltty_driver in ${brltty_item_names_speech}
18929 do
18930 brltty_build_directories="${brltty_build_directories} Drivers/Speech/${brltty_driver}"
18931 done
18932
18933
18934
18935
18936
18937
18938 case "${host_os}"
18939 in
18940 *android*)
18941 brltty_item_entries_screen="${brltty_item_entries_screen} an-Android"
18942 brltty_item_codes_screen="${brltty_item_codes_screen} an"
18943 brltty_item_names_screen="${brltty_item_names_screen} Android"
18944 screen_libraries_an=''
18945
18946 ;;
18947 linux*)
18948 brltty_item_entries_screen="${brltty_item_entries_screen} lx-Linux"
18949 brltty_item_codes_screen="${brltty_item_codes_screen} lx"
18950 brltty_item_names_screen="${brltty_item_names_screen} Linux"
18951 screen_libraries_lx=''
18952
18953 ;;
18954 gnu*)
18955 brltty_item_entries_screen="${brltty_item_entries_screen} hd-Hurd"
18956 brltty_item_codes_screen="${brltty_item_codes_screen} hd"
18957 brltty_item_names_screen="${brltty_item_names_screen} Hurd"
18958 screen_libraries_hd=''
18959
18960 ;;
18961 cygwin*|mingw*)
18962 brltty_item_entries_screen="${brltty_item_entries_screen} wn-Windows"
18963 brltty_item_codes_screen="${brltty_item_codes_screen} wn"
18964 brltty_item_names_screen="${brltty_item_names_screen} Windows"
18965 screen_libraries_wn=''
18966
18967 brltty_build_directories="${brltty_build_directories} Drivers/BrlAPI/WindowEyes"
18968 ;;
18969 msdos*)
18970 brltty_item_entries_screen="${brltty_item_entries_screen} pb-PcBios"
18971 brltty_item_codes_screen="${brltty_item_codes_screen} pb"
18972 brltty_item_names_screen="${brltty_item_names_screen} PcBios"
18973 screen_libraries_pb=''
18974
18975 ;;
18976 elf*)
18977 brltty_item_entries_screen="${brltty_item_entries_screen} gb-Grub"
18978 brltty_item_codes_screen="${brltty_item_codes_screen} gb"
18979 brltty_item_names_screen="${brltty_item_names_screen} Grub"
18980 screen_libraries_gb=''
18981
18982 ;;
18983 *)
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no native screen driver for ${host_os}" >&5
18985 printf "%s\n" "$as_me: WARNING: no native screen driver for ${host_os}" >&2;}
18986 ;;
18987 esac
18988
18989 brltty_item_entries_screen="${brltty_item_entries_screen} fv-FileViewer"
18990 brltty_item_codes_screen="${brltty_item_codes_screen} fv"
18991 brltty_item_names_screen="${brltty_item_names_screen} FileViewer"
18992 screen_libraries_fv='-ltinfo'
18993
18994 brltty_item_entries_screen="${brltty_item_entries_screen} tx-Tmux"
18995 brltty_item_codes_screen="${brltty_item_codes_screen} tx"
18996 brltty_item_names_screen="${brltty_item_names_screen} Tmux"
18997 screen_libraries_tx=''
18998
18999
19000 all_brltty_pty=""
19001 install_brltty_pty=""
19002 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
19003 if test "x$ac_cv_header_sys_shm_h" = xyes
19004 then :
19005 brltty_item_entries_screen="${brltty_item_entries_screen} sc-Screen"
19006 brltty_item_codes_screen="${brltty_item_codes_screen} sc"
19007 brltty_item_names_screen="${brltty_item_names_screen} Screen"
19008 screen_libraries_sc=''
19009
19010
19011 ac_fn_c_check_header_compile "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default"
19012 if test "x$ac_cv_header_sys_msg_h" = xyes
19013 then :
19014 brltty_item_entries_screen="${brltty_item_entries_screen} em-TerminalEmulator"
19015 brltty_item_codes_screen="${brltty_item_codes_screen} em"
19016 brltty_item_names_screen="${brltty_item_names_screen} TerminalEmulator"
19017 screen_libraries_em=''
19018
19019
19020 if test -n "${curses_package}"
19021 then
19022 all_brltty_pty="all-brltty-pty"
19023 install_brltty_pty="install-brltty-pty"
19024 fi
19025
19026 fi
19027
19028
19029 fi
19030
19031
19032
19033
19034 if test "${brltty_enabled_x}" = "yes"
19035 then
19036 cspi_package=""
19037 cspi_includes=""
19038 cspi_libs=""
19039
19040 for package_specification in cspi-1.0
19041 do
19042 ${PKG_CONFIG} --exists "${package_specification}" && {
19043 printf "%s\n" "#define HAVE_PKG_CSPI 1" >>confdefs.h
19044
19045
19046 cspi_package="${package_specification%% *}"
19047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cspi package: ${cspi_package}" >&5
19048 printf "%s\n" "$as_me: cspi package: ${cspi_package}" >&6;}
19049
19050 cspi_includes=`${PKG_CONFIG} --cflags-only-I "${cspi_package}"`
19051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cspi includes: ${cspi_includes}" >&5
19052 printf "%s\n" "$as_me: cspi includes: ${cspi_includes}" >&6;}
19053
19054 cspi_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${cspi_package}"`
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cspi libs: ${cspi_libs}" >&5
19056 printf "%s\n" "$as_me: cspi libs: ${cspi_libs}" >&6;}
19057
19058 ac_fn_c_check_header_compile "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
19059 if test "x$ac_cv_header_X11_keysym_h" = xyes
19060 then :
19061 ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
19062 if test "x$ac_cv_header_X11_Xlib_h" = xyes
19063 then :
19064 brltty_item_entries_screen="${brltty_item_entries_screen} as-AtSpi"
19065 brltty_item_codes_screen="${brltty_item_codes_screen} as"
19066 brltty_item_names_screen="${brltty_item_names_screen} AtSpi"
19067 screen_libraries_as='$(X11_LIBS) $(CSPI_LIBS)'
19068
19069
19070 fi
19071
19072
19073 fi
19074
19075
19076 break
19077 }
19078 done
19079
19080 test -n "${cspi_package}" || {
19081 :
19082 }
19083
19084
19085
19086
19087
19088
19089
19090 test "${brltty_cv_have_dbus}" = "yes" && {
19091 ac_fn_c_check_header_compile "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
19092 if test "x$ac_cv_header_X11_keysym_h" = xyes
19093 then :
19094 atspi2_package=""
19095 atspi2_includes=""
19096 atspi2_libs=""
19097
19098 for package_specification in atspi-2
19099 do
19100 ${PKG_CONFIG} --exists "${package_specification}" && {
19101 printf "%s\n" "#define HAVE_PKG_ATSPI2 1" >>confdefs.h
19102
19103
19104 atspi2_package="${package_specification%% *}"
19105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: atspi2 package: ${atspi2_package}" >&5
19106 printf "%s\n" "$as_me: atspi2 package: ${atspi2_package}" >&6;}
19107
19108 atspi2_includes=`${PKG_CONFIG} --cflags-only-I "${atspi2_package}"`
19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: atspi2 includes: ${atspi2_includes}" >&5
19110 printf "%s\n" "$as_me: atspi2 includes: ${atspi2_includes}" >&6;}
19111
19112 atspi2_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${atspi2_package}"`
19113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: atspi2 libs: ${atspi2_libs}" >&5
19114 printf "%s\n" "$as_me: atspi2 libs: ${atspi2_libs}" >&6;}
19115
19116 brltty_cppflags_save="${CPPFLAGS}"
19117 CPPFLAGS="${CPPFLAGS} ${atspi2_cflags}"
19118 brltty_item_entries_screen="${brltty_item_entries_screen} a2-AtSpi2"
19119 brltty_item_codes_screen="${brltty_item_codes_screen} a2"
19120 brltty_item_names_screen="${brltty_item_names_screen} AtSpi2"
19121 screen_libraries_a2='$(DBUS_LIBS) $(ATSPI2_LIBS) $(GLIB2_LIBS) $(X11_LIBS) $(XFIXES_LIBS)'
19122
19123
19124 brltty_libs_save="${LIBS}"
19125 LIBS="${atspi2_libs} ${LIBS}"
19126
19127 ac_fn_c_check_func "$LINENO" "atspi_get_a11y_bus" "ac_cv_func_atspi_get_a11y_bus"
19128 if test "x$ac_cv_func_atspi_get_a11y_bus" = xyes
19129 then :
19130 printf "%s\n" "#define HAVE_ATSPI_GET_A11Y_BUS 1" >>confdefs.h
19131
19132 fi
19133
19134
19135 CPPFLAGS="${brltty_cppflags_save}"
19136 LIBS="${brltty_libs_save}"
19137
19138 glib2_package=""
19139 glib2_includes=""
19140 glib2_libs=""
19141
19142 for package_specification in glib-2.0
19143 do
19144 ${PKG_CONFIG} --exists "${package_specification}" && {
19145 printf "%s\n" "#define HAVE_PKG_GLIB2 1" >>confdefs.h
19146
19147
19148 glib2_package="${package_specification%% *}"
19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: glib2 package: ${glib2_package}" >&5
19150 printf "%s\n" "$as_me: glib2 package: ${glib2_package}" >&6;}
19151
19152 glib2_includes=`${PKG_CONFIG} --cflags-only-I "${glib2_package}"`
19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: glib2 includes: ${glib2_includes}" >&5
19154 printf "%s\n" "$as_me: glib2 includes: ${glib2_includes}" >&6;}
19155
19156 glib2_libs=`${PKG_CONFIG} ${pkgconfig_flags_libs} "${glib2_package}"`
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: glib2 libs: ${glib2_libs}" >&5
19158 printf "%s\n" "$as_me: glib2 libs: ${glib2_libs}" >&6;}
19159
19160
19161 break
19162 }
19163 done
19164
19165 test -n "${glib2_package}" || {
19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: glib2 support not available" >&5
19167 printf "%s\n" "$as_me: WARNING: glib2 support not available" >&2;}
19168 }
19169
19170
19171
19172
19173
19174
19175 break
19176 }
19177 done
19178
19179 test -n "${atspi2_package}" || {
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: atspi2 support not available" >&5
19181 printf "%s\n" "$as_me: WARNING: atspi2 support not available" >&2;}
19182 }
19183
19184
19185
19186
19187
19188
19189 fi
19190
19191
19192 }
19193 fi
19194
19195 brltty_item_codes_screen="`echo "${brltty_item_codes_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19196
19197
19198
19199 brltty_item_names_screen="`echo "${brltty_item_names_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19200
19201
19202
19203 case "${host_os}"
19204 in
19205 cygwin*|mingw*)
19206 brltty_default="all"
19207 ;;
19208 *)
19209 brltty_default="yes"
19210 ;;
19211 esac
19212
19213
19214 # Check whether --with-screen-driver was given.
19215 if test ${with_screen_driver+y}
19216 then :
19217 withval=$with_screen_driver; brltty_items="${withval}"
19218 else case e in #(
19219 e) brltty_items="${brltty_default}"
19220 ;;
19221 esac
19222 fi
19223
19224
19225 if test "${brltty_items}" = "no"
19226 then
19227 brltty_external_codes_screen=""
19228 brltty_external_names_screen=""
19229 brltty_internal_codes_screen=""
19230 brltty_internal_names_screen=""
19231 else
19232 brltty_items_left_screen=" ${brltty_item_entries_screen} "
19233 brltty_external_codes_screen=" ${brltty_item_codes_screen} "
19234 brltty_external_names_screen=" ${brltty_item_names_screen} "
19235 brltty_internal_codes_screen=""
19236 brltty_internal_names_screen=""
19237
19238 if test "${brltty_items}" != "yes"
19239 then
19240 while :
19241 do
19242 brltty_delimiter="`expr "${brltty_items}" : '[^,]*,'`"
19243 if test "${brltty_delimiter}" -eq 0
19244 then
19245 brltty_item="${brltty_items}"
19246 brltty_items=""
19247 if test "${brltty_item}" = "all"
19248 then
19249 brltty_item_all=true
19250 brltty_item_include=true
19251 elif test "${brltty_item}" = "-all"
19252 then
19253 brltty_item_all=true
19254 brltty_item_include=false
19255 else
19256 brltty_item_all=false
19257 fi
19258 if "${brltty_item_all}"
19259 then
19260 if "${brltty_item_include}"
19261 then
19262 brltty_internal_codes_screen="${brltty_internal_codes_screen}${brltty_external_codes_screen}"
19263 brltty_internal_names_screen="${brltty_internal_names_screen}${brltty_external_names_screen}"
19264 fi
19265 brltty_external_codes_screen=""
19266 brltty_external_names_screen=""
19267 break
19268 fi
19269 else
19270 brltty_item="`expr "${brltty_items}" : '\([^,]*\)'`"
19271 brltty_items="`expr "${brltty_items}" : '[^,]*,\(.*\)'`"
19272 fi
19273 brltty_item_suffix="${brltty_item#-}"
19274 if test "${brltty_item}" = "${brltty_item_suffix}"
19275 then
19276 brltty_item_include=true
19277 else
19278 brltty_item_include=false
19279 brltty_item="${brltty_item_suffix}"
19280 fi
19281
19282 brltty_item_unknown=true
19283 brltty_item_length=`expr length "${brltty_item}"`
19284
19285 if test "${brltty_item_length}" -eq 2
19286 then
19287 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
19288 if test -n "${brltty_item_entry}"
19289 then
19290 brltty_item_code="${brltty_item}"
19291 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
19292 brltty_item_unknown=false
19293 fi
19294 elif test "${brltty_item_length}" -gt 2
19295 then
19296 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
19297 if test -z "${brltty_item_entry}"
19298 then
19299 brltty_lowercase=`echo "${brltty_items_left_screen}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
19300 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
19301 if test -n "${brltty_item_code}"
19302 then
19303 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
19304 fi
19305 fi
19306
19307 if test -n "${brltty_item_entry}"
19308 then
19309 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
19310 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
19311 brltty_item_unknown=false
19312 fi
19313 fi
19314
19315 "${brltty_item_unknown}" && {
19316 as_fn_error $? "unknown screen driver: ${brltty_item}" "$LINENO" 5
19317 }
19318
19319 brltty_item_found="`expr "${brltty_external_codes_screen}" : ".* ${brltty_item_code} "`"
19320 test "${brltty_item_found}" -eq 0 && {
19321 as_fn_error $? "duplicate screen driver: ${brltty_item}" "$LINENO" 5
19322 }
19323
19324 brltty_items_left_screen="`echo "${brltty_items_left_screen}" | sed -e "s% ${brltty_item_entry} % %"`"
19325 brltty_external_codes_screen="`echo "${brltty_external_codes_screen}" | sed -e "s% ${brltty_item_code} % %"`"
19326 brltty_external_names_screen="`echo "${brltty_external_names_screen}" | sed -e "s% ${brltty_item_name} % %"`"
19327
19328 "${brltty_item_include}" && {
19329 brltty_internal_codes_screen="${brltty_internal_codes_screen} ${brltty_item_code}"
19330 brltty_internal_names_screen="${brltty_internal_names_screen} ${brltty_item_name}"
19331 }
19332
19333 brltty_item_unknown=true
19334 brltty_item_length=`expr length "${brltty_item}"`
19335
19336 if test "${brltty_item_length}" -eq 2
19337 then
19338 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \('"${brltty_item}"'-[^ ]*\)'`
19339 if test -n "${brltty_item_entry}"
19340 then
19341 brltty_item_code="${brltty_item}"
19342 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
19343 brltty_item_unknown=false
19344 fi
19345 elif test "${brltty_item_length}" -gt 2
19346 then
19347 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
19348 if test -z "${brltty_item_entry}"
19349 then
19350 brltty_lowercase=`echo "${brltty_items_left_screen}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
19351 brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
19352 if test -n "${brltty_item_code}"
19353 then
19354 brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \('"${brltty_item_code}"'-[^ ]*\)'`
19355 fi
19356 fi
19357
19358 if test -n "${brltty_item_entry}"
19359 then
19360 brltty_item_code=`expr "${brltty_item_entry}" : '\([^[.-.]]*\)'`
19361 brltty_item_name=`expr "${brltty_item_entry}" : '[^[.-.]]*-\(.*\)$'`
19362 brltty_item_unknown=false
19363 fi
19364 fi
19365
19366 "${brltty_item_unknown}" || {
19367 as_fn_error $? "ambiguous screen driver: ${brltty_item}" "$LINENO" 5
19368 }
19369
19370 test "${brltty_delimiter}" -eq 0 && break
19371 done
19372 fi
19373
19374 brltty_external_codes_screen="`echo "${brltty_external_codes_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19375
19376 brltty_external_names_screen="`echo "${brltty_external_names_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19377
19378 brltty_internal_codes_screen="`echo "${brltty_internal_codes_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19379
19380 brltty_internal_names_screen="`echo "${brltty_internal_names_screen}" | sed -e 's/^ *//' -e 's/ *$//'`"
19381
19382 fi
19383
19384
19385
19386
19387
19388
19389 set -- ${brltty_internal_codes_screen} ${brltty_external_codes_screen}
19390
19391 printf "%s\n" "#define SCREEN_DRIVER_CODES \"${*}\"" >>confdefs.h
19392
19393
19394 default_screen_driver="${1}"
19395
19396
19397 printf "%s\n" "#define DEFAULT_SCREEN_DRIVER \"${1}\"" >>confdefs.h
19398
19399
19400 screen_driver_libraries=""
19401 if test -n "${brltty_internal_codes_screen}"
19402 then
19403 for brltty_driver in ${brltty_internal_codes_screen}
19404 do
19405 eval 'brltty_libraries="${screen_libraries_'"${brltty_driver}"'}"'
19406 if test -n "${brltty_libraries}"
19407 then
19408 screen_driver_libraries="${screen_driver_libraries} ${brltty_libraries}"
19409 fi
19410 done
19411 fi
19412 screen_driver_libraries="`echo "${screen_driver_libraries}" | sed -e 's/^ *//' -e 's/ *$//'`"
19413
19414
19415
19416 if test "${brltty_enabled_screen_support}" != "no"
19417 then
19418 if test -n "${brltty_internal_codes_screen}"
19419 then
19420 screen_driver_objects="`echo "${brltty_internal_names_screen}" | sed -e 's%\([^ ][^ ]*\)%$(BLD_TOP)Drivers/Screen/\1/screen.$(ARC_EXT)%g'`"
19421 screen_help="screen-help"
19422 fi
19423
19424 if test "${brltty_standalone_programs}" != "yes"
19425 then
19426 if test -n "${brltty_external_codes_screen}"
19427 then
19428 screen_drivers="screen-drivers"
19429 install_drivers="install-drivers"
19430 fi
19431 brltty_summary_lines="${brltty_summary_lines}
19432 external-screen-drivers: ${brltty_external_codes_screen}"
19433 fi
19434
19435 brltty_summary_lines="${brltty_summary_lines}
19436 internal-screen-drivers: ${brltty_internal_codes_screen}"
19437
19438 # Check whether --with-screen-parameters was given.
19439 if test ${with_screen_parameters+y}
19440 then :
19441 withval=$with_screen_parameters; screen_parameters="${withval}"
19442 else case e in #(
19443 e) screen_parameters="yes"
19444 ;;
19445 esac
19446 fi
19447
19448 if test "${screen_parameters}" = "no"
19449 then
19450 screen_parameters=""
19451 elif test "${screen_parameters}" = "yes"
19452 then
19453 screen_parameters=""
19454 fi
19455
19456
19457 printf "%s\n" "#define SCREEN_PARAMETERS \"${screen_parameters}\"" >>confdefs.h
19458
19459 brltty_summary_lines="${brltty_summary_lines}
19460 screen-parameters: ${screen_parameters}"
19461 fi
19462
19463 for brltty_driver in ${brltty_item_names_screen}
19464 do
19465 brltty_build_directories="${brltty_build_directories} Drivers/Screen/${brltty_driver}"
19466 done
19467
19468
19469
19470
19471
19472 brltty_summary_lines="${brltty_summary_lines}
19473 screen-driver: ${default_screen_driver}"
19474
19475 # Check whether --enable-relocatable-install was given.
19476 if test ${enable_relocatable_install+y}
19477 then :
19478 enableval=$enable_relocatable_install;
19479 else case e in #(
19480 e) enableval="no" ;;
19481 esac
19482 fi
19483
19484
19485 brltty_enabled_relocatable_install="${enableval}"
19486
19487 brltty_summary_lines="${brltty_summary_lines}
19488 relocatable-install: ${brltty_enabled_relocatable_install}"
19489
19490 if test "${enableval}" = "no"
19491 then
19492 :
19493 else
19494 if test "${enableval}" = "yes"
19495 then
19496 brltty_ok=true
19497 else
19498 brltty_ok=false
19499 fi
19500
19501 if "${brltty_ok}"
19502 then
19503 :
19504 else
19505 as_fn_error $? "invalid selection: --enable-relocatable-install=${enableval}" "$LINENO" 5
19506 fi
19507 fi
19508
19509 case "${host_os}"
19510 in
19511 darwin*)
19512 INSTALL_OPTION_STRIP=""
19513 ;;
19514 *)
19515 INSTALL_OPTION_STRIP="-s"
19516 ;;
19517 esac
19518
19519 if test "${cross_compiling}" != "no"
19520 then
19521 if test -n "${INSTALL_OPTION_STRIP}"
19522 then
19523 INSTALL_OPTION_STRIP="${INSTALL_OPTION_STRIP} --strip-program ${STRIP}"
19524 fi
19525 fi
19526
19527 # Check whether --enable-stripping was given.
19528 if test ${enable_stripping+y}
19529 then :
19530 enableval=$enable_stripping;
19531 else case e in #(
19532 e) enableval="yes" ;;
19533 esac
19534 fi
19535
19536
19537 brltty_enabled_stripping="${enableval}"
19538
19539 brltty_summary_lines="${brltty_summary_lines}
19540 stripping: ${brltty_enabled_stripping}"
19541
19542 if test "${enableval}" = "no"
19543 then
19544 INSTALL_OPTION_STRIP=""
19545
19546 else
19547 if test "${enableval}" = "yes"
19548 then
19549 brltty_ok=true
19550 else
19551 brltty_ok=false
19552 fi
19553
19554 if "${brltty_ok}"
19555 then
19556 :
19557 else
19558 as_fn_error $? "invalid selection: --enable-stripping=${enableval}" "$LINENO" 5
19559 fi
19560 fi
19561
19562
19563 original_prefix="${prefix}"
19564 test "${prefix}" = "NONE" && prefix=""
19565 original_exec_prefix="${exec_prefix}"
19566 test "${exec_prefix}" = "NONE" && exec_prefix="${prefix}"
19567 brltty_reference_directory='${execute_root}${program_directory}'
19568 while test "${brltty_reference_directory}" != "${brltty_reference_directory%\$?*}"
19569 do
19570 eval 'brltty_reference_directory="'"${brltty_reference_directory}"'"'
19571 done
19572
19573
19574 LOCALE_DIRECTORY='${execute_root}${localedir}'
19575 while test "${LOCALE_DIRECTORY}" != "${LOCALE_DIRECTORY%\$?*}"
19576 do
19577 eval 'LOCALE_DIRECTORY="'"${LOCALE_DIRECTORY}"'"'
19578 done
19579
19580 brltty_path="${LOCALE_DIRECTORY}"
19581
19582 test "${brltty_enabled_relocatable_install}" = "yes" && {
19583 test "${LOCALE_DIRECTORY}" = "${LOCALE_DIRECTORY#\\}" && {
19584
19585 eval 'brltty_path="`"${AWK}" -v path="'"${LOCALE_DIRECTORY}"'" -v reference="'"${brltty_reference_directory}"'" -f "${srcdir}/relpath.awk"`"'
19586 }
19587 }
19588
19589
19590 brltty_expanded='${brltty_path}'
19591 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19592 do
19593 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19594 done
19595
19596
19597 printf "%s\n" "#define LOCALE_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19598
19599 # resolve escaped characters
19600 eval 'LOCALE_DIRECTORY="'"${LOCALE_DIRECTORY}"'"'
19601
19602
19603
19604 TABLES_DIRECTORY='${execute_root}${tables_directory}'
19605 while test "${TABLES_DIRECTORY}" != "${TABLES_DIRECTORY%\$?*}"
19606 do
19607 eval 'TABLES_DIRECTORY="'"${TABLES_DIRECTORY}"'"'
19608 done
19609
19610 brltty_path="${TABLES_DIRECTORY}"
19611
19612 test "${brltty_enabled_relocatable_install}" = "yes" && {
19613 test "${TABLES_DIRECTORY}" = "${TABLES_DIRECTORY#\\}" && {
19614
19615 eval 'brltty_path="`"${AWK}" -v path="'"${TABLES_DIRECTORY}"'" -v reference="'"${brltty_reference_directory}"'" -f "${srcdir}/relpath.awk"`"'
19616 }
19617 }
19618
19619
19620 brltty_expanded='${brltty_path}'
19621 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19622 do
19623 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19624 done
19625
19626
19627 printf "%s\n" "#define TABLES_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19628
19629 # resolve escaped characters
19630 eval 'TABLES_DIRECTORY="'"${TABLES_DIRECTORY}"'"'
19631
19632
19633
19634 DRIVERS_DIRECTORY='${execute_root}${drivers_directory}'
19635 while test "${DRIVERS_DIRECTORY}" != "${DRIVERS_DIRECTORY%\$?*}"
19636 do
19637 eval 'DRIVERS_DIRECTORY="'"${DRIVERS_DIRECTORY}"'"'
19638 done
19639
19640 brltty_path="${DRIVERS_DIRECTORY}"
19641
19642 test "${brltty_enabled_relocatable_install}" = "yes" && {
19643 test "${DRIVERS_DIRECTORY}" = "${DRIVERS_DIRECTORY#\\}" && {
19644
19645 eval 'brltty_path="`"${AWK}" -v path="'"${DRIVERS_DIRECTORY}"'" -v reference="'"${brltty_reference_directory}"'" -f "${srcdir}/relpath.awk"`"'
19646 }
19647 }
19648
19649
19650 brltty_expanded='${brltty_path}'
19651 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19652 do
19653 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19654 done
19655
19656
19657 printf "%s\n" "#define DRIVERS_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19658
19659 # resolve escaped characters
19660 eval 'DRIVERS_DIRECTORY="'"${DRIVERS_DIRECTORY}"'"'
19661
19662
19663
19664 HELPERS_DIRECTORY='${execute_root}${helpers_directory}'
19665 while test "${HELPERS_DIRECTORY}" != "${HELPERS_DIRECTORY%\$?*}"
19666 do
19667 eval 'HELPERS_DIRECTORY="'"${HELPERS_DIRECTORY}"'"'
19668 done
19669
19670 brltty_path="${HELPERS_DIRECTORY}"
19671
19672 test "${brltty_enabled_relocatable_install}" = "yes" && {
19673 test "${HELPERS_DIRECTORY}" = "${HELPERS_DIRECTORY#\\}" && {
19674
19675 eval 'brltty_path="`"${AWK}" -v path="'"${HELPERS_DIRECTORY}"'" -v reference="'"${brltty_reference_directory}"'" -f "${srcdir}/relpath.awk"`"'
19676 }
19677 }
19678
19679
19680 brltty_expanded='${brltty_path}'
19681 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19682 do
19683 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19684 done
19685
19686
19687 printf "%s\n" "#define HELPERS_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19688
19689 # resolve escaped characters
19690 eval 'HELPERS_DIRECTORY="'"${HELPERS_DIRECTORY}"'"'
19691
19692
19693
19694 CONFIGURATION_DIRECTORY='${sysconfdir}'
19695 while test "${CONFIGURATION_DIRECTORY}" != "${CONFIGURATION_DIRECTORY%\$?*}"
19696 do
19697 eval 'CONFIGURATION_DIRECTORY="'"${CONFIGURATION_DIRECTORY}"'"'
19698 done
19699
19700 brltty_path="${CONFIGURATION_DIRECTORY}"
19701
19702
19703
19704 brltty_expanded='${brltty_path}'
19705 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19706 do
19707 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19708 done
19709
19710
19711 printf "%s\n" "#define CONFIGURATION_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19712
19713 # resolve escaped characters
19714 eval 'CONFIGURATION_DIRECTORY="'"${CONFIGURATION_DIRECTORY}"'"'
19715
19716
19717
19718
19719 if test -n "${updatable_directory}"
19720 then
19721 UPDATABLE_DIRECTORY='${updatable_directory}'
19722 while test "${UPDATABLE_DIRECTORY}" != "${UPDATABLE_DIRECTORY%\$?*}"
19723 do
19724 eval 'UPDATABLE_DIRECTORY="'"${UPDATABLE_DIRECTORY}"'"'
19725 done
19726
19727 brltty_path="${UPDATABLE_DIRECTORY}"
19728
19729
19730
19731 brltty_expanded='${brltty_path}'
19732 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19733 do
19734 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19735 done
19736
19737
19738 printf "%s\n" "#define UPDATABLE_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19739
19740 # resolve escaped characters
19741 eval 'UPDATABLE_DIRECTORY="'"${UPDATABLE_DIRECTORY}"'"'
19742
19743
19744
19745 fi
19746
19747 if test -n "${writable_directory}"
19748 then
19749 WRITABLE_DIRECTORY='${writable_directory}'
19750 while test "${WRITABLE_DIRECTORY}" != "${WRITABLE_DIRECTORY%\$?*}"
19751 do
19752 eval 'WRITABLE_DIRECTORY="'"${WRITABLE_DIRECTORY}"'"'
19753 done
19754
19755 brltty_path="${WRITABLE_DIRECTORY}"
19756
19757
19758
19759 brltty_expanded='${brltty_path}'
19760 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19761 do
19762 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19763 done
19764
19765
19766 printf "%s\n" "#define WRITABLE_DIRECTORY \"${brltty_expanded}\"" >>confdefs.h
19767
19768 # resolve escaped characters
19769 eval 'WRITABLE_DIRECTORY="'"${WRITABLE_DIRECTORY}"'"'
19770
19771
19772
19773 fi
19774
19775 BRLAPI_ETCDIR='${CONFIGURATION_DIRECTORY}'
19776 while test "${BRLAPI_ETCDIR}" != "${BRLAPI_ETCDIR%\$?*}"
19777 do
19778 eval 'BRLAPI_ETCDIR="'"${BRLAPI_ETCDIR}"'"'
19779 done
19780
19781 brltty_path="${BRLAPI_ETCDIR}"
19782
19783
19784
19785 brltty_expanded='${brltty_path}'
19786 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19787 do
19788 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19789 done
19790
19791
19792 printf "%s\n" "#define BRLAPI_ETCDIR \"${brltty_expanded}\"" >>confdefs.h
19793
19794 # resolve escaped characters
19795 eval 'BRLAPI_ETCDIR="'"${BRLAPI_ETCDIR}"'"'
19796
19797
19798
19799
19800 BRLAPI_SOCKETPATH='${api_socket_path}'
19801 while test "${BRLAPI_SOCKETPATH}" != "${BRLAPI_SOCKETPATH%\$?*}"
19802 do
19803 eval 'BRLAPI_SOCKETPATH="'"${BRLAPI_SOCKETPATH}"'"'
19804 done
19805
19806 brltty_path="${BRLAPI_SOCKETPATH}"
19807
19808
19809
19810 brltty_expanded='${brltty_path}'
19811 while test "${brltty_expanded}" != "${brltty_expanded%\$?*}"
19812 do
19813 eval 'brltty_expanded="'"${brltty_expanded}"'"'
19814 done
19815
19816
19817 printf "%s\n" "#define BRLAPI_SOCKETPATH \"${brltty_expanded}\"" >>confdefs.h
19818
19819 # resolve escaped characters
19820 eval 'BRLAPI_SOCKETPATH="'"${BRLAPI_SOCKETPATH}"'"'
19821
19822
19823
19824
19825 prefix="${original_prefix}"
19826 exec_prefix="${original_exec_prefix}"
19827
19828
19829 ac_config_commands="$ac_config_commands item-summary"
19830
19831
19832 brltty_make_files="`echo "${brltty_build_directories}" | sed -e '
19833 s%\([^ ][^ ]*\)%\1/Makefile:prologue.mk:\1/Makefile.in%g
19834 '`"
19835
19836 ac_config_files="$ac_config_files config.mk brltty.spec brltty-config.sh brltty.pc Documents/brltty.conf Documents/brltty.1 Documents/xbrlapi.1 Documents/BrlAPIref.doxy Bindings/Emacs/add_directory.el Bindings/Lisp/brlapi.asd Bindings/Lisp/brlapi_config.lisp Bindings/Python/setup.py Autostart/Systemd/[email protected] Autostart/Systemd/tmpfiles Autostart/Udev/usb-template.rules Autostart/X11/90xbrlapi Android/Gradle/config.properties ${brltty_make_files}"
19837
19838
19839 ac_config_commands="$ac_config_commands build-configure"
19840
19841
19842 cat >confcache <<\_ACEOF
19843 # This file is a shell script that caches the results of configure
19844 # tests run on this system so they can be shared between configure
19845 # scripts and configure runs, see configure's option --config-cache.
19846 # It is not useful on other systems. If it contains results you don't
19847 # want to keep, you may remove or edit it.
19848 #
19849 # config.status only pays attention to the cache file if you give it
19850 # the --recheck option to rerun configure.
19851 #
19852 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
19853 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
19854 # following values.
19855
19856 _ACEOF
19857
19858 # The following way of writing the cache mishandles newlines in values,
19859 # but we know of no workaround that is simple, portable, and efficient.
19860 # So, we kill variables containing newlines.
19861 # Ultrix sh set writes to stderr and can't be redirected directly,
19862 # and sets the high bit in the cache file unless we assign to the vars.
19863 (
19864 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19865 eval ac_val=\$$ac_var
19866 case $ac_val in #(
19867 *${as_nl}*)
19868 case $ac_var in #(
19869 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19870 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19871 esac
19872 case $ac_var in #(
19873 _ | IFS | as_nl) ;; #(
19874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19875 *) { eval $ac_var=; unset $ac_var;} ;;
19876 esac ;;
19877 esac
19878 done
19879
19880 (set) 2>&1 |
19881 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19882 *${as_nl}ac_space=\ *)
19883 # 'set' does not quote correctly, so add quotes: double-quote
19884 # substitution turns \\\\ into \\, and sed turns \\ into \.
19885 sed -n \
19886 "s/'/'\\\\''/g;
19887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19888 ;; #(
19889 *)
19890 # 'set' quotes correctly as required by POSIX, so do not add quotes.
19891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19892 ;;
19893 esac |
19894 sort
19895 ) |
19896 sed '
19897 /^ac_cv_env_/b end
19898 t clear
19899 :clear
19900 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19901 t end
19902 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19903 :end' >>confcache
19904 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19905 if test -w "$cache_file"; then
19906 if test "x$cache_file" != "x/dev/null"; then
19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19908 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19909 if test ! -f "$cache_file" || test -h "$cache_file"; then
19910 cat confcache >"$cache_file"
19911 else
19912 case $cache_file in #(
19913 */* | ?:*)
19914 mv -f confcache "$cache_file"$$ &&
19915 mv -f "$cache_file"$$ "$cache_file" ;; #(
19916 *)
19917 mv -f confcache "$cache_file" ;;
19918 esac
19919 fi
19920 fi
19921 else
19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19923 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19924 fi
19925 fi
19926 rm -f confcache
19927
19928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19929 # Let make expand exec_prefix.
19930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19931
19932 DEFS=-DHAVE_CONFIG_H
19933
19934 ac_libobjs=
19935 ac_ltlibobjs=
19936 U=
19937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19938 # 1. Remove the extension, and $U if already installed.
19939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19940 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19942 # will be set to the directory where LIBOBJS objects are built.
19943 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19944 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19945 done
19946 LIBOBJS=$ac_libobjs
19947
19948 LTLIBOBJS=$ac_ltlibobjs
19949
19950
19951
19952
19953 : "${CONFIG_STATUS=./config.status}"
19954 ac_write_fail=0
19955 ac_clean_files_save=$ac_clean_files
19956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19958 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19959 as_write_fail=0
19960 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19961 #! $SHELL
19962 # Generated by $as_me.
19963 # Run this file to recreate the current configuration.
19964 # Compiler output produced by configure, useful for debugging
19965 # configure, is in config.log if it exists.
19966
19967 debug=false
19968 ac_cs_recheck=false
19969 ac_cs_silent=false
19970
19971 SHELL=\${CONFIG_SHELL-$SHELL}
19972 export SHELL
19973 _ASEOF
19974 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19975 ## -------------------- ##
19976 ## M4sh Initialization. ##
19977 ## -------------------- ##
19978
19979 # Be more Bourne compatible
19980 DUALCASE=1; export DUALCASE # for MKS sh
19981 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19982 then :
19983 emulate sh
19984 NULLCMD=:
19985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19986 # is contrary to our usage. Disable this feature.
19987 alias -g '${1+"$@"}'='"$@"'
19988 setopt NO_GLOB_SUBST
19989 else case e in #(
19990 e) case `(set -o) 2>/dev/null` in #(
19991 *posix*) :
19992 set -o posix ;; #(
19993 *) :
19994 ;;
19995 esac ;;
19996 esac
19997 fi
19998
19999
20000
20001 # Reset variables that may have inherited troublesome values from
20002 # the environment.
20003
20004 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20005 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20006 # side effect of setting IFS to empty, thus disabling word splitting.)
20007 # Quoting is to prevent editors from complaining about space-tab.
20008 as_nl='
20009 '
20010 export as_nl
20011 IFS=" "" $as_nl"
20012
20013 PS1='$ '
20014 PS2='> '
20015 PS4='+ '
20016
20017 # Ensure predictable behavior from utilities with locale-dependent output.
20018 LC_ALL=C
20019 export LC_ALL
20020 LANGUAGE=C
20021 export LANGUAGE
20022
20023 # We cannot yet rely on "unset" to work, but we need these variables
20024 # to be unset--not just set to an empty or harmless value--now, to
20025 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20026 # also avoids known problems related to "unset" and subshell syntax
20027 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20028 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20029 do eval test \${$as_var+y} \
20030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20031 done
20032
20033 # Ensure that fds 0, 1, and 2 are open.
20034 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20035 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20036 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20037
20038 # The user is always right.
20039 if ${PATH_SEPARATOR+false} :; then
20040 PATH_SEPARATOR=:
20041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20043 PATH_SEPARATOR=';'
20044 }
20045 fi
20046
20047
20048 # Find who we are. Look in the path if we contain no directory separator.
20049 as_myself=
20050 case $0 in #((
20051 *[\\/]* ) as_myself=$0 ;;
20052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20053 for as_dir in $PATH
20054 do
20055 IFS=$as_save_IFS
20056 case $as_dir in #(((
20057 '') as_dir=./ ;;
20058 */) ;;
20059 *) as_dir=$as_dir/ ;;
20060 esac
20061 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20062 done
20063 IFS=$as_save_IFS
20064
20065 ;;
20066 esac
20067 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20068 # in which case we are not to be found in the path.
20069 if test "x$as_myself" = x; then
20070 as_myself=$0
20071 fi
20072 if test ! -f "$as_myself"; then
20073 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20074 exit 1
20075 fi
20076
20077
20078
20079 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20080 # ----------------------------------------
20081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20083 # script with STATUS, using 1 if that was 0.
20084 as_fn_error ()
20085 {
20086 as_status=$1; test $as_status -eq 0 && as_status=1
20087 if test "$4"; then
20088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20090 fi
20091 printf "%s\n" "$as_me: error: $2" >&2
20092 as_fn_exit $as_status
20093 } # as_fn_error
20094
20095
20096 # as_fn_set_status STATUS
20097 # -----------------------
20098 # Set $? to STATUS, without forking.
20099 as_fn_set_status ()
20100 {
20101 return $1
20102 } # as_fn_set_status
20103
20104 # as_fn_exit STATUS
20105 # -----------------
20106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20107 as_fn_exit ()
20108 {
20109 set +e
20110 as_fn_set_status $1
20111 exit $1
20112 } # as_fn_exit
20113
20114 # as_fn_unset VAR
20115 # ---------------
20116 # Portably unset VAR.
20117 as_fn_unset ()
20118 {
20119 { eval $1=; unset $1;}
20120 }
20121 as_unset=as_fn_unset
20122
20123 # as_fn_append VAR VALUE
20124 # ----------------------
20125 # Append the text in VALUE to the end of the definition contained in VAR. Take
20126 # advantage of any shell optimizations that allow amortized linear growth over
20127 # repeated appends, instead of the typical quadratic growth present in naive
20128 # implementations.
20129 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20130 then :
20131 eval 'as_fn_append ()
20132 {
20133 eval $1+=\$2
20134 }'
20135 else case e in #(
20136 e) as_fn_append ()
20137 {
20138 eval $1=\$$1\$2
20139 } ;;
20140 esac
20141 fi # as_fn_append
20142
20143 # as_fn_arith ARG...
20144 # ------------------
20145 # Perform arithmetic evaluation on the ARGs, and store the result in the
20146 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20147 # must be portable across $(()) and expr.
20148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20149 then :
20150 eval 'as_fn_arith ()
20151 {
20152 as_val=$(( $* ))
20153 }'
20154 else case e in #(
20155 e) as_fn_arith ()
20156 {
20157 as_val=`expr "$@" || test $? -eq 1`
20158 } ;;
20159 esac
20160 fi # as_fn_arith
20161
20162
20163 if expr a : '\(a\)' >/dev/null 2>&1 &&
20164 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20165 as_expr=expr
20166 else
20167 as_expr=false
20168 fi
20169
20170 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20171 as_basename=basename
20172 else
20173 as_basename=false
20174 fi
20175
20176 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20177 as_dirname=dirname
20178 else
20179 as_dirname=false
20180 fi
20181
20182 as_me=`$as_basename -- "$0" ||
20183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20184 X"$0" : 'X\(//\)$' \| \
20185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20186 printf "%s\n" X/"$0" |
20187 sed '/^.*\/\([^/][^/]*\)\/*$/{
20188 s//\1/
20189 q
20190 }
20191 /^X\/\(\/\/\)$/{
20192 s//\1/
20193 q
20194 }
20195 /^X\/\(\/\).*/{
20196 s//\1/
20197 q
20198 }
20199 s/.*/./; q'`
20200
20201 # Avoid depending upon Character Ranges.
20202 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20203 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20204 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20205 as_cr_digits='0123456789'
20206 as_cr_alnum=$as_cr_Letters$as_cr_digits
20207
20208
20209 # Determine whether it's possible to make 'echo' print without a newline.
20210 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20211 # for compatibility with existing Makefiles.
20212 ECHO_C= ECHO_N= ECHO_T=
20213 case `echo -n x` in #(((((
20214 -n*)
20215 case `echo 'xy\c'` in
20216 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20217 xy) ECHO_C='\c';;
20218 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20219 ECHO_T=' ';;
20220 esac;;
20221 *)
20222 ECHO_N='-n';;
20223 esac
20224
20225 # For backward compatibility with old third-party macros, we provide
20226 # the shell variables $as_echo and $as_echo_n. New code should use
20227 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20228 as_echo='printf %s\n'
20229 as_echo_n='printf %s'
20230
20231 rm -f conf$$ conf$$.exe conf$$.file
20232 if test -d conf$$.dir; then
20233 rm -f conf$$.dir/conf$$.file
20234 else
20235 rm -f conf$$.dir
20236 mkdir conf$$.dir 2>/dev/null
20237 fi
20238 if (echo >conf$$.file) 2>/dev/null; then
20239 if ln -s conf$$.file conf$$ 2>/dev/null; then
20240 as_ln_s='ln -s'
20241 # ... but there are two gotchas:
20242 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20243 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20244 # In both cases, we have to default to 'cp -pR'.
20245 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20246 as_ln_s='cp -pR'
20247 elif ln conf$$.file conf$$ 2>/dev/null; then
20248 as_ln_s=ln
20249 else
20250 as_ln_s='cp -pR'
20251 fi
20252 else
20253 as_ln_s='cp -pR'
20254 fi
20255 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20256 rmdir conf$$.dir 2>/dev/null
20257
20258
20259 # as_fn_mkdir_p
20260 # -------------
20261 # Create "$as_dir" as a directory, including parents if necessary.
20262 as_fn_mkdir_p ()
20263 {
20264
20265 case $as_dir in #(
20266 -*) as_dir=./$as_dir;;
20267 esac
20268 test -d "$as_dir" || eval $as_mkdir_p || {
20269 as_dirs=
20270 while :; do
20271 case $as_dir in #(
20272 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20273 *) as_qdir=$as_dir;;
20274 esac
20275 as_dirs="'$as_qdir' $as_dirs"
20276 as_dir=`$as_dirname -- "$as_dir" ||
20277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20278 X"$as_dir" : 'X\(//\)[^/]' \| \
20279 X"$as_dir" : 'X\(//\)$' \| \
20280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20281 printf "%s\n" X"$as_dir" |
20282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20283 s//\1/
20284 q
20285 }
20286 /^X\(\/\/\)[^/].*/{
20287 s//\1/
20288 q
20289 }
20290 /^X\(\/\/\)$/{
20291 s//\1/
20292 q
20293 }
20294 /^X\(\/\).*/{
20295 s//\1/
20296 q
20297 }
20298 s/.*/./; q'`
20299 test -d "$as_dir" && break
20300 done
20301 test -z "$as_dirs" || eval "mkdir $as_dirs"
20302 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20303
20304
20305 } # as_fn_mkdir_p
20306 if mkdir -p . 2>/dev/null; then
20307 as_mkdir_p='mkdir -p "$as_dir"'
20308 else
20309 test -d ./-p && rmdir ./-p
20310 as_mkdir_p=false
20311 fi
20312
20313
20314 # as_fn_executable_p FILE
20315 # -----------------------
20316 # Test if FILE is an executable regular file.
20317 as_fn_executable_p ()
20318 {
20319 test -f "$1" && test -x "$1"
20320 } # as_fn_executable_p
20321 as_test_x='test -x'
20322 as_executable_p=as_fn_executable_p
20323
20324 # Sed expression to map a string onto a valid CPP name.
20325 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20326 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20327
20328 # Sed expression to map a string onto a valid variable name.
20329 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20330 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20331
20332
20333 exec 6>&1
20334 ## ----------------------------------- ##
20335 ## Main body of $CONFIG_STATUS script. ##
20336 ## ----------------------------------- ##
20337 _ASEOF
20338 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20339
20340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20341 # Save the log message, to keep $0 and so on meaningful, and to
20342 # report actual input values of CONFIG_FILES etc. instead of their
20343 # values after options handling.
20344 ac_log="
20345 This file was extended by BRLTTY $as_me 6.9.1, which was
20346 generated by GNU Autoconf 2.72. Invocation command line was
20347
20348 CONFIG_FILES = $CONFIG_FILES
20349 CONFIG_HEADERS = $CONFIG_HEADERS
20350 CONFIG_LINKS = $CONFIG_LINKS
20351 CONFIG_COMMANDS = $CONFIG_COMMANDS
20352 $ $0 $@
20353
20354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20355 "
20356
20357 _ACEOF
20358
20359 case $ac_config_files in *"
20360 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20361 esac
20362
20363 case $ac_config_headers in *"
20364 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20365 esac
20366
20367
20368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20369 # Files that config.status was made for.
20370 config_files="$ac_config_files"
20371 config_headers="$ac_config_headers"
20372 config_commands="$ac_config_commands"
20373
20374 _ACEOF
20375
20376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377 ac_cs_usage="\
20378 '$as_me' instantiates files and other configuration actions
20379 from templates according to the current configuration. Unless the files
20380 and actions are specified as TAGs, all are instantiated by default.
20381
20382 Usage: $0 [OPTION]... [TAG]...
20383
20384 -h, --help print this help, then exit
20385 -V, --version print version number and configuration settings, then exit
20386 --config print configuration, then exit
20387 -q, --quiet, --silent
20388 do not print progress messages
20389 -d, --debug don't remove temporary files
20390 --recheck update $as_me by reconfiguring in the same conditions
20391 --file=FILE[:TEMPLATE]
20392 instantiate the configuration file FILE
20393 --header=FILE[:TEMPLATE]
20394 instantiate the configuration header FILE
20395
20396 Configuration files:
20397 $config_files
20398
20399 Configuration headers:
20400 $config_headers
20401
20402 Configuration commands:
20403 $config_commands
20404
20405 Report bugs to <[email protected]>.
20406 BRLTTY home page: <https://brltty.app/>."
20407
20408 _ACEOF
20409 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20410 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20412 ac_cs_config='$ac_cs_config_escaped'
20413 ac_cs_version="\\
20414 BRLTTY config.status 6.9.1
20415 configured by $0, generated by GNU Autoconf 2.72,
20416 with options \\"\$ac_cs_config\\"
20417
20418 Copyright (C) 2023 Free Software Foundation, Inc.
20419 This config.status script is free software; the Free Software Foundation
20420 gives unlimited permission to copy, distribute and modify it."
20421
20422 ac_pwd='$ac_pwd'
20423 srcdir='$srcdir'
20424 INSTALL='$INSTALL'
20425 AWK='$AWK'
20426 test -n "\$AWK" || AWK=awk
20427 _ACEOF
20428
20429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20430 # The default lists apply if the user does not specify any file.
20431 ac_need_defaults=:
20432 while test $# != 0
20433 do
20434 case $1 in
20435 --*=?*)
20436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20438 ac_shift=:
20439 ;;
20440 --*=)
20441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20442 ac_optarg=
20443 ac_shift=:
20444 ;;
20445 *)
20446 ac_option=$1
20447 ac_optarg=$2
20448 ac_shift=shift
20449 ;;
20450 esac
20451
20452 case $ac_option in
20453 # Handling of the options.
20454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20455 ac_cs_recheck=: ;;
20456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20457 printf "%s\n" "$ac_cs_version"; exit ;;
20458 --config | --confi | --conf | --con | --co | --c )
20459 printf "%s\n" "$ac_cs_config"; exit ;;
20460 --debug | --debu | --deb | --de | --d | -d )
20461 debug=: ;;
20462 --file | --fil | --fi | --f )
20463 $ac_shift
20464 case $ac_optarg in
20465 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20466 '') as_fn_error $? "missing file argument" ;;
20467 esac
20468 as_fn_append CONFIG_FILES " '$ac_optarg'"
20469 ac_need_defaults=false;;
20470 --header | --heade | --head | --hea )
20471 $ac_shift
20472 case $ac_optarg in
20473 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20474 esac
20475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20476 ac_need_defaults=false;;
20477 --he | --h)
20478 # Conflict between --help and --header
20479 as_fn_error $? "ambiguous option: '$1'
20480 Try '$0 --help' for more information.";;
20481 --help | --hel | -h )
20482 printf "%s\n" "$ac_cs_usage"; exit ;;
20483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20485 ac_cs_silent=: ;;
20486
20487 # This is an error.
20488 -*) as_fn_error $? "unrecognized option: '$1'
20489 Try '$0 --help' for more information." ;;
20490
20491 *) as_fn_append ac_config_targets " $1"
20492 ac_need_defaults=false ;;
20493
20494 esac
20495 shift
20496 done
20497
20498 ac_configure_extra_args=
20499
20500 if $ac_cs_silent; then
20501 exec 6>/dev/null
20502 ac_configure_extra_args="$ac_configure_extra_args --silent"
20503 fi
20504
20505 _ACEOF
20506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20507 if \$ac_cs_recheck; then
20508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20509 shift
20510 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20511 CONFIG_SHELL='$SHELL'
20512 export CONFIG_SHELL
20513 exec "\$@"
20514 fi
20515
20516 _ACEOF
20517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518 exec 5>>config.log
20519 {
20520 echo
20521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20522 ## Running $as_me. ##
20523 _ASBOX
20524 printf "%s\n" "$ac_log"
20525 } >&5
20526
20527 _ACEOF
20528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20529 #
20530 # INIT-COMMANDS
20531 #
20532 brltty_summary_lines='${brltty_summary_lines}'
20533
20534
20535 _ACEOF
20536
20537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20538
20539 # Handling of arguments.
20540 for ac_config_target in $ac_config_targets
20541 do
20542 case $ac_config_target in
20543 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20544 "Programs/brlapi.h") CONFIG_HEADERS="$CONFIG_HEADERS Programs/brlapi.h" ;;
20545 "item-summary") CONFIG_COMMANDS="$CONFIG_COMMANDS item-summary" ;;
20546 "config.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
20547 "brltty.spec") CONFIG_FILES="$CONFIG_FILES brltty.spec" ;;
20548 "brltty-config.sh") CONFIG_FILES="$CONFIG_FILES brltty-config.sh" ;;
20549 "brltty.pc") CONFIG_FILES="$CONFIG_FILES brltty.pc" ;;
20550 "Documents/brltty.conf") CONFIG_FILES="$CONFIG_FILES Documents/brltty.conf" ;;
20551 "Documents/brltty.1") CONFIG_FILES="$CONFIG_FILES Documents/brltty.1" ;;
20552 "Documents/xbrlapi.1") CONFIG_FILES="$CONFIG_FILES Documents/xbrlapi.1" ;;
20553 "Documents/BrlAPIref.doxy") CONFIG_FILES="$CONFIG_FILES Documents/BrlAPIref.doxy" ;;
20554 "Bindings/Emacs/add_directory.el") CONFIG_FILES="$CONFIG_FILES Bindings/Emacs/add_directory.el" ;;
20555 "Bindings/Lisp/brlapi.asd") CONFIG_FILES="$CONFIG_FILES Bindings/Lisp/brlapi.asd" ;;
20556 "Bindings/Lisp/brlapi_config.lisp") CONFIG_FILES="$CONFIG_FILES Bindings/Lisp/brlapi_config.lisp" ;;
20557 "Bindings/Python/setup.py") CONFIG_FILES="$CONFIG_FILES Bindings/Python/setup.py" ;;
20558 "Autostart/Systemd/[email protected]") CONFIG_FILES="$CONFIG_FILES Autostart/Systemd/[email protected]" ;;
20559 "Autostart/Systemd/tmpfiles") CONFIG_FILES="$CONFIG_FILES Autostart/Systemd/tmpfiles" ;;
20560 "Autostart/Udev/usb-template.rules") CONFIG_FILES="$CONFIG_FILES Autostart/Udev/usb-template.rules" ;;
20561 "Autostart/X11/90xbrlapi") CONFIG_FILES="$CONFIG_FILES Autostart/X11/90xbrlapi" ;;
20562 "Android/Gradle/config.properties") CONFIG_FILES="$CONFIG_FILES Android/Gradle/config.properties" ;;
20563 "${brltty_make_files}") CONFIG_FILES="$CONFIG_FILES ${brltty_make_files}" ;;
20564 "build-configure") CONFIG_COMMANDS="$CONFIG_COMMANDS build-configure" ;;
20565
20566 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
20567 esac
20568 done
20569
20570
20571 # If the user did not use the arguments to specify the items to instantiate,
20572 # then the envvar interface is used. Set only those that are not.
20573 # We use the long form for the default assignment because of an extremely
20574 # bizarre bug on SunOS 4.1.3.
20575 if $ac_need_defaults; then
20576 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20577 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20578 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20579 fi
20580
20581 # Have a temporary directory for convenience. Make it in the build tree
20582 # simply because there is no reason against having it here, and in addition,
20583 # creating and moving files from /tmp can sometimes cause problems.
20584 # Hook for its removal unless debugging.
20585 # Note that there is a small window in which the directory will not be cleaned:
20586 # after its creation but before its name has been assigned to '$tmp'.
20587 $debug ||
20588 {
20589 tmp= ac_tmp=
20590 trap 'exit_status=$?
20591 : "${ac_tmp:=$tmp}"
20592 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20593 ' 0
20594 trap 'as_fn_exit 1' 1 2 13 15
20595 }
20596 # Create a (secure) tmp directory for tmp files.
20597
20598 {
20599 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20600 test -d "$tmp"
20601 } ||
20602 {
20603 tmp=./conf$$-$RANDOM
20604 (umask 077 && mkdir "$tmp")
20605 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20606 ac_tmp=$tmp
20607
20608 # Set up the scripts for CONFIG_FILES section.
20609 # No need to generate them if there are no CONFIG_FILES.
20610 # This happens for instance with './config.status config.h'.
20611 if test -n "$CONFIG_FILES"; then
20612
20613
20614 ac_cr=`echo X | tr X '\015'`
20615 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20616 # But we know of no other shell where ac_cr would be empty at this
20617 # point, so we can use a bashism as a fallback.
20618 if test "x$ac_cr" = x; then
20619 eval ac_cr=\$\'\\r\'
20620 fi
20621 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20622 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20623 ac_cs_awk_cr='\\r'
20624 else
20625 ac_cs_awk_cr=$ac_cr
20626 fi
20627
20628 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20629 _ACEOF
20630
20631
20632 {
20633 echo "cat >conf$$subs.awk <<_ACEOF" &&
20634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20635 echo "_ACEOF"
20636 } >conf$$subs.sh ||
20637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20638 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20639 ac_delim='%!_!# '
20640 for ac_last_try in false false false false false :; do
20641 . ./conf$$subs.sh ||
20642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20643
20644 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20645 if test $ac_delim_n = $ac_delim_num; then
20646 break
20647 elif $ac_last_try; then
20648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20649 else
20650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20651 fi
20652 done
20653 rm -f conf$$subs.sh
20654
20655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20656 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20657 _ACEOF
20658 sed -n '
20659 h
20660 s/^/S["/; s/!.*/"]=/
20661 p
20662 g
20663 s/^[^!]*!//
20664 :repl
20665 t repl
20666 s/'"$ac_delim"'$//
20667 t delim
20668 :nl
20669 h
20670 s/\(.\{148\}\)..*/\1/
20671 t more1
20672 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20673 p
20674 n
20675 b repl
20676 :more1
20677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20678 p
20679 g
20680 s/.\{148\}//
20681 t nl
20682 :delim
20683 h
20684 s/\(.\{148\}\)..*/\1/
20685 t more2
20686 s/["\\]/\\&/g; s/^/"/; s/$/"/
20687 p
20688 b
20689 :more2
20690 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20691 p
20692 g
20693 s/.\{148\}//
20694 t delim
20695 ' <conf$$subs.awk | sed '
20696 /^[^""]/{
20697 N
20698 s/\n//
20699 }
20700 ' >>$CONFIG_STATUS || ac_write_fail=1
20701 rm -f conf$$subs.awk
20702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20703 _ACAWK
20704 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20705 for (key in S) S_is_set[key] = 1
20706 FS = ""
20707
20708 }
20709 {
20710 line = $ 0
20711 nfields = split(line, field, "@")
20712 substed = 0
20713 len = length(field[1])
20714 for (i = 2; i < nfields; i++) {
20715 key = field[i]
20716 keylen = length(key)
20717 if (S_is_set[key]) {
20718 value = S[key]
20719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20720 len += length(value) + length(field[++i])
20721 substed = 1
20722 } else
20723 len += 1 + keylen
20724 }
20725
20726 print line
20727 }
20728
20729 _ACAWK
20730 _ACEOF
20731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20732 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20733 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20734 else
20735 cat
20736 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20737 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20738 _ACEOF
20739
20740 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20741 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20742 # trailing colons and then remove the whole line if VPATH becomes empty
20743 # (actually we leave an empty line to preserve line numbers).
20744 if test "x$srcdir" = x.; then
20745 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20746 h
20747 s///
20748 s/^/:/
20749 s/[ ]*$/:/
20750 s/:\$(srcdir):/:/g
20751 s/:\${srcdir}:/:/g
20752 s/:@srcdir@:/:/g
20753 s/^:*//
20754 s/:*$//
20755 x
20756 s/\(=[ ]*\).*/\1/
20757 G
20758 s/\n//
20759 s/^[^=]*=[ ]*$//
20760 }'
20761 fi
20762
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764 fi # test -n "$CONFIG_FILES"
20765
20766 # Set up the scripts for CONFIG_HEADERS section.
20767 # No need to generate them if there are no CONFIG_HEADERS.
20768 # This happens for instance with './config.status Makefile'.
20769 if test -n "$CONFIG_HEADERS"; then
20770 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20771 BEGIN {
20772 _ACEOF
20773
20774 # Transform confdefs.h into an awk script 'defines.awk', embedded as
20775 # here-document in config.status, that substitutes the proper values into
20776 # config.h.in to produce config.h.
20777
20778 # Create a delimiter string that does not exist in confdefs.h, to ease
20779 # handling of long lines.
20780 ac_delim='%!_!# '
20781 for ac_last_try in false false :; do
20782 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20783 if test -z "$ac_tt"; then
20784 break
20785 elif $ac_last_try; then
20786 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20787 else
20788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20789 fi
20790 done
20791
20792 # For the awk script, D is an array of macro values keyed by name,
20793 # likewise P contains macro parameters if any. Preserve backslash
20794 # newline sequences.
20795
20796 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20797 sed -n '
20798 s/.\{148\}/&'"$ac_delim"'/g
20799 t rset
20800 :rset
20801 s/^[ ]*#[ ]*define[ ][ ]*/ /
20802 t def
20803 d
20804 :def
20805 s/\\$//
20806 t bsnl
20807 s/["\\]/\\&/g
20808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20809 D["\1"]=" \3"/p
20810 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20811 d
20812 :bsnl
20813 s/["\\]/\\&/g
20814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20815 D["\1"]=" \3\\\\\\n"\\/p
20816 t cont
20817 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20818 t cont
20819 d
20820 :cont
20821 n
20822 s/.\{148\}/&'"$ac_delim"'/g
20823 t clear
20824 :clear
20825 s/\\$//
20826 t bsnlc
20827 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20828 d
20829 :bsnlc
20830 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20831 b cont
20832 ' <confdefs.h | sed '
20833 s/'"$ac_delim"'/"\\\
20834 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20835
20836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20837 for (key in D) D_is_set[key] = 1
20838 FS = ""
20839 }
20840 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20841 line = \$ 0
20842 split(line, arg, " ")
20843 if (arg[1] == "#") {
20844 defundef = arg[2]
20845 mac1 = arg[3]
20846 } else {
20847 defundef = substr(arg[1], 2)
20848 mac1 = arg[2]
20849 }
20850 split(mac1, mac2, "(") #)
20851 macro = mac2[1]
20852 prefix = substr(line, 1, index(line, defundef) - 1)
20853 if (D_is_set[macro]) {
20854 # Preserve the white space surrounding the "#".
20855 print prefix "define", macro P[macro] D[macro]
20856 next
20857 } else {
20858 # Replace #undef with comments. This is necessary, for example,
20859 # in the case of _POSIX_SOURCE, which is predefined and required
20860 # on some systems where configure will not decide to define it.
20861 if (defundef == "undef") {
20862 print "/*", prefix defundef, macro, "*/"
20863 next
20864 }
20865 }
20866 }
20867 { print }
20868 _ACAWK
20869 _ACEOF
20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20871 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20872 fi # test -n "$CONFIG_HEADERS"
20873
20874
20875 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20876 shift
20877 for ac_tag
20878 do
20879 case $ac_tag in
20880 :[FHLC]) ac_mode=$ac_tag; continue;;
20881 esac
20882 case $ac_mode$ac_tag in
20883 :[FHL]*:*);;
20884 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
20885 :[FH]-) ac_tag=-:-;;
20886 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20887 esac
20888 ac_save_IFS=$IFS
20889 IFS=:
20890 set x $ac_tag
20891 IFS=$ac_save_IFS
20892 shift
20893 ac_file=$1
20894 shift
20895
20896 case $ac_mode in
20897 :L) ac_source=$1;;
20898 :[FH])
20899 ac_file_inputs=
20900 for ac_f
20901 do
20902 case $ac_f in
20903 -) ac_f="$ac_tmp/stdin";;
20904 *) # Look for the file first in the build tree, then in the source tree
20905 # (if the path is not absolute). The absolute path cannot be DOS-style,
20906 # because $ac_f cannot contain ':'.
20907 test -f "$ac_f" ||
20908 case $ac_f in
20909 [\\/$]*) false;;
20910 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20911 esac ||
20912 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
20913 esac
20914 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20915 as_fn_append ac_file_inputs " '$ac_f'"
20916 done
20917
20918 # Let's still pretend it is 'configure' which instantiates (i.e., don't
20919 # use $as_me), people would be surprised to read:
20920 # /* config.h. Generated by config.status. */
20921 configure_input='Generated from '`
20922 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20923 `' by configure.'
20924 if test x"$ac_file" != x-; then
20925 configure_input="$ac_file. $configure_input"
20926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20927 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20928 fi
20929 # Neutralize special characters interpreted by sed in replacement strings.
20930 case $configure_input in #(
20931 *\&* | *\|* | *\\* )
20932 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20933 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20934 *) ac_sed_conf_input=$configure_input;;
20935 esac
20936
20937 case $ac_tag in
20938 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20940 esac
20941 ;;
20942 esac
20943
20944 ac_dir=`$as_dirname -- "$ac_file" ||
20945 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 X"$ac_file" : 'X\(//\)[^/]' \| \
20947 X"$ac_file" : 'X\(//\)$' \| \
20948 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20949 printf "%s\n" X"$ac_file" |
20950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20951 s//\1/
20952 q
20953 }
20954 /^X\(\/\/\)[^/].*/{
20955 s//\1/
20956 q
20957 }
20958 /^X\(\/\/\)$/{
20959 s//\1/
20960 q
20961 }
20962 /^X\(\/\).*/{
20963 s//\1/
20964 q
20965 }
20966 s/.*/./; q'`
20967 as_dir="$ac_dir"; as_fn_mkdir_p
20968 ac_builddir=.
20969
20970 case "$ac_dir" in
20971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 *)
20973 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20974 # A ".." for each directory in $ac_dir_suffix.
20975 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20976 case $ac_top_builddir_sub in
20977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20979 esac ;;
20980 esac
20981 ac_abs_top_builddir=$ac_pwd
20982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983 # for backward compatibility:
20984 ac_top_builddir=$ac_top_build_prefix
20985
20986 case $srcdir in
20987 .) # We are building in place.
20988 ac_srcdir=.
20989 ac_top_srcdir=$ac_top_builddir_sub
20990 ac_abs_top_srcdir=$ac_pwd ;;
20991 [\\/]* | ?:[\\/]* ) # Absolute name.
20992 ac_srcdir=$srcdir$ac_dir_suffix;
20993 ac_top_srcdir=$srcdir
20994 ac_abs_top_srcdir=$srcdir ;;
20995 *) # Relative name.
20996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997 ac_top_srcdir=$ac_top_build_prefix$srcdir
20998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999 esac
21000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001
21002
21003 case $ac_mode in
21004 :F)
21005 #
21006 # CONFIG_FILE
21007 #
21008
21009 case $INSTALL in
21010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21012 esac
21013 _ACEOF
21014
21015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21016 # If the template does not know about datarootdir, expand it.
21017 # FIXME: This hack should be removed a few years after 2.60.
21018 ac_datarootdir_hack=; ac_datarootdir_seen=
21019 ac_sed_dataroot='
21020 /datarootdir/ {
21021 p
21022 q
21023 }
21024 /@datadir@/p
21025 /@docdir@/p
21026 /@infodir@/p
21027 /@localedir@/p
21028 /@mandir@/p'
21029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21030 *datarootdir*) ac_datarootdir_seen=yes;;
21031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21033 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21034 _ACEOF
21035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21036 ac_datarootdir_hack='
21037 s&@datadir@&$datadir&g
21038 s&@docdir@&$docdir&g
21039 s&@infodir@&$infodir&g
21040 s&@localedir@&$localedir&g
21041 s&@mandir@&$mandir&g
21042 s&\\\${datarootdir}&$datarootdir&g' ;;
21043 esac
21044 _ACEOF
21045
21046 # Neutralize VPATH when '$srcdir' = '.'.
21047 # Shell code in configure.ac might set extrasub.
21048 # FIXME: do we really want to maintain this feature?
21049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21050 ac_sed_extra="$ac_vpsub
21051 $extrasub
21052 _ACEOF
21053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054 :t
21055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21056 s|@configure_input@|$ac_sed_conf_input|;t t
21057 s&@top_builddir@&$ac_top_builddir_sub&;t t
21058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21059 s&@srcdir@&$ac_srcdir&;t t
21060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21061 s&@top_srcdir@&$ac_top_srcdir&;t t
21062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21063 s&@builddir@&$ac_builddir&;t t
21064 s&@abs_builddir@&$ac_abs_builddir&;t t
21065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21066 s&@INSTALL@&$ac_INSTALL&;t t
21067 $ac_datarootdir_hack
21068 "
21069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21070 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21071
21072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21073 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21075 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21077 which seems to be undefined. Please make sure it is defined" >&5
21078 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21079 which seems to be undefined. Please make sure it is defined" >&2;}
21080
21081 rm -f "$ac_tmp/stdin"
21082 case $ac_file in
21083 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21084 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21085 esac \
21086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21087 ;;
21088 :H)
21089 #
21090 # CONFIG_HEADER
21091 #
21092 if test x"$ac_file" != x-; then
21093 {
21094 printf "%s\n" "/* $configure_input */" >&1 \
21095 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21096 } >"$ac_tmp/config.h" \
21097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21098 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21100 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21101 else
21102 rm -f "$ac_file"
21103 mv "$ac_tmp/config.h" "$ac_file" \
21104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21105 fi
21106 else
21107 printf "%s\n" "/* $configure_input */" >&1 \
21108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21109 || as_fn_error $? "could not create -" "$LINENO" 5
21110 fi
21111 ;;
21112
21113 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21114 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21115 ;;
21116 esac
21117
21118
21119 case $ac_file$ac_mode in
21120 "item-summary":C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${brltty_summary_lines}" >&5
21121 printf "%s\n" "$as_me: ${brltty_summary_lines}" >&6;} ;;
21122 "build-configure":C) "${srcdir}/mk4build"
21123 ;;
21124
21125 esac
21126 done # for ac_tag
21127
21128
21129 as_fn_exit 0
21130 _ACEOF
21131 ac_clean_files=$ac_clean_files_save
21132
21133 test $ac_write_fail = 0 ||
21134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21135
21136
21137 # configure is writing to config.log, and then calls config.status.
21138 # config.status does its own redirection, appending to config.log.
21139 # Unfortunately, on DOS this fails, as config.log is still kept open
21140 # by configure, so config.status won't be able to write to it; its
21141 # output is simply discarded. So we exec the FD to /dev/null,
21142 # effectively closing config.log, so it can be properly (re)opened and
21143 # appended to by config.status. When coming back to configure, we
21144 # need to make the FD available again.
21145 if test "$no_create" != yes; then
21146 ac_cs_success=:
21147 ac_config_status_args=
21148 test "$silent" = yes &&
21149 ac_config_status_args="$ac_config_status_args --quiet"
21150 exec 5>/dev/null
21151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21152 exec 5>>config.log
21153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154 # would make configure fail if this is the last instruction.
21155 $ac_cs_success || as_fn_exit 1
21156 fi
21157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21160 fi
21161
21162