Debian Codegraph @

configure

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