1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.71 for MKVToolNix 65.0.0. 4@%:@ 5@%:@ Report bugs to <https://gitlab.com/mbunkus/mkvtoolnix/issues/>. 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 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 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 29else $as_nop 30 case `(set -o) 2>/dev/null` in @%:@( 31 *posix*) : 32 set -o posix ;; @%:@( 33 *) : 34 ;; 35esac 36fi 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. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export 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). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${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 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in @%:@(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if 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 114fi 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. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in @%:@ (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $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'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 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 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in @%:@( 154 *posix*) : 155 set -o posix ;; @%:@( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -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 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in @%:@( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in @%:@ (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.com/mbunkus/mkvtoolnix/issues/ about 272$0: your system, including any error possibly output before 273$0: this message. Then install a modern shell, or manually 274$0: run the script under such a shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289@%:@ as_fn_unset VAR 290@%:@ --------------- 291@%:@ Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298 299@%:@ as_fn_set_status STATUS 300@%:@ ----------------------- 301@%:@ Set @S|@? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} @%:@ as_fn_set_status 306 307@%:@ as_fn_exit STATUS 308@%:@ ----------------- 309@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} @%:@ as_fn_exit 316@%:@ as_fn_nop 317@%:@ --------- 318@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. 319as_fn_nop () 320{ 321 return $? 322} 323as_nop=as_fn_nop 324 325@%:@ as_fn_mkdir_p 326@%:@ ------------- 327@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 341 as_dirs="'$as_qdir' $as_dirs" 342 as_dir=`$as_dirname -- "$as_dir" || 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \ 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 347printf "%s\n" X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} @%:@ as_fn_mkdir_p 372 373@%:@ as_fn_executable_p FILE 374@%:@ ----------------------- 375@%:@ Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 378 test -f "$1" && test -x "$1" 379} @%:@ as_fn_executable_p 380@%:@ as_fn_append VAR VALUE 381@%:@ ---------------------- 382@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 383@%:@ advantage of any shell optimizations that allow amortized linear growth over 384@%:@ repeated appends, instead of the typical quadratic growth present in naive 385@%:@ implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 387then : 388 eval 'as_fn_append () 389 { 390 eval $1+=\$2 391 }' 392else $as_nop 393 as_fn_append () 394 { 395 eval $1=\$$1\$2 396 } 397fi # as_fn_append 398 399@%:@ as_fn_arith ARG... 400@%:@ ------------------ 401@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 402@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 403@%:@ must be portable across @S|@(()) and expr. 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 405then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else $as_nop 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417@%:@ as_fn_nop 418@%:@ --------- 419@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. 420as_fn_nop () 421{ 422 return $? 423} 424as_nop=as_fn_nop 425 426@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 427@%:@ ---------------------------------------- 428@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 429@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 430@%:@ script with STATUS, using 1 if that was 0. 431as_fn_error () 432{ 433 as_status=$1; test $as_status -eq 0 && as_status=1 434 if test "$4"; then 435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 fi 438 printf "%s\n" "$as_me: error: $2" >&2 439 as_fn_exit $as_status 440} @%:@ as_fn_error 441 442if expr a : '\(a\)' >/dev/null 2>&1 && 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 444 as_expr=expr 445else 446 as_expr=false 447fi 448 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 450 as_basename=basename 451else 452 as_basename=false 453fi 454 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 456 as_dirname=dirname 457else 458 as_dirname=false 459fi 460 461as_me=`$as_basename -- "$0" || 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 463 X"$0" : 'X\(//\)$' \| \ 464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 465printf "%s\n" X/"$0" | 466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 467 s//\1/ 468 q 469 } 470 /^X\/\(\/\/\)$/{ 471 s//\1/ 472 q 473 } 474 /^X\/\(\/\).*/{ 475 s//\1/ 476 q 477 } 478 s/.*/./; q'` 479 480# Avoid depending upon Character Ranges. 481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 484as_cr_digits='0123456789' 485as_cr_alnum=$as_cr_Letters$as_cr_digits 486 487 488 as_lineno_1=$LINENO as_lineno_1a=$LINENO 489 as_lineno_2=$LINENO as_lineno_2a=$LINENO 490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 493 sed -n ' 494 p 495 /[$]LINENO/= 496 ' <$as_myself | 497 sed ' 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in @%:@((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_@&t@echo='printf %s\n' 544as_@&t@echo_n='printf %s' 545 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 560 # In both cases, we have to default to `cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590 591test -n "$DJDIR" || exec 7<&0 </dev/null 592exec 6>&1 593 594# Name of the host. 595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 596# so uname gets run too. 597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 598 599# 600# Initializations. 601# 602ac_default_prefix=/usr/local 603ac_clean_files= 604ac_config_libobj_dir=. 605LIB@&t@OBJS= 606cross_compiling=no 607subdirs= 608MFLAGS= 609MAKEFLAGS= 610 611# Identity of this package. 612PACKAGE_NAME='MKVToolNix' 613PACKAGE_TARNAME='mkvtoolnix' 614PACKAGE_VERSION='65.0.0' 615PACKAGE_STRING='MKVToolNix 65.0.0' 616PACKAGE_BUGREPORT='https://gitlab.com/mbunkus/mkvtoolnix/issues/' 617PACKAGE_URL='' 618 619# Factoring default headers for most tests. 620ac_includes_default="\ 621#include <stddef.h> 622#ifdef HAVE_STDIO_H 623# include <stdio.h> 624#endif 625#ifdef HAVE_STDLIB_H 626# include <stdlib.h> 627#endif 628#ifdef HAVE_STRING_H 629# include <string.h> 630#endif 631#ifdef HAVE_INTTYPES_H 632# include <inttypes.h> 633#endif 634#ifdef HAVE_STDINT_H 635# include <stdint.h> 636#endif 637#ifdef HAVE_STRINGS_H 638# include <strings.h> 639#endif 640#ifdef HAVE_SYS_TYPES_H 641# include <sys/types.h> 642#endif 643#ifdef HAVE_SYS_STAT_H 644# include <sys/stat.h> 645#endif 646#ifdef HAVE_UNISTD_H 647# include <unistd.h> 648#endif" 649 650ac_header_c_list= 651ac_subst_vars='LTLIBOBJS 652LIB@&t@OBJS 653MANPAGES_TRANSLATIONS 654TRANSLATIONS 655LIBINTL_LIBS 656MSGFMT 657PO4A_WORKS 658PO4A_TRANSLATE_FLAGS 659PO4A_FLAGS 660PO4A_TRANSLATE 661PO4A 662USE_DVDREAD 663DVDREAD_LIBS 664DVDREAD_CFLAGS 665dvdread_LIBS 666dvdread_CFLAGS 667XSLTPROC_FLAGS 668DOCBOOK_ROOT 669XSLTPROC 670PANDOC 671GOOGLE_BENCHMARK 672VALGRIND 673GTEST_TYPE 674BOOST_LDFLAGS 675BOOST_CPPFLAGS 676GNURX_LIBS 677CMARK_LIBS 678CMARK_CFLAGS 679libcmark_LIBS 680libcmark_CFLAGS 681BUILD_GUI 682QT_LIBS_NON_GUI 683QT_LIBS 684QT_CFLAGS 685QMAKE 686UIC 687RCC 688MOC 689LCONVERT 690QMAKE6 691ZLIB_LIBS 692ZLIB_CFLAGS 693FMT_INTERNAL 694UTF8CPP_INTERNAL 695NLOHMANN_JSON_INTERNAL 696PUGIXML_INTERNAL 697PUGIXML_LIBS 698PUGIXML_CFLAGS 699EBML_MATROSKA_INTERNAL 700MATROSKA_LIBS 701MATROSKA_CFLAGS 702EBML_LIBS 703EBML_CFLAGS 704FLAC_LIBS 705VORBIS_LIBS 706LINK_STATICALLY 707OGG_LIBS 708ICONV_LIBS 709USE_PRECOMPILED_HEADERS 710USE_UBSAN 711USE_ADDRSAN 712USE_OPTIMIZATION 713USE_PROFILING 714USE_DEBUG 715USE_DRMINGW 716DRMINGW_PATH 717LDFLAGS_RPATHS 718USER_LDFLAGS 719USER_CXXFLAGS 720USER_CPPFLAGS 721USER_CFLAGS 722EXTRA_LDFLAGS 723EXTRA_CFLAGS 724CONVERT 725MINGW_PROCESSOR_ARCH 726MINGW_GUIAPP 727MINGW_LIBS 728MINGW 729WINDRES 730STDCPPFS_LIBS 731STD_CXX 732LLVM_LLD 733COMPILER_VERSION 734COMPILER_TYPE 735EGREP 736GREP 737PKG_CONFIG_LIBDIR 738PKG_CONFIG_PATH 739PKG_CONFIG 740OBJDUMP 741STRINGS 742LD 743AR 744STRIP 745RANLIB 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749SET_MAKE 750CXXCPP 751ac_ct_CXX 752CXXFLAGS 753CXX 754CPP 755OBJEXT 756EXEEXT 757ac_ct_CC 758CPPFLAGS 759LDFLAGS 760CFLAGS 761CC 762target_os 763target_vendor 764target_cpu 765target 766host_os 767host_vendor 768host_cpu 769host 770build_os 771build_vendor 772build_cpu 773build 774target_alias 775host_alias 776build_alias 777LIBS 778ECHO_T 779ECHO_N 780ECHO_C 781DEFS 782mandir 783localedir 784libdir 785psdir 786pdfdir 787dvidir 788htmldir 789infodir 790docdir 791oldincludedir 792includedir 793runstatedir 794localstatedir 795sharedstatedir 796sysconfdir 797datadir 798datarootdir 799libexecdir 800sbindir 801bindir 802program_transform_name 803prefix 804exec_prefix 805PACKAGE_URL 806PACKAGE_BUGREPORT 807PACKAGE_STRING 808PACKAGE_VERSION 809PACKAGE_TARNAME 810PACKAGE_NAME 811PATH_SEPARATOR 812SHELL' 813ac_subst_files='' 814ac_user_opts=' 815enable_option_checking 816enable_update_check 817with_words 818with_extra_includes 819with_extra_libs 820with_drmingw 821enable_debug 822enable_profiling 823enable_optimization 824enable_addrsan 825enable_ubsan 826enable_precompiled_headers 827enable_static 828with_flac 829with_qmake6 830enable_gui 831enable_qt6 832with_qmake 833enable_qt5 834enable_static_qt 835with_qt_pkg_config_modules 836with_qt_pkg_config 837with_boost 838with_boost_libdir 839with_docbook_xsl_root 840with_xsltproc 841with_dvdread 842with_po4a 843with_po4a_translate 844with_gettext 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849CC 850CFLAGS 851LDFLAGS 852LIBS 853CPPFLAGS 854CPP 855CXX 856CXXFLAGS 857CCC 858CXXCPP 859PKG_CONFIG 860PKG_CONFIG_PATH 861PKG_CONFIG_LIBDIR 862EBML_CFLAGS 863EBML_LIBS 864MATROSKA_CFLAGS 865MATROSKA_LIBS 866PUGIXML_CFLAGS 867PUGIXML_LIBS 868ZLIB_CFLAGS 869ZLIB_LIBS 870libcmark_CFLAGS 871libcmark_LIBS 872dvdread_CFLAGS 873dvdread_LIBS' 874 875 876# Initialize some variables set by options. 877ac_init_help= 878ac_init_version=false 879ac_unrecognized_opts= 880ac_unrecognized_sep= 881# The variables have the same names as the options, with 882# dashes changed to underlines. 883cache_file=/dev/null 884exec_prefix=NONE 885no_create= 886no_recursion= 887prefix=NONE 888program_prefix=NONE 889program_suffix=NONE 890program_transform_name=s,x,x, 891silent= 892site= 893srcdir= 894verbose= 895x_includes=NONE 896x_libraries=NONE 897 898# Installation directory options. 899# These are left unexpanded so users can "make install exec_prefix=/foo" 900# and all the variables that are supposed to be based on exec_prefix 901# by default will actually change. 902# Use braces instead of parens because sh, perl, etc. also accept them. 903# (The list follows the same order as the GNU Coding Standards.) 904bindir='${exec_prefix}/bin' 905sbindir='${exec_prefix}/sbin' 906libexecdir='${exec_prefix}/libexec' 907datarootdir='${prefix}/share' 908datadir='${datarootdir}' 909sysconfdir='${prefix}/etc' 910sharedstatedir='${prefix}/com' 911localstatedir='${prefix}/var' 912runstatedir='${localstatedir}/run' 913includedir='${prefix}/include' 914oldincludedir='/usr/include' 915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916infodir='${datarootdir}/info' 917htmldir='${docdir}' 918dvidir='${docdir}' 919pdfdir='${docdir}' 920psdir='${docdir}' 921libdir='${exec_prefix}/lib' 922localedir='${datarootdir}/locale' 923mandir='${datarootdir}/man' 924 925ac_prev= 926ac_dashdash= 927for ac_option 928do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *=) ac_optarg= ;; 939 *) ac_optarg=yes ;; 940 esac 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: \`$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1164 | --runstate | --runstat | --runsta | --runst | --runs \ 1165 | --run | --ru | --r) 1166 ac_prev=runstatedir ;; 1167 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1168 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1169 | --run=* | --ru=* | --r=*) 1170 runstatedir=$ac_optarg ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: \`$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: \`$ac_useropt'" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1268Try \`$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295fi 1296 1297if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303fi 1304 1305# Check all directory arguments for consistency. 1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir runstatedir 1310do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340fi 1341 1342ac_tool_prefix= 1343test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345test "$silent" = yes && exec 6>/dev/null 1346 1347 1348ac_pwd=`pwd` && test -n "$ac_pwd" && 1349ac_ls_di=`ls -di .` && 1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error $? "working directory cannot be determined" 1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error $? "pwd does not report name of working directory" 1354 1355 1356# Find the source files, if location was not specified. 1357if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365printf "%s\n" X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387else 1388 ac_srcdir_defaulted=no 1389fi 1390if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397 pwd)` 1398# When building in place, set srcdir=. 1399if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401fi 1402# Remove unnecessary trailing slashes from srcdir. 1403# Double slashes in file names in object file debugging info 1404# mess up M-x gdb in Emacs. 1405case $srcdir in 1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407esac 1408for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413done 1414 1415# 1416# Report the --help message. 1417# 1418if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422\`configure' configures MKVToolNix 65.0.0 to adapt to many kinds of systems. 1423 1424Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429Defaults for the options are specified in brackets. 1430 1431Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print \`checking ...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for \`--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441 1442Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 @<:@@S|@ac_default_prefix@:>@ 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 @<:@PREFIX@:>@ 1447 1448By default, \`make install' will install all the files in 1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451for instance \`--prefix=\$HOME'. 1452 1453For better control, use the options below. 1454 1455Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/mkvtoolnix@:>@ 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480System types: 1481 --build=BUILD configure for building on BUILD [guessed] 1482 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1483 --target=TARGET configure for building compilers for TARGET [HOST] 1484_ACEOF 1485fi 1486 1487if test -n "$ac_init_help"; then 1488 case $ac_init_help in 1489 short | recursive ) echo "Configuration of MKVToolNix 65.0.0:";; 1490 esac 1491 cat <<\_ACEOF 1492 1493Optional Features: 1494 --disable-option-checking ignore unrecognized --enable/--with options 1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1497 --enable-update-check If enabled, the GUI will check online for available 1498 updates daily by downloading a small XML file from 1499 the MKVToolNix home page (yes) 1500 --enable-debug compile with debug information (no) 1501 --enable-profiling compile with profiling information (no) 1502 --enable-optimization compile with optimization: -O3 (yes) 1503 --enable-addrsan compile with address sanitization turned on (no) 1504 --enable-ubsan compile with sanitization for undefined behavior 1505 turned on (no) 1506 --enable-precompiled-headers 1507 enable the generation and use of precompiled headers 1508 (auto) 1509 --enable-static make a static build of the applications (no) 1510 --enable-gui compile the Qt-based GUI (yes) 1511 --enable-qt6 compile with Qt 6 (yes) 1512 --enable-qt5 compile with Qt 5 (yes if Qt 6 is not found) 1513 --enable-static-qt link to static versions of the Qt 5 library (no) 1514 1515Optional Packages: 1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1518 --with-words=endianness set endianness (big or little) 1519 --with-extra-includes=DIR 1520 Path to other include directories separated by ';' 1521 --with-extra-libs=DIR Path to other library directories separated by ';' 1522 --with-drmingw=path use link against Dr. MinGW's crash reporting library 1523 found in path 1524 --without-flac do not build with flac support 1525 --with-qmake6=prog use prog instead of looking for qmake6 1526 --with-qmake=prog use prog instead of looking for qmake for Qt 5 1527 --with-qt-pkg-config-modules=modules 1528 gather include/link flags for additional Qt 5 1529 modules from pkg-config 1530 --without-qt-pkg-config do not use pkg-config for detecting Qt 5; instead 1531 rely on QT_CFLAGS/QT_LIBS being set correctly 1532 already 1533 --with-boost@<:@=ARG@:>@ use Boost library from a standard location 1534 (ARG=yes), from the specified location (ARG=<path>), 1535 or disable it (ARG=no) @<:@ARG=yes@:>@ 1536 --with-boost-libdir=LIB_DIR 1537 Force given directory for boost libraries. Note that 1538 this will override library path detection, so use 1539 this parameter only if default library detection 1540 fails and you know exactly where your boost 1541 libraries are located. 1542 --with-docbook-xsl-root=dir 1543 use dir as base for DocBook XSL stylesheets instead 1544 of looking for it; must contain the 1545 "manpages/docbook.xsl" sub-directory and file 1546 --with-xsltproc=prog use prog instead of looking for xsltproc 1547 --without-dvdread do not build with libdvdread for reading chapters 1548 from DVDs 1549 --with-po4a=prog use prog instead of looking for po4a 1550 --with-po4a-translate=prog 1551 use prog instead of looking for po4a-translate 1552 --without-gettext do not build with gettext support 1553 1554Some influential environment variables: 1555 CC C compiler command 1556 CFLAGS C compiler flags 1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1558 nonstandard directory <lib dir> 1559 LIBS libraries to pass to the linker, e.g. -l<library> 1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1561 you have headers in a nonstandard directory <include dir> 1562 CPP C preprocessor 1563 CXX C++ compiler command 1564 CXXFLAGS C++ compiler flags 1565 CXXCPP C++ preprocessor 1566 PKG_CONFIG path to pkg-config utility 1567 PKG_CONFIG_PATH 1568 directories to add to pkg-config's search path 1569 PKG_CONFIG_LIBDIR 1570 path overriding pkg-config's built-in search path 1571 EBML_CFLAGS C compiler flags for EBML, overriding pkg-config 1572 EBML_LIBS linker flags for EBML, overriding pkg-config 1573 MATROSKA_CFLAGS 1574 C compiler flags for MATROSKA, overriding pkg-config 1575 MATROSKA_LIBS 1576 linker flags for MATROSKA, overriding pkg-config 1577 PUGIXML_CFLAGS 1578 C compiler flags for PUGIXML, overriding pkg-config 1579 PUGIXML_LIBS 1580 linker flags for PUGIXML, overriding pkg-config 1581 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1582 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1583 libcmark_CFLAGS 1584 C compiler flags for libcmark, overriding pkg-config 1585 libcmark_LIBS 1586 linker flags for libcmark, overriding pkg-config 1587 dvdread_CFLAGS 1588 C compiler flags for dvdread, overriding pkg-config 1589 dvdread_LIBS 1590 linker flags for dvdread, overriding pkg-config 1591 1592Use these variables to override the choices made by `configure' or to help 1593it to find libraries and programs with nonstandard names/locations. 1594 1595Report bugs to <https://gitlab.com/mbunkus/mkvtoolnix/issues/>. 1596_ACEOF 1597ac_status=$? 1598fi 1599 1600if test "$ac_init_help" = "recursive"; then 1601 # If there are subdirs, report their specific --help. 1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1603 test -d "$ac_dir" || 1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1605 continue 1606 ac_builddir=. 1607 1608case "$ac_dir" in 1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1610*) 1611 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1612 # A ".." for each directory in $ac_dir_suffix. 1613 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1614 case $ac_top_builddir_sub in 1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1617 esac ;; 1618esac 1619ac_abs_top_builddir=$ac_pwd 1620ac_abs_builddir=$ac_pwd$ac_dir_suffix 1621# for backward compatibility: 1622ac_top_builddir=$ac_top_build_prefix 1623 1624case $srcdir in 1625 .) # We are building in place. 1626 ac_srcdir=. 1627 ac_top_srcdir=$ac_top_builddir_sub 1628 ac_abs_top_srcdir=$ac_pwd ;; 1629 [\\/]* | ?:[\\/]* ) # Absolute name. 1630 ac_srcdir=$srcdir$ac_dir_suffix; 1631 ac_top_srcdir=$srcdir 1632 ac_abs_top_srcdir=$srcdir ;; 1633 *) # Relative name. 1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1635 ac_top_srcdir=$ac_top_build_prefix$srcdir 1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1637esac 1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1639 1640 cd "$ac_dir" || { ac_status=$?; continue; } 1641 # Check for configure.gnu first; this name is used for a wrapper for 1642 # Metaconfig's "Configure" on case-insensitive file systems. 1643 if test -f "$ac_srcdir/configure.gnu"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1646 elif test -f "$ac_srcdir/configure"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure" --help=recursive 1649 else 1650 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1651 fi || ac_status=$? 1652 cd "$ac_pwd" || { ac_status=$?; break; } 1653 done 1654fi 1655 1656test -n "$ac_init_help" && exit $ac_status 1657if $ac_init_version; then 1658 cat <<\_ACEOF 1659MKVToolNix configure 65.0.0 1660generated by GNU Autoconf 2.71 1661 1662Copyright (C) 2021 Free Software Foundation, Inc. 1663This configure script is free software; the Free Software Foundation 1664gives unlimited permission to copy, distribute and modify it. 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673@%:@ ac_fn_c_try_compile LINENO 1674@%:@ -------------------------- 1675@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1676ac_fn_c_try_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext conftest.beam 1680 if { { ac_try="$ac_compile" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686printf "%s\n" "$ac_try_echo"; } >&5 1687 (eval "$ac_compile") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest.$ac_objext 1699then : 1700 ac_retval=0 1701else $as_nop 1702 printf "%s\n" "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} @%:@ ac_fn_c_try_compile 1711 1712@%:@ ac_fn_c_try_cpp LINENO 1713@%:@ ---------------------- 1714@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1715ac_fn_c_try_cpp () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 if { { ac_try="$ac_cpp conftest.$ac_ext" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724printf "%s\n" "$ac_try_echo"; } >&5 1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } > conftest.i && { 1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } 1737then : 1738 ac_retval=0 1739else $as_nop 1740 printf "%s\n" "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} @%:@ ac_fn_c_try_cpp 1749 1750@%:@ ac_fn_cxx_try_compile LINENO 1751@%:@ ---------------------------- 1752@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1753ac_fn_cxx_try_compile () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 rm -f conftest.$ac_objext conftest.beam 1757 if { { ac_try="$ac_compile" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763printf "%s\n" "$ac_try_echo"; } >&5 1764 (eval "$ac_compile") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { 1773 test -z "$ac_cxx_werror_flag" || 1774 test ! -s conftest.err 1775 } && test -s conftest.$ac_objext 1776then : 1777 ac_retval=0 1778else $as_nop 1779 printf "%s\n" "$as_me: failed program was:" >&5 1780sed 's/^/| /' conftest.$ac_ext >&5 1781 1782 ac_retval=1 1783fi 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} @%:@ ac_fn_cxx_try_compile 1788 1789@%:@ ac_fn_cxx_try_cpp LINENO 1790@%:@ ------------------------ 1791@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1792ac_fn_cxx_try_cpp () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_cpp conftest.$ac_ext" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801printf "%s\n" "$ac_try_echo"; } >&5 1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } > conftest.i && { 1811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1812 test ! -s conftest.err 1813 } 1814then : 1815 ac_retval=0 1816else $as_nop 1817 printf "%s\n" "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} @%:@ ac_fn_cxx_try_cpp 1826 1827@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1828@%:@ ------------------------------------------------------- 1829@%:@ Tests whether HEADER exists and can be compiled using the include files in 1830@%:@ INCLUDES, setting the cache variable VAR accordingly. 1831ac_fn_c_check_header_compile () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835printf %s "checking for $2... " >&6; } 1836if eval test \${$3+y} 1837then : 1838 printf %s "(cached) " >&6 1839else $as_nop 1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842$4 1843@%:@include <$2> 1844_ACEOF 1845if ac_fn_c_try_compile "$LINENO" 1846then : 1847 eval "$3=yes" 1848else $as_nop 1849 eval "$3=no" 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1852fi 1853eval ac_res=\$$3 1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855printf "%s\n" "$ac_res" >&6; } 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 1858} @%:@ ac_fn_c_check_header_compile 1859 1860@%:@ ac_fn_c_try_link LINENO 1861@%:@ ----------------------- 1862@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1863ac_fn_c_try_link () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1867 if { { ac_try="$ac_link" 1868case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873printf "%s\n" "$ac_try_echo"; } >&5 1874 (eval "$ac_link") 2>conftest.err 1875 ac_status=$? 1876 if test -s conftest.err; then 1877 grep -v '^ *+' conftest.err >conftest.er1 1878 cat conftest.er1 >&5 1879 mv -f conftest.er1 conftest.err 1880 fi 1881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1882 test $ac_status = 0; } && { 1883 test -z "$ac_c_werror_flag" || 1884 test ! -s conftest.err 1885 } && test -s conftest$ac_exeext && { 1886 test "$cross_compiling" = yes || 1887 test -x conftest$ac_exeext 1888 } 1889then : 1890 ac_retval=0 1891else $as_nop 1892 printf "%s\n" "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} @%:@ ac_fn_c_try_link 1906 1907@%:@ ac_fn_c_check_func LINENO FUNC VAR 1908@%:@ ---------------------------------- 1909@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1910ac_fn_c_check_func () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914printf %s "checking for $2... " >&6; } 1915if eval test \${$3+y} 1916then : 1917 printf %s "(cached) " >&6 1918else $as_nop 1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1922 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1923#define $2 innocuous_$2 1924 1925/* System header to define __stub macros and hopefully few prototypes, 1926 which can conflict with char $2 (); below. */ 1927 1928#include <limits.h> 1929#undef $2 1930 1931/* Override any GCC internal prototype to avoid an error. 1932 Use char because int might match the return type of a GCC 1933 builtin and then its argument prototype would still apply. */ 1934#ifdef __cplusplus 1935extern "C" 1936#endif 1937char $2 (); 1938/* The GNU C library defines this for functions which it implements 1939 to always fail with ENOSYS. Some functions are actually named 1940 something starting with __ and the normal name is an alias. */ 1941#if defined __stub_$2 || defined __stub___$2 1942choke me 1943#endif 1944 1945int 1946main (void) 1947{ 1948return $2 (); 1949 ; 1950 return 0; 1951} 1952_ACEOF 1953if ac_fn_c_try_link "$LINENO" 1954then : 1955 eval "$3=yes" 1956else $as_nop 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1960 conftest$ac_exeext conftest.$ac_ext 1961fi 1962eval ac_res=\$$3 1963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964printf "%s\n" "$ac_res" >&6; } 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1966 1967} @%:@ ac_fn_c_check_func 1968 1969@%:@ ac_fn_cxx_try_link LINENO 1970@%:@ ------------------------- 1971@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1972ac_fn_cxx_try_link () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1976 if { { ac_try="$ac_link" 1977case "(($ac_try" in 1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1979 *) ac_try_echo=$ac_try;; 1980esac 1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1982printf "%s\n" "$ac_try_echo"; } >&5 1983 (eval "$ac_link") 2>conftest.err 1984 ac_status=$? 1985 if test -s conftest.err; then 1986 grep -v '^ *+' conftest.err >conftest.er1 1987 cat conftest.er1 >&5 1988 mv -f conftest.er1 conftest.err 1989 fi 1990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1991 test $ac_status = 0; } && { 1992 test -z "$ac_cxx_werror_flag" || 1993 test ! -s conftest.err 1994 } && test -s conftest$ac_exeext && { 1995 test "$cross_compiling" = yes || 1996 test -x conftest$ac_exeext 1997 } 1998then : 1999 ac_retval=0 2000else $as_nop 2001 printf "%s\n" "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2008 # interfere with the next link command; also delete a directory that is 2009 # left behind by Apple's compiler. We do this before executing the actions. 2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 as_fn_set_status $ac_retval 2013 2014} @%:@ ac_fn_cxx_try_link 2015 2016@%:@ ac_fn_c_try_run LINENO 2017@%:@ ---------------------- 2018@%:@ Try to run conftest.@S|@ac_ext, and return whether this succeeded. Assumes that 2019@%:@ executables *can* be run. 2020ac_fn_c_try_run () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 if { { ac_try="$ac_link" 2024case "(($ac_try" in 2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2026 *) ac_try_echo=$ac_try;; 2027esac 2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2029printf "%s\n" "$ac_try_echo"; } >&5 2030 (eval "$ac_link") 2>&5 2031 ac_status=$? 2032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2033 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2034 { { case "(($ac_try" in 2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2036 *) ac_try_echo=$ac_try;; 2037esac 2038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2039printf "%s\n" "$ac_try_echo"; } >&5 2040 (eval "$ac_try") 2>&5 2041 ac_status=$? 2042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2043 test $ac_status = 0; }; } 2044then : 2045 ac_retval=0 2046else $as_nop 2047 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2048 printf "%s\n" "$as_me: failed program was:" >&5 2049sed 's/^/| /' conftest.$ac_ext >&5 2050 2051 ac_retval=$ac_status 2052fi 2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 as_fn_set_status $ac_retval 2056 2057} @%:@ ac_fn_c_try_run 2058 2059@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2060@%:@ -------------------------------------------- 2061@%:@ Tries to find the compile-time value of EXPR in a program that includes 2062@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be 2063@%:@ computed 2064ac_fn_c_compute_int () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 if test "$cross_compiling" = yes; then 2068 # Depending upon the size, compute the lo and hi bounds. 2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$4 2072int 2073main (void) 2074{ 2075static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; 2076test_array @<:@0@:>@ = 0; 2077return test_array @<:@0@:>@; 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO" 2084then : 2085 ac_lo=0 ac_mid=0 2086 while :; do 2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2088/* end confdefs.h. */ 2089$4 2090int 2091main (void) 2092{ 2093static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; 2094test_array @<:@0@:>@ = 0; 2095return test_array @<:@0@:>@; 2096 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101if ac_fn_c_try_compile "$LINENO" 2102then : 2103 ac_hi=$ac_mid; break 2104else $as_nop 2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2106 if test $ac_lo -le $ac_mid; then 2107 ac_lo= ac_hi= 2108 break 2109 fi 2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2113 done 2114else $as_nop 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$4 2118int 2119main (void) 2120{ 2121static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; 2122test_array @<:@0@:>@ = 0; 2123return test_array @<:@0@:>@; 2124 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129if ac_fn_c_try_compile "$LINENO" 2130then : 2131 ac_hi=-1 ac_mid=-1 2132 while :; do 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134/* end confdefs.h. */ 2135$4 2136int 2137main (void) 2138{ 2139static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; 2140test_array @<:@0@:>@ = 0; 2141return test_array @<:@0@:>@; 2142 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_c_try_compile "$LINENO" 2148then : 2149 ac_lo=$ac_mid; break 2150else $as_nop 2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2152 if test $ac_mid -le $ac_hi; then 2153 ac_lo= ac_hi= 2154 break 2155 fi 2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2157fi 2158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2159 done 2160else $as_nop 2161 ac_lo= ac_hi= 2162fi 2163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2166# Binary search between lo and hi bounds. 2167while test "x$ac_lo" != "x$ac_hi"; do 2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170/* end confdefs.h. */ 2171$4 2172int 2173main (void) 2174{ 2175static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; 2176test_array @<:@0@:>@ = 0; 2177return test_array @<:@0@:>@; 2178 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183if ac_fn_c_try_compile "$LINENO" 2184then : 2185 ac_hi=$ac_mid 2186else $as_nop 2187 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2188fi 2189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2190done 2191case $ac_lo in @%:@(( 2192?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2193'') ac_retval=1 ;; 2194esac 2195 else 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199static long int longval (void) { return $2; } 2200static unsigned long int ulongval (void) { return $2; } 2201@%:@include <stdio.h> 2202@%:@include <stdlib.h> 2203int 2204main (void) 2205{ 2206 2207 FILE *f = fopen ("conftest.val", "w"); 2208 if (! f) 2209 return 1; 2210 if (($2) < 0) 2211 { 2212 long int i = longval (); 2213 if (i != ($2)) 2214 return 1; 2215 fprintf (f, "%ld", i); 2216 } 2217 else 2218 { 2219 unsigned long int i = ulongval (); 2220 if (i != ($2)) 2221 return 1; 2222 fprintf (f, "%lu", i); 2223 } 2224 /* Do not output a trailing newline, as this causes \r\n confusion 2225 on some platforms. */ 2226 return ferror (f) || fclose (f) != 0; 2227 2228 ; 2229 return 0; 2230} 2231_ACEOF 2232if ac_fn_c_try_run "$LINENO" 2233then : 2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2235else $as_nop 2236 ac_retval=1 2237fi 2238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2239 conftest.$ac_objext conftest.beam conftest.$ac_ext 2240rm -f conftest.val 2241 2242 fi 2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2244 as_fn_set_status $ac_retval 2245 2246} @%:@ ac_fn_c_compute_int 2247 2248@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2249@%:@ ---------------------------------------------------- 2250@%:@ Tries to find if the field MEMBER exists in type AGGR, after including 2251@%:@ INCLUDES, setting cache variable VAR accordingly. 2252ac_fn_c_check_member () 2253{ 2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2256printf %s "checking for $2.$3... " >&6; } 2257if eval test \${$4+y} 2258then : 2259 printf %s "(cached) " >&6 2260else $as_nop 2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262/* end confdefs.h. */ 2263$5 2264int 2265main (void) 2266{ 2267static $2 ac_aggr; 2268if (ac_aggr.$3) 2269return 0; 2270 ; 2271 return 0; 2272} 2273_ACEOF 2274if ac_fn_c_try_compile "$LINENO" 2275then : 2276 eval "$4=yes" 2277else $as_nop 2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2279/* end confdefs.h. */ 2280$5 2281int 2282main (void) 2283{ 2284static $2 ac_aggr; 2285if (sizeof ac_aggr.$3) 2286return 0; 2287 ; 2288 return 0; 2289} 2290_ACEOF 2291if ac_fn_c_try_compile "$LINENO" 2292then : 2293 eval "$4=yes" 2294else $as_nop 2295 eval "$4=no" 2296fi 2297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2298fi 2299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2300fi 2301eval ac_res=\$$4 2302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2303printf "%s\n" "$ac_res" >&6; } 2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2305 2306} @%:@ ac_fn_c_check_member 2307 2308@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2309@%:@ --------------------------------------------------------- 2310@%:@ Tests whether HEADER exists and can be compiled using the include files in 2311@%:@ INCLUDES, setting the cache variable VAR accordingly. 2312ac_fn_cxx_check_header_compile () 2313{ 2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2316printf %s "checking for $2... " >&6; } 2317if eval test \${$3+y} 2318then : 2319 printf %s "(cached) " >&6 2320else $as_nop 2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2322/* end confdefs.h. */ 2323$4 2324@%:@include <$2> 2325_ACEOF 2326if ac_fn_cxx_try_compile "$LINENO" 2327then : 2328 eval "$3=yes" 2329else $as_nop 2330 eval "$3=no" 2331fi 2332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2333fi 2334eval ac_res=\$$3 2335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2336printf "%s\n" "$ac_res" >&6; } 2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2338 2339} @%:@ ac_fn_cxx_check_header_compile 2340 2341@%:@ ac_fn_cxx_check_func LINENO FUNC VAR 2342@%:@ ------------------------------------ 2343@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 2344ac_fn_cxx_check_func () 2345{ 2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2348printf %s "checking for $2... " >&6; } 2349if eval test \${$3+y} 2350then : 2351 printf %s "(cached) " >&6 2352else $as_nop 2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2354/* end confdefs.h. */ 2355/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2356 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2357#define $2 innocuous_$2 2358 2359/* System header to define __stub macros and hopefully few prototypes, 2360 which can conflict with char $2 (); below. */ 2361 2362#include <limits.h> 2363#undef $2 2364 2365/* Override any GCC internal prototype to avoid an error. 2366 Use char because int might match the return type of a GCC 2367 builtin and then its argument prototype would still apply. */ 2368#ifdef __cplusplus 2369extern "C" 2370#endif 2371char $2 (); 2372/* The GNU C library defines this for functions which it implements 2373 to always fail with ENOSYS. Some functions are actually named 2374 something starting with __ and the normal name is an alias. */ 2375#if defined __stub_$2 || defined __stub___$2 2376choke me 2377#endif 2378 2379int 2380main (void) 2381{ 2382return $2 (); 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387if ac_fn_cxx_try_link "$LINENO" 2388then : 2389 eval "$3=yes" 2390else $as_nop 2391 eval "$3=no" 2392fi 2393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2394 conftest$ac_exeext conftest.$ac_ext 2395fi 2396eval ac_res=\$$3 2397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2398printf "%s\n" "$ac_res" >&6; } 2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2400 2401} @%:@ ac_fn_cxx_check_func 2402ac_configure_args_raw= 2403for ac_arg 2404do 2405 case $ac_arg in 2406 *\'*) 2407 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2408 esac 2409 as_fn_append ac_configure_args_raw " '$ac_arg'" 2410done 2411 2412case $ac_configure_args_raw in 2413 *$as_nl*) 2414 ac_safe_unquote= ;; 2415 *) 2416 ac_unsafe_z='|&;<>()$`\\"*?@<:@ '' ' # This string ends in space, tab. 2417 ac_unsafe_a="$ac_unsafe_z#~" 2418 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2419 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2420esac 2421 2422cat >config.log <<_ACEOF 2423This file contains any messages produced by compilers while 2424running configure, to aid debugging if configure makes a mistake. 2425 2426It was created by MKVToolNix $as_me 65.0.0, which was 2427generated by GNU Autoconf 2.71. Invocation command line was 2428 2429 $ $0$ac_configure_args_raw 2430 2431_ACEOF 2432exec 5>>config.log 2433{ 2434cat <<_ASUNAME 2435## --------- ## 2436## Platform. ## 2437## --------- ## 2438 2439hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2440uname -m = `(uname -m) 2>/dev/null || echo unknown` 2441uname -r = `(uname -r) 2>/dev/null || echo unknown` 2442uname -s = `(uname -s) 2>/dev/null || echo unknown` 2443uname -v = `(uname -v) 2>/dev/null || echo unknown` 2444 2445/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2446/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2447 2448/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2449/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2450/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2451/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2452/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2453/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2454/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2455 2456_ASUNAME 2457 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 case $as_dir in #((( 2463 '') as_dir=./ ;; 2464 */) ;; 2465 *) as_dir=$as_dir/ ;; 2466 esac 2467 printf "%s\n" "PATH: $as_dir" 2468 done 2469IFS=$as_save_IFS 2470 2471} >&5 2472 2473cat >&5 <<_ACEOF 2474 2475 2476## ----------- ## 2477## Core tests. ## 2478## ----------- ## 2479 2480_ACEOF 2481 2482 2483# Keep a trace of the command line. 2484# Strip out --no-create and --no-recursion so they do not pile up. 2485# Strip out --silent because we don't want to record it for future runs. 2486# Also quote any args containing shell meta-characters. 2487# Make two passes to allow for proper duplicate-argument suppression. 2488ac_configure_args= 2489ac_configure_args0= 2490ac_configure_args1= 2491ac_must_keep_next=false 2492for ac_pass in 1 2 2493do 2494 for ac_arg 2495 do 2496 case $ac_arg in 2497 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2499 | -silent | --silent | --silen | --sile | --sil) 2500 continue ;; 2501 *\'*) 2502 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2503 esac 2504 case $ac_pass in 2505 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2506 2) 2507 as_fn_append ac_configure_args1 " '$ac_arg'" 2508 if test $ac_must_keep_next = true; then 2509 ac_must_keep_next=false # Got value, back to normal. 2510 else 2511 case $ac_arg in 2512 *=* | --config-cache | -C | -disable-* | --disable-* \ 2513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2515 | -with-* | --with-* | -without-* | --without-* | --x) 2516 case "$ac_configure_args0 " in 2517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2518 esac 2519 ;; 2520 -* ) ac_must_keep_next=true ;; 2521 esac 2522 fi 2523 as_fn_append ac_configure_args " '$ac_arg'" 2524 ;; 2525 esac 2526 done 2527done 2528{ ac_configure_args0=; unset ac_configure_args0;} 2529{ ac_configure_args1=; unset ac_configure_args1;} 2530 2531# When interrupted or exit'd, cleanup temporary files, and complete 2532# config.log. We remove comments because anyway the quotes in there 2533# would cause problems or look ugly. 2534# WARNING: Use '\'' to represent an apostrophe within the trap. 2535# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2536trap 'exit_status=$? 2537 # Sanitize IFS. 2538 IFS=" "" $as_nl" 2539 # Save into config.log some information that might help in debugging. 2540 { 2541 echo 2542 2543 printf "%s\n" "## ---------------- ## 2544## Cache variables. ## 2545## ---------------- ##" 2546 echo 2547 # The following way of writing the cache mishandles newlines in values, 2548( 2549 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2550 eval ac_val=\$$ac_var 2551 case $ac_val in #( 2552 *${as_nl}*) 2553 case $ac_var in #( 2554 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2555printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2556 esac 2557 case $ac_var in #( 2558 _ | IFS | as_nl) ;; #( 2559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2560 *) { eval $ac_var=; unset $ac_var;} ;; 2561 esac ;; 2562 esac 2563 done 2564 (set) 2>&1 | 2565 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2566 *${as_nl}ac_space=\ *) 2567 sed -n \ 2568 "s/'\''/'\''\\\\'\'''\''/g; 2569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2570 ;; #( 2571 *) 2572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2573 ;; 2574 esac | 2575 sort 2576) 2577 echo 2578 2579 printf "%s\n" "## ----------------- ## 2580## Output variables. ## 2581## ----------------- ##" 2582 echo 2583 for ac_var in $ac_subst_vars 2584 do 2585 eval ac_val=\$$ac_var 2586 case $ac_val in 2587 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2588 esac 2589 printf "%s\n" "$ac_var='\''$ac_val'\''" 2590 done | sort 2591 echo 2592 2593 if test -n "$ac_subst_files"; then 2594 printf "%s\n" "## ------------------- ## 2595## File substitutions. ## 2596## ------------------- ##" 2597 echo 2598 for ac_var in $ac_subst_files 2599 do 2600 eval ac_val=\$$ac_var 2601 case $ac_val in 2602 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2603 esac 2604 printf "%s\n" "$ac_var='\''$ac_val'\''" 2605 done | sort 2606 echo 2607 fi 2608 2609 if test -s confdefs.h; then 2610 printf "%s\n" "## ----------- ## 2611## confdefs.h. ## 2612## ----------- ##" 2613 echo 2614 cat confdefs.h 2615 echo 2616 fi 2617 test "$ac_signal" != 0 && 2618 printf "%s\n" "$as_me: caught signal $ac_signal" 2619 printf "%s\n" "$as_me: exit $exit_status" 2620 } >&5 2621 rm -f core *.core core.conftest.* && 2622 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2623 exit $exit_status 2624' 0 2625for ac_signal in 1 2 13 15; do 2626 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2627done 2628ac_signal=0 2629 2630# confdefs.h avoids OS command line length limits that DEFS can exceed. 2631rm -f -r conftest* confdefs.h 2632 2633printf "%s\n" "/* confdefs.h */" > confdefs.h 2634 2635# Predefined preprocessor variables. 2636 2637printf "%s\n" "@%:@define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2638 2639printf "%s\n" "@%:@define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2640 2641printf "%s\n" "@%:@define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2642 2643printf "%s\n" "@%:@define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2644 2645printf "%s\n" "@%:@define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2646 2647printf "%s\n" "@%:@define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2648 2649 2650# Let the site file select an alternate cache file if it wants to. 2651# Prefer an explicitly selected file to automatically selected ones. 2652if test -n "$CONFIG_SITE"; then 2653 ac_site_files="$CONFIG_SITE" 2654elif test "x$prefix" != xNONE; then 2655 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2656else 2657 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2658fi 2659 2660for ac_site_file in $ac_site_files 2661do 2662 case $ac_site_file in @%:@( 2663 */*) : 2664 ;; @%:@( 2665 *) : 2666 ac_site_file=./$ac_site_file ;; 2667esac 2668 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2670printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2671 sed 's/^/| /' "$ac_site_file" >&5 2672 . "$ac_site_file" \ 2673 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2675as_fn_error $? "failed to load site script $ac_site_file 2676See \`config.log' for more details" "$LINENO" 5; } 2677 fi 2678done 2679 2680if test -r "$cache_file"; then 2681 # Some versions of bash will fail to source /dev/null (special files 2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2685printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2686 case $cache_file in 2687 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2688 *) . "./$cache_file";; 2689 esac 2690 fi 2691else 2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2693printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2694 >$cache_file 2695fi 2696 2697# Test code for whether the C compiler supports C89 (global declarations) 2698ac_c_conftest_c89_globals=' 2699/* Does the compiler advertise C89 conformance? 2700 Do not test the value of __STDC__, because some compilers set it to 0 2701 while being otherwise adequately conformant. */ 2702#if !defined __STDC__ 2703# error "Compiler does not advertise C89 conformance" 2704#endif 2705 2706#include <stddef.h> 2707#include <stdarg.h> 2708struct stat; 2709/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2710struct buf { int x; }; 2711struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2712static char *e (p, i) 2713 char **p; 2714 int i; 2715{ 2716 return p[i]; 2717} 2718static char *f (char * (*g) (char **, int), char **p, ...) 2719{ 2720 char *s; 2721 va_list v; 2722 va_start (v,p); 2723 s = g (p, va_arg (v,int)); 2724 va_end (v); 2725 return s; 2726} 2727 2728/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2729 function prototypes and stuff, but not \xHH hex character constants. 2730 These do not provoke an error unfortunately, instead are silently treated 2731 as an "x". The following induces an error, until -std is added to get 2732 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2733 array size at least. It is necessary to write \x00 == 0 to get something 2734 that is true only with -std. */ 2735int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2736 2737/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2738 inside strings and character constants. */ 2739#define FOO(x) '\''x'\'' 2740int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2741 2742int test (int i, double x); 2743struct s1 {int (*f) (int a);}; 2744struct s2 {int (*f) (double a);}; 2745int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2746 int, int);' 2747 2748# Test code for whether the C compiler supports C89 (body of main). 2749ac_c_conftest_c89_main=' 2750ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2751' 2752 2753# Test code for whether the C compiler supports C99 (global declarations) 2754ac_c_conftest_c99_globals=' 2755// Does the compiler advertise C99 conformance? 2756#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2757# error "Compiler does not advertise C99 conformance" 2758#endif 2759 2760#include <stdbool.h> 2761extern int puts (const char *); 2762extern int printf (const char *, ...); 2763extern int dprintf (int, const char *, ...); 2764extern void *malloc (size_t); 2765 2766// Check varargs macros. These examples are taken from C99 6.10.3.5. 2767// dprintf is used instead of fprintf to avoid needing to declare 2768// FILE and stderr. 2769#define debug(...) dprintf (2, __VA_ARGS__) 2770#define showlist(...) puts (#__VA_ARGS__) 2771#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2772static void 2773test_varargs_macros (void) 2774{ 2775 int x = 1234; 2776 int y = 5678; 2777 debug ("Flag"); 2778 debug ("X = %d\n", x); 2779 showlist (The first, second, and third items.); 2780 report (x>y, "x is %d but y is %d", x, y); 2781} 2782 2783// Check long long types. 2784#define BIG64 18446744073709551615ull 2785#define BIG32 4294967295ul 2786#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2787#if !BIG_OK 2788 #error "your preprocessor is broken" 2789#endif 2790#if BIG_OK 2791#else 2792 #error "your preprocessor is broken" 2793#endif 2794static long long int bignum = -9223372036854775807LL; 2795static unsigned long long int ubignum = BIG64; 2796 2797struct incomplete_array 2798{ 2799 int datasize; 2800 double data[]; 2801}; 2802 2803struct named_init { 2804 int number; 2805 const wchar_t *name; 2806 double average; 2807}; 2808 2809typedef const char *ccp; 2810 2811static inline int 2812test_restrict (ccp restrict text) 2813{ 2814 // See if C++-style comments work. 2815 // Iterate through items via the restricted pointer. 2816 // Also check for declarations in for loops. 2817 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2818 continue; 2819 return 0; 2820} 2821 2822// Check varargs and va_copy. 2823static bool 2824test_varargs (const char *format, ...) 2825{ 2826 va_list args; 2827 va_start (args, format); 2828 va_list args_copy; 2829 va_copy (args_copy, args); 2830 2831 const char *str = ""; 2832 int number = 0; 2833 float fnumber = 0; 2834 2835 while (*format) 2836 { 2837 switch (*format++) 2838 { 2839 case '\''s'\'': // string 2840 str = va_arg (args_copy, const char *); 2841 break; 2842 case '\''d'\'': // int 2843 number = va_arg (args_copy, int); 2844 break; 2845 case '\''f'\'': // float 2846 fnumber = va_arg (args_copy, double); 2847 break; 2848 default: 2849 break; 2850 } 2851 } 2852 va_end (args_copy); 2853 va_end (args); 2854 2855 return *str && number && fnumber; 2856} 2857' 2858 2859# Test code for whether the C compiler supports C99 (body of main). 2860ac_c_conftest_c99_main=' 2861 // Check bool. 2862 _Bool success = false; 2863 success |= (argc != 0); 2864 2865 // Check restrict. 2866 if (test_restrict ("String literal") == 0) 2867 success = true; 2868 char *restrict newvar = "Another string"; 2869 2870 // Check varargs. 2871 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2872 test_varargs_macros (); 2873 2874 // Check flexible array members. 2875 struct incomplete_array *ia = 2876 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2877 ia->datasize = 10; 2878 for (int i = 0; i < ia->datasize; ++i) 2879 ia->data[i] = i * 1.234; 2880 2881 // Check named initializers. 2882 struct named_init ni = { 2883 .number = 34, 2884 .name = L"Test wide string", 2885 .average = 543.34343, 2886 }; 2887 2888 ni.number = 58; 2889 2890 int dynamic_array[ni.number]; 2891 dynamic_array[0] = argv[0][0]; 2892 dynamic_array[ni.number - 1] = 543; 2893 2894 // work around unused variable warnings 2895 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2896 || dynamic_array[ni.number - 1] != 543); 2897' 2898 2899# Test code for whether the C compiler supports C11 (global declarations) 2900ac_c_conftest_c11_globals=' 2901// Does the compiler advertise C11 conformance? 2902#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2903# error "Compiler does not advertise C11 conformance" 2904#endif 2905 2906// Check _Alignas. 2907char _Alignas (double) aligned_as_double; 2908char _Alignas (0) no_special_alignment; 2909extern char aligned_as_int; 2910char _Alignas (0) _Alignas (int) aligned_as_int; 2911 2912// Check _Alignof. 2913enum 2914{ 2915 int_alignment = _Alignof (int), 2916 int_array_alignment = _Alignof (int[100]), 2917 char_alignment = _Alignof (char) 2918}; 2919_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2920 2921// Check _Noreturn. 2922int _Noreturn does_not_return (void) { for (;;) continue; } 2923 2924// Check _Static_assert. 2925struct test_static_assert 2926{ 2927 int x; 2928 _Static_assert (sizeof (int) <= sizeof (long int), 2929 "_Static_assert does not work in struct"); 2930 long int y; 2931}; 2932 2933// Check UTF-8 literals. 2934#define u8 syntax error! 2935char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2936 2937// Check duplicate typedefs. 2938typedef long *long_ptr; 2939typedef long int *long_ptr; 2940typedef long_ptr long_ptr; 2941 2942// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2943struct anonymous 2944{ 2945 union { 2946 struct { int i; int j; }; 2947 struct { int k; long int l; } w; 2948 }; 2949 int m; 2950} v1; 2951' 2952 2953# Test code for whether the C compiler supports C11 (body of main). 2954ac_c_conftest_c11_main=' 2955 _Static_assert ((offsetof (struct anonymous, i) 2956 == offsetof (struct anonymous, w.k)), 2957 "Anonymous union alignment botch"); 2958 v1.i = 2; 2959 v1.w.k = 5; 2960 ok |= v1.i != 5; 2961' 2962 2963# Test code for whether the C compiler supports C11 (complete). 2964ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2965${ac_c_conftest_c99_globals} 2966${ac_c_conftest_c11_globals} 2967 2968int 2969main (int argc, char **argv) 2970{ 2971 int ok = 0; 2972 ${ac_c_conftest_c89_main} 2973 ${ac_c_conftest_c99_main} 2974 ${ac_c_conftest_c11_main} 2975 return ok; 2976} 2977" 2978 2979# Test code for whether the C compiler supports C99 (complete). 2980ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2981${ac_c_conftest_c99_globals} 2982 2983int 2984main (int argc, char **argv) 2985{ 2986 int ok = 0; 2987 ${ac_c_conftest_c89_main} 2988 ${ac_c_conftest_c99_main} 2989 return ok; 2990} 2991" 2992 2993# Test code for whether the C compiler supports C89 (complete). 2994ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2995 2996int 2997main (int argc, char **argv) 2998{ 2999 int ok = 0; 3000 ${ac_c_conftest_c89_main} 3001 return ok; 3002} 3003" 3004 3005# Test code for whether the C++ compiler supports C++98 (global declarations) 3006ac_cxx_conftest_cxx98_globals=' 3007// Does the compiler advertise C++98 conformance? 3008#if !defined __cplusplus || __cplusplus < 199711L 3009# error "Compiler does not advertise C++98 conformance" 3010#endif 3011 3012// These inclusions are to reject old compilers that 3013// lack the unsuffixed header files. 3014#include <cstdlib> 3015#include <exception> 3016 3017// <cassert> and <cstring> are *not* freestanding headers in C++98. 3018extern void assert (int); 3019namespace std { 3020 extern int strcmp (const char *, const char *); 3021} 3022 3023// Namespaces, exceptions, and templates were all added after "C++ 2.0". 3024using std::exception; 3025using std::strcmp; 3026 3027namespace { 3028 3029void test_exception_syntax() 3030{ 3031 try { 3032 throw "test"; 3033 } catch (const char *s) { 3034 // Extra parentheses suppress a warning when building autoconf itself, 3035 // due to lint rules shared with more typical C programs. 3036 assert (!(strcmp) (s, "test")); 3037 } 3038} 3039 3040template <typename T> struct test_template 3041{ 3042 T const val; 3043 explicit test_template(T t) : val(t) {} 3044 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 3045}; 3046 3047} // anonymous namespace 3048' 3049 3050# Test code for whether the C++ compiler supports C++98 (body of main) 3051ac_cxx_conftest_cxx98_main=' 3052 assert (argc); 3053 assert (! argv[0]); 3054{ 3055 test_exception_syntax (); 3056 test_template<double> tt (2.0); 3057 assert (tt.add (4) == 6.0); 3058 assert (true && !false); 3059} 3060' 3061 3062# Test code for whether the C++ compiler supports C++11 (global declarations) 3063ac_cxx_conftest_cxx11_globals=' 3064// Does the compiler advertise C++ 2011 conformance? 3065#if !defined __cplusplus || __cplusplus < 201103L 3066# error "Compiler does not advertise C++11 conformance" 3067#endif 3068 3069namespace cxx11test 3070{ 3071 constexpr int get_val() { return 20; } 3072 3073 struct testinit 3074 { 3075 int i; 3076 double d; 3077 }; 3078 3079 class delegate 3080 { 3081 public: 3082 delegate(int n) : n(n) {} 3083 delegate(): delegate(2354) {} 3084 3085 virtual int getval() { return this->n; }; 3086 protected: 3087 int n; 3088 }; 3089 3090 class overridden : public delegate 3091 { 3092 public: 3093 overridden(int n): delegate(n) {} 3094 virtual int getval() override final { return this->n * 2; } 3095 }; 3096 3097 class nocopy 3098 { 3099 public: 3100 nocopy(int i): i(i) {} 3101 nocopy() = default; 3102 nocopy(const nocopy&) = delete; 3103 nocopy & operator=(const nocopy&) = delete; 3104 private: 3105 int i; 3106 }; 3107 3108 // for testing lambda expressions 3109 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3110 { 3111 return f(v); 3112 } 3113 3114 // for testing variadic templates and trailing return types 3115 template <typename V> auto sum(V first) -> V 3116 { 3117 return first; 3118 } 3119 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3120 { 3121 return first + sum(rest...); 3122 } 3123} 3124' 3125 3126# Test code for whether the C++ compiler supports C++11 (body of main) 3127ac_cxx_conftest_cxx11_main=' 3128{ 3129 // Test auto and decltype 3130 auto a1 = 6538; 3131 auto a2 = 48573953.4; 3132 auto a3 = "String literal"; 3133 3134 int total = 0; 3135 for (auto i = a3; *i; ++i) { total += *i; } 3136 3137 decltype(a2) a4 = 34895.034; 3138} 3139{ 3140 // Test constexpr 3141 short sa[cxx11test::get_val()] = { 0 }; 3142} 3143{ 3144 // Test initializer lists 3145 cxx11test::testinit il = { 4323, 435234.23544 }; 3146} 3147{ 3148 // Test range-based for 3149 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3150 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3151 for (auto &x : array) { x += 23; } 3152} 3153{ 3154 // Test lambda expressions 3155 using cxx11test::eval; 3156 assert (eval ([](int x) { return x*2; }, 21) == 42); 3157 double d = 2.0; 3158 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3159 assert (d == 5.0); 3160 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3161 assert (d == 5.0); 3162} 3163{ 3164 // Test use of variadic templates 3165 using cxx11test::sum; 3166 auto a = sum(1); 3167 auto b = sum(1, 2); 3168 auto c = sum(1.0, 2.0, 3.0); 3169} 3170{ 3171 // Test constructor delegation 3172 cxx11test::delegate d1; 3173 cxx11test::delegate d2(); 3174 cxx11test::delegate d3(45); 3175} 3176{ 3177 // Test override and final 3178 cxx11test::overridden o1(55464); 3179} 3180{ 3181 // Test nullptr 3182 char *c = nullptr; 3183} 3184{ 3185 // Test template brackets 3186 test_template<::test_template<int>> v(test_template<int>(12)); 3187} 3188{ 3189 // Unicode literals 3190 char const *utf8 = u8"UTF-8 string \u2500"; 3191 char16_t const *utf16 = u"UTF-8 string \u2500"; 3192 char32_t const *utf32 = U"UTF-32 string \u2500"; 3193} 3194' 3195 3196# Test code for whether the C compiler supports C++11 (complete). 3197ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3198${ac_cxx_conftest_cxx11_globals} 3199 3200int 3201main (int argc, char **argv) 3202{ 3203 int ok = 0; 3204 ${ac_cxx_conftest_cxx98_main} 3205 ${ac_cxx_conftest_cxx11_main} 3206 return ok; 3207} 3208" 3209 3210# Test code for whether the C compiler supports C++98 (complete). 3211ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3212int 3213main (int argc, char **argv) 3214{ 3215 int ok = 0; 3216 ${ac_cxx_conftest_cxx98_main} 3217 return ok; 3218} 3219" 3220 3221as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3222as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3223as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3224as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3225as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3226as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3227as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3228as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3229as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3230 3231# Auxiliary files required by this configure script. 3232ac_aux_files="install-sh config.guess config.sub" 3233 3234# Locations in which to look for auxiliary files. 3235ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3236 3237# Search for a directory containing all of the required auxiliary files, 3238# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3239# If we don't find one directory that contains all the files we need, 3240# we report the set of missing files from the *first* directory in 3241# $ac_aux_dir_candidates and give up. 3242ac_missing_aux_files="" 3243ac_first_candidate=: 3244printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246as_found=false 3247for as_dir in $ac_aux_dir_candidates 3248do 3249 IFS=$as_save_IFS 3250 case $as_dir in #((( 3251 '') as_dir=./ ;; 3252 */) ;; 3253 *) as_dir=$as_dir/ ;; 3254 esac 3255 as_found=: 3256 3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3258 ac_aux_dir_found=yes 3259 ac_install_sh= 3260 for ac_aux in $ac_aux_files 3261 do 3262 # As a special case, if "install-sh" is required, that requirement 3263 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3264 # and $ac_install_sh is set appropriately for whichever one is found. 3265 if test x"$ac_aux" = x"install-sh" 3266 then 3267 if test -f "${as_dir}install-sh"; then 3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3269 ac_install_sh="${as_dir}install-sh -c" 3270 elif test -f "${as_dir}install.sh"; then 3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3272 ac_install_sh="${as_dir}install.sh -c" 3273 elif test -f "${as_dir}shtool"; then 3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3275 ac_install_sh="${as_dir}shtool install -c" 3276 else 3277 ac_aux_dir_found=no 3278 if $ac_first_candidate; then 3279 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3280 else 3281 break 3282 fi 3283 fi 3284 else 3285 if test -f "${as_dir}${ac_aux}"; then 3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3287 else 3288 ac_aux_dir_found=no 3289 if $ac_first_candidate; then 3290 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3291 else 3292 break 3293 fi 3294 fi 3295 fi 3296 done 3297 if test "$ac_aux_dir_found" = yes; then 3298 ac_aux_dir="$as_dir" 3299 break 3300 fi 3301 ac_first_candidate=false 3302 3303 as_found=false 3304done 3305IFS=$as_save_IFS 3306if $as_found 3307then : 3308 3309else $as_nop 3310 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3311fi 3312 3313 3314# These three variables are undocumented and unsupported, 3315# and are intended to be withdrawn in a future Autoconf release. 3316# They can cause serious problems if a builder's source tree is in a directory 3317# whose full name contains unusual characters. 3318if test -f "${ac_aux_dir}config.guess"; then 3319 ac_@&t@config_guess="$SHELL ${ac_aux_dir}config.guess" 3320fi 3321if test -f "${ac_aux_dir}config.sub"; then 3322 ac_@&t@config_sub="$SHELL ${ac_aux_dir}config.sub" 3323fi 3324if test -f "$ac_aux_dir/configure"; then 3325 ac_@&t@configure="$SHELL ${ac_aux_dir}configure" 3326fi 3327 3328# Check that the precious variables saved in the cache have kept the same 3329# value. 3330ac_cache_corrupted=false 3331for ac_var in $ac_precious_vars; do 3332 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3333 eval ac_new_set=\$ac_env_${ac_var}_set 3334 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3335 eval ac_new_val=\$ac_env_${ac_var}_value 3336 case $ac_old_set,$ac_new_set in 3337 set,) 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3339printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3340 ac_cache_corrupted=: ;; 3341 ,set) 3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3343printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3344 ac_cache_corrupted=: ;; 3345 ,);; 3346 *) 3347 if test "x$ac_old_val" != "x$ac_new_val"; then 3348 # differences in whitespace do not lead to failure. 3349 ac_old_val_w=`echo x $ac_old_val` 3350 ac_new_val_w=`echo x $ac_new_val` 3351 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3353printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3354 ac_cache_corrupted=: 3355 else 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3357printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3358 eval $ac_var=\$ac_old_val 3359 fi 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3361printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3363printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3364 fi;; 3365 esac 3366 # Pass precious variables to config.status. 3367 if test "$ac_new_set" = set; then 3368 case $ac_new_val in 3369 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3370 *) ac_arg=$ac_var=$ac_new_val ;; 3371 esac 3372 case " $ac_configure_args " in 3373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3374 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3375 esac 3376 fi 3377done 3378if $ac_cache_corrupted; then 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3380printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3382printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3383 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3384 and start over" "$LINENO" 5 3385fi 3386## -------------------- ## 3387## Main body of script. ## 3388## -------------------- ## 3389 3390ac_ext=c 3391ac_cpp='$CPP $CPPFLAGS' 3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3394ac_compiler_gnu=$ac_cv_c_compiler_gnu 3395 3396 3397 3398 3399ac_config_headers="$ac_config_headers config.h:config.h.in" 3400 3401 3402opt_features_yes="" 3403opt_features_no="" 3404 3405 3406@%:@ Check whether --enable-update-check was given. 3407if test ${enable_update_check+y} 3408then : 3409 enableval=$enable_update_check; 3410else $as_nop 3411 enable_update_check=yes 3412 3413fi 3414 3415 3416if test x"$enable_update_check" = xyes ; then 3417 3418printf "%s\n" "@%:@define HAVE_UPDATE_CHECK 1" >>confdefs.h 3419 3420 opt_features_yes="$opt_features_yes\n * online update check in the GUI" 3421else 3422 opt_features_no="$opt_features_no\n * online update check in the GUI" 3423fi 3424 3425# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3426# serial 1 (pkg-config-0.24) 3427# 3428# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3429# 3430# This program is free software; you can redistribute it and/or modify 3431# it under the terms of the GNU General Public License as published by 3432# the Free Software Foundation; either version 2 of the License, or 3433# (at your option) any later version. 3434# 3435# This program is distributed in the hope that it will be useful, but 3436# WITHOUT ANY WARRANTY; without even the implied warranty of 3437# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3438# General Public License for more details. 3439# 3440# You should have received a copy of the GNU General Public License 3441# along with this program; if not, write to the Free Software 3442# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3443# 3444# As a special exception to the GNU General Public License, if you 3445# distribute this file as part of a program that contains a 3446# configuration script generated by Autoconf, you may include it under 3447# the same distribution terms that you use for the rest of that program. 3448 3449# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3450# ---------------------------------- 3451# PKG_PROG_PKG_CONFIG 3452 3453# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3454# 3455# Check to see whether a particular set of modules exists. Similar 3456# to PKG_CHECK_MODULES(), but does not set variables or print errors. 3457# 3458# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 3459# only at the first occurence in configure.ac, so if the first place 3460# it's called might be skipped (such as if it is within an "if", you 3461# have to call PKG_CHECK_EXISTS manually 3462# -------------------------------------------------------------- 3463 3464 3465# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3466# --------------------------------------------- 3467# _PKG_CONFIG 3468 3469# _PKG_SHORT_ERRORS_SUPPORTED 3470# ----------------------------- 3471# _PKG_SHORT_ERRORS_SUPPORTED 3472 3473 3474# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3475# [ACTION-IF-NOT-FOUND]) 3476# 3477# 3478# Note that if there is a possibility the first call to 3479# PKG_CHECK_MODULES might not happen, you should be sure to include an 3480# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3481# 3482# 3483# -------------------------------------------------------------- 3484# PKG_CHECK_MODULES 3485 3486 3487 3488 3489 # Make sure we can run config.sub. 3490$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3491 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3492 3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3494printf %s "checking build system type... " >&6; } 3495if test ${ac_cv_build+y} 3496then : 3497 printf %s "(cached) " >&6 3498else $as_nop 3499 ac_build_alias=$build_alias 3500test "x$ac_build_alias" = x && 3501 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3502test "x$ac_build_alias" = x && 3503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3504ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3505 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3506 3507fi 3508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3509printf "%s\n" "$ac_cv_build" >&6; } 3510case $ac_cv_build in 3511*-*-*) ;; 3512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3513esac 3514build=$ac_cv_build 3515ac_save_IFS=$IFS; IFS='-' 3516set x $ac_cv_build 3517shift 3518build_cpu=$1 3519build_vendor=$2 3520shift; shift 3521# Remember, the first character of IFS is used to create $*, 3522# except with old shells: 3523build_os=$* 3524IFS=$ac_save_IFS 3525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3526 3527 3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3529printf %s "checking host system type... " >&6; } 3530if test ${ac_cv_host+y} 3531then : 3532 printf %s "(cached) " >&6 3533else $as_nop 3534 if test "x$host_alias" = x; then 3535 ac_cv_host=$ac_cv_build 3536else 3537 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3538 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3539fi 3540 3541fi 3542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3543printf "%s\n" "$ac_cv_host" >&6; } 3544case $ac_cv_host in 3545*-*-*) ;; 3546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3547esac 3548host=$ac_cv_host 3549ac_save_IFS=$IFS; IFS='-' 3550set x $ac_cv_host 3551shift 3552host_cpu=$1 3553host_vendor=$2 3554shift; shift 3555# Remember, the first character of IFS is used to create $*, 3556# except with old shells: 3557host_os=$* 3558IFS=$ac_save_IFS 3559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3560 3561 3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3563printf %s "checking target system type... " >&6; } 3564if test ${ac_cv_target+y} 3565then : 3566 printf %s "(cached) " >&6 3567else $as_nop 3568 if test "x$target_alias" = x; then 3569 ac_cv_target=$ac_cv_host 3570else 3571 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || 3572 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 3573fi 3574 3575fi 3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3577printf "%s\n" "$ac_cv_target" >&6; } 3578case $ac_cv_target in 3579*-*-*) ;; 3580*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3581esac 3582target=$ac_cv_target 3583ac_save_IFS=$IFS; IFS='-' 3584set x $ac_cv_target 3585shift 3586target_cpu=$1 3587target_vendor=$2 3588shift; shift 3589# Remember, the first character of IFS is used to create $*, 3590# except with old shells: 3591target_os=$* 3592IFS=$ac_save_IFS 3593case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3594 3595 3596# The aliases save the names the user supplied, while $host etc. 3597# will get canonicalized. 3598test -n "$target_alias" && 3599 test "$program_prefix$program_suffix$program_transform_name" = \ 3600 NONENONEs,x,x, && 3601 program_prefix=${target_alias}- 3602SAVED_CFLAGS="$CFLAGS" 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612ac_ext=c 3613ac_cpp='$CPP $CPPFLAGS' 3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3616ac_compiler_gnu=$ac_cv_c_compiler_gnu 3617if test -n "$ac_tool_prefix"; then 3618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3619set dummy ${ac_tool_prefix}gcc; ac_word=$2 3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3621printf %s "checking for $ac_word... " >&6; } 3622if test ${ac_cv_prog_CC+y} 3623then : 3624 printf %s "(cached) " >&6 3625else $as_nop 3626 if test -n "$CC"; then 3627 ac_cv_prog_CC="$CC" # Let the user override the test. 3628else 3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3630for as_dir in $PATH 3631do 3632 IFS=$as_save_IFS 3633 case $as_dir in #((( 3634 '') as_dir=./ ;; 3635 */) ;; 3636 *) as_dir=$as_dir/ ;; 3637 esac 3638 for ac_exec_ext in '' $ac_executable_extensions; do 3639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3640 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3642 break 2 3643 fi 3644done 3645 done 3646IFS=$as_save_IFS 3647 3648fi 3649fi 3650CC=$ac_cv_prog_CC 3651if test -n "$CC"; then 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3653printf "%s\n" "$CC" >&6; } 3654else 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3656printf "%s\n" "no" >&6; } 3657fi 3658 3659 3660fi 3661if test -z "$ac_cv_prog_CC"; then 3662 ac_ct_CC=$CC 3663 # Extract the first word of "gcc", so it can be a program name with args. 3664set dummy gcc; ac_word=$2 3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3666printf %s "checking for $ac_word... " >&6; } 3667if test ${ac_cv_prog_ac_ct_CC+y} 3668then : 3669 printf %s "(cached) " >&6 3670else $as_nop 3671 if test -n "$ac_ct_CC"; then 3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3673else 3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675for as_dir in $PATH 3676do 3677 IFS=$as_save_IFS 3678 case $as_dir in #((( 3679 '') as_dir=./ ;; 3680 */) ;; 3681 *) as_dir=$as_dir/ ;; 3682 esac 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3685 ac_cv_prog_ac_ct_CC="gcc" 3686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3687 break 2 3688 fi 3689done 3690 done 3691IFS=$as_save_IFS 3692 3693fi 3694fi 3695ac_ct_CC=$ac_cv_prog_ac_ct_CC 3696if test -n "$ac_ct_CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3698printf "%s\n" "$ac_ct_CC" >&6; } 3699else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701printf "%s\n" "no" >&6; } 3702fi 3703 3704 if test "x$ac_ct_CC" = x; then 3705 CC="" 3706 else 3707 case $cross_compiling:$ac_tool_warned in 3708yes:) 3709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3711ac_tool_warned=yes ;; 3712esac 3713 CC=$ac_ct_CC 3714 fi 3715else 3716 CC="$ac_cv_prog_CC" 3717fi 3718 3719if test -z "$CC"; then 3720 if test -n "$ac_tool_prefix"; then 3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3722set dummy ${ac_tool_prefix}cc; ac_word=$2 3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724printf %s "checking for $ac_word... " >&6; } 3725if test ${ac_cv_prog_CC+y} 3726then : 3727 printf %s "(cached) " >&6 3728else $as_nop 3729 if test -n "$CC"; then 3730 ac_cv_prog_CC="$CC" # Let the user override the test. 3731else 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH 3734do 3735 IFS=$as_save_IFS 3736 case $as_dir in #((( 3737 '') as_dir=./ ;; 3738 */) ;; 3739 *) as_dir=$as_dir/ ;; 3740 esac 3741 for ac_exec_ext in '' $ac_executable_extensions; do 3742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3743 ac_cv_prog_CC="${ac_tool_prefix}cc" 3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3745 break 2 3746 fi 3747done 3748 done 3749IFS=$as_save_IFS 3750 3751fi 3752fi 3753CC=$ac_cv_prog_CC 3754if test -n "$CC"; then 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3756printf "%s\n" "$CC" >&6; } 3757else 3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759printf "%s\n" "no" >&6; } 3760fi 3761 3762 3763 fi 3764fi 3765if test -z "$CC"; then 3766 # Extract the first word of "cc", so it can be a program name with args. 3767set dummy cc; ac_word=$2 3768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3769printf %s "checking for $ac_word... " >&6; } 3770if test ${ac_cv_prog_CC+y} 3771then : 3772 printf %s "(cached) " >&6 3773else $as_nop 3774 if test -n "$CC"; then 3775 ac_cv_prog_CC="$CC" # Let the user override the test. 3776else 3777 ac_prog_rejected=no 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 case $as_dir in #((( 3783 '') as_dir=./ ;; 3784 */) ;; 3785 *) as_dir=$as_dir/ ;; 3786 esac 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3789 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3790 ac_prog_rejected=yes 3791 continue 3792 fi 3793 ac_cv_prog_CC="cc" 3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3795 break 2 3796 fi 3797done 3798 done 3799IFS=$as_save_IFS 3800 3801if test $ac_prog_rejected = yes; then 3802 # We found a bogon in the path, so make sure we never use it. 3803 set dummy $ac_cv_prog_CC 3804 shift 3805 if test $@%:@ != 0; then 3806 # We chose a different compiler from the bogus one. 3807 # However, it has the same basename, so the bogon will be chosen 3808 # first if we set CC to just the basename; use the full file name. 3809 shift 3810 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3811 fi 3812fi 3813fi 3814fi 3815CC=$ac_cv_prog_CC 3816if test -n "$CC"; then 3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3818printf "%s\n" "$CC" >&6; } 3819else 3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3821printf "%s\n" "no" >&6; } 3822fi 3823 3824 3825fi 3826if test -z "$CC"; then 3827 if test -n "$ac_tool_prefix"; then 3828 for ac_prog in cl.exe 3829 do 3830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3833printf %s "checking for $ac_word... " >&6; } 3834if test ${ac_cv_prog_CC+y} 3835then : 3836 printf %s "(cached) " >&6 3837else $as_nop 3838 if test -n "$CC"; then 3839 ac_cv_prog_CC="$CC" # Let the user override the test. 3840else 3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3842for as_dir in $PATH 3843do 3844 IFS=$as_save_IFS 3845 case $as_dir in #((( 3846 '') as_dir=./ ;; 3847 */) ;; 3848 *) as_dir=$as_dir/ ;; 3849 esac 3850 for ac_exec_ext in '' $ac_executable_extensions; do 3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3854 break 2 3855 fi 3856done 3857 done 3858IFS=$as_save_IFS 3859 3860fi 3861fi 3862CC=$ac_cv_prog_CC 3863if test -n "$CC"; then 3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3865printf "%s\n" "$CC" >&6; } 3866else 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3868printf "%s\n" "no" >&6; } 3869fi 3870 3871 3872 test -n "$CC" && break 3873 done 3874fi 3875if test -z "$CC"; then 3876 ac_ct_CC=$CC 3877 for ac_prog in cl.exe 3878do 3879 # Extract the first word of "$ac_prog", so it can be a program name with args. 3880set dummy $ac_prog; ac_word=$2 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882printf %s "checking for $ac_word... " >&6; } 3883if test ${ac_cv_prog_ac_ct_CC+y} 3884then : 3885 printf %s "(cached) " >&6 3886else $as_nop 3887 if test -n "$ac_ct_CC"; then 3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3889else 3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891for as_dir in $PATH 3892do 3893 IFS=$as_save_IFS 3894 case $as_dir in #((( 3895 '') as_dir=./ ;; 3896 */) ;; 3897 *) as_dir=$as_dir/ ;; 3898 esac 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3901 ac_cv_prog_ac_ct_CC="$ac_prog" 3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi 3910fi 3911ac_ct_CC=$ac_cv_prog_ac_ct_CC 3912if test -n "$ac_ct_CC"; then 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3914printf "%s\n" "$ac_ct_CC" >&6; } 3915else 3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917printf "%s\n" "no" >&6; } 3918fi 3919 3920 3921 test -n "$ac_ct_CC" && break 3922done 3923 3924 if test "x$ac_ct_CC" = x; then 3925 CC="" 3926 else 3927 case $cross_compiling:$ac_tool_warned in 3928yes:) 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3931ac_tool_warned=yes ;; 3932esac 3933 CC=$ac_ct_CC 3934 fi 3935fi 3936 3937fi 3938if test -z "$CC"; then 3939 if test -n "$ac_tool_prefix"; then 3940 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3941set dummy ${ac_tool_prefix}clang; ac_word=$2 3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3943printf %s "checking for $ac_word... " >&6; } 3944if test ${ac_cv_prog_CC+y} 3945then : 3946 printf %s "(cached) " >&6 3947else $as_nop 3948 if test -n "$CC"; then 3949 ac_cv_prog_CC="$CC" # Let the user override the test. 3950else 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 case $as_dir in #((( 3956 '') as_dir=./ ;; 3957 */) ;; 3958 *) as_dir=$as_dir/ ;; 3959 esac 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3962 ac_cv_prog_CC="${ac_tool_prefix}clang" 3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3964 break 2 3965 fi 3966done 3967 done 3968IFS=$as_save_IFS 3969 3970fi 3971fi 3972CC=$ac_cv_prog_CC 3973if test -n "$CC"; then 3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3975printf "%s\n" "$CC" >&6; } 3976else 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3978printf "%s\n" "no" >&6; } 3979fi 3980 3981 3982fi 3983if test -z "$ac_cv_prog_CC"; then 3984 ac_ct_CC=$CC 3985 # Extract the first word of "clang", so it can be a program name with args. 3986set dummy clang; ac_word=$2 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3988printf %s "checking for $ac_word... " >&6; } 3989if test ${ac_cv_prog_ac_ct_CC+y} 3990then : 3991 printf %s "(cached) " >&6 3992else $as_nop 3993 if test -n "$ac_ct_CC"; then 3994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3995else 3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3997for as_dir in $PATH 3998do 3999 IFS=$as_save_IFS 4000 case $as_dir in #((( 4001 '') as_dir=./ ;; 4002 */) ;; 4003 *) as_dir=$as_dir/ ;; 4004 esac 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4007 ac_cv_prog_ac_ct_CC="clang" 4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012 done 4013IFS=$as_save_IFS 4014 4015fi 4016fi 4017ac_ct_CC=$ac_cv_prog_ac_ct_CC 4018if test -n "$ac_ct_CC"; then 4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4020printf "%s\n" "$ac_ct_CC" >&6; } 4021else 4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023printf "%s\n" "no" >&6; } 4024fi 4025 4026 if test "x$ac_ct_CC" = x; then 4027 CC="" 4028 else 4029 case $cross_compiling:$ac_tool_warned in 4030yes:) 4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4032printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4033ac_tool_warned=yes ;; 4034esac 4035 CC=$ac_ct_CC 4036 fi 4037else 4038 CC="$ac_cv_prog_CC" 4039fi 4040 4041fi 4042 4043 4044test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4045printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4046as_fn_error $? "no acceptable C compiler found in \$PATH 4047See \`config.log' for more details" "$LINENO" 5; } 4048 4049# Provide some information about the compiler. 4050printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4051set X $ac_compile 4052ac_compiler=$2 4053for ac_option in --version -v -V -qversion -version; do 4054 { { ac_try="$ac_compiler $ac_option >&5" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060printf "%s\n" "$ac_try_echo"; } >&5 4061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4062 ac_status=$? 4063 if test -s conftest.err; then 4064 sed '10a\ 4065... rest of stderr output deleted ... 4066 10q' conftest.err >conftest.er1 4067 cat conftest.er1 >&5 4068 fi 4069 rm -f conftest.er1 conftest.err 4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071 test $ac_status = 0; } 4072done 4073 4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076 4077int 4078main (void) 4079{ 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085ac_clean_files_save=$ac_clean_files 4086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4087# Try to create an executable without -o first, disregard a.out. 4088# It will help us diagnose broken compilers, and finding out an intuition 4089# of exeext. 4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4091printf %s "checking whether the C compiler works... " >&6; } 4092ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4093 4094# The possible output files: 4095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4096 4097ac_rmfiles= 4098for ac_file in $ac_files 4099do 4100 case $ac_file in 4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4103 esac 4104done 4105rm -f $ac_rmfiles 4106 4107if { { ac_try="$ac_link_default" 4108case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111esac 4112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4113printf "%s\n" "$ac_try_echo"; } >&5 4114 (eval "$ac_link_default") 2>&5 4115 ac_status=$? 4116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4117 test $ac_status = 0; } 4118then : 4119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4121# in a Makefile. We should not override ac_cv_exeext if it was cached, 4122# so that the user can short-circuit this test for compilers unknown to 4123# Autoconf. 4124for ac_file in $ac_files '' 4125do 4126 test -f "$ac_file" || continue 4127 case $ac_file in 4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4129 ;; 4130 [ab].out ) 4131 # We found the default executable, but exeext='' is most 4132 # certainly right. 4133 break;; 4134 *.* ) 4135 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4136 then :; else 4137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4138 fi 4139 # We set ac_cv_exeext here because the later test for it is not 4140 # safe: cross compilers may not add the suffix if given an `-o' 4141 # argument, so we may need to know it at that point already. 4142 # Even if this section looks crufty: it has the advantage of 4143 # actually working. 4144 break;; 4145 * ) 4146 break;; 4147 esac 4148done 4149test "$ac_cv_exeext" = no && ac_cv_exeext= 4150 4151else $as_nop 4152 ac_file='' 4153fi 4154if test -z "$ac_file" 4155then : 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4157printf "%s\n" "no" >&6; } 4158printf "%s\n" "$as_me: failed program was:" >&5 4159sed 's/^/| /' conftest.$ac_ext >&5 4160 4161{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4162printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4163as_fn_error 77 "C compiler cannot create executables 4164See \`config.log' for more details" "$LINENO" 5; } 4165else $as_nop 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4167printf "%s\n" "yes" >&6; } 4168fi 4169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4170printf %s "checking for C compiler default output file name... " >&6; } 4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4172printf "%s\n" "$ac_file" >&6; } 4173ac_exeext=$ac_cv_exeext 4174 4175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4176ac_clean_files=$ac_clean_files_save 4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4178printf %s "checking for suffix of executables... " >&6; } 4179if { { ac_try="$ac_link" 4180case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183esac 4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4185printf "%s\n" "$ac_try_echo"; } >&5 4186 (eval "$ac_link") 2>&5 4187 ac_status=$? 4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; } 4190then : 4191 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4192# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4193# work properly (i.e., refer to `conftest.exe'), while it won't with 4194# `rm'. 4195for ac_file in conftest.exe conftest conftest.*; do 4196 test -f "$ac_file" || continue 4197 case $ac_file in 4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4200 break;; 4201 * ) break;; 4202 esac 4203done 4204else $as_nop 4205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4207as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4208See \`config.log' for more details" "$LINENO" 5; } 4209fi 4210rm -f conftest conftest$ac_cv_exeext 4211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4212printf "%s\n" "$ac_cv_exeext" >&6; } 4213 4214rm -f conftest.$ac_ext 4215EXEEXT=$ac_cv_exeext 4216ac_exeext=$EXEEXT 4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218/* end confdefs.h. */ 4219@%:@include <stdio.h> 4220int 4221main (void) 4222{ 4223FILE *f = fopen ("conftest.out", "w"); 4224 return ferror (f) || fclose (f) != 0; 4225 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230ac_clean_files="$ac_clean_files conftest.out" 4231# Check that the compiler produces executables we can run. If not, either 4232# the compiler is broken, or we cross compile. 4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4234printf %s "checking whether we are cross compiling... " >&6; } 4235if test "$cross_compiling" != yes; then 4236 { { ac_try="$ac_link" 4237case "(($ac_try" in 4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4239 *) ac_try_echo=$ac_try;; 4240esac 4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4242printf "%s\n" "$ac_try_echo"; } >&5 4243 (eval "$ac_link") 2>&5 4244 ac_status=$? 4245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4246 test $ac_status = 0; } 4247 if { ac_try='./conftest$ac_cv_exeext' 4248 { { case "(($ac_try" in 4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4250 *) ac_try_echo=$ac_try;; 4251esac 4252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4253printf "%s\n" "$ac_try_echo"; } >&5 4254 (eval "$ac_try") 2>&5 4255 ac_status=$? 4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4257 test $ac_status = 0; }; }; then 4258 cross_compiling=no 4259 else 4260 if test "$cross_compiling" = maybe; then 4261 cross_compiling=yes 4262 else 4263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4265as_fn_error 77 "cannot run C compiled programs. 4266If you meant to cross compile, use \`--host'. 4267See \`config.log' for more details" "$LINENO" 5; } 4268 fi 4269 fi 4270fi 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4272printf "%s\n" "$cross_compiling" >&6; } 4273 4274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4275ac_clean_files=$ac_clean_files_save 4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4277printf %s "checking for suffix of object files... " >&6; } 4278if test ${ac_cv_objext+y} 4279then : 4280 printf %s "(cached) " >&6 4281else $as_nop 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284 4285int 4286main (void) 4287{ 4288 4289 ; 4290 return 0; 4291} 4292_ACEOF 4293rm -f conftest.o conftest.obj 4294if { { ac_try="$ac_compile" 4295case "(($ac_try" in 4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4297 *) ac_try_echo=$ac_try;; 4298esac 4299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4300printf "%s\n" "$ac_try_echo"; } >&5 4301 (eval "$ac_compile") 2>&5 4302 ac_status=$? 4303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4304 test $ac_status = 0; } 4305then : 4306 for ac_file in conftest.o conftest.obj conftest.*; do 4307 test -f "$ac_file" || continue; 4308 case $ac_file in 4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4311 break;; 4312 esac 4313done 4314else $as_nop 4315 printf "%s\n" "$as_me: failed program was:" >&5 4316sed 's/^/| /' conftest.$ac_ext >&5 4317 4318{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4319printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4320as_fn_error $? "cannot compute suffix of object files: cannot compile 4321See \`config.log' for more details" "$LINENO" 5; } 4322fi 4323rm -f conftest.$ac_cv_objext conftest.$ac_ext 4324fi 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4326printf "%s\n" "$ac_cv_objext" >&6; } 4327OBJEXT=$ac_cv_objext 4328ac_objext=$OBJEXT 4329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4330printf %s "checking whether the compiler supports GNU C... " >&6; } 4331if test ${ac_cv_c_compiler_gnu+y} 4332then : 4333 printf %s "(cached) " >&6 4334else $as_nop 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4336/* end confdefs.h. */ 4337 4338int 4339main (void) 4340{ 4341#ifndef __GNUC__ 4342 choke me 4343#endif 4344 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349if ac_fn_c_try_compile "$LINENO" 4350then : 4351 ac_compiler_gnu=yes 4352else $as_nop 4353 ac_compiler_gnu=no 4354fi 4355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4356ac_cv_c_compiler_gnu=$ac_compiler_gnu 4357 4358fi 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4360printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4361ac_compiler_gnu=$ac_cv_c_compiler_gnu 4362 4363if test $ac_compiler_gnu = yes; then 4364 GCC=yes 4365else 4366 GCC= 4367fi 4368ac_test_CFLAGS=${CFLAGS+y} 4369ac_save_CFLAGS=$CFLAGS 4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4371printf %s "checking whether $CC accepts -g... " >&6; } 4372if test ${ac_cv_prog_cc_g+y} 4373then : 4374 printf %s "(cached) " >&6 4375else $as_nop 4376 ac_save_c_werror_flag=$ac_c_werror_flag 4377 ac_c_werror_flag=yes 4378 ac_cv_prog_cc_g=no 4379 CFLAGS="-g" 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381/* end confdefs.h. */ 4382 4383int 4384main (void) 4385{ 4386 4387 ; 4388 return 0; 4389} 4390_ACEOF 4391if ac_fn_c_try_compile "$LINENO" 4392then : 4393 ac_cv_prog_cc_g=yes 4394else $as_nop 4395 CFLAGS="" 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398 4399int 4400main (void) 4401{ 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407if ac_fn_c_try_compile "$LINENO" 4408then : 4409 4410else $as_nop 4411 ac_c_werror_flag=$ac_save_c_werror_flag 4412 CFLAGS="-g" 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414/* end confdefs.h. */ 4415 4416int 4417main (void) 4418{ 4419 4420 ; 4421 return 0; 4422} 4423_ACEOF 4424if ac_fn_c_try_compile "$LINENO" 4425then : 4426 ac_cv_prog_cc_g=yes 4427fi 4428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4429fi 4430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4433 ac_c_werror_flag=$ac_save_c_werror_flag 4434fi 4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4436printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4437if test $ac_test_CFLAGS; then 4438 CFLAGS=$ac_save_CFLAGS 4439elif test $ac_cv_prog_cc_g = yes; then 4440 if test "$GCC" = yes; then 4441 CFLAGS="-g -O2" 4442 else 4443 CFLAGS="-g" 4444 fi 4445else 4446 if test "$GCC" = yes; then 4447 CFLAGS="-O2" 4448 else 4449 CFLAGS= 4450 fi 4451fi 4452ac_prog_cc_stdc=no 4453if test x$ac_prog_cc_stdc = xno 4454then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4456printf %s "checking for $CC option to enable C11 features... " >&6; } 4457if test ${ac_cv_prog_cc_c11+y} 4458then : 4459 printf %s "(cached) " >&6 4460else $as_nop 4461 ac_cv_prog_cc_c11=no 4462ac_save_CC=$CC 4463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464/* end confdefs.h. */ 4465$ac_c_conftest_c11_program 4466_ACEOF 4467for ac_arg in '' -std=gnu11 4468do 4469 CC="$ac_save_CC $ac_arg" 4470 if ac_fn_c_try_compile "$LINENO" 4471then : 4472 ac_cv_prog_cc_c11=$ac_arg 4473fi 4474rm -f core conftest.err conftest.$ac_objext conftest.beam 4475 test "x$ac_cv_prog_cc_c11" != "xno" && break 4476done 4477rm -f conftest.$ac_ext 4478CC=$ac_save_CC 4479fi 4480 4481if test "x$ac_cv_prog_cc_c11" = xno 4482then : 4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4484printf "%s\n" "unsupported" >&6; } 4485else $as_nop 4486 if test "x$ac_cv_prog_cc_c11" = x 4487then : 4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4489printf "%s\n" "none needed" >&6; } 4490else $as_nop 4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4492printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4493 CC="$CC $ac_cv_prog_cc_c11" 4494fi 4495 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4496 ac_prog_cc_stdc=c11 4497fi 4498fi 4499if test x$ac_prog_cc_stdc = xno 4500then : 4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4502printf %s "checking for $CC option to enable C99 features... " >&6; } 4503if test ${ac_cv_prog_cc_c99+y} 4504then : 4505 printf %s "(cached) " >&6 4506else $as_nop 4507 ac_cv_prog_cc_c99=no 4508ac_save_CC=$CC 4509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4510/* end confdefs.h. */ 4511$ac_c_conftest_c99_program 4512_ACEOF 4513for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4514do 4515 CC="$ac_save_CC $ac_arg" 4516 if ac_fn_c_try_compile "$LINENO" 4517then : 4518 ac_cv_prog_cc_c99=$ac_arg 4519fi 4520rm -f core conftest.err conftest.$ac_objext conftest.beam 4521 test "x$ac_cv_prog_cc_c99" != "xno" && break 4522done 4523rm -f conftest.$ac_ext 4524CC=$ac_save_CC 4525fi 4526 4527if test "x$ac_cv_prog_cc_c99" = xno 4528then : 4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4530printf "%s\n" "unsupported" >&6; } 4531else $as_nop 4532 if test "x$ac_cv_prog_cc_c99" = x 4533then : 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4535printf "%s\n" "none needed" >&6; } 4536else $as_nop 4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4538printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4539 CC="$CC $ac_cv_prog_cc_c99" 4540fi 4541 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4542 ac_prog_cc_stdc=c99 4543fi 4544fi 4545if test x$ac_prog_cc_stdc = xno 4546then : 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4548printf %s "checking for $CC option to enable C89 features... " >&6; } 4549if test ${ac_cv_prog_cc_c89+y} 4550then : 4551 printf %s "(cached) " >&6 4552else $as_nop 4553 ac_cv_prog_cc_c89=no 4554ac_save_CC=$CC 4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557$ac_c_conftest_c89_program 4558_ACEOF 4559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4560do 4561 CC="$ac_save_CC $ac_arg" 4562 if ac_fn_c_try_compile "$LINENO" 4563then : 4564 ac_cv_prog_cc_c89=$ac_arg 4565fi 4566rm -f core conftest.err conftest.$ac_objext conftest.beam 4567 test "x$ac_cv_prog_cc_c89" != "xno" && break 4568done 4569rm -f conftest.$ac_ext 4570CC=$ac_save_CC 4571fi 4572 4573if test "x$ac_cv_prog_cc_c89" = xno 4574then : 4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4576printf "%s\n" "unsupported" >&6; } 4577else $as_nop 4578 if test "x$ac_cv_prog_cc_c89" = x 4579then : 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4581printf "%s\n" "none needed" >&6; } 4582else $as_nop 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4584printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4585 CC="$CC $ac_cv_prog_cc_c89" 4586fi 4587 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4588 ac_prog_cc_stdc=c89 4589fi 4590fi 4591 4592ac_ext=c 4593ac_cpp='$CPP $CPPFLAGS' 4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4596ac_compiler_gnu=$ac_cv_c_compiler_gnu 4597 4598CFLAGS="$SAVED_CFLAGS" 4599if test "x$CC" != xcc; then 4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4601printf %s "checking whether $CC and cc understand -c and -o together... " >&6; } 4602else 4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4604printf %s "checking whether cc understands -c and -o together... " >&6; } 4605fi 4606set dummy $CC; ac_cc=`printf "%s\n" "$2" | 4607 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4608if eval test \${ac_cv_prog_cc_${ac_cc}_c_o+y} 4609then : 4610 printf %s "(cached) " >&6 4611else $as_nop 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4613/* end confdefs.h. */ 4614 4615int 4616main (void) 4617{ 4618 4619 ; 4620 return 0; 4621} 4622_ACEOF 4623# Make sure it works both with $CC and with simple cc. 4624# We do the test twice because some compilers refuse to overwrite an 4625# existing .o file with -o, though they will create one. 4626ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4627rm -f conftest2.* 4628if { { case "(($ac_try" in 4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4630 *) ac_try_echo=$ac_try;; 4631esac 4632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4633printf "%s\n" "$ac_try_echo"; } >&5 4634 (eval "$ac_try") 2>&5 4635 ac_status=$? 4636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4637 test $ac_status = 0; } && 4638 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4640 *) ac_try_echo=$ac_try;; 4641esac 4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4643printf "%s\n" "$ac_try_echo"; } >&5 4644 (eval "$ac_try") 2>&5 4645 ac_status=$? 4646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4647 test $ac_status = 0; }; 4648then 4649 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4650 if test "x$CC" != xcc; then 4651 # Test first that cc exists at all. 4652 if { ac_try='cc -c conftest.$ac_ext >&5' 4653 { { case "(($ac_try" in 4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4655 *) ac_try_echo=$ac_try;; 4656esac 4657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4658printf "%s\n" "$ac_try_echo"; } >&5 4659 (eval "$ac_try") 2>&5 4660 ac_status=$? 4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4662 test $ac_status = 0; }; }; then 4663 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4664 rm -f conftest2.* 4665 if { { case "(($ac_try" in 4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4667 *) ac_try_echo=$ac_try;; 4668esac 4669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4670printf "%s\n" "$ac_try_echo"; } >&5 4671 (eval "$ac_try") 2>&5 4672 ac_status=$? 4673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4674 test $ac_status = 0; } && 4675 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4677 *) ac_try_echo=$ac_try;; 4678esac 4679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4680printf "%s\n" "$ac_try_echo"; } >&5 4681 (eval "$ac_try") 2>&5 4682 ac_status=$? 4683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4684 test $ac_status = 0; }; 4685 then 4686 # cc works too. 4687 : 4688 else 4689 # cc exists but doesn't like -o. 4690 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4691 fi 4692 fi 4693 fi 4694else 4695 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4696fi 4697rm -rf core conftest* 4698 4699fi 4700if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4702printf "%s\n" "yes" >&6; } 4703else 4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4705printf "%s\n" "no" >&6; } 4706 4707printf "%s\n" "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4708 4709fi 4710 4711ac_ext=c 4712ac_cpp='$CPP $CPPFLAGS' 4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4715ac_compiler_gnu=$ac_cv_c_compiler_gnu 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4717printf %s "checking how to run the C preprocessor... " >&6; } 4718# On Suns, sometimes $CPP names a directory. 4719if test -n "$CPP" && test -d "$CPP"; then 4720 CPP= 4721fi 4722if test -z "$CPP"; then 4723 if test ${ac_cv_prog_CPP+y} 4724then : 4725 printf %s "(cached) " >&6 4726else $as_nop 4727 # Double quotes because $CC needs to be expanded 4728 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 4729 do 4730 ac_preproc_ok=false 4731for ac_c_preproc_warn_flag in '' yes 4732do 4733 # Use a header file that comes with gcc, so configuring glibc 4734 # with a fresh cross-compiler works. 4735 # On the NeXT, cc -E runs the code through the compiler's parser, 4736 # not just through cpp. "Syntax error" is here to catch this case. 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739@%:@include <limits.h> 4740 Syntax error 4741_ACEOF 4742if ac_fn_c_try_cpp "$LINENO" 4743then : 4744 4745else $as_nop 4746 # Broken: fails on valid input. 4747continue 4748fi 4749rm -f conftest.err conftest.i conftest.$ac_ext 4750 4751 # OK, works on sane cases. Now check whether nonexistent headers 4752 # can be detected and how. 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755@%:@include <ac_nonexistent.h> 4756_ACEOF 4757if ac_fn_c_try_cpp "$LINENO" 4758then : 4759 # Broken: success on invalid input. 4760continue 4761else $as_nop 4762 # Passes both tests. 4763ac_preproc_ok=: 4764break 4765fi 4766rm -f conftest.err conftest.i conftest.$ac_ext 4767 4768done 4769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4770rm -f conftest.i conftest.err conftest.$ac_ext 4771if $ac_preproc_ok 4772then : 4773 break 4774fi 4775 4776 done 4777 ac_cv_prog_CPP=$CPP 4778 4779fi 4780 CPP=$ac_cv_prog_CPP 4781else 4782 ac_cv_prog_CPP=$CPP 4783fi 4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4785printf "%s\n" "$CPP" >&6; } 4786ac_preproc_ok=false 4787for ac_c_preproc_warn_flag in '' yes 4788do 4789 # Use a header file that comes with gcc, so configuring glibc 4790 # with a fresh cross-compiler works. 4791 # On the NeXT, cc -E runs the code through the compiler's parser, 4792 # not just through cpp. "Syntax error" is here to catch this case. 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4794/* end confdefs.h. */ 4795@%:@include <limits.h> 4796 Syntax error 4797_ACEOF 4798if ac_fn_c_try_cpp "$LINENO" 4799then : 4800 4801else $as_nop 4802 # Broken: fails on valid input. 4803continue 4804fi 4805rm -f conftest.err conftest.i conftest.$ac_ext 4806 4807 # OK, works on sane cases. Now check whether nonexistent headers 4808 # can be detected and how. 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811@%:@include <ac_nonexistent.h> 4812_ACEOF 4813if ac_fn_c_try_cpp "$LINENO" 4814then : 4815 # Broken: success on invalid input. 4816continue 4817else $as_nop 4818 # Passes both tests. 4819ac_preproc_ok=: 4820break 4821fi 4822rm -f conftest.err conftest.i conftest.$ac_ext 4823 4824done 4825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4826rm -f conftest.i conftest.err conftest.$ac_ext 4827if $ac_preproc_ok 4828then : 4829 4830else $as_nop 4831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4832printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4833as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4834See \`config.log' for more details" "$LINENO" 5; } 4835fi 4836 4837ac_ext=c 4838ac_cpp='$CPP $CPPFLAGS' 4839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4841ac_compiler_gnu=$ac_cv_c_compiler_gnu 4842 4843SAVED_CXXFLAGS="$CXXFLAGS" 4844 4845 4846 4847 4848 4849 4850ac_ext=cpp 4851ac_cpp='$CXXCPP $CPPFLAGS' 4852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4855if test -z "$CXX"; then 4856 if test -n "$CCC"; then 4857 CXX=$CCC 4858 else 4859 if test -n "$ac_tool_prefix"; then 4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4861 do 4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4863set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865printf %s "checking for $ac_word... " >&6; } 4866if test ${ac_cv_prog_CXX+y} 4867then : 4868 printf %s "(cached) " >&6 4869else $as_nop 4870 if test -n "$CXX"; then 4871 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4872else 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH 4875do 4876 IFS=$as_save_IFS 4877 case $as_dir in #((( 4878 '') as_dir=./ ;; 4879 */) ;; 4880 *) as_dir=$as_dir/ ;; 4881 esac 4882 for ac_exec_ext in '' $ac_executable_extensions; do 4883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4886 break 2 4887 fi 4888done 4889 done 4890IFS=$as_save_IFS 4891 4892fi 4893fi 4894CXX=$ac_cv_prog_CXX 4895if test -n "$CXX"; then 4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4897printf "%s\n" "$CXX" >&6; } 4898else 4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4900printf "%s\n" "no" >&6; } 4901fi 4902 4903 4904 test -n "$CXX" && break 4905 done 4906fi 4907if test -z "$CXX"; then 4908 ac_ct_CXX=$CXX 4909 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4910do 4911 # Extract the first word of "$ac_prog", so it can be a program name with args. 4912set dummy $ac_prog; ac_word=$2 4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4914printf %s "checking for $ac_word... " >&6; } 4915if test ${ac_cv_prog_ac_ct_CXX+y} 4916then : 4917 printf %s "(cached) " >&6 4918else $as_nop 4919 if test -n "$ac_ct_CXX"; then 4920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4921else 4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4923for as_dir in $PATH 4924do 4925 IFS=$as_save_IFS 4926 case $as_dir in #((( 4927 '') as_dir=./ ;; 4928 */) ;; 4929 *) as_dir=$as_dir/ ;; 4930 esac 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4933 ac_cv_prog_ac_ct_CXX="$ac_prog" 4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4935 break 2 4936 fi 4937done 4938 done 4939IFS=$as_save_IFS 4940 4941fi 4942fi 4943ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4944if test -n "$ac_ct_CXX"; then 4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4946printf "%s\n" "$ac_ct_CXX" >&6; } 4947else 4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4949printf "%s\n" "no" >&6; } 4950fi 4951 4952 4953 test -n "$ac_ct_CXX" && break 4954done 4955 4956 if test "x$ac_ct_CXX" = x; then 4957 CXX="g++" 4958 else 4959 case $cross_compiling:$ac_tool_warned in 4960yes:) 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4962printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4963ac_tool_warned=yes ;; 4964esac 4965 CXX=$ac_ct_CXX 4966 fi 4967fi 4968 4969 fi 4970fi 4971# Provide some information about the compiler. 4972printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4973set X $ac_compile 4974ac_compiler=$2 4975for ac_option in --version -v -V -qversion; do 4976 { { ac_try="$ac_compiler $ac_option >&5" 4977case "(($ac_try" in 4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4979 *) ac_try_echo=$ac_try;; 4980esac 4981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4982printf "%s\n" "$ac_try_echo"; } >&5 4983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4984 ac_status=$? 4985 if test -s conftest.err; then 4986 sed '10a\ 4987... rest of stderr output deleted ... 4988 10q' conftest.err >conftest.er1 4989 cat conftest.er1 >&5 4990 fi 4991 rm -f conftest.er1 conftest.err 4992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4993 test $ac_status = 0; } 4994done 4995 4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 4997printf %s "checking whether the compiler supports GNU C++... " >&6; } 4998if test ${ac_cv_cxx_compiler_gnu+y} 4999then : 5000 printf %s "(cached) " >&6 5001else $as_nop 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004 5005int 5006main (void) 5007{ 5008#ifndef __GNUC__ 5009 choke me 5010#endif 5011 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_cxx_try_compile "$LINENO" 5017then : 5018 ac_compiler_gnu=yes 5019else $as_nop 5020 ac_compiler_gnu=no 5021fi 5022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5024 5025fi 5026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5027printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 5028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5029 5030if test $ac_compiler_gnu = yes; then 5031 GXX=yes 5032else 5033 GXX= 5034fi 5035ac_test_CXXFLAGS=${CXXFLAGS+y} 5036ac_save_CXXFLAGS=$CXXFLAGS 5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5038printf %s "checking whether $CXX accepts -g... " >&6; } 5039if test ${ac_cv_prog_cxx_g+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5044 ac_cxx_werror_flag=yes 5045 ac_cv_prog_cxx_g=no 5046 CXXFLAGS="-g" 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049 5050int 5051main (void) 5052{ 5053 5054 ; 5055 return 0; 5056} 5057_ACEOF 5058if ac_fn_cxx_try_compile "$LINENO" 5059then : 5060 ac_cv_prog_cxx_g=yes 5061else $as_nop 5062 CXXFLAGS="" 5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064/* end confdefs.h. */ 5065 5066int 5067main (void) 5068{ 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_cxx_try_compile "$LINENO" 5075then : 5076 5077else $as_nop 5078 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5079 CXXFLAGS="-g" 5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082 5083int 5084main (void) 5085{ 5086 5087 ; 5088 return 0; 5089} 5090_ACEOF 5091if ac_fn_cxx_try_compile "$LINENO" 5092then : 5093 ac_cv_prog_cxx_g=yes 5094fi 5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5096fi 5097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5098fi 5099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5101fi 5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5103printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 5104if test $ac_test_CXXFLAGS; then 5105 CXXFLAGS=$ac_save_CXXFLAGS 5106elif test $ac_cv_prog_cxx_g = yes; then 5107 if test "$GXX" = yes; then 5108 CXXFLAGS="-g -O2" 5109 else 5110 CXXFLAGS="-g" 5111 fi 5112else 5113 if test "$GXX" = yes; then 5114 CXXFLAGS="-O2" 5115 else 5116 CXXFLAGS= 5117 fi 5118fi 5119ac_prog_cxx_stdcxx=no 5120if test x$ac_prog_cxx_stdcxx = xno 5121then : 5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 5123printf %s "checking for $CXX option to enable C++11 features... " >&6; } 5124if test ${ac_cv_prog_cxx_11+y} 5125then : 5126 printf %s "(cached) " >&6 5127else $as_nop 5128 ac_cv_prog_cxx_11=no 5129ac_save_CXX=$CXX 5130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132$ac_cxx_conftest_cxx11_program 5133_ACEOF 5134for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 5135do 5136 CXX="$ac_save_CXX $ac_arg" 5137 if ac_fn_cxx_try_compile "$LINENO" 5138then : 5139 ac_cv_prog_cxx_cxx11=$ac_arg 5140fi 5141rm -f core conftest.err conftest.$ac_objext conftest.beam 5142 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 5143done 5144rm -f conftest.$ac_ext 5145CXX=$ac_save_CXX 5146fi 5147 5148if test "x$ac_cv_prog_cxx_cxx11" = xno 5149then : 5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5151printf "%s\n" "unsupported" >&6; } 5152else $as_nop 5153 if test "x$ac_cv_prog_cxx_cxx11" = x 5154then : 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5156printf "%s\n" "none needed" >&6; } 5157else $as_nop 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 5159printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 5160 CXX="$CXX $ac_cv_prog_cxx_cxx11" 5161fi 5162 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 5163 ac_prog_cxx_stdcxx=cxx11 5164fi 5165fi 5166if test x$ac_prog_cxx_stdcxx = xno 5167then : 5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 5169printf %s "checking for $CXX option to enable C++98 features... " >&6; } 5170if test ${ac_cv_prog_cxx_98+y} 5171then : 5172 printf %s "(cached) " >&6 5173else $as_nop 5174 ac_cv_prog_cxx_98=no 5175ac_save_CXX=$CXX 5176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178$ac_cxx_conftest_cxx98_program 5179_ACEOF 5180for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 5181do 5182 CXX="$ac_save_CXX $ac_arg" 5183 if ac_fn_cxx_try_compile "$LINENO" 5184then : 5185 ac_cv_prog_cxx_cxx98=$ac_arg 5186fi 5187rm -f core conftest.err conftest.$ac_objext conftest.beam 5188 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 5189done 5190rm -f conftest.$ac_ext 5191CXX=$ac_save_CXX 5192fi 5193 5194if test "x$ac_cv_prog_cxx_cxx98" = xno 5195then : 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5197printf "%s\n" "unsupported" >&6; } 5198else $as_nop 5199 if test "x$ac_cv_prog_cxx_cxx98" = x 5200then : 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5202printf "%s\n" "none needed" >&6; } 5203else $as_nop 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 5205printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 5206 CXX="$CXX $ac_cv_prog_cxx_cxx98" 5207fi 5208 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 5209 ac_prog_cxx_stdcxx=cxx98 5210fi 5211fi 5212 5213ac_ext=c 5214ac_cpp='$CPP $CPPFLAGS' 5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5217ac_compiler_gnu=$ac_cv_c_compiler_gnu 5218 5219ac_ext=cpp 5220ac_cpp='$CXXCPP $CPPFLAGS' 5221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5225printf %s "checking how to run the C++ preprocessor... " >&6; } 5226if test -z "$CXXCPP"; then 5227 if test ${ac_cv_prog_CXXCPP+y} 5228then : 5229 printf %s "(cached) " >&6 5230else $as_nop 5231 # Double quotes because $CXX needs to be expanded 5232 for CXXCPP in "$CXX -E" cpp /lib/cpp 5233 do 5234 ac_preproc_ok=false 5235for ac_cxx_preproc_warn_flag in '' yes 5236do 5237 # Use a header file that comes with gcc, so configuring glibc 5238 # with a fresh cross-compiler works. 5239 # On the NeXT, cc -E runs the code through the compiler's parser, 5240 # not just through cpp. "Syntax error" is here to catch this case. 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243@%:@include <limits.h> 5244 Syntax error 5245_ACEOF 5246if ac_fn_cxx_try_cpp "$LINENO" 5247then : 5248 5249else $as_nop 5250 # Broken: fails on valid input. 5251continue 5252fi 5253rm -f conftest.err conftest.i conftest.$ac_ext 5254 5255 # OK, works on sane cases. Now check whether nonexistent headers 5256 # can be detected and how. 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259@%:@include <ac_nonexistent.h> 5260_ACEOF 5261if ac_fn_cxx_try_cpp "$LINENO" 5262then : 5263 # Broken: success on invalid input. 5264continue 5265else $as_nop 5266 # Passes both tests. 5267ac_preproc_ok=: 5268break 5269fi 5270rm -f conftest.err conftest.i conftest.$ac_ext 5271 5272done 5273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5274rm -f conftest.i conftest.err conftest.$ac_ext 5275if $ac_preproc_ok 5276then : 5277 break 5278fi 5279 5280 done 5281 ac_cv_prog_CXXCPP=$CXXCPP 5282 5283fi 5284 CXXCPP=$ac_cv_prog_CXXCPP 5285else 5286 ac_cv_prog_CXXCPP=$CXXCPP 5287fi 5288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5289printf "%s\n" "$CXXCPP" >&6; } 5290ac_preproc_ok=false 5291for ac_cxx_preproc_warn_flag in '' yes 5292do 5293 # Use a header file that comes with gcc, so configuring glibc 5294 # with a fresh cross-compiler works. 5295 # On the NeXT, cc -E runs the code through the compiler's parser, 5296 # not just through cpp. "Syntax error" is here to catch this case. 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299@%:@include <limits.h> 5300 Syntax error 5301_ACEOF 5302if ac_fn_cxx_try_cpp "$LINENO" 5303then : 5304 5305else $as_nop 5306 # Broken: fails on valid input. 5307continue 5308fi 5309rm -f conftest.err conftest.i conftest.$ac_ext 5310 5311 # OK, works on sane cases. Now check whether nonexistent headers 5312 # can be detected and how. 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315@%:@include <ac_nonexistent.h> 5316_ACEOF 5317if ac_fn_cxx_try_cpp "$LINENO" 5318then : 5319 # Broken: success on invalid input. 5320continue 5321else $as_nop 5322 # Passes both tests. 5323ac_preproc_ok=: 5324break 5325fi 5326rm -f conftest.err conftest.i conftest.$ac_ext 5327 5328done 5329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5330rm -f conftest.i conftest.err conftest.$ac_ext 5331if $ac_preproc_ok 5332then : 5333 5334else $as_nop 5335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5336printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5337as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5338See \`config.log' for more details" "$LINENO" 5; } 5339fi 5340 5341ac_ext=c 5342ac_cpp='$CPP $CPPFLAGS' 5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5345ac_compiler_gnu=$ac_cv_c_compiler_gnu 5346 5347CXXFLAGS="$SAVED_CXXFLAGS" 5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5349printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5350set x ${MAKE-make} 5351ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5352if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5353then : 5354 printf %s "(cached) " >&6 5355else $as_nop 5356 cat >conftest.make <<\_ACEOF 5357SHELL = /bin/sh 5358all: 5359 @echo '@@@%%%=$(MAKE)=@@@%%%' 5360_ACEOF 5361# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5362case `${MAKE-make} -f conftest.make 2>/dev/null` in 5363 *@@@%%%=?*=@@@%%%*) 5364 eval ac_cv_prog_make_${ac_make}_set=yes;; 5365 *) 5366 eval ac_cv_prog_make_${ac_make}_set=no;; 5367esac 5368rm -f conftest.make 5369fi 5370if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5372printf "%s\n" "yes" >&6; } 5373 SET_MAKE= 5374else 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376printf "%s\n" "no" >&6; } 5377 SET_MAKE="MAKE=${MAKE-make}" 5378fi 5379 5380 5381 # Find a good install program. We prefer a C program (faster), 5382# so one script is as good as another. But avoid the broken or 5383# incompatible versions: 5384# SysV /etc/install, /usr/sbin/install 5385# SunOS /usr/etc/install 5386# IRIX /sbin/install 5387# AIX /bin/install 5388# AmigaOS /C/install, which installs bootblocks on floppy discs 5389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5390# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5392# OS/2's system install, which has a completely different semantic 5393# ./install, which can be erroneously created by make from ./install.sh. 5394# Reject install programs that cannot install multiple files. 5395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5396printf %s "checking for a BSD-compatible install... " >&6; } 5397if test -z "$INSTALL"; then 5398if test ${ac_cv_path_install+y} 5399then : 5400 printf %s "(cached) " >&6 5401else $as_nop 5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5403for as_dir in $PATH 5404do 5405 IFS=$as_save_IFS 5406 case $as_dir in #((( 5407 '') as_dir=./ ;; 5408 */) ;; 5409 *) as_dir=$as_dir/ ;; 5410 esac 5411 # Account for fact that we put trailing slashes in our PATH walk. 5412case $as_dir in @%:@(( 5413 ./ | /[cC]/* | \ 5414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5416 /usr/ucb/* ) ;; 5417 *) 5418 # OSF1 and SCO ODT 3.0 have their own names for install. 5419 # Don't use installbsd from OSF since it installs stuff as root 5420 # by default. 5421 for ac_prog in ginstall scoinst install; do 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5424 if test $ac_prog = install && 5425 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5426 # AIX install. It has an incompatible calling convention. 5427 : 5428 elif test $ac_prog = install && 5429 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5430 # program-specific install script used by HP pwplus--don't use. 5431 : 5432 else 5433 rm -rf conftest.one conftest.two conftest.dir 5434 echo one > conftest.one 5435 echo two > conftest.two 5436 mkdir conftest.dir 5437 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5438 test -s conftest.one && test -s conftest.two && 5439 test -s conftest.dir/conftest.one && 5440 test -s conftest.dir/conftest.two 5441 then 5442 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5443 break 3 5444 fi 5445 fi 5446 fi 5447 done 5448 done 5449 ;; 5450esac 5451 5452 done 5453IFS=$as_save_IFS 5454 5455rm -rf conftest.one conftest.two conftest.dir 5456 5457fi 5458 if test ${ac_cv_path_install+y}; then 5459 INSTALL=$ac_cv_path_install 5460 else 5461 # As a last resort, use the slow shell script. Don't cache a 5462 # value for INSTALL within a source directory, because that will 5463 # break other packages using the cache if that directory is 5464 # removed, or if the value is a relative name. 5465 INSTALL=$ac_install_sh 5466 fi 5467fi 5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5469printf "%s\n" "$INSTALL" >&6; } 5470 5471# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5472# It thinks the first close brace ends the variable substitution. 5473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5474 5475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5476 5477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5478 5479if test -n "$ac_tool_prefix"; then 5480 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5481set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5483printf %s "checking for $ac_word... " >&6; } 5484if test ${ac_cv_prog_RANLIB+y} 5485then : 5486 printf %s "(cached) " >&6 5487else $as_nop 5488 if test -n "$RANLIB"; then 5489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5490else 5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH 5493do 5494 IFS=$as_save_IFS 5495 case $as_dir in #((( 5496 '') as_dir=./ ;; 5497 */) ;; 5498 *) as_dir=$as_dir/ ;; 5499 esac 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507 done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512RANLIB=$ac_cv_prog_RANLIB 5513if test -n "$RANLIB"; then 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5515printf "%s\n" "$RANLIB" >&6; } 5516else 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518printf "%s\n" "no" >&6; } 5519fi 5520 5521 5522fi 5523if test -z "$ac_cv_prog_RANLIB"; then 5524 ac_ct_RANLIB=$RANLIB 5525 # Extract the first word of "ranlib", so it can be a program name with args. 5526set dummy ranlib; ac_word=$2 5527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5528printf %s "checking for $ac_word... " >&6; } 5529if test ${ac_cv_prog_ac_ct_RANLIB+y} 5530then : 5531 printf %s "(cached) " >&6 5532else $as_nop 5533 if test -n "$ac_ct_RANLIB"; then 5534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5535else 5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537for as_dir in $PATH 5538do 5539 IFS=$as_save_IFS 5540 case $as_dir in #((( 5541 '') as_dir=./ ;; 5542 */) ;; 5543 *) as_dir=$as_dir/ ;; 5544 esac 5545 for ac_exec_ext in '' $ac_executable_extensions; do 5546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5547 ac_cv_prog_ac_ct_RANLIB="ranlib" 5548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5549 break 2 5550 fi 5551done 5552 done 5553IFS=$as_save_IFS 5554 5555fi 5556fi 5557ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5558if test -n "$ac_ct_RANLIB"; then 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5560printf "%s\n" "$ac_ct_RANLIB" >&6; } 5561else 5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5563printf "%s\n" "no" >&6; } 5564fi 5565 5566 if test "x$ac_ct_RANLIB" = x; then 5567 RANLIB=":" 5568 else 5569 case $cross_compiling:$ac_tool_warned in 5570yes:) 5571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5573ac_tool_warned=yes ;; 5574esac 5575 RANLIB=$ac_ct_RANLIB 5576 fi 5577else 5578 RANLIB="$ac_cv_prog_RANLIB" 5579fi 5580 5581if test -n "$ac_tool_prefix"; then 5582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5583set dummy ${ac_tool_prefix}strip; ac_word=$2 5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5585printf %s "checking for $ac_word... " >&6; } 5586if test ${ac_cv_prog_STRIP+y} 5587then : 5588 printf %s "(cached) " >&6 5589else $as_nop 5590 if test -n "$STRIP"; then 5591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5592else 5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5594for as_dir in $PATH 5595do 5596 IFS=$as_save_IFS 5597 case $as_dir in #((( 5598 '') as_dir=./ ;; 5599 */) ;; 5600 *) as_dir=$as_dir/ ;; 5601 esac 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5604 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608done 5609 done 5610IFS=$as_save_IFS 5611 5612fi 5613fi 5614STRIP=$ac_cv_prog_STRIP 5615if test -n "$STRIP"; then 5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5617printf "%s\n" "$STRIP" >&6; } 5618else 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620printf "%s\n" "no" >&6; } 5621fi 5622 5623 5624fi 5625if test -z "$ac_cv_prog_STRIP"; then 5626 ac_ct_STRIP=$STRIP 5627 # Extract the first word of "strip", so it can be a program name with args. 5628set dummy strip; ac_word=$2 5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5630printf %s "checking for $ac_word... " >&6; } 5631if test ${ac_cv_prog_ac_ct_STRIP+y} 5632then : 5633 printf %s "(cached) " >&6 5634else $as_nop 5635 if test -n "$ac_ct_STRIP"; then 5636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 case $as_dir in #((( 5643 '') as_dir=./ ;; 5644 */) ;; 5645 *) as_dir=$as_dir/ ;; 5646 esac 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5649 ac_cv_prog_ac_ct_STRIP="strip" 5650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653done 5654 done 5655IFS=$as_save_IFS 5656 5657fi 5658fi 5659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5660if test -n "$ac_ct_STRIP"; then 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5662printf "%s\n" "$ac_ct_STRIP" >&6; } 5663else 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665printf "%s\n" "no" >&6; } 5666fi 5667 5668 if test "x$ac_ct_STRIP" = x; then 5669 STRIP=":" 5670 else 5671 case $cross_compiling:$ac_tool_warned in 5672yes:) 5673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5675ac_tool_warned=yes ;; 5676esac 5677 STRIP=$ac_ct_STRIP 5678 fi 5679else 5680 STRIP="$ac_cv_prog_STRIP" 5681fi 5682 5683if test -n "$ac_tool_prefix"; then 5684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5685set dummy ${ac_tool_prefix}ar; ac_word=$2 5686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687printf %s "checking for $ac_word... " >&6; } 5688if test ${ac_cv_prog_AR+y} 5689then : 5690 printf %s "(cached) " >&6 5691else $as_nop 5692 if test -n "$AR"; then 5693 ac_cv_prog_AR="$AR" # Let the user override the test. 5694else 5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696for as_dir in $PATH 5697do 5698 IFS=$as_save_IFS 5699 case $as_dir in #((( 5700 '') as_dir=./ ;; 5701 */) ;; 5702 *) as_dir=$as_dir/ ;; 5703 esac 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5706 ac_cv_prog_AR="${ac_tool_prefix}ar" 5707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711 done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716AR=$ac_cv_prog_AR 5717if test -n "$AR"; then 5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5719printf "%s\n" "$AR" >&6; } 5720else 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722printf "%s\n" "no" >&6; } 5723fi 5724 5725 5726fi 5727if test -z "$ac_cv_prog_AR"; then 5728 ac_ct_AR=$AR 5729 # Extract the first word of "ar", so it can be a program name with args. 5730set dummy ar; ac_word=$2 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732printf %s "checking for $ac_word... " >&6; } 5733if test ${ac_cv_prog_ac_ct_AR+y} 5734then : 5735 printf %s "(cached) " >&6 5736else $as_nop 5737 if test -n "$ac_ct_AR"; then 5738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5739else 5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741for as_dir in $PATH 5742do 5743 IFS=$as_save_IFS 5744 case $as_dir in #((( 5745 '') as_dir=./ ;; 5746 */) ;; 5747 *) as_dir=$as_dir/ ;; 5748 esac 5749 for ac_exec_ext in '' $ac_executable_extensions; do 5750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5751 ac_cv_prog_ac_ct_AR="ar" 5752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5753 break 2 5754 fi 5755done 5756 done 5757IFS=$as_save_IFS 5758 5759fi 5760fi 5761ac_ct_AR=$ac_cv_prog_ac_ct_AR 5762if test -n "$ac_ct_AR"; then 5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5764printf "%s\n" "$ac_ct_AR" >&6; } 5765else 5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5767printf "%s\n" "no" >&6; } 5768fi 5769 5770 if test "x$ac_ct_AR" = x; then 5771 AR=":" 5772 else 5773 case $cross_compiling:$ac_tool_warned in 5774yes:) 5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5776printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5777ac_tool_warned=yes ;; 5778esac 5779 AR=$ac_ct_AR 5780 fi 5781else 5782 AR="$ac_cv_prog_AR" 5783fi 5784 5785if test -n "$ac_tool_prefix"; then 5786 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 5787set dummy ${ac_tool_prefix}ld; ac_word=$2 5788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5789printf %s "checking for $ac_word... " >&6; } 5790if test ${ac_cv_prog_LD+y} 5791then : 5792 printf %s "(cached) " >&6 5793else $as_nop 5794 if test -n "$LD"; then 5795 ac_cv_prog_LD="$LD" # Let the user override the test. 5796else 5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798for as_dir in $PATH 5799do 5800 IFS=$as_save_IFS 5801 case $as_dir in #((( 5802 '') as_dir=./ ;; 5803 */) ;; 5804 *) as_dir=$as_dir/ ;; 5805 esac 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5808 ac_cv_prog_LD="${ac_tool_prefix}ld" 5809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5810 break 2 5811 fi 5812done 5813 done 5814IFS=$as_save_IFS 5815 5816fi 5817fi 5818LD=$ac_cv_prog_LD 5819if test -n "$LD"; then 5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5821printf "%s\n" "$LD" >&6; } 5822else 5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5824printf "%s\n" "no" >&6; } 5825fi 5826 5827 5828fi 5829if test -z "$ac_cv_prog_LD"; then 5830 ac_ct_LD=$LD 5831 # Extract the first word of "ld", so it can be a program name with args. 5832set dummy ld; ac_word=$2 5833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5834printf %s "checking for $ac_word... " >&6; } 5835if test ${ac_cv_prog_ac_ct_LD+y} 5836then : 5837 printf %s "(cached) " >&6 5838else $as_nop 5839 if test -n "$ac_ct_LD"; then 5840 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 5841else 5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5843for as_dir in $PATH 5844do 5845 IFS=$as_save_IFS 5846 case $as_dir in #((( 5847 '') as_dir=./ ;; 5848 */) ;; 5849 *) as_dir=$as_dir/ ;; 5850 esac 5851 for ac_exec_ext in '' $ac_executable_extensions; do 5852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5853 ac_cv_prog_ac_ct_LD="ld" 5854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5855 break 2 5856 fi 5857done 5858 done 5859IFS=$as_save_IFS 5860 5861fi 5862fi 5863ac_ct_LD=$ac_cv_prog_ac_ct_LD 5864if test -n "$ac_ct_LD"; then 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 5866printf "%s\n" "$ac_ct_LD" >&6; } 5867else 5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5869printf "%s\n" "no" >&6; } 5870fi 5871 5872 if test "x$ac_ct_LD" = x; then 5873 LD=":" 5874 else 5875 case $cross_compiling:$ac_tool_warned in 5876yes:) 5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5878printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5879ac_tool_warned=yes ;; 5880esac 5881 LD=$ac_ct_LD 5882 fi 5883else 5884 LD="$ac_cv_prog_LD" 5885fi 5886 5887if test -n "$ac_tool_prefix"; then 5888 # Extract the first word of "${ac_tool_prefix}strings", so it can be a program name with args. 5889set dummy ${ac_tool_prefix}strings; ac_word=$2 5890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5891printf %s "checking for $ac_word... " >&6; } 5892if test ${ac_cv_prog_STRINGS+y} 5893then : 5894 printf %s "(cached) " >&6 5895else $as_nop 5896 if test -n "$STRINGS"; then 5897 ac_cv_prog_STRINGS="$STRINGS" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 case $as_dir in #((( 5904 '') as_dir=./ ;; 5905 */) ;; 5906 *) as_dir=$as_dir/ ;; 5907 esac 5908 for ac_exec_ext in '' $ac_executable_extensions; do 5909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5910 ac_cv_prog_STRINGS="${ac_tool_prefix}strings" 5911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5912 break 2 5913 fi 5914done 5915 done 5916IFS=$as_save_IFS 5917 5918fi 5919fi 5920STRINGS=$ac_cv_prog_STRINGS 5921if test -n "$STRINGS"; then 5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRINGS" >&5 5923printf "%s\n" "$STRINGS" >&6; } 5924else 5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5926printf "%s\n" "no" >&6; } 5927fi 5928 5929 5930fi 5931if test -z "$ac_cv_prog_STRINGS"; then 5932 ac_ct_STRINGS=$STRINGS 5933 # Extract the first word of "strings", so it can be a program name with args. 5934set dummy strings; ac_word=$2 5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936printf %s "checking for $ac_word... " >&6; } 5937if test ${ac_cv_prog_ac_ct_STRINGS+y} 5938then : 5939 printf %s "(cached) " >&6 5940else $as_nop 5941 if test -n "$ac_ct_STRINGS"; then 5942 ac_cv_prog_ac_ct_STRINGS="$ac_ct_STRINGS" # Let the user override the test. 5943else 5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5945for as_dir in $PATH 5946do 5947 IFS=$as_save_IFS 5948 case $as_dir in #((( 5949 '') as_dir=./ ;; 5950 */) ;; 5951 *) as_dir=$as_dir/ ;; 5952 esac 5953 for ac_exec_ext in '' $ac_executable_extensions; do 5954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5955 ac_cv_prog_ac_ct_STRINGS="strings" 5956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5957 break 2 5958 fi 5959done 5960 done 5961IFS=$as_save_IFS 5962 5963fi 5964fi 5965ac_ct_STRINGS=$ac_cv_prog_ac_ct_STRINGS 5966if test -n "$ac_ct_STRINGS"; then 5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRINGS" >&5 5968printf "%s\n" "$ac_ct_STRINGS" >&6; } 5969else 5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5971printf "%s\n" "no" >&6; } 5972fi 5973 5974 if test "x$ac_ct_STRINGS" = x; then 5975 STRINGS=":" 5976 else 5977 case $cross_compiling:$ac_tool_warned in 5978yes:) 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5981ac_tool_warned=yes ;; 5982esac 5983 STRINGS=$ac_ct_STRINGS 5984 fi 5985else 5986 STRINGS="$ac_cv_prog_STRINGS" 5987fi 5988 5989if test -n "$ac_tool_prefix"; then 5990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5991set dummy ${ac_tool_prefix}objdump; ac_word=$2 5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5993printf %s "checking for $ac_word... " >&6; } 5994if test ${ac_cv_prog_OBJDUMP+y} 5995then : 5996 printf %s "(cached) " >&6 5997else $as_nop 5998 if test -n "$OBJDUMP"; then 5999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 case $as_dir in #((( 6006 '') as_dir=./ ;; 6007 */) ;; 6008 *) as_dir=$as_dir/ ;; 6009 esac 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6012 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016done 6017 done 6018IFS=$as_save_IFS 6019 6020fi 6021fi 6022OBJDUMP=$ac_cv_prog_OBJDUMP 6023if test -n "$OBJDUMP"; then 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6025printf "%s\n" "$OBJDUMP" >&6; } 6026else 6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028printf "%s\n" "no" >&6; } 6029fi 6030 6031 6032fi 6033if test -z "$ac_cv_prog_OBJDUMP"; then 6034 ac_ct_OBJDUMP=$OBJDUMP 6035 # Extract the first word of "objdump", so it can be a program name with args. 6036set dummy objdump; ac_word=$2 6037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038printf %s "checking for $ac_word... " >&6; } 6039if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6040then : 6041 printf %s "(cached) " >&6 6042else $as_nop 6043 if test -n "$ac_ct_OBJDUMP"; then 6044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6045else 6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6047for as_dir in $PATH 6048do 6049 IFS=$as_save_IFS 6050 case $as_dir in #((( 6051 '') as_dir=./ ;; 6052 */) ;; 6053 *) as_dir=$as_dir/ ;; 6054 esac 6055 for ac_exec_ext in '' $ac_executable_extensions; do 6056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6057 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6059 break 2 6060 fi 6061done 6062 done 6063IFS=$as_save_IFS 6064 6065fi 6066fi 6067ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6068if test -n "$ac_ct_OBJDUMP"; then 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6070printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6071else 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073printf "%s\n" "no" >&6; } 6074fi 6075 6076 if test "x$ac_ct_OBJDUMP" = x; then 6077 OBJDUMP=":" 6078 else 6079 case $cross_compiling:$ac_tool_warned in 6080yes:) 6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6083ac_tool_warned=yes ;; 6084esac 6085 OBJDUMP=$ac_ct_OBJDUMP 6086 fi 6087else 6088 OBJDUMP="$ac_cv_prog_OBJDUMP" 6089fi 6090 6091 6092 6093 6094 6095 6096 6097 6098if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6099 if test -n "$ac_tool_prefix"; then 6100 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6101set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6103printf %s "checking for $ac_word... " >&6; } 6104if test ${ac_cv_path_PKG_CONFIG+y} 6105then : 6106 printf %s "(cached) " >&6 6107else $as_nop 6108 case $PKG_CONFIG in 6109 [\\/]* | ?:[\\/]*) 6110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6111 ;; 6112 *) 6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 case $as_dir in #((( 6118 '') as_dir=./ ;; 6119 */) ;; 6120 *) as_dir=$as_dir/ ;; 6121 esac 6122 for ac_exec_ext in '' $ac_executable_extensions; do 6123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6124 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6126 break 2 6127 fi 6128done 6129 done 6130IFS=$as_save_IFS 6131 6132 ;; 6133esac 6134fi 6135PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6136if test -n "$PKG_CONFIG"; then 6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6138printf "%s\n" "$PKG_CONFIG" >&6; } 6139else 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6141printf "%s\n" "no" >&6; } 6142fi 6143 6144 6145fi 6146if test -z "$ac_cv_path_PKG_CONFIG"; then 6147 ac_pt_PKG_CONFIG=$PKG_CONFIG 6148 # Extract the first word of "pkg-config", so it can be a program name with args. 6149set dummy pkg-config; ac_word=$2 6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6151printf %s "checking for $ac_word... " >&6; } 6152if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6153then : 6154 printf %s "(cached) " >&6 6155else $as_nop 6156 case $ac_pt_PKG_CONFIG in 6157 [\\/]* | ?:[\\/]*) 6158 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6159 ;; 6160 *) 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 case $as_dir in #((( 6166 '') as_dir=./ ;; 6167 */) ;; 6168 *) as_dir=$as_dir/ ;; 6169 esac 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6172 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177 done 6178IFS=$as_save_IFS 6179 6180 ;; 6181esac 6182fi 6183ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6184if test -n "$ac_pt_PKG_CONFIG"; then 6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6186printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6187else 6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189printf "%s\n" "no" >&6; } 6190fi 6191 6192 if test "x$ac_pt_PKG_CONFIG" = x; then 6193 PKG_CONFIG="" 6194 else 6195 case $cross_compiling:$ac_tool_warned in 6196yes:) 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6198printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6199ac_tool_warned=yes ;; 6200esac 6201 PKG_CONFIG=$ac_pt_PKG_CONFIG 6202 fi 6203else 6204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6205fi 6206 6207fi 6208if test -n "$PKG_CONFIG"; then 6209 _pkg_min_version=0.9.0 6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6211printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6214printf "%s\n" "yes" >&6; } 6215 else 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217printf "%s\n" "no" >&6; } 6218 PKG_CONFIG="" 6219 fi 6220fi 6221 6222 6223ac_header= ac_cache= 6224for ac_item in $ac_header_c_list 6225do 6226 if test $ac_cache; then 6227 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6228 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6229 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6230 fi 6231 ac_header= ac_cache= 6232 elif test $ac_header; then 6233 ac_cache=$ac_item 6234 else 6235 ac_header=$ac_item 6236 fi 6237done 6238 6239 6240 6241 6242 6243 6244 6245 6246if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6247then : 6248 6249printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h 6250 6251fi 6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6253printf %s "checking for grep that handles long lines and -e... " >&6; } 6254if test ${ac_cv_path_GREP+y} 6255then : 6256 printf %s "(cached) " >&6 6257else $as_nop 6258 if test -z "$GREP"; then 6259 ac_path_GREP_found=false 6260 # Loop through the user's path and test for each of PROGNAME-LIST 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6263do 6264 IFS=$as_save_IFS 6265 case $as_dir in #((( 6266 '') as_dir=./ ;; 6267 */) ;; 6268 *) as_dir=$as_dir/ ;; 6269 esac 6270 for ac_prog in grep ggrep 6271 do 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6274 as_fn_executable_p "$ac_path_GREP" || continue 6275# Check for GNU ac_path_GREP and select it if it is found. 6276 # Check for GNU $ac_path_GREP 6277case `"$ac_path_GREP" --version 2>&1` in 6278*GNU*) 6279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6280*) 6281 ac_count=0 6282 printf %s 0123456789 >"conftest.in" 6283 while : 6284 do 6285 cat "conftest.in" "conftest.in" >"conftest.tmp" 6286 mv "conftest.tmp" "conftest.in" 6287 cp "conftest.in" "conftest.nl" 6288 printf "%s\n" 'GREP' >> "conftest.nl" 6289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6291 as_fn_arith $ac_count + 1 && ac_count=$as_val 6292 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6293 # Best one so far, save it but keep looking for a better one 6294 ac_cv_path_GREP="$ac_path_GREP" 6295 ac_path_GREP_max=$ac_count 6296 fi 6297 # 10*(2^10) chars as input seems more than enough 6298 test $ac_count -gt 10 && break 6299 done 6300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6301esac 6302 6303 $ac_path_GREP_found && break 3 6304 done 6305 done 6306 done 6307IFS=$as_save_IFS 6308 if test -z "$ac_cv_path_GREP"; then 6309 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6310 fi 6311else 6312 ac_cv_path_GREP=$GREP 6313fi 6314 6315fi 6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6317printf "%s\n" "$ac_cv_path_GREP" >&6; } 6318 GREP="$ac_cv_path_GREP" 6319 6320 6321# Autoupdate added the next two lines to ensure that your configure 6322# script's behavior did not change. They are probably safe to remove. 6323 6324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6325printf %s "checking for egrep... " >&6; } 6326if test ${ac_cv_path_EGREP+y} 6327then : 6328 printf %s "(cached) " >&6 6329else $as_nop 6330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6331 then ac_cv_path_EGREP="$GREP -E" 6332 else 6333 if test -z "$EGREP"; then 6334 ac_path_EGREP_found=false 6335 # Loop through the user's path and test for each of PROGNAME-LIST 6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6338do 6339 IFS=$as_save_IFS 6340 case $as_dir in #((( 6341 '') as_dir=./ ;; 6342 */) ;; 6343 *) as_dir=$as_dir/ ;; 6344 esac 6345 for ac_prog in egrep 6346 do 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6349 as_fn_executable_p "$ac_path_EGREP" || continue 6350# Check for GNU ac_path_EGREP and select it if it is found. 6351 # Check for GNU $ac_path_EGREP 6352case `"$ac_path_EGREP" --version 2>&1` in 6353*GNU*) 6354 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6355*) 6356 ac_count=0 6357 printf %s 0123456789 >"conftest.in" 6358 while : 6359 do 6360 cat "conftest.in" "conftest.in" >"conftest.tmp" 6361 mv "conftest.tmp" "conftest.in" 6362 cp "conftest.in" "conftest.nl" 6363 printf "%s\n" 'EGREP' >> "conftest.nl" 6364 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6366 as_fn_arith $ac_count + 1 && ac_count=$as_val 6367 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6368 # Best one so far, save it but keep looking for a better one 6369 ac_cv_path_EGREP="$ac_path_EGREP" 6370 ac_path_EGREP_max=$ac_count 6371 fi 6372 # 10*(2^10) chars as input seems more than enough 6373 test $ac_count -gt 10 && break 6374 done 6375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6376esac 6377 6378 $ac_path_EGREP_found && break 3 6379 done 6380 done 6381 done 6382IFS=$as_save_IFS 6383 if test -z "$ac_cv_path_EGREP"; then 6384 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6385 fi 6386else 6387 ac_cv_path_EGREP=$EGREP 6388fi 6389 6390 fi 6391fi 6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6393printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6394 EGREP="$ac_cv_path_EGREP" 6395 6396 6397 6398ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 6399if test "x$ac_cv_header_inttypes_h" = xyes 6400then : 6401 printf "%s\n" "@%:@define HAVE_INTTYPES_H 1" >>confdefs.h 6402 6403fi 6404ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 6405if test "x$ac_cv_header_stdint_h" = xyes 6406then : 6407 printf "%s\n" "@%:@define HAVE_STDINT_H 1" >>confdefs.h 6408 6409fi 6410ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 6411if test "x$ac_cv_header_sys_types_h" = xyes 6412then : 6413 printf "%s\n" "@%:@define HAVE_SYS_TYPES_H 1" >>confdefs.h 6414 6415fi 6416ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 6417if test "x$ac_cv_header_sys_syscall_h" = xyes 6418then : 6419 printf "%s\n" "@%:@define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 6420 6421fi 6422ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 6423if test "x$ac_cv_header_stropts_h" = xyes 6424then : 6425 printf "%s\n" "@%:@define HAVE_STROPTS_H 1" >>confdefs.h 6426 6427fi 6428 6429ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall" 6430if test "x$ac_cv_func_syscall" = xyes 6431then : 6432 printf "%s\n" "@%:@define HAVE_SYSCALL 1" >>confdefs.h 6433 6434fi 6435 6436 6437check_version() { 6438 check_ver_req="$1" 6439 check_ver_real="$2" 6440 6441 set - `echo $check_ver_req 0 0 0 | sed 's/\./\ /g'` 6442 check_ver_major=$1 6443 check_ver_minor=$2 6444 check_ver_micro=$3 6445 6446 set - `echo $check_ver_real 0 0 0 | sed 's/\./\ /g'` 6447 check_ver_ok=0 6448 6449 if test "x$1" = "x" -o $1 -lt ${check_ver_major} ; then 6450 check_ver_ok=0 6451 elif test $1 -gt ${check_ver_major} ; then 6452 check_ver_ok=1 6453 elif test "x$2" = "x" -o $2 -lt ${check_ver_minor} ; then 6454 check_ver_ok=0 6455 elif test $2 -gt ${check_ver_minor} ; then 6456 check_ver_ok=1 6457 elif test "x$3" = "x" -o $3 -lt ${check_ver_micro} ; then 6458 check_ver_ok=0 6459 else 6460 check_ver_ok=1 6461 fi 6462 6463 test $check_ver_ok = 1 6464} 6465 6466if test ${ac_cv_compiler_version_line+y} 6467then : 6468 printf %s "(cached) " >&6 6469else $as_nop 6470 ac_cv_compiler_version_line=`LC_ALL=C $CXX --version | sed -e 1q` 6471fi 6472 6473 6474# g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) 6475# gcc (GCC) 7.2.0 6476# g++ (Debian 4.9.2-10) 4.9.2 6477# Debian clang version 3.5.0-10 (tags/RELEASE_350/final) (based on LLVM 3.5.0) 6478# clang version 5.0.0 (tags/RELEASE_500/final) 6479# Apple LLVM version 8.0.0 (clang-800.0.42.1) 6480 6481case "$ac_cv_compiler_version_line" in 6482 *apple*|*Apple*|*clang*) 6483 COMPILER_TYPE=clang 6484 COMPILER_VERSION=`echo "$ac_cv_compiler_version_line" | sed -e 's/^[^0-9]*//' -e 's/[^0-9.].*//'` 6485 ;; 6486 6487 *) 6488 COMPILER_TYPE=gcc 6489 COMPILER_VERSION=`echo "$ac_cv_compiler_version_line" | sed -e 's/^[^)]*//' -e 's/^[^0-9]*//' -e 's/[^0-9.].*//'` 6490 ;; 6491esac 6492 6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler type and version" >&5 6494printf %s "checking compiler type and version... " >&6; } 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COMPILER_TYPE $COMPILER_VERSION" >&5 6496printf "%s\n" "$COMPILER_TYPE $COMPILER_VERSION" >&6; } 6497 6498 6499 6500 6501# Extract the first word of ""lld"", so it can be a program name with args. 6502set dummy "lld"; ac_word=$2 6503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6504printf %s "checking for $ac_word... " >&6; } 6505if test ${ac_cv_path_LLVM_LLD+y} 6506then : 6507 printf %s "(cached) " >&6 6508else $as_nop 6509 case $LLVM_LLD in 6510 [\\/]* | ?:[\\/]*) 6511 ac_cv_path_LLVM_LLD="$LLVM_LLD" # Let the user override the test with a path. 6512 ;; 6513 *) 6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6515for as_dir in $PATH 6516do 6517 IFS=$as_save_IFS 6518 case $as_dir in #((( 6519 '') as_dir=./ ;; 6520 */) ;; 6521 *) as_dir=$as_dir/ ;; 6522 esac 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6525 ac_cv_path_LLVM_LLD="$as_dir$ac_word$ac_exec_ext" 6526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530 done 6531IFS=$as_save_IFS 6532 6533 ;; 6534esac 6535fi 6536LLVM_LLD=$ac_cv_path_LLVM_LLD 6537if test -n "$LLVM_LLD"; then 6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_LLD" >&5 6539printf "%s\n" "$LLVM_LLD" >&6; } 6540else 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542printf "%s\n" "no" >&6; } 6543fi 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for the \"-std=c++17\" flag" >&5 6569printf %s "checking for support for the \"-std=c++17\" flag... " >&6; } 6570if test ${ax_cv_std_cxx_flag+y} 6571then : 6572 printf %s "(cached) " >&6 6573else $as_nop 6574 6575 6576 ac_ext=cpp 6577ac_cpp='$CXXCPP $CPPFLAGS' 6578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6581 6582 CXXFLAGS_SAVED="$CXXFLAGS" 6583 6584 for flag in c++17; do 6585 CXXFLAGS="$CXXFLAGS_SAVED -std=$flag" 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588 6589int 6590main (void) 6591{ 6592true; 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597if ac_fn_cxx_try_compile "$LINENO" 6598then : 6599 ax_cv_std_cxx_flag="-std=$flag" 6600else $as_nop 6601 ax_cv_std_cxx_flag="undecided" 6602fi 6603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6604 6605 if test x"$ax_cv_std_cxx_flag" != xundecided ; then 6606 break 6607 fi 6608 done 6609 6610 if test x"$ax_cv_std_cxx_flag" = xundecided ; then 6611 ax_cv_std_cxx_flag="no" 6612 fi 6613 6614 ac_ext=c 6615ac_cpp='$CPP $CPPFLAGS' 6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6618ac_compiler_gnu=$ac_cv_c_compiler_gnu 6619 6620 CXXFLAGS="$CXXFLAGS_SAVED" 6621 6622fi 6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_std_cxx_flag" >&5 6624printf "%s\n" "$ax_cv_std_cxx_flag" >&6; } 6625 6626 STD_CXX="" 6627 if test x"$ax_cv_std_cxx_flag" != xno ; then 6628 STD_CXX=$ax_cv_std_cxx_flag 6629 fi 6630 6631 6632 6633 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"attribute 'maybe_unused'\"" >&5 6635printf %s "checking for support for C++17 feature \"attribute 'maybe_unused'\"... " >&6; } 6636if test ${ax_cv_cxx17_attribute_maybe_unused+y} 6637then : 6638 printf %s "(cached) " >&6 6639else $as_nop 6640 6641 6642 CXXFLAGS_SAVED=$CXXFLAGS 6643 CXXFLAGS="$CXXFLAGS $STD_CXX" 6644 export CXXFLAGS 6645 6646 ac_ext=cpp 6647ac_cpp='$CXXCPP $CPPFLAGS' 6648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6651 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654 6655int testme([[maybe_unused]] int the_var) { 6656 return 42; 6657} 6658 6659int 6660main (void) 6661{ 6662return testme(54); 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_cxx_try_compile "$LINENO" 6668then : 6669 ax_cv_cxx17_attribute_maybe_unused="yes" 6670else $as_nop 6671 ax_cv_cxx17_attribute_maybe_unused="no" 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6674 ac_ext=c 6675ac_cpp='$CPP $CPPFLAGS' 6676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6678ac_compiler_gnu=$ac_cv_c_compiler_gnu 6679 6680 6681 CXXFLAGS="$CXXFLAGS_SAVED" 6682 6683fi 6684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_attribute_maybe_unused" >&5 6685printf "%s\n" "$ax_cv_cxx17_attribute_maybe_unused" >&6; } 6686 6687 if ! test x"$ax_cv_cxx17_attribute_maybe_unused" = xyes ; then 6688 missing_cxx_features="$missing_cxx_features\n * attribute 'maybe_unused' (C++17)" 6689 fi 6690 6691 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"nested namespace definition\"" >&5 6693printf %s "checking for support for C++17 feature \"nested namespace definition\"... " >&6; } 6694if test ${ax_cv_cxx17_nested_namespace_definition+y} 6695then : 6696 printf %s "(cached) " >&6 6697else $as_nop 6698 6699 6700 CXXFLAGS_SAVED=$CXXFLAGS 6701 CXXFLAGS="$CXXFLAGS $STD_CXX" 6702 export CXXFLAGS 6703 6704 ac_ext=cpp 6705ac_cpp='$CXXCPP $CPPFLAGS' 6706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6709 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712namespace A::B::C { int d; } 6713int 6714main (void) 6715{ 6716A::B::C::d = 1; return A::B::C::d; 6717 ; 6718 return 0; 6719} 6720_ACEOF 6721if ac_fn_cxx_try_compile "$LINENO" 6722then : 6723 ax_cv_cxx17_nested_namespace_definition="yes" 6724else $as_nop 6725 ax_cv_cxx17_nested_namespace_definition="no" 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6728 ac_ext=c 6729ac_cpp='$CPP $CPPFLAGS' 6730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6732ac_compiler_gnu=$ac_cv_c_compiler_gnu 6733 6734 6735 CXXFLAGS="$CXXFLAGS_SAVED" 6736 6737fi 6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_nested_namespace_definition" >&5 6739printf "%s\n" "$ax_cv_cxx17_nested_namespace_definition" >&6; } 6740 6741 if ! test x"$ax_cv_cxx17_nested_namespace_definition" = xyes ; then 6742 missing_cxx_features="$missing_cxx_features\n * nested namespace definition (C++17)" 6743 fi 6744 6745 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"structured bindings\"" >&5 6747printf %s "checking for support for C++17 feature \"structured bindings\"... " >&6; } 6748if test ${ax_cv_cxx17_structured_bindings+y} 6749then : 6750 printf %s "(cached) " >&6 6751else $as_nop 6752 6753 6754 CXXFLAGS_SAVED=$CXXFLAGS 6755 CXXFLAGS="$CXXFLAGS $STD_CXX" 6756 export CXXFLAGS 6757 6758 ac_ext=cpp 6759ac_cpp='$CXXCPP $CPPFLAGS' 6760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6763 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766 6767#include <utility> 6768std::pair<int, char> testme() { 6769 return std::make_pair(42, '!'); 6770} 6771 6772int 6773main (void) 6774{ 6775 6776auto const &[the_int, the_char] = testme(); 6777return the_int; 6778 6779 ; 6780 return 0; 6781} 6782_ACEOF 6783if ac_fn_cxx_try_compile "$LINENO" 6784then : 6785 ax_cv_cxx17_structured_bindings="yes" 6786else $as_nop 6787 ax_cv_cxx17_structured_bindings="no" 6788fi 6789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6790 ac_ext=c 6791ac_cpp='$CPP $CPPFLAGS' 6792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6794ac_compiler_gnu=$ac_cv_c_compiler_gnu 6795 6796 6797 CXXFLAGS="$CXXFLAGS_SAVED" 6798 6799fi 6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_structured_bindings" >&5 6801printf "%s\n" "$ax_cv_cxx17_structured_bindings" >&6; } 6802 6803 if ! test x"$ax_cv_cxx17_structured_bindings" = xyes ; then 6804 missing_cxx_features="$missing_cxx_features\n * structured bindings (C++17)" 6805 fi 6806 6807 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"std::optional\"" >&5 6809printf %s "checking for support for C++17 feature \"std::optional\"... " >&6; } 6810if test ${ax_cv_cxx17_std_optional+y} 6811then : 6812 printf %s "(cached) " >&6 6813else $as_nop 6814 6815 6816 CXXFLAGS_SAVED=$CXXFLAGS 6817 CXXFLAGS="$CXXFLAGS $STD_CXX" 6818 export CXXFLAGS 6819 6820 ac_ext=cpp 6821ac_cpp='$CXXCPP $CPPFLAGS' 6822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6825 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6827/* end confdefs.h. */ 6828#include <optional> 6829int 6830main (void) 6831{ 6832 6833 std::optional<int> moo; 6834 moo = 42; 6835 return moo ? moo.value() : moo.value_or(54); 6836 6837 ; 6838 return 0; 6839} 6840_ACEOF 6841if ac_fn_cxx_try_compile "$LINENO" 6842then : 6843 ax_cv_cxx17_std_optional="yes" 6844else $as_nop 6845 ax_cv_cxx17_std_optional="no" 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6848 ac_ext=c 6849ac_cpp='$CPP $CPPFLAGS' 6850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6852ac_compiler_gnu=$ac_cv_c_compiler_gnu 6853 6854 6855 CXXFLAGS="$CXXFLAGS_SAVED" 6856 6857fi 6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_std_optional" >&5 6859printf "%s\n" "$ax_cv_cxx17_std_optional" >&6; } 6860 6861 if ! test x"$ax_cv_cxx17_std_optional" = xyes ; then 6862 missing_cxx_features="$missing_cxx_features\n * std::optional (C++17)" 6863 fi 6864 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"std::gcd\"" >&5 6867printf %s "checking for support for C++17 feature \"std::gcd\"... " >&6; } 6868if test ${ax_cv_cxx17_std_gcd+y} 6869then : 6870 printf %s "(cached) " >&6 6871else $as_nop 6872 6873 6874 CXXFLAGS_SAVED=$CXXFLAGS 6875 CXXFLAGS="$CXXFLAGS $STD_CXX" 6876 export CXXFLAGS 6877 6878 ac_ext=cpp 6879ac_cpp='$CXXCPP $CPPFLAGS' 6880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6883 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886#include <numeric> 6887int 6888main (void) 6889{ 6890return std::gcd(42, 54); 6891 ; 6892 return 0; 6893} 6894_ACEOF 6895if ac_fn_cxx_try_compile "$LINENO" 6896then : 6897 ax_cv_cxx17_std_gcd="yes" 6898else $as_nop 6899 ax_cv_cxx17_std_gcd="no" 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6902 ac_ext=c 6903ac_cpp='$CPP $CPPFLAGS' 6904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6906ac_compiler_gnu=$ac_cv_c_compiler_gnu 6907 6908 6909 CXXFLAGS="$CXXFLAGS_SAVED" 6910 6911fi 6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_std_gcd" >&5 6913printf "%s\n" "$ax_cv_cxx17_std_gcd" >&6; } 6914 6915 if ! test x"$ax_cv_cxx17_std_gcd" = xyes ; then 6916 missing_cxx_features="$missing_cxx_features\n * std::gcd (C++17)" 6917 fi 6918 6919 6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"constexpr if\"" >&5 6921printf %s "checking for support for C++17 feature \"constexpr if\"... " >&6; } 6922if test ${ax_cv_cxx17_constexpr_if+y} 6923then : 6924 printf %s "(cached) " >&6 6925else $as_nop 6926 6927 6928 CXXFLAGS_SAVED=$CXXFLAGS 6929 CXXFLAGS="$CXXFLAGS $STD_CXX" 6930 export CXXFLAGS 6931 6932 ac_ext=cpp 6933ac_cpp='$CXXCPP $CPPFLAGS' 6934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6937 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940 6941int 6942main (void) 6943{ 6944if constexpr (true) return 42; else return 54; 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_cxx_try_compile "$LINENO" 6950then : 6951 ax_cv_cxx17_constexpr_if="yes" 6952else $as_nop 6953 ax_cv_cxx17_constexpr_if="no" 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6956 ac_ext=c 6957ac_cpp='$CPP $CPPFLAGS' 6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6960ac_compiler_gnu=$ac_cv_c_compiler_gnu 6961 6962 6963 CXXFLAGS="$CXXFLAGS_SAVED" 6964 6965fi 6966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_constexpr_if" >&5 6967printf "%s\n" "$ax_cv_cxx17_constexpr_if" >&6; } 6968 6969 if ! test x"$ax_cv_cxx17_constexpr_if" = xyes ; then 6970 missing_cxx_features="$missing_cxx_features\n * constexpr if (C++17)" 6971 fi 6972 6973 6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for C++17 feature \"file system library\"" >&5 6975printf %s "checking for support for C++17 feature \"file system library\"... " >&6; } 6976if test ${ax_cv_cxx17_filesystem_library+y} 6977then : 6978 printf %s "(cached) " >&6 6979else $as_nop 6980 6981 6982 CXXFLAGS_SAVED=$CXXFLAGS 6983 CXXFLAGS="$CXXFLAGS $STD_CXX" 6984 export CXXFLAGS 6985 6986 ac_ext=cpp 6987ac_cpp='$CXXCPP $CPPFLAGS' 6988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6991 6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993/* end confdefs.h. */ 6994#include <filesystem> 6995int 6996main (void) 6997{ 6998return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 : 0; 6999 ; 7000 return 0; 7001} 7002_ACEOF 7003if ac_fn_cxx_try_compile "$LINENO" 7004then : 7005 ax_cv_cxx17_filesystem_library="yes" 7006else $as_nop 7007 ax_cv_cxx17_filesystem_library="no" 7008fi 7009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7010 ac_ext=c 7011ac_cpp='$CPP $CPPFLAGS' 7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7014ac_compiler_gnu=$ac_cv_c_compiler_gnu 7015 7016 7017 CXXFLAGS="$CXXFLAGS_SAVED" 7018 7019fi 7020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_filesystem_library" >&5 7021printf "%s\n" "$ax_cv_cxx17_filesystem_library" >&6; } 7022 7023 if ! test x"$ax_cv_cxx17_filesystem_library" = xyes ; then 7024 missing_cxx_features="$missing_cxx_features\n * file system library (C++17)" 7025 fi 7026 7027 7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libraries to link against for the file system library" >&5 7029printf %s "checking for libraries to link against for the file system library... " >&6; } 7030if test ${ax_cv_cxx17_libstdcppfs+y} 7031then : 7032 printf %s "(cached) " >&6 7033else $as_nop 7034 7035 7036 CXXFLAGS_SAVED=$CXXFLAGS 7037 LIBS_SAVED="$LIBS" 7038 CXXFLAGS="$CXXFLAGS $STD_CXX" 7039 LIBS="$LIBS -lstdc++fs" 7040 export CXXFLAGS LIBS 7041 7042 ac_ext=cpp 7043ac_cpp='$CXXCPP $CPPFLAGS' 7044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7047 7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049/* end confdefs.h. */ 7050#include <filesystem> 7051int 7052main (void) 7053{ 7054return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 : 0; 7055 ; 7056 return 0; 7057} 7058_ACEOF 7059if ac_fn_cxx_try_link "$LINENO" 7060then : 7061 ax_cv_cxx17_libstdcppfs="-lstdc++fs" 7062else $as_nop 7063 ax_cv_cxx17_libstdcppfs="" 7064fi 7065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7066 conftest$ac_exeext conftest.$ac_ext 7067 ac_ext=c 7068ac_cpp='$CPP $CPPFLAGS' 7069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7071ac_compiler_gnu=$ac_cv_c_compiler_gnu 7072 7073 7074 CXXFLAGS="$CXXFLAGS_SAVED" 7075 LIBS="$LIBS_SAVED" 7076 7077fi 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx17_libstdcppfs" >&5 7079printf "%s\n" "$ax_cv_cxx17_libstdcppfs" >&6; } 7080 7081 STDCPPFS_LIBS="$ax_cv_cxx17_libstdcppfs" 7082 7083 7084 7085 7086if test x"$missing_cxx_features" != x ; then 7087 printf "The following features of the C++17 standards are not supported by $CXX:$missing_cxx_features\n" 7088 printf "If you are using the GNU C compiler collection (gcc), you need\n" 7089 printf "at least v8; for clang v7 and newer should work.\n" 7090 as_fn_error $? "support for required C++17 features incomplete" "$LINENO" 5 7091fi 7092 7093 7094@%:@ Check whether --with-words was given. 7095if test ${with_words+y} 7096then : 7097 withval=$with_words; 7098fi 7099 7100 case "${with_words}" in 7101 big) 7102 ac_cv_c_bigendian=yes 7103 ;; 7104 little) 7105 ac_cv_c_bigendian=no 7106 ;; 7107 *) 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the byte order is big-endian" >&5 7109printf %s "checking whether the byte order is big-endian... " >&6; } 7110if test ${ac_cv_c_bigendian+y} 7111then : 7112 printf %s "(cached) " >&6 7113else $as_nop 7114 ac_cv_c_bigendian="unknown" 7115 cat >conftest.c <<EOF 7116 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 }; 7117 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 }; 7118 void _a(void) { char*s = (char*)am; s = (char *)ai; } 7119 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 }; 7120 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 }; 7121 void _e(void) { char*s = (char*)em; s = (char*)ei; } 7122 int main(void) { _a(); _e(); return 0; } 7123EOF 7124 7125 if test -f conftest.c 7126 then 7127 if ${CC-cc} -c conftest.c -o conftest.o >>config.log 2>&1 \ 7128 && test -f conftest.o 7129 then 7130 if test "`"$STRINGS" conftest.o | grep BIGenDianSyS`" 7131 then 7132 ac_cv_c_bigendian="yes" 7133 fi 7134 if test "`"$STRINGS" conftest.o | grep LiTTleEnDian`" 7135 then 7136 ac_cv_c_bigendian="no" 7137 fi 7138 fi 7139 fi 7140 7141fi 7142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7143printf "%s\n" "$ac_cv_c_bigendian" >&6; } 7144 if test "${ac_cv_c_bigendian}" = "unknown" 7145 then 7146 as_fn_error $? "Could not guess endianness, please use --with-words" "$LINENO" 5 7147 fi 7148 ;; 7149 esac 7150if test "${ac_cv_c_bigendian}" = "yes" 7151then 7152 7153printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h 7154 7155fi 7156 7157 7158case $host in 7159 *darwin*) 7160 export LDFLAGS="$LDFLAGS -framework CoreFoundation" 7161 ;; 7162esac 7163 7164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if being compiled with mingw32" >&5 7165printf %s "checking if being compiled with mingw32... " >&6; } 7166if test ${ac_cv_mingw32+y} 7167then : 7168 printf %s "(cached) " >&6 7169else $as_nop 7170 7171 case $host in 7172 *mingw*) 7173 ac_cv_mingw32=yes 7174 ;; 7175 *) 7176 ac_cv_mingw32=no 7177 ;; 7178 esac 7179fi 7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mingw32" >&5 7181printf "%s\n" "$ac_cv_mingw32" >&6; } 7182 7183 if test "x$ac_cv_mingw32" = "xyes"; then 7184 export MINGW=1 7185 MINGW_GUIAPP=-mwindows 7186 EXEEXT=.exe 7187 case $host in 7188 *x86_64*mingw*) MINGW_PROCESSOR_ARCH=amd64 ;; 7189 *) MINGW_PROCESSOR_ARCH=x86 ;; 7190 esac 7191 7192 if test -n "$ac_tool_prefix"; then 7193 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 7194set dummy ${ac_tool_prefix}windres; ac_word=$2 7195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196printf %s "checking for $ac_word... " >&6; } 7197if test ${ac_cv_prog_WINDRES+y} 7198then : 7199 printf %s "(cached) " >&6 7200else $as_nop 7201 if test -n "$WINDRES"; then 7202 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 7203else 7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205for as_dir in $PATH 7206do 7207 IFS=$as_save_IFS 7208 case $as_dir in #((( 7209 '') as_dir=./ ;; 7210 */) ;; 7211 *) as_dir=$as_dir/ ;; 7212 esac 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7215 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220 done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225WINDRES=$ac_cv_prog_WINDRES 7226if test -n "$WINDRES"; then 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 7228printf "%s\n" "$WINDRES" >&6; } 7229else 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7231printf "%s\n" "no" >&6; } 7232fi 7233 7234 7235fi 7236if test -z "$ac_cv_prog_WINDRES"; then 7237 ac_ct_WINDRES=$WINDRES 7238 # Extract the first word of "windres", so it can be a program name with args. 7239set dummy windres; ac_word=$2 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7241printf %s "checking for $ac_word... " >&6; } 7242if test ${ac_cv_prog_ac_ct_WINDRES+y} 7243then : 7244 printf %s "(cached) " >&6 7245else $as_nop 7246 if test -n "$ac_ct_WINDRES"; then 7247 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 case $as_dir in #((( 7254 '') as_dir=./ ;; 7255 */) ;; 7256 *) as_dir=$as_dir/ ;; 7257 esac 7258 for ac_exec_ext in '' $ac_executable_extensions; do 7259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7260 ac_cv_prog_ac_ct_WINDRES="windres" 7261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7262 break 2 7263 fi 7264done 7265 done 7266IFS=$as_save_IFS 7267 7268fi 7269fi 7270ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 7271if test -n "$ac_ct_WINDRES"; then 7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 7273printf "%s\n" "$ac_ct_WINDRES" >&6; } 7274else 7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7276printf "%s\n" "no" >&6; } 7277fi 7278 7279 if test "x$ac_ct_WINDRES" = x; then 7280 WINDRES=":" 7281 else 7282 case $cross_compiling:$ac_tool_warned in 7283yes:) 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7285printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7286ac_tool_warned=yes ;; 7287esac 7288 WINDRES=$ac_ct_WINDRES 7289 fi 7290else 7291 WINDRES="$ac_cv_prog_WINDRES" 7292fi 7293 7294 fi 7295 7296 7297 7298 7299 7300 7301 7302if test "x$ac_cv_mingw32" = "xyes"; then 7303 # Extract the first word of "convert", so it can be a program name with args. 7304set dummy convert; ac_word=$2 7305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7306printf %s "checking for $ac_word... " >&6; } 7307if test ${ac_cv_path_CONVERT+y} 7308then : 7309 printf %s "(cached) " >&6 7310else $as_nop 7311 case $CONVERT in 7312 [\\/]* | ?:[\\/]*) 7313 ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path. 7314 ;; 7315 *) 7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317for as_dir in $PATH 7318do 7319 IFS=$as_save_IFS 7320 case $as_dir in #((( 7321 '') as_dir=./ ;; 7322 */) ;; 7323 *) as_dir=$as_dir/ ;; 7324 esac 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7327 ac_cv_path_CONVERT="$as_dir$ac_word$ac_exec_ext" 7328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332 done 7333IFS=$as_save_IFS 7334 7335 ;; 7336esac 7337fi 7338CONVERT=$ac_cv_path_CONVERT 7339if test -n "$CONVERT"; then 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 7341printf "%s\n" "$CONVERT" >&6; } 7342else 7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344printf "%s\n" "no" >&6; } 7345fi 7346 7347 7348fi 7349 7350 7351@%:@ Check whether --with-extra-includes was given. 7352if test ${with_extra_includes+y} 7353then : 7354 withval=$with_extra_includes; 7355else $as_nop 7356 with_extra_include_given=no 7357fi 7358 7359 7360@%:@ Check whether --with-extra-libs was given. 7361if test ${with_extra_libs+y} 7362then : 7363 withval=$with_extra_libs; 7364else $as_nop 7365 with_extra_libs_given=no 7366fi 7367 7368 EXTRA_CFLAGS= 7369 7370 USER_CFLAGS="$CFLAGS" 7371 USER_CPPFLAGS="$CPPFLAGS" 7372 USER_CXXFLAGS="$CXXFLAGS" 7373 USER_LDFLAGS="$LDFLAGS" 7374 7375 if test "$with_extra_includes" != ""; then 7376 DIRS=`echo $with_extra_includes | cut -d '=' -f 2 | sed 's,;, -I,g'` 7377 EXTRA_CFLAGS="-I$DIRS" 7378 CFLAGS="$CFLAGS -I$DIRS" 7379 CXXFLAGS="$CXXFLAGS -I$DIRS" 7380 CPPFLAGS="$CPPFLAGS -I$DIRS" 7381 fi 7382 7383 EXTRA_LDFLAGS= 7384 if test "$with_extra_libs" != ""; then 7385 DIRS=`echo $with_extra_libs | cut -d '=' -f 2 | sed 's,;, -L,g'` 7386 EXTRA_LDFLAGS="-L$DIRS" 7387 LDFLAGS="$LDFLAGS -L$DIRS" 7388 fi 7389 7390 LDFLAGS_RPATHS= 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402@%:@ Check whether --with-drmingw was given. 7403if test ${with_drmingw+y} 7404then : 7405 withval=$with_drmingw; drmingw_path="$with_drmingw" 7406fi 7407 7408 7409USE_DRMINGW=no 7410 7411if ! test -z "$drmingw_path"; then 7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Dr. MinGW" >&5 7413printf %s "checking for Dr. MinGW... " >&6; } 7414if test ${ax_cv_drmingw_found+y} 7415then : 7416 printf %s "(cached) " >&6 7417else $as_nop 7418 7419 save_CFLAGS="$CFLAGS" 7420 save_LIBS="$LIBS" 7421 CFLAGS="$CFLAGS -I$drmingw_path/include" 7422 LIBS="$LIBS -L$drmingw_path/lib -lexchndl" 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425#include "exchndl.h" 7426int 7427main (void) 7428{ 7429ExcHndlInit(); 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_link "$LINENO" 7435then : 7436 ax_cv_drmingw_found=yes 7437else $as_nop 7438 ax_cv_drmingw_found=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7441 conftest$ac_exeext conftest.$ac_ext 7442 CFLAGS="$save_CFLAGS" 7443 LIBS="$save_LIBS" 7444 7445fi 7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_drmingw_found" >&5 7447printf "%s\n" "$ax_cv_drmingw_found" >&6; } 7448 7449 if test x"$ax_cv_drmingw_found" = xyes; then 7450 DRMINGW_PATH="$drmingw_path" 7451 USE_DRMINGW=yes 7452 fi 7453fi 7454 7455 7456 7457 7458 7459@%:@ Check whether --enable-debug was given. 7460if test ${enable_debug+y} 7461then : 7462 enableval=$enable_debug; 7463else $as_nop 7464 enable_debug=no 7465fi 7466 7467 7468if test x"$enable_debug" = xyes ; then 7469 opt_features_yes="$opt_features_yes\n * debugging information" 7470else 7471 opt_features_no="$opt_features_no\n * debugging information" 7472fi 7473 7474USE_DEBUG=$enable_debug 7475 7476 7477 7478 7479@%:@ Check whether --enable-profiling was given. 7480if test ${enable_profiling+y} 7481then : 7482 enableval=$enable_profiling; 7483else $as_nop 7484 enable_profiling=no 7485fi 7486 7487 7488if test x"$enable_profiling" = xyes ; then 7489 opt_features_yes="$opt_features_yes\n * profiling support" 7490else 7491 opt_features_no="$opt_features_no\n * profiling support" 7492fi 7493 7494USE_PROFILING=$enable_profiling 7495 7496 7497 7498 7499@%:@ Check whether --enable-optimization was given. 7500if test ${enable_optimization+y} 7501then : 7502 enableval=$enable_optimization; 7503else $as_nop 7504 if test x"$enable_debug" = xyes ; then 7505 enable_optimization=no 7506 else 7507 enable_optimization=yes 7508 fi 7509fi 7510 7511 7512if test x"$enable_optimization" = xyes; then 7513 if test $COMPILER_TYPE = clang && ! check_version 3.8.0 $COMPILER_VERSION; then 7514 opt_features_yes="$opt_features_yes\n * partial optimizations: due to bug 11962 in LLVM/clang only -O1 will be used for optimization" 7515 7516 elif test "x$ac_cv_mingw32" = "xyes" -a "x$MINGW_PROCESSOR_ARCH" = "xx86" && check_version 5.1.0 $COMPILER_VERSION && ! check_version 7.2.0 $COMPILER_VERSION; then 7517 opt_features_yes="$opt_features_yes\n * partial optimizations: due to an issue in mingw g++ >= 5.1.0 and < 7.2.0 full optimization cannot be used" 7518 7519 else 7520 opt_features_yes="$opt_features_yes\n * compiler optimizations" 7521 7522 fi 7523else 7524 opt_features_no="$opt_features_no\n * compiler optimizations" 7525fi 7526 7527USE_OPTIMIZATION=$enable_optimization 7528 7529 7530 7531 7532@%:@ Check whether --enable-addrsan was given. 7533if test ${enable_addrsan+y} 7534then : 7535 enableval=$enable_addrsan; 7536else $as_nop 7537 enable_addrsan=no 7538fi 7539 7540 7541if test x"$enable_addrsan" = xyes ; then 7542 opt_features_yes="$opt_features_yes\n * development technique 'address sanitizer'" 7543else 7544 opt_features_no="$opt_features_no\n * development technique 'address sanitizer'" 7545fi 7546 7547USE_ADDRSAN=$enable_addrsan 7548 7549 7550 7551 7552@%:@ Check whether --enable-ubsan was given. 7553if test ${enable_ubsan+y} 7554then : 7555 enableval=$enable_ubsan; 7556else $as_nop 7557 enable_ubsan=no 7558fi 7559 7560 7561if test x"$enable_ubsan" = xyes ; then 7562 opt_features_yes="$opt_features_yes\n * development technique 'undefined behavior sanitizer'" 7563else 7564 opt_features_no="$opt_features_no\n * development technique 'undefined behavior sanitizer'" 7565fi 7566 7567USE_UBSAN=$enable_ubsan 7568 7569 7570 7571@%:@ Check whether --enable-precompiled_headers was given. 7572if test ${enable_precompiled_headers+y} 7573then : 7574 enableval=$enable_precompiled_headers; 7575else $as_nop 7576 enable_precompiled_headers=auto 7577fi 7578 7579 7580if test x"$enable_precompiled_headers" = x"auto"; then 7581 if ! check_version 4.1.0 $COMPILER_VERSION ; then 7582 enable_precompiled_headers=no 7583 else 7584 enable_precompiled_headers=yes 7585 fi 7586fi 7587 7588if test x"$enable_precompiled_headers" = x"yes"; then 7589 7590printf "%s\n" "@%:@define USE_PRECOMPILED_HEADERS 1" >>confdefs.h 7591 7592 USE_PRECOMPILED_HEADERS=yes 7593 opt_features_yes="$opt_features_yes\n * pre-compiled headers" 7594else 7595 opt_features_no="$opt_features_no\n * pre-compiled headers" 7596fi 7597 7598 7599 7600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 7601printf %s "checking for int64_t... " >&6; } 7602ac_ext=cpp 7603ac_cpp='$CXXCPP $CPPFLAGS' 7604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7607 7608if test ${ac_cv_has_int64_t+y} 7609then : 7610 printf %s "(cached) " >&6 7611else $as_nop 7612 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615 7616#if HAVE_INTTYPES_H 7617# include <inttypes.h> 7618#endif 7619#if HAVE_STDINT_H 7620# include <stdint.h> 7621#endif 7622#if HAVE_SYS_TYPES_H 7623# include <sys/types.h> 7624#endif 7625 7626int 7627main (void) 7628{ 7629int64_t foo; 7630 ; 7631 return 0; 7632} 7633_ACEOF 7634if ac_fn_cxx_try_compile "$LINENO" 7635then : 7636 ac_cv_has_int64_t=yes 7637else $as_nop 7638 ac_cv_has_int64_t=no 7639fi 7640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7641 7642fi 7643 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_int64_t" >&5 7645printf "%s\n" "$ac_cv_has_int64_t" >&6; } 7646 7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 7648printf %s "checking for uint64_t... " >&6; } 7649if test ${ac_cv_has_uint64_t+y} 7650then : 7651 printf %s "(cached) " >&6 7652else $as_nop 7653 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656 7657#if HAVE_INTTYPES_H 7658# include <inttypes.h> 7659#endif 7660#if HAVE_STDINT_H 7661# include <stdint.h> 7662#endif 7663#if HAVE_SYS_TYPES_H 7664# include <sys/types.h> 7665#endif 7666 7667int 7668main (void) 7669{ 7670int64_t foo; 7671 ; 7672 return 0; 7673} 7674_ACEOF 7675if ac_fn_cxx_try_compile "$LINENO" 7676then : 7677 ac_cv_has_uint64_t=yes 7678else $as_nop 7679 ac_cv_has_uint64_t=no 7680fi 7681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7682 7683fi 7684 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_uint64_t" >&5 7686printf "%s\n" "$ac_cv_has_uint64_t" >&6; } 7687ac_ext=c 7688ac_cpp='$CPP $CPPFLAGS' 7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7691ac_compiler_gnu=$ac_cv_c_compiler_gnu 7692 7693 7694# The cast to long int works around a bug in the HP C Compiler 7695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7697# This bug is HP SR number 8606223364. 7698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7699printf %s "checking size of int... " >&6; } 7700if test ${ac_cv_sizeof_int+y} 7701then : 7702 printf %s "(cached) " >&6 7703else $as_nop 7704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 7705then : 7706 7707else $as_nop 7708 if test "$ac_cv_type_int" = yes; then 7709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7710printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7711as_fn_error 77 "cannot compute sizeof (int) 7712See \`config.log' for more details" "$LINENO" 5; } 7713 else 7714 ac_cv_sizeof_int=0 7715 fi 7716fi 7717 7718fi 7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7720printf "%s\n" "$ac_cv_sizeof_int" >&6; } 7721 7722 7723 7724printf "%s\n" "@%:@define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 7725 7726 7727# The cast to long int works around a bug in the HP C Compiler 7728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7730# This bug is HP SR number 8606223364. 7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7732printf %s "checking size of long... " >&6; } 7733if test ${ac_cv_sizeof_long+y} 7734then : 7735 printf %s "(cached) " >&6 7736else $as_nop 7737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 7738then : 7739 7740else $as_nop 7741 if test "$ac_cv_type_long" = yes; then 7742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7743printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7744as_fn_error 77 "cannot compute sizeof (long) 7745See \`config.log' for more details" "$LINENO" 5; } 7746 else 7747 ac_cv_sizeof_long=0 7748 fi 7749fi 7750 7751fi 7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7753printf "%s\n" "$ac_cv_sizeof_long" >&6; } 7754 7755 7756 7757printf "%s\n" "@%:@define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 7758 7759 7760# The cast to long int works around a bug in the HP C Compiler 7761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7763# This bug is HP SR number 8606223364. 7764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7765printf %s "checking size of long long... " >&6; } 7766if test ${ac_cv_sizeof_long_long+y} 7767then : 7768 printf %s "(cached) " >&6 7769else $as_nop 7770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 7771then : 7772 7773else $as_nop 7774 if test "$ac_cv_type_long_long" = yes; then 7775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7776printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7777as_fn_error 77 "cannot compute sizeof (long long) 7778See \`config.log' for more details" "$LINENO" 5; } 7779 else 7780 ac_cv_sizeof_long_long=0 7781 fi 7782fi 7783 7784fi 7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7786printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 7787 7788 7789 7790printf "%s\n" "@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 7791 7792 7793 7794if test x$ac_cv_has_int64_t = "xyes" ; then 7795 TYPE64="int64_t" 7796else 7797 case 8 in 7798 $ac_cv_sizeof_int) TYPE64="int";; 7799 $ac_cv_sizeof_long) TYPE64="long";; 7800 $ac_cv_sizeof_long_long) TYPE64="long long";; 7801 esac 7802 7803printf "%s\n" "@%:@define HAVE_NO_INT64_T 1" >>confdefs.h 7804 7805 7806printf "%s\n" "@%:@define INT64_TYPE $TYPE64" >>confdefs.h 7807 7808fi 7809 7810if test x$ac_cv_has_uint64_t = "xyes" ; then 7811 TYPEU64="int64_t" 7812else 7813 case 8 in 7814 $ac_cv_sizeof_int) TYPEU64="unsigned int";; 7815 $ac_cv_sizeof_long) TYPEU64="unsigned long";; 7816 $ac_cv_sizeof_long_long) TYPEU64="unsigned long long";; 7817 esac 7818 7819printf "%s\n" "@%:@define HAVE_NO_UINT64_T 1" >>confdefs.h 7820 7821 7822printf "%s\n" "@%:@define UINT64_TYPE $TYPEU64" >>confdefs.h 7823 7824fi 7825 7826if test -z "$TYPE64"; then 7827 as_fn_error $? "No 64 bit type found on this platform!" "$LINENO" 5 7828fi 7829if test -z "$TYPEU64"; then 7830 as_fn_error $? "No unsigned 64 bit type found on this platform!" "$LINENO" 5 7831fi 7832 7833 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 7834if test "x$ac_cv_header_iconv_h" = xyes 7835then : 7836 printf "%s\n" "@%:@define HAVE_ICONV_H 1" >>confdefs.h 7837 7838fi 7839 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7841printf %s "checking for iconv... " >&6; } 7842if test ${am_cv_func_iconv+y} 7843then : 7844 printf %s "(cached) " >&6 7845else $as_nop 7846 7847 am_cv_func_iconv="no, consider installing GNU libiconv" 7848 am_cv_lib_iconv=no 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851#include <stdlib.h> 7852#include <iconv.h> 7853int 7854main (void) 7855{ 7856iconv_t cd = iconv_open("",""); 7857 iconv(cd,NULL,NULL,NULL,NULL); 7858 iconv_close(cd); 7859 ; 7860 return 0; 7861} 7862_ACEOF 7863if ac_fn_c_try_link "$LINENO" 7864then : 7865 am_cv_func_iconv=yes 7866fi 7867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7868 conftest$ac_exeext conftest.$ac_ext 7869 if test "$am_cv_func_iconv" != yes; then 7870 am_save_LIBS="$LIBS" 7871 LIBS="$LIBS -liconv" 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874#include <stdlib.h> 7875#include <iconv.h> 7876int 7877main (void) 7878{ 7879iconv_t cd = iconv_open("",""); 7880 iconv(cd,NULL,NULL,NULL,NULL); 7881 iconv_close(cd); 7882 ; 7883 return 0; 7884} 7885_ACEOF 7886if ac_fn_c_try_link "$LINENO" 7887then : 7888 am_cv_lib_iconv=yes 7889 am_cv_func_iconv=yes 7890fi 7891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7892 conftest$ac_exeext conftest.$ac_ext 7893 LIBS="$am_save_LIBS" 7894 fi 7895 7896fi 7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7898printf "%s\n" "$am_cv_func_iconv" >&6; } 7899 if test "$am_cv_func_iconv" = yes; then 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 7901printf %s "checking for iconv declaration... " >&6; } 7902 if test ${am_cv_proto_iconv+y} 7903then : 7904 printf %s "(cached) " >&6 7905else $as_nop 7906 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909 7910#include <stdlib.h> 7911#include <iconv.h> 7912extern 7913#ifdef __cplusplus 7914"C" 7915#endif 7916#if defined(__STDC__) || defined(__cplusplus) 7917size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7918#else 7919size_t iconv(); 7920#endif 7921 7922int 7923main (void) 7924{ 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO" 7931then : 7932 am_cv_proto_iconv_arg1="" 7933else $as_nop 7934 am_cv_proto_iconv_arg1="const" 7935fi 7936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7937 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7938fi 7939 7940 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 7942 }$am_cv_proto_iconv" >&5 7943printf "%s\n" "${ac_t:- 7944 }$am_cv_proto_iconv" >&6; } 7945 7946printf "%s\n" "@%:@define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h 7947 7948 else 7949 echo '*** The iconv library is needed but could not be found.' 7950 echo '*** Please install it and re-run configure. You can find iconv' 7951 echo '*** at http://www.gnu.org/software/libiconv/' 7952 exit 1 7953 fi 7954 ICONV_LIBS= 7955 if test "$am_cv_lib_iconv" = yes; then 7956 ICONV_LIBS="-liconv" 7957 fi 7958 7959 7960 7961if test x"$MINGW" != "x1" ; then 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo" >&5 7963printf %s "checking for nl_langinfo... " >&6; } 7964 if test ${ac_cv_has_nl_langinfo+y} 7965then : 7966 printf %s "(cached) " >&6 7967else $as_nop 7968 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971 7972#include <langinfo.h> 7973 7974int 7975main (void) 7976{ 7977nl_langinfo(CODESET); 7978 ; 7979 return 0; 7980} 7981_ACEOF 7982if ac_fn_c_try_compile "$LINENO" 7983then : 7984 ac_cv_has_nl_langinfo=yes 7985else $as_nop 7986 ac_cv_has_nl_langinfo=no 7987fi 7988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7989 7990fi 7991 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_nl_langinfo" >&5 7993printf "%s\n" "$ac_cv_has_nl_langinfo" >&6; } 7994 if test x"$ac_cv_has_nl_langinfo" = "xyes" ; then 7995 7996printf "%s\n" "@%:@define HAVE_NL_LANGINFO 1" >>confdefs.h 7997 7998 else 7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset" >&5 8000printf %s "checking for locale_charset... " >&6; } 8001 if test ${ac_cv_has_locale_charset+y} 8002then : 8003 printf %s "(cached) " >&6 8004else $as_nop 8005 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008 8009#include <libcharset.h> 8010 8011int 8012main (void) 8013{ 8014locale_charset(); 8015 ; 8016 return 0; 8017} 8018_ACEOF 8019if ac_fn_c_try_compile "$LINENO" 8020then : 8021 ac_cv_has_locale_charset=yes 8022else $as_nop 8023 ac_cv_has_locale_charset=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8026 8027fi 8028 8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_locale_charset" >&5 8030printf "%s\n" "$ac_cv_has_locale_charset" >&6; } 8031 if test x"$ac_cv_has_locale_charset" = "xyes" ; then 8032 8033printf "%s\n" "@%:@define HAVE_LOCALE_CHARSET 1" >>confdefs.h 8034 8035 else 8036 echo '*** Your system has neither nl_langinfo nor locale_charset.' 8037 echo '*** Please install libcharset which is part of libiconv' 8038 echo '*** available at http://www.gnu.org/software/libiconv/' 8039 exit 1 8040 fi 8041 fi 8042fi 8043 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg_sync_init in -logg" >&5 8045printf %s "checking for ogg_sync_init in -logg... " >&6; } 8046if test ${ac_cv_lib_ogg_ogg_sync_init+y} 8047then : 8048 printf %s "(cached) " >&6 8049else $as_nop 8050 ac_check_lib_save_LIBS=$LIBS 8051LIBS="-logg $LIBS" 8052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054 8055/* Override any GCC internal prototype to avoid an error. 8056 Use char because int might match the return type of a GCC 8057 builtin and then its argument prototype would still apply. */ 8058char ogg_sync_init (); 8059int 8060main (void) 8061{ 8062return ogg_sync_init (); 8063 ; 8064 return 0; 8065} 8066_ACEOF 8067if ac_fn_c_try_link "$LINENO" 8068then : 8069 ac_cv_lib_ogg_ogg_sync_init=yes 8070else $as_nop 8071 ac_cv_lib_ogg_ogg_sync_init=no 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8074 conftest$ac_exeext conftest.$ac_ext 8075LIBS=$ac_check_lib_save_LIBS 8076fi 8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_sync_init" >&5 8078printf "%s\n" "$ac_cv_lib_ogg_ogg_sync_init" >&6; } 8079if test "x$ac_cv_lib_ogg_ogg_sync_init" = xyes 8080then : 8081 OGG_LIBS="-logg" 8082 ogg_found=yes 8083else $as_nop 8084 ogg_found=no 8085fi 8086 8087 if test "$ogg_found" = "no"; then 8088 as_fn_error $? "Could not find the Ogg library" "$LINENO" 5 8089 fi 8090 for ac_header in ogg/ogg.h 8091do : 8092 ac_fn_c_check_header_compile "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default" 8093if test "x$ac_cv_header_ogg_ogg_h" = xyes 8094then : 8095 printf "%s\n" "@%:@define HAVE_OGG_OGG_H 1" >>confdefs.h 8096 8097else $as_nop 8098 ogg_found=no 8099fi 8100 8101done 8102 if test "$ogg_found" = "no"; then 8103 as_fn_error $? "Could not find the Ogg header files" "$LINENO" 5 8104 fi 8105 8106 8107 8108 8109@%:@ Check whether --enable-static was given. 8110if test ${enable_static+y} 8111then : 8112 enableval=$enable_static; 8113else $as_nop 8114 enable_static=no 8115fi 8116 8117 8118LINK_STATICALLY="" 8119 8120if test x"$enable_static" = xyes ; then 8121 LINK_STATICALLY=" -static " 8122 opt_features_yes="$opt_features_yes\n * make a static build of the applications" 8123else 8124 opt_features_no="$opt_features_no\n * make a static build of the applications" 8125fi 8126 8127 8128 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbis_synthesis_init in -lvorbis" >&5 8130printf %s "checking for vorbis_synthesis_init in -lvorbis... " >&6; } 8131if test ${ac_cv_lib_vorbis_vorbis_synthesis_init+y} 8132then : 8133 printf %s "(cached) " >&6 8134else $as_nop 8135 ac_check_lib_save_LIBS=$LIBS 8136LIBS="-lvorbis $OGG_LIBS -lm $LIBS" 8137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139 8140/* Override any GCC internal prototype to avoid an error. 8141 Use char because int might match the return type of a GCC 8142 builtin and then its argument prototype would still apply. */ 8143char vorbis_synthesis_init (); 8144int 8145main (void) 8146{ 8147return vorbis_synthesis_init (); 8148 ; 8149 return 0; 8150} 8151_ACEOF 8152if ac_fn_c_try_link "$LINENO" 8153then : 8154 ac_cv_lib_vorbis_vorbis_synthesis_init=yes 8155else $as_nop 8156 ac_cv_lib_vorbis_vorbis_synthesis_init=no 8157fi 8158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8159 conftest$ac_exeext conftest.$ac_ext 8160LIBS=$ac_check_lib_save_LIBS 8161fi 8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_synthesis_init" >&5 8163printf "%s\n" "$ac_cv_lib_vorbis_vorbis_synthesis_init" >&6; } 8164if test "x$ac_cv_lib_vorbis_vorbis_synthesis_init" = xyes 8165then : 8166 VORBIS_LIBS="-lvorbis -lm" 8167 vorbis_found=yes 8168else $as_nop 8169 vorbis_found=no 8170fi 8171 8172 if test "$vorbis_found" = "no"; then 8173 as_fn_error $? "Could not find the Vorbis library" "$LINENO" 5 8174 fi 8175 for ac_header in vorbis/codec.h 8176do : 8177 ac_fn_c_check_header_compile "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default" 8178if test "x$ac_cv_header_vorbis_codec_h" = xyes 8179then : 8180 printf "%s\n" "@%:@define HAVE_VORBIS_CODEC_H 1" >>confdefs.h 8181 8182else $as_nop 8183 vorbis_found=no 8184fi 8185 8186done 8187 if test "$vorbis_found" = "no"; then 8188 as_fn_error $? "Could not find the Vorbis header files" "$LINENO" 5 8189 fi 8190 8191 8192 8193 8194 flac_winsock= 8195 if test "x$MINGW" = "x1" ; then 8196 flac_winsock="-lwsock32" 8197 fi 8198 8199 8200@%:@ Check whether --with-flac was given. 8201if test ${with_flac+y} 8202then : 8203 withval=$with_flac; with_flac=${withval} 8204else $as_nop 8205 with_flac=yes 8206fi 8207 8208 8209 if test "$with_flac" != "no"; then 8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_new in -lFLAC" >&5 8211printf %s "checking for FLAC__stream_decoder_new in -lFLAC... " >&6; } 8212if test ${ac_cv_lib_FLAC_FLAC__stream_decoder_new+y} 8213then : 8214 printf %s "(cached) " >&6 8215else $as_nop 8216 ac_check_lib_save_LIBS=$LIBS 8217LIBS="-lFLAC $OGG_LIBS -lm $flac_winsock $LIBS" 8218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8219/* end confdefs.h. */ 8220 8221/* Override any GCC internal prototype to avoid an error. 8222 Use char because int might match the return type of a GCC 8223 builtin and then its argument prototype would still apply. */ 8224char FLAC__stream_decoder_new (); 8225int 8226main (void) 8227{ 8228return FLAC__stream_decoder_new (); 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO" 8234then : 8235 ac_cv_lib_FLAC_FLAC__stream_decoder_new=yes 8236else $as_nop 8237 ac_cv_lib_FLAC_FLAC__stream_decoder_new=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8240 conftest$ac_exeext conftest.$ac_ext 8241LIBS=$ac_check_lib_save_LIBS 8242fi 8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&5 8244printf "%s\n" "$ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&6; } 8245if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_new" = xyes 8246then : 8247 FLAC_LIBS="-lFLAC $OGG_LIBS -lm $flac_winsock" 8248 flac_found=yes 8249else $as_nop 8250 flac_found=no 8251fi 8252 8253 else 8254 flac_found=no 8255 fi 8256 if test "$flac_found" = "yes"; then 8257 ac_fn_c_check_member "$LINENO" "FLAC__StreamMetadata_StreamInfo" "sample_rate" "ac_cv_member_FLAC__StreamMetadata_StreamInfo_sample_rate" " #include <FLAC/format.h> 8258 8259" 8260if test "x$ac_cv_member_FLAC__StreamMetadata_StreamInfo_sample_rate" = xyes 8261then : 8262 8263else $as_nop 8264 flac_found=no 8265fi 8266 8267 fi 8268 if test x"$flac_found" = xyes ; then 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_skip_single_frame in -lFLAC" >&5 8270printf %s "checking for FLAC__stream_decoder_skip_single_frame in -lFLAC... " >&6; } 8271if test ${ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame+y} 8272then : 8273 printf %s "(cached) " >&6 8274else $as_nop 8275 ac_check_lib_save_LIBS=$LIBS 8276LIBS="-lFLAC $FLAC_LIBS $LIBS" 8277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278/* end confdefs.h. */ 8279 8280/* Override any GCC internal prototype to avoid an error. 8281 Use char because int might match the return type of a GCC 8282 builtin and then its argument prototype would still apply. */ 8283char FLAC__stream_decoder_skip_single_frame (); 8284int 8285main (void) 8286{ 8287return FLAC__stream_decoder_skip_single_frame (); 8288 ; 8289 return 0; 8290} 8291_ACEOF 8292if ac_fn_c_try_link "$LINENO" 8293then : 8294 ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame=yes 8295else $as_nop 8296 ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame=no 8297fi 8298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8299 conftest$ac_exeext conftest.$ac_ext 8300LIBS=$ac_check_lib_save_LIBS 8301fi 8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame" >&5 8303printf "%s\n" "$ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame" >&6; } 8304if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_skip_single_frame" = xyes 8305then : 8306 flac_decoder_skip_found=yes 8307else $as_nop 8308 flac_decoder_skip_found=no 8309fi 8310 8311 if test x"$flac_decoder_skip_found" = xyes; then 8312 opt_features_yes="$opt_features_yes\n * FLAC audio" 8313 8314printf "%s\n" "@%:@define HAVE_FLAC_DECODER_SKIP 1" >>confdefs.h 8315 8316 8317printf "%s\n" "@%:@define HAVE_FLAC_FORMAT_H 1" >>confdefs.h 8318 8319 else 8320 FLAC_LIBS="" 8321 opt_features_no="$opt_features_no\n * FLAC audio (version too old)" 8322 fi 8323 else 8324 FLAC_LIBS="" 8325 opt_features_no="$opt_features_no\n * FLAC audio" 8326 fi 8327 8328 8329 8330 8331EBML_MATROSKA_INTERNAL=no 8332 8333pkg_failed=no 8334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EBML" >&5 8335printf %s "checking for EBML... " >&6; } 8336 8337if test -n "$EBML_CFLAGS"; then 8338 pkg_cv_EBML_CFLAGS="$EBML_CFLAGS" 8339 elif test -n "$PKG_CONFIG"; then 8340 if test -n "$PKG_CONFIG" && \ 8341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebml >= 1.4.2\""; } >&5 8342 ($PKG_CONFIG --exists --print-errors "libebml >= 1.4.2") 2>&5 8343 ac_status=$? 8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8345 test $ac_status = 0; }; then 8346 pkg_cv_EBML_CFLAGS=`$PKG_CONFIG --cflags "libebml >= 1.4.2" 2>/dev/null` 8347 test "x$?" != "x0" && pkg_failed=yes 8348else 8349 pkg_failed=yes 8350fi 8351 else 8352 pkg_failed=untried 8353fi 8354if test -n "$EBML_LIBS"; then 8355 pkg_cv_EBML_LIBS="$EBML_LIBS" 8356 elif test -n "$PKG_CONFIG"; then 8357 if test -n "$PKG_CONFIG" && \ 8358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebml >= 1.4.2\""; } >&5 8359 ($PKG_CONFIG --exists --print-errors "libebml >= 1.4.2") 2>&5 8360 ac_status=$? 8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8362 test $ac_status = 0; }; then 8363 pkg_cv_EBML_LIBS=`$PKG_CONFIG --libs "libebml >= 1.4.2" 2>/dev/null` 8364 test "x$?" != "x0" && pkg_failed=yes 8365else 8366 pkg_failed=yes 8367fi 8368 else 8369 pkg_failed=untried 8370fi 8371 8372 8373 8374if test $pkg_failed = yes; then 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376printf "%s\n" "no" >&6; } 8377 8378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8379 _pkg_short_errors_supported=yes 8380else 8381 _pkg_short_errors_supported=no 8382fi 8383 if test $_pkg_short_errors_supported = yes; then 8384 EBML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebml >= 1.4.2" 2>&1` 8385 else 8386 EBML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebml >= 1.4.2" 2>&1` 8387 fi 8388 # Put the nasty error message in config.log where it belongs 8389 echo "$EBML_PKG_ERRORS" >&5 8390 8391 EBML_MATROSKA_INTERNAL=yes 8392elif test $pkg_failed = untried; then 8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8394printf "%s\n" "no" >&6; } 8395 EBML_MATROSKA_INTERNAL=yes 8396else 8397 EBML_CFLAGS=$pkg_cv_EBML_CFLAGS 8398 EBML_LIBS=$pkg_cv_EBML_LIBS 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8400printf "%s\n" "yes" >&6; } 8401 8402fi 8403 8404pkg_failed=no 8405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MATROSKA" >&5 8406printf %s "checking for MATROSKA... " >&6; } 8407 8408if test -n "$MATROSKA_CFLAGS"; then 8409 pkg_cv_MATROSKA_CFLAGS="$MATROSKA_CFLAGS" 8410 elif test -n "$PKG_CONFIG"; then 8411 if test -n "$PKG_CONFIG" && \ 8412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmatroska >= 1.6.3\""; } >&5 8413 ($PKG_CONFIG --exists --print-errors "libmatroska >= 1.6.3") 2>&5 8414 ac_status=$? 8415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8416 test $ac_status = 0; }; then 8417 pkg_cv_MATROSKA_CFLAGS=`$PKG_CONFIG --cflags "libmatroska >= 1.6.3" 2>/dev/null` 8418 test "x$?" != "x0" && pkg_failed=yes 8419else 8420 pkg_failed=yes 8421fi 8422 else 8423 pkg_failed=untried 8424fi 8425if test -n "$MATROSKA_LIBS"; then 8426 pkg_cv_MATROSKA_LIBS="$MATROSKA_LIBS" 8427 elif test -n "$PKG_CONFIG"; then 8428 if test -n "$PKG_CONFIG" && \ 8429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmatroska >= 1.6.3\""; } >&5 8430 ($PKG_CONFIG --exists --print-errors "libmatroska >= 1.6.3") 2>&5 8431 ac_status=$? 8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8433 test $ac_status = 0; }; then 8434 pkg_cv_MATROSKA_LIBS=`$PKG_CONFIG --libs "libmatroska >= 1.6.3" 2>/dev/null` 8435 test "x$?" != "x0" && pkg_failed=yes 8436else 8437 pkg_failed=yes 8438fi 8439 else 8440 pkg_failed=untried 8441fi 8442 8443 8444 8445if test $pkg_failed = yes; then 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447printf "%s\n" "no" >&6; } 8448 8449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8450 _pkg_short_errors_supported=yes 8451else 8452 _pkg_short_errors_supported=no 8453fi 8454 if test $_pkg_short_errors_supported = yes; then 8455 MATROSKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmatroska >= 1.6.3" 2>&1` 8456 else 8457 MATROSKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmatroska >= 1.6.3" 2>&1` 8458 fi 8459 # Put the nasty error message in config.log where it belongs 8460 echo "$MATROSKA_PKG_ERRORS" >&5 8461 8462 EBML_MATROSKA_INTERNAL=yes 8463elif test $pkg_failed = untried; then 8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8465printf "%s\n" "no" >&6; } 8466 EBML_MATROSKA_INTERNAL=yes 8467else 8468 MATROSKA_CFLAGS=$pkg_cv_MATROSKA_CFLAGS 8469 MATROSKA_LIBS=$pkg_cv_MATROSKA_LIBS 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8471printf "%s\n" "yes" >&6; } 8472 8473fi 8474 8475if test x"$EBML_MATROSKA_INTERNAL" = xyes; then 8476 if ! test -f lib/libebml/ebml/EbmlTypes.h ; then 8477 echo '*** The internal version of the libEBML library is supposed to be used,' 8478 echo '*** but it was not found in "lib/libebml. If this is a clone from the' 8479 echo '*** git repository then submodules have to be initialized with the' 8480 echo '*** following two commands:' 8481 echo '***' 8482 echo '*** git submodule init' 8483 echo '*** git submodule update' 8484 exit 1 8485 fi 8486 8487 if ! test -f lib/libmatroska/matroska/KaxVersion.h ; then 8488 echo '*** The internal version of the libMatroska library is supposed to be used,' 8489 echo '*** but it was not found in "lib/libmatroska". If this is a clone from the' 8490 echo '*** git repository then submodules have to be initialized with the' 8491 echo '*** following two commands:' 8492 echo '***' 8493 echo '*** git submodule init' 8494 echo '*** git submodule update' 8495 exit 1 8496 fi 8497fi 8498 8499 8500 8501 8502 8503 8504 8505 8506if test -n "$PKG_CONFIG" && \ 8507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pugixml\""; } >&5 8508 ($PKG_CONFIG --exists --print-errors "pugixml") 2>&5 8509 ac_status=$? 8510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8511 test $ac_status = 0; }; then 8512 pugixml_found=yes 8513else 8514 pugixml_found=no 8515fi 8516 8517if test x"$pugixml_found" = xyes; then 8518 8519pkg_failed=no 8520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PUGIXML" >&5 8521printf %s "checking for PUGIXML... " >&6; } 8522 8523if test -n "$PUGIXML_CFLAGS"; then 8524 pkg_cv_PUGIXML_CFLAGS="$PUGIXML_CFLAGS" 8525 elif test -n "$PKG_CONFIG"; then 8526 if test -n "$PKG_CONFIG" && \ 8527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pugixml\""; } >&5 8528 ($PKG_CONFIG --exists --print-errors "pugixml") 2>&5 8529 ac_status=$? 8530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8531 test $ac_status = 0; }; then 8532 pkg_cv_PUGIXML_CFLAGS=`$PKG_CONFIG --cflags "pugixml" 2>/dev/null` 8533 test "x$?" != "x0" && pkg_failed=yes 8534else 8535 pkg_failed=yes 8536fi 8537 else 8538 pkg_failed=untried 8539fi 8540if test -n "$PUGIXML_LIBS"; then 8541 pkg_cv_PUGIXML_LIBS="$PUGIXML_LIBS" 8542 elif test -n "$PKG_CONFIG"; then 8543 if test -n "$PKG_CONFIG" && \ 8544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pugixml\""; } >&5 8545 ($PKG_CONFIG --exists --print-errors "pugixml") 2>&5 8546 ac_status=$? 8547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8548 test $ac_status = 0; }; then 8549 pkg_cv_PUGIXML_LIBS=`$PKG_CONFIG --libs "pugixml" 2>/dev/null` 8550 test "x$?" != "x0" && pkg_failed=yes 8551else 8552 pkg_failed=yes 8553fi 8554 else 8555 pkg_failed=untried 8556fi 8557 8558 8559 8560if test $pkg_failed = yes; then 8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562printf "%s\n" "no" >&6; } 8563 8564if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8565 _pkg_short_errors_supported=yes 8566else 8567 _pkg_short_errors_supported=no 8568fi 8569 if test $_pkg_short_errors_supported = yes; then 8570 PUGIXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pugixml" 2>&1` 8571 else 8572 PUGIXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pugixml" 2>&1` 8573 fi 8574 # Put the nasty error message in config.log where it belongs 8575 echo "$PUGIXML_PKG_ERRORS" >&5 8576 8577 pugixml_found=no 8578elif test $pkg_failed = untried; then 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580printf "%s\n" "no" >&6; } 8581 pugixml_found=no 8582else 8583 PUGIXML_CFLAGS=$pkg_cv_PUGIXML_CFLAGS 8584 PUGIXML_LIBS=$pkg_cv_PUGIXML_LIBS 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8586printf "%s\n" "yes" >&6; } 8587 pugixml_found=yes 8588fi 8589fi 8590 8591if test x"$pugixml_found" = xno; then 8592 ac_ext=cpp 8593ac_cpp='$CXXCPP $CPPFLAGS' 8594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8597 8598 8599 ac_fn_cxx_check_header_compile "$LINENO" "pugixml.hpp" "ac_cv_header_pugixml_hpp" "$ac_includes_default" 8600if test "x$ac_cv_header_pugixml_hpp" = xyes 8601then : 8602 printf "%s\n" "@%:@define HAVE_PUGIXML_HPP 1" >>confdefs.h 8603 8604fi 8605 8606 8607 if test x"$ac_cv_header_pugixml_hpp" = xyes; then 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpugixml" >&5 8609printf %s "checking for main in -lpugixml... " >&6; } 8610if test ${ac_cv_lib_pugixml_main+y} 8611then : 8612 printf %s "(cached) " >&6 8613else $as_nop 8614 ac_check_lib_save_LIBS=$LIBS 8615LIBS="-lpugixml $LIBS" 8616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618 8619namespace conftest { 8620 extern "C" int main (); 8621} 8622int 8623main (void) 8624{ 8625return conftest::main (); 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630if ac_fn_cxx_try_link "$LINENO" 8631then : 8632 ac_cv_lib_pugixml_main=yes 8633else $as_nop 8634 ac_cv_lib_pugixml_main=no 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8637 conftest$ac_exeext conftest.$ac_ext 8638LIBS=$ac_check_lib_save_LIBS 8639fi 8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pugixml_main" >&5 8641printf "%s\n" "$ac_cv_lib_pugixml_main" >&6; } 8642if test "x$ac_cv_lib_pugixml_main" = xyes 8643then : 8644 8645 PUGIXML_LIBS=-lpugixml 8646 pugixml_found=yes 8647 8648fi 8649 8650 fi 8651 8652 ac_ext=c 8653ac_cpp='$CPP $CPPFLAGS' 8654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8656ac_compiler_gnu=$ac_cv_c_compiler_gnu 8657 8658fi 8659 8660if test $pugixml_found = yes; then 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the system version of the pugixml library" >&5 8662printf "%s\n" "$as_me: Using the system version of the pugixml library" >&6;} 8663 PUGIXML_INTERNAL=no 8664else 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the internal version of the pugixml library" >&5 8666printf "%s\n" "$as_me: Using the internal version of the pugixml library" >&6;} 8667 PUGIXML_CFLAGS= 8668 PUGIXML_INTERNAL=yes 8669 PUGIXML_LIBS= 8670fi 8671 8672 8673 8674 8675 8676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking nlohmann's json-cpp" >&5 8677printf %s "checking nlohmann's json-cpp... " >&6; } 8678if test ${ac_cv_nlohmann_jsoncpp+y} 8679then : 8680 printf %s "(cached) " >&6 8681else $as_nop 8682 8683 ac_ext=cpp 8684ac_cpp='$CXXCPP $CPPFLAGS' 8685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8688 8689 8690 ac_save_CXXFLAGS="$CXXFLAGS" 8691 CXXFLAGS="$STD_CXX $CXXFLAGS" 8692 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695 8696 #include <cstdint> 8697 #include <iostream> 8698 #include <limits> 8699 8700 #include <nlohmann/json.hpp> 8701 8702int 8703main (void) 8704{ 8705 8706 nlohmann::json json{ 8707 { "unsigned_64bit_integer", std::numeric_limits<std::uint64_t>::max() }, 8708 { "signed_64bit_integer", std::numeric_limits<std::int64_t>::min() }, 8709 }; 8710 8711 std::cout << json.dump(); 8712 8713 ; 8714 return 0; 8715} 8716_ACEOF 8717if ac_fn_cxx_try_compile "$LINENO" 8718then : 8719 ac_cv_nlohmann_jsoncpp=yes 8720else $as_nop 8721 ac_cv_nlohmann_jsoncpp=undetermined 8722fi 8723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8724 8725 if test x"$ac_cv_nlohmann_jsoncpp" = xundetermined; then 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728 8729 #include <cstdint> 8730 #include <iostream> 8731 #include <limits> 8732 8733 #include <json.hpp> 8734 8735int 8736main (void) 8737{ 8738 8739 nlohmann::json json{ 8740 { "unsigned_64bit_integer", std::numeric_limits<std::uint64_t>::max() }, 8741 { "signed_64bit_integer", std::numeric_limits<std::int64_t>::min() }, 8742 }; 8743 8744 std::cout << json.dump(); 8745 8746 ; 8747 return 0; 8748} 8749_ACEOF 8750if ac_fn_cxx_try_compile "$LINENO" 8751then : 8752 ac_cv_nlohmann_jsoncpp="yes, without the nlohmann subdir" 8753else $as_nop 8754 ac_cv_nlohmann_jsoncpp=no 8755fi 8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8757 fi 8758 8759 CXXFLAGS="$ac_save_CXXFLAGS" 8760 8761 ac_ext=c 8762ac_cpp='$CPP $CPPFLAGS' 8763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8765ac_compiler_gnu=$ac_cv_c_compiler_gnu 8766 8767 8768fi 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nlohmann_jsoncpp" >&5 8770printf "%s\n" "$ac_cv_nlohmann_jsoncpp" >&6; } 8771 8772if test x"$ac_cv_nlohmann_jsoncpp" = xno; then 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the internal version of nlohmann json-cpp" >&5 8774printf "%s\n" "$as_me: Using the internal version of nlohmann json-cpp" >&6;} 8775 8776 NLOHMANN_JSON_INTERNAL=yes 8777 8778printf "%s\n" "@%:@define HAVE_NLOHMANN_JSONCPP 0" >>confdefs.h 8779 8780 8781else 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the system version of nlohmann json-cpp" >&5 8783printf "%s\n" "$as_me: Using the system version of nlohmann json-cpp" >&6;} 8784 8785 if test x"$ac_cv_nlohmann_jsoncpp" = xyes; then 8786 8787printf "%s\n" "@%:@define HAVE_NLOHMANN_JSONCPP 1" >>confdefs.h 8788 8789 else 8790 8791printf "%s\n" "@%:@define HAVE_NLOHMANN_JSONCPP 2" >>confdefs.h 8792 8793 fi 8794 8795 NLOHMANN_JSON_INTERNAL=no 8796fi 8797 8798 8799 8800 8801ac_ext=cpp 8802ac_cpp='$CXXCPP $CPPFLAGS' 8803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8806 8807 8808ac_fn_cxx_check_header_compile "$LINENO" "utf8.h" "ac_cv_header_utf8_h" "$ac_includes_default" 8809if test "x$ac_cv_header_utf8_h" = xyes 8810then : 8811 printf "%s\n" "@%:@define HAVE_UTF8_H 1" >>confdefs.h 8812 8813fi 8814 8815 8816if test x"$ac_cv_header_utf8_h" = xyes; then 8817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8818/* end confdefs.h. */ 8819 8820#include <utf8.h> 8821#include <vector> 8822 8823int 8824main (void) 8825{ 8826 8827std::string s("ÁÂÃÄÅÆ"); 8828std::vector<int> utf32result; 8829std::vector<unsigned char> utf8result; 8830utf8::utf8to32(s.begin(),s.end(),std::back_inserter(utf32result)); 8831utf8::utf32to8(utf32result.begin(),utf32result.end(),std::back_inserter(utf8result)); 8832std::string temp; 8833utf8::replace_invalid(s.begin(), s.end(), std::back_inserter(temp)); 8834 8835 ; 8836 return 0; 8837} 8838_ACEOF 8839if ac_fn_cxx_try_compile "$LINENO" 8840then : 8841 ac_cv_utf8cpp=yes 8842else $as_nop 8843 ac_cv_utf8cpp=no 8844fi 8845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8846fi 8847 8848ac_ext=c 8849ac_cpp='$CPP $CPPFLAGS' 8850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8852ac_compiler_gnu=$ac_cv_c_compiler_gnu 8853 8854 8855if test x"$ac_cv_utf8cpp" = xyes; then 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the system version of UTF8-CPP" >&5 8857printf "%s\n" "$as_me: Using the system version of UTF8-CPP" >&6;} 8858 UTF8CPP_INTERNAL=no 8859else 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the internal version of UTF8-CPP" >&5 8861printf "%s\n" "$as_me: Using the internal version of UTF8-CPP" >&6;} 8862 UTF8CPP_INTERNAL=yes 8863fi 8864 8865 8866 8867 8868 8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fmt" >&5 8870printf %s "checking fmt... " >&6; } 8871if test ${ac_cv_fmt+y} 8872then : 8873 printf %s "(cached) " >&6 8874else $as_nop 8875 8876 ac_ext=cpp 8877ac_cpp='$CXXCPP $CPPFLAGS' 8878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8881 8882 8883 ac_save_CXXFLAGS="$CXXFLAGS" 8884 ac_save_LIBS="$LIBS" 8885 CXXFLAGS="$STD_CXX $CXXFLAGS" 8886 LIBS="$LIBS -lfmt" 8887 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890 8891 #include <fmt/format.h> 8892 #include <fmt/ostream.h> 8893 8894 #if !defined(FMT_VERSION) || (FMT_VERSION < 60100) 8895 #error fmtlib is too old, need 6.1.0 or later 8896 #endif 8897 8898int 8899main (void) 8900{ 8901 8902 fmt::format("{0:02}", fmt::to_string(4254)); 8903 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908if ac_fn_cxx_try_compile "$LINENO" 8909then : 8910 ac_cv_fmt=yes 8911else $as_nop 8912 ac_cv_fmt=no 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8915 8916 if test ${ac_cv_fmt_v8+y} 8917then : 8918 printf %s "(cached) " >&6 8919else $as_nop 8920 8921 if test $ac_cv_fmt=yes; then 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924 8925 #include <fmt/format.h> 8926 #include <fmt/ostream.h> 8927 8928 #if !defined(FMT_VERSION) || (FMT_VERSION < 80000) 8929 #error fmt is older than v8 8930 #endif 8931 8932int 8933main (void) 8934{ 8935 8936 fmt::format("{0:02}", fmt::to_string(4254)); 8937 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942if ac_fn_cxx_try_compile "$LINENO" 8943then : 8944 ac_cv_fmt_v8=yes 8945else $as_nop 8946 ac_cv_fmt_v8=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8949 fi 8950 8951fi 8952 8953 8954 CXXFLAGS="$ac_save_CXXFLAGS" 8955 LIBS="$ac_save_LIBS" 8956 8957 ac_ext=c 8958ac_cpp='$CPP $CPPFLAGS' 8959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8961ac_compiler_gnu=$ac_cv_c_compiler_gnu 8962 8963 8964fi 8965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fmt" >&5 8966printf "%s\n" "$ac_cv_fmt" >&6; } 8967 8968if test x"$ac_cv_fmt" = xyes; then 8969 FMT_INTERNAL=no 8970else 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the internal version of fmt" >&5 8972printf "%s\n" "$as_me: Using the internal version of fmt" >&6;} 8973 FMT_INTERNAL=yes 8974 ac_cv_fmt_v8=yes 8975fi 8976 8977if test $ac_cv_fmt_v8 = yes; then 8978 8979printf "%s\n" "@%:@define HAVE_FMT_V8 1" >>confdefs.h 8980 8981fi 8982 8983 8984 8985if test -n "$PKG_CONFIG" && \ 8986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 8987 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 8988 ac_status=$? 8989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8990 test $ac_status = 0; }; then 8991 zlib_found=yes 8992else 8993 zlib_found=no 8994fi 8995if test x"$zlib_found" = xyes; then 8996 8997pkg_failed=no 8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 8999printf %s "checking for ZLIB... " >&6; } 9000 9001if test -n "$ZLIB_CFLAGS"; then 9002 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 9003 elif test -n "$PKG_CONFIG"; then 9004 if test -n "$PKG_CONFIG" && \ 9005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 9006 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 9007 ac_status=$? 9008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9009 test $ac_status = 0; }; then 9010 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 9011 test "x$?" != "x0" && pkg_failed=yes 9012else 9013 pkg_failed=yes 9014fi 9015 else 9016 pkg_failed=untried 9017fi 9018if test -n "$ZLIB_LIBS"; then 9019 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 9020 elif test -n "$PKG_CONFIG"; then 9021 if test -n "$PKG_CONFIG" && \ 9022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 9023 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 9024 ac_status=$? 9025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9026 test $ac_status = 0; }; then 9027 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 9028 test "x$?" != "x0" && pkg_failed=yes 9029else 9030 pkg_failed=yes 9031fi 9032 else 9033 pkg_failed=untried 9034fi 9035 9036 9037 9038if test $pkg_failed = yes; then 9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9040printf "%s\n" "no" >&6; } 9041 9042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9043 _pkg_short_errors_supported=yes 9044else 9045 _pkg_short_errors_supported=no 9046fi 9047 if test $_pkg_short_errors_supported = yes; then 9048 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 9049 else 9050 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 9051 fi 9052 # Put the nasty error message in config.log where it belongs 9053 echo "$ZLIB_PKG_ERRORS" >&5 9054 9055 as_fn_error $? "Package requirements (zlib) were not met: 9056 9057$ZLIB_PKG_ERRORS 9058 9059Consider adjusting the PKG_CONFIG_PATH environment variable if you 9060installed software in a non-standard prefix. 9061 9062Alternatively, you may set the environment variables ZLIB_CFLAGS 9063and ZLIB_LIBS to avoid the need to call pkg-config. 9064See the pkg-config man page for more details." "$LINENO" 5 9065elif test $pkg_failed = untried; then 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9067printf "%s\n" "no" >&6; } 9068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9070as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 9071is in your PATH or set the PKG_CONFIG environment variable to the full 9072path to pkg-config. 9073 9074Alternatively, you may set the environment variables ZLIB_CFLAGS 9075and ZLIB_LIBS to avoid the need to call pkg-config. 9076See the pkg-config man page for more details. 9077 9078To get pkg-config, see <http://pkg-config.freedesktop.org/>. 9079See \`config.log' for more details" "$LINENO" 5; } 9080else 9081 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 9082 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9084printf "%s\n" "yes" >&6; } 9085 zlib_found=yes 9086fi 9087else 9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 9089printf %s "checking for ZLIB... " >&6; } 9090 save_LIBS="$LIBS" 9091 LIBS="$LIBS -lz" 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094#include <zlib.h> 9095int 9096main (void) 9097{ 9098inflate(0, 0); 9099 ; 9100 return 0; 9101} 9102_ACEOF 9103if ac_fn_c_try_link "$LINENO" 9104then : 9105 zlib_found=yes; ZLIB_LIBS=-lz 9106fi 9107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9108 conftest$ac_exeext conftest.$ac_ext 9109 LIBS="$save_LIBS" 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zlib_found" >&5 9111printf "%s\n" "$zlib_found" >&6; } 9112fi 9113 9114if test x"$zlib_found" != xyes; then 9115 as_fn_error $? "Could not find the zlib library" "$LINENO" 5 9116fi 9117 9118 9119qt_min_ver=6.1.0 9120 9121check_qt6() { 9122 9123@%:@ Check whether --with-qmake6 was given. 9124if test ${with_qmake6+y} 9125then : 9126 withval=$with_qmake6; QMAKE6="$with_qmake6" 9127fi 9128 9129 9130 if ! test -z "$QMAKE6"; then 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for qmake6" >&5 9132printf %s "checking for qmake6... " >&6; } 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $QMAKE6" >&5 9134printf "%s\n" "using supplied $QMAKE6" >&6; } 9135 else 9136 if test -n "$ac_tool_prefix"; then 9137 # Extract the first word of "${ac_tool_prefix}qmake6", so it can be a program name with args. 9138set dummy ${ac_tool_prefix}qmake6; ac_word=$2 9139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9140printf %s "checking for $ac_word... " >&6; } 9141if test ${ac_cv_path_QMAKE6+y} 9142then : 9143 printf %s "(cached) " >&6 9144else $as_nop 9145 case $QMAKE6 in 9146 [\\/]* | ?:[\\/]*) 9147 ac_cv_path_QMAKE6="$QMAKE6" # Let the user override the test with a path. 9148 ;; 9149 *) 9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9151for as_dir in $PATH 9152do 9153 IFS=$as_save_IFS 9154 case $as_dir in #((( 9155 '') as_dir=./ ;; 9156 */) ;; 9157 *) as_dir=$as_dir/ ;; 9158 esac 9159 for ac_exec_ext in '' $ac_executable_extensions; do 9160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9161 ac_cv_path_QMAKE6="$as_dir$ac_word$ac_exec_ext" 9162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9163 break 2 9164 fi 9165done 9166 done 9167IFS=$as_save_IFS 9168 9169 ;; 9170esac 9171fi 9172QMAKE6=$ac_cv_path_QMAKE6 9173if test -n "$QMAKE6"; then 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE6" >&5 9175printf "%s\n" "$QMAKE6" >&6; } 9176else 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9178printf "%s\n" "no" >&6; } 9179fi 9180 9181 9182fi 9183if test -z "$ac_cv_path_QMAKE6"; then 9184 ac_pt_QMAKE6=$QMAKE6 9185 # Extract the first word of "qmake6", so it can be a program name with args. 9186set dummy qmake6; ac_word=$2 9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9188printf %s "checking for $ac_word... " >&6; } 9189if test ${ac_cv_path_ac_pt_QMAKE6+y} 9190then : 9191 printf %s "(cached) " >&6 9192else $as_nop 9193 case $ac_pt_QMAKE6 in 9194 [\\/]* | ?:[\\/]*) 9195 ac_cv_path_ac_pt_QMAKE6="$ac_pt_QMAKE6" # Let the user override the test with a path. 9196 ;; 9197 *) 9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9199for as_dir in $PATH 9200do 9201 IFS=$as_save_IFS 9202 case $as_dir in #((( 9203 '') as_dir=./ ;; 9204 */) ;; 9205 *) as_dir=$as_dir/ ;; 9206 esac 9207 for ac_exec_ext in '' $ac_executable_extensions; do 9208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9209 ac_cv_path_ac_pt_QMAKE6="$as_dir$ac_word$ac_exec_ext" 9210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9211 break 2 9212 fi 9213done 9214 done 9215IFS=$as_save_IFS 9216 9217 ;; 9218esac 9219fi 9220ac_pt_QMAKE6=$ac_cv_path_ac_pt_QMAKE6 9221if test -n "$ac_pt_QMAKE6"; then 9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_QMAKE6" >&5 9223printf "%s\n" "$ac_pt_QMAKE6" >&6; } 9224else 9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9226printf "%s\n" "no" >&6; } 9227fi 9228 9229 if test "x$ac_pt_QMAKE6" = x; then 9230 QMAKE6="" 9231 else 9232 case $cross_compiling:$ac_tool_warned in 9233yes:) 9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9236ac_tool_warned=yes ;; 9237esac 9238 QMAKE6=$ac_pt_QMAKE6 9239 fi 9240else 9241 QMAKE6="$ac_cv_path_QMAKE6" 9242fi 9243 9244 fi 9245 9246 if test x"$QMAKE6" = x; then 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9248printf %s "checking for Qt 6... " >&6; } 9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: qmake6 not found" >&5 9250printf "%s\n" "no: qmake6 not found" >&6; } 9251 return 9252 fi 9253 9254 qmake_dir="`mktemp -d`" 9255 9256 touch "$qmake_dir/configure.cpp" "$qmake_dir/configure.h" 9257 9258 cat > "$qmake_dir/configure.ui" <<EOT 9259<?xml version="1.0" encoding="UTF-8"?> 9260<ui version="4.0"> 9261</ui> 9262EOT 9263 9264 cat > "$qmake_dir/configure.qrc" <<EOT 9265<?xml version='1.0' encoding='UTF-8'?> 9266<!DOCTYPE RCC> 9267<RCC version='1.0'> 9268 <qresource> 9269 <file>configure.pro</file> 9270 </qresource> 9271</RCC> 9272EOT 9273 9274 cat > "$qmake_dir/configure_non_gui.pro" <<EOT 9275QT = core 9276 9277HEADERS = configure.h 9278SOURCES = configure.cpp 9279EOT 9280 9281 cat > "$qmake_dir/configure.pro" <<EOT 9282QT = core dbus gui widgets network concurrent 9283 9284FORMS = configure.ui 9285RESOURCES = configure.qrc 9286HEADERS = configure.h 9287SOURCES = configure.cpp 9288EOT 9289 9290 old_wd="$PWD" 9291 cd "$qmake_dir" 9292 9293 "$QMAKE6" -makefile -nocache configure_non_gui.pro > /dev/null 9294 result=$? 9295 9296 if test $result = 0; then 9297 mv Makefile Makefile.non_gui 9298 fi 9299 9300 "$QMAKE6" -makefile -nocache configure.pro > /dev/null 9301 result2=$? 9302 9303 "$QMAKE6" -query > "$qmake_dir/configure.properties" 9304 result3=$? 9305 9306 cd "$old_wd" 9307 9308 if test $result != 0 -o $result2 != 0 -o $result3 != 0; then 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9310printf %s "checking for Qt 6... " >&6; } 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: qmake6 couldn't be run for a dummy project" >&5 9312printf "%s\n" "no: qmake6 couldn't be run for a dummy project" >&6; } 9313 9314 rm -rf "$qmake_dir" 9315 9316 return 9317 fi 9318 9319 qmake6_ver="`$ac_cv_path_EGREP '^QT_VERSION:' "$qmake_dir/configure.properties" | sed 's/^QT_VERSION://'`" 9320 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for qmake6's version" >&5 9322printf %s "checking for qmake6's version... " >&6; } 9323 if test -z "qmake6_ver"; then 9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown; please contact the author" >&5 9325printf "%s\n" "unknown; please contact the author" >&6; } 9326 return 9327 elif ! check_version $qt_min_ver $qmake6_ver; then 9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old: $qmake6_ver" >&5 9329printf "%s\n" "too old: $qmake6_ver" >&6; } 9330 return 9331 else 9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $qmake6_ver" >&5 9333printf "%s\n" "$qmake6_ver" >&6; } 9334 fi 9335 9336 qt_bindir="`$ac_cv_path_EGREP '^QT_INSTALL_BINS:' "$qmake_dir/configure.properties" | sed 's/^QT_INSTALL_BINS://'`" 9337 qt_libexecdir="`$ac_cv_path_EGREP '^QT_INSTALL_LIBEXECS:' "$qmake_dir/configure.properties" | sed 's/^QT_INSTALL_LIBEXECS://'`" 9338 qt_searchpath="$qt_libexecdir:$qt_bindir:$PATH" 9339 9340 QT_CFLAGS="`$ac_cv_path_EGREP '^DEFINES *=' "$qmake_dir/Makefile" | sed 's/^DEFINES *= *//'`" 9341 QT_CFLAGS="$QT_CFLAGS `$ac_cv_path_EGREP '^CXXFLAGS *=' "$qmake_dir/Makefile" | sed -e 's/^CXXFLAGS *= *//' -e 's/-pipe//g' -e 's/-O.//g' -e 's/ -W[^ ]*//g' -e 's/-std=[^ ]*//g' -e 's/\$(DEFINES)//g'`" 9342 QT_CFLAGS="$QT_CFLAGS `$ac_cv_path_EGREP '^INCPATH *=' "$qmake_dir/Makefile" | sed -e 's/^INCPATH *= *//' -e 's:-I[^/][^ ]*::g'`" 9343 QT_CFLAGS="`echo $QT_CFLAGS | sed -e 's/\$(EXPORT_ARCH_ARGS)//'`" 9344 QT_LIBS="`$ac_cv_path_EGREP '^LFLAGS *=' "$qmake_dir/Makefile" | sed -e 's/^LFLAGS *= *//' -e 's/-Wl,-O[^ ]*//g'`" 9345 QT_LIBS="$QT_LIBS `$ac_cv_path_EGREP '^LIBS *=' "$qmake_dir/Makefile" | sed -e 's/^LIBS *= *//' -e 's/\$(SUBLIBS)//g' -e 's:-L[^/][^ ]*::g'`" 9346 QT_LIBS="`echo $QT_LIBS | sed -e 's/\$(EXPORT_ARCH_ARGS)//'`" 9347 QT_LIBS_NON_GUI="`$ac_cv_path_EGREP '^LFLAGS *=' "$qmake_dir/Makefile.non_gui" | sed -e 's/^LFLAGS *= *//' -e 's/-Wl,-O[^ ]*//g'`" 9348 QT_LIBS_NON_GUI="$QT_LIBS_NON_GUI `$ac_cv_path_EGREP '^LIBS *=' "$qmake_dir/Makefile.non_gui" | sed -e 's/^LIBS *= *//' -e 's/\$(SUBLIBS)//g' -e 's:-L[^/][^ ]*::g'`" 9349 QT_LIBS_NON_GUI="`echo $QT_LIBS_NON_GUI | sed -e 's/\$(EXPORT_ARCH_ARGS)//'`" 9350 9351 rm -rf "$qmake_dir" 9352 9353 if test x"$QT_CFLAGS" = x -o x"$QT_LIBS" = x -o x"$QT_LIBS_NON_GUI" = x; then 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9355printf %s "checking for Qt 6... " >&6; } 9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not extract one or more compiler flags from Makefile generated by qmake6" >&5 9357printf "%s\n" "no: could not extract one or more compiler flags from Makefile generated by qmake6" >&6; } 9358 return 9359 fi 9360 9361 # Extract the first word of "lconvert", so it can be a program name with args. 9362set dummy lconvert; ac_word=$2 9363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9364printf %s "checking for $ac_word... " >&6; } 9365if test ${ac_cv_path_LCONVERT+y} 9366then : 9367 printf %s "(cached) " >&6 9368else $as_nop 9369 case $LCONVERT in 9370 [\\/]* | ?:[\\/]*) 9371 ac_cv_path_LCONVERT="$LCONVERT" # Let the user override the test with a path. 9372 ;; 9373 *) 9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375for as_dir in $qt_searchpath 9376do 9377 IFS=$as_save_IFS 9378 case $as_dir in #((( 9379 '') as_dir=./ ;; 9380 */) ;; 9381 *) as_dir=$as_dir/ ;; 9382 esac 9383 for ac_exec_ext in '' $ac_executable_extensions; do 9384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9385 ac_cv_path_LCONVERT="$as_dir$ac_word$ac_exec_ext" 9386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9387 break 2 9388 fi 9389done 9390 done 9391IFS=$as_save_IFS 9392 9393 ;; 9394esac 9395fi 9396LCONVERT=$ac_cv_path_LCONVERT 9397if test -n "$LCONVERT"; then 9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCONVERT" >&5 9399printf "%s\n" "$LCONVERT" >&6; } 9400else 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9402printf "%s\n" "no" >&6; } 9403fi 9404 9405 9406 # Extract the first word of "moc", so it can be a program name with args. 9407set dummy moc; ac_word=$2 9408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9409printf %s "checking for $ac_word... " >&6; } 9410if test ${ac_cv_path_MOC+y} 9411then : 9412 printf %s "(cached) " >&6 9413else $as_nop 9414 case $MOC in 9415 [\\/]* | ?:[\\/]*) 9416 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 9417 ;; 9418 *) 9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9420for as_dir in $qt_searchpath 9421do 9422 IFS=$as_save_IFS 9423 case $as_dir in #((( 9424 '') as_dir=./ ;; 9425 */) ;; 9426 *) as_dir=$as_dir/ ;; 9427 esac 9428 for ac_exec_ext in '' $ac_executable_extensions; do 9429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9430 ac_cv_path_MOC="$as_dir$ac_word$ac_exec_ext" 9431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9432 break 2 9433 fi 9434done 9435 done 9436IFS=$as_save_IFS 9437 9438 ;; 9439esac 9440fi 9441MOC=$ac_cv_path_MOC 9442if test -n "$MOC"; then 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 9444printf "%s\n" "$MOC" >&6; } 9445else 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9447printf "%s\n" "no" >&6; } 9448fi 9449 9450 9451 # Extract the first word of "rcc", so it can be a program name with args. 9452set dummy rcc; ac_word=$2 9453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9454printf %s "checking for $ac_word... " >&6; } 9455if test ${ac_cv_path_RCC+y} 9456then : 9457 printf %s "(cached) " >&6 9458else $as_nop 9459 case $RCC in 9460 [\\/]* | ?:[\\/]*) 9461 ac_cv_path_RCC="$RCC" # Let the user override the test with a path. 9462 ;; 9463 *) 9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9465for as_dir in $qt_searchpath 9466do 9467 IFS=$as_save_IFS 9468 case $as_dir in #((( 9469 '') as_dir=./ ;; 9470 */) ;; 9471 *) as_dir=$as_dir/ ;; 9472 esac 9473 for ac_exec_ext in '' $ac_executable_extensions; do 9474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9475 ac_cv_path_RCC="$as_dir$ac_word$ac_exec_ext" 9476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9477 break 2 9478 fi 9479done 9480 done 9481IFS=$as_save_IFS 9482 9483 ;; 9484esac 9485fi 9486RCC=$ac_cv_path_RCC 9487if test -n "$RCC"; then 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5 9489printf "%s\n" "$RCC" >&6; } 9490else 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9492printf "%s\n" "no" >&6; } 9493fi 9494 9495 9496 # Extract the first word of "uic", so it can be a program name with args. 9497set dummy uic; ac_word=$2 9498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9499printf %s "checking for $ac_word... " >&6; } 9500if test ${ac_cv_path_UIC+y} 9501then : 9502 printf %s "(cached) " >&6 9503else $as_nop 9504 case $UIC in 9505 [\\/]* | ?:[\\/]*) 9506 ac_cv_path_UIC="$UIC" # Let the user override the test with a path. 9507 ;; 9508 *) 9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9510for as_dir in $qt_searchpath 9511do 9512 IFS=$as_save_IFS 9513 case $as_dir in #((( 9514 '') as_dir=./ ;; 9515 */) ;; 9516 *) as_dir=$as_dir/ ;; 9517 esac 9518 for ac_exec_ext in '' $ac_executable_extensions; do 9519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9520 ac_cv_path_UIC="$as_dir$ac_word$ac_exec_ext" 9521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9522 break 2 9523 fi 9524done 9525 done 9526IFS=$as_save_IFS 9527 9528 ;; 9529esac 9530fi 9531UIC=$ac_cv_path_UIC 9532if test -n "$UIC"; then 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5 9534printf "%s\n" "$UIC" >&6; } 9535else 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9537printf "%s\n" "no" >&6; } 9538fi 9539 9540 9541 9542 if test x"$MOC" = x; then 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9544printf %s "checking for Qt 6... " >&6; } 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the moc executable" >&5 9546printf "%s\n" "no: could not find the moc executable" >&6; } 9547 return 9548 9549 elif test x"$RCC" = x; then 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9551printf %s "checking for Qt 6... " >&6; } 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the rcc executable" >&5 9553printf "%s\n" "no: could not find the rcc executable" >&6; } 9554 return 9555 9556 elif test x"$UIC" = x; then 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9558printf %s "checking for Qt 6... " >&6; } 9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the uic executable" >&5 9560printf "%s\n" "no: could not find the uic executable" >&6; } 9561 return 9562 fi 9563 9564 ac_ext=cpp 9565ac_cpp='$CXXCPP $CPPFLAGS' 9566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9569 9570 if test ${am_cv_qt6_compilation+y} 9571then : 9572 printf %s "(cached) " >&6 9573else $as_nop 9574 9575 ac_save_CXXFLAGS="$CXXFLAGS" 9576 ac_save_LIBS="$LIBS" 9577 CXXFLAGS="$STD_CXX $CXXFLAGS $QT_CFLAGS -fPIC" 9578 LIBS="$LDFLAGS $QT_LIBS" 9579 unset ac_cv_qt_compilation 9580 9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582/* end confdefs.h. */ 9583 9584#include <QtCore> 9585#include <QCoreApplication> 9586class Config : public QCoreApplication { 9587public: 9588Config(int &argc, char **argv); 9589}; 9590Config::Config(int &argc, char **argv) 9591: QCoreApplication(argc,argv) {setApplicationName("config");} 9592 9593int 9594main (void) 9595{ 9596 9597int ai = 0; 9598char **ac = 0; 9599Config app(ai,ac); 9600return 0; 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606if ac_fn_cxx_try_link "$LINENO" 9607then : 9608 am_cv_qt6_compilation=1 9609else $as_nop 9610 am_cv_qt6_compilation=0 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9613 conftest$ac_exeext conftest.$ac_ext 9614 9615 CXXFLAGS="$ac_save_CXXFLAGS" 9616 LIBS="$ac_save_LIBS" 9617 9618fi 9619 9620 ac_ext=c 9621ac_cpp='$CPP $CPPFLAGS' 9622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9624ac_compiler_gnu=$ac_cv_c_compiler_gnu 9625 9626 9627 if test x"$am_cv_qt6_compilation" != x1; then 9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9629printf %s "checking for Qt 6... " >&6; } 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not compile a test program" >&5 9631printf "%s\n" "no: could not compile a test program" >&6; } 9632 return 9633 fi 9634 9635 9636printf "%s\n" "@%:@define HAVE_QT 1" >>confdefs.h 9637 9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9639printf %s "checking for Qt 6... " >&6; } 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9641printf "%s\n" "yes" >&6; } 9642 have_qt6=yes 9643} 9644 9645@%:@ Check whether --enable-gui was given. 9646if test ${enable_gui+y} 9647then : 9648 enableval=$enable_gui; 9649else $as_nop 9650 enable_gui=yes 9651fi 9652 9653@%:@ Check whether --enable-qt6 was given. 9654if test ${enable_qt6+y} 9655then : 9656 enableval=$enable_qt6; 9657else $as_nop 9658 enable_qt6=yes 9659fi 9660 9661 9662have_qt6=no 9663 9664if test x"$enable_qt6" != "xyes"; then 9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 6" >&5 9666printf %s "checking for Qt 6... " >&6; } 9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: disabled by user request" >&5 9668printf "%s\n" "no: disabled by user request" >&6; } 9669 9670else 9671 check_qt6 9672 9673 unset qmake_dir qt_bindir qt_libdir qt_searchpath 9674 9675 if test $have_qt6 != yes; then 9676 unset QT_CFLAGS QT_LIBS QT_LIBS_NON_GUI LCONVERT MOC RCC UIC ac_cv_path_LCONVERT ac_cv_path_MOC ac_cv_path_RCC ac_cv_path_UIC 9677 fi 9678fi 9679 9680 9681qt_min_ver=5.9.0 9682 9683check_qt5() { 9684 9685@%:@ Check whether --with-qmake was given. 9686if test ${with_qmake+y} 9687then : 9688 withval=$with_qmake; QMAKE="$with_qmake" 9689fi 9690 9691 9692 if ! test -z "$QMAKE"; then 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for qmake" >&5 9694printf %s "checking for qmake... " >&6; } 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $QMAKE" >&5 9696printf "%s\n" "using supplied $QMAKE" >&6; } 9697 else 9698 if test -n "$ac_tool_prefix"; then 9699 # Extract the first word of "${ac_tool_prefix}qmake-qt5", so it can be a program name with args. 9700set dummy ${ac_tool_prefix}qmake-qt5; ac_word=$2 9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9702printf %s "checking for $ac_word... " >&6; } 9703if test ${ac_cv_path_QMAKE+y} 9704then : 9705 printf %s "(cached) " >&6 9706else $as_nop 9707 case $QMAKE in 9708 [\\/]* | ?:[\\/]*) 9709 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path. 9710 ;; 9711 *) 9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9713for as_dir in $PATH 9714do 9715 IFS=$as_save_IFS 9716 case $as_dir in #((( 9717 '') as_dir=./ ;; 9718 */) ;; 9719 *) as_dir=$as_dir/ ;; 9720 esac 9721 for ac_exec_ext in '' $ac_executable_extensions; do 9722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9723 ac_cv_path_QMAKE="$as_dir$ac_word$ac_exec_ext" 9724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9725 break 2 9726 fi 9727done 9728 done 9729IFS=$as_save_IFS 9730 9731 ;; 9732esac 9733fi 9734QMAKE=$ac_cv_path_QMAKE 9735if test -n "$QMAKE"; then 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 9737printf "%s\n" "$QMAKE" >&6; } 9738else 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9740printf "%s\n" "no" >&6; } 9741fi 9742 9743 9744fi 9745if test -z "$ac_cv_path_QMAKE"; then 9746 ac_pt_QMAKE=$QMAKE 9747 # Extract the first word of "qmake-qt5", so it can be a program name with args. 9748set dummy qmake-qt5; ac_word=$2 9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9750printf %s "checking for $ac_word... " >&6; } 9751if test ${ac_cv_path_ac_pt_QMAKE+y} 9752then : 9753 printf %s "(cached) " >&6 9754else $as_nop 9755 case $ac_pt_QMAKE in 9756 [\\/]* | ?:[\\/]*) 9757 ac_cv_path_ac_pt_QMAKE="$ac_pt_QMAKE" # Let the user override the test with a path. 9758 ;; 9759 *) 9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9761for as_dir in $PATH 9762do 9763 IFS=$as_save_IFS 9764 case $as_dir in #((( 9765 '') as_dir=./ ;; 9766 */) ;; 9767 *) as_dir=$as_dir/ ;; 9768 esac 9769 for ac_exec_ext in '' $ac_executable_extensions; do 9770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9771 ac_cv_path_ac_pt_QMAKE="$as_dir$ac_word$ac_exec_ext" 9772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9773 break 2 9774 fi 9775done 9776 done 9777IFS=$as_save_IFS 9778 9779 ;; 9780esac 9781fi 9782ac_pt_QMAKE=$ac_cv_path_ac_pt_QMAKE 9783if test -n "$ac_pt_QMAKE"; then 9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_QMAKE" >&5 9785printf "%s\n" "$ac_pt_QMAKE" >&6; } 9786else 9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9788printf "%s\n" "no" >&6; } 9789fi 9790 9791 if test "x$ac_pt_QMAKE" = x; then 9792 QMAKE="" 9793 else 9794 case $cross_compiling:$ac_tool_warned in 9795yes:) 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9797printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9798ac_tool_warned=yes ;; 9799esac 9800 QMAKE=$ac_pt_QMAKE 9801 fi 9802else 9803 QMAKE="$ac_cv_path_QMAKE" 9804fi 9805 9806 if test -z "$QMAKE"; then 9807 if test -n "$ac_tool_prefix"; then 9808 # Extract the first word of "${ac_tool_prefix}qmake", so it can be a program name with args. 9809set dummy ${ac_tool_prefix}qmake; ac_word=$2 9810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9811printf %s "checking for $ac_word... " >&6; } 9812if test ${ac_cv_path_QMAKE+y} 9813then : 9814 printf %s "(cached) " >&6 9815else $as_nop 9816 case $QMAKE in 9817 [\\/]* | ?:[\\/]*) 9818 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path. 9819 ;; 9820 *) 9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9822for as_dir in $PATH 9823do 9824 IFS=$as_save_IFS 9825 case $as_dir in #((( 9826 '') as_dir=./ ;; 9827 */) ;; 9828 *) as_dir=$as_dir/ ;; 9829 esac 9830 for ac_exec_ext in '' $ac_executable_extensions; do 9831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9832 ac_cv_path_QMAKE="$as_dir$ac_word$ac_exec_ext" 9833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9834 break 2 9835 fi 9836done 9837 done 9838IFS=$as_save_IFS 9839 9840 ;; 9841esac 9842fi 9843QMAKE=$ac_cv_path_QMAKE 9844if test -n "$QMAKE"; then 9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 9846printf "%s\n" "$QMAKE" >&6; } 9847else 9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9849printf "%s\n" "no" >&6; } 9850fi 9851 9852 9853fi 9854if test -z "$ac_cv_path_QMAKE"; then 9855 ac_pt_QMAKE=$QMAKE 9856 # Extract the first word of "qmake", so it can be a program name with args. 9857set dummy qmake; ac_word=$2 9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9859printf %s "checking for $ac_word... " >&6; } 9860if test ${ac_cv_path_ac_pt_QMAKE+y} 9861then : 9862 printf %s "(cached) " >&6 9863else $as_nop 9864 case $ac_pt_QMAKE in 9865 [\\/]* | ?:[\\/]*) 9866 ac_cv_path_ac_pt_QMAKE="$ac_pt_QMAKE" # Let the user override the test with a path. 9867 ;; 9868 *) 9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9870for as_dir in $PATH 9871do 9872 IFS=$as_save_IFS 9873 case $as_dir in #((( 9874 '') as_dir=./ ;; 9875 */) ;; 9876 *) as_dir=$as_dir/ ;; 9877 esac 9878 for ac_exec_ext in '' $ac_executable_extensions; do 9879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9880 ac_cv_path_ac_pt_QMAKE="$as_dir$ac_word$ac_exec_ext" 9881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9882 break 2 9883 fi 9884done 9885 done 9886IFS=$as_save_IFS 9887 9888 ;; 9889esac 9890fi 9891ac_pt_QMAKE=$ac_cv_path_ac_pt_QMAKE 9892if test -n "$ac_pt_QMAKE"; then 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_QMAKE" >&5 9894printf "%s\n" "$ac_pt_QMAKE" >&6; } 9895else 9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9897printf "%s\n" "no" >&6; } 9898fi 9899 9900 if test "x$ac_pt_QMAKE" = x; then 9901 QMAKE="" 9902 else 9903 case $cross_compiling:$ac_tool_warned in 9904yes:) 9905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9907ac_tool_warned=yes ;; 9908esac 9909 QMAKE=$ac_pt_QMAKE 9910 fi 9911else 9912 QMAKE="$ac_cv_path_QMAKE" 9913fi 9914 9915 fi 9916 fi 9917 9918 if test x"$QMAKE" = x; then 9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 9920printf %s "checking for Qt 5... " >&6; } 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: qmake not found" >&5 9922printf "%s\n" "no: qmake not found" >&6; } 9923 return 9924 fi 9925 9926 qmake_properties="`mktemp`" 9927 9928 "$QMAKE" -query > "$qmake_properties" 9929 9930 qmake_ver="`$ac_cv_path_EGREP '^QT_VERSION:' "$qmake_properties" | sed 's/^QT_VERSION://'`" 9931 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for qmake's version" >&5 9933printf %s "checking for qmake's version... " >&6; } 9934 if test -z "qmake_ver"; then 9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown; please contact the author" >&5 9936printf "%s\n" "unknown; please contact the author" >&6; } 9937 return 9938 elif ! check_version $qt_min_ver $qmake_ver; then 9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old: $qmake_ver" >&5 9940printf "%s\n" "too old: $qmake_ver" >&6; } 9941 return 9942 else 9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $qmake_ver" >&5 9944printf "%s\n" "$qmake_ver" >&6; } 9945 fi 9946 9947 qt_bindir="`$ac_cv_path_EGREP '^QT_INSTALL_BINS:' "$qmake_properties" | sed 's/^QT_INSTALL_BINS://'`" 9948 qt_libexecdir="`$ac_cv_path_EGREP '^QT_INSTALL_LIBEXECS:' "$qmake_properties" | sed 's/^QT_INSTALL_LIBEXECS://'`" 9949 qt_searchpath="$qt_libexecdir:$qt_bindir:$PATH" 9950 9951 rm -f "$qmake_properties" 9952 9953 # Extract the first word of "lconvert", so it can be a program name with args. 9954set dummy lconvert; ac_word=$2 9955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9956printf %s "checking for $ac_word... " >&6; } 9957if test ${ac_cv_path_LCONVERT+y} 9958then : 9959 printf %s "(cached) " >&6 9960else $as_nop 9961 case $LCONVERT in 9962 [\\/]* | ?:[\\/]*) 9963 ac_cv_path_LCONVERT="$LCONVERT" # Let the user override the test with a path. 9964 ;; 9965 *) 9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9967for as_dir in $qt_searchpath 9968do 9969 IFS=$as_save_IFS 9970 case $as_dir in #((( 9971 '') as_dir=./ ;; 9972 */) ;; 9973 *) as_dir=$as_dir/ ;; 9974 esac 9975 for ac_exec_ext in '' $ac_executable_extensions; do 9976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9977 ac_cv_path_LCONVERT="$as_dir$ac_word$ac_exec_ext" 9978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9979 break 2 9980 fi 9981done 9982 done 9983IFS=$as_save_IFS 9984 9985 ;; 9986esac 9987fi 9988LCONVERT=$ac_cv_path_LCONVERT 9989if test -n "$LCONVERT"; then 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCONVERT" >&5 9991printf "%s\n" "$LCONVERT" >&6; } 9992else 9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9994printf "%s\n" "no" >&6; } 9995fi 9996 9997 9998 # Extract the first word of "moc", so it can be a program name with args. 9999set dummy moc; ac_word=$2 10000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10001printf %s "checking for $ac_word... " >&6; } 10002if test ${ac_cv_path_MOC+y} 10003then : 10004 printf %s "(cached) " >&6 10005else $as_nop 10006 case $MOC in 10007 [\\/]* | ?:[\\/]*) 10008 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 10009 ;; 10010 *) 10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10012for as_dir in $qt_searchpath 10013do 10014 IFS=$as_save_IFS 10015 case $as_dir in #((( 10016 '') as_dir=./ ;; 10017 */) ;; 10018 *) as_dir=$as_dir/ ;; 10019 esac 10020 for ac_exec_ext in '' $ac_executable_extensions; do 10021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10022 ac_cv_path_MOC="$as_dir$ac_word$ac_exec_ext" 10023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10024 break 2 10025 fi 10026done 10027 done 10028IFS=$as_save_IFS 10029 10030 ;; 10031esac 10032fi 10033MOC=$ac_cv_path_MOC 10034if test -n "$MOC"; then 10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 10036printf "%s\n" "$MOC" >&6; } 10037else 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10039printf "%s\n" "no" >&6; } 10040fi 10041 10042 10043 # Extract the first word of "rcc", so it can be a program name with args. 10044set dummy rcc; ac_word=$2 10045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10046printf %s "checking for $ac_word... " >&6; } 10047if test ${ac_cv_path_RCC+y} 10048then : 10049 printf %s "(cached) " >&6 10050else $as_nop 10051 case $RCC in 10052 [\\/]* | ?:[\\/]*) 10053 ac_cv_path_RCC="$RCC" # Let the user override the test with a path. 10054 ;; 10055 *) 10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10057for as_dir in $qt_searchpath 10058do 10059 IFS=$as_save_IFS 10060 case $as_dir in #((( 10061 '') as_dir=./ ;; 10062 */) ;; 10063 *) as_dir=$as_dir/ ;; 10064 esac 10065 for ac_exec_ext in '' $ac_executable_extensions; do 10066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10067 ac_cv_path_RCC="$as_dir$ac_word$ac_exec_ext" 10068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10069 break 2 10070 fi 10071done 10072 done 10073IFS=$as_save_IFS 10074 10075 ;; 10076esac 10077fi 10078RCC=$ac_cv_path_RCC 10079if test -n "$RCC"; then 10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5 10081printf "%s\n" "$RCC" >&6; } 10082else 10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10084printf "%s\n" "no" >&6; } 10085fi 10086 10087 10088 # Extract the first word of "uic", so it can be a program name with args. 10089set dummy uic; ac_word=$2 10090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10091printf %s "checking for $ac_word... " >&6; } 10092if test ${ac_cv_path_UIC+y} 10093then : 10094 printf %s "(cached) " >&6 10095else $as_nop 10096 case $UIC in 10097 [\\/]* | ?:[\\/]*) 10098 ac_cv_path_UIC="$UIC" # Let the user override the test with a path. 10099 ;; 10100 *) 10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10102for as_dir in $qt_searchpath 10103do 10104 IFS=$as_save_IFS 10105 case $as_dir in #((( 10106 '') as_dir=./ ;; 10107 */) ;; 10108 *) as_dir=$as_dir/ ;; 10109 esac 10110 for ac_exec_ext in '' $ac_executable_extensions; do 10111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10112 ac_cv_path_UIC="$as_dir$ac_word$ac_exec_ext" 10113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10114 break 2 10115 fi 10116done 10117 done 10118IFS=$as_save_IFS 10119 10120 ;; 10121esac 10122fi 10123UIC=$ac_cv_path_UIC 10124if test -n "$UIC"; then 10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5 10126printf "%s\n" "$UIC" >&6; } 10127else 10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129printf "%s\n" "no" >&6; } 10130fi 10131 10132 10133 10134 if test x"$MOC" = x; then 10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10136printf %s "checking for Qt 5... " >&6; } 10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the moc executable" >&5 10138printf "%s\n" "no: could not find the moc executable" >&6; } 10139 return 10140 10141 elif test x"$RCC" = x; then 10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10143printf %s "checking for Qt 5... " >&6; } 10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the rcc executable" >&5 10145printf "%s\n" "no: could not find the rcc executable" >&6; } 10146 return 10147 10148 elif test x"$UIC" = x; then 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10150printf %s "checking for Qt 5... " >&6; } 10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: could not find the uic executable" >&5 10152printf "%s\n" "no: could not find the uic executable" >&6; } 10153 return 10154 fi 10155 10156 10157 if test x"$enable_static_qt" = "xyes"; then 10158 10159printf "%s\n" "@%:@define HAVE_STATIC_QT /**/" >>confdefs.h 10160 10161 QT_PKG_CONFIG_STATIC=--static 10162 else 10163 QT_PKG_CONFIG_STATIC= 10164 fi 10165 10166 if test "x$with_qt_pkg_config" = xyes; then 10167 with_qt_pkg_config_modules="`echo "$with_qt_pkg_config_modules" | sed -e 's/ /,/g'`" 10168 if test x"$with_qt_pkg_config_modules" != x ; then 10169 with_qt_pkg_config_modules="$with_qt_pkg_config_modules," 10170 fi 10171 10172 orig_with_qt_pkg_config_modules="$with_qt_pkg_config_modules," 10173 10174 with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5Core" 10175 10176 if test x"$enable_gui" = xyes; then 10177 with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5Gui,Qt5Widgets,Qt5Multimedia,Qt5Network,Qt5Concurrent" 10178 fi 10179 10180 if test x"$MINGW" = x1; then 10181 with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5WinExtras" 10182 fi 10183 10184 if test -n "$PKG_CONFIG" && \ 10185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_qt_pkg_config_modules\""; } >&5 10186 ($PKG_CONFIG --exists --print-errors "$with_qt_pkg_config_modules") 2>&5 10187 ac_status=$? 10188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10189 test $ac_status = 0; }; then 10190 ok=1 10191else 10192 ok=0 10193fi 10194 if test -n "$PKG_CONFIG" && \ 10195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5PlatformSupport\""; } >&5 10196 ($PKG_CONFIG --exists --print-errors "Qt5PlatformSupport") 2>&5 10197 ac_status=$? 10198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10199 test $ac_status = 0; }; then 10200 with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5PlatformSupport" 10201fi 10202 10203 if test $ok = 0; then 10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10205printf %s "checking for Qt 5... " >&6; } 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: not found by pkg-config" >&5 10207printf "%s\n" "no: not found by pkg-config" >&6; } 10208 return 10209 fi 10210 10211 if test x"$MINGW" != x1 && ! echo "$host" | grep -q -i apple ; then 10212 if test -n "$PKG_CONFIG" && \ 10213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus\""; } >&5 10214 ($PKG_CONFIG --exists --print-errors "Qt5DBus") 2>&5 10215 ac_status=$? 10216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10217 test $ac_status = 0; }; then 10218 dbus_found=yes 10219else 10220 dbus_found=no 10221fi 10222 if test x"$dbus_found" = xyes; then 10223 with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5DBus" 10224 10225printf "%s\n" "@%:@define HAVE_QTDBUS 1" >>confdefs.h 10226 10227 fi 10228 fi 10229 10230 with_qt_pkg_config_modules="`echo "$with_qt_pkg_config_modules" | sed -e 's/,/ /g'`" 10231 QT_CFLAGS="`$PKG_CONFIG --cflags $with_qt_pkg_config_modules $QT_PKG_CONFIG_STATIC`" 10232 QT_LIBS="`$PKG_CONFIG --libs $with_qt_pkg_config_modules $QT_PKG_CONFIG_STATIC`" 10233 QT_LIBS_NON_GUI="`$PKG_CONFIG --libs $orig_with_qt_pkg_config_modules,Qt5Core $QT_PKG_CONFIG_STATIC`" 10234 fi 10235 10236 ac_ext=cpp 10237ac_cpp='$CXXCPP $CPPFLAGS' 10238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10241 10242 if test ${am_cv_qt5_compilation+y} 10243then : 10244 printf %s "(cached) " >&6 10245else $as_nop 10246 10247 run_qt_test=1 10248 while true; do 10249 ac_save_CXXFLAGS="$CXXFLAGS" 10250 ac_save_LIBS="$LIBS" 10251 CXXFLAGS="$STD_CXX $CXXFLAGS $QT_CFLAGS -fPIC" 10252 LIBS="$LDFLAGS $QT_LIBS" 10253 unset ac_cv_qt_compilation 10254 10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257 10258#include <QtCore> 10259#include <QCoreApplication> 10260class Config : public QCoreApplication { 10261public: 10262Config(int &argc, char **argv); 10263}; 10264Config::Config(int &argc, char **argv) 10265: QCoreApplication(argc,argv) {setApplicationName("config");} 10266 10267int 10268main (void) 10269{ 10270 10271int ai = 0; 10272char **ac = 0; 10273Config app(ai,ac); 10274return 0; 10275 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280if ac_fn_cxx_try_link "$LINENO" 10281then : 10282 am_cv_qt5_compilation=1 10283else $as_nop 10284 am_cv_qt5_compilation=0 10285fi 10286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10287 conftest$ac_exeext conftest.$ac_ext 10288 10289 CXXFLAGS="$ac_save_CXXFLAGS" 10290 LIBS="$ac_save_LIBS" 10291 10292 if test x"$am_cv_qt5_compilation" = x1; then 10293 break 10294 10295 elif test x"$run_qt_test" = "x1"; then 10296 QT_CFLAGS="$QT_CFLAGS -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtWidgets -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtWidgets -I/usr/local/include/QtNetwork -I/usr/local/include/QtPlatformSupport" 10297 run_qt_test=3 10298 10299 else 10300 break 10301 10302 fi 10303 done 10304 10305fi 10306 10307 ac_ext=c 10308ac_cpp='$CPP $CPPFLAGS' 10309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10311ac_compiler_gnu=$ac_cv_c_compiler_gnu 10312 10313 10314 rm -f src/mkvtoolnix-gui/static_plugins.cpp 10315 10316 if ! test x"$am_cv_qt5_compilation" = x1; then 10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10318printf %s "checking for Qt 5... " >&6; } 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: test program could not be compiled" >&5 10320printf "%s\n" "no: test program could not be compiled" >&6; } 10321 return 10322 fi 10323 10324 if test x"$QT_PKG_CONFIG_STATIC" != x; then 10325 qmake_dir="`mktemp -d`" 10326 10327 if test x"$MINGW" = x1 && check_version 5.10.0 $moc_ver; then 10328 QTPLUGIN="qwindowsvistastyle" 10329 else 10330 QTPLUGIN="" 10331 fi 10332 10333 touch "$qmake_dir/empty.cpp" 10334 cat > "$qmake_dir/dummy.pro" <<EOF 10335QT += core multimedia 10336QTPLUGIN += $QTPLUGIN 10337CONFIG += release static 10338TARGET = console 10339TEMPLATE = app 10340SOURCES += empty.cpp 10341EOF 10342 10343 old_wd="$PWD" 10344 cd "$qmake_dir" 10345 10346 "$QMAKE" -makefile -nocache dummy.pro > /dev/null 2>&1 10347 result=$? 10348 10349 cd "$old_wd" 10350 10351 makefile="" 10352 if test x$result != x0; then 10353 problem="qmake failed to create Makefile" 10354 10355 elif ! test -f "$qmake_dir/console_plugin_import.cpp"; then 10356 problem="static plugin list could not be generated via $QMAKE" 10357 10358 elif test -f "$qmake_dir/Makefile.Release"; then 10359 makefile="$qmake_dir/Makefile.Release" 10360 10361 elif test -f "$qmake_dir/Makefile"; then 10362 makefile="$qmake_dir/Makefile" 10363 10364 else 10365 problem="the Makefile created by $QMAKE could not be found" 10366 fi 10367 10368 if test x"$problem" = x; then 10369 qmake_libs="`grep '^LIBS' "$makefile" | sed -Ee 's/^LIBS[ \t]*=[ \t]*//'`" 10370 QT_LIBS="$qmake_libs $QT_LIBS" 10371 10372 cp "$qmake_dir/console_plugin_import.cpp" src/mkvtoolnix-gui/static_plugins.cpp 10373 fi 10374 10375 rm -rf "$qmake_dir" 10376 10377 unset makefile qmake_libs qmake_dir 10378 fi 10379 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10381printf %s "checking for Qt 5... " >&6; } 10382 10383 if test x"$problem" = x; then 10384 10385printf "%s\n" "@%:@define HAVE_QT 1" >>confdefs.h 10386 10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10388printf "%s\n" "yes" >&6; } 10389 have_qt5=yes 10390 else 10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: $problem" >&5 10392printf "%s\n" "no: $problem" >&6; } 10393 fi 10394 10395 unset problem 10396} 10397 10398@%:@ Check whether --enable-qt5 was given. 10399if test ${enable_qt5+y} 10400then : 10401 enableval=$enable_qt5; 10402else $as_nop 10403 enable_qt5=yes 10404fi 10405 10406@%:@ Check whether --enable-static_qt was given. 10407if test ${enable_static_qt+y} 10408then : 10409 enableval=$enable_static_qt; 10410fi 10411 10412 10413@%:@ Check whether --with-qt_pkg_config_modules was given. 10414if test ${with_qt_pkg_config_modules+y} 10415then : 10416 withval=$with_qt_pkg_config_modules; 10417fi 10418 10419 10420@%:@ Check whether --with-qt_pkg_config was given. 10421if test ${with_qt_pkg_config+y} 10422then : 10423 withval=$with_qt_pkg_config; with_qt_pkg_config=${withval} 10424else $as_nop 10425 with_qt_pkg_config=yes 10426fi 10427 10428 10429have_qt5=no 10430 10431if test x"$have_qt6" = "xyes"; then 10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10433printf %s "checking for Qt 5... " >&6; } 10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: already using Qt 6" >&5 10435printf "%s\n" "no: already using Qt 6" >&6; } 10436 10437elif test x"$enable_qt5" != xyes; then 10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt 5" >&5 10439printf %s "checking for Qt 5... " >&6; } 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: disabled by user request" >&5 10441printf "%s\n" "no: disabled by user request" >&6; } 10442 10443else 10444 check_qt5 10445fi 10446 10447if test x"$have_qt6" != xyes -a x"$have_qt5" != xyes; then 10448 as_fn_error $? "The Qt library is required for building MKVToolNix." "$LINENO" 5 10449fi 10450 10451if test x"$enable_gui" = xyes; then 10452 BUILD_GUI=yes 10453 10454 if test x"$have_qt6" = "xyes" ; then 10455 opt_features_yes="$opt_features_yes\n * MKVToolNix GUI (with Qt 6)" 10456 else 10457 opt_features_yes="$opt_features_yes\n * MKVToolNix GUI (with Qt 5)" 10458 fi 10459 10460else 10461 BUILD_GUI=no 10462 10463 opt_features_no="$opt_features_no\n * MKVToolNix GUI" 10464fi 10465 10466 10467 10468 10469 10470 10471 10472if test x"$BUILD_GUI" = xyes; then 10473 if test -n "$PKG_CONFIG" && \ 10474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmark\""; } >&5 10475 ($PKG_CONFIG --exists --print-errors "libcmark") 2>&5 10476 ac_status=$? 10477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10478 test $ac_status = 0; }; then 10479 cmark_found=yes 10480else 10481 cmark_found=no 10482fi 10483 if test x"$cmark_found" = xyes; then 10484 10485pkg_failed=no 10486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcmark" >&5 10487printf %s "checking for libcmark... " >&6; } 10488 10489if test -n "$libcmark_CFLAGS"; then 10490 pkg_cv_libcmark_CFLAGS="$libcmark_CFLAGS" 10491 elif test -n "$PKG_CONFIG"; then 10492 if test -n "$PKG_CONFIG" && \ 10493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmark\""; } >&5 10494 ($PKG_CONFIG --exists --print-errors "libcmark") 2>&5 10495 ac_status=$? 10496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10497 test $ac_status = 0; }; then 10498 pkg_cv_libcmark_CFLAGS=`$PKG_CONFIG --cflags "libcmark" 2>/dev/null` 10499 test "x$?" != "x0" && pkg_failed=yes 10500else 10501 pkg_failed=yes 10502fi 10503 else 10504 pkg_failed=untried 10505fi 10506if test -n "$libcmark_LIBS"; then 10507 pkg_cv_libcmark_LIBS="$libcmark_LIBS" 10508 elif test -n "$PKG_CONFIG"; then 10509 if test -n "$PKG_CONFIG" && \ 10510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmark\""; } >&5 10511 ($PKG_CONFIG --exists --print-errors "libcmark") 2>&5 10512 ac_status=$? 10513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10514 test $ac_status = 0; }; then 10515 pkg_cv_libcmark_LIBS=`$PKG_CONFIG --libs "libcmark" 2>/dev/null` 10516 test "x$?" != "x0" && pkg_failed=yes 10517else 10518 pkg_failed=yes 10519fi 10520 else 10521 pkg_failed=untried 10522fi 10523 10524 10525 10526if test $pkg_failed = yes; then 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10528printf "%s\n" "no" >&6; } 10529 10530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10531 _pkg_short_errors_supported=yes 10532else 10533 _pkg_short_errors_supported=no 10534fi 10535 if test $_pkg_short_errors_supported = yes; then 10536 libcmark_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcmark" 2>&1` 10537 else 10538 libcmark_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcmark" 2>&1` 10539 fi 10540 # Put the nasty error message in config.log where it belongs 10541 echo "$libcmark_PKG_ERRORS" >&5 10542 10543 as_fn_error $? "Package requirements (libcmark) were not met: 10544 10545$libcmark_PKG_ERRORS 10546 10547Consider adjusting the PKG_CONFIG_PATH environment variable if you 10548installed software in a non-standard prefix. 10549 10550Alternatively, you may set the environment variables libcmark_CFLAGS 10551and libcmark_LIBS to avoid the need to call pkg-config. 10552See the pkg-config man page for more details." "$LINENO" 5 10553elif test $pkg_failed = untried; then 10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10555printf "%s\n" "no" >&6; } 10556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10557printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10558as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10559is in your PATH or set the PKG_CONFIG environment variable to the full 10560path to pkg-config. 10561 10562Alternatively, you may set the environment variables libcmark_CFLAGS 10563and libcmark_LIBS to avoid the need to call pkg-config. 10564See the pkg-config man page for more details. 10565 10566To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10567See \`config.log' for more details" "$LINENO" 5; } 10568else 10569 libcmark_CFLAGS=$pkg_cv_libcmark_CFLAGS 10570 libcmark_LIBS=$pkg_cv_libcmark_LIBS 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10572printf "%s\n" "yes" >&6; } 10573 cmark_found=yes 10574fi 10575 CMARK_CFLAGS="`$PKG_CONFIG --cflags libcmark`" 10576 CMARK_LIBS="`$PKG_CONFIG --libs libcmark`" 10577 fi 10578 10579 if test x"$cmark_found" != xyes; then 10580 as_fn_error $? "Could not find the cmark library" "$LINENO" 5 10581 fi 10582 10583 10584printf "%s\n" "@%:@define HAVE_CMARK /**/" >>confdefs.h 10585 10586 10587else 10588 CMARK_CFLAGS="" 10589 CMARK_LIBS="" 10590fi 10591 10592 10593 10594 10595if test "x$ac_cv_mingw32" = "xyes"; then 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 10597printf %s "checking for regexec in -lgnurx... " >&6; } 10598if test ${ac_cv_lib_gnurx_regexec+y} 10599then : 10600 printf %s "(cached) " >&6 10601else $as_nop 10602 ac_check_lib_save_LIBS=$LIBS 10603LIBS="-lgnurx $LIBS" 10604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605/* end confdefs.h. */ 10606 10607/* Override any GCC internal prototype to avoid an error. 10608 Use char because int might match the return type of a GCC 10609 builtin and then its argument prototype would still apply. */ 10610char regexec (); 10611int 10612main (void) 10613{ 10614return regexec (); 10615 ; 10616 return 0; 10617} 10618_ACEOF 10619if ac_fn_c_try_link "$LINENO" 10620then : 10621 ac_cv_lib_gnurx_regexec=yes 10622else $as_nop 10623 ac_cv_lib_gnurx_regexec=no 10624fi 10625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10626 conftest$ac_exeext conftest.$ac_ext 10627LIBS=$ac_check_lib_save_LIBS 10628fi 10629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 10630printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; } 10631if test "x$ac_cv_lib_gnurx_regexec" = xyes 10632then : 10633 gnurx_found=yes 10634else $as_nop 10635 gnurx_found=no 10636fi 10637 10638fi 10639 10640if test "x$gnurx_found" = xyes ; then 10641 GNURX_LIBS=-lgnurx 10642fi 10643 10644 10645# =========================================================================== 10646# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html 10647# =========================================================================== 10648# 10649# SYNOPSIS 10650# 10651# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 10652# 10653# DESCRIPTION 10654# 10655# Test for the Boost C++ libraries of a particular version (or newer) 10656# 10657# If no path to the installed boost library is given the macro searchs 10658# under /usr, /usr/local, /opt and /opt/local and evaluates the 10659# $BOOST_ROOT environment variable. Further documentation is available at 10660# <http://randspringer.de/boost/index.html>. 10661# 10662# This macro calls: 10663# 10664# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) 10665# 10666# And sets: 10667# 10668# HAVE_BOOST 10669# 10670# LICENSE 10671# 10672# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> 10673# Copyright (c) 2009 Peter Adolphs 10674# 10675# Copying and distribution of this file, with or without modification, are 10676# permitted in any medium without royalty provided the copyright notice 10677# and this notice are preserved. This file is offered as-is, without any 10678# warranty. 10679 10680#serial 26 10681 10682 10683 10684 10685 10686# boost's headers must be present. 10687 10688 10689@%:@ Check whether --with-boost was given. 10690if test ${with_boost+y} 10691then : 10692 withval=$with_boost; 10693 if test "$withval" = "no"; then 10694 want_boost="no" 10695 elif test "$withval" = "yes"; then 10696 want_boost="yes" 10697 ac_boost_path="" 10698 else 10699 want_boost="yes" 10700 ac_boost_path="$withval" 10701 fi 10702 10703else $as_nop 10704 want_boost="yes" 10705fi 10706 10707 10708 10709 10710@%:@ Check whether --with-boost-libdir was given. 10711if test ${with_boost_libdir+y} 10712then : 10713 withval=$with_boost_libdir; 10714 if test -d "$withval" 10715 then 10716 ac_boost_lib_path="$withval" 10717 else 10718 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5 10719 fi 10720 10721else $as_nop 10722 ac_boost_lib_path="" 10723 10724fi 10725 10726 10727if test "x$want_boost" = "xyes"; then 10728 boost_lib_version_req=1.66.0 10729 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'` 10730 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'` 10731 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'` 10732 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 10733 if test "x$boost_lib_version_req_sub_minor" = "x" ; then 10734 boost_lib_version_req_sub_minor="0" 10735 fi 10736 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5 10738printf %s "checking for boostlib >= $boost_lib_version_req... " >&6; } 10739 succeeded=no 10740 10741 libsubdirs="lib" 10742 ax_arch=`uname -m` 10743 case $ax_arch in 10744 x86_64) 10745 libsubdirs="lib64 libx32 lib lib64" 10746 ;; 10747 ppc64|s390x|sparc64|aarch64|ppc64le) 10748 libsubdirs="lib64 lib lib64 ppc64le" 10749 ;; 10750 esac 10751 10752 10753 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs" 10754 10755 case ${host_cpu} in 10756 i?86) 10757 libsubdirs="lib/i386-${host_os} $libsubdirs" 10758 ;; 10759 esac 10760 10761 if test "$ac_boost_path" != ""; then 10762 BOOST_CPPFLAGS="-I$ac_boost_path/include" 10763 for ac_boost_path_tmp in $libsubdirs; do 10764 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then 10765 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" 10766 break 10767 fi 10768 done 10769 elif test "$cross_compiling" != yes; then 10770 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 10771 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 10772 for libsubdir in $libsubdirs ; do 10773 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 10774 done 10775 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" 10776 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 10777 break; 10778 fi 10779 done 10780 fi 10781 10782 if test "$ac_boost_lib_path" != ""; then 10783 BOOST_LDFLAGS="-L$ac_boost_lib_path" 10784 fi 10785 10786 CPPFLAGS_SAVED="$CPPFLAGS" 10787 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10788 export CPPFLAGS 10789 10790 LDFLAGS_SAVED="$LDFLAGS" 10791 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 10792 export LDFLAGS 10793 10794 10795 ac_ext=cpp 10796ac_cpp='$CXXCPP $CPPFLAGS' 10797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10800 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803 10804 @%:@include <boost/version.hpp> 10805 10806int 10807main (void) 10808{ 10809 10810 #if BOOST_VERSION >= $WANT_BOOST_VERSION 10811 // Everything is okay 10812 #else 10813 # error Boost version is too old 10814 #endif 10815 10816 ; 10817 return 0; 10818} 10819_ACEOF 10820if ac_fn_cxx_try_compile "$LINENO" 10821then : 10822 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10824printf "%s\n" "yes" >&6; } 10825 succeeded=yes 10826 found_system=yes 10827 10828fi 10829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10830 ac_ext=c 10831ac_cpp='$CPP $CPPFLAGS' 10832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10834ac_compiler_gnu=$ac_cv_c_compiler_gnu 10835 10836 10837 10838 10839 if test "x$succeeded" != "xyes"; then 10840 CPPFLAGS="$CPPFLAGS_SAVED" 10841 LDFLAGS="$LDFLAGS_SAVED" 10842 BOOST_CPPFLAGS= 10843 BOOST_LDFLAGS= 10844 _version=0 10845 if test "$ac_boost_path" != ""; then 10846 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 10847 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 10848 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 10849 V_CHECK=`expr $_version_tmp \> $_version` 10850 if test "$V_CHECK" = "1" ; then 10851 _version=$_version_tmp 10852 fi 10853 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 10854 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 10855 done 10856 if test -z "$BOOST_CPPFLAGS"; then 10857 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then 10858 BOOST_CPPFLAGS="-I$ac_boost_path" 10859 fi 10860 fi 10861 fi 10862 else 10863 if test "$cross_compiling" != yes; then 10864 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 10865 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 10866 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 10867 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 10868 V_CHECK=`expr $_version_tmp \> $_version` 10869 if test "$V_CHECK" = "1" ; then 10870 _version=$_version_tmp 10871 best_path=$ac_boost_path 10872 fi 10873 done 10874 fi 10875 done 10876 10877 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 10878 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 10879 if test "$ac_boost_lib_path" = ""; then 10880 for libsubdir in $libsubdirs ; do 10881 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 10882 done 10883 BOOST_LDFLAGS="-L$best_path/$libsubdir" 10884 fi 10885 fi 10886 10887 if test "x$BOOST_ROOT" != "x"; then 10888 for libsubdir in $libsubdirs ; do 10889 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 10890 done 10891 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then 10892 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 10893 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 10894 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` 10895 V_CHECK=`expr $stage_version_shorten \>\= $_version` 10896 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5 10898printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;} 10899 BOOST_CPPFLAGS="-I$BOOST_ROOT" 10900 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" 10901 fi 10902 fi 10903 fi 10904 fi 10905 10906 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10907 export CPPFLAGS 10908 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 10909 export LDFLAGS 10910 10911 ac_ext=cpp 10912ac_cpp='$CXXCPP $CPPFLAGS' 10913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10916 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918/* end confdefs.h. */ 10919 10920 @%:@include <boost/version.hpp> 10921 10922int 10923main (void) 10924{ 10925 10926 #if BOOST_VERSION >= $WANT_BOOST_VERSION 10927 // Everything is okay 10928 #else 10929 # error Boost version is too old 10930 #endif 10931 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936if ac_fn_cxx_try_compile "$LINENO" 10937then : 10938 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10940printf "%s\n" "yes" >&6; } 10941 succeeded=yes 10942 found_system=yes 10943 10944fi 10945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10946 ac_ext=c 10947ac_cpp='$CPP $CPPFLAGS' 10948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10950ac_compiler_gnu=$ac_cv_c_compiler_gnu 10951 10952 fi 10953 10954 if test "$succeeded" != "yes" ; then 10955 if test "$_version" = "0" ; then 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5 10957printf "%s\n" "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;} 10958 else 10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 10960printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;} 10961 fi 10962 # execute ACTION-IF-NOT-FOUND (if present): 10963 : 10964 else 10965 10966 10967 10968printf "%s\n" "@%:@define HAVE_BOOST /**/" >>confdefs.h 10969 10970 # execute ACTION-IF-FOUND (if present): 10971 : 10972 fi 10973 10974 CPPFLAGS="$CPPFLAGS_SAVED" 10975 LDFLAGS="$LDFLAGS_SAVED" 10976fi 10977 10978 10979 10980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's multi-precision library with GMP backend" >&5 10981printf %s "checking for Boost's multi-precision library with GMP backend... " >&6; } 10982 10983saved_CPPFLAGS="$CPPFLAGS" 10984saved_LDFLAGS="$LDFLAGS" 10985saved_LIBS="$LIBS" 10986 10987CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10988export CPPFLAGS 10989LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 10990export LDFLAGS 10991LIBS="$LIBS -lgmp" 10992export LIBS 10993 10994ac_ext=cpp 10995ac_cpp='$CXXCPP $CPPFLAGS' 10996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10999 11000 11001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11002/* end confdefs.h. */ 11003 11004 11005 #include <boost/multiprecision/gmp.hpp> 11006 11007int 11008main (void) 11009{ 11010 11011 boost::multiprecision::mpz_int i{42}; 11012 boost::multiprecision::mpq_rational r{42, 54}; 11013 11014 ; 11015 return 0; 11016} 11017 11018_ACEOF 11019if ac_fn_cxx_try_compile "$LINENO" 11020then : 11021 am_cv_bmp_gmp=yes 11022else $as_nop 11023 am_cv_bmp_gmp=no 11024fi 11025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11026 11027CPPFLAGS="$saved_CPPFLAGS" 11028LDFLAGS="$saved_LDFLAGS" 11029LIBS="$saved_LIBS" 11030 11031if test "x$am_cv_bmp_gmp" != xyes; then 11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: a test program for Boost's multi-precision library with GMP backend could not be linked, probably because the gmp library wasn't found" >&5 11033printf "%s\n" "no: a test program for Boost's multi-precision library with GMP backend could not be linked, probably because the gmp library wasn't found" >&6; } 11034 exit 1 11035fi 11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11037printf "%s\n" "yes" >&6; } 11038 11039 11040 CPPFLAGS_SAVED="$CPPFLAGS" 11041 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 11042 export CPPFLAGS 11043 11044 LDFLAGS_SAVED="$LDFLAGS" 11045 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 11046 export LDFLAGS 11047 11048 ac_ext=cpp 11049ac_cpp='$CXXCPP $CPPFLAGS' 11050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11053 11054 for ac_header in boost/operators.hpp 11055do : 11056 ac_fn_cxx_check_header_compile "$LINENO" "boost/operators.hpp" "ac_cv_header_boost_operators_hpp" "$ac_includes_default" 11057if test "x$ac_cv_header_boost_operators_hpp" = xyes 11058then : 11059 printf "%s\n" "@%:@define HAVE_BOOST_OPERATORS_HPP 1" >>confdefs.h 11060 11061else $as_nop 11062 11063 as_fn_error $? "Boost's Operators library is required but wasn't found" "$LINENO" 5 11064 11065fi 11066 11067done 11068 ac_ext=cpp 11069ac_cpp='$CXXCPP $CPPFLAGS' 11070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11073 11074 11075 CPPFLAGS="$CPPFLAGS_SAVED" 11076 LDFLAGS="$LDFLAGS_SAVED" 11077 11078 11079 11080 11081 11082 GTEST_TYPE=system 11083 11084 CPPFLAGS_SAVED="$CPPFLAGS" 11085 ac_ext=cpp 11086ac_cpp='$CXXCPP $CPPFLAGS' 11087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11090 11091 11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest_main" >&5 11093printf %s "checking for main in -lgtest_main... " >&6; } 11094if test ${ac_cv_lib_gtest_main_main+y} 11095then : 11096 printf %s "(cached) " >&6 11097else $as_nop 11098 ac_check_lib_save_LIBS=$LIBS 11099LIBS="-lgtest_main -lpthread $LIBS" 11100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102 11103namespace conftest { 11104 extern "C" int main (); 11105} 11106int 11107main (void) 11108{ 11109return conftest::main (); 11110 ; 11111 return 0; 11112} 11113_ACEOF 11114if ac_fn_cxx_try_link "$LINENO" 11115then : 11116 ac_cv_lib_gtest_main_main=yes 11117else $as_nop 11118 ac_cv_lib_gtest_main_main=no 11119fi 11120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11121 conftest$ac_exeext conftest.$ac_ext 11122LIBS=$ac_check_lib_save_LIBS 11123fi 11124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main_main" >&5 11125printf "%s\n" "$ac_cv_lib_gtest_main_main" >&6; } 11126if test "x$ac_cv_lib_gtest_main_main" = xyes 11127then : 11128 true 11129else $as_nop 11130 GTEST_TYPE=no 11131fi 11132 11133 for ac_header in gtest/gtest.h 11134do : 11135 ac_fn_cxx_check_header_compile "$LINENO" "gtest/gtest.h" "ac_cv_header_gtest_gtest_h" "$ac_includes_default" 11136if test "x$ac_cv_header_gtest_gtest_h" = xyes 11137then : 11138 printf "%s\n" "@%:@define HAVE_GTEST_GTEST_H 1" >>confdefs.h 11139 true 11140else $as_nop 11141 GTEST_TYPE=no 11142fi 11143 11144done 11145 11146 if test $GTEST_TYPE = no && test -d lib/gtest/include && test -d lib/gtest/src ; then 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal gtest" >&5 11148printf %s "checking for internal gtest... " >&6; } 11149 if test ${ax_cv_gtest_internal+y} 11150then : 11151 printf %s "(cached) " >&6 11152else $as_nop 11153 11154 CPPFLAGS="$CPPFLAGS_SAVED -Ilib/gtest/include" 11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157#include <gtest/gtest.h> 11158int 11159main (void) 11160{ 11161 11162 ; 11163 return 0; 11164} 11165_ACEOF 11166if ac_fn_cxx_try_compile "$LINENO" 11167then : 11168 ax_cv_gtest_internal=yes 11169else $as_nop 11170 ax_cv_gtest_internal=no 11171fi 11172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11173 11174fi 11175 11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gtest_internal" >&5 11177printf "%s\n" "$ax_cv_gtest_internal" >&6; } 11178 11179 if test x$ax_cv_gtest_internal=yes; then 11180 GTEST_TYPE=internal 11181 fi 11182 fi 11183 11184 ac_ext=cpp 11185ac_cpp='$CXXCPP $CPPFLAGS' 11186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11189 11190 CPPFLAGS="$CPPFLAGS_SAVED" 11191 11192 11193 11194# Extract the first word of "valgrind", so it can be a program name with args. 11195set dummy valgrind; ac_word=$2 11196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11197printf %s "checking for $ac_word... " >&6; } 11198if test ${ac_cv_path_VALGRIND+y} 11199then : 11200 printf %s "(cached) " >&6 11201else $as_nop 11202 case $VALGRIND in 11203 [\\/]* | ?:[\\/]*) 11204 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. 11205 ;; 11206 *) 11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11208for as_dir in $PATH 11209do 11210 IFS=$as_save_IFS 11211 case $as_dir in #((( 11212 '') as_dir=./ ;; 11213 */) ;; 11214 *) as_dir=$as_dir/ ;; 11215 esac 11216 for ac_exec_ext in '' $ac_executable_extensions; do 11217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11218 ac_cv_path_VALGRIND="$as_dir$ac_word$ac_exec_ext" 11219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11220 break 2 11221 fi 11222done 11223 done 11224IFS=$as_save_IFS 11225 11226 ;; 11227esac 11228fi 11229VALGRIND=$ac_cv_path_VALGRIND 11230if test -n "$VALGRIND"; then 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 11232printf "%s\n" "$VALGRIND" >&6; } 11233else 11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11235printf "%s\n" "no" >&6; } 11236fi 11237 11238 11239 11240 11241 11242 11243 GOOGLE_BENCHMARK=yes 11244 11245 CPPFLAGS_SAVED="$CPPFLAGS" 11246 ac_ext=cpp 11247ac_cpp='$CXXCPP $CPPFLAGS' 11248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11251 11252 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lbenchmark" >&5 11254printf %s "checking for main in -lbenchmark... " >&6; } 11255if test ${ac_cv_lib_benchmark_main+y} 11256then : 11257 printf %s "(cached) " >&6 11258else $as_nop 11259 ac_check_lib_save_LIBS=$LIBS 11260LIBS="-lbenchmark $LIBS" 11261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11262/* end confdefs.h. */ 11263 11264namespace conftest { 11265 extern "C" int main (); 11266} 11267int 11268main (void) 11269{ 11270return conftest::main (); 11271 ; 11272 return 0; 11273} 11274_ACEOF 11275if ac_fn_cxx_try_link "$LINENO" 11276then : 11277 ac_cv_lib_benchmark_main=yes 11278else $as_nop 11279 ac_cv_lib_benchmark_main=no 11280fi 11281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11282 conftest$ac_exeext conftest.$ac_ext 11283LIBS=$ac_check_lib_save_LIBS 11284fi 11285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_benchmark_main" >&5 11286printf "%s\n" "$ac_cv_lib_benchmark_main" >&6; } 11287if test "x$ac_cv_lib_benchmark_main" = xyes 11288then : 11289 true 11290else $as_nop 11291 GOOGLE_BENCHMARK=no 11292fi 11293 11294 for ac_header in benchmark/benchmark.h 11295do : 11296 ac_fn_cxx_check_header_compile "$LINENO" "benchmark/benchmark.h" "ac_cv_header_benchmark_benchmark_h" "$ac_includes_default" 11297if test "x$ac_cv_header_benchmark_benchmark_h" = xyes 11298then : 11299 printf "%s\n" "@%:@define HAVE_BENCHMARK_BENCHMARK_H 1" >>confdefs.h 11300 true 11301else $as_nop 11302 GOOGLE_BENCHMARK=no 11303fi 11304 11305done 11306 11307 ac_ext=cpp 11308ac_cpp='$CXXCPP $CPPFLAGS' 11309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11312 11313 CPPFLAGS="$CPPFLAGS_SAVED" 11314 11315 11316 11317 11318# Extract the first word of ""pandoc"", so it can be a program name with args. 11319set dummy "pandoc"; ac_word=$2 11320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11321printf %s "checking for $ac_word... " >&6; } 11322if test ${ac_cv_path_PANDOC+y} 11323then : 11324 printf %s "(cached) " >&6 11325else $as_nop 11326 case $PANDOC in 11327 [\\/]* | ?:[\\/]*) 11328 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 11329 ;; 11330 *) 11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11332for as_dir in $PATH 11333do 11334 IFS=$as_save_IFS 11335 case $as_dir in #((( 11336 '') as_dir=./ ;; 11337 */) ;; 11338 *) as_dir=$as_dir/ ;; 11339 esac 11340 for ac_exec_ext in '' $ac_executable_extensions; do 11341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11342 ac_cv_path_PANDOC="$as_dir$ac_word$ac_exec_ext" 11343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11344 break 2 11345 fi 11346done 11347 done 11348IFS=$as_save_IFS 11349 11350 ;; 11351esac 11352fi 11353PANDOC=$ac_cv_path_PANDOC 11354if test -n "$PANDOC"; then 11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 11356printf "%s\n" "$PANDOC" >&6; } 11357else 11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11359printf "%s\n" "no" >&6; } 11360fi 11361 11362 11363 11364 11365 11366@%:@ Check whether --with-docbook_xsl_root was given. 11367if test ${with_docbook_xsl_root+y} 11368then : 11369 withval=$with_docbook_xsl_root; DOCBOOK_ROOT="$with_docbook_xsl_root" 11370fi 11371 11372 11373if ! test -z "$DOCBOOK_ROOT"; then 11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL root directory" >&5 11375printf %s "checking for DocBook XSL root directory... " >&6; } 11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $DOCBOOK_ROOT" >&5 11377printf "%s\n" "using supplied $DOCBOOK_ROOT" >&6; } 11378 11379else 11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL root directory" >&5 11381printf %s "checking for DocBook XSL root directory... " >&6; } 11382 for i in `ls -d /usr/share/xml/docbook/xsl-stylesheets*-nons 2> /dev/null` \ 11383 /usr/share/xml/docbook/stylesheet/xsl/nwalsh \ 11384 /usr/share/xml/docbook/stylesheet/nwalsh \ 11385 `ls -d /usr/share/sgml/docbook/xsl-stylesheets* /usr/share/xml/docbook/xsl-stylesheets* 2> /dev/null` \ 11386 ; do 11387 if test -f "$i/manpages/docbook.xsl"; then 11388 DOCBOOK_ROOT="$i" 11389 break 11390 elif test -f "$i/current/manpages/docbook.xsl"; then 11391 DOCBOOK_ROOT="$i/current" 11392 break 11393 fi 11394 done 11395 11396 if test -z "$DOCBOOK_ROOT"; then 11397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11398printf "%s\n" "not found" >&6; } 11399 as_fn_error $? "DocBook XSL stylesheets are required for building." "$LINENO" 5 11400 else 11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_ROOT" >&5 11402printf "%s\n" "$DOCBOOK_ROOT" >&6; } 11403 fi 11404fi 11405 11406# It's just rude to go over the net to build 11407XSLTPROC_FLAGS="--nonet --maxdepth 10000" 11408 11409 11410@%:@ Check whether --with-xsltproc was given. 11411if test ${with_xsltproc+y} 11412then : 11413 withval=$with_xsltproc; XSLTPROC="$with_xsltproc" 11414fi 11415 11416 11417if ! test -z "$XSLTPROC"; then 11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xsltproc" >&5 11419printf %s "checking for xsltproc... " >&6; } 11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $XSLTPROC" >&5 11421printf "%s\n" "using supplied $XSLTPROC" >&6; } 11422else 11423 # Extract the first word of "xsltproc", so it can be a program name with args. 11424set dummy xsltproc; ac_word=$2 11425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11426printf %s "checking for $ac_word... " >&6; } 11427if test ${ac_cv_path_XSLTPROC+y} 11428then : 11429 printf %s "(cached) " >&6 11430else $as_nop 11431 case $XSLTPROC in 11432 [\\/]* | ?:[\\/]*) 11433 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11434 ;; 11435 *) 11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11437for as_dir in $PATH 11438do 11439 IFS=$as_save_IFS 11440 case $as_dir in #((( 11441 '') as_dir=./ ;; 11442 */) ;; 11443 *) as_dir=$as_dir/ ;; 11444 esac 11445 for ac_exec_ext in '' $ac_executable_extensions; do 11446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11447 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11449 break 2 11450 fi 11451done 11452 done 11453IFS=$as_save_IFS 11454 11455 ;; 11456esac 11457fi 11458XSLTPROC=$ac_cv_path_XSLTPROC 11459if test -n "$XSLTPROC"; then 11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11461printf "%s\n" "$XSLTPROC" >&6; } 11462else 11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11464printf "%s\n" "no" >&6; } 11465fi 11466 11467 11468fi 11469 11470if test -z "$XSLTPROC" -o ! -x "$XSLTPROC"; then 11471 as_fn_error $? "xsltproc wasn't found" "$LINENO" 5 11472fi 11473 11474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether xsltproc works" >&5 11475printf %s "checking whether xsltproc works... " >&6; } 11476if test ${ac_cv_xsltproc_works+y} 11477then : 11478 printf %s "(cached) " >&6 11479else $as_nop 11480 11481 ac_cv_xsltproc_works=no 11482 "$XSLTPROC" $XSLTPROC_FLAGS "$DOCBOOK_ROOT/manpages/docbook.xsl" >/dev/null 2>/dev/null << END 11483<?xml version="1.0" encoding='ISO-8859-1'?> 11484<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> 11485<book id="test"> 11486</book> 11487END 11488 if test "$?" = 0; then 11489 ac_cv_xsltproc_works=yes 11490 fi 11491 11492fi 11493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xsltproc_works" >&5 11494printf "%s\n" "$ac_cv_xsltproc_works" >&6; } 11495 11496if test x"$ac_cv_xsltproc_works" != xyes; then 11497 as_fn_error $? "xsltproc doesn't work with DocBook's $DOCBOOK_ROOT/manpages/docbook.xsl" "$LINENO" 5 11498fi 11499 11500 11501 11502 11503 11504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5 11505printf %s "checking POSIX termios... " >&6; } 11506if test ${ac_cv_sys_posix_termios+y} 11507then : 11508 printf %s "(cached) " >&6 11509else $as_nop 11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512#include <sys/types.h> 11513#include <unistd.h> 11514#include <termios.h> 11515 11516int 11517main (void) 11518{ 11519/* SunOS 4.0.3 has termios.h but not the library calls. */ 11520 tcgetattr(0, 0); 11521 ; 11522 return 0; 11523} 11524_ACEOF 11525if ac_fn_cxx_try_link "$LINENO" 11526then : 11527 ac_cv_sys_posix_termios=yes 11528else $as_nop 11529 ac_cv_sys_posix_termios=no 11530fi 11531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11532 conftest$ac_exeext conftest.$ac_ext 11533fi 11534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5 11535printf "%s\n" "$ac_cv_sys_posix_termios" >&6; } 11536 11537 11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 11539printf %s "checking whether termios.h defines TIOCGWINSZ... " >&6; } 11540if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y} 11541then : 11542 printf %s "(cached) " >&6 11543else $as_nop 11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546#include <sys/types.h> 11547#include <termios.h> 11548#ifdef TIOCGWINSZ 11549 yes 11550#endif 11551 11552_ACEOF 11553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11554 $EGREP "yes" >/dev/null 2>&1 11555then : 11556 ac_cv_sys_tiocgwinsz_in_termios_h=yes 11557else $as_nop 11558 ac_cv_sys_tiocgwinsz_in_termios_h=no 11559fi 11560rm -rf conftest* 11561 11562fi 11563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 11564printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 11565 11566if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 11567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 11568printf %s "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 11569if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y} 11570then : 11571 printf %s "(cached) " >&6 11572else $as_nop 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575#include <sys/types.h> 11576#include <sys/ioctl.h> 11577#ifdef TIOCGWINSZ 11578 yes 11579#endif 11580 11581_ACEOF 11582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11583 $EGREP "yes" >/dev/null 2>&1 11584then : 11585 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 11586else $as_nop 11587 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 11588fi 11589rm -rf conftest* 11590 11591fi 11592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 11593printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 11594 11595 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 11596 11597printf "%s\n" "@%:@define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 11598 11599 fi 11600fi 11601 11602ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 11603if test "x$ac_cv_header_sys_ioctl_h" = xyes 11604then : 11605 printf "%s\n" "@%:@define HAVE_SYS_IOCTL_H 1" >>confdefs.h 11606 11607fi 11608 11609 11610if test x"$ac_cv_sys_posix_termios" = "xyes" ; then 11611 11612printf "%s\n" "@%:@define HAVE_TIOCGWINSZ 1" >>confdefs.h 11613 11614fi 11615 11616 11617 11618@%:@ Check whether --with-dvdread was given. 11619if test ${with_dvdread+y} 11620then : 11621 withval=$with_dvdread; with_dvdread=${withval} 11622else $as_nop 11623 with_dvdread=yes 11624fi 11625 11626if test "x$with_dvdread" != "xno"; then 11627 if test -n "$PKG_CONFIG" && \ 11628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dvdread\""; } >&5 11629 ($PKG_CONFIG --exists --print-errors "dvdread") 2>&5 11630 ac_status=$? 11631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11632 test $ac_status = 0; }; then 11633 dvdread_found=yes 11634else 11635 dvdread_found=no 11636fi 11637 if test x"$dvdread_found" = xyes; then 11638 11639pkg_failed=no 11640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dvdread" >&5 11641printf %s "checking for dvdread... " >&6; } 11642 11643if test -n "$dvdread_CFLAGS"; then 11644 pkg_cv_dvdread_CFLAGS="$dvdread_CFLAGS" 11645 elif test -n "$PKG_CONFIG"; then 11646 if test -n "$PKG_CONFIG" && \ 11647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dvdread\""; } >&5 11648 ($PKG_CONFIG --exists --print-errors "dvdread") 2>&5 11649 ac_status=$? 11650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11651 test $ac_status = 0; }; then 11652 pkg_cv_dvdread_CFLAGS=`$PKG_CONFIG --cflags "dvdread" 2>/dev/null` 11653 test "x$?" != "x0" && pkg_failed=yes 11654else 11655 pkg_failed=yes 11656fi 11657 else 11658 pkg_failed=untried 11659fi 11660if test -n "$dvdread_LIBS"; then 11661 pkg_cv_dvdread_LIBS="$dvdread_LIBS" 11662 elif test -n "$PKG_CONFIG"; then 11663 if test -n "$PKG_CONFIG" && \ 11664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dvdread\""; } >&5 11665 ($PKG_CONFIG --exists --print-errors "dvdread") 2>&5 11666 ac_status=$? 11667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11668 test $ac_status = 0; }; then 11669 pkg_cv_dvdread_LIBS=`$PKG_CONFIG --libs "dvdread" 2>/dev/null` 11670 test "x$?" != "x0" && pkg_failed=yes 11671else 11672 pkg_failed=yes 11673fi 11674 else 11675 pkg_failed=untried 11676fi 11677 11678 11679 11680if test $pkg_failed = yes; then 11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11682printf "%s\n" "no" >&6; } 11683 11684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11685 _pkg_short_errors_supported=yes 11686else 11687 _pkg_short_errors_supported=no 11688fi 11689 if test $_pkg_short_errors_supported = yes; then 11690 dvdread_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dvdread" 2>&1` 11691 else 11692 dvdread_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dvdread" 2>&1` 11693 fi 11694 # Put the nasty error message in config.log where it belongs 11695 echo "$dvdread_PKG_ERRORS" >&5 11696 11697 as_fn_error $? "Package requirements (dvdread) were not met: 11698 11699$dvdread_PKG_ERRORS 11700 11701Consider adjusting the PKG_CONFIG_PATH environment variable if you 11702installed software in a non-standard prefix. 11703 11704Alternatively, you may set the environment variables dvdread_CFLAGS 11705and dvdread_LIBS to avoid the need to call pkg-config. 11706See the pkg-config man page for more details." "$LINENO" 5 11707elif test $pkg_failed = untried; then 11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709printf "%s\n" "no" >&6; } 11710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11711printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11712as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11713is in your PATH or set the PKG_CONFIG environment variable to the full 11714path to pkg-config. 11715 11716Alternatively, you may set the environment variables dvdread_CFLAGS 11717and dvdread_LIBS to avoid the need to call pkg-config. 11718See the pkg-config man page for more details. 11719 11720To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11721See \`config.log' for more details" "$LINENO" 5; } 11722else 11723 dvdread_CFLAGS=$pkg_cv_dvdread_CFLAGS 11724 dvdread_LIBS=$pkg_cv_dvdread_LIBS 11725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11726printf "%s\n" "yes" >&6; } 11727 dvdread_found=yes 11728fi 11729 DVDREAD_CFLAGS="`$PKG_CONFIG --cflags dvdread`" 11730 DVDREAD_LIBS="`$PKG_CONFIG --libs dvdread`" 11731 fi 11732fi 11733 11734if test x"$dvdread_found" = xyes; then 11735 11736printf "%s\n" "@%:@define HAVE_DVDREAD /**/" >>confdefs.h 11737 11738 USE_DVDREAD=yes 11739 opt_features_yes="$opt_features_yes\n * DVD chapter support via libdvdread" 11740else 11741 opt_features_no="$opt_features_no\n * DVD chapter support via libdvdread" 11742fi 11743 11744 11745 11746 11747 11748TRANSLATE_PERCENT=0 11749PO4A_FLAGS="-M utf-8 -k $TRANSLATE_PERCENT" 11750PO4A_TRANSLATE_FLAGS="$PO4A_FLAGS -f docbook" 11751 11752 11753@%:@ Check whether --with-po4a was given. 11754if test ${with_po4a+y} 11755then : 11756 withval=$with_po4a; PO4A="$with_po4a" 11757fi 11758 11759 11760if ! test -z "$PO4A"; then 11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for po4a" >&5 11762printf %s "checking for po4a... " >&6; } 11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $PO4A" >&5 11764printf "%s\n" "using supplied $PO4A" >&6; } 11765else 11766 # Extract the first word of "po4a", so it can be a program name with args. 11767set dummy po4a; ac_word=$2 11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11769printf %s "checking for $ac_word... " >&6; } 11770if test ${ac_cv_path_PO4A+y} 11771then : 11772 printf %s "(cached) " >&6 11773else $as_nop 11774 case $PO4A in 11775 [\\/]* | ?:[\\/]*) 11776 ac_cv_path_PO4A="$PO4A" # Let the user override the test with a path. 11777 ;; 11778 *) 11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11780for as_dir in $PATH 11781do 11782 IFS=$as_save_IFS 11783 case $as_dir in #((( 11784 '') as_dir=./ ;; 11785 */) ;; 11786 *) as_dir=$as_dir/ ;; 11787 esac 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11790 ac_cv_path_PO4A="$as_dir$ac_word$ac_exec_ext" 11791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11792 break 2 11793 fi 11794done 11795 done 11796IFS=$as_save_IFS 11797 11798 ;; 11799esac 11800fi 11801PO4A=$ac_cv_path_PO4A 11802if test -n "$PO4A"; then 11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5 11804printf "%s\n" "$PO4A" >&6; } 11805else 11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11807printf "%s\n" "no" >&6; } 11808fi 11809 11810 11811fi 11812 11813 11814@%:@ Check whether --with-po4a_translate was given. 11815if test ${with_po4a_translate+y} 11816then : 11817 withval=$with_po4a_translate; PO4A_TRANSLATE="$with_po4a_translate" 11818fi 11819 11820 11821if ! test -z "$PO4A_TRANSLATE"; then 11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for po4a-translate" >&5 11823printf %s "checking for po4a-translate... " >&6; } 11824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using supplied $PO4A_TRANSLATE" >&5 11825printf "%s\n" "using supplied $PO4A_TRANSLATE" >&6; } 11826else 11827 # Extract the first word of "po4a-translate", so it can be a program name with args. 11828set dummy po4a-translate; ac_word=$2 11829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11830printf %s "checking for $ac_word... " >&6; } 11831if test ${ac_cv_path_PO4A_TRANSLATE+y} 11832then : 11833 printf %s "(cached) " >&6 11834else $as_nop 11835 case $PO4A_TRANSLATE in 11836 [\\/]* | ?:[\\/]*) 11837 ac_cv_path_PO4A_TRANSLATE="$PO4A_TRANSLATE" # Let the user override the test with a path. 11838 ;; 11839 *) 11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11841for as_dir in $PATH 11842do 11843 IFS=$as_save_IFS 11844 case $as_dir in #((( 11845 '') as_dir=./ ;; 11846 */) ;; 11847 *) as_dir=$as_dir/ ;; 11848 esac 11849 for ac_exec_ext in '' $ac_executable_extensions; do 11850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11851 ac_cv_path_PO4A_TRANSLATE="$as_dir$ac_word$ac_exec_ext" 11852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11853 break 2 11854 fi 11855done 11856 done 11857IFS=$as_save_IFS 11858 11859 ;; 11860esac 11861fi 11862PO4A_TRANSLATE=$ac_cv_path_PO4A_TRANSLATE 11863if test -n "$PO4A_TRANSLATE"; then 11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PO4A_TRANSLATE" >&5 11865printf "%s\n" "$PO4A_TRANSLATE" >&6; } 11866else 11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11868printf "%s\n" "no" >&6; } 11869fi 11870 11871 11872fi 11873 11874if test "$PO4A" != "" -a "$PO4A_TRANSLATE" != ""; then 11875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether po4a-translate works" >&5 11876printf %s "checking whether po4a-translate works... " >&6; } 11877if test ${ac_cv_po4a_works+y} 11878then : 11879 printf %s "(cached) " >&6 11880else $as_nop 11881 11882 ac_cv_po4a_works=no 11883 $PO4A_TRANSLATE $PO4A_TRANSLATE_FLAGS -m $srcdir/doc/man/mkvmerge.xml -p $srcdir/doc/man/po4a/po/ja.po -l /dev/null > /dev/null 2> /dev/null 11884 if test "$?" = 0; then 11885 ac_cv_po4a_works=yes 11886 fi 11887 11888fi 11889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_po4a_works" >&5 11890printf "%s\n" "$ac_cv_po4a_works" >&6; } 11891 PO4A_WORKS=$ac_cv_po4a_works 11892fi 11893 11894if test x"$PO4A_WORKS" = "xyes" ; then 11895 opt_features_yes="$opt_features_yes\n * man page translations (po4a)" 11896else 11897 opt_features_no="$opt_features_no\n * man page translations (po4a)" 11898fi 11899 11900 11901 11902 11903 11904 11905 11906 11907@%:@ Check whether --with-gettext was given. 11908if test ${with_gettext+y} 11909then : 11910 withval=$with_gettext; with_gettext=${withval} 11911else $as_nop 11912 with_gettext=yes 11913fi 11914 11915if test "x$with_gettext" != "xno"; then 11916 11917 for ac_func in gettext 11918do : 11919 ac_fn_cxx_check_func "$LINENO" "gettext" "ac_cv_func_gettext" 11920if test "x$ac_cv_func_gettext" = xyes 11921then : 11922 printf "%s\n" "@%:@define HAVE_GETTEXT 1" >>confdefs.h 11923 gettext_found=yes 11924else $as_nop 11925 gettext_found=no 11926fi 11927 11928done 11929 if test x"$gettext_found" != xyes ; then 11930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 11931printf %s "checking for gettext in -lintl... " >&6; } 11932if test ${ac_cv_lib_intl_gettext+y} 11933then : 11934 printf %s "(cached) " >&6 11935else $as_nop 11936 ac_check_lib_save_LIBS=$LIBS 11937LIBS="-lintl -liconv $LIBS" 11938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940 11941namespace conftest { 11942 extern "C" int gettext (); 11943} 11944int 11945main (void) 11946{ 11947return conftest::gettext (); 11948 ; 11949 return 0; 11950} 11951_ACEOF 11952if ac_fn_cxx_try_link "$LINENO" 11953then : 11954 ac_cv_lib_intl_gettext=yes 11955else $as_nop 11956 ac_cv_lib_intl_gettext=no 11957fi 11958rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11959 conftest$ac_exeext conftest.$ac_ext 11960LIBS=$ac_check_lib_save_LIBS 11961fi 11962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 11963printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; } 11964if test "x$ac_cv_lib_intl_gettext" = xyes 11965then : 11966 LIBINTL_LIBS="-lintl"; 11967 gettext_found=yes 11968else $as_nop 11969 gettext_found=no 11970fi 11971 11972 fi 11973 11974 # Extract the first word of "msgfmt", so it can be a program name with args. 11975set dummy msgfmt; ac_word=$2 11976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11977printf %s "checking for $ac_word... " >&6; } 11978if test ${ac_cv_path_MSGFMT+y} 11979then : 11980 printf %s "(cached) " >&6 11981else $as_nop 11982 case $MSGFMT in 11983 [\\/]* | ?:[\\/]*) 11984 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11985 ;; 11986 *) 11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11988for as_dir in $PATH 11989do 11990 IFS=$as_save_IFS 11991 case $as_dir in #((( 11992 '') as_dir=./ ;; 11993 */) ;; 11994 *) as_dir=$as_dir/ ;; 11995 esac 11996 for ac_exec_ext in '' $ac_executable_extensions; do 11997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11998 ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext" 11999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12000 break 2 12001 fi 12002done 12003 done 12004IFS=$as_save_IFS 12005 12006 ;; 12007esac 12008fi 12009MSGFMT=$ac_cv_path_MSGFMT 12010if test -n "$MSGFMT"; then 12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12012printf "%s\n" "$MSGFMT" >&6; } 12013else 12014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12015printf "%s\n" "no" >&6; } 12016fi 12017 12018 12019 if test -z "$MSGFMT"; then 12020 gettext_found=no 12021 fi 12022fi 12023 12024if test x"$gettext_found" = xyes ; then 12025 for ac_header in libintl.h 12026do : 12027 ac_fn_cxx_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 12028if test "x$ac_cv_header_libintl_h" = xyes 12029then : 12030 printf "%s\n" "@%:@define HAVE_LIBINTL_H 1" >>confdefs.h 12031 libintl_h_found=yes 12032else $as_nop 12033 libintl_h_found=no 12034fi 12035 12036done 12037 if test x"$libintl_h_found" = xyes ; then 12038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the translations to install" >&5 12039printf %s "checking the translations to install... " >&6; } 12040 if test x"$LINGUAS" = x ; then 12041 TRANSLATIONS_POS="`echo po/*.po`" 12042 else 12043 for i in $LINGUAS; do 12044 if test -f "po/$i.po" ; then 12045 TRANSLATIONS_POS="$TRANSLATIONS_POS po/$i.po" 12046 fi 12047 done 12048 fi 12049 TRANSLATIONS="`echo "$TRANSLATIONS_POS" | \ 12050 sed -e 's/po\///g' -e 's/\.po//g'`" 12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRANSLATIONS" >&5 12052printf "%s\n" "$TRANSLATIONS" >&6; } 12053 fi 12054 opt_features_yes="$opt_features_yes\n * translations (gettext)" 12055else 12056 opt_features_no="$opt_features_no\n * translations (gettext)" 12057fi 12058 12059 12060 12061 12062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the manpage translation languages to install" >&5 12063printf %s "checking the manpage translation languages to install... " >&6; } 12064MANPAGES_TRANSLATIONS="" 12065if test x"$LINGUAS" = x ; then 12066 for file in $srcdir/doc/man/po4a/po/*.po; do 12067 MANPAGES_TRANSLATIONS="$MANPAGES_TRANSLATIONS`basename $file .po` " 12068 done 12069else 12070 for i in $LINGUAS; do 12071 if test -f "$srcdir/doc/man/po4a/po/$i.po"; then 12072 MANPAGES_TRANSLATIONS="$MANPAGES_TRANSLATIONS$i " 12073 fi 12074 done 12075fi 12076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANPAGES_TRANSLATIONS" >&5 12077printf "%s\n" "$MANPAGES_TRANSLATIONS" >&6; } 12078 12079 12080 12081 12082ac_config_files="$ac_config_files build-config" 12083 12084cat >confcache <<\_ACEOF 12085# This file is a shell script that caches the results of configure 12086# tests run on this system so they can be shared between configure 12087# scripts and configure runs, see configure's option --config-cache. 12088# It is not useful on other systems. If it contains results you don't 12089# want to keep, you may remove or edit it. 12090# 12091# config.status only pays attention to the cache file if you give it 12092# the --recheck option to rerun configure. 12093# 12094# `ac_cv_env_foo' variables (set or unset) will be overridden when 12095# loading this file, other *unset* `ac_cv_foo' will be assigned the 12096# following values. 12097 12098_ACEOF 12099 12100# The following way of writing the cache mishandles newlines in values, 12101# but we know of no workaround that is simple, portable, and efficient. 12102# So, we kill variables containing newlines. 12103# Ultrix sh set writes to stderr and can't be redirected directly, 12104# and sets the high bit in the cache file unless we assign to the vars. 12105( 12106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12107 eval ac_val=\$$ac_var 12108 case $ac_val in #( 12109 *${as_nl}*) 12110 case $ac_var in #( 12111 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12112printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12113 esac 12114 case $ac_var in #( 12115 _ | IFS | as_nl) ;; #( 12116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12117 *) { eval $ac_var=; unset $ac_var;} ;; 12118 esac ;; 12119 esac 12120 done 12121 12122 (set) 2>&1 | 12123 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12124 *${as_nl}ac_space=\ *) 12125 # `set' does not quote correctly, so add quotes: double-quote 12126 # substitution turns \\\\ into \\, and sed turns \\ into \. 12127 sed -n \ 12128 "s/'/'\\\\''/g; 12129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12130 ;; #( 12131 *) 12132 # `set' quotes correctly as required by POSIX, so do not add quotes. 12133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12134 ;; 12135 esac | 12136 sort 12137) | 12138 sed ' 12139 /^ac_cv_env_/b end 12140 t clear 12141 :clear 12142 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12143 t end 12144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12145 :end' >>confcache 12146if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12147 if test -w "$cache_file"; then 12148 if test "x$cache_file" != "x/dev/null"; then 12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12150printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12151 if test ! -f "$cache_file" || test -h "$cache_file"; then 12152 cat confcache >"$cache_file" 12153 else 12154 case $cache_file in #( 12155 */* | ?:*) 12156 mv -f confcache "$cache_file"$$ && 12157 mv -f "$cache_file"$$ "$cache_file" ;; #( 12158 *) 12159 mv -f confcache "$cache_file" ;; 12160 esac 12161 fi 12162 fi 12163 else 12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12165printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12166 fi 12167fi 12168rm -f confcache 12169 12170test "x$prefix" = xNONE && prefix=$ac_default_prefix 12171# Let make expand exec_prefix. 12172test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12173 12174DEFS=-DHAVE_CONFIG_H 12175 12176ac_libobjs= 12177ac_ltlibobjs= 12178U= 12179for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 12180 # 1. Remove the extension, and $U if already installed. 12181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12182 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12184 # will be set to the directory where LIBOBJS objects are built. 12185 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12186 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12187done 12188LIB@&t@OBJS=$ac_libobjs 12189 12190LTLIBOBJS=$ac_ltlibobjs 12191 12192 12193 12194: "${CONFIG_STATUS=./config.status}" 12195ac_write_fail=0 12196ac_clean_files_save=$ac_clean_files 12197ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12199printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12200as_write_fail=0 12201cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12202#! $SHELL 12203# Generated by $as_me. 12204# Run this file to recreate the current configuration. 12205# Compiler output produced by configure, useful for debugging 12206# configure, is in config.log if it exists. 12207 12208debug=false 12209ac_cs_recheck=false 12210ac_cs_silent=false 12211 12212SHELL=\${CONFIG_SHELL-$SHELL} 12213export SHELL 12214_ASEOF 12215cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12216## -------------------- ## 12217## M4sh Initialization. ## 12218## -------------------- ## 12219 12220# Be more Bourne compatible 12221DUALCASE=1; export DUALCASE # for MKS sh 12222as_nop=: 12223if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12224then : 12225 emulate sh 12226 NULLCMD=: 12227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12228 # is contrary to our usage. Disable this feature. 12229 alias -g '${1+"$@"}'='"$@"' 12230 setopt NO_GLOB_SUBST 12231else $as_nop 12232 case `(set -o) 2>/dev/null` in @%:@( 12233 *posix*) : 12234 set -o posix ;; @%:@( 12235 *) : 12236 ;; 12237esac 12238fi 12239 12240 12241 12242# Reset variables that may have inherited troublesome values from 12243# the environment. 12244 12245# IFS needs to be set, to space, tab, and newline, in precisely that order. 12246# (If _AS_PATH_WALK were called with IFS unset, it would have the 12247# side effect of setting IFS to empty, thus disabling word splitting.) 12248# Quoting is to prevent editors from complaining about space-tab. 12249as_nl=' 12250' 12251export as_nl 12252IFS=" "" $as_nl" 12253 12254PS1='$ ' 12255PS2='> ' 12256PS4='+ ' 12257 12258# Ensure predictable behavior from utilities with locale-dependent output. 12259LC_ALL=C 12260export LC_ALL 12261LANGUAGE=C 12262export LANGUAGE 12263 12264# We cannot yet rely on "unset" to work, but we need these variables 12265# to be unset--not just set to an empty or harmless value--now, to 12266# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12267# also avoids known problems related to "unset" and subshell syntax 12268# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12269for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12270do eval test \${$as_var+y} \ 12271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12272done 12273 12274# Ensure that fds 0, 1, and 2 are open. 12275if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12276if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12277if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12278 12279# The user is always right. 12280if ${PATH_SEPARATOR+false} :; then 12281 PATH_SEPARATOR=: 12282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12284 PATH_SEPARATOR=';' 12285 } 12286fi 12287 12288 12289# Find who we are. Look in the path if we contain no directory separator. 12290as_myself= 12291case $0 in @%:@(( 12292 *[\\/]* ) as_myself=$0 ;; 12293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12294for as_dir in $PATH 12295do 12296 IFS=$as_save_IFS 12297 case $as_dir in #((( 12298 '') as_dir=./ ;; 12299 */) ;; 12300 *) as_dir=$as_dir/ ;; 12301 esac 12302 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12303 done 12304IFS=$as_save_IFS 12305 12306 ;; 12307esac 12308# We did not find ourselves, most probably we were run as `sh COMMAND' 12309# in which case we are not to be found in the path. 12310if test "x$as_myself" = x; then 12311 as_myself=$0 12312fi 12313if test ! -f "$as_myself"; then 12314 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12315 exit 1 12316fi 12317 12318 12319 12320@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 12321@%:@ ---------------------------------------- 12322@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12323@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12324@%:@ script with STATUS, using 1 if that was 0. 12325as_fn_error () 12326{ 12327 as_status=$1; test $as_status -eq 0 && as_status=1 12328 if test "$4"; then 12329 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12331 fi 12332 printf "%s\n" "$as_me: error: $2" >&2 12333 as_fn_exit $as_status 12334} @%:@ as_fn_error 12335 12336 12337 12338@%:@ as_fn_set_status STATUS 12339@%:@ ----------------------- 12340@%:@ Set @S|@? to STATUS, without forking. 12341as_fn_set_status () 12342{ 12343 return $1 12344} @%:@ as_fn_set_status 12345 12346@%:@ as_fn_exit STATUS 12347@%:@ ----------------- 12348@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12349as_fn_exit () 12350{ 12351 set +e 12352 as_fn_set_status $1 12353 exit $1 12354} @%:@ as_fn_exit 12355 12356@%:@ as_fn_unset VAR 12357@%:@ --------------- 12358@%:@ Portably unset VAR. 12359as_fn_unset () 12360{ 12361 { eval $1=; unset $1;} 12362} 12363as_unset=as_fn_unset 12364 12365@%:@ as_fn_append VAR VALUE 12366@%:@ ---------------------- 12367@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 12368@%:@ advantage of any shell optimizations that allow amortized linear growth over 12369@%:@ repeated appends, instead of the typical quadratic growth present in naive 12370@%:@ implementations. 12371if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12372then : 12373 eval 'as_fn_append () 12374 { 12375 eval $1+=\$2 12376 }' 12377else $as_nop 12378 as_fn_append () 12379 { 12380 eval $1=\$$1\$2 12381 } 12382fi # as_fn_append 12383 12384@%:@ as_fn_arith ARG... 12385@%:@ ------------------ 12386@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 12387@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 12388@%:@ must be portable across @S|@(()) and expr. 12389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12390then : 12391 eval 'as_fn_arith () 12392 { 12393 as_val=$(( $* )) 12394 }' 12395else $as_nop 12396 as_fn_arith () 12397 { 12398 as_val=`expr "$@" || test $? -eq 1` 12399 } 12400fi # as_fn_arith 12401 12402 12403if expr a : '\(a\)' >/dev/null 2>&1 && 12404 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12405 as_expr=expr 12406else 12407 as_expr=false 12408fi 12409 12410if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12411 as_basename=basename 12412else 12413 as_basename=false 12414fi 12415 12416if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12417 as_dirname=dirname 12418else 12419 as_dirname=false 12420fi 12421 12422as_me=`$as_basename -- "$0" || 12423$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12424 X"$0" : 'X\(//\)$' \| \ 12425 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12426printf "%s\n" X/"$0" | 12427 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12428 s//\1/ 12429 q 12430 } 12431 /^X\/\(\/\/\)$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\/\(\/\).*/{ 12436 s//\1/ 12437 q 12438 } 12439 s/.*/./; q'` 12440 12441# Avoid depending upon Character Ranges. 12442as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12444as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12445as_cr_digits='0123456789' 12446as_cr_alnum=$as_cr_Letters$as_cr_digits 12447 12448 12449# Determine whether it's possible to make 'echo' print without a newline. 12450# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12451# for compatibility with existing Makefiles. 12452ECHO_C= ECHO_N= ECHO_T= 12453case `echo -n x` in @%:@((((( 12454-n*) 12455 case `echo 'xy\c'` in 12456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12457 xy) ECHO_C='\c';; 12458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12459 ECHO_T=' ';; 12460 esac;; 12461*) 12462 ECHO_N='-n';; 12463esac 12464 12465# For backward compatibility with old third-party macros, we provide 12466# the shell variables $as_echo and $as_echo_n. New code should use 12467# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12468as_@&t@echo='printf %s\n' 12469as_@&t@echo_n='printf %s' 12470 12471rm -f conf$$ conf$$.exe conf$$.file 12472if test -d conf$$.dir; then 12473 rm -f conf$$.dir/conf$$.file 12474else 12475 rm -f conf$$.dir 12476 mkdir conf$$.dir 2>/dev/null 12477fi 12478if (echo >conf$$.file) 2>/dev/null; then 12479 if ln -s conf$$.file conf$$ 2>/dev/null; then 12480 as_ln_s='ln -s' 12481 # ... but there are two gotchas: 12482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12484 # In both cases, we have to default to `cp -pR'. 12485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12486 as_ln_s='cp -pR' 12487 elif ln conf$$.file conf$$ 2>/dev/null; then 12488 as_ln_s=ln 12489 else 12490 as_ln_s='cp -pR' 12491 fi 12492else 12493 as_ln_s='cp -pR' 12494fi 12495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12496rmdir conf$$.dir 2>/dev/null 12497 12498 12499@%:@ as_fn_mkdir_p 12500@%:@ ------------- 12501@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 12502as_fn_mkdir_p () 12503{ 12504 12505 case $as_dir in #( 12506 -*) as_dir=./$as_dir;; 12507 esac 12508 test -d "$as_dir" || eval $as_mkdir_p || { 12509 as_dirs= 12510 while :; do 12511 case $as_dir in #( 12512 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12513 *) as_qdir=$as_dir;; 12514 esac 12515 as_dirs="'$as_qdir' $as_dirs" 12516 as_dir=`$as_dirname -- "$as_dir" || 12517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12518 X"$as_dir" : 'X\(//\)[^/]' \| \ 12519 X"$as_dir" : 'X\(//\)$' \| \ 12520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12521printf "%s\n" X"$as_dir" | 12522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12523 s//\1/ 12524 q 12525 } 12526 /^X\(\/\/\)[^/].*/{ 12527 s//\1/ 12528 q 12529 } 12530 /^X\(\/\/\)$/{ 12531 s//\1/ 12532 q 12533 } 12534 /^X\(\/\).*/{ 12535 s//\1/ 12536 q 12537 } 12538 s/.*/./; q'` 12539 test -d "$as_dir" && break 12540 done 12541 test -z "$as_dirs" || eval "mkdir $as_dirs" 12542 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12543 12544 12545} @%:@ as_fn_mkdir_p 12546if mkdir -p . 2>/dev/null; then 12547 as_mkdir_p='mkdir -p "$as_dir"' 12548else 12549 test -d ./-p && rmdir ./-p 12550 as_mkdir_p=false 12551fi 12552 12553 12554@%:@ as_fn_executable_p FILE 12555@%:@ ----------------------- 12556@%:@ Test if FILE is an executable regular file. 12557as_fn_executable_p () 12558{ 12559 test -f "$1" && test -x "$1" 12560} @%:@ as_fn_executable_p 12561as_test_x='test -x' 12562as_executable_p=as_fn_executable_p 12563 12564# Sed expression to map a string onto a valid CPP name. 12565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12566 12567# Sed expression to map a string onto a valid variable name. 12568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12569 12570 12571exec 6>&1 12572## ----------------------------------- ## 12573## Main body of $CONFIG_STATUS script. ## 12574## ----------------------------------- ## 12575_ASEOF 12576test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12577 12578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12579# Save the log message, to keep $0 and so on meaningful, and to 12580# report actual input values of CONFIG_FILES etc. instead of their 12581# values after options handling. 12582ac_log=" 12583This file was extended by MKVToolNix $as_me 65.0.0, which was 12584generated by GNU Autoconf 2.71. Invocation command line was 12585 12586 CONFIG_FILES = $CONFIG_FILES 12587 CONFIG_HEADERS = $CONFIG_HEADERS 12588 CONFIG_LINKS = $CONFIG_LINKS 12589 CONFIG_COMMANDS = $CONFIG_COMMANDS 12590 $ $0 $@ 12591 12592on `(hostname || uname -n) 2>/dev/null | sed 1q` 12593" 12594 12595_ACEOF 12596 12597case $ac_config_files in *" 12598"*) set x $ac_config_files; shift; ac_config_files=$*;; 12599esac 12600 12601case $ac_config_headers in *" 12602"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12603esac 12604 12605 12606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12607# Files that config.status was made for. 12608config_files="$ac_config_files" 12609config_headers="$ac_config_headers" 12610 12611_ACEOF 12612 12613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12614ac_cs_usage="\ 12615\`$as_me' instantiates files and other configuration actions 12616from templates according to the current configuration. Unless the files 12617and actions are specified as TAGs, all are instantiated by default. 12618 12619Usage: $0 [OPTION]... [TAG]... 12620 12621 -h, --help print this help, then exit 12622 -V, --version print version number and configuration settings, then exit 12623 --config print configuration, then exit 12624 -q, --quiet, --silent 12625 do not print progress messages 12626 -d, --debug don't remove temporary files 12627 --recheck update $as_me by reconfiguring in the same conditions 12628 --file=FILE[:TEMPLATE] 12629 instantiate the configuration file FILE 12630 --header=FILE[:TEMPLATE] 12631 instantiate the configuration header FILE 12632 12633Configuration files: 12634$config_files 12635 12636Configuration headers: 12637$config_headers 12638 12639Report bugs to <https://gitlab.com/mbunkus/mkvtoolnix/issues/>." 12640 12641_ACEOF 12642ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12643ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12645ac_cs_config='$ac_cs_config_escaped' 12646ac_cs_version="\\ 12647MKVToolNix config.status 65.0.0 12648configured by $0, generated by GNU Autoconf 2.71, 12649 with options \\"\$ac_cs_config\\" 12650 12651Copyright (C) 2021 Free Software Foundation, Inc. 12652This config.status script is free software; the Free Software Foundation 12653gives unlimited permission to copy, distribute and modify it." 12654 12655ac_pwd='$ac_pwd' 12656srcdir='$srcdir' 12657INSTALL='$INSTALL' 12658test -n "\$AWK" || AWK=awk 12659_ACEOF 12660 12661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12662# The default lists apply if the user does not specify any file. 12663ac_need_defaults=: 12664while test $# != 0 12665do 12666 case $1 in 12667 --*=?*) 12668 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12670 ac_shift=: 12671 ;; 12672 --*=) 12673 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12674 ac_optarg= 12675 ac_shift=: 12676 ;; 12677 *) 12678 ac_option=$1 12679 ac_optarg=$2 12680 ac_shift=shift 12681 ;; 12682 esac 12683 12684 case $ac_option in 12685 # Handling of the options. 12686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12687 ac_cs_recheck=: ;; 12688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12689 printf "%s\n" "$ac_cs_version"; exit ;; 12690 --config | --confi | --conf | --con | --co | --c ) 12691 printf "%s\n" "$ac_cs_config"; exit ;; 12692 --debug | --debu | --deb | --de | --d | -d ) 12693 debug=: ;; 12694 --file | --fil | --fi | --f ) 12695 $ac_shift 12696 case $ac_optarg in 12697 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12698 '') as_fn_error $? "missing file argument" ;; 12699 esac 12700 as_fn_append CONFIG_FILES " '$ac_optarg'" 12701 ac_need_defaults=false;; 12702 --header | --heade | --head | --hea ) 12703 $ac_shift 12704 case $ac_optarg in 12705 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12706 esac 12707 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12708 ac_need_defaults=false;; 12709 --he | --h) 12710 # Conflict between --help and --header 12711 as_fn_error $? "ambiguous option: \`$1' 12712Try \`$0 --help' for more information.";; 12713 --help | --hel | -h ) 12714 printf "%s\n" "$ac_cs_usage"; exit ;; 12715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12716 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12717 ac_cs_silent=: ;; 12718 12719 # This is an error. 12720 -*) as_fn_error $? "unrecognized option: \`$1' 12721Try \`$0 --help' for more information." ;; 12722 12723 *) as_fn_append ac_config_targets " $1" 12724 ac_need_defaults=false ;; 12725 12726 esac 12727 shift 12728done 12729 12730ac_configure_extra_args= 12731 12732if $ac_cs_silent; then 12733 exec 6>/dev/null 12734 ac_configure_extra_args="$ac_configure_extra_args --silent" 12735fi 12736 12737_ACEOF 12738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12739if \$ac_cs_recheck; then 12740 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12741 shift 12742 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12743 CONFIG_SHELL='$SHELL' 12744 export CONFIG_SHELL 12745 exec "\$@" 12746fi 12747 12748_ACEOF 12749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12750exec 5>>config.log 12751{ 12752 echo 12753 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 12754@%:@@%:@ Running $as_me. @%:@@%:@ 12755_ASBOX 12756 printf "%s\n" "$ac_log" 12757} >&5 12758 12759_ACEOF 12760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12761_ACEOF 12762 12763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12764 12765# Handling of arguments. 12766for ac_config_target in $ac_config_targets 12767do 12768 case $ac_config_target in 12769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12770 "build-config") CONFIG_FILES="$CONFIG_FILES build-config" ;; 12771 12772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12773 esac 12774done 12775 12776 12777# If the user did not use the arguments to specify the items to instantiate, 12778# then the envvar interface is used. Set only those that are not. 12779# We use the long form for the default assignment because of an extremely 12780# bizarre bug on SunOS 4.1.3. 12781if $ac_need_defaults; then 12782 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12783 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12784fi 12785 12786# Have a temporary directory for convenience. Make it in the build tree 12787# simply because there is no reason against having it here, and in addition, 12788# creating and moving files from /tmp can sometimes cause problems. 12789# Hook for its removal unless debugging. 12790# Note that there is a small window in which the directory will not be cleaned: 12791# after its creation but before its name has been assigned to `$tmp'. 12792$debug || 12793{ 12794 tmp= ac_tmp= 12795 trap 'exit_status=$? 12796 : "${ac_tmp:=$tmp}" 12797 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12798' 0 12799 trap 'as_fn_exit 1' 1 2 13 15 12800} 12801# Create a (secure) tmp directory for tmp files. 12802 12803{ 12804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12805 test -d "$tmp" 12806} || 12807{ 12808 tmp=./conf$$-$RANDOM 12809 (umask 077 && mkdir "$tmp") 12810} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12811ac_tmp=$tmp 12812 12813# Set up the scripts for CONFIG_FILES section. 12814# No need to generate them if there are no CONFIG_FILES. 12815# This happens for instance with `./config.status config.h'. 12816if test -n "$CONFIG_FILES"; then 12817 12818 12819ac_cr=`echo X | tr X '\015'` 12820# On cygwin, bash can eat \r inside `` if the user requested igncr. 12821# But we know of no other shell where ac_cr would be empty at this 12822# point, so we can use a bashism as a fallback. 12823if test "x$ac_cr" = x; then 12824 eval ac_cr=\$\'\\r\' 12825fi 12826ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12827if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12828 ac_cs_awk_cr='\\r' 12829else 12830 ac_cs_awk_cr=$ac_cr 12831fi 12832 12833echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12834_ACEOF 12835 12836 12837{ 12838 echo "cat >conf$$subs.awk <<_ACEOF" && 12839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12840 echo "_ACEOF" 12841} >conf$$subs.sh || 12842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12843ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12844ac_delim='%!_!# ' 12845for ac_last_try in false false false false false :; do 12846 . ./conf$$subs.sh || 12847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12848 12849 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12850 if test $ac_delim_n = $ac_delim_num; then 12851 break 12852 elif $ac_last_try; then 12853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12854 else 12855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12856 fi 12857done 12858rm -f conf$$subs.sh 12859 12860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12861cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12862_ACEOF 12863sed -n ' 12864h 12865s/^/S["/; s/!.*/"]=/ 12866p 12867g 12868s/^[^!]*!// 12869:repl 12870t repl 12871s/'"$ac_delim"'$// 12872t delim 12873:nl 12874h 12875s/\(.\{148\}\)..*/\1/ 12876t more1 12877s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12878p 12879n 12880b repl 12881:more1 12882s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12883p 12884g 12885s/.\{148\}// 12886t nl 12887:delim 12888h 12889s/\(.\{148\}\)..*/\1/ 12890t more2 12891s/["\\]/\\&/g; s/^/"/; s/$/"/ 12892p 12893b 12894:more2 12895s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12896p 12897g 12898s/.\{148\}// 12899t delim 12900' <conf$$subs.awk | sed ' 12901/^[^""]/{ 12902 N 12903 s/\n// 12904} 12905' >>$CONFIG_STATUS || ac_write_fail=1 12906rm -f conf$$subs.awk 12907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12908_ACAWK 12909cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12910 for (key in S) S_is_set[key] = 1 12911 FS = "" 12912 12913} 12914{ 12915 line = $ 0 12916 nfields = split(line, field, "@") 12917 substed = 0 12918 len = length(field[1]) 12919 for (i = 2; i < nfields; i++) { 12920 key = field[i] 12921 keylen = length(key) 12922 if (S_is_set[key]) { 12923 value = S[key] 12924 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12925 len += length(value) + length(field[++i]) 12926 substed = 1 12927 } else 12928 len += 1 + keylen 12929 } 12930 12931 print line 12932} 12933 12934_ACAWK 12935_ACEOF 12936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12937if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12938 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12939else 12940 cat 12941fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12942 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12943_ACEOF 12944 12945# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12946# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12947# trailing colons and then remove the whole line if VPATH becomes empty 12948# (actually we leave an empty line to preserve line numbers). 12949if test "x$srcdir" = x.; then 12950 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12951h 12952s/// 12953s/^/:/ 12954s/[ ]*$/:/ 12955s/:\$(srcdir):/:/g 12956s/:\${srcdir}:/:/g 12957s/:@srcdir@:/:/g 12958s/^:*// 12959s/:*$// 12960x 12961s/\(=[ ]*\).*/\1/ 12962G 12963s/\n// 12964s/^[^=]*=[ ]*$// 12965}' 12966fi 12967 12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12969fi # test -n "$CONFIG_FILES" 12970 12971# Set up the scripts for CONFIG_HEADERS section. 12972# No need to generate them if there are no CONFIG_HEADERS. 12973# This happens for instance with `./config.status Makefile'. 12974if test -n "$CONFIG_HEADERS"; then 12975cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12976BEGIN { 12977_ACEOF 12978 12979# Transform confdefs.h into an awk script `defines.awk', embedded as 12980# here-document in config.status, that substitutes the proper values into 12981# config.h.in to produce config.h. 12982 12983# Create a delimiter string that does not exist in confdefs.h, to ease 12984# handling of long lines. 12985ac_delim='%!_!# ' 12986for ac_last_try in false false :; do 12987 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12988 if test -z "$ac_tt"; then 12989 break 12990 elif $ac_last_try; then 12991 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12992 else 12993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12994 fi 12995done 12996 12997# For the awk script, D is an array of macro values keyed by name, 12998# likewise P contains macro parameters if any. Preserve backslash 12999# newline sequences. 13000 13001ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13002sed -n ' 13003s/.\{148\}/&'"$ac_delim"'/g 13004t rset 13005:rset 13006s/^[ ]*#[ ]*define[ ][ ]*/ / 13007t def 13008d 13009:def 13010s/\\$// 13011t bsnl 13012s/["\\]/\\&/g 13013s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13014D["\1"]=" \3"/p 13015s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13016d 13017:bsnl 13018s/["\\]/\\&/g 13019s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13020D["\1"]=" \3\\\\\\n"\\/p 13021t cont 13022s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13023t cont 13024d 13025:cont 13026n 13027s/.\{148\}/&'"$ac_delim"'/g 13028t clear 13029:clear 13030s/\\$// 13031t bsnlc 13032s/["\\]/\\&/g; s/^/"/; s/$/"/p 13033d 13034:bsnlc 13035s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13036b cont 13037' <confdefs.h | sed ' 13038s/'"$ac_delim"'/"\\\ 13039"/g' >>$CONFIG_STATUS || ac_write_fail=1 13040 13041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13042 for (key in D) D_is_set[key] = 1 13043 FS = "" 13044} 13045/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13046 line = \$ 0 13047 split(line, arg, " ") 13048 if (arg[1] == "#") { 13049 defundef = arg[2] 13050 mac1 = arg[3] 13051 } else { 13052 defundef = substr(arg[1], 2) 13053 mac1 = arg[2] 13054 } 13055 split(mac1, mac2, "(") #) 13056 macro = mac2[1] 13057 prefix = substr(line, 1, index(line, defundef) - 1) 13058 if (D_is_set[macro]) { 13059 # Preserve the white space surrounding the "#". 13060 print prefix "define", macro P[macro] D[macro] 13061 next 13062 } else { 13063 # Replace #undef with comments. This is necessary, for example, 13064 # in the case of _POSIX_SOURCE, which is predefined and required 13065 # on some systems where configure will not decide to define it. 13066 if (defundef == "undef") { 13067 print "/*", prefix defundef, macro, "*/" 13068 next 13069 } 13070 } 13071} 13072{ print } 13073_ACAWK 13074_ACEOF 13075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13076 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13077fi # test -n "$CONFIG_HEADERS" 13078 13079 13080eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13081shift 13082for ac_tag 13083do 13084 case $ac_tag in 13085 :[FHLC]) ac_mode=$ac_tag; continue;; 13086 esac 13087 case $ac_mode$ac_tag in 13088 :[FHL]*:*);; 13089 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13090 :[FH]-) ac_tag=-:-;; 13091 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13092 esac 13093 ac_save_IFS=$IFS 13094 IFS=: 13095 set x $ac_tag 13096 IFS=$ac_save_IFS 13097 shift 13098 ac_file=$1 13099 shift 13100 13101 case $ac_mode in 13102 :L) ac_source=$1;; 13103 :[FH]) 13104 ac_file_inputs= 13105 for ac_f 13106 do 13107 case $ac_f in 13108 -) ac_f="$ac_tmp/stdin";; 13109 *) # Look for the file first in the build tree, then in the source tree 13110 # (if the path is not absolute). The absolute path cannot be DOS-style, 13111 # because $ac_f cannot contain `:'. 13112 test -f "$ac_f" || 13113 case $ac_f in 13114 [\\/$]*) false;; 13115 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13116 esac || 13117 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13118 esac 13119 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13120 as_fn_append ac_file_inputs " '$ac_f'" 13121 done 13122 13123 # Let's still pretend it is `configure' which instantiates (i.e., don't 13124 # use $as_me), people would be surprised to read: 13125 # /* config.h. Generated by config.status. */ 13126 configure_input='Generated from '` 13127 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13128 `' by configure.' 13129 if test x"$ac_file" != x-; then 13130 configure_input="$ac_file. $configure_input" 13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13132printf "%s\n" "$as_me: creating $ac_file" >&6;} 13133 fi 13134 # Neutralize special characters interpreted by sed in replacement strings. 13135 case $configure_input in #( 13136 *\&* | *\|* | *\\* ) 13137 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13138 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13139 *) ac_sed_conf_input=$configure_input;; 13140 esac 13141 13142 case $ac_tag in 13143 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13145 esac 13146 ;; 13147 esac 13148 13149 ac_dir=`$as_dirname -- "$ac_file" || 13150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13151 X"$ac_file" : 'X\(//\)[^/]' \| \ 13152 X"$ac_file" : 'X\(//\)$' \| \ 13153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13154printf "%s\n" X"$ac_file" | 13155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13156 s//\1/ 13157 q 13158 } 13159 /^X\(\/\/\)[^/].*/{ 13160 s//\1/ 13161 q 13162 } 13163 /^X\(\/\/\)$/{ 13164 s//\1/ 13165 q 13166 } 13167 /^X\(\/\).*/{ 13168 s//\1/ 13169 q 13170 } 13171 s/.*/./; q'` 13172 as_dir="$ac_dir"; as_fn_mkdir_p 13173 ac_builddir=. 13174 13175case "$ac_dir" in 13176.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13177*) 13178 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13179 # A ".." for each directory in $ac_dir_suffix. 13180 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13181 case $ac_top_builddir_sub in 13182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13184 esac ;; 13185esac 13186ac_abs_top_builddir=$ac_pwd 13187ac_abs_builddir=$ac_pwd$ac_dir_suffix 13188# for backward compatibility: 13189ac_top_builddir=$ac_top_build_prefix 13190 13191case $srcdir in 13192 .) # We are building in place. 13193 ac_srcdir=. 13194 ac_top_srcdir=$ac_top_builddir_sub 13195 ac_abs_top_srcdir=$ac_pwd ;; 13196 [\\/]* | ?:[\\/]* ) # Absolute name. 13197 ac_srcdir=$srcdir$ac_dir_suffix; 13198 ac_top_srcdir=$srcdir 13199 ac_abs_top_srcdir=$srcdir ;; 13200 *) # Relative name. 13201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13202 ac_top_srcdir=$ac_top_build_prefix$srcdir 13203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13204esac 13205ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13206 13207 13208 case $ac_mode in 13209 :F) 13210 # 13211 # CONFIG_FILE 13212 # 13213 13214 case $INSTALL in 13215 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13216 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13217 esac 13218_ACEOF 13219 13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13221# If the template does not know about datarootdir, expand it. 13222# FIXME: This hack should be removed a few years after 2.60. 13223ac_datarootdir_hack=; ac_datarootdir_seen= 13224ac_sed_dataroot=' 13225/datarootdir/ { 13226 p 13227 q 13228} 13229/@datadir@/p 13230/@docdir@/p 13231/@infodir@/p 13232/@localedir@/p 13233/@mandir@/p' 13234case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13235*datarootdir*) ac_datarootdir_seen=yes;; 13236*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13238printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13239_ACEOF 13240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13241 ac_datarootdir_hack=' 13242 s&@datadir@&$datadir&g 13243 s&@docdir@&$docdir&g 13244 s&@infodir@&$infodir&g 13245 s&@localedir@&$localedir&g 13246 s&@mandir@&$mandir&g 13247 s&\\\${datarootdir}&$datarootdir&g' ;; 13248esac 13249_ACEOF 13250 13251# Neutralize VPATH when `$srcdir' = `.'. 13252# Shell code in configure.ac might set extrasub. 13253# FIXME: do we really want to maintain this feature? 13254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13255ac_sed_extra="$ac_vpsub 13256$extrasub 13257_ACEOF 13258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13259:t 13260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13261s|@configure_input@|$ac_sed_conf_input|;t t 13262s&@top_builddir@&$ac_top_builddir_sub&;t t 13263s&@top_build_prefix@&$ac_top_build_prefix&;t t 13264s&@srcdir@&$ac_srcdir&;t t 13265s&@abs_srcdir@&$ac_abs_srcdir&;t t 13266s&@top_srcdir@&$ac_top_srcdir&;t t 13267s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13268s&@builddir@&$ac_builddir&;t t 13269s&@abs_builddir@&$ac_abs_builddir&;t t 13270s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13271s&@INSTALL@&$ac_INSTALL&;t t 13272$ac_datarootdir_hack 13273" 13274eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13276 13277test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13280 "$ac_tmp/out"`; test -z "$ac_out"; } && 13281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13282which seems to be undefined. Please make sure it is defined" >&5 13283printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13284which seems to be undefined. Please make sure it is defined" >&2;} 13285 13286 rm -f "$ac_tmp/stdin" 13287 case $ac_file in 13288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13290 esac \ 13291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13292 ;; 13293 :H) 13294 # 13295 # CONFIG_HEADER 13296 # 13297 if test x"$ac_file" != x-; then 13298 { 13299 printf "%s\n" "/* $configure_input */" >&1 \ 13300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13301 } >"$ac_tmp/config.h" \ 13302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13305printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13306 else 13307 rm -f "$ac_file" 13308 mv "$ac_tmp/config.h" "$ac_file" \ 13309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13310 fi 13311 else 13312 printf "%s\n" "/* $configure_input */" >&1 \ 13313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13314 || as_fn_error $? "could not create -" "$LINENO" 5 13315 fi 13316 ;; 13317 13318 13319 esac 13320 13321done # for ac_tag 13322 13323 13324as_fn_exit 0 13325_ACEOF 13326ac_clean_files=$ac_clean_files_save 13327 13328test $ac_write_fail = 0 || 13329 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13330 13331 13332# configure is writing to config.log, and then calls config.status. 13333# config.status does its own redirection, appending to config.log. 13334# Unfortunately, on DOS this fails, as config.log is still kept open 13335# by configure, so config.status won't be able to write to it; its 13336# output is simply discarded. So we exec the FD to /dev/null, 13337# effectively closing config.log, so it can be properly (re)opened and 13338# appended to by config.status. When coming back to configure, we 13339# need to make the FD available again. 13340if test "$no_create" != yes; then 13341 ac_cs_success=: 13342 ac_config_status_args= 13343 test "$silent" = yes && 13344 ac_config_status_args="$ac_config_status_args --quiet" 13345 exec 5>/dev/null 13346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13347 exec 5>>config.log 13348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13349 # would make configure fail if this is the last instruction. 13350 $ac_cs_success || as_fn_exit 1 13351fi 13352if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13354printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13355fi 13356 13357 13358echo '' 13359echo 'The mkvtoolnix configuration is complete.' 13360printf 'Optional features that are built: '"$opt_features_yes"'\n' 13361printf 'Optional features that are NOT built: '"$opt_features_no"'\n' 13362