Debian Codegraph @

pgenlibr/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for pgenlibr 0.3.5.
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,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script 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='pgenlibr'
612 PACKAGE_TARNAME='pgenlibr'
613 PACKAGE_VERSION='0.3.5'
614 PACKAGE_STRING='pgenlibr 0.3.5'
615 PACKAGE_BUGREPORT='[email protected]'
616 PACKAGE_URL=''
617
618 ac_subst_vars='LTLIBOBJS
619 LIBOBJS
620 SIMDE_INCLUDE_PATH
621 SIMDE_COMPILE_FLAG
622 LIBDEFLATE_CLEAN
623 LIBDEFLATE_SHLIB
624 LIBDEFLATE_LIBS
625 LIBDEFLATE_INCLUDE_PATH
626 LIBDEFLATE_COMPILE_FLAG
627 ZSTD_CLEAN
628 ZSTD_SHLIB
629 ZSTD_LIBS
630 ZSTD_INCLUDE_PATH
631 ZSTD_COMPILE_FLAG
632 OBJEXT
633 EXEEXT
634 ac_ct_CXX
635 CPPFLAGS
636 LDFLAGS
637 CXXFLAGS
638 CXX
639 PKGCONF
640 target_alias
641 host_alias
642 build_alias
643 LIBS
644 ECHO_T
645 ECHO_N
646 ECHO_C
647 DEFS
648 mandir
649 localedir
650 libdir
651 psdir
652 pdfdir
653 dvidir
654 htmldir
655 infodir
656 docdir
657 oldincludedir
658 includedir
659 runstatedir
660 localstatedir
661 sharedstatedir
662 sysconfdir
663 datadir
664 datarootdir
665 libexecdir
666 sbindir
667 bindir
668 program_transform_name
669 prefix
670 exec_prefix
671 PACKAGE_URL
672 PACKAGE_BUGREPORT
673 PACKAGE_STRING
674 PACKAGE_VERSION
675 PACKAGE_TARNAME
676 PACKAGE_NAME
677 PATH_SEPARATOR
678 SHELL'
679 ac_subst_files=''
680 ac_user_opts='
681 enable_option_checking
682 with_zstd_include
683 with_zstd_lib
684 with_libdeflate_include
685 with_libdeflate_lib
686 with_simde_include
687 '
688 ac_precious_vars='build_alias
689 host_alias
690 target_alias
691 CXX
692 CXXFLAGS
693 LDFLAGS
694 LIBS
695 CPPFLAGS
696 CCC'
697
698
699 # Initialize some variables set by options.
700 ac_init_help=
701 ac_init_version=false
702 ac_unrecognized_opts=
703 ac_unrecognized_sep=
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
720
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 runstatedir='${localstatedir}/run'
736 includedir='${prefix}/include'
737 oldincludedir='/usr/include'
738 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
739 infodir='${datarootdir}/info'
740 htmldir='${docdir}'
741 dvidir='${docdir}'
742 pdfdir='${docdir}'
743 psdir='${docdir}'
744 libdir='${exec_prefix}/lib'
745 localedir='${datarootdir}/locale'
746 mandir='${datarootdir}/man'
747
748 ac_prev=
749 ac_dashdash=
750 for ac_option
751 do
752 # If the previous option needs an argument, assign it.
753 if test -n "$ac_prev"; then
754 eval $ac_prev=\$ac_option
755 ac_prev=
756 continue
757 fi
758
759 case $ac_option in
760 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 *=) ac_optarg= ;;
762 *) ac_optarg=yes ;;
763 esac
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error $? "invalid feature name: \`$ac_useropt'"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
809 *"
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
816
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
821
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
826
827 -enable-* | --enable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error $? "invalid feature name: \`$ac_useropt'"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
835 *"
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=\$ac_optarg ;;
842
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
851
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
855
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
862
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
867
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
873
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
880
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
885
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
890
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
897
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
902
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir=$ac_optarg ;;
909
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
914
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
918
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
921 no_create=yes ;;
922
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
926
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
935
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
940
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
947
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
954
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
971
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
976
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
981
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
985
986 -runstatedir | --runstatedir | --runstatedi | --runstated \
987 | --runstate | --runstat | --runsta | --runst | --runs \
988 | --run | --ru | --r)
989 ac_prev=runstatedir ;;
990 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
991 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
992 | --run=* | --ru=* | --r=*)
993 runstatedir=$ac_optarg ;;
994
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996 ac_prev=sbindir ;;
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998 | --sbi=* | --sb=*)
999 sbindir=$ac_optarg ;;
1000
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1004 | --sha | --sh)
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009 | --sha=* | --sh=*)
1010 sharedstatedir=$ac_optarg ;;
1011
1012 -site | --site | --sit)
1013 ac_prev=site ;;
1014 -site=* | --site=* | --sit=*)
1015 site=$ac_optarg ;;
1016
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018 ac_prev=srcdir ;;
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1021
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1028
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1033
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 verbose=yes ;;
1036
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1039
1040 -with-* | --with-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid package name: \`$ac_useropt'"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "with_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval with_$ac_useropt=\$ac_optarg ;;
1055
1056 -without-* | --without-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: \`$ac_useropt'"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval with_$ac_useropt=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information"
1092 ;;
1093
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1100 esac
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error $? "missing argument to $ac_option"
1118 fi
1119
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1122 no) ;;
1123 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1125 esac
1126 fi
1127
1128 # Check all directory arguments for consistency.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir runstatedir
1133 do
1134 eval ac_val=\$$ac_var
1135 # Remove trailing slashes.
1136 case $ac_val in
1137 */ )
1138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\$ac_val;;
1140 esac
1141 # Be sure to have absolute directory names.
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1162 fi
1163 fi
1164
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168 test "$silent" = yes && exec 6>/dev/null
1169
1170
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error $? "working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error $? "pwd does not report name of working directory"
1177
1178
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 printf "%s\n" X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\).*/{
1202 s//\1/
1203 q
1204 }
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1209 fi
1210 else
1211 ac_srcdir_defaulted=no
1212 fi
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1216 fi
1217 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 ac_abs_confdir=`(
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures pgenlibr 0.3.5 to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking ...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1286 --libdir=DIR object code libraries [EPREFIX/lib]
1287 --includedir=DIR C header files [PREFIX/include]
1288 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1289 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1290 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1291 --infodir=DIR info documentation [DATAROOTDIR/info]
1292 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1293 --mandir=DIR man documentation [DATAROOTDIR/man]
1294 --docdir=DIR documentation root [DATAROOTDIR/doc/pgenlibr]
1295 --htmldir=DIR html documentation [DOCDIR]
1296 --dvidir=DIR dvi documentation [DOCDIR]
1297 --pdfdir=DIR pdf documentation [DOCDIR]
1298 --psdir=DIR ps documentation [DOCDIR]
1299 _ACEOF
1300
1301 cat <<\_ACEOF
1302 _ACEOF
1303 fi
1304
1305 if test -n "$ac_init_help"; then
1306 case $ac_init_help in
1307 short | recursive ) echo "Configuration of pgenlibr 0.3.5:";;
1308 esac
1309 cat <<\_ACEOF
1310
1311 Optional Packages:
1312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314 --with-zstd-include=INCLUDE_PATH
1315 the location of zstd header files
1316 --with-zstd-lib=LIB_PATH
1317 the location of zstd library files
1318 --with-libdeflate-include=INCLUDE_PATH
1319 the location of libdeflate header files
1320 --with-libdeflate-lib=LIB_PATH
1321 the location of libdeflate library files
1322 --with-simde-include=INCLUDE_PATH
1323 the location of simde header files
1324
1325 Some influential environment variables:
1326 CXX C++ compiler command
1327 CXXFLAGS C++ compiler flags
1328 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1329 nonstandard directory <lib dir>
1330 LIBS libraries to pass to the linker, e.g. -l<library>
1331 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1332 you have headers in a nonstandard directory <include dir>
1333
1334 Use these variables to override the choices made by `configure' or to help
1335 it to find libraries and programs with nonstandard names/locations.
1336
1337 Report bugs to <[email protected]>.
1338 _ACEOF
1339 ac_status=$?
1340 fi
1341
1342 if test "$ac_init_help" = "recursive"; then
1343 # If there are subdirs, report their specific --help.
1344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345 test -d "$ac_dir" ||
1346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347 continue
1348 ac_builddir=.
1349
1350 case "$ac_dir" in
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *)
1353 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360 esac
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1365
1366 case $srcdir in
1367 .) # We are building in place.
1368 ac_srcdir=.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 esac
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for configure.gnu first; this name is used for a wrapper for
1384 # Metaconfig's "Configure" on case-insensitive file systems.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 pgenlibr configure 0.3.5
1402 generated by GNU Autoconf 2.71
1403
1404 Copyright (C) 2021 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1407 _ACEOF
1408 exit
1409 fi
1410
1411 ## ------------------------ ##
1412 ## Autoconf initialization. ##
1413 ## ------------------------ ##
1414
1415 # ac_fn_cxx_try_compile LINENO
1416 # ----------------------------
1417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_cxx_try_compile ()
1419 {
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext conftest.beam
1422 if { { ac_try="$ac_compile"
1423 case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 printf "%s\n" "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1435 fi
1436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_cxx_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext
1441 then :
1442 ac_retval=0
1443 else $as_nop
1444 printf "%s\n" "$as_me: failed program was:" >&5
1445 sed 's/^/| /' conftest.$ac_ext >&5
1446
1447 ac_retval=1
1448 fi
1449 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1450 as_fn_set_status $ac_retval
1451
1452 } # ac_fn_cxx_try_compile
1453 ac_configure_args_raw=
1454 for ac_arg
1455 do
1456 case $ac_arg in
1457 *\'*)
1458 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 esac
1460 as_fn_append ac_configure_args_raw " '$ac_arg'"
1461 done
1462
1463 case $ac_configure_args_raw in
1464 *$as_nl*)
1465 ac_safe_unquote= ;;
1466 *)
1467 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1468 ac_unsafe_a="$ac_unsafe_z#~"
1469 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1470 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1471 esac
1472
1473 cat >config.log <<_ACEOF
1474 This file contains any messages produced by compilers while
1475 running configure, to aid debugging if configure makes a mistake.
1476
1477 It was created by pgenlibr $as_me 0.3.5, which was
1478 generated by GNU Autoconf 2.71. Invocation command line was
1479
1480 $ $0$ac_configure_args_raw
1481
1482 _ACEOF
1483 exec 5>>config.log
1484 {
1485 cat <<_ASUNAME
1486 ## --------- ##
1487 ## Platform. ##
1488 ## --------- ##
1489
1490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495
1496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498
1499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506
1507 _ASUNAME
1508
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512 IFS=$as_save_IFS
1513 case $as_dir in #(((
1514 '') as_dir=./ ;;
1515 */) ;;
1516 *) as_dir=$as_dir/ ;;
1517 esac
1518 printf "%s\n" "PATH: $as_dir"
1519 done
1520 IFS=$as_save_IFS
1521
1522 } >&5
1523
1524 cat >&5 <<_ACEOF
1525
1526
1527 ## ----------- ##
1528 ## Core tests. ##
1529 ## ----------- ##
1530
1531 _ACEOF
1532
1533
1534 # Keep a trace of the command line.
1535 # Strip out --no-create and --no-recursion so they do not pile up.
1536 # Strip out --silent because we don't want to record it for future runs.
1537 # Also quote any args containing shell meta-characters.
1538 # Make two passes to allow for proper duplicate-argument suppression.
1539 ac_configure_args=
1540 ac_configure_args0=
1541 ac_configure_args1=
1542 ac_must_keep_next=false
1543 for ac_pass in 1 2
1544 do
1545 for ac_arg
1546 do
1547 case $ac_arg in
1548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550 | -silent | --silent | --silen | --sile | --sil)
1551 continue ;;
1552 *\'*)
1553 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554 esac
1555 case $ac_pass in
1556 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1557 2)
1558 as_fn_append ac_configure_args1 " '$ac_arg'"
1559 if test $ac_must_keep_next = true; then
1560 ac_must_keep_next=false # Got value, back to normal.
1561 else
1562 case $ac_arg in
1563 *=* | --config-cache | -C | -disable-* | --disable-* \
1564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566 | -with-* | --with-* | -without-* | --without-* | --x)
1567 case "$ac_configure_args0 " in
1568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 esac
1570 ;;
1571 -* ) ac_must_keep_next=true ;;
1572 esac
1573 fi
1574 as_fn_append ac_configure_args " '$ac_arg'"
1575 ;;
1576 esac
1577 done
1578 done
1579 { ac_configure_args0=; unset ac_configure_args0;}
1580 { ac_configure_args1=; unset ac_configure_args1;}
1581
1582 # When interrupted or exit'd, cleanup temporary files, and complete
1583 # config.log. We remove comments because anyway the quotes in there
1584 # would cause problems or look ugly.
1585 # WARNING: Use '\'' to represent an apostrophe within the trap.
1586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587 trap 'exit_status=$?
1588 # Sanitize IFS.
1589 IFS=" "" $as_nl"
1590 # Save into config.log some information that might help in debugging.
1591 {
1592 echo
1593
1594 printf "%s\n" "## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##"
1597 echo
1598 # The following way of writing the cache mishandles newlines in values,
1599 (
1600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in #(
1603 *${as_nl}*)
1604 case $ac_var in #(
1605 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1606 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1607 esac
1608 case $ac_var in #(
1609 _ | IFS | as_nl) ;; #(
1610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1611 *) { eval $ac_var=; unset $ac_var;} ;;
1612 esac ;;
1613 esac
1614 done
1615 (set) 2>&1 |
1616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1618 sed -n \
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1621 ;; #(
1622 *)
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1624 ;;
1625 esac |
1626 sort
1627 )
1628 echo
1629
1630 printf "%s\n" "## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##"
1633 echo
1634 for ac_var in $ac_subst_vars
1635 do
1636 eval ac_val=\$$ac_var
1637 case $ac_val in
1638 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 esac
1640 printf "%s\n" "$ac_var='\''$ac_val'\''"
1641 done | sort
1642 echo
1643
1644 if test -n "$ac_subst_files"; then
1645 printf "%s\n" "## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##"
1648 echo
1649 for ac_var in $ac_subst_files
1650 do
1651 eval ac_val=\$$ac_var
1652 case $ac_val in
1653 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654 esac
1655 printf "%s\n" "$ac_var='\''$ac_val'\''"
1656 done | sort
1657 echo
1658 fi
1659
1660 if test -s confdefs.h; then
1661 printf "%s\n" "## ----------- ##
1662 ## confdefs.h. ##
1663 ## ----------- ##"
1664 echo
1665 cat confdefs.h
1666 echo
1667 fi
1668 test "$ac_signal" != 0 &&
1669 printf "%s\n" "$as_me: caught signal $ac_signal"
1670 printf "%s\n" "$as_me: exit $exit_status"
1671 } >&5
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674 exit $exit_status
1675 ' 0
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1678 done
1679 ac_signal=0
1680
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1683
1684 printf "%s\n" "/* confdefs.h */" > confdefs.h
1685
1686 # Predefined preprocessor variables.
1687
1688 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1689
1690 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1691
1692 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1693
1694 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1695
1696 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1697
1698 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1699
1700
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer an explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 ac_site_files="$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1707 else
1708 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1709 fi
1710
1711 for ac_site_file in $ac_site_files
1712 do
1713 case $ac_site_file in #(
1714 */*) :
1715 ;; #(
1716 *) :
1717 ac_site_file=./$ac_site_file ;;
1718 esac
1719 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1721 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1722 sed 's/^/| /' "$ac_site_file" >&5
1723 . "$ac_site_file" \
1724 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1726 as_fn_error $? "failed to load site script $ac_site_file
1727 See \`config.log' for more details" "$LINENO" 5; }
1728 fi
1729 done
1730
1731 if test -r "$cache_file"; then
1732 # Some versions of bash will fail to source /dev/null (special files
1733 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1734 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1736 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1737 case $cache_file in
1738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739 *) . "./$cache_file";;
1740 esac
1741 fi
1742 else
1743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1744 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1745 >$cache_file
1746 fi
1747
1748 # Test code for whether the C++ compiler supports C++98 (global declarations)
1749 ac_cxx_conftest_cxx98_globals='
1750 // Does the compiler advertise C++98 conformance?
1751 #if !defined __cplusplus || __cplusplus < 199711L
1752 # error "Compiler does not advertise C++98 conformance"
1753 #endif
1754
1755 // These inclusions are to reject old compilers that
1756 // lack the unsuffixed header files.
1757 #include <cstdlib>
1758 #include <exception>
1759
1760 // <cassert> and <cstring> are *not* freestanding headers in C++98.
1761 extern void assert (int);
1762 namespace std {
1763 extern int strcmp (const char *, const char *);
1764 }
1765
1766 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
1767 using std::exception;
1768 using std::strcmp;
1769
1770 namespace {
1771
1772 void test_exception_syntax()
1773 {
1774 try {
1775 throw "test";
1776 } catch (const char *s) {
1777 // Extra parentheses suppress a warning when building autoconf itself,
1778 // due to lint rules shared with more typical C programs.
1779 assert (!(strcmp) (s, "test"));
1780 }
1781 }
1782
1783 template <typename T> struct test_template
1784 {
1785 T const val;
1786 explicit test_template(T t) : val(t) {}
1787 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
1788 };
1789
1790 } // anonymous namespace
1791 '
1792
1793 # Test code for whether the C++ compiler supports C++98 (body of main)
1794 ac_cxx_conftest_cxx98_main='
1795 assert (argc);
1796 assert (! argv[0]);
1797 {
1798 test_exception_syntax ();
1799 test_template<double> tt (2.0);
1800 assert (tt.add (4) == 6.0);
1801 assert (true && !false);
1802 }
1803 '
1804
1805 # Test code for whether the C++ compiler supports C++11 (global declarations)
1806 ac_cxx_conftest_cxx11_globals='
1807 // Does the compiler advertise C++ 2011 conformance?
1808 #if !defined __cplusplus || __cplusplus < 201103L
1809 # error "Compiler does not advertise C++11 conformance"
1810 #endif
1811
1812 namespace cxx11test
1813 {
1814 constexpr int get_val() { return 20; }
1815
1816 struct testinit
1817 {
1818 int i;
1819 double d;
1820 };
1821
1822 class delegate
1823 {
1824 public:
1825 delegate(int n) : n(n) {}
1826 delegate(): delegate(2354) {}
1827
1828 virtual int getval() { return this->n; };
1829 protected:
1830 int n;
1831 };
1832
1833 class overridden : public delegate
1834 {
1835 public:
1836 overridden(int n): delegate(n) {}
1837 virtual int getval() override final { return this->n * 2; }
1838 };
1839
1840 class nocopy
1841 {
1842 public:
1843 nocopy(int i): i(i) {}
1844 nocopy() = default;
1845 nocopy(const nocopy&) = delete;
1846 nocopy & operator=(const nocopy&) = delete;
1847 private:
1848 int i;
1849 };
1850
1851 // for testing lambda expressions
1852 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
1853 {
1854 return f(v);
1855 }
1856
1857 // for testing variadic templates and trailing return types
1858 template <typename V> auto sum(V first) -> V
1859 {
1860 return first;
1861 }
1862 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
1863 {
1864 return first + sum(rest...);
1865 }
1866 }
1867 '
1868
1869 # Test code for whether the C++ compiler supports C++11 (body of main)
1870 ac_cxx_conftest_cxx11_main='
1871 {
1872 // Test auto and decltype
1873 auto a1 = 6538;
1874 auto a2 = 48573953.4;
1875 auto a3 = "String literal";
1876
1877 int total = 0;
1878 for (auto i = a3; *i; ++i) { total += *i; }
1879
1880 decltype(a2) a4 = 34895.034;
1881 }
1882 {
1883 // Test constexpr
1884 short sa[cxx11test::get_val()] = { 0 };
1885 }
1886 {
1887 // Test initializer lists
1888 cxx11test::testinit il = { 4323, 435234.23544 };
1889 }
1890 {
1891 // Test range-based for
1892 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
1893 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
1894 for (auto &x : array) { x += 23; }
1895 }
1896 {
1897 // Test lambda expressions
1898 using cxx11test::eval;
1899 assert (eval ([](int x) { return x*2; }, 21) == 42);
1900 double d = 2.0;
1901 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
1902 assert (d == 5.0);
1903 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
1904 assert (d == 5.0);
1905 }
1906 {
1907 // Test use of variadic templates
1908 using cxx11test::sum;
1909 auto a = sum(1);
1910 auto b = sum(1, 2);
1911 auto c = sum(1.0, 2.0, 3.0);
1912 }
1913 {
1914 // Test constructor delegation
1915 cxx11test::delegate d1;
1916 cxx11test::delegate d2();
1917 cxx11test::delegate d3(45);
1918 }
1919 {
1920 // Test override and final
1921 cxx11test::overridden o1(55464);
1922 }
1923 {
1924 // Test nullptr
1925 char *c = nullptr;
1926 }
1927 {
1928 // Test template brackets
1929 test_template<::test_template<int>> v(test_template<int>(12));
1930 }
1931 {
1932 // Unicode literals
1933 char const *utf8 = u8"UTF-8 string \u2500";
1934 char16_t const *utf16 = u"UTF-8 string \u2500";
1935 char32_t const *utf32 = U"UTF-32 string \u2500";
1936 }
1937 '
1938
1939 # Test code for whether the C compiler supports C++11 (complete).
1940 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
1941 ${ac_cxx_conftest_cxx11_globals}
1942
1943 int
1944 main (int argc, char **argv)
1945 {
1946 int ok = 0;
1947 ${ac_cxx_conftest_cxx98_main}
1948 ${ac_cxx_conftest_cxx11_main}
1949 return ok;
1950 }
1951 "
1952
1953 # Test code for whether the C compiler supports C++98 (complete).
1954 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
1955 int
1956 main (int argc, char **argv)
1957 {
1958 int ok = 0;
1959 ${ac_cxx_conftest_cxx98_main}
1960 return ok;
1961 }
1962 "
1963
1964 # Check that the precious variables saved in the cache have kept the same
1965 # value.
1966 ac_cache_corrupted=false
1967 for ac_var in $ac_precious_vars; do
1968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969 eval ac_new_set=\$ac_env_${ac_var}_set
1970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971 eval ac_new_val=\$ac_env_${ac_var}_value
1972 case $ac_old_set,$ac_new_set in
1973 set,)
1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1976 ac_cache_corrupted=: ;;
1977 ,set)
1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1979 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,);;
1982 *)
1983 if test "x$ac_old_val" != "x$ac_new_val"; then
1984 # differences in whitespace do not lead to failure.
1985 ac_old_val_w=`echo x $ac_old_val`
1986 ac_new_val_w=`echo x $ac_new_val`
1987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1989 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 ac_cache_corrupted=:
1991 else
1992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1993 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1994 eval $ac_var=\$ac_old_val
1995 fi
1996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1997 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1999 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2011 esac
2012 fi
2013 done
2014 if $ac_cache_corrupted; then
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2018 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2019 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2020 and start over" "$LINENO" 5
2021 fi
2022 ## -------------------- ##
2023 ## Main body of script. ##
2024 ## -------------------- ##
2025
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033 # Extract the first word of "pkg-config", so it can be a program name with args.
2034 set dummy pkg-config; ac_word=$2
2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2036 printf %s "checking for $ac_word... " >&6; }
2037 if test ${ac_cv_path_PKGCONF+y}
2038 then :
2039 printf %s "(cached) " >&6
2040 else $as_nop
2041 case $PKGCONF in
2042 [\\/]* | ?:[\\/]*)
2043 ac_cv_path_PKGCONF="$PKGCONF" # Let the user override the test with a path.
2044 ;;
2045 *)
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 as_dummy="$PATH:/usr/local/bin:ext/bin:ext:/sw/bin:/opt/bin:/opt/local/bin"
2048 for as_dir in $as_dummy
2049 do
2050 IFS=$as_save_IFS
2051 case $as_dir in #(((
2052 '') as_dir=./ ;;
2053 */) ;;
2054 *) as_dir=$as_dir/ ;;
2055 esac
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2058 ac_cv_path_PKGCONF="$as_dir$ac_word$ac_exec_ext"
2059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064 IFS=$as_save_IFS
2065
2066 ;;
2067 esac
2068 fi
2069 PKGCONF=$ac_cv_path_PKGCONF
2070 if test -n "$PKGCONF"; then
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONF" >&5
2072 printf "%s\n" "$PKGCONF" >&6; }
2073 else
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2075 printf "%s\n" "no" >&6; }
2076 fi
2077
2078
2079
2080 # Find the compiler and compiler flags to use for fallback version checks
2081 ac_ext=cpp
2082 ac_cpp='$CXXCPP $CPPFLAGS'
2083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2086
2087 : ${R_HOME=`R RHOME`}
2088 PATH_TO_CPP_COMPILER=`"${R_HOME}/bin/R" CMD config CXX`
2089
2090
2091
2092
2093
2094
2095 ac_ext=cpp
2096 ac_cpp='$CXXCPP $CPPFLAGS'
2097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2100 if test -z "$CXX"; then
2101 if test -n "$CCC"; then
2102 CXX=$CCC
2103 else
2104 if test -n "$ac_tool_prefix"; then
2105 for ac_prog in $PATH_TO_CPP_COMPILER
2106 do
2107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2110 printf %s "checking for $ac_word... " >&6; }
2111 if test ${ac_cv_prog_CXX+y}
2112 then :
2113 printf %s "(cached) " >&6
2114 else $as_nop
2115 if test -n "$CXX"; then
2116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121 IFS=$as_save_IFS
2122 case $as_dir in #(((
2123 '') as_dir=./ ;;
2124 */) ;;
2125 *) as_dir=$as_dir/ ;;
2126 esac
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2131 break 2
2132 fi
2133 done
2134 done
2135 IFS=$as_save_IFS
2136
2137 fi
2138 fi
2139 CXX=$ac_cv_prog_CXX
2140 if test -n "$CXX"; then
2141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2142 printf "%s\n" "$CXX" >&6; }
2143 else
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2145 printf "%s\n" "no" >&6; }
2146 fi
2147
2148
2149 test -n "$CXX" && break
2150 done
2151 fi
2152 if test -z "$CXX"; then
2153 ac_ct_CXX=$CXX
2154 for ac_prog in $PATH_TO_CPP_COMPILER
2155 do
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2159 printf %s "checking for $ac_word... " >&6; }
2160 if test ${ac_cv_prog_ac_ct_CXX+y}
2161 then :
2162 printf %s "(cached) " >&6
2163 else $as_nop
2164 if test -n "$ac_ct_CXX"; then
2165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170 IFS=$as_save_IFS
2171 case $as_dir in #(((
2172 '') as_dir=./ ;;
2173 */) ;;
2174 *) as_dir=$as_dir/ ;;
2175 esac
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_ac_ct_CXX="$ac_prog"
2179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2180 break 2
2181 fi
2182 done
2183 done
2184 IFS=$as_save_IFS
2185
2186 fi
2187 fi
2188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2189 if test -n "$ac_ct_CXX"; then
2190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2191 printf "%s\n" "$ac_ct_CXX" >&6; }
2192 else
2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194 printf "%s\n" "no" >&6; }
2195 fi
2196
2197
2198 test -n "$ac_ct_CXX" && break
2199 done
2200
2201 if test "x$ac_ct_CXX" = x; then
2202 CXX="g++"
2203 else
2204 case $cross_compiling:$ac_tool_warned in
2205 yes:)
2206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2207 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2208 ac_tool_warned=yes ;;
2209 esac
2210 CXX=$ac_ct_CXX
2211 fi
2212 fi
2213
2214 fi
2215 fi
2216 # Provide some information about the compiler.
2217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2218 set X $ac_compile
2219 ac_compiler=$2
2220 for ac_option in --version -v -V -qversion; do
2221 { { ac_try="$ac_compiler $ac_option >&5"
2222 case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225 esac
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 printf "%s\n" "$ac_try_echo"; } >&5
2228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2229 ac_status=$?
2230 if test -s conftest.err; then
2231 sed '10a\
2232 ... rest of stderr output deleted ...
2233 10q' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 fi
2236 rm -f conftest.er1 conftest.err
2237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; }
2239 done
2240
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243
2244 int
2245 main (void)
2246 {
2247
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 ac_clean_files_save=$ac_clean_files
2253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2254 # Try to create an executable without -o first, disregard a.out.
2255 # It will help us diagnose broken compilers, and finding out an intuition
2256 # of exeext.
2257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2258 printf %s "checking whether the C++ compiler works... " >&6; }
2259 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2260
2261 # The possible output files:
2262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2263
2264 ac_rmfiles=
2265 for ac_file in $ac_files
2266 do
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2270 esac
2271 done
2272 rm -f $ac_rmfiles
2273
2274 if { { ac_try="$ac_link_default"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 printf "%s\n" "$ac_try_echo"; } >&5
2281 (eval "$ac_link_default") 2>&5
2282 ac_status=$?
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }
2285 then :
2286 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2288 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2289 # so that the user can short-circuit this test for compilers unknown to
2290 # Autoconf.
2291 for ac_file in $ac_files ''
2292 do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2296 ;;
2297 [ab].out )
2298 # We found the default executable, but exeext='' is most
2299 # certainly right.
2300 break;;
2301 *.* )
2302 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2303 then :; else
2304 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305 fi
2306 # We set ac_cv_exeext here because the later test for it is not
2307 # safe: cross compilers may not add the suffix if given an `-o'
2308 # argument, so we may need to know it at that point already.
2309 # Even if this section looks crufty: it has the advantage of
2310 # actually working.
2311 break;;
2312 * )
2313 break;;
2314 esac
2315 done
2316 test "$ac_cv_exeext" = no && ac_cv_exeext=
2317
2318 else $as_nop
2319 ac_file=''
2320 fi
2321 if test -z "$ac_file"
2322 then :
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 printf "%s\n" "no" >&6; }
2325 printf "%s\n" "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2330 as_fn_error 77 "C++ compiler cannot create executables
2331 See \`config.log' for more details" "$LINENO" 5; }
2332 else $as_nop
2333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2334 printf "%s\n" "yes" >&6; }
2335 fi
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2337 printf %s "checking for C++ compiler default output file name... " >&6; }
2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2339 printf "%s\n" "$ac_file" >&6; }
2340 ac_exeext=$ac_cv_exeext
2341
2342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2343 ac_clean_files=$ac_clean_files_save
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2345 printf %s "checking for suffix of executables... " >&6; }
2346 if { { ac_try="$ac_link"
2347 case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350 esac
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 printf "%s\n" "$ac_try_echo"; } >&5
2353 (eval "$ac_link") 2>&5
2354 ac_status=$?
2355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; }
2357 then :
2358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2360 # work properly (i.e., refer to `conftest.exe'), while it won't with
2361 # `rm'.
2362 for ac_file in conftest.exe conftest conftest.*; do
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367 break;;
2368 * ) break;;
2369 esac
2370 done
2371 else $as_nop
2372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2375 See \`config.log' for more details" "$LINENO" 5; }
2376 fi
2377 rm -f conftest conftest$ac_cv_exeext
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2379 printf "%s\n" "$ac_cv_exeext" >&6; }
2380
2381 rm -f conftest.$ac_ext
2382 EXEEXT=$ac_cv_exeext
2383 ac_exeext=$EXEEXT
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 #include <stdio.h>
2387 int
2388 main (void)
2389 {
2390 FILE *f = fopen ("conftest.out", "w");
2391 return ferror (f) || fclose (f) != 0;
2392
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 ac_clean_files="$ac_clean_files conftest.out"
2398 # Check that the compiler produces executables we can run. If not, either
2399 # the compiler is broken, or we cross compile.
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2401 printf %s "checking whether we are cross compiling... " >&6; }
2402 if test "$cross_compiling" != yes; then
2403 { { ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 printf "%s\n" "$ac_try_echo"; } >&5
2410 (eval "$ac_link") 2>&5
2411 ac_status=$?
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; }
2414 if { ac_try='./conftest$ac_cv_exeext'
2415 { { case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418 esac
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 printf "%s\n" "$ac_try_echo"; } >&5
2421 (eval "$ac_try") 2>&5
2422 ac_status=$?
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424 test $ac_status = 0; }; }; then
2425 cross_compiling=no
2426 else
2427 if test "$cross_compiling" = maybe; then
2428 cross_compiling=yes
2429 else
2430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error 77 "cannot run C++ compiled programs.
2433 If you meant to cross compile, use \`--host'.
2434 See \`config.log' for more details" "$LINENO" 5; }
2435 fi
2436 fi
2437 fi
2438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2439 printf "%s\n" "$cross_compiling" >&6; }
2440
2441 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2442 ac_clean_files=$ac_clean_files_save
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2444 printf %s "checking for suffix of object files... " >&6; }
2445 if test ${ac_cv_objext+y}
2446 then :
2447 printf %s "(cached) " >&6
2448 else $as_nop
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451
2452 int
2453 main (void)
2454 {
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { { ac_try="$ac_compile"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2467 printf "%s\n" "$ac_try_echo"; } >&5
2468 (eval "$ac_compile") 2>&5
2469 ac_status=$?
2470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; }
2472 then :
2473 for ac_file in conftest.o conftest.obj conftest.*; do
2474 test -f "$ac_file" || continue;
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478 break;;
2479 esac
2480 done
2481 else $as_nop
2482 printf "%s\n" "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2487 as_fn_error $? "cannot compute suffix of object files: cannot compile
2488 See \`config.log' for more details" "$LINENO" 5; }
2489 fi
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 fi
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2493 printf "%s\n" "$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2495 ac_objext=$OBJEXT
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
2497 printf %s "checking whether the compiler supports GNU C++... " >&6; }
2498 if test ${ac_cv_cxx_compiler_gnu+y}
2499 then :
2500 printf %s "(cached) " >&6
2501 else $as_nop
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2504
2505 int
2506 main (void)
2507 {
2508 #ifndef __GNUC__
2509 choke me
2510 #endif
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"
2517 then :
2518 ac_compiler_gnu=yes
2519 else $as_nop
2520 ac_compiler_gnu=no
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2523 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2524
2525 fi
2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2527 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
2528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2529
2530 if test $ac_compiler_gnu = yes; then
2531 GXX=yes
2532 else
2533 GXX=
2534 fi
2535 ac_test_CXXFLAGS=${CXXFLAGS+y}
2536 ac_save_CXXFLAGS=$CXXFLAGS
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2538 printf %s "checking whether $CXX accepts -g... " >&6; }
2539 if test ${ac_cv_prog_cxx_g+y}
2540 then :
2541 printf %s "(cached) " >&6
2542 else $as_nop
2543 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2544 ac_cxx_werror_flag=yes
2545 ac_cv_prog_cxx_g=no
2546 CXXFLAGS="-g"
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549
2550 int
2551 main (void)
2552 {
2553
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_cxx_try_compile "$LINENO"
2559 then :
2560 ac_cv_prog_cxx_g=yes
2561 else $as_nop
2562 CXXFLAGS=""
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565
2566 int
2567 main (void)
2568 {
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_cxx_try_compile "$LINENO"
2575 then :
2576
2577 else $as_nop
2578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2579 CXXFLAGS="-g"
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582
2583 int
2584 main (void)
2585 {
2586
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_cxx_try_compile "$LINENO"
2592 then :
2593 ac_cv_prog_cxx_g=yes
2594 fi
2595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2601 fi
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2603 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
2604 if test $ac_test_CXXFLAGS; then
2605 CXXFLAGS=$ac_save_CXXFLAGS
2606 elif test $ac_cv_prog_cxx_g = yes; then
2607 if test "$GXX" = yes; then
2608 CXXFLAGS="-g -O2"
2609 else
2610 CXXFLAGS="-g"
2611 fi
2612 else
2613 if test "$GXX" = yes; then
2614 CXXFLAGS="-O2"
2615 else
2616 CXXFLAGS=
2617 fi
2618 fi
2619 ac_prog_cxx_stdcxx=no
2620 if test x$ac_prog_cxx_stdcxx = xno
2621 then :
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
2623 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
2624 if test ${ac_cv_prog_cxx_11+y}
2625 then :
2626 printf %s "(cached) " >&6
2627 else $as_nop
2628 ac_cv_prog_cxx_11=no
2629 ac_save_CXX=$CXX
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2632 $ac_cxx_conftest_cxx11_program
2633 _ACEOF
2634 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
2635 do
2636 CXX="$ac_save_CXX $ac_arg"
2637 if ac_fn_cxx_try_compile "$LINENO"
2638 then :
2639 ac_cv_prog_cxx_cxx11=$ac_arg
2640 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.beam
2642 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
2643 done
2644 rm -f conftest.$ac_ext
2645 CXX=$ac_save_CXX
2646 fi
2647
2648 if test "x$ac_cv_prog_cxx_cxx11" = xno
2649 then :
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2651 printf "%s\n" "unsupported" >&6; }
2652 else $as_nop
2653 if test "x$ac_cv_prog_cxx_cxx11" = x
2654 then :
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2656 printf "%s\n" "none needed" >&6; }
2657 else $as_nop
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
2659 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
2660 CXX="$CXX $ac_cv_prog_cxx_cxx11"
2661 fi
2662 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
2663 ac_prog_cxx_stdcxx=cxx11
2664 fi
2665 fi
2666 if test x$ac_prog_cxx_stdcxx = xno
2667 then :
2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
2669 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
2670 if test ${ac_cv_prog_cxx_98+y}
2671 then :
2672 printf %s "(cached) " >&6
2673 else $as_nop
2674 ac_cv_prog_cxx_98=no
2675 ac_save_CXX=$CXX
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2678 $ac_cxx_conftest_cxx98_program
2679 _ACEOF
2680 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
2681 do
2682 CXX="$ac_save_CXX $ac_arg"
2683 if ac_fn_cxx_try_compile "$LINENO"
2684 then :
2685 ac_cv_prog_cxx_cxx98=$ac_arg
2686 fi
2687 rm -f core conftest.err conftest.$ac_objext conftest.beam
2688 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
2689 done
2690 rm -f conftest.$ac_ext
2691 CXX=$ac_save_CXX
2692 fi
2693
2694 if test "x$ac_cv_prog_cxx_cxx98" = xno
2695 then :
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2697 printf "%s\n" "unsupported" >&6; }
2698 else $as_nop
2699 if test "x$ac_cv_prog_cxx_cxx98" = x
2700 then :
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2702 printf "%s\n" "none needed" >&6; }
2703 else $as_nop
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
2705 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
2706 CXX="$CXX $ac_cv_prog_cxx_cxx98"
2707 fi
2708 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
2709 ac_prog_cxx_stdcxx=cxx98
2710 fi
2711 fi
2712
2713 ac_ext=cpp
2714 ac_cpp='$CXXCPP $CPPFLAGS'
2715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2718
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: C++ compiler: $PATH_TO_CPP_COMPILER" >&5
2720 printf "%s\n" "$as_me: C++ compiler: $PATH_TO_CPP_COMPILER" >&6;}
2721 CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2722 CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2723
2724 # Configure args
2725
2726 # Check whether --with-zstd-include was given.
2727 if test ${with_zstd_include+y}
2728 then :
2729 withval=$with_zstd_include; zstd_include_path=$withval
2730 fi
2731
2732
2733
2734 # Check whether --with-zstd-lib was given.
2735 if test ${with_zstd_lib+y}
2736 then :
2737 withval=$with_zstd_lib; zstd_lib_path=$withval
2738 fi
2739
2740
2741
2742 # Check whether --with-libdeflate-include was given.
2743 if test ${with_libdeflate_include+y}
2744 then :
2745 withval=$with_libdeflate_include; libdeflate_include_path=$withval
2746 fi
2747
2748
2749
2750 # Check whether --with-libdeflate-lib was given.
2751 if test ${with_libdeflate_lib+y}
2752 then :
2753 withval=$with_libdeflate_lib; libdeflate_lib_path=$withval
2754 fi
2755
2756
2757
2758 # Check whether --with-simde-include was given.
2759 if test ${with_simde_include+y}
2760 then :
2761 withval=$with_simde_include; simde_include_path=$withval
2762 fi
2763
2764
2765 # pkg-config version value functions
2766 getVersion2()
2767 {
2768 VERSION_STRING=$1
2769 MAJOR=`echo $VERSION_STRING | cut -d. -f1`
2770 MINOR=`echo $VERSION_STRING | cut -d. -f2`
2771 echo $(($MAJOR*1000+$MINOR))
2772 }
2773
2774 getVersion3()
2775 {
2776 VERSION_STRING=$1
2777 MAJOR=`echo $VERSION_STRING | cut -d. -f1`
2778 MINOR=`echo $VERSION_STRING | cut -d. -f2`
2779 RELEASE=`echo $VERSION_STRING | cut -d. -f3`
2780 echo $(($MAJOR*100000+$MINOR*100+$RELEASE))
2781 }
2782
2783 # Compile zstd/libdeflate/simde checks
2784 ZSTD_COMPILE_FLAG=""
2785 ZSTD_INCLUDE_PATH=""
2786 ZSTD_LIBS=""
2787 ZSTD_SHLIB=""
2788 ZSTD_CLEAN=""
2789 COMPILE_ZSTD=""
2790 LIBDEFLATE_COMPILE_FLAG=""
2791 LIBDEFLATE_INCLUDE_PATH=""
2792 LIBDEFLATE_LIBS=""
2793 LIBDEFLATE_SHLIB=""
2794 LIBDEFLATE_CLEAN=""
2795 COMPILE_LIBDEFLATE=""
2796 SIMDE_COMPILE_FLAG=""
2797 SIMDE_INCLUDE_PATH=""
2798 USE_BUNDLED_SIMDE=""
2799
2800 if test "xx$zstd_include_path" != "xx"; then
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using user-defined zstd install paths" >&5
2802 printf "%s\n" "$as_me: Using user-defined zstd install paths" >&6;}
2803 ZSTD_INCLUDE_PATH="-I${zstd_include_path}"
2804 ZSTD_LIBS="-L${zstd_lib_path}"
2805 COMPILE_ZSTD="false"
2806 else
2807 if test "xx$PKGCONF" != "xx"; then
2808 if "${PKGCONF}" --exists libzstd; then
2809 VERSION_STRING=`${PKGCONF} --modversion libzstd`
2810 VER=`getVersion3 ${VERSION_STRING}`
2811 # The bundled 1.5.5 includes a compression bugfix, but the Python/R
2812 # interfaces only use zstd for decompression, so we don't need it.
2813 # The release notes for 1.5.4 mention 32-bit bugfixes, so we'd like to
2814 # require it in 2024.
2815 if test "${VER}" -ge 100502; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zstd ${VERSION_STRING} library detected -- skipping zstd compilation" >&5
2817 printf "%s\n" "$as_me: zstd ${VERSION_STRING} library detected -- skipping zstd compilation" >&6;}
2818 ZSTD_INCLUDE_PATH=`"${PKGCONF}" --cflags-only-I libzstd`
2819 ZSTD_LIBS=`"${PKGCONF}" --libs libzstd`
2820 COMPILE_ZSTD="false"
2821 else
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zstd ${VERSION_STRING} library detected but is too old (<1.5.2) -- compiling from source" >&5
2823 printf "%s\n" "$as_me: zstd ${VERSION_STRING} library detected but is too old (<1.5.2) -- compiling from source" >&6;}
2824 COMPILE_ZSTD="true"
2825 fi
2826 fi
2827 fi
2828 if test "xx$COMPILE_ZSTD" == "xx"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zstd not detected by pkg-config; falling back on system header file check" >&5
2830 printf "%s\n" "$as_me: zstd not detected by pkg-config; falling back on system header file check" >&6;}
2831 zstd_ver_ok=no
2832 ${PATH_TO_CPP_COMPILER} ${CPPFLAGS} ${CXXFLAGS} -E tools/zstd_version.cpp >/dev/null 2>&1 && zstd_ver_ok=yes
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${zstd_ver_ok}" >&5
2834 printf "%s\n" "${zstd_ver_ok}" >&6; }
2835 if test "xx${zstd_ver_ok}" == "xxyes"; then
2836 ZSTD_LIBS="-lzstd"
2837 COMPILE_ZSTD="false"
2838 else
2839 COMPILE_ZSTD="true"
2840 fi
2841 fi
2842 fi
2843
2844 if test xx$COMPILE_ZSTD == "xxtrue"; then
2845 ZSTD_COMPILE_FLAG="-DZSTD_DISABLE_ASM"
2846 ZSTD_INCLUDE_PATH="-Izstd/lib -Izstd/lib/common"
2847 ZSTD_LIBS="${LIBS} -lPGZSTD"
2848 ZSTD_SHLIB="libPGZSTD.a"
2849 ZSTD_CLEAN="\$(LIBZSTD) libPGZSTD.a"
2850 else
2851 ZSTD_COMPILE_FLAG="-DIGNORE_BUNDLED_ZSTD"
2852 fi
2853
2854 if test "xx$libdeflate_include_path" != "xx"; then
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using user-defined libdeflate install paths" >&5
2856 printf "%s\n" "$as_me: Using user-defined libdeflate install paths" >&6;}
2857 LIBDEFLATE_INCLUDE_PATH="-I${libdeflate_include_path}"
2858 LIBDEFLATE_LIBS="-L${libdeflate_lib_path}"
2859 COMPILE_LIBDEFLATE="false"
2860 else
2861 if test "xx$PKGCONF" != "xx"; then
2862 if "${PKGCONF}" --exists libdeflate; then
2863 VERSION_STRING=`${PKGCONF} --modversion libdeflate`
2864 VER=`getVersion2 ${VERSION_STRING}`
2865 # 1.14 has significant performance improvements, so we'd like to require
2866 # it in 2024.
2867 if test "${VER}" -ge 1009; then
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libdeflate ${VERSION_STRING} library detected -- skipping libdeflate compilation" >&5
2869 printf "%s\n" "$as_me: libdeflate ${VERSION_STRING} library detected -- skipping libdeflate compilation" >&6;}
2870 LIBDEFLATE_INCLUDE_PATH=`"${PKGCONF}" --cflags-only-I libdeflate`
2871 LIBDEFLATE_LIBS=`"${PKGCONF}" --libs libdeflate`
2872 COMPILE_LIBDEFLATE="false"
2873 else
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libdeflate ${VERSION_STRING} library detected but is too old (<1.9) -- compiling from source" >&5
2875 printf "%s\n" "$as_me: libdeflate ${VERSION_STRING} library detected but is too old (<1.9) -- compiling from source" >&6;}
2876 COMPILE_LIBDEFLATE="true"
2877 fi
2878 fi
2879 fi
2880 if test "xx$COMPILE_LIBDEFLATE" == "xx"; then
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libdeflate not detected by pkg-config; falling back on system header file check" >&5
2882 printf "%s\n" "$as_me: libdeflate not detected by pkg-config; falling back on system header file check" >&6;}
2883 libdeflate_ver_ok=no
2884 ${PATH_TO_CPP_COMPILER} ${CPPFLAGS} ${CXXFLAGS} -E tools/libdeflate_version.cpp >/dev/null 2>&1 && libdeflate_ver_ok=yes
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libdeflate_ver_ok}" >&5
2886 printf "%s\n" "${libdeflate_ver_ok}" >&6; }
2887 if test "xx${libdeflate_ver_ok}" == "xxyes"; then
2888 LIBDEFLATE_LIBS="-ldeflate"
2889 COMPILE_LIBDEFLATE="false"
2890 else
2891 COMPILE_LIBDEFLATE="true"
2892 fi
2893 fi
2894 fi
2895
2896 if test xx$COMPILE_LIBDEFLATE == "xxtrue"; then
2897 LIBDEFLATE_INCLUDE_PATH="-Ilibdeflate"
2898 LIBDEFLATE_LIBS="${LIBS} -lPGDEFLATE"
2899 LIBDEFLATE_SHLIB="libPGDEFLATE.a"
2900 LIBDEFLATE_CLEAN="\$(LIBDEFLATE) libPGDEFLATE.a"
2901 else
2902 LIBDEFLATE_COMPILE_FLAG="-DIGNORE_BUNDLED_LIBDEFLATE"
2903 fi
2904
2905 if test "xx$simde_include_path" != "xx"; then
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using user-defined simde install paths" >&5
2907 printf "%s\n" "$as_me: Using user-defined simde install paths" >&6;}
2908 SIMDE_INCLUDE_PATH="-I${simde_include_path}"
2909 USE_BUNDLED_SIMDE="false"
2910 else
2911 if test "xx$PKGCONF" != "xx"; then
2912 if "${PKGCONF}" --exists simde; then
2913 VERSION_STRING=`${PKGCONF} --modversion simde`
2914 VER=`getVersion3 ${VERSION_STRING}`
2915 if test "${VER}" -ge 702; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: simde ${VERSION_STRING} library detected -- ignoring bundled simde header files" >&5
2917 printf "%s\n" "$as_me: simde ${VERSION_STRING} library detected -- ignoring bundled simde header files" >&6;}
2918 SIMDE_INCLUDE_PATH=`"${PKGCONF}" --cflags-only-I simde`
2919 USE_BUNDLED_SIMDE="false"
2920 else
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: simde ${VERSION_STRING} library detected but is too old (<0.7.2) -- using bundled header files" >&5
2922 printf "%s\n" "$as_me: simde ${VERSION_STRING} library detected but is too old (<0.7.2) -- using bundled header files" >&6;}
2923 USE_BUNDLED_SIMDE="true"
2924 fi
2925 fi
2926 fi
2927 if test "xx$USE_BUNDLED_SIMDE" == "xx"; then
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: simde not detected by pkg-config; falling back on system header file check" >&5
2929 printf "%s\n" "$as_me: simde not detected by pkg-config; falling back on system header file check" >&6;}
2930 simde_ver_ok=no
2931 ${PATH_TO_CPP_COMPILER} ${CPPFLAGS} ${CXXFLAGS} -E tools/simde_version.cpp >/dev/null 2>&1 && simde_ver_ok=yes
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${simde_ver_ok}" >&5
2933 printf "%s\n" "${simde_ver_ok}" >&6; }
2934 if test "xx${simde_ver_ok}" == "xxyes"; then
2935 USE_BUNDLED_SIMDE="false"
2936 else
2937 USE_BUNDLED_SIMDE="true"
2938 fi
2939 fi
2940 fi
2941
2942 if test xx$USE_BUNDLED_SIMDE != "xxtrue"; then
2943 SIMDE_COMPILE_FLAG="-DIGNORE_BUNDLED_SIMDE"
2944 fi
2945
2946
2947 ZSTD_COMPILE_FLAG=$ZSTD_COMPILE_FLAG
2948
2949 ZSTD_INCLUDE_PATH=$ZSTD_INCLUDE_PATH
2950
2951 ZSTD_LIBS=$ZSTD_LIBS
2952
2953 ZSTD_SHLIB=$ZSTD_SHLIB
2954
2955 ZSTD_CLEAN=$ZSTD_CLEAN
2956
2957 LIBDEFLATE_COMPILE_FLAG=$LIBDEFLATE_COMPILE_FLAG
2958
2959 LIBDEFLATE_INCLUDE_PATH=$LIBDEFLATE_INCLUDE_PATH
2960
2961 LIBDEFLATE_LIBS=$LIBDEFLATE_LIBS
2962
2963 LIBDEFLATE_SHLIB=$LIBDEFLATE_SHLIB
2964
2965 LIBDEFLATE_CLEAN=$LIBDEFLATE_CLEAN
2966
2967 SIMDE_COMPILE_FLAG=$SIMDE_COMPILE_FLAG
2968
2969 SIMDE_INCLUDE_PATH=$SIMDE_INCLUDE_PATH
2970
2971
2972
2973 ac_config_files="$ac_config_files src/Makevars"
2974
2975 cat >confcache <<\_ACEOF
2976 # This file is a shell script that caches the results of configure
2977 # tests run on this system so they can be shared between configure
2978 # scripts and configure runs, see configure's option --config-cache.
2979 # It is not useful on other systems. If it contains results you don't
2980 # want to keep, you may remove or edit it.
2981 #
2982 # config.status only pays attention to the cache file if you give it
2983 # the --recheck option to rerun configure.
2984 #
2985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2987 # following values.
2988
2989 _ACEOF
2990
2991 # The following way of writing the cache mishandles newlines in values,
2992 # but we know of no workaround that is simple, portable, and efficient.
2993 # So, we kill variables containing newlines.
2994 # Ultrix sh set writes to stderr and can't be redirected directly,
2995 # and sets the high bit in the cache file unless we assign to the vars.
2996 (
2997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2998 eval ac_val=\$$ac_var
2999 case $ac_val in #(
3000 *${as_nl}*)
3001 case $ac_var in #(
3002 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3003 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3004 esac
3005 case $ac_var in #(
3006 _ | IFS | as_nl) ;; #(
3007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3008 *) { eval $ac_var=; unset $ac_var;} ;;
3009 esac ;;
3010 esac
3011 done
3012
3013 (set) 2>&1 |
3014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3015 *${as_nl}ac_space=\ *)
3016 # `set' does not quote correctly, so add quotes: double-quote
3017 # substitution turns \\\\ into \\, and sed turns \\ into \.
3018 sed -n \
3019 "s/'/'\\\\''/g;
3020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3021 ;; #(
3022 *)
3023 # `set' quotes correctly as required by POSIX, so do not add quotes.
3024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3025 ;;
3026 esac |
3027 sort
3028 ) |
3029 sed '
3030 /^ac_cv_env_/b end
3031 t clear
3032 :clear
3033 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3034 t end
3035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3036 :end' >>confcache
3037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3038 if test -w "$cache_file"; then
3039 if test "x$cache_file" != "x/dev/null"; then
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3041 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3042 if test ! -f "$cache_file" || test -h "$cache_file"; then
3043 cat confcache >"$cache_file"
3044 else
3045 case $cache_file in #(
3046 */* | ?:*)
3047 mv -f confcache "$cache_file"$$ &&
3048 mv -f "$cache_file"$$ "$cache_file" ;; #(
3049 *)
3050 mv -f confcache "$cache_file" ;;
3051 esac
3052 fi
3053 fi
3054 else
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3056 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3057 fi
3058 fi
3059 rm -f confcache
3060
3061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3062 # Let make expand exec_prefix.
3063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3064
3065 # Transform confdefs.h into DEFS.
3066 # Protect against shell expansion while executing Makefile rules.
3067 # Protect against Makefile macro expansion.
3068 #
3069 # If the first sed substitution is executed (which looks for macros that
3070 # take arguments), then branch to the quote section. Otherwise,
3071 # look for a macro that doesn't take arguments.
3072 ac_script='
3073 :mline
3074 /\\$/{
3075 N
3076 s,\\\n,,
3077 b mline
3078 }
3079 t clear
3080 :clear
3081 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3082 t quote
3083 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3084 t quote
3085 b any
3086 :quote
3087 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3088 s/\[/\\&/g
3089 s/\]/\\&/g
3090 s/\$/$$/g
3091 H
3092 :any
3093 ${
3094 g
3095 s/^\n//
3096 s/\n/ /g
3097 p
3098 }
3099 '
3100 DEFS=`sed -n "$ac_script" confdefs.h`
3101
3102
3103 ac_libobjs=
3104 ac_ltlibobjs=
3105 U=
3106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3107 # 1. Remove the extension, and $U if already installed.
3108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3109 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3111 # will be set to the directory where LIBOBJS objects are built.
3112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3114 done
3115 LIBOBJS=$ac_libobjs
3116
3117 LTLIBOBJS=$ac_ltlibobjs
3118
3119
3120
3121 : "${CONFIG_STATUS=./config.status}"
3122 ac_write_fail=0
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3126 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3127 as_write_fail=0
3128 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3129 #! $SHELL
3130 # Generated by $as_me.
3131 # Run this file to recreate the current configuration.
3132 # Compiler output produced by configure, useful for debugging
3133 # configure, is in config.log if it exists.
3134
3135 debug=false
3136 ac_cs_recheck=false
3137 ac_cs_silent=false
3138
3139 SHELL=\${CONFIG_SHELL-$SHELL}
3140 export SHELL
3141 _ASEOF
3142 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3143 ## -------------------- ##
3144 ## M4sh Initialization. ##
3145 ## -------------------- ##
3146
3147 # Be more Bourne compatible
3148 DUALCASE=1; export DUALCASE # for MKS sh
3149 as_nop=:
3150 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3151 then :
3152 emulate sh
3153 NULLCMD=:
3154 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3155 # is contrary to our usage. Disable this feature.
3156 alias -g '${1+"$@"}'='"$@"'
3157 setopt NO_GLOB_SUBST
3158 else $as_nop
3159 case `(set -o) 2>/dev/null` in #(
3160 *posix*) :
3161 set -o posix ;; #(
3162 *) :
3163 ;;
3164 esac
3165 fi
3166
3167
3168
3169 # Reset variables that may have inherited troublesome values from
3170 # the environment.
3171
3172 # IFS needs to be set, to space, tab, and newline, in precisely that order.
3173 # (If _AS_PATH_WALK were called with IFS unset, it would have the
3174 # side effect of setting IFS to empty, thus disabling word splitting.)
3175 # Quoting is to prevent editors from complaining about space-tab.
3176 as_nl='
3177 '
3178 export as_nl
3179 IFS=" "" $as_nl"
3180
3181 PS1='$ '
3182 PS2='> '
3183 PS4='+ '
3184
3185 # Ensure predictable behavior from utilities with locale-dependent output.
3186 LC_ALL=C
3187 export LC_ALL
3188 LANGUAGE=C
3189 export LANGUAGE
3190
3191 # We cannot yet rely on "unset" to work, but we need these variables
3192 # to be unset--not just set to an empty or harmless value--now, to
3193 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3194 # also avoids known problems related to "unset" and subshell syntax
3195 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3196 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3197 do eval test \${$as_var+y} \
3198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3199 done
3200
3201 # Ensure that fds 0, 1, and 2 are open.
3202 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3203 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3204 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3205
3206 # The user is always right.
3207 if ${PATH_SEPARATOR+false} :; then
3208 PATH_SEPARATOR=:
3209 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3210 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3211 PATH_SEPARATOR=';'
3212 }
3213 fi
3214
3215
3216 # Find who we are. Look in the path if we contain no directory separator.
3217 as_myself=
3218 case $0 in #((
3219 *[\\/]* ) as_myself=$0 ;;
3220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 case $as_dir in #(((
3225 '') as_dir=./ ;;
3226 */) ;;
3227 *) as_dir=$as_dir/ ;;
3228 esac
3229 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3230 done
3231 IFS=$as_save_IFS
3232
3233 ;;
3234 esac
3235 # We did not find ourselves, most probably we were run as `sh COMMAND'
3236 # in which case we are not to be found in the path.
3237 if test "x$as_myself" = x; then
3238 as_myself=$0
3239 fi
3240 if test ! -f "$as_myself"; then
3241 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3242 exit 1
3243 fi
3244
3245
3246
3247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3248 # ----------------------------------------
3249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3251 # script with STATUS, using 1 if that was 0.
3252 as_fn_error ()
3253 {
3254 as_status=$1; test $as_status -eq 0 && as_status=1
3255 if test "$4"; then
3256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3258 fi
3259 printf "%s\n" "$as_me: error: $2" >&2
3260 as_fn_exit $as_status
3261 } # as_fn_error
3262
3263
3264
3265 # as_fn_set_status STATUS
3266 # -----------------------
3267 # Set $? to STATUS, without forking.
3268 as_fn_set_status ()
3269 {
3270 return $1
3271 } # as_fn_set_status
3272
3273 # as_fn_exit STATUS
3274 # -----------------
3275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3276 as_fn_exit ()
3277 {
3278 set +e
3279 as_fn_set_status $1
3280 exit $1
3281 } # as_fn_exit
3282
3283 # as_fn_unset VAR
3284 # ---------------
3285 # Portably unset VAR.
3286 as_fn_unset ()
3287 {
3288 { eval $1=; unset $1;}
3289 }
3290 as_unset=as_fn_unset
3291
3292 # as_fn_append VAR VALUE
3293 # ----------------------
3294 # Append the text in VALUE to the end of the definition contained in VAR. Take
3295 # advantage of any shell optimizations that allow amortized linear growth over
3296 # repeated appends, instead of the typical quadratic growth present in naive
3297 # implementations.
3298 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3299 then :
3300 eval 'as_fn_append ()
3301 {
3302 eval $1+=\$2
3303 }'
3304 else $as_nop
3305 as_fn_append ()
3306 {
3307 eval $1=\$$1\$2
3308 }
3309 fi # as_fn_append
3310
3311 # as_fn_arith ARG...
3312 # ------------------
3313 # Perform arithmetic evaluation on the ARGs, and store the result in the
3314 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3315 # must be portable across $(()) and expr.
3316 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3317 then :
3318 eval 'as_fn_arith ()
3319 {
3320 as_val=$(( $* ))
3321 }'
3322 else $as_nop
3323 as_fn_arith ()
3324 {
3325 as_val=`expr "$@" || test $? -eq 1`
3326 }
3327 fi # as_fn_arith
3328
3329
3330 if expr a : '\(a\)' >/dev/null 2>&1 &&
3331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3332 as_expr=expr
3333 else
3334 as_expr=false
3335 fi
3336
3337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3338 as_basename=basename
3339 else
3340 as_basename=false
3341 fi
3342
3343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3344 as_dirname=dirname
3345 else
3346 as_dirname=false
3347 fi
3348
3349 as_me=`$as_basename -- "$0" ||
3350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3351 X"$0" : 'X\(//\)$' \| \
3352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3353 printf "%s\n" X/"$0" |
3354 sed '/^.*\/\([^/][^/]*\)\/*$/{
3355 s//\1/
3356 q
3357 }
3358 /^X\/\(\/\/\)$/{
3359 s//\1/
3360 q
3361 }
3362 /^X\/\(\/\).*/{
3363 s//\1/
3364 q
3365 }
3366 s/.*/./; q'`
3367
3368 # Avoid depending upon Character Ranges.
3369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3372 as_cr_digits='0123456789'
3373 as_cr_alnum=$as_cr_Letters$as_cr_digits
3374
3375
3376 # Determine whether it's possible to make 'echo' print without a newline.
3377 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3378 # for compatibility with existing Makefiles.
3379 ECHO_C= ECHO_N= ECHO_T=
3380 case `echo -n x` in #(((((
3381 -n*)
3382 case `echo 'xy\c'` in
3383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3384 xy) ECHO_C='\c';;
3385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3386 ECHO_T=' ';;
3387 esac;;
3388 *)
3389 ECHO_N='-n';;
3390 esac
3391
3392 # For backward compatibility with old third-party macros, we provide
3393 # the shell variables $as_echo and $as_echo_n. New code should use
3394 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3395 as_echo='printf %s\n'
3396 as_echo_n='printf %s'
3397
3398 rm -f conf$$ conf$$.exe conf$$.file
3399 if test -d conf$$.dir; then
3400 rm -f conf$$.dir/conf$$.file
3401 else
3402 rm -f conf$$.dir
3403 mkdir conf$$.dir 2>/dev/null
3404 fi
3405 if (echo >conf$$.file) 2>/dev/null; then
3406 if ln -s conf$$.file conf$$ 2>/dev/null; then
3407 as_ln_s='ln -s'
3408 # ... but there are two gotchas:
3409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3411 # In both cases, we have to default to `cp -pR'.
3412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3413 as_ln_s='cp -pR'
3414 elif ln conf$$.file conf$$ 2>/dev/null; then
3415 as_ln_s=ln
3416 else
3417 as_ln_s='cp -pR'
3418 fi
3419 else
3420 as_ln_s='cp -pR'
3421 fi
3422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3423 rmdir conf$$.dir 2>/dev/null
3424
3425
3426 # as_fn_mkdir_p
3427 # -------------
3428 # Create "$as_dir" as a directory, including parents if necessary.
3429 as_fn_mkdir_p ()
3430 {
3431
3432 case $as_dir in #(
3433 -*) as_dir=./$as_dir;;
3434 esac
3435 test -d "$as_dir" || eval $as_mkdir_p || {
3436 as_dirs=
3437 while :; do
3438 case $as_dir in #(
3439 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3440 *) as_qdir=$as_dir;;
3441 esac
3442 as_dirs="'$as_qdir' $as_dirs"
3443 as_dir=`$as_dirname -- "$as_dir" ||
3444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3445 X"$as_dir" : 'X\(//\)[^/]' \| \
3446 X"$as_dir" : 'X\(//\)$' \| \
3447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3448 printf "%s\n" X"$as_dir" |
3449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3450 s//\1/
3451 q
3452 }
3453 /^X\(\/\/\)[^/].*/{
3454 s//\1/
3455 q
3456 }
3457 /^X\(\/\/\)$/{
3458 s//\1/
3459 q
3460 }
3461 /^X\(\/\).*/{
3462 s//\1/
3463 q
3464 }
3465 s/.*/./; q'`
3466 test -d "$as_dir" && break
3467 done
3468 test -z "$as_dirs" || eval "mkdir $as_dirs"
3469 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3470
3471
3472 } # as_fn_mkdir_p
3473 if mkdir -p . 2>/dev/null; then
3474 as_mkdir_p='mkdir -p "$as_dir"'
3475 else
3476 test -d ./-p && rmdir ./-p
3477 as_mkdir_p=false
3478 fi
3479
3480
3481 # as_fn_executable_p FILE
3482 # -----------------------
3483 # Test if FILE is an executable regular file.
3484 as_fn_executable_p ()
3485 {
3486 test -f "$1" && test -x "$1"
3487 } # as_fn_executable_p
3488 as_test_x='test -x'
3489 as_executable_p=as_fn_executable_p
3490
3491 # Sed expression to map a string onto a valid CPP name.
3492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3493
3494 # Sed expression to map a string onto a valid variable name.
3495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3496
3497
3498 exec 6>&1
3499 ## ----------------------------------- ##
3500 ## Main body of $CONFIG_STATUS script. ##
3501 ## ----------------------------------- ##
3502 _ASEOF
3503 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3504
3505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3506 # Save the log message, to keep $0 and so on meaningful, and to
3507 # report actual input values of CONFIG_FILES etc. instead of their
3508 # values after options handling.
3509 ac_log="
3510 This file was extended by pgenlibr $as_me 0.3.5, which was
3511 generated by GNU Autoconf 2.71. Invocation command line was
3512
3513 CONFIG_FILES = $CONFIG_FILES
3514 CONFIG_HEADERS = $CONFIG_HEADERS
3515 CONFIG_LINKS = $CONFIG_LINKS
3516 CONFIG_COMMANDS = $CONFIG_COMMANDS
3517 $ $0 $@
3518
3519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3520 "
3521
3522 _ACEOF
3523
3524 case $ac_config_files in *"
3525 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3526 esac
3527
3528
3529
3530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3531 # Files that config.status was made for.
3532 config_files="$ac_config_files"
3533
3534 _ACEOF
3535
3536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3537 ac_cs_usage="\
3538 \`$as_me' instantiates files and other configuration actions
3539 from templates according to the current configuration. Unless the files
3540 and actions are specified as TAGs, all are instantiated by default.
3541
3542 Usage: $0 [OPTION]... [TAG]...
3543
3544 -h, --help print this help, then exit
3545 -V, --version print version number and configuration settings, then exit
3546 --config print configuration, then exit
3547 -q, --quiet, --silent
3548 do not print progress messages
3549 -d, --debug don't remove temporary files
3550 --recheck update $as_me by reconfiguring in the same conditions
3551 --file=FILE[:TEMPLATE]
3552 instantiate the configuration file FILE
3553
3554 Configuration files:
3555 $config_files
3556
3557 Report bugs to <[email protected]>."
3558
3559 _ACEOF
3560 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
3561 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
3562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3563 ac_cs_config='$ac_cs_config_escaped'
3564 ac_cs_version="\\
3565 pgenlibr config.status 0.3.5
3566 configured by $0, generated by GNU Autoconf 2.71,
3567 with options \\"\$ac_cs_config\\"
3568
3569 Copyright (C) 2021 Free Software Foundation, Inc.
3570 This config.status script is free software; the Free Software Foundation
3571 gives unlimited permission to copy, distribute and modify it."
3572
3573 ac_pwd='$ac_pwd'
3574 srcdir='$srcdir'
3575 test -n "\$AWK" || AWK=awk
3576 _ACEOF
3577
3578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3579 # The default lists apply if the user does not specify any file.
3580 ac_need_defaults=:
3581 while test $# != 0
3582 do
3583 case $1 in
3584 --*=?*)
3585 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3587 ac_shift=:
3588 ;;
3589 --*=)
3590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3591 ac_optarg=
3592 ac_shift=:
3593 ;;
3594 *)
3595 ac_option=$1
3596 ac_optarg=$2
3597 ac_shift=shift
3598 ;;
3599 esac
3600
3601 case $ac_option in
3602 # Handling of the options.
3603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3604 ac_cs_recheck=: ;;
3605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3606 printf "%s\n" "$ac_cs_version"; exit ;;
3607 --config | --confi | --conf | --con | --co | --c )
3608 printf "%s\n" "$ac_cs_config"; exit ;;
3609 --debug | --debu | --deb | --de | --d | -d )
3610 debug=: ;;
3611 --file | --fil | --fi | --f )
3612 $ac_shift
3613 case $ac_optarg in
3614 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3615 '') as_fn_error $? "missing file argument" ;;
3616 esac
3617 as_fn_append CONFIG_FILES " '$ac_optarg'"
3618 ac_need_defaults=false;;
3619 --he | --h | --help | --hel | -h )
3620 printf "%s\n" "$ac_cs_usage"; exit ;;
3621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3623 ac_cs_silent=: ;;
3624
3625 # This is an error.
3626 -*) as_fn_error $? "unrecognized option: \`$1'
3627 Try \`$0 --help' for more information." ;;
3628
3629 *) as_fn_append ac_config_targets " $1"
3630 ac_need_defaults=false ;;
3631
3632 esac
3633 shift
3634 done
3635
3636 ac_configure_extra_args=
3637
3638 if $ac_cs_silent; then
3639 exec 6>/dev/null
3640 ac_configure_extra_args="$ac_configure_extra_args --silent"
3641 fi
3642
3643 _ACEOF
3644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3645 if \$ac_cs_recheck; then
3646 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3647 shift
3648 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
3649 CONFIG_SHELL='$SHELL'
3650 export CONFIG_SHELL
3651 exec "\$@"
3652 fi
3653
3654 _ACEOF
3655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3656 exec 5>>config.log
3657 {
3658 echo
3659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3660 ## Running $as_me. ##
3661 _ASBOX
3662 printf "%s\n" "$ac_log"
3663 } >&5
3664
3665 _ACEOF
3666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3667 _ACEOF
3668
3669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3670
3671 # Handling of arguments.
3672 for ac_config_target in $ac_config_targets
3673 do
3674 case $ac_config_target in
3675 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
3676
3677 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3678 esac
3679 done
3680
3681
3682 # If the user did not use the arguments to specify the items to instantiate,
3683 # then the envvar interface is used. Set only those that are not.
3684 # We use the long form for the default assignment because of an extremely
3685 # bizarre bug on SunOS 4.1.3.
3686 if $ac_need_defaults; then
3687 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
3688 fi
3689
3690 # Have a temporary directory for convenience. Make it in the build tree
3691 # simply because there is no reason against having it here, and in addition,
3692 # creating and moving files from /tmp can sometimes cause problems.
3693 # Hook for its removal unless debugging.
3694 # Note that there is a small window in which the directory will not be cleaned:
3695 # after its creation but before its name has been assigned to `$tmp'.
3696 $debug ||
3697 {
3698 tmp= ac_tmp=
3699 trap 'exit_status=$?
3700 : "${ac_tmp:=$tmp}"
3701 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3702 ' 0
3703 trap 'as_fn_exit 1' 1 2 13 15
3704 }
3705 # Create a (secure) tmp directory for tmp files.
3706
3707 {
3708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3709 test -d "$tmp"
3710 } ||
3711 {
3712 tmp=./conf$$-$RANDOM
3713 (umask 077 && mkdir "$tmp")
3714 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3715 ac_tmp=$tmp
3716
3717 # Set up the scripts for CONFIG_FILES section.
3718 # No need to generate them if there are no CONFIG_FILES.
3719 # This happens for instance with `./config.status config.h'.
3720 if test -n "$CONFIG_FILES"; then
3721
3722
3723 ac_cr=`echo X | tr X '\015'`
3724 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3725 # But we know of no other shell where ac_cr would be empty at this
3726 # point, so we can use a bashism as a fallback.
3727 if test "x$ac_cr" = x; then
3728 eval ac_cr=\$\'\\r\'
3729 fi
3730 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3731 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3732 ac_cs_awk_cr='\\r'
3733 else
3734 ac_cs_awk_cr=$ac_cr
3735 fi
3736
3737 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3738 _ACEOF
3739
3740
3741 {
3742 echo "cat >conf$$subs.awk <<_ACEOF" &&
3743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3744 echo "_ACEOF"
3745 } >conf$$subs.sh ||
3746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3747 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3748 ac_delim='%!_!# '
3749 for ac_last_try in false false false false false :; do
3750 . ./conf$$subs.sh ||
3751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3752
3753 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3754 if test $ac_delim_n = $ac_delim_num; then
3755 break
3756 elif $ac_last_try; then
3757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3758 else
3759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3760 fi
3761 done
3762 rm -f conf$$subs.sh
3763
3764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3765 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3766 _ACEOF
3767 sed -n '
3768 h
3769 s/^/S["/; s/!.*/"]=/
3770 p
3771 g
3772 s/^[^!]*!//
3773 :repl
3774 t repl
3775 s/'"$ac_delim"'$//
3776 t delim
3777 :nl
3778 h
3779 s/\(.\{148\}\)..*/\1/
3780 t more1
3781 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3782 p
3783 n
3784 b repl
3785 :more1
3786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3787 p
3788 g
3789 s/.\{148\}//
3790 t nl
3791 :delim
3792 h
3793 s/\(.\{148\}\)..*/\1/
3794 t more2
3795 s/["\\]/\\&/g; s/^/"/; s/$/"/
3796 p
3797 b
3798 :more2
3799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3800 p
3801 g
3802 s/.\{148\}//
3803 t delim
3804 ' <conf$$subs.awk | sed '
3805 /^[^""]/{
3806 N
3807 s/\n//
3808 }
3809 ' >>$CONFIG_STATUS || ac_write_fail=1
3810 rm -f conf$$subs.awk
3811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3812 _ACAWK
3813 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3814 for (key in S) S_is_set[key] = 1
3815 FS = ""
3816
3817 }
3818 {
3819 line = $ 0
3820 nfields = split(line, field, "@")
3821 substed = 0
3822 len = length(field[1])
3823 for (i = 2; i < nfields; i++) {
3824 key = field[i]
3825 keylen = length(key)
3826 if (S_is_set[key]) {
3827 value = S[key]
3828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3829 len += length(value) + length(field[++i])
3830 substed = 1
3831 } else
3832 len += 1 + keylen
3833 }
3834
3835 print line
3836 }
3837
3838 _ACAWK
3839 _ACEOF
3840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3841 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3842 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3843 else
3844 cat
3845 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3846 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3847 _ACEOF
3848
3849 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3850 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3851 # trailing colons and then remove the whole line if VPATH becomes empty
3852 # (actually we leave an empty line to preserve line numbers).
3853 if test "x$srcdir" = x.; then
3854 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3855 h
3856 s///
3857 s/^/:/
3858 s/[ ]*$/:/
3859 s/:\$(srcdir):/:/g
3860 s/:\${srcdir}:/:/g
3861 s/:@srcdir@:/:/g
3862 s/^:*//
3863 s/:*$//
3864 x
3865 s/\(=[ ]*\).*/\1/
3866 G
3867 s/\n//
3868 s/^[^=]*=[ ]*$//
3869 }'
3870 fi
3871
3872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3873 fi # test -n "$CONFIG_FILES"
3874
3875
3876 eval set X " :F $CONFIG_FILES "
3877 shift
3878 for ac_tag
3879 do
3880 case $ac_tag in
3881 :[FHLC]) ac_mode=$ac_tag; continue;;
3882 esac
3883 case $ac_mode$ac_tag in
3884 :[FHL]*:*);;
3885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3886 :[FH]-) ac_tag=-:-;;
3887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3888 esac
3889 ac_save_IFS=$IFS
3890 IFS=:
3891 set x $ac_tag
3892 IFS=$ac_save_IFS
3893 shift
3894 ac_file=$1
3895 shift
3896
3897 case $ac_mode in
3898 :L) ac_source=$1;;
3899 :[FH])
3900 ac_file_inputs=
3901 for ac_f
3902 do
3903 case $ac_f in
3904 -) ac_f="$ac_tmp/stdin";;
3905 *) # Look for the file first in the build tree, then in the source tree
3906 # (if the path is not absolute). The absolute path cannot be DOS-style,
3907 # because $ac_f cannot contain `:'.
3908 test -f "$ac_f" ||
3909 case $ac_f in
3910 [\\/$]*) false;;
3911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3912 esac ||
3913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3914 esac
3915 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3916 as_fn_append ac_file_inputs " '$ac_f'"
3917 done
3918
3919 # Let's still pretend it is `configure' which instantiates (i.e., don't
3920 # use $as_me), people would be surprised to read:
3921 # /* config.h. Generated by config.status. */
3922 configure_input='Generated from '`
3923 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3924 `' by configure.'
3925 if test x"$ac_file" != x-; then
3926 configure_input="$ac_file. $configure_input"
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3928 printf "%s\n" "$as_me: creating $ac_file" >&6;}
3929 fi
3930 # Neutralize special characters interpreted by sed in replacement strings.
3931 case $configure_input in #(
3932 *\&* | *\|* | *\\* )
3933 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
3934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3935 *) ac_sed_conf_input=$configure_input;;
3936 esac
3937
3938 case $ac_tag in
3939 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3941 esac
3942 ;;
3943 esac
3944
3945 ac_dir=`$as_dirname -- "$ac_file" ||
3946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3947 X"$ac_file" : 'X\(//\)[^/]' \| \
3948 X"$ac_file" : 'X\(//\)$' \| \
3949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3950 printf "%s\n" X"$ac_file" |
3951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3952 s//\1/
3953 q
3954 }
3955 /^X\(\/\/\)[^/].*/{
3956 s//\1/
3957 q
3958 }
3959 /^X\(\/\/\)$/{
3960 s//\1/
3961 q
3962 }
3963 /^X\(\/\).*/{
3964 s//\1/
3965 q
3966 }
3967 s/.*/./; q'`
3968 as_dir="$ac_dir"; as_fn_mkdir_p
3969 ac_builddir=.
3970
3971 case "$ac_dir" in
3972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3973 *)
3974 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
3975 # A ".." for each directory in $ac_dir_suffix.
3976 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3977 case $ac_top_builddir_sub in
3978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3980 esac ;;
3981 esac
3982 ac_abs_top_builddir=$ac_pwd
3983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3984 # for backward compatibility:
3985 ac_top_builddir=$ac_top_build_prefix
3986
3987 case $srcdir in
3988 .) # We are building in place.
3989 ac_srcdir=.
3990 ac_top_srcdir=$ac_top_builddir_sub
3991 ac_abs_top_srcdir=$ac_pwd ;;
3992 [\\/]* | ?:[\\/]* ) # Absolute name.
3993 ac_srcdir=$srcdir$ac_dir_suffix;
3994 ac_top_srcdir=$srcdir
3995 ac_abs_top_srcdir=$srcdir ;;
3996 *) # Relative name.
3997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3998 ac_top_srcdir=$ac_top_build_prefix$srcdir
3999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4000 esac
4001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4002
4003
4004 case $ac_mode in
4005 :F)
4006 #
4007 # CONFIG_FILE
4008 #
4009
4010 _ACEOF
4011
4012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4013 # If the template does not know about datarootdir, expand it.
4014 # FIXME: This hack should be removed a few years after 2.60.
4015 ac_datarootdir_hack=; ac_datarootdir_seen=
4016 ac_sed_dataroot='
4017 /datarootdir/ {
4018 p
4019 q
4020 }
4021 /@datadir@/p
4022 /@docdir@/p
4023 /@infodir@/p
4024 /@localedir@/p
4025 /@mandir@/p'
4026 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4027 *datarootdir*) ac_datarootdir_seen=yes;;
4028 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4030 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4031 _ACEOF
4032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4033 ac_datarootdir_hack='
4034 s&@datadir@&$datadir&g
4035 s&@docdir@&$docdir&g
4036 s&@infodir@&$infodir&g
4037 s&@localedir@&$localedir&g
4038 s&@mandir@&$mandir&g
4039 s&\\\${datarootdir}&$datarootdir&g' ;;
4040 esac
4041 _ACEOF
4042
4043 # Neutralize VPATH when `$srcdir' = `.'.
4044 # Shell code in configure.ac might set extrasub.
4045 # FIXME: do we really want to maintain this feature?
4046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4047 ac_sed_extra="$ac_vpsub
4048 $extrasub
4049 _ACEOF
4050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4051 :t
4052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4053 s|@configure_input@|$ac_sed_conf_input|;t t
4054 s&@top_builddir@&$ac_top_builddir_sub&;t t
4055 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4056 s&@srcdir@&$ac_srcdir&;t t
4057 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4058 s&@top_srcdir@&$ac_top_srcdir&;t t
4059 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4060 s&@builddir@&$ac_builddir&;t t
4061 s&@abs_builddir@&$ac_abs_builddir&;t t
4062 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4063 $ac_datarootdir_hack
4064 "
4065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4066 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4067
4068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4071 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4073 which seems to be undefined. Please make sure it is defined" >&5
4074 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4075 which seems to be undefined. Please make sure it is defined" >&2;}
4076
4077 rm -f "$ac_tmp/stdin"
4078 case $ac_file in
4079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4081 esac \
4082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4083 ;;
4084
4085
4086
4087 esac
4088
4089 done # for ac_tag
4090
4091
4092 as_fn_exit 0
4093 _ACEOF
4094 ac_clean_files=$ac_clean_files_save
4095
4096 test $ac_write_fail = 0 ||
4097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4098
4099
4100 # configure is writing to config.log, and then calls config.status.
4101 # config.status does its own redirection, appending to config.log.
4102 # Unfortunately, on DOS this fails, as config.log is still kept open
4103 # by configure, so config.status won't be able to write to it; its
4104 # output is simply discarded. So we exec the FD to /dev/null,
4105 # effectively closing config.log, so it can be properly (re)opened and
4106 # appended to by config.status. When coming back to configure, we
4107 # need to make the FD available again.
4108 if test "$no_create" != yes; then
4109 ac_cs_success=:
4110 ac_config_status_args=
4111 test "$silent" = yes &&
4112 ac_config_status_args="$ac_config_status_args --quiet"
4113 exec 5>/dev/null
4114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4115 exec 5>>config.log
4116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4117 # would make configure fail if this is the last instruction.
4118 $ac_cs_success || as_fn_exit 1
4119 fi
4120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4122 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4123 fi
4124
4125