1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for CUPS 2.4.12. 4# 5# Report bugs to <https://github.com/openprinting/cups/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" 186 if (eval "$as_required") 2>/dev/null 187then : 188 as_have_required=yes 189else $as_nop 190 as_have_required=no 191fi 192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 193then : 194 195else $as_nop 196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 197as_found=false 198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 199do 200 IFS=$as_save_IFS 201 case $as_dir in #((( 202 '') as_dir=./ ;; 203 */) ;; 204 *) as_dir=$as_dir/ ;; 205 esac 206 as_found=: 207 case $as_dir in #( 208 /*) 209 for as_base in sh bash ksh sh5; do 210 # Try only shells that exist, to save several forks. 211 as_shell=$as_dir$as_base 212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 214then : 215 CONFIG_SHELL=$as_shell as_have_required=yes 216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 217then : 218 break 2 219fi 220fi 221 done;; 222 esac 223 as_found=false 224done 225IFS=$as_save_IFS 226if $as_found 227then : 228 229else $as_nop 230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 232then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi 235fi 236 237 238 if test "x$CONFIG_SHELL" != x 239then : 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242# neutralization value for shells without unset; and this also 243# works around shells that cannot unset nonexistent variables. 244# Preserve -v and -x to the replacement shell. 245BASH_ENV=/dev/null 246ENV=/dev/null 247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253esac 254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255# Admittedly, this is quite paranoid, since all the known shells bail 256# out after a failed `exec'. 257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 258exit 255 259fi 260 261 if test x$as_have_required = xno 262then : 263 printf "%s\n" "$0: This script requires a shell more modern than all" 264 printf "%s\n" "$0: the shells that I found on your system." 265 if test ${ZSH_VERSION+y} ; then 266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 270$0: https://github.com/openprinting/cups/issues about your 271$0: system, including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315# as_fn_nop 316# --------- 317# Do nothing but, unlike ":", preserve the value of $?. 318as_fn_nop () 319{ 320 return $? 321} 322as_nop=as_fn_nop 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346printf "%s\n" X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 386then : 387 eval 'as_fn_append () 388 { 389 eval $1+=\$2 390 }' 391else $as_nop 392 as_fn_append () 393 { 394 eval $1=\$$1\$2 395 } 396fi # as_fn_append 397 398# as_fn_arith ARG... 399# ------------------ 400# Perform arithmetic evaluation on the ARGs, and store the result in the 401# global $as_val. Take advantage of shells that can avoid forks. The arguments 402# must be portable across $(()) and expr. 403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 404then : 405 eval 'as_fn_arith () 406 { 407 as_val=$(( $* )) 408 }' 409else $as_nop 410 as_fn_arith () 411 { 412 as_val=`expr "$@" || test $? -eq 1` 413 } 414fi # as_fn_arith 415 416# as_fn_nop 417# --------- 418# Do nothing but, unlike ":", preserve the value of $?. 419as_fn_nop () 420{ 421 return $? 422} 423as_nop=as_fn_nop 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520} 521 522 523# Determine whether it's possible to make 'echo' print without a newline. 524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 525# for compatibility with existing Makefiles. 526ECHO_C= ECHO_N= ECHO_T= 527case `echo -n x` in #((((( 528-n*) 529 case `echo 'xy\c'` in 530 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 xy) ECHO_C='\c';; 532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 ECHO_T=' ';; 534 esac;; 535*) 536 ECHO_N='-n';; 537esac 538 539# For backward compatibility with old third-party macros, we provide 540# the shell variables $as_echo and $as_echo_n. New code should use 541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 542as_echo='printf %s\n' 543as_echo_n='printf %s' 544 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 559 # In both cases, we have to default to `cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 585 586# Sed expression to map a string onto a valid variable name. 587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 588 589 590test -n "$DJDIR" || exec 7<&0 </dev/null 591exec 6>&1 592 593# Name of the host. 594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 595# so uname gets run too. 596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 597 598# 599# Initializations. 600# 601ac_default_prefix=/usr/local 602ac_clean_files= 603ac_config_libobj_dir=. 604LIBOBJS= 605cross_compiling=no 606subdirs= 607MFLAGS= 608MAKEFLAGS= 609 610# Identity of this package. 611PACKAGE_NAME='CUPS' 612PACKAGE_TARNAME='cups' 613PACKAGE_VERSION='2.4.12' 614PACKAGE_STRING='CUPS 2.4.12' 615PACKAGE_BUGREPORT='https://github.com/openprinting/cups/issues' 616PACKAGE_URL='https://openprinting.github.io/cups' 617 618# Factoring default headers for most tests. 619ac_includes_default="\ 620#include <stddef.h> 621#ifdef HAVE_STDIO_H 622# include <stdio.h> 623#endif 624#ifdef HAVE_STDLIB_H 625# include <stdlib.h> 626#endif 627#ifdef HAVE_STRING_H 628# include <string.h> 629#endif 630#ifdef HAVE_INTTYPES_H 631# include <inttypes.h> 632#endif 633#ifdef HAVE_STDINT_H 634# include <stdint.h> 635#endif 636#ifdef HAVE_STRINGS_H 637# include <strings.h> 638#endif 639#ifdef HAVE_SYS_TYPES_H 640# include <sys/types.h> 641#endif 642#ifdef HAVE_SYS_STAT_H 643# include <sys/stat.h> 644#endif 645#ifdef HAVE_UNISTD_H 646# include <unistd.h> 647#endif" 648 649ac_header_c_list= 650ac_default_prefix=/ 651ac_subst_vars='LTLIBOBJS 652LIBOBJS 653UNINSTALL_LANGUAGES 654INSTALL_LANGUAGES 655TIMEOUTSTARTSEC 656EXIT_TIMEOUT 657SYSTEMD_WANTED_BY 658CUPS_WEBIF 659DEFAULT_IPP_PORT 660CUPS_SNMP_COMMUNITY 661CUPS_SNMP_ADDRESS 662DEFAULT_RAW_PRINTING 663CUPS_MAX_COPIES 664CUPS_DEFAULT_PRINTCAP 665CUPS_PRIMARY_SYSTEM_GROUP 666CUPS_SYSTEM_GROUPS 667CUPS_GROUP 668CUPS_USER 669CUPS_DEFAULT_SHARED 670CUPS_BROWSE_LOCAL_PROTOCOLS 671CUPS_BROWSING 672CUPS_SYNC_ON_CLOSE 673CUPS_PAGE_LOG_FORMAT 674CUPS_ACCESS_LOG_LEVEL 675CUPS_LOG_LEVEL 676CUPS_FATAL_ERRORS 677CUPS_ERROR_POLICY 678CUPS_MAX_LOG_SIZE 679CUPS_LOG_FILE_PERM 680CUPS_CUPSD_FILE_PERM 681CUPS_CONFIG_FILE_PERM 682CUPS_EXE_FILE_PERM 683CUPS_RESOURCEDIR 684CUPS_BUNDLEDIR 685LANGUAGES 686XINETD 687RCSTOP 688RCSTART 689RCLEVELS 690INITDDIR 691INITDIR 692SMFMANIFESTDIR 693SYSTEMD_DIR 694LAUNCHD_DIR 695ONDEMANDLIBS 696ONDEMANDFLAGS 697SNAPDGLIBLIBS 698APPARMORLIBS 699IPPFIND_MAN 700IPPFIND_BIN 701DNSSD_BACKEND 702DNSSDLIBS 703LARGEFILE 704PAMMODAUTH 705PAMMOD 706PAMLIBS 707PAMFILE 708PAMDIR 709EXPORT_TLSLIBS 710TLSLIBS 711TLSFLAGS 712IPPALIASES 713CUPS_SERVERKEYCHAIN 714LIBGNUTLSCONFIG 715PTHREAD_FLAGS 716CUPS_DEFAULT_GSSSERVICENAME 717KRB5CONFIG 718LIBGSSAPI 719CUPS_LISTEN_DOMAINSOCKET 720CUPS_DEFAULT_DOMAINSOCKET 721WARNING_OPTIONS 722RELROFLAGS 723PIEFLAGS 724CXXLIBS 725LDARCHFLAGS 726ARCHFLAGS 727UNITTESTS 728OPTIM 729INSTALL_STRIP 730LIBTOOL_INSTALL 731LIBTOOL_CXX 732LIBTOOL_CC 733LIBTOOL 734LD_CXX 735LD_CC 736EXPORT_LDFLAGS 737LINKCUPS 738EXTLINKCUPS 739LIBCUPSSTATIC 740LIBCUPSIMAGE 741LIBCUPSBASE 742LIBCUPS 743DSOFLAGS 744DSOXX 745DSO 746CUPS_STATEDIR 747CUPS_SERVERROOT 748INSTALL_SYSV 749CUPS_SERVERBIN 750CUPS_REQUESTS 751CUPS_LOGDIR 752CUPS_PKGCONFPATH 753CUPS_LOCALEDIR 754CUPS_DOCROOT 755MENUDIR 756ICONDIR 757CUPS_DATADIR 758CUPS_CACHEDIR 759LIBHEADERSPRIV 760LIBHEADERS 761LIBCUPSOBJS 762IPPEVECOMMANDS 763BUILDDIRS 764INSTALLXPC 765CUPS_SYSTEM_AUTHKEY 766CUPS_DEFAULT_PRINTOPERATOR_AUTH 767DBUS_NOTIFIERLIBS 768DBUS_NOTIFIER 769DBUSDIR 770SERVERLIBS 771BACKLIBS 772ARFLAGS 773LIBZ 774INSTALL_GZIP 775LIBWRAP 776USBQUIRKS 777LIBUSB 778LIBPAPER 779LIBMALLOC 780PKGCONFIG_REQUIRES 781PKGCONFIG_LIBS_STATIC 782PKGCONFIG_LIBS 783PKGCONFIG_CFLAGS 784PKGCONFIG 785INSTALLSTATIC 786CUPS_HTMLVIEW 787XDGOPEN 788SED 789RMDIR 790RM 791MV 792MKDIR 793LN 794LD 795INSTALL 796GZIPPROG 797CHMOD 798AR 799RANLIB 800ac_ct_CXX 801CXXFLAGS 802CXX 803CPP 804OBJEXT 805EXEEXT 806ac_ct_CC 807CPPFLAGS 808LDFLAGS 809CFLAGS 810CC 811AWK 812CUPS_VERSION 813CUPS_BUILD 814CUPS_API_VERSION 815CODE_SIGN 816LOCALTARGET 817host_os 818host_vendor 819host_cpu 820host 821build_os 822build_vendor 823build_cpu 824build 825target_alias 826host_alias 827build_alias 828LIBS 829ECHO_T 830ECHO_N 831ECHO_C 832DEFS 833mandir 834localedir 835libdir 836psdir 837pdfdir 838dvidir 839htmldir 840infodir 841docdir 842oldincludedir 843includedir 844runstatedir 845localstatedir 846sharedstatedir 847sysconfdir 848datadir 849datarootdir 850libexecdir 851sbindir 852bindir 853program_transform_name 854prefix 855exec_prefix 856PACKAGE_URL 857PACKAGE_BUGREPORT 858PACKAGE_STRING 859PACKAGE_VERSION 860PACKAGE_TARNAME 861PACKAGE_NAME 862PATH_SEPARATOR 863SHELL' 864ac_subst_files='' 865ac_user_opts=' 866enable_option_checking 867with_cups_build 868enable_static 869enable_mallinfo 870enable_libpaper 871enable_libusb 872enable_tcp_wrappers 873enable_acl 874enable_dbus 875with_dbusdir 876with_adminkey 877with_operkey 878with_components 879with_cachedir 880with_icondir 881with_menudir 882with_docdir 883with_pkgconfpath 884with_logdir 885with_rundir 886enable_shared 887enable_libtool_unsupported 888with_optim 889enable_debug 890enable_debug_guards 891enable_debug_printfs 892enable_maintainer 893enable_unit_tests 894with_archflags 895with_ldarchflags 896enable_relro 897enable_sanitizer 898with_domainsocket 899enable_gssapi 900with_gssservicename 901with_tls 902enable_pam 903with_pam_module 904enable_largefile 905with_dnssd 906with_dnssd_libs 907with_dnssd_includes 908with_container 909with_ondemand 910with_systemd 911with_smfmanifestdir 912with_rcdir 913with_rclevels 914with_rcstart 915with_rcstop 916with_xinetd 917with_languages 918with_bundledir 919with_bundlelang 920with_exe_file_perm 921with_config_file_perm 922with_cupsd_file_perm 923with_log_file_perm 924with_max_log_size 925with_error_policy 926with_fatal_errors 927with_log_level 928with_access_log_level 929enable_page_logging 930enable_sync_on_close 931enable_browsing 932with_local_protocols 933enable_default_shared 934with_cups_user 935with_cups_group 936with_system_groups 937with_printcap 938with_max_copies 939enable_raw_printing 940with_snmp_address 941with_snmp_community 942with_ipp_port 943enable_webif 944with_idle_exit_timeout 945with_systemd_timeoutstartsec 946' 947 ac_precious_vars='build_alias 948host_alias 949target_alias 950CC 951CFLAGS 952LDFLAGS 953LIBS 954CPPFLAGS 955CPP 956CXX 957CXXFLAGS 958CCC' 959 960 961# Initialize some variables set by options. 962ac_init_help= 963ac_init_version=false 964ac_unrecognized_opts= 965ac_unrecognized_sep= 966# The variables have the same names as the options, with 967# dashes changed to underlines. 968cache_file=/dev/null 969exec_prefix=NONE 970no_create= 971no_recursion= 972prefix=NONE 973program_prefix=NONE 974program_suffix=NONE 975program_transform_name=s,x,x, 976silent= 977site= 978srcdir= 979verbose= 980x_includes=NONE 981x_libraries=NONE 982 983# Installation directory options. 984# These are left unexpanded so users can "make install exec_prefix=/foo" 985# and all the variables that are supposed to be based on exec_prefix 986# by default will actually change. 987# Use braces instead of parens because sh, perl, etc. also accept them. 988# (The list follows the same order as the GNU Coding Standards.) 989bindir='${exec_prefix}/bin' 990sbindir='${exec_prefix}/sbin' 991libexecdir='${exec_prefix}/libexec' 992datarootdir='${prefix}/share' 993datadir='${datarootdir}' 994sysconfdir='${prefix}/etc' 995sharedstatedir='${prefix}/com' 996localstatedir='${prefix}/var' 997runstatedir='${localstatedir}/run' 998includedir='${prefix}/include' 999oldincludedir='/usr/include' 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1001infodir='${datarootdir}/info' 1002htmldir='${docdir}' 1003dvidir='${docdir}' 1004pdfdir='${docdir}' 1005psdir='${docdir}' 1006libdir='${exec_prefix}/lib' 1007localedir='${datarootdir}/locale' 1008mandir='${datarootdir}/man' 1009 1010ac_prev= 1011ac_dashdash= 1012for ac_option 1013do 1014 # If the previous option needs an argument, assign it. 1015 if test -n "$ac_prev"; then 1016 eval $ac_prev=\$ac_option 1017 ac_prev= 1018 continue 1019 fi 1020 1021 case $ac_option in 1022 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023 *=) ac_optarg= ;; 1024 *) ac_optarg=yes ;; 1025 esac 1026 1027 case $ac_dashdash$ac_option in 1028 --) 1029 ac_dashdash=yes ;; 1030 1031 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032 ac_prev=bindir ;; 1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034 bindir=$ac_optarg ;; 1035 1036 -build | --build | --buil | --bui | --bu) 1037 ac_prev=build_alias ;; 1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039 build_alias=$ac_optarg ;; 1040 1041 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043 ac_prev=cache_file ;; 1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046 cache_file=$ac_optarg ;; 1047 1048 --config-cache | -C) 1049 cache_file=config.cache ;; 1050 1051 -datadir | --datadir | --datadi | --datad) 1052 ac_prev=datadir ;; 1053 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054 datadir=$ac_optarg ;; 1055 1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057 | --dataroo | --dataro | --datar) 1058 ac_prev=datarootdir ;; 1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061 datarootdir=$ac_optarg ;; 1062 1063 -disable-* | --disable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072"enable_$ac_useropt" 1073"*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=no ;; 1078 1079 -docdir | --docdir | --docdi | --doc | --do) 1080 ac_prev=docdir ;; 1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1082 docdir=$ac_optarg ;; 1083 1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1085 ac_prev=dvidir ;; 1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1087 dvidir=$ac_optarg ;; 1088 1089 -enable-* | --enable-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"enable_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval enable_$ac_useropt=\$ac_optarg ;; 1104 1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1107 | --exec | --exe | --ex) 1108 ac_prev=exec_prefix ;; 1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1111 | --exec=* | --exe=* | --ex=*) 1112 exec_prefix=$ac_optarg ;; 1113 1114 -gas | --gas | --ga | --g) 1115 # Obsolete; use --with-gas. 1116 with_gas=yes ;; 1117 1118 -help | --help | --hel | --he | -h) 1119 ac_init_help=long ;; 1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1121 ac_init_help=recursive ;; 1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1123 ac_init_help=short ;; 1124 1125 -host | --host | --hos | --ho) 1126 ac_prev=host_alias ;; 1127 -host=* | --host=* | --hos=* | --ho=*) 1128 host_alias=$ac_optarg ;; 1129 1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1131 ac_prev=htmldir ;; 1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1133 | --ht=*) 1134 htmldir=$ac_optarg ;; 1135 1136 -includedir | --includedir | --includedi | --included | --include \ 1137 | --includ | --inclu | --incl | --inc) 1138 ac_prev=includedir ;; 1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1140 | --includ=* | --inclu=* | --incl=* | --inc=*) 1141 includedir=$ac_optarg ;; 1142 1143 -infodir | --infodir | --infodi | --infod | --info | --inf) 1144 ac_prev=infodir ;; 1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1146 infodir=$ac_optarg ;; 1147 1148 -libdir | --libdir | --libdi | --libd) 1149 ac_prev=libdir ;; 1150 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1151 libdir=$ac_optarg ;; 1152 1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1154 | --libexe | --libex | --libe) 1155 ac_prev=libexecdir ;; 1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1157 | --libexe=* | --libex=* | --libe=*) 1158 libexecdir=$ac_optarg ;; 1159 1160 -localedir | --localedir | --localedi | --localed | --locale) 1161 ac_prev=localedir ;; 1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1163 localedir=$ac_optarg ;; 1164 1165 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1166 | --localstate | --localstat | --localsta | --localst | --locals) 1167 ac_prev=localstatedir ;; 1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1170 localstatedir=$ac_optarg ;; 1171 1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1173 ac_prev=mandir ;; 1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1175 mandir=$ac_optarg ;; 1176 1177 -nfp | --nfp | --nf) 1178 # Obsolete; use --without-fp. 1179 with_fp=no ;; 1180 1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1182 | --no-cr | --no-c | -n) 1183 no_create=yes ;; 1184 1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1187 no_recursion=yes ;; 1188 1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1191 | --oldin | --oldi | --old | --ol | --o) 1192 ac_prev=oldincludedir ;; 1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1196 oldincludedir=$ac_optarg ;; 1197 1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1199 ac_prev=prefix ;; 1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1201 prefix=$ac_optarg ;; 1202 1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1204 | --program-pre | --program-pr | --program-p) 1205 ac_prev=program_prefix ;; 1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1208 program_prefix=$ac_optarg ;; 1209 1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1211 | --program-suf | --program-su | --program-s) 1212 ac_prev=program_suffix ;; 1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1215 program_suffix=$ac_optarg ;; 1216 1217 -program-transform-name | --program-transform-name \ 1218 | --program-transform-nam | --program-transform-na \ 1219 | --program-transform-n | --program-transform- \ 1220 | --program-transform | --program-transfor \ 1221 | --program-transfo | --program-transf \ 1222 | --program-trans | --program-tran \ 1223 | --progr-tra | --program-tr | --program-t) 1224 ac_prev=program_transform_name ;; 1225 -program-transform-name=* | --program-transform-name=* \ 1226 | --program-transform-nam=* | --program-transform-na=* \ 1227 | --program-transform-n=* | --program-transform-=* \ 1228 | --program-transform=* | --program-transfor=* \ 1229 | --program-transfo=* | --program-transf=* \ 1230 | --program-trans=* | --program-tran=* \ 1231 | --progr-tra=* | --program-tr=* | --program-t=*) 1232 program_transform_name=$ac_optarg ;; 1233 1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1235 ac_prev=pdfdir ;; 1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1237 pdfdir=$ac_optarg ;; 1238 1239 -psdir | --psdir | --psdi | --psd | --ps) 1240 ac_prev=psdir ;; 1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1242 psdir=$ac_optarg ;; 1243 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 silent=yes ;; 1247 1248 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1249 | --runstate | --runstat | --runsta | --runst | --runs \ 1250 | --run | --ru | --r) 1251 ac_prev=runstatedir ;; 1252 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1253 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1254 | --run=* | --ru=* | --r=*) 1255 runstatedir=$ac_optarg ;; 1256 1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1258 ac_prev=sbindir ;; 1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1260 | --sbi=* | --sb=*) 1261 sbindir=$ac_optarg ;; 1262 1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1265 | --sharedst | --shareds | --shared | --share | --shar \ 1266 | --sha | --sh) 1267 ac_prev=sharedstatedir ;; 1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1271 | --sha=* | --sh=*) 1272 sharedstatedir=$ac_optarg ;; 1273 1274 -site | --site | --sit) 1275 ac_prev=site ;; 1276 -site=* | --site=* | --sit=*) 1277 site=$ac_optarg ;; 1278 1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1280 ac_prev=srcdir ;; 1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1282 srcdir=$ac_optarg ;; 1283 1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1285 | --syscon | --sysco | --sysc | --sys | --sy) 1286 ac_prev=sysconfdir ;; 1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1289 sysconfdir=$ac_optarg ;; 1290 1291 -target | --target | --targe | --targ | --tar | --ta | --t) 1292 ac_prev=target_alias ;; 1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1294 target_alias=$ac_optarg ;; 1295 1296 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1297 verbose=yes ;; 1298 1299 -version | --version | --versio | --versi | --vers | -V) 1300 ac_init_version=: ;; 1301 1302 -with-* | --with-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: \`$ac_useropt'" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid package name: \`$ac_useropt'" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=no ;; 1333 1334 --x) 1335 # Obsolete; use --with-x. 1336 with_x=yes ;; 1337 1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1339 | --x-incl | --x-inc | --x-in | --x-i) 1340 ac_prev=x_includes ;; 1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1343 x_includes=$ac_optarg ;; 1344 1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1347 ac_prev=x_libraries ;; 1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1350 x_libraries=$ac_optarg ;; 1351 1352 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1353Try \`$0 --help' for more information" 1354 ;; 1355 1356 *=*) 1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1358 # Reject names that are not valid shell variable names. 1359 case $ac_envvar in #( 1360 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1361 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1362 esac 1363 eval $ac_envvar=\$ac_optarg 1364 export $ac_envvar ;; 1365 1366 *) 1367 # FIXME: should be removed in autoconf 3.0. 1368 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1370 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1371 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1372 ;; 1373 1374 esac 1375done 1376 1377if test -n "$ac_prev"; then 1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1379 as_fn_error $? "missing argument to $ac_option" 1380fi 1381 1382if test -n "$ac_unrecognized_opts"; then 1383 case $enable_option_checking in 1384 no) ;; 1385 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1386 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1387 esac 1388fi 1389 1390# Check all directory arguments for consistency. 1391for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1392 datadir sysconfdir sharedstatedir localstatedir includedir \ 1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1394 libdir localedir mandir runstatedir 1395do 1396 eval ac_val=\$$ac_var 1397 # Remove trailing slashes. 1398 case $ac_val in 1399 */ ) 1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1401 eval $ac_var=\$ac_val;; 1402 esac 1403 # Be sure to have absolute directory names. 1404 case $ac_val in 1405 [\\/$]* | ?:[\\/]* ) continue;; 1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1407 esac 1408 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 as_fn_error $? "working directory cannot be determined" 1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1438 as_fn_error $? "pwd does not report name of working directory" 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450printf "%s\n" X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1478fi 1479ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1480ac_abs_confdir=`( 1481 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1482 pwd)` 1483# When building in place, set srcdir=. 1484if test "$ac_abs_confdir" = "$ac_pwd"; then 1485 srcdir=. 1486fi 1487# Remove unnecessary trailing slashes from srcdir. 1488# Double slashes in file names in object file debugging info 1489# mess up M-x gdb in Emacs. 1490case $srcdir in 1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1492esac 1493for ac_var in $ac_precious_vars; do 1494 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1495 eval ac_env_${ac_var}_value=\$${ac_var} 1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1498done 1499 1500# 1501# Report the --help message. 1502# 1503if test "$ac_init_help" = "long"; then 1504 # Omit some internal or obsolete options to make the list less imposing. 1505 # This message is too long to be a string in the A/UX 3.1 sh. 1506 cat <<_ACEOF 1507\`configure' configures CUPS 2.4.12 to adapt to many kinds of systems. 1508 1509Usage: $0 [OPTION]... [VAR=VALUE]... 1510 1511To assign environment variables (e.g., CC, CFLAGS...), specify them as 1512VAR=VALUE. See below for descriptions of some of the useful variables. 1513 1514Defaults for the options are specified in brackets. 1515 1516Configuration: 1517 -h, --help display this help and exit 1518 --help=short display options specific to this package 1519 --help=recursive display the short help of all the included packages 1520 -V, --version display version information and exit 1521 -q, --quiet, --silent do not print \`checking ...' messages 1522 --cache-file=FILE cache test results in FILE [disabled] 1523 -C, --config-cache alias for \`--cache-file=config.cache' 1524 -n, --no-create do not create output files 1525 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1526 1527Installation directories: 1528 --prefix=PREFIX install architecture-independent files in PREFIX 1529 [$ac_default_prefix] 1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1531 [PREFIX] 1532 1533By default, \`make install' will install all the files in 1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1535an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1536for instance \`--prefix=\$HOME'. 1537 1538For better control, use the options below. 1539 1540Fine tuning of the installation directories: 1541 --bindir=DIR user executables [EPREFIX/bin] 1542 --sbindir=DIR system admin executables [EPREFIX/sbin] 1543 --libexecdir=DIR program executables [EPREFIX/libexec] 1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1547 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1548 --libdir=DIR object code libraries [EPREFIX/lib] 1549 --includedir=DIR C header files [PREFIX/include] 1550 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1553 --infodir=DIR info documentation [DATAROOTDIR/info] 1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1555 --mandir=DIR man documentation [DATAROOTDIR/man] 1556 --docdir=DIR documentation root [DATAROOTDIR/doc/cups] 1557 --htmldir=DIR html documentation [DOCDIR] 1558 --dvidir=DIR dvi documentation [DOCDIR] 1559 --pdfdir=DIR pdf documentation [DOCDIR] 1560 --psdir=DIR ps documentation [DOCDIR] 1561_ACEOF 1562 1563 cat <<\_ACEOF 1564 1565System types: 1566 --build=BUILD configure for building on BUILD [guessed] 1567 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1568_ACEOF 1569fi 1570 1571if test -n "$ac_init_help"; then 1572 case $ac_init_help in 1573 short | recursive ) echo "Configuration of CUPS 2.4.12:";; 1574 esac 1575 cat <<\_ACEOF 1576 1577Optional Features: 1578 --disable-option-checking ignore unrecognized --enable/--with options 1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1581 --enable-static install static libraries 1582 --enable-mallinfo build with malloc debug logging 1583 --enable-libpaper build with libpaper support 1584 --enable-libusb use libusb for USB printing 1585 --enable-tcp-wrappers use libwrap for TCP wrappers support 1586 --enable-acl build with POSIX ACL support 1587 --disable-dbus build without DBUS support 1588 --disable-shared do not create shared libraries 1589 1590 --enable-libtool-unsupported=/path/to/libtool 1591 build with libtool (UNSUPPORTED) 1592 1593 --enable-debug build with debugging symbols 1594 --enable-debug-guards build with memory allocation guards 1595 --enable-debug-printfs build with CUPS_DEBUG_LOG support 1596 --enable-maintainer turn on maintainer mode (warnings as errors) 1597 --enable-unit-tests build and run unit tests 1598 --enable-relro build with the relro option 1599 --enable-sanitizer build with AddressSanitizer 1600 --enable-gssapi enable (deprecated) GSSAPI/Kerberos support 1601 --disable-pam disable PAM support 1602 --disable-largefile omit support for large files 1603 --enable-page-logging enable page_log by default 1604 --enable-sync-on-close enable SyncOnClose (off by default) 1605 --disable-browsing disable Browsing by default 1606 --disable-default-shared 1607 disable DefaultShared by default 1608 --disable-raw-printing do not allow raw printing by default 1609 --enable-webif enable the web interface by default, default=no for 1610 macOS 1611 1612Optional Packages: 1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1615 --with-cups-build set "pkg-config --variable=build" string 1616 --with-dbusdir set DBUS configuration directory 1617 --with-adminkey set the default SystemAuthKey value 1618 --with-operkey set the default operator @AUTHKEY value 1619 --with-components set components to build: "all" (default) builds 1620 everything, "core" builds libcups and ipptool, 1621 "libcups" builds just libcups, "libcupslite" builds 1622 just libcups without driver support 1623 --with-cachedir set path for cache files 1624 --with-icondir set path for application icons 1625 --with-menudir set path for application menus 1626 --with-docdir set path for documentation 1627 --with-pkgconfpath set path for cups.pc file 1628 --with-logdir set path for log files 1629 --with-rundir set transient run-time state directory 1630 --with-optim set optimization flags 1631 --with-archflags set default architecture flags 1632 --with-ldarchflags set program architecture flags 1633 --with-domainsocket set unix domain socket name 1634 --with-gssservicename set default gss service name 1635 --with-tls=... use cdsa (macOS), gnutls, or openssl for TLS support 1636 --with-pam-module set the PAM module to use 1637 --with-dnssd=... enable DNS Service Discovery support (avahi, 1638 mdnsresponder, no, yes) 1639 --with-dnssd-libs set directory for DNS Service Discovery library 1640 --with-dnssd-includes set directory for DNS Service Discovery header files 1641 --with-container=... configure to use in container (none, snap) 1642 --with-ondemand=... Specify the on-demand launch interface (launchd, 1643 systemd, upstart) 1644 --with-systemd set directory for systemd service files 1645 --with-smfmanifestdir set path for Solaris SMF manifest 1646 --with-rcdir set path for rc scripts 1647 --with-rclevels set run levels for rc scripts 1648 --with-rcstart set start number for rc scripts 1649 --with-rcstop set stop number for rc scripts 1650 --with-xinetd set path for xinetd config files 1651 --with-languages set installed languages, default=all 1652 --with-bundledir set localization bundle directory 1653 --with-bundlelang set localization bundle base language (English or 1654 en) 1655 --with-exe-file-perm set default executable permissions value, 1656 default=0755 1657 --with-config-file-perm set default ConfigFilePerm value, default=0640 1658 --with-cupsd-file-perm set default cupsd permissions, default=0700 1659 --with-log-file-perm set default LogFilePerm value, default=0644 1660 --with-max-log-size set default MaxLogSize value, default=1m 1661 --with-error-policy set default ErrorPolicy value, default=stop-printer 1662 --with-fatal-errors set default FatalErrors value, default=config 1663 --with-log-level set default LogLevel value, default=warn 1664 --with-access-log-level set default AccessLogLevel value, default=none 1665 --with-local-protocols set default BrowseLocalProtocols, default="" 1666 --with-cups-user set default user for CUPS 1667 --with-cups-group set default group for CUPS 1668 --with-system-groups set default system groups for CUPS 1669 --with-printcap set default printcap file 1670 --with-max-copies set default max copies value, default=9999 1671 --with-snmp-address set SNMP query address, default=auto 1672 --with-snmp-community set SNMP community, default=public 1673 --with-ipp-port set port number for IPP, default=631 1674 --with-idle-exit-timeout 1675 set the default value for IdleExitTimeout, 1676 default=60 1677 --with-systemd-timeoutstartsec 1678 set TimeoutStartSec value in cups.service, 1679 default=default value in systemd 1680 1681Some influential environment variables: 1682 CC C compiler command 1683 CFLAGS C compiler flags 1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1685 nonstandard directory <lib dir> 1686 LIBS libraries to pass to the linker, e.g. -l<library> 1687 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1688 you have headers in a nonstandard directory <include dir> 1689 CPP C preprocessor 1690 CXX C++ compiler command 1691 CXXFLAGS C++ compiler flags 1692 1693Use these variables to override the choices made by `configure' or to help 1694it to find libraries and programs with nonstandard names/locations. 1695 1696Report bugs to <https://github.com/openprinting/cups/issues>. 1697CUPS home page: <https://openprinting.github.io/cups>. 1698_ACEOF 1699ac_status=$? 1700fi 1701 1702if test "$ac_init_help" = "recursive"; then 1703 # If there are subdirs, report their specific --help. 1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1705 test -d "$ac_dir" || 1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1707 continue 1708 ac_builddir=. 1709 1710case "$ac_dir" in 1711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1712*) 1713 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1714 # A ".." for each directory in $ac_dir_suffix. 1715 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1716 case $ac_top_builddir_sub in 1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1719 esac ;; 1720esac 1721ac_abs_top_builddir=$ac_pwd 1722ac_abs_builddir=$ac_pwd$ac_dir_suffix 1723# for backward compatibility: 1724ac_top_builddir=$ac_top_build_prefix 1725 1726case $srcdir in 1727 .) # We are building in place. 1728 ac_srcdir=. 1729 ac_top_srcdir=$ac_top_builddir_sub 1730 ac_abs_top_srcdir=$ac_pwd ;; 1731 [\\/]* | ?:[\\/]* ) # Absolute name. 1732 ac_srcdir=$srcdir$ac_dir_suffix; 1733 ac_top_srcdir=$srcdir 1734 ac_abs_top_srcdir=$srcdir ;; 1735 *) # Relative name. 1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1737 ac_top_srcdir=$ac_top_build_prefix$srcdir 1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1739esac 1740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1741 1742 cd "$ac_dir" || { ac_status=$?; continue; } 1743 # Check for configure.gnu first; this name is used for a wrapper for 1744 # Metaconfig's "Configure" on case-insensitive file systems. 1745 if test -f "$ac_srcdir/configure.gnu"; then 1746 echo && 1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1748 elif test -f "$ac_srcdir/configure"; then 1749 echo && 1750 $SHELL "$ac_srcdir/configure" --help=recursive 1751 else 1752 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1753 fi || ac_status=$? 1754 cd "$ac_pwd" || { ac_status=$?; break; } 1755 done 1756fi 1757 1758test -n "$ac_init_help" && exit $ac_status 1759if $ac_init_version; then 1760 cat <<\_ACEOF 1761CUPS configure 2.4.12 1762generated by GNU Autoconf 2.71 1763 1764Copyright (C) 2021 Free Software Foundation, Inc. 1765This configure script is free software; the Free Software Foundation 1766gives unlimited permission to copy, distribute and modify it. 1767_ACEOF 1768 exit 1769fi 1770 1771## ------------------------ ## 1772## Autoconf initialization. ## 1773## ------------------------ ## 1774 1775# ac_fn_c_try_compile LINENO 1776# -------------------------- 1777# Try to compile conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_c_try_compile () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest.beam 1782 if { { ac_try="$ac_compile" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788printf "%s\n" "$ac_try_echo"; } >&5 1789 (eval "$ac_compile") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest.$ac_objext 1801then : 1802 ac_retval=0 1803else $as_nop 1804 printf "%s\n" "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_compile 1813 1814# ac_fn_c_try_cpp LINENO 1815# ---------------------- 1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_c_try_cpp () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 if { { ac_try="$ac_cpp conftest.$ac_ext" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826printf "%s\n" "$ac_try_echo"; } >&5 1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } > conftest.i && { 1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } 1839then : 1840 ac_retval=0 1841else $as_nop 1842 printf "%s\n" "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_cpp 1851 1852# ac_fn_cxx_try_compile LINENO 1853# ---------------------------- 1854# Try to compile conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_cxx_try_compile () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 rm -f conftest.$ac_objext conftest.beam 1859 if { { ac_try="$ac_compile" 1860case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863esac 1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865printf "%s\n" "$ac_try_echo"; } >&5 1866 (eval "$ac_compile") 2>conftest.err 1867 ac_status=$? 1868 if test -s conftest.err; then 1869 grep -v '^ *+' conftest.err >conftest.er1 1870 cat conftest.er1 >&5 1871 mv -f conftest.er1 conftest.err 1872 fi 1873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1874 test $ac_status = 0; } && { 1875 test -z "$ac_cxx_werror_flag" || 1876 test ! -s conftest.err 1877 } && test -s conftest.$ac_objext 1878then : 1879 ac_retval=0 1880else $as_nop 1881 printf "%s\n" "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889} # ac_fn_cxx_try_compile 1890 1891# ac_fn_c_try_link LINENO 1892# ----------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_c_try_link () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904printf "%s\n" "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>conftest.err 1906 ac_status=$? 1907 if test -s conftest.err; then 1908 grep -v '^ *+' conftest.err >conftest.er1 1909 cat conftest.er1 >&5 1910 mv -f conftest.er1 conftest.err 1911 fi 1912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { 1914 test -z "$ac_c_werror_flag" || 1915 test ! -s conftest.err 1916 } && test -s conftest$ac_exeext && { 1917 test "$cross_compiling" = yes || 1918 test -x conftest$ac_exeext 1919 } 1920then : 1921 ac_retval=0 1922else $as_nop 1923 printf "%s\n" "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926 ac_retval=1 1927fi 1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1930 # interfere with the next link command; also delete a directory that is 1931 # left behind by Apple's compiler. We do this before executing the actions. 1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_c_try_link 1937 1938# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1939# ------------------------------------------------------- 1940# Tests whether HEADER exists and can be compiled using the include files in 1941# INCLUDES, setting the cache variable VAR accordingly. 1942ac_fn_c_check_header_compile () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1946printf %s "checking for $2... " >&6; } 1947if eval test \${$3+y} 1948then : 1949 printf %s "(cached) " >&6 1950else $as_nop 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO" 1957then : 1958 eval "$3=yes" 1959else $as_nop 1960 eval "$3=no" 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1963fi 1964eval ac_res=\$$3 1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966printf "%s\n" "$ac_res" >&6; } 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 1969} # ac_fn_c_check_header_compile 1970 1971# ac_fn_c_check_func LINENO FUNC VAR 1972# ---------------------------------- 1973# Tests whether FUNC exists, setting the cache variable VAR accordingly 1974ac_fn_c_check_func () 1975{ 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978printf %s "checking for $2... " >&6; } 1979if eval test \${$3+y} 1980then : 1981 printf %s "(cached) " >&6 1982else $as_nop 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984/* end confdefs.h. */ 1985/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1986 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1987#define $2 innocuous_$2 1988 1989/* System header to define __stub macros and hopefully few prototypes, 1990 which can conflict with char $2 (); below. */ 1991 1992#include <limits.h> 1993#undef $2 1994 1995/* Override any GCC internal prototype to avoid an error. 1996 Use char because int might match the return type of a GCC 1997 builtin and then its argument prototype would still apply. */ 1998#ifdef __cplusplus 1999extern "C" 2000#endif 2001char $2 (); 2002/* The GNU C library defines this for functions which it implements 2003 to always fail with ENOSYS. Some functions are actually named 2004 something starting with __ and the normal name is an alias. */ 2005#if defined __stub_$2 || defined __stub___$2 2006choke me 2007#endif 2008 2009int 2010main (void) 2011{ 2012return $2 (); 2013 ; 2014 return 0; 2015} 2016_ACEOF 2017if ac_fn_c_try_link "$LINENO" 2018then : 2019 eval "$3=yes" 2020else $as_nop 2021 eval "$3=no" 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2024 conftest$ac_exeext conftest.$ac_ext 2025fi 2026eval ac_res=\$$3 2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028printf "%s\n" "$ac_res" >&6; } 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 2031} # ac_fn_c_check_func 2032 2033# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2034# ---------------------------------------------------- 2035# Tries to find if the field MEMBER exists in type AGGR, after including 2036# INCLUDES, setting cache variable VAR accordingly. 2037ac_fn_c_check_member () 2038{ 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2041printf %s "checking for $2.$3... " >&6; } 2042if eval test \${$4+y} 2043then : 2044 printf %s "(cached) " >&6 2045else $as_nop 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$5 2049int 2050main (void) 2051{ 2052static $2 ac_aggr; 2053if (ac_aggr.$3) 2054return 0; 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO" 2060then : 2061 eval "$4=yes" 2062else $as_nop 2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065$5 2066int 2067main (void) 2068{ 2069static $2 ac_aggr; 2070if (sizeof ac_aggr.$3) 2071return 0; 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO" 2077then : 2078 eval "$4=yes" 2079else $as_nop 2080 eval "$4=no" 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2085fi 2086eval ac_res=\$$4 2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2088printf "%s\n" "$ac_res" >&6; } 2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2090 2091} # ac_fn_c_check_member 2092ac_configure_args_raw= 2093for ac_arg 2094do 2095 case $ac_arg in 2096 *\'*) 2097 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2098 esac 2099 as_fn_append ac_configure_args_raw " '$ac_arg'" 2100done 2101 2102case $ac_configure_args_raw in 2103 *$as_nl*) 2104 ac_safe_unquote= ;; 2105 *) 2106 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2107 ac_unsafe_a="$ac_unsafe_z#~" 2108 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2109 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2110esac 2111 2112cat >config.log <<_ACEOF 2113This file contains any messages produced by compilers while 2114running configure, to aid debugging if configure makes a mistake. 2115 2116It was created by CUPS $as_me 2.4.12, which was 2117generated by GNU Autoconf 2.71. Invocation command line was 2118 2119 $ $0$ac_configure_args_raw 2120 2121_ACEOF 2122exec 5>>config.log 2123{ 2124cat <<_ASUNAME 2125## --------- ## 2126## Platform. ## 2127## --------- ## 2128 2129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2130uname -m = `(uname -m) 2>/dev/null || echo unknown` 2131uname -r = `(uname -r) 2>/dev/null || echo unknown` 2132uname -s = `(uname -s) 2>/dev/null || echo unknown` 2133uname -v = `(uname -v) 2>/dev/null || echo unknown` 2134 2135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2137 2138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2145 2146_ASUNAME 2147 2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2149for as_dir in $PATH 2150do 2151 IFS=$as_save_IFS 2152 case $as_dir in #((( 2153 '') as_dir=./ ;; 2154 */) ;; 2155 *) as_dir=$as_dir/ ;; 2156 esac 2157 printf "%s\n" "PATH: $as_dir" 2158 done 2159IFS=$as_save_IFS 2160 2161} >&5 2162 2163cat >&5 <<_ACEOF 2164 2165 2166## ----------- ## 2167## Core tests. ## 2168## ----------- ## 2169 2170_ACEOF 2171 2172 2173# Keep a trace of the command line. 2174# Strip out --no-create and --no-recursion so they do not pile up. 2175# Strip out --silent because we don't want to record it for future runs. 2176# Also quote any args containing shell meta-characters. 2177# Make two passes to allow for proper duplicate-argument suppression. 2178ac_configure_args= 2179ac_configure_args0= 2180ac_configure_args1= 2181ac_must_keep_next=false 2182for ac_pass in 1 2 2183do 2184 for ac_arg 2185 do 2186 case $ac_arg in 2187 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2189 | -silent | --silent | --silen | --sile | --sil) 2190 continue ;; 2191 *\'*) 2192 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2193 esac 2194 case $ac_pass in 2195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2196 2) 2197 as_fn_append ac_configure_args1 " '$ac_arg'" 2198 if test $ac_must_keep_next = true; then 2199 ac_must_keep_next=false # Got value, back to normal. 2200 else 2201 case $ac_arg in 2202 *=* | --config-cache | -C | -disable-* | --disable-* \ 2203 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2204 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2205 | -with-* | --with-* | -without-* | --without-* | --x) 2206 case "$ac_configure_args0 " in 2207 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2208 esac 2209 ;; 2210 -* ) ac_must_keep_next=true ;; 2211 esac 2212 fi 2213 as_fn_append ac_configure_args " '$ac_arg'" 2214 ;; 2215 esac 2216 done 2217done 2218{ ac_configure_args0=; unset ac_configure_args0;} 2219{ ac_configure_args1=; unset ac_configure_args1;} 2220 2221# When interrupted or exit'd, cleanup temporary files, and complete 2222# config.log. We remove comments because anyway the quotes in there 2223# would cause problems or look ugly. 2224# WARNING: Use '\'' to represent an apostrophe within the trap. 2225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2226trap 'exit_status=$? 2227 # Sanitize IFS. 2228 IFS=" "" $as_nl" 2229 # Save into config.log some information that might help in debugging. 2230 { 2231 echo 2232 2233 printf "%s\n" "## ---------------- ## 2234## Cache variables. ## 2235## ---------------- ##" 2236 echo 2237 # The following way of writing the cache mishandles newlines in values, 2238( 2239 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2240 eval ac_val=\$$ac_var 2241 case $ac_val in #( 2242 *${as_nl}*) 2243 case $ac_var in #( 2244 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2245printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2246 esac 2247 case $ac_var in #( 2248 _ | IFS | as_nl) ;; #( 2249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2250 *) { eval $ac_var=; unset $ac_var;} ;; 2251 esac ;; 2252 esac 2253 done 2254 (set) 2>&1 | 2255 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2256 *${as_nl}ac_space=\ *) 2257 sed -n \ 2258 "s/'\''/'\''\\\\'\'''\''/g; 2259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2260 ;; #( 2261 *) 2262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2263 ;; 2264 esac | 2265 sort 2266) 2267 echo 2268 2269 printf "%s\n" "## ----------------- ## 2270## Output variables. ## 2271## ----------------- ##" 2272 echo 2273 for ac_var in $ac_subst_vars 2274 do 2275 eval ac_val=\$$ac_var 2276 case $ac_val in 2277 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2278 esac 2279 printf "%s\n" "$ac_var='\''$ac_val'\''" 2280 done | sort 2281 echo 2282 2283 if test -n "$ac_subst_files"; then 2284 printf "%s\n" "## ------------------- ## 2285## File substitutions. ## 2286## ------------------- ##" 2287 echo 2288 for ac_var in $ac_subst_files 2289 do 2290 eval ac_val=\$$ac_var 2291 case $ac_val in 2292 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2293 esac 2294 printf "%s\n" "$ac_var='\''$ac_val'\''" 2295 done | sort 2296 echo 2297 fi 2298 2299 if test -s confdefs.h; then 2300 printf "%s\n" "## ----------- ## 2301## confdefs.h. ## 2302## ----------- ##" 2303 echo 2304 cat confdefs.h 2305 echo 2306 fi 2307 test "$ac_signal" != 0 && 2308 printf "%s\n" "$as_me: caught signal $ac_signal" 2309 printf "%s\n" "$as_me: exit $exit_status" 2310 } >&5 2311 rm -f core *.core core.conftest.* && 2312 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2313 exit $exit_status 2314' 0 2315for ac_signal in 1 2 13 15; do 2316 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2317done 2318ac_signal=0 2319 2320# confdefs.h avoids OS command line length limits that DEFS can exceed. 2321rm -f -r conftest* confdefs.h 2322 2323printf "%s\n" "/* confdefs.h */" > confdefs.h 2324 2325# Predefined preprocessor variables. 2326 2327printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2328 2329printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2330 2331printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2332 2333printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2334 2335printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2336 2337printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2338 2339 2340# Let the site file select an alternate cache file if it wants to. 2341# Prefer an explicitly selected file to automatically selected ones. 2342if test -n "$CONFIG_SITE"; then 2343 ac_site_files="$CONFIG_SITE" 2344elif test "x$prefix" != xNONE; then 2345 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2346else 2347 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2348fi 2349 2350for ac_site_file in $ac_site_files 2351do 2352 case $ac_site_file in #( 2353 */*) : 2354 ;; #( 2355 *) : 2356 ac_site_file=./$ac_site_file ;; 2357esac 2358 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2360printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2361 sed 's/^/| /' "$ac_site_file" >&5 2362 . "$ac_site_file" \ 2363 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2365as_fn_error $? "failed to load site script $ac_site_file 2366See \`config.log' for more details" "$LINENO" 5; } 2367 fi 2368done 2369 2370if test -r "$cache_file"; then 2371 # Some versions of bash will fail to source /dev/null (special files 2372 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2373 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2375printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2376 case $cache_file in 2377 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2378 *) . "./$cache_file";; 2379 esac 2380 fi 2381else 2382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2383printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2384 >$cache_file 2385fi 2386 2387# Test code for whether the C compiler supports C89 (global declarations) 2388ac_c_conftest_c89_globals=' 2389/* Does the compiler advertise C89 conformance? 2390 Do not test the value of __STDC__, because some compilers set it to 0 2391 while being otherwise adequately conformant. */ 2392#if !defined __STDC__ 2393# error "Compiler does not advertise C89 conformance" 2394#endif 2395 2396#include <stddef.h> 2397#include <stdarg.h> 2398struct stat; 2399/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2400struct buf { int x; }; 2401struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2402static char *e (p, i) 2403 char **p; 2404 int i; 2405{ 2406 return p[i]; 2407} 2408static char *f (char * (*g) (char **, int), char **p, ...) 2409{ 2410 char *s; 2411 va_list v; 2412 va_start (v,p); 2413 s = g (p, va_arg (v,int)); 2414 va_end (v); 2415 return s; 2416} 2417 2418/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2419 function prototypes and stuff, but not \xHH hex character constants. 2420 These do not provoke an error unfortunately, instead are silently treated 2421 as an "x". The following induces an error, until -std is added to get 2422 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2423 array size at least. It is necessary to write \x00 == 0 to get something 2424 that is true only with -std. */ 2425int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2426 2427/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2428 inside strings and character constants. */ 2429#define FOO(x) '\''x'\'' 2430int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2431 2432int test (int i, double x); 2433struct s1 {int (*f) (int a);}; 2434struct s2 {int (*f) (double a);}; 2435int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2436 int, int);' 2437 2438# Test code for whether the C compiler supports C89 (body of main). 2439ac_c_conftest_c89_main=' 2440ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2441' 2442 2443# Test code for whether the C compiler supports C99 (global declarations) 2444ac_c_conftest_c99_globals=' 2445// Does the compiler advertise C99 conformance? 2446#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2447# error "Compiler does not advertise C99 conformance" 2448#endif 2449 2450#include <stdbool.h> 2451extern int puts (const char *); 2452extern int printf (const char *, ...); 2453extern int dprintf (int, const char *, ...); 2454extern void *malloc (size_t); 2455 2456// Check varargs macros. These examples are taken from C99 6.10.3.5. 2457// dprintf is used instead of fprintf to avoid needing to declare 2458// FILE and stderr. 2459#define debug(...) dprintf (2, __VA_ARGS__) 2460#define showlist(...) puts (#__VA_ARGS__) 2461#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2462static void 2463test_varargs_macros (void) 2464{ 2465 int x = 1234; 2466 int y = 5678; 2467 debug ("Flag"); 2468 debug ("X = %d\n", x); 2469 showlist (The first, second, and third items.); 2470 report (x>y, "x is %d but y is %d", x, y); 2471} 2472 2473// Check long long types. 2474#define BIG64 18446744073709551615ull 2475#define BIG32 4294967295ul 2476#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2477#if !BIG_OK 2478 #error "your preprocessor is broken" 2479#endif 2480#if BIG_OK 2481#else 2482 #error "your preprocessor is broken" 2483#endif 2484static long long int bignum = -9223372036854775807LL; 2485static unsigned long long int ubignum = BIG64; 2486 2487struct incomplete_array 2488{ 2489 int datasize; 2490 double data[]; 2491}; 2492 2493struct named_init { 2494 int number; 2495 const wchar_t *name; 2496 double average; 2497}; 2498 2499typedef const char *ccp; 2500 2501static inline int 2502test_restrict (ccp restrict text) 2503{ 2504 // See if C++-style comments work. 2505 // Iterate through items via the restricted pointer. 2506 // Also check for declarations in for loops. 2507 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2508 continue; 2509 return 0; 2510} 2511 2512// Check varargs and va_copy. 2513static bool 2514test_varargs (const char *format, ...) 2515{ 2516 va_list args; 2517 va_start (args, format); 2518 va_list args_copy; 2519 va_copy (args_copy, args); 2520 2521 const char *str = ""; 2522 int number = 0; 2523 float fnumber = 0; 2524 2525 while (*format) 2526 { 2527 switch (*format++) 2528 { 2529 case '\''s'\'': // string 2530 str = va_arg (args_copy, const char *); 2531 break; 2532 case '\''d'\'': // int 2533 number = va_arg (args_copy, int); 2534 break; 2535 case '\''f'\'': // float 2536 fnumber = va_arg (args_copy, double); 2537 break; 2538 default: 2539 break; 2540 } 2541 } 2542 va_end (args_copy); 2543 va_end (args); 2544 2545 return *str && number && fnumber; 2546} 2547' 2548 2549# Test code for whether the C compiler supports C99 (body of main). 2550ac_c_conftest_c99_main=' 2551 // Check bool. 2552 _Bool success = false; 2553 success |= (argc != 0); 2554 2555 // Check restrict. 2556 if (test_restrict ("String literal") == 0) 2557 success = true; 2558 char *restrict newvar = "Another string"; 2559 2560 // Check varargs. 2561 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2562 test_varargs_macros (); 2563 2564 // Check flexible array members. 2565 struct incomplete_array *ia = 2566 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2567 ia->datasize = 10; 2568 for (int i = 0; i < ia->datasize; ++i) 2569 ia->data[i] = i * 1.234; 2570 2571 // Check named initializers. 2572 struct named_init ni = { 2573 .number = 34, 2574 .name = L"Test wide string", 2575 .average = 543.34343, 2576 }; 2577 2578 ni.number = 58; 2579 2580 int dynamic_array[ni.number]; 2581 dynamic_array[0] = argv[0][0]; 2582 dynamic_array[ni.number - 1] = 543; 2583 2584 // work around unused variable warnings 2585 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2586 || dynamic_array[ni.number - 1] != 543); 2587' 2588 2589# Test code for whether the C compiler supports C11 (global declarations) 2590ac_c_conftest_c11_globals=' 2591// Does the compiler advertise C11 conformance? 2592#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2593# error "Compiler does not advertise C11 conformance" 2594#endif 2595 2596// Check _Alignas. 2597char _Alignas (double) aligned_as_double; 2598char _Alignas (0) no_special_alignment; 2599extern char aligned_as_int; 2600char _Alignas (0) _Alignas (int) aligned_as_int; 2601 2602// Check _Alignof. 2603enum 2604{ 2605 int_alignment = _Alignof (int), 2606 int_array_alignment = _Alignof (int[100]), 2607 char_alignment = _Alignof (char) 2608}; 2609_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2610 2611// Check _Noreturn. 2612int _Noreturn does_not_return (void) { for (;;) continue; } 2613 2614// Check _Static_assert. 2615struct test_static_assert 2616{ 2617 int x; 2618 _Static_assert (sizeof (int) <= sizeof (long int), 2619 "_Static_assert does not work in struct"); 2620 long int y; 2621}; 2622 2623// Check UTF-8 literals. 2624#define u8 syntax error! 2625char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2626 2627// Check duplicate typedefs. 2628typedef long *long_ptr; 2629typedef long int *long_ptr; 2630typedef long_ptr long_ptr; 2631 2632// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2633struct anonymous 2634{ 2635 union { 2636 struct { int i; int j; }; 2637 struct { int k; long int l; } w; 2638 }; 2639 int m; 2640} v1; 2641' 2642 2643# Test code for whether the C compiler supports C11 (body of main). 2644ac_c_conftest_c11_main=' 2645 _Static_assert ((offsetof (struct anonymous, i) 2646 == offsetof (struct anonymous, w.k)), 2647 "Anonymous union alignment botch"); 2648 v1.i = 2; 2649 v1.w.k = 5; 2650 ok |= v1.i != 5; 2651' 2652 2653# Test code for whether the C compiler supports C11 (complete). 2654ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2655${ac_c_conftest_c99_globals} 2656${ac_c_conftest_c11_globals} 2657 2658int 2659main (int argc, char **argv) 2660{ 2661 int ok = 0; 2662 ${ac_c_conftest_c89_main} 2663 ${ac_c_conftest_c99_main} 2664 ${ac_c_conftest_c11_main} 2665 return ok; 2666} 2667" 2668 2669# Test code for whether the C compiler supports C99 (complete). 2670ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2671${ac_c_conftest_c99_globals} 2672 2673int 2674main (int argc, char **argv) 2675{ 2676 int ok = 0; 2677 ${ac_c_conftest_c89_main} 2678 ${ac_c_conftest_c99_main} 2679 return ok; 2680} 2681" 2682 2683# Test code for whether the C compiler supports C89 (complete). 2684ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2685 2686int 2687main (int argc, char **argv) 2688{ 2689 int ok = 0; 2690 ${ac_c_conftest_c89_main} 2691 return ok; 2692} 2693" 2694 2695# Test code for whether the C++ compiler supports C++98 (global declarations) 2696ac_cxx_conftest_cxx98_globals=' 2697// Does the compiler advertise C++98 conformance? 2698#if !defined __cplusplus || __cplusplus < 199711L 2699# error "Compiler does not advertise C++98 conformance" 2700#endif 2701 2702// These inclusions are to reject old compilers that 2703// lack the unsuffixed header files. 2704#include <cstdlib> 2705#include <exception> 2706 2707// <cassert> and <cstring> are *not* freestanding headers in C++98. 2708extern void assert (int); 2709namespace std { 2710 extern int strcmp (const char *, const char *); 2711} 2712 2713// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2714using std::exception; 2715using std::strcmp; 2716 2717namespace { 2718 2719void test_exception_syntax() 2720{ 2721 try { 2722 throw "test"; 2723 } catch (const char *s) { 2724 // Extra parentheses suppress a warning when building autoconf itself, 2725 // due to lint rules shared with more typical C programs. 2726 assert (!(strcmp) (s, "test")); 2727 } 2728} 2729 2730template <typename T> struct test_template 2731{ 2732 T const val; 2733 explicit test_template(T t) : val(t) {} 2734 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2735}; 2736 2737} // anonymous namespace 2738' 2739 2740# Test code for whether the C++ compiler supports C++98 (body of main) 2741ac_cxx_conftest_cxx98_main=' 2742 assert (argc); 2743 assert (! argv[0]); 2744{ 2745 test_exception_syntax (); 2746 test_template<double> tt (2.0); 2747 assert (tt.add (4) == 6.0); 2748 assert (true && !false); 2749} 2750' 2751 2752# Test code for whether the C++ compiler supports C++11 (global declarations) 2753ac_cxx_conftest_cxx11_globals=' 2754// Does the compiler advertise C++ 2011 conformance? 2755#if !defined __cplusplus || __cplusplus < 201103L 2756# error "Compiler does not advertise C++11 conformance" 2757#endif 2758 2759namespace cxx11test 2760{ 2761 constexpr int get_val() { return 20; } 2762 2763 struct testinit 2764 { 2765 int i; 2766 double d; 2767 }; 2768 2769 class delegate 2770 { 2771 public: 2772 delegate(int n) : n(n) {} 2773 delegate(): delegate(2354) {} 2774 2775 virtual int getval() { return this->n; }; 2776 protected: 2777 int n; 2778 }; 2779 2780 class overridden : public delegate 2781 { 2782 public: 2783 overridden(int n): delegate(n) {} 2784 virtual int getval() override final { return this->n * 2; } 2785 }; 2786 2787 class nocopy 2788 { 2789 public: 2790 nocopy(int i): i(i) {} 2791 nocopy() = default; 2792 nocopy(const nocopy&) = delete; 2793 nocopy & operator=(const nocopy&) = delete; 2794 private: 2795 int i; 2796 }; 2797 2798 // for testing lambda expressions 2799 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2800 { 2801 return f(v); 2802 } 2803 2804 // for testing variadic templates and trailing return types 2805 template <typename V> auto sum(V first) -> V 2806 { 2807 return first; 2808 } 2809 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2810 { 2811 return first + sum(rest...); 2812 } 2813} 2814' 2815 2816# Test code for whether the C++ compiler supports C++11 (body of main) 2817ac_cxx_conftest_cxx11_main=' 2818{ 2819 // Test auto and decltype 2820 auto a1 = 6538; 2821 auto a2 = 48573953.4; 2822 auto a3 = "String literal"; 2823 2824 int total = 0; 2825 for (auto i = a3; *i; ++i) { total += *i; } 2826 2827 decltype(a2) a4 = 34895.034; 2828} 2829{ 2830 // Test constexpr 2831 short sa[cxx11test::get_val()] = { 0 }; 2832} 2833{ 2834 // Test initializer lists 2835 cxx11test::testinit il = { 4323, 435234.23544 }; 2836} 2837{ 2838 // Test range-based for 2839 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2840 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2841 for (auto &x : array) { x += 23; } 2842} 2843{ 2844 // Test lambda expressions 2845 using cxx11test::eval; 2846 assert (eval ([](int x) { return x*2; }, 21) == 42); 2847 double d = 2.0; 2848 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2849 assert (d == 5.0); 2850 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2851 assert (d == 5.0); 2852} 2853{ 2854 // Test use of variadic templates 2855 using cxx11test::sum; 2856 auto a = sum(1); 2857 auto b = sum(1, 2); 2858 auto c = sum(1.0, 2.0, 3.0); 2859} 2860{ 2861 // Test constructor delegation 2862 cxx11test::delegate d1; 2863 cxx11test::delegate d2(); 2864 cxx11test::delegate d3(45); 2865} 2866{ 2867 // Test override and final 2868 cxx11test::overridden o1(55464); 2869} 2870{ 2871 // Test nullptr 2872 char *c = nullptr; 2873} 2874{ 2875 // Test template brackets 2876 test_template<::test_template<int>> v(test_template<int>(12)); 2877} 2878{ 2879 // Unicode literals 2880 char const *utf8 = u8"UTF-8 string \u2500"; 2881 char16_t const *utf16 = u"UTF-8 string \u2500"; 2882 char32_t const *utf32 = U"UTF-32 string \u2500"; 2883} 2884' 2885 2886# Test code for whether the C compiler supports C++11 (complete). 2887ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2888${ac_cxx_conftest_cxx11_globals} 2889 2890int 2891main (int argc, char **argv) 2892{ 2893 int ok = 0; 2894 ${ac_cxx_conftest_cxx98_main} 2895 ${ac_cxx_conftest_cxx11_main} 2896 return ok; 2897} 2898" 2899 2900# Test code for whether the C compiler supports C++98 (complete). 2901ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2902int 2903main (int argc, char **argv) 2904{ 2905 int ok = 0; 2906 ${ac_cxx_conftest_cxx98_main} 2907 return ok; 2908} 2909" 2910 2911as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2912as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2913as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2914as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2915as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2916as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2917as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2918as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2919as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2920 2921# Auxiliary files required by this configure script. 2922ac_aux_files="config.guess config.sub" 2923 2924# Locations in which to look for auxiliary files. 2925ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2926 2927# Search for a directory containing all of the required auxiliary files, 2928# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2929# If we don't find one directory that contains all the files we need, 2930# we report the set of missing files from the *first* directory in 2931# $ac_aux_dir_candidates and give up. 2932ac_missing_aux_files="" 2933ac_first_candidate=: 2934printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936as_found=false 2937for as_dir in $ac_aux_dir_candidates 2938do 2939 IFS=$as_save_IFS 2940 case $as_dir in #((( 2941 '') as_dir=./ ;; 2942 */) ;; 2943 *) as_dir=$as_dir/ ;; 2944 esac 2945 as_found=: 2946 2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2948 ac_aux_dir_found=yes 2949 ac_install_sh= 2950 for ac_aux in $ac_aux_files 2951 do 2952 # As a special case, if "install-sh" is required, that requirement 2953 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2954 # and $ac_install_sh is set appropriately for whichever one is found. 2955 if test x"$ac_aux" = x"install-sh" 2956 then 2957 if test -f "${as_dir}install-sh"; then 2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2959 ac_install_sh="${as_dir}install-sh -c" 2960 elif test -f "${as_dir}install.sh"; then 2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2962 ac_install_sh="${as_dir}install.sh -c" 2963 elif test -f "${as_dir}shtool"; then 2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2965 ac_install_sh="${as_dir}shtool install -c" 2966 else 2967 ac_aux_dir_found=no 2968 if $ac_first_candidate; then 2969 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2970 else 2971 break 2972 fi 2973 fi 2974 else 2975 if test -f "${as_dir}${ac_aux}"; then 2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2977 else 2978 ac_aux_dir_found=no 2979 if $ac_first_candidate; then 2980 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2981 else 2982 break 2983 fi 2984 fi 2985 fi 2986 done 2987 if test "$ac_aux_dir_found" = yes; then 2988 ac_aux_dir="$as_dir" 2989 break 2990 fi 2991 ac_first_candidate=false 2992 2993 as_found=false 2994done 2995IFS=$as_save_IFS 2996if $as_found 2997then : 2998 2999else $as_nop 3000 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3001fi 3002 3003 3004# These three variables are undocumented and unsupported, 3005# and are intended to be withdrawn in a future Autoconf release. 3006# They can cause serious problems if a builder's source tree is in a directory 3007# whose full name contains unusual characters. 3008if test -f "${ac_aux_dir}config.guess"; then 3009 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3010fi 3011if test -f "${ac_aux_dir}config.sub"; then 3012 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3013fi 3014if test -f "$ac_aux_dir/configure"; then 3015 ac_configure="$SHELL ${ac_aux_dir}configure" 3016fi 3017 3018# Check that the precious variables saved in the cache have kept the same 3019# value. 3020ac_cache_corrupted=false 3021for ac_var in $ac_precious_vars; do 3022 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3023 eval ac_new_set=\$ac_env_${ac_var}_set 3024 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3025 eval ac_new_val=\$ac_env_${ac_var}_value 3026 case $ac_old_set,$ac_new_set in 3027 set,) 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3029printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3030 ac_cache_corrupted=: ;; 3031 ,set) 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3033printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3034 ac_cache_corrupted=: ;; 3035 ,);; 3036 *) 3037 if test "x$ac_old_val" != "x$ac_new_val"; then 3038 # differences in whitespace do not lead to failure. 3039 ac_old_val_w=`echo x $ac_old_val` 3040 ac_new_val_w=`echo x $ac_new_val` 3041 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3043printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3044 ac_cache_corrupted=: 3045 else 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3047printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3048 eval $ac_var=\$ac_old_val 3049 fi 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3051printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3053printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3054 fi;; 3055 esac 3056 # Pass precious variables to config.status. 3057 if test "$ac_new_set" = set; then 3058 case $ac_new_val in 3059 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3060 *) ac_arg=$ac_var=$ac_new_val ;; 3061 esac 3062 case " $ac_configure_args " in 3063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3064 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3065 esac 3066 fi 3067done 3068if $ac_cache_corrupted; then 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3070printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3072printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3073 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3074 and start over" "$LINENO" 5 3075fi 3076## -------------------- ## 3077## Main body of script. ## 3078## -------------------- ## 3079 3080ac_ext=c 3081ac_cpp='$CPP $CPPFLAGS' 3082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3084ac_compiler_gnu=$ac_cv_c_compiler_gnu 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 # Make sure we can run config.sub. 3095$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3096 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3097 3098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3099printf %s "checking build system type... " >&6; } 3100if test ${ac_cv_build+y} 3101then : 3102 printf %s "(cached) " >&6 3103else $as_nop 3104 ac_build_alias=$build_alias 3105test "x$ac_build_alias" = x && 3106 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3107test "x$ac_build_alias" = x && 3108 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3109ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3110 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3111 3112fi 3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3114printf "%s\n" "$ac_cv_build" >&6; } 3115case $ac_cv_build in 3116*-*-*) ;; 3117*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3118esac 3119build=$ac_cv_build 3120ac_save_IFS=$IFS; IFS='-' 3121set x $ac_cv_build 3122shift 3123build_cpu=$1 3124build_vendor=$2 3125shift; shift 3126# Remember, the first character of IFS is used to create $*, 3127# except with old shells: 3128build_os=$* 3129IFS=$ac_save_IFS 3130case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3131 3132 3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3134printf %s "checking host system type... " >&6; } 3135if test ${ac_cv_host+y} 3136then : 3137 printf %s "(cached) " >&6 3138else $as_nop 3139 if test "x$host_alias" = x; then 3140 ac_cv_host=$ac_cv_build 3141else 3142 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3143 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3144fi 3145 3146fi 3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3148printf "%s\n" "$ac_cv_host" >&6; } 3149case $ac_cv_host in 3150*-*-*) ;; 3151*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3152esac 3153host=$ac_cv_host 3154ac_save_IFS=$IFS; IFS='-' 3155set x $ac_cv_host 3156shift 3157host_cpu=$1 3158host_vendor=$2 3159shift; shift 3160# Remember, the first character of IFS is used to create $*, 3161# except with old shells: 3162host_os=$* 3163IFS=$ac_save_IFS 3164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3165 3166 3167 3168host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')" 3169host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')" 3170# Linux often does not yield an OS version we can use... 3171if test "x$host_os_version" = x 3172then : 3173 3174 host_os_version="0" 3175 3176fi 3177 3178if test "$build" = "$host" 3179then : 3180 3181 # No, build local targets 3182 LOCALTARGET="local" 3183 3184else $as_nop 3185 3186 # Yes, don't build local targets 3187 LOCALTARGET="" 3188 3189fi 3190 3191 3192for ac_prog in codesign true 3193do 3194 # Extract the first word of "$ac_prog", so it can be a program name with args. 3195set dummy $ac_prog; ac_word=$2 3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197printf %s "checking for $ac_word... " >&6; } 3198if test ${ac_cv_path_CODE_SIGN+y} 3199then : 3200 printf %s "(cached) " >&6 3201else $as_nop 3202 case $CODE_SIGN in 3203 [\\/]* | ?:[\\/]*) 3204 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path. 3205 ;; 3206 *) 3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 case $as_dir in #((( 3212 '') as_dir=./ ;; 3213 */) ;; 3214 *) as_dir=$as_dir/ ;; 3215 esac 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3218 ac_cv_path_CODE_SIGN="$as_dir$ac_word$ac_exec_ext" 3219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222done 3223 done 3224IFS=$as_save_IFS 3225 3226 ;; 3227esac 3228fi 3229CODE_SIGN=$ac_cv_path_CODE_SIGN 3230if test -n "$CODE_SIGN"; then 3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5 3232printf "%s\n" "$CODE_SIGN" >&6; } 3233else 3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235printf "%s\n" "no" >&6; } 3236fi 3237 3238 3239 test -n "$CODE_SIGN" && break 3240done 3241 3242 3243 3244ac_config_headers="$ac_config_headers config.h" 3245 3246 3247CUPS_VERSION="2.4.12" 3248CUPS_API_VERSION="$(echo 2.4.12 | awk -F. '{print $1 "." $2}')" 3249CUPS_BUILD="cups-$CUPS_VERSION" 3250 3251 3252# Check whether --with-cups_build was given. 3253if test ${with_cups_build+y} 3254then : 3255 withval=$with_cups_build; 3256 CUPS_BUILD="$withval" 3257 3258fi 3259 3260 3261 3262 3263 3264 3265printf "%s\n" "#define CUPS_SVERSION \"CUPS v$CUPS_VERSION\"" >>confdefs.h 3266 3267 3268printf "%s\n" "#define CUPS_MINIMAL \"CUPS/$CUPS_VERSION\"" >>confdefs.h 3269 3270 3271CFLAGS="${CFLAGS:=}" 3272CPPFLAGS="${CPPFLAGS:=}" 3273CXXFLAGS="${CXXFLAGS:=}" 3274LDFLAGS="${LDFLAGS:=}" 3275 3276for ac_prog in gawk mawk nawk awk 3277do 3278 # Extract the first word of "$ac_prog", so it can be a program name with args. 3279set dummy $ac_prog; ac_word=$2 3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281printf %s "checking for $ac_word... " >&6; } 3282if test ${ac_cv_prog_AWK+y} 3283then : 3284 printf %s "(cached) " >&6 3285else $as_nop 3286 if test -n "$AWK"; then 3287 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 case $as_dir in #((( 3294 '') as_dir=./ ;; 3295 */) ;; 3296 *) as_dir=$as_dir/ ;; 3297 esac 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3300 ac_cv_prog_AWK="$ac_prog" 3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi 3309fi 3310AWK=$ac_cv_prog_AWK 3311if test -n "$AWK"; then 3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3313printf "%s\n" "$AWK" >&6; } 3314else 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316printf "%s\n" "no" >&6; } 3317fi 3318 3319 3320 test -n "$AWK" && break 3321done 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332ac_ext=c 3333ac_cpp='$CPP $CPPFLAGS' 3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3336ac_compiler_gnu=$ac_cv_c_compiler_gnu 3337if test -n "$ac_tool_prefix"; then 3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3339set dummy ${ac_tool_prefix}gcc; ac_word=$2 3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341printf %s "checking for $ac_word... " >&6; } 3342if test ${ac_cv_prog_CC+y} 3343then : 3344 printf %s "(cached) " >&6 3345else $as_nop 3346 if test -n "$CC"; then 3347 ac_cv_prog_CC="$CC" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 case $as_dir in #((( 3354 '') as_dir=./ ;; 3355 */) ;; 3356 *) as_dir=$as_dir/ ;; 3357 esac 3358 for ac_exec_ext in '' $ac_executable_extensions; do 3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3360 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3362 break 2 3363 fi 3364done 3365 done 3366IFS=$as_save_IFS 3367 3368fi 3369fi 3370CC=$ac_cv_prog_CC 3371if test -n "$CC"; then 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3373printf "%s\n" "$CC" >&6; } 3374else 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376printf "%s\n" "no" >&6; } 3377fi 3378 3379 3380fi 3381if test -z "$ac_cv_prog_CC"; then 3382 ac_ct_CC=$CC 3383 # Extract the first word of "gcc", so it can be a program name with args. 3384set dummy gcc; ac_word=$2 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386printf %s "checking for $ac_word... " >&6; } 3387if test ${ac_cv_prog_ac_ct_CC+y} 3388then : 3389 printf %s "(cached) " >&6 3390else $as_nop 3391 if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393else 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 case $as_dir in #((( 3399 '') as_dir=./ ;; 3400 */) ;; 3401 *) as_dir=$as_dir/ ;; 3402 esac 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3405 ac_cv_prog_ac_ct_CC="gcc" 3406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3407 break 2 3408 fi 3409done 3410 done 3411IFS=$as_save_IFS 3412 3413fi 3414fi 3415ac_ct_CC=$ac_cv_prog_ac_ct_CC 3416if test -n "$ac_ct_CC"; then 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3418printf "%s\n" "$ac_ct_CC" >&6; } 3419else 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421printf "%s\n" "no" >&6; } 3422fi 3423 3424 if test "x$ac_ct_CC" = x; then 3425 CC="" 3426 else 3427 case $cross_compiling:$ac_tool_warned in 3428yes:) 3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3430printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3431ac_tool_warned=yes ;; 3432esac 3433 CC=$ac_ct_CC 3434 fi 3435else 3436 CC="$ac_cv_prog_CC" 3437fi 3438 3439if test -z "$CC"; then 3440 if test -n "$ac_tool_prefix"; then 3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3442set dummy ${ac_tool_prefix}cc; ac_word=$2 3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3444printf %s "checking for $ac_word... " >&6; } 3445if test ${ac_cv_prog_CC+y} 3446then : 3447 printf %s "(cached) " >&6 3448else $as_nop 3449 if test -n "$CC"; then 3450 ac_cv_prog_CC="$CC" # Let the user override the test. 3451else 3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3453for as_dir in $PATH 3454do 3455 IFS=$as_save_IFS 3456 case $as_dir in #((( 3457 '') as_dir=./ ;; 3458 */) ;; 3459 *) as_dir=$as_dir/ ;; 3460 esac 3461 for ac_exec_ext in '' $ac_executable_extensions; do 3462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3463 ac_cv_prog_CC="${ac_tool_prefix}cc" 3464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3465 break 2 3466 fi 3467done 3468 done 3469IFS=$as_save_IFS 3470 3471fi 3472fi 3473CC=$ac_cv_prog_CC 3474if test -n "$CC"; then 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3476printf "%s\n" "$CC" >&6; } 3477else 3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3479printf "%s\n" "no" >&6; } 3480fi 3481 3482 3483 fi 3484fi 3485if test -z "$CC"; then 3486 # Extract the first word of "cc", so it can be a program name with args. 3487set dummy cc; ac_word=$2 3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489printf %s "checking for $ac_word... " >&6; } 3490if test ${ac_cv_prog_CC+y} 3491then : 3492 printf %s "(cached) " >&6 3493else $as_nop 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496else 3497 ac_prog_rejected=no 3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499for as_dir in $PATH 3500do 3501 IFS=$as_save_IFS 3502 case $as_dir in #((( 3503 '') as_dir=./ ;; 3504 */) ;; 3505 *) as_dir=$as_dir/ ;; 3506 esac 3507 for ac_exec_ext in '' $ac_executable_extensions; do 3508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3509 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3510 ac_prog_rejected=yes 3511 continue 3512 fi 3513 ac_cv_prog_CC="cc" 3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518 done 3519IFS=$as_save_IFS 3520 3521if test $ac_prog_rejected = yes; then 3522 # We found a bogon in the path, so make sure we never use it. 3523 set dummy $ac_cv_prog_CC 3524 shift 3525 if test $# != 0; then 3526 # We chose a different compiler from the bogus one. 3527 # However, it has the same basename, so the bogon will be chosen 3528 # first if we set CC to just the basename; use the full file name. 3529 shift 3530 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3531 fi 3532fi 3533fi 3534fi 3535CC=$ac_cv_prog_CC 3536if test -n "$CC"; then 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3538printf "%s\n" "$CC" >&6; } 3539else 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541printf "%s\n" "no" >&6; } 3542fi 3543 3544 3545fi 3546if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 for ac_prog in cl.exe 3549 do 3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3553printf %s "checking for $ac_word... " >&6; } 3554if test ${ac_cv_prog_CC+y} 3555then : 3556 printf %s "(cached) " >&6 3557else $as_nop 3558 if test -n "$CC"; then 3559 ac_cv_prog_CC="$CC" # Let the user override the test. 3560else 3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 case $as_dir in #((( 3566 '') as_dir=./ ;; 3567 */) ;; 3568 *) as_dir=$as_dir/ ;; 3569 esac 3570 for ac_exec_ext in '' $ac_executable_extensions; do 3571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3574 break 2 3575 fi 3576done 3577 done 3578IFS=$as_save_IFS 3579 3580fi 3581fi 3582CC=$ac_cv_prog_CC 3583if test -n "$CC"; then 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3585printf "%s\n" "$CC" >&6; } 3586else 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3588printf "%s\n" "no" >&6; } 3589fi 3590 3591 3592 test -n "$CC" && break 3593 done 3594fi 3595if test -z "$CC"; then 3596 ac_ct_CC=$CC 3597 for ac_prog in cl.exe 3598do 3599 # Extract the first word of "$ac_prog", so it can be a program name with args. 3600set dummy $ac_prog; ac_word=$2 3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602printf %s "checking for $ac_word... " >&6; } 3603if test ${ac_cv_prog_ac_ct_CC+y} 3604then : 3605 printf %s "(cached) " >&6 3606else $as_nop 3607 if test -n "$ac_ct_CC"; then 3608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3609else 3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611for as_dir in $PATH 3612do 3613 IFS=$as_save_IFS 3614 case $as_dir in #((( 3615 '') as_dir=./ ;; 3616 */) ;; 3617 *) as_dir=$as_dir/ ;; 3618 esac 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3621 ac_cv_prog_ac_ct_CC="$ac_prog" 3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625done 3626 done 3627IFS=$as_save_IFS 3628 3629fi 3630fi 3631ac_ct_CC=$ac_cv_prog_ac_ct_CC 3632if test -n "$ac_ct_CC"; then 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3634printf "%s\n" "$ac_ct_CC" >&6; } 3635else 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3637printf "%s\n" "no" >&6; } 3638fi 3639 3640 3641 test -n "$ac_ct_CC" && break 3642done 3643 3644 if test "x$ac_ct_CC" = x; then 3645 CC="" 3646 else 3647 case $cross_compiling:$ac_tool_warned in 3648yes:) 3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3651ac_tool_warned=yes ;; 3652esac 3653 CC=$ac_ct_CC 3654 fi 3655fi 3656 3657fi 3658if test -z "$CC"; then 3659 if test -n "$ac_tool_prefix"; then 3660 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3661set dummy ${ac_tool_prefix}clang; ac_word=$2 3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663printf %s "checking for $ac_word... " >&6; } 3664if test ${ac_cv_prog_CC+y} 3665then : 3666 printf %s "(cached) " >&6 3667else $as_nop 3668 if test -n "$CC"; then 3669 ac_cv_prog_CC="$CC" # Let the user override the test. 3670else 3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672for as_dir in $PATH 3673do 3674 IFS=$as_save_IFS 3675 case $as_dir in #((( 3676 '') as_dir=./ ;; 3677 */) ;; 3678 *) as_dir=$as_dir/ ;; 3679 esac 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_CC="${ac_tool_prefix}clang" 3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686done 3687 done 3688IFS=$as_save_IFS 3689 3690fi 3691fi 3692CC=$ac_cv_prog_CC 3693if test -n "$CC"; then 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3695printf "%s\n" "$CC" >&6; } 3696else 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3698printf "%s\n" "no" >&6; } 3699fi 3700 3701 3702fi 3703if test -z "$ac_cv_prog_CC"; then 3704 ac_ct_CC=$CC 3705 # Extract the first word of "clang", so it can be a program name with args. 3706set dummy clang; ac_word=$2 3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708printf %s "checking for $ac_word... " >&6; } 3709if test ${ac_cv_prog_ac_ct_CC+y} 3710then : 3711 printf %s "(cached) " >&6 3712else $as_nop 3713 if test -n "$ac_ct_CC"; then 3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3715else 3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717for as_dir in $PATH 3718do 3719 IFS=$as_save_IFS 3720 case $as_dir in #((( 3721 '') as_dir=./ ;; 3722 */) ;; 3723 *) as_dir=$as_dir/ ;; 3724 esac 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3727 ac_cv_prog_ac_ct_CC="clang" 3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731done 3732 done 3733IFS=$as_save_IFS 3734 3735fi 3736fi 3737ac_ct_CC=$ac_cv_prog_ac_ct_CC 3738if test -n "$ac_ct_CC"; then 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3740printf "%s\n" "$ac_ct_CC" >&6; } 3741else 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743printf "%s\n" "no" >&6; } 3744fi 3745 3746 if test "x$ac_ct_CC" = x; then 3747 CC="" 3748 else 3749 case $cross_compiling:$ac_tool_warned in 3750yes:) 3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3753ac_tool_warned=yes ;; 3754esac 3755 CC=$ac_ct_CC 3756 fi 3757else 3758 CC="$ac_cv_prog_CC" 3759fi 3760 3761fi 3762 3763 3764test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3766as_fn_error $? "no acceptable C compiler found in \$PATH 3767See \`config.log' for more details" "$LINENO" 5; } 3768 3769# Provide some information about the compiler. 3770printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3771set X $ac_compile 3772ac_compiler=$2 3773for ac_option in --version -v -V -qversion -version; do 3774 { { ac_try="$ac_compiler $ac_option >&5" 3775case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778esac 3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3780printf "%s\n" "$ac_try_echo"; } >&5 3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3782 ac_status=$? 3783 if test -s conftest.err; then 3784 sed '10a\ 3785... rest of stderr output deleted ... 3786 10q' conftest.err >conftest.er1 3787 cat conftest.er1 >&5 3788 fi 3789 rm -f conftest.er1 conftest.err 3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3791 test $ac_status = 0; } 3792done 3793 3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796 3797int 3798main (void) 3799{ 3800 3801 ; 3802 return 0; 3803} 3804_ACEOF 3805ac_clean_files_save=$ac_clean_files 3806ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3807# Try to create an executable without -o first, disregard a.out. 3808# It will help us diagnose broken compilers, and finding out an intuition 3809# of exeext. 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3811printf %s "checking whether the C compiler works... " >&6; } 3812ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3813 3814# The possible output files: 3815ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3816 3817ac_rmfiles= 3818for ac_file in $ac_files 3819do 3820 case $ac_file in 3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3822 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3823 esac 3824done 3825rm -f $ac_rmfiles 3826 3827if { { ac_try="$ac_link_default" 3828case "(($ac_try" in 3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3830 *) ac_try_echo=$ac_try;; 3831esac 3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3833printf "%s\n" "$ac_try_echo"; } >&5 3834 (eval "$ac_link_default") 2>&5 3835 ac_status=$? 3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3837 test $ac_status = 0; } 3838then : 3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3840# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3841# in a Makefile. We should not override ac_cv_exeext if it was cached, 3842# so that the user can short-circuit this test for compilers unknown to 3843# Autoconf. 3844for ac_file in $ac_files '' 3845do 3846 test -f "$ac_file" || continue 3847 case $ac_file in 3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3849 ;; 3850 [ab].out ) 3851 # We found the default executable, but exeext='' is most 3852 # certainly right. 3853 break;; 3854 *.* ) 3855 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3856 then :; else 3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3858 fi 3859 # We set ac_cv_exeext here because the later test for it is not 3860 # safe: cross compilers may not add the suffix if given an `-o' 3861 # argument, so we may need to know it at that point already. 3862 # Even if this section looks crufty: it has the advantage of 3863 # actually working. 3864 break;; 3865 * ) 3866 break;; 3867 esac 3868done 3869test "$ac_cv_exeext" = no && ac_cv_exeext= 3870 3871else $as_nop 3872 ac_file='' 3873fi 3874if test -z "$ac_file" 3875then : 3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877printf "%s\n" "no" >&6; } 3878printf "%s\n" "$as_me: failed program was:" >&5 3879sed 's/^/| /' conftest.$ac_ext >&5 3880 3881{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3882printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3883as_fn_error 77 "C compiler cannot create executables 3884See \`config.log' for more details" "$LINENO" 5; } 3885else $as_nop 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3887printf "%s\n" "yes" >&6; } 3888fi 3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3890printf %s "checking for C compiler default output file name... " >&6; } 3891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3892printf "%s\n" "$ac_file" >&6; } 3893ac_exeext=$ac_cv_exeext 3894 3895rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3896ac_clean_files=$ac_clean_files_save 3897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3898printf %s "checking for suffix of executables... " >&6; } 3899if { { ac_try="$ac_link" 3900case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903esac 3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3905printf "%s\n" "$ac_try_echo"; } >&5 3906 (eval "$ac_link") 2>&5 3907 ac_status=$? 3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; } 3910then : 3911 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3913# work properly (i.e., refer to `conftest.exe'), while it won't with 3914# `rm'. 3915for ac_file in conftest.exe conftest conftest.*; do 3916 test -f "$ac_file" || continue 3917 case $ac_file in 3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3920 break;; 3921 * ) break;; 3922 esac 3923done 3924else $as_nop 3925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3926printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3927as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3928See \`config.log' for more details" "$LINENO" 5; } 3929fi 3930rm -f conftest conftest$ac_cv_exeext 3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3932printf "%s\n" "$ac_cv_exeext" >&6; } 3933 3934rm -f conftest.$ac_ext 3935EXEEXT=$ac_cv_exeext 3936ac_exeext=$EXEEXT 3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939#include <stdio.h> 3940int 3941main (void) 3942{ 3943FILE *f = fopen ("conftest.out", "w"); 3944 return ferror (f) || fclose (f) != 0; 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950ac_clean_files="$ac_clean_files conftest.out" 3951# Check that the compiler produces executables we can run. If not, either 3952# the compiler is broken, or we cross compile. 3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3954printf %s "checking whether we are cross compiling... " >&6; } 3955if test "$cross_compiling" != yes; then 3956 { { ac_try="$ac_link" 3957case "(($ac_try" in 3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3959 *) ac_try_echo=$ac_try;; 3960esac 3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3962printf "%s\n" "$ac_try_echo"; } >&5 3963 (eval "$ac_link") 2>&5 3964 ac_status=$? 3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3966 test $ac_status = 0; } 3967 if { ac_try='./conftest$ac_cv_exeext' 3968 { { case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973printf "%s\n" "$ac_try_echo"; } >&5 3974 (eval "$ac_try") 2>&5 3975 ac_status=$? 3976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; }; }; then 3978 cross_compiling=no 3979 else 3980 if test "$cross_compiling" = maybe; then 3981 cross_compiling=yes 3982 else 3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3984printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3985as_fn_error 77 "cannot run C compiled programs. 3986If you meant to cross compile, use \`--host'. 3987See \`config.log' for more details" "$LINENO" 5; } 3988 fi 3989 fi 3990fi 3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3992printf "%s\n" "$cross_compiling" >&6; } 3993 3994rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3995ac_clean_files=$ac_clean_files_save 3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3997printf %s "checking for suffix of object files... " >&6; } 3998if test ${ac_cv_objext+y} 3999then : 4000 printf %s "(cached) " >&6 4001else $as_nop 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004 4005int 4006main (void) 4007{ 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013rm -f conftest.o conftest.obj 4014if { { ac_try="$ac_compile" 4015case "(($ac_try" in 4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4017 *) ac_try_echo=$ac_try;; 4018esac 4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4020printf "%s\n" "$ac_try_echo"; } >&5 4021 (eval "$ac_compile") 2>&5 4022 ac_status=$? 4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4024 test $ac_status = 0; } 4025then : 4026 for ac_file in conftest.o conftest.obj conftest.*; do 4027 test -f "$ac_file" || continue; 4028 case $ac_file in 4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4031 break;; 4032 esac 4033done 4034else $as_nop 4035 printf "%s\n" "$as_me: failed program was:" >&5 4036sed 's/^/| /' conftest.$ac_ext >&5 4037 4038{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4039printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4040as_fn_error $? "cannot compute suffix of object files: cannot compile 4041See \`config.log' for more details" "$LINENO" 5; } 4042fi 4043rm -f conftest.$ac_cv_objext conftest.$ac_ext 4044fi 4045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4046printf "%s\n" "$ac_cv_objext" >&6; } 4047OBJEXT=$ac_cv_objext 4048ac_objext=$OBJEXT 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4050printf %s "checking whether the compiler supports GNU C... " >&6; } 4051if test ${ac_cv_c_compiler_gnu+y} 4052then : 4053 printf %s "(cached) " >&6 4054else $as_nop 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main (void) 4060{ 4061#ifndef __GNUC__ 4062 choke me 4063#endif 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069if ac_fn_c_try_compile "$LINENO" 4070then : 4071 ac_compiler_gnu=yes 4072else $as_nop 4073 ac_compiler_gnu=no 4074fi 4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4076ac_cv_c_compiler_gnu=$ac_compiler_gnu 4077 4078fi 4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4080printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4081ac_compiler_gnu=$ac_cv_c_compiler_gnu 4082 4083if test $ac_compiler_gnu = yes; then 4084 GCC=yes 4085else 4086 GCC= 4087fi 4088ac_test_CFLAGS=${CFLAGS+y} 4089ac_save_CFLAGS=$CFLAGS 4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4091printf %s "checking whether $CC accepts -g... " >&6; } 4092if test ${ac_cv_prog_cc_g+y} 4093then : 4094 printf %s "(cached) " >&6 4095else $as_nop 4096 ac_save_c_werror_flag=$ac_c_werror_flag 4097 ac_c_werror_flag=yes 4098 ac_cv_prog_cc_g=no 4099 CFLAGS="-g" 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102 4103int 4104main (void) 4105{ 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111if ac_fn_c_try_compile "$LINENO" 4112then : 4113 ac_cv_prog_cc_g=yes 4114else $as_nop 4115 CFLAGS="" 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117/* end confdefs.h. */ 4118 4119int 4120main (void) 4121{ 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127if ac_fn_c_try_compile "$LINENO" 4128then : 4129 4130else $as_nop 4131 ac_c_werror_flag=$ac_save_c_werror_flag 4132 CFLAGS="-g" 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135 4136int 4137main (void) 4138{ 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144if ac_fn_c_try_compile "$LINENO" 4145then : 4146 ac_cv_prog_cc_g=yes 4147fi 4148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4149fi 4150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4153 ac_c_werror_flag=$ac_save_c_werror_flag 4154fi 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4156printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4157if test $ac_test_CFLAGS; then 4158 CFLAGS=$ac_save_CFLAGS 4159elif test $ac_cv_prog_cc_g = yes; then 4160 if test "$GCC" = yes; then 4161 CFLAGS="-g -O2" 4162 else 4163 CFLAGS="-g" 4164 fi 4165else 4166 if test "$GCC" = yes; then 4167 CFLAGS="-O2" 4168 else 4169 CFLAGS= 4170 fi 4171fi 4172ac_prog_cc_stdc=no 4173if test x$ac_prog_cc_stdc = xno 4174then : 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4176printf %s "checking for $CC option to enable C11 features... " >&6; } 4177if test ${ac_cv_prog_cc_c11+y} 4178then : 4179 printf %s "(cached) " >&6 4180else $as_nop 4181 ac_cv_prog_cc_c11=no 4182ac_save_CC=$CC 4183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185$ac_c_conftest_c11_program 4186_ACEOF 4187for ac_arg in '' -std=gnu11 4188do 4189 CC="$ac_save_CC $ac_arg" 4190 if ac_fn_c_try_compile "$LINENO" 4191then : 4192 ac_cv_prog_cc_c11=$ac_arg 4193fi 4194rm -f core conftest.err conftest.$ac_objext conftest.beam 4195 test "x$ac_cv_prog_cc_c11" != "xno" && break 4196done 4197rm -f conftest.$ac_ext 4198CC=$ac_save_CC 4199fi 4200 4201if test "x$ac_cv_prog_cc_c11" = xno 4202then : 4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4204printf "%s\n" "unsupported" >&6; } 4205else $as_nop 4206 if test "x$ac_cv_prog_cc_c11" = x 4207then : 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4209printf "%s\n" "none needed" >&6; } 4210else $as_nop 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4212printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4213 CC="$CC $ac_cv_prog_cc_c11" 4214fi 4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4216 ac_prog_cc_stdc=c11 4217fi 4218fi 4219if test x$ac_prog_cc_stdc = xno 4220then : 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4222printf %s "checking for $CC option to enable C99 features... " >&6; } 4223if test ${ac_cv_prog_cc_c99+y} 4224then : 4225 printf %s "(cached) " >&6 4226else $as_nop 4227 ac_cv_prog_cc_c99=no 4228ac_save_CC=$CC 4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231$ac_c_conftest_c99_program 4232_ACEOF 4233for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4234do 4235 CC="$ac_save_CC $ac_arg" 4236 if ac_fn_c_try_compile "$LINENO" 4237then : 4238 ac_cv_prog_cc_c99=$ac_arg 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.beam 4241 test "x$ac_cv_prog_cc_c99" != "xno" && break 4242done 4243rm -f conftest.$ac_ext 4244CC=$ac_save_CC 4245fi 4246 4247if test "x$ac_cv_prog_cc_c99" = xno 4248then : 4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4250printf "%s\n" "unsupported" >&6; } 4251else $as_nop 4252 if test "x$ac_cv_prog_cc_c99" = x 4253then : 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4255printf "%s\n" "none needed" >&6; } 4256else $as_nop 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4258printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4259 CC="$CC $ac_cv_prog_cc_c99" 4260fi 4261 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4262 ac_prog_cc_stdc=c99 4263fi 4264fi 4265if test x$ac_prog_cc_stdc = xno 4266then : 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4268printf %s "checking for $CC option to enable C89 features... " >&6; } 4269if test ${ac_cv_prog_cc_c89+y} 4270then : 4271 printf %s "(cached) " >&6 4272else $as_nop 4273 ac_cv_prog_cc_c89=no 4274ac_save_CC=$CC 4275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277$ac_c_conftest_c89_program 4278_ACEOF 4279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4280do 4281 CC="$ac_save_CC $ac_arg" 4282 if ac_fn_c_try_compile "$LINENO" 4283then : 4284 ac_cv_prog_cc_c89=$ac_arg 4285fi 4286rm -f core conftest.err conftest.$ac_objext conftest.beam 4287 test "x$ac_cv_prog_cc_c89" != "xno" && break 4288done 4289rm -f conftest.$ac_ext 4290CC=$ac_save_CC 4291fi 4292 4293if test "x$ac_cv_prog_cc_c89" = xno 4294then : 4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4296printf "%s\n" "unsupported" >&6; } 4297else $as_nop 4298 if test "x$ac_cv_prog_cc_c89" = x 4299then : 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4301printf "%s\n" "none needed" >&6; } 4302else $as_nop 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4304printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4305 CC="$CC $ac_cv_prog_cc_c89" 4306fi 4307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4308 ac_prog_cc_stdc=c89 4309fi 4310fi 4311 4312ac_ext=c 4313ac_cpp='$CPP $CPPFLAGS' 4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4316ac_compiler_gnu=$ac_cv_c_compiler_gnu 4317 4318ac_ext=c 4319ac_cpp='$CPP $CPPFLAGS' 4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4322ac_compiler_gnu=$ac_cv_c_compiler_gnu 4323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4324printf %s "checking how to run the C preprocessor... " >&6; } 4325# On Suns, sometimes $CPP names a directory. 4326if test -n "$CPP" && test -d "$CPP"; then 4327 CPP= 4328fi 4329if test -z "$CPP"; then 4330 if test ${ac_cv_prog_CPP+y} 4331then : 4332 printf %s "(cached) " >&6 4333else $as_nop 4334 # Double quotes because $CC needs to be expanded 4335 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 4336 do 4337 ac_preproc_ok=false 4338for ac_c_preproc_warn_flag in '' yes 4339do 4340 # Use a header file that comes with gcc, so configuring glibc 4341 # with a fresh cross-compiler works. 4342 # On the NeXT, cc -E runs the code through the compiler's parser, 4343 # not just through cpp. "Syntax error" is here to catch this case. 4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345/* end confdefs.h. */ 4346#include <limits.h> 4347 Syntax error 4348_ACEOF 4349if ac_fn_c_try_cpp "$LINENO" 4350then : 4351 4352else $as_nop 4353 # Broken: fails on valid input. 4354continue 4355fi 4356rm -f conftest.err conftest.i conftest.$ac_ext 4357 4358 # OK, works on sane cases. Now check whether nonexistent headers 4359 # can be detected and how. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <ac_nonexistent.h> 4363_ACEOF 4364if ac_fn_c_try_cpp "$LINENO" 4365then : 4366 # Broken: success on invalid input. 4367continue 4368else $as_nop 4369 # Passes both tests. 4370ac_preproc_ok=: 4371break 4372fi 4373rm -f conftest.err conftest.i conftest.$ac_ext 4374 4375done 4376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4377rm -f conftest.i conftest.err conftest.$ac_ext 4378if $ac_preproc_ok 4379then : 4380 break 4381fi 4382 4383 done 4384 ac_cv_prog_CPP=$CPP 4385 4386fi 4387 CPP=$ac_cv_prog_CPP 4388else 4389 ac_cv_prog_CPP=$CPP 4390fi 4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4392printf "%s\n" "$CPP" >&6; } 4393ac_preproc_ok=false 4394for ac_c_preproc_warn_flag in '' yes 4395do 4396 # Use a header file that comes with gcc, so configuring glibc 4397 # with a fresh cross-compiler works. 4398 # On the NeXT, cc -E runs the code through the compiler's parser, 4399 # not just through cpp. "Syntax error" is here to catch this case. 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402#include <limits.h> 4403 Syntax error 4404_ACEOF 4405if ac_fn_c_try_cpp "$LINENO" 4406then : 4407 4408else $as_nop 4409 # Broken: fails on valid input. 4410continue 4411fi 4412rm -f conftest.err conftest.i conftest.$ac_ext 4413 4414 # OK, works on sane cases. Now check whether nonexistent headers 4415 # can be detected and how. 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418#include <ac_nonexistent.h> 4419_ACEOF 4420if ac_fn_c_try_cpp "$LINENO" 4421then : 4422 # Broken: success on invalid input. 4423continue 4424else $as_nop 4425 # Passes both tests. 4426ac_preproc_ok=: 4427break 4428fi 4429rm -f conftest.err conftest.i conftest.$ac_ext 4430 4431done 4432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4433rm -f conftest.i conftest.err conftest.$ac_ext 4434if $ac_preproc_ok 4435then : 4436 4437else $as_nop 4438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4439printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4441See \`config.log' for more details" "$LINENO" 5; } 4442fi 4443 4444ac_ext=c 4445ac_cpp='$CPP $CPPFLAGS' 4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4448ac_compiler_gnu=$ac_cv_c_compiler_gnu 4449 4450 4451 4452 4453 4454 4455 4456ac_ext=cpp 4457ac_cpp='$CXXCPP $CPPFLAGS' 4458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4461if test -z "$CXX"; then 4462 if test -n "$CCC"; then 4463 CXX=$CCC 4464 else 4465 if test -n "$ac_tool_prefix"; then 4466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4467 do 4468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4469set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4471printf %s "checking for $ac_word... " >&6; } 4472if test ${ac_cv_prog_CXX+y} 4473then : 4474 printf %s "(cached) " >&6 4475else $as_nop 4476 if test -n "$CXX"; then 4477 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4478else 4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4480for as_dir in $PATH 4481do 4482 IFS=$as_save_IFS 4483 case $as_dir in #((( 4484 '') as_dir=./ ;; 4485 */) ;; 4486 *) as_dir=$as_dir/ ;; 4487 esac 4488 for ac_exec_ext in '' $ac_executable_extensions; do 4489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4492 break 2 4493 fi 4494done 4495 done 4496IFS=$as_save_IFS 4497 4498fi 4499fi 4500CXX=$ac_cv_prog_CXX 4501if test -n "$CXX"; then 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4503printf "%s\n" "$CXX" >&6; } 4504else 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4506printf "%s\n" "no" >&6; } 4507fi 4508 4509 4510 test -n "$CXX" && break 4511 done 4512fi 4513if test -z "$CXX"; then 4514 ac_ct_CXX=$CXX 4515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4516do 4517 # Extract the first word of "$ac_prog", so it can be a program name with args. 4518set dummy $ac_prog; ac_word=$2 4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4520printf %s "checking for $ac_word... " >&6; } 4521if test ${ac_cv_prog_ac_ct_CXX+y} 4522then : 4523 printf %s "(cached) " >&6 4524else $as_nop 4525 if test -n "$ac_ct_CXX"; then 4526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4527else 4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 case $as_dir in #((( 4533 '') as_dir=./ ;; 4534 */) ;; 4535 *) as_dir=$as_dir/ ;; 4536 esac 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4539 ac_cv_prog_ac_ct_CXX="$ac_prog" 4540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4541 break 2 4542 fi 4543done 4544 done 4545IFS=$as_save_IFS 4546 4547fi 4548fi 4549ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4550if test -n "$ac_ct_CXX"; then 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4552printf "%s\n" "$ac_ct_CXX" >&6; } 4553else 4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4555printf "%s\n" "no" >&6; } 4556fi 4557 4558 4559 test -n "$ac_ct_CXX" && break 4560done 4561 4562 if test "x$ac_ct_CXX" = x; then 4563 CXX="g++" 4564 else 4565 case $cross_compiling:$ac_tool_warned in 4566yes:) 4567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4568printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4569ac_tool_warned=yes ;; 4570esac 4571 CXX=$ac_ct_CXX 4572 fi 4573fi 4574 4575 fi 4576fi 4577# Provide some information about the compiler. 4578printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4579set X $ac_compile 4580ac_compiler=$2 4581for ac_option in --version -v -V -qversion; do 4582 { { ac_try="$ac_compiler $ac_option >&5" 4583case "(($ac_try" in 4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4585 *) ac_try_echo=$ac_try;; 4586esac 4587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4588printf "%s\n" "$ac_try_echo"; } >&5 4589 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4590 ac_status=$? 4591 if test -s conftest.err; then 4592 sed '10a\ 4593... rest of stderr output deleted ... 4594 10q' conftest.err >conftest.er1 4595 cat conftest.er1 >&5 4596 fi 4597 rm -f conftest.er1 conftest.err 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4599 test $ac_status = 0; } 4600done 4601 4602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 4603printf %s "checking whether the compiler supports GNU C++... " >&6; } 4604if test ${ac_cv_cxx_compiler_gnu+y} 4605then : 4606 printf %s "(cached) " >&6 4607else $as_nop 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4609/* end confdefs.h. */ 4610 4611int 4612main (void) 4613{ 4614#ifndef __GNUC__ 4615 choke me 4616#endif 4617 4618 ; 4619 return 0; 4620} 4621_ACEOF 4622if ac_fn_cxx_try_compile "$LINENO" 4623then : 4624 ac_compiler_gnu=yes 4625else $as_nop 4626 ac_compiler_gnu=no 4627fi 4628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4629ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4630 4631fi 4632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4633printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 4634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4635 4636if test $ac_compiler_gnu = yes; then 4637 GXX=yes 4638else 4639 GXX= 4640fi 4641ac_test_CXXFLAGS=${CXXFLAGS+y} 4642ac_save_CXXFLAGS=$CXXFLAGS 4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4644printf %s "checking whether $CXX accepts -g... " >&6; } 4645if test ${ac_cv_prog_cxx_g+y} 4646then : 4647 printf %s "(cached) " >&6 4648else $as_nop 4649 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4650 ac_cxx_werror_flag=yes 4651 ac_cv_prog_cxx_g=no 4652 CXXFLAGS="-g" 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655 4656int 4657main (void) 4658{ 4659 4660 ; 4661 return 0; 4662} 4663_ACEOF 4664if ac_fn_cxx_try_compile "$LINENO" 4665then : 4666 ac_cv_prog_cxx_g=yes 4667else $as_nop 4668 CXXFLAGS="" 4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670/* end confdefs.h. */ 4671 4672int 4673main (void) 4674{ 4675 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680if ac_fn_cxx_try_compile "$LINENO" 4681then : 4682 4683else $as_nop 4684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4685 CXXFLAGS="-g" 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687/* end confdefs.h. */ 4688 4689int 4690main (void) 4691{ 4692 4693 ; 4694 return 0; 4695} 4696_ACEOF 4697if ac_fn_cxx_try_compile "$LINENO" 4698then : 4699 ac_cv_prog_cxx_g=yes 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4702fi 4703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4704fi 4705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4707fi 4708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4709printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 4710if test $ac_test_CXXFLAGS; then 4711 CXXFLAGS=$ac_save_CXXFLAGS 4712elif test $ac_cv_prog_cxx_g = yes; then 4713 if test "$GXX" = yes; then 4714 CXXFLAGS="-g -O2" 4715 else 4716 CXXFLAGS="-g" 4717 fi 4718else 4719 if test "$GXX" = yes; then 4720 CXXFLAGS="-O2" 4721 else 4722 CXXFLAGS= 4723 fi 4724fi 4725ac_prog_cxx_stdcxx=no 4726if test x$ac_prog_cxx_stdcxx = xno 4727then : 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 4729printf %s "checking for $CXX option to enable C++11 features... " >&6; } 4730if test ${ac_cv_prog_cxx_11+y} 4731then : 4732 printf %s "(cached) " >&6 4733else $as_nop 4734 ac_cv_prog_cxx_11=no 4735ac_save_CXX=$CXX 4736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4737/* end confdefs.h. */ 4738$ac_cxx_conftest_cxx11_program 4739_ACEOF 4740for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 4741do 4742 CXX="$ac_save_CXX $ac_arg" 4743 if ac_fn_cxx_try_compile "$LINENO" 4744then : 4745 ac_cv_prog_cxx_cxx11=$ac_arg 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.beam 4748 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 4749done 4750rm -f conftest.$ac_ext 4751CXX=$ac_save_CXX 4752fi 4753 4754if test "x$ac_cv_prog_cxx_cxx11" = xno 4755then : 4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4757printf "%s\n" "unsupported" >&6; } 4758else $as_nop 4759 if test "x$ac_cv_prog_cxx_cxx11" = x 4760then : 4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4762printf "%s\n" "none needed" >&6; } 4763else $as_nop 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 4765printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 4766 CXX="$CXX $ac_cv_prog_cxx_cxx11" 4767fi 4768 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 4769 ac_prog_cxx_stdcxx=cxx11 4770fi 4771fi 4772if test x$ac_prog_cxx_stdcxx = xno 4773then : 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 4775printf %s "checking for $CXX option to enable C++98 features... " >&6; } 4776if test ${ac_cv_prog_cxx_98+y} 4777then : 4778 printf %s "(cached) " >&6 4779else $as_nop 4780 ac_cv_prog_cxx_98=no 4781ac_save_CXX=$CXX 4782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783/* end confdefs.h. */ 4784$ac_cxx_conftest_cxx98_program 4785_ACEOF 4786for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 4787do 4788 CXX="$ac_save_CXX $ac_arg" 4789 if ac_fn_cxx_try_compile "$LINENO" 4790then : 4791 ac_cv_prog_cxx_cxx98=$ac_arg 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.beam 4794 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 4795done 4796rm -f conftest.$ac_ext 4797CXX=$ac_save_CXX 4798fi 4799 4800if test "x$ac_cv_prog_cxx_cxx98" = xno 4801then : 4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4803printf "%s\n" "unsupported" >&6; } 4804else $as_nop 4805 if test "x$ac_cv_prog_cxx_cxx98" = x 4806then : 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4808printf "%s\n" "none needed" >&6; } 4809else $as_nop 4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 4811printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 4812 CXX="$CXX $ac_cv_prog_cxx_cxx98" 4813fi 4814 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 4815 ac_prog_cxx_stdcxx=cxx98 4816fi 4817fi 4818 4819ac_ext=c 4820ac_cpp='$CPP $CPPFLAGS' 4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4823ac_compiler_gnu=$ac_cv_c_compiler_gnu 4824 4825if test -n "$ac_tool_prefix"; then 4826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4827set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4829printf %s "checking for $ac_word... " >&6; } 4830if test ${ac_cv_prog_RANLIB+y} 4831then : 4832 printf %s "(cached) " >&6 4833else $as_nop 4834 if test -n "$RANLIB"; then 4835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4836else 4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH 4839do 4840 IFS=$as_save_IFS 4841 case $as_dir in #((( 4842 '') as_dir=./ ;; 4843 */) ;; 4844 *) as_dir=$as_dir/ ;; 4845 esac 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4850 break 2 4851 fi 4852done 4853 done 4854IFS=$as_save_IFS 4855 4856fi 4857fi 4858RANLIB=$ac_cv_prog_RANLIB 4859if test -n "$RANLIB"; then 4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4861printf "%s\n" "$RANLIB" >&6; } 4862else 4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864printf "%s\n" "no" >&6; } 4865fi 4866 4867 4868fi 4869if test -z "$ac_cv_prog_RANLIB"; then 4870 ac_ct_RANLIB=$RANLIB 4871 # Extract the first word of "ranlib", so it can be a program name with args. 4872set dummy ranlib; ac_word=$2 4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4874printf %s "checking for $ac_word... " >&6; } 4875if test ${ac_cv_prog_ac_ct_RANLIB+y} 4876then : 4877 printf %s "(cached) " >&6 4878else $as_nop 4879 if test -n "$ac_ct_RANLIB"; then 4880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4881else 4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4883for as_dir in $PATH 4884do 4885 IFS=$as_save_IFS 4886 case $as_dir in #((( 4887 '') as_dir=./ ;; 4888 */) ;; 4889 *) as_dir=$as_dir/ ;; 4890 esac 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4893 ac_cv_prog_ac_ct_RANLIB="ranlib" 4894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4895 break 2 4896 fi 4897done 4898 done 4899IFS=$as_save_IFS 4900 4901fi 4902fi 4903ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4904if test -n "$ac_ct_RANLIB"; then 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4906printf "%s\n" "$ac_ct_RANLIB" >&6; } 4907else 4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909printf "%s\n" "no" >&6; } 4910fi 4911 4912 if test "x$ac_ct_RANLIB" = x; then 4913 RANLIB=":" 4914 else 4915 case $cross_compiling:$ac_tool_warned in 4916yes:) 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4918printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4919ac_tool_warned=yes ;; 4920esac 4921 RANLIB=$ac_ct_RANLIB 4922 fi 4923else 4924 RANLIB="$ac_cv_prog_RANLIB" 4925fi 4926 4927# Extract the first word of "ar", so it can be a program name with args. 4928set dummy ar; ac_word=$2 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4930printf %s "checking for $ac_word... " >&6; } 4931if test ${ac_cv_path_AR+y} 4932then : 4933 printf %s "(cached) " >&6 4934else $as_nop 4935 case $AR in 4936 [\\/]* | ?:[\\/]*) 4937 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4938 ;; 4939 *) 4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 case $as_dir in #((( 4945 '') as_dir=./ ;; 4946 */) ;; 4947 *) as_dir=$as_dir/ ;; 4948 esac 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4951 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4953 break 2 4954 fi 4955done 4956 done 4957IFS=$as_save_IFS 4958 4959 ;; 4960esac 4961fi 4962AR=$ac_cv_path_AR 4963if test -n "$AR"; then 4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4965printf "%s\n" "$AR" >&6; } 4966else 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4968printf "%s\n" "no" >&6; } 4969fi 4970 4971 4972# Extract the first word of "chmod", so it can be a program name with args. 4973set dummy chmod; ac_word=$2 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4975printf %s "checking for $ac_word... " >&6; } 4976if test ${ac_cv_path_CHMOD+y} 4977then : 4978 printf %s "(cached) " >&6 4979else $as_nop 4980 case $CHMOD in 4981 [\\/]* | ?:[\\/]*) 4982 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4983 ;; 4984 *) 4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH 4987do 4988 IFS=$as_save_IFS 4989 case $as_dir in #((( 4990 '') as_dir=./ ;; 4991 */) ;; 4992 *) as_dir=$as_dir/ ;; 4993 esac 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4996 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" 4997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001 done 5002IFS=$as_save_IFS 5003 5004 ;; 5005esac 5006fi 5007CHMOD=$ac_cv_path_CHMOD 5008if test -n "$CHMOD"; then 5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5010printf "%s\n" "$CHMOD" >&6; } 5011else 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013printf "%s\n" "no" >&6; } 5014fi 5015 5016 5017# Extract the first word of "gzip", so it can be a program name with args. 5018set dummy gzip; ac_word=$2 5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5020printf %s "checking for $ac_word... " >&6; } 5021if test ${ac_cv_path_GZIPPROG+y} 5022then : 5023 printf %s "(cached) " >&6 5024else $as_nop 5025 case $GZIPPROG in 5026 [\\/]* | ?:[\\/]*) 5027 ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path. 5028 ;; 5029 *) 5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH 5032do 5033 IFS=$as_save_IFS 5034 case $as_dir in #((( 5035 '') as_dir=./ ;; 5036 */) ;; 5037 *) as_dir=$as_dir/ ;; 5038 esac 5039 for ac_exec_ext in '' $ac_executable_extensions; do 5040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5041 ac_cv_path_GZIPPROG="$as_dir$ac_word$ac_exec_ext" 5042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5043 break 2 5044 fi 5045done 5046 done 5047IFS=$as_save_IFS 5048 5049 ;; 5050esac 5051fi 5052GZIPPROG=$ac_cv_path_GZIPPROG 5053if test -n "$GZIPPROG"; then 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5 5055printf "%s\n" "$GZIPPROG" >&6; } 5056else 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058printf "%s\n" "no" >&6; } 5059fi 5060 5061 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 5063printf %s "checking for install-sh script... " >&6; } 5064INSTALL="`pwd`/install-sh" 5065 5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 5067printf "%s\n" "using $INSTALL" >&6; } 5068# Extract the first word of "ld", so it can be a program name with args. 5069set dummy ld; ac_word=$2 5070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5071printf %s "checking for $ac_word... " >&6; } 5072if test ${ac_cv_path_LD+y} 5073then : 5074 printf %s "(cached) " >&6 5075else $as_nop 5076 case $LD in 5077 [\\/]* | ?:[\\/]*) 5078 ac_cv_path_LD="$LD" # Let the user override the test with a path. 5079 ;; 5080 *) 5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5082for as_dir in $PATH 5083do 5084 IFS=$as_save_IFS 5085 case $as_dir in #((( 5086 '') as_dir=./ ;; 5087 */) ;; 5088 *) as_dir=$as_dir/ ;; 5089 esac 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5092 ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext" 5093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100 ;; 5101esac 5102fi 5103LD=$ac_cv_path_LD 5104if test -n "$LD"; then 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5106printf "%s\n" "$LD" >&6; } 5107else 5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5109printf "%s\n" "no" >&6; } 5110fi 5111 5112 5113# Extract the first word of "ln", so it can be a program name with args. 5114set dummy ln; ac_word=$2 5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116printf %s "checking for $ac_word... " >&6; } 5117if test ${ac_cv_path_LN+y} 5118then : 5119 printf %s "(cached) " >&6 5120else $as_nop 5121 case $LN in 5122 [\\/]* | ?:[\\/]*) 5123 ac_cv_path_LN="$LN" # Let the user override the test with a path. 5124 ;; 5125 *) 5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127for as_dir in $PATH 5128do 5129 IFS=$as_save_IFS 5130 case $as_dir in #((( 5131 '') as_dir=./ ;; 5132 */) ;; 5133 *) as_dir=$as_dir/ ;; 5134 esac 5135 for ac_exec_ext in '' $ac_executable_extensions; do 5136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5137 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext" 5138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5139 break 2 5140 fi 5141done 5142 done 5143IFS=$as_save_IFS 5144 5145 ;; 5146esac 5147fi 5148LN=$ac_cv_path_LN 5149if test -n "$LN"; then 5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 5151printf "%s\n" "$LN" >&6; } 5152else 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5154printf "%s\n" "no" >&6; } 5155fi 5156 5157 5158# Extract the first word of "mkdir", so it can be a program name with args. 5159set dummy mkdir; ac_word=$2 5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161printf %s "checking for $ac_word... " >&6; } 5162if test ${ac_cv_path_MKDIR+y} 5163then : 5164 printf %s "(cached) " >&6 5165else $as_nop 5166 case $MKDIR in 5167 [\\/]* | ?:[\\/]*) 5168 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5169 ;; 5170 *) 5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172for as_dir in $PATH 5173do 5174 IFS=$as_save_IFS 5175 case $as_dir in #((( 5176 '') as_dir=./ ;; 5177 */) ;; 5178 *) as_dir=$as_dir/ ;; 5179 esac 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5182 ac_cv_path_MKDIR="$as_dir$ac_word$ac_exec_ext" 5183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5184 break 2 5185 fi 5186done 5187 done 5188IFS=$as_save_IFS 5189 5190 ;; 5191esac 5192fi 5193MKDIR=$ac_cv_path_MKDIR 5194if test -n "$MKDIR"; then 5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 5196printf "%s\n" "$MKDIR" >&6; } 5197else 5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5199printf "%s\n" "no" >&6; } 5200fi 5201 5202 5203# Extract the first word of "mv", so it can be a program name with args. 5204set dummy mv; ac_word=$2 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206printf %s "checking for $ac_word... " >&6; } 5207if test ${ac_cv_path_MV+y} 5208then : 5209 printf %s "(cached) " >&6 5210else $as_nop 5211 case $MV in 5212 [\\/]* | ?:[\\/]*) 5213 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5214 ;; 5215 *) 5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217for as_dir in $PATH 5218do 5219 IFS=$as_save_IFS 5220 case $as_dir in #((( 5221 '') as_dir=./ ;; 5222 */) ;; 5223 *) as_dir=$as_dir/ ;; 5224 esac 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5227 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext" 5228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5229 break 2 5230 fi 5231done 5232 done 5233IFS=$as_save_IFS 5234 5235 ;; 5236esac 5237fi 5238MV=$ac_cv_path_MV 5239if test -n "$MV"; then 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 5241printf "%s\n" "$MV" >&6; } 5242else 5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5244printf "%s\n" "no" >&6; } 5245fi 5246 5247 5248# Extract the first word of "rm", so it can be a program name with args. 5249set dummy rm; ac_word=$2 5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251printf %s "checking for $ac_word... " >&6; } 5252if test ${ac_cv_path_RM+y} 5253then : 5254 printf %s "(cached) " >&6 5255else $as_nop 5256 case $RM in 5257 [\\/]* | ?:[\\/]*) 5258 ac_cv_path_RM="$RM" # Let the user override the test with a path. 5259 ;; 5260 *) 5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262for as_dir in $PATH 5263do 5264 IFS=$as_save_IFS 5265 case $as_dir in #((( 5266 '') as_dir=./ ;; 5267 */) ;; 5268 *) as_dir=$as_dir/ ;; 5269 esac 5270 for ac_exec_ext in '' $ac_executable_extensions; do 5271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5272 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext" 5273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5274 break 2 5275 fi 5276done 5277 done 5278IFS=$as_save_IFS 5279 5280 ;; 5281esac 5282fi 5283RM=$ac_cv_path_RM 5284if test -n "$RM"; then 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 5286printf "%s\n" "$RM" >&6; } 5287else 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289printf "%s\n" "no" >&6; } 5290fi 5291 5292 5293# Extract the first word of "rmdir", so it can be a program name with args. 5294set dummy rmdir; ac_word=$2 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5296printf %s "checking for $ac_word... " >&6; } 5297if test ${ac_cv_path_RMDIR+y} 5298then : 5299 printf %s "(cached) " >&6 5300else $as_nop 5301 case $RMDIR in 5302 [\\/]* | ?:[\\/]*) 5303 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 5304 ;; 5305 *) 5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH 5308do 5309 IFS=$as_save_IFS 5310 case $as_dir in #((( 5311 '') as_dir=./ ;; 5312 */) ;; 5313 *) as_dir=$as_dir/ ;; 5314 esac 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5317 ac_cv_path_RMDIR="$as_dir$ac_word$ac_exec_ext" 5318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5319 break 2 5320 fi 5321done 5322 done 5323IFS=$as_save_IFS 5324 5325 ;; 5326esac 5327fi 5328RMDIR=$ac_cv_path_RMDIR 5329if test -n "$RMDIR"; then 5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 5331printf "%s\n" "$RMDIR" >&6; } 5332else 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334printf "%s\n" "no" >&6; } 5335fi 5336 5337 5338# Extract the first word of "sed", so it can be a program name with args. 5339set dummy sed; ac_word=$2 5340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5341printf %s "checking for $ac_word... " >&6; } 5342if test ${ac_cv_path_SED+y} 5343then : 5344 printf %s "(cached) " >&6 5345else $as_nop 5346 case $SED in 5347 [\\/]* | ?:[\\/]*) 5348 ac_cv_path_SED="$SED" # Let the user override the test with a path. 5349 ;; 5350 *) 5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5352for as_dir in $PATH 5353do 5354 IFS=$as_save_IFS 5355 case $as_dir in #((( 5356 '') as_dir=./ ;; 5357 */) ;; 5358 *) as_dir=$as_dir/ ;; 5359 esac 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5362 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" 5363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370 ;; 5371esac 5372fi 5373SED=$ac_cv_path_SED 5374if test -n "$SED"; then 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 5376printf "%s\n" "$SED" >&6; } 5377else 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5379printf "%s\n" "no" >&6; } 5380fi 5381 5382 5383# Extract the first word of "xdg-open", so it can be a program name with args. 5384set dummy xdg-open; ac_word=$2 5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5386printf %s "checking for $ac_word... " >&6; } 5387if test ${ac_cv_path_XDGOPEN+y} 5388then : 5389 printf %s "(cached) " >&6 5390else $as_nop 5391 case $XDGOPEN in 5392 [\\/]* | ?:[\\/]*) 5393 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. 5394 ;; 5395 *) 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397for as_dir in $PATH 5398do 5399 IFS=$as_save_IFS 5400 case $as_dir in #((( 5401 '') as_dir=./ ;; 5402 */) ;; 5403 *) as_dir=$as_dir/ ;; 5404 esac 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5407 ac_cv_path_XDGOPEN="$as_dir$ac_word$ac_exec_ext" 5408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411done 5412 done 5413IFS=$as_save_IFS 5414 5415 ;; 5416esac 5417fi 5418XDGOPEN=$ac_cv_path_XDGOPEN 5419if test -n "$XDGOPEN"; then 5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 5421printf "%s\n" "$XDGOPEN" >&6; } 5422else 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5424printf "%s\n" "no" >&6; } 5425fi 5426 5427 5428 5429if test "x$XDGOPEN" = x 5430then : 5431 5432 CUPS_HTMLVIEW="htmlview" 5433 5434else $as_nop 5435 5436 CUPS_HTMLVIEW="$XDGOPEN" 5437 5438fi 5439 5440 5441if test "x$AR" = x 5442then : 5443 5444 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 5445 5446fi 5447if test "x$CC" = x 5448then : 5449 5450 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 5451 5452fi 5453 5454INSTALLSTATIC="" 5455# Check whether --enable-static was given. 5456if test ${enable_static+y} 5457then : 5458 enableval=$enable_static; 5459fi 5460 5461 5462if test x$enable_static = xyes 5463then : 5464 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Installing static libraries..." >&5 5466printf "%s\n" "$as_me: Installing static libraries..." >&6;} 5467 INSTALLSTATIC="installstatic" 5468 5469fi 5470 5471 5472 5473if test -n "$ac_tool_prefix"; then 5474 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5475set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5477printf %s "checking for $ac_word... " >&6; } 5478if test ${ac_cv_path_PKGCONFIG+y} 5479then : 5480 printf %s "(cached) " >&6 5481else $as_nop 5482 case $PKGCONFIG in 5483 [\\/]* | ?:[\\/]*) 5484 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 5485 ;; 5486 *) 5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH 5489do 5490 IFS=$as_save_IFS 5491 case $as_dir in #((( 5492 '') as_dir=./ ;; 5493 */) ;; 5494 *) as_dir=$as_dir/ ;; 5495 esac 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5498 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 5499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502done 5503 done 5504IFS=$as_save_IFS 5505 5506 ;; 5507esac 5508fi 5509PKGCONFIG=$ac_cv_path_PKGCONFIG 5510if test -n "$PKGCONFIG"; then 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 5512printf "%s\n" "$PKGCONFIG" >&6; } 5513else 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5515printf "%s\n" "no" >&6; } 5516fi 5517 5518 5519fi 5520if test -z "$ac_cv_path_PKGCONFIG"; then 5521 ac_pt_PKGCONFIG=$PKGCONFIG 5522 # Extract the first word of "pkg-config", so it can be a program name with args. 5523set dummy pkg-config; ac_word=$2 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525printf %s "checking for $ac_word... " >&6; } 5526if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 5527then : 5528 printf %s "(cached) " >&6 5529else $as_nop 5530 case $ac_pt_PKGCONFIG in 5531 [\\/]* | ?:[\\/]*) 5532 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 5533 ;; 5534 *) 5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5536for as_dir in $PATH 5537do 5538 IFS=$as_save_IFS 5539 case $as_dir in #((( 5540 '') as_dir=./ ;; 5541 */) ;; 5542 *) as_dir=$as_dir/ ;; 5543 esac 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5546 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 5547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554 ;; 5555esac 5556fi 5557ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 5558if test -n "$ac_pt_PKGCONFIG"; then 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 5560printf "%s\n" "$ac_pt_PKGCONFIG" >&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_pt_PKGCONFIG" = x; then 5567 PKGCONFIG="" 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 PKGCONFIG=$ac_pt_PKGCONFIG 5576 fi 5577else 5578 PKGCONFIG="$ac_cv_path_PKGCONFIG" 5579fi 5580 5581PKGCONFIG_CFLAGS="" 5582PKGCONFIG_LIBS="" 5583PKGCONFIG_LIBS_STATIC="" 5584PKGCONFIG_REQUIRES="" 5585 5586 5587 5588 5589 5590 5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 5592printf %s "checking for library containing abs... " >&6; } 5593if test ${ac_cv_search_abs+y} 5594then : 5595 printf %s "(cached) " >&6 5596else $as_nop 5597 ac_func_search_save_LIBS=$LIBS 5598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600 5601/* Override any GCC internal prototype to avoid an error. 5602 Use char because int might match the return type of a GCC 5603 builtin and then its argument prototype would still apply. */ 5604char abs (); 5605int 5606main (void) 5607{ 5608return abs (); 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613for ac_lib in '' m 5614do 5615 if test -z "$ac_lib"; then 5616 ac_res="none required" 5617 else 5618 ac_res=-l$ac_lib 5619 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5620 fi 5621 if ac_fn_c_try_link "$LINENO" 5622then : 5623 ac_cv_search_abs=$ac_res 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5626 conftest$ac_exeext 5627 if test ${ac_cv_search_abs+y} 5628then : 5629 break 5630fi 5631done 5632if test ${ac_cv_search_abs+y} 5633then : 5634 5635else $as_nop 5636 ac_cv_search_abs=no 5637fi 5638rm conftest.$ac_ext 5639LIBS=$ac_func_search_save_LIBS 5640fi 5641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 5642printf "%s\n" "$ac_cv_search_abs" >&6; } 5643ac_res=$ac_cv_search_abs 5644if test "$ac_res" != no 5645then : 5646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5647 printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h 5648 5649fi 5650 5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 5652printf %s "checking for library containing crypt... " >&6; } 5653if test ${ac_cv_search_crypt+y} 5654then : 5655 printf %s "(cached) " >&6 5656else $as_nop 5657 ac_func_search_save_LIBS=$LIBS 5658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660 5661/* Override any GCC internal prototype to avoid an error. 5662 Use char because int might match the return type of a GCC 5663 builtin and then its argument prototype would still apply. */ 5664char crypt (); 5665int 5666main (void) 5667{ 5668return crypt (); 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673for ac_lib in '' crypt 5674do 5675 if test -z "$ac_lib"; then 5676 ac_res="none required" 5677 else 5678 ac_res=-l$ac_lib 5679 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5680 fi 5681 if ac_fn_c_try_link "$LINENO" 5682then : 5683 ac_cv_search_crypt=$ac_res 5684fi 5685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5686 conftest$ac_exeext 5687 if test ${ac_cv_search_crypt+y} 5688then : 5689 break 5690fi 5691done 5692if test ${ac_cv_search_crypt+y} 5693then : 5694 5695else $as_nop 5696 ac_cv_search_crypt=no 5697fi 5698rm conftest.$ac_ext 5699LIBS=$ac_func_search_save_LIBS 5700fi 5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 5702printf "%s\n" "$ac_cv_search_crypt" >&6; } 5703ac_res=$ac_cv_search_crypt 5704if test "$ac_res" != no 5705then : 5706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5707 5708fi 5709 5710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 5711printf %s "checking for library containing fmod... " >&6; } 5712if test ${ac_cv_search_fmod+y} 5713then : 5714 printf %s "(cached) " >&6 5715else $as_nop 5716 ac_func_search_save_LIBS=$LIBS 5717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719 5720/* Override any GCC internal prototype to avoid an error. 5721 Use char because int might match the return type of a GCC 5722 builtin and then its argument prototype would still apply. */ 5723char fmod (); 5724int 5725main (void) 5726{ 5727return fmod (); 5728 ; 5729 return 0; 5730} 5731_ACEOF 5732for ac_lib in '' m 5733do 5734 if test -z "$ac_lib"; then 5735 ac_res="none required" 5736 else 5737 ac_res=-l$ac_lib 5738 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5739 fi 5740 if ac_fn_c_try_link "$LINENO" 5741then : 5742 ac_cv_search_fmod=$ac_res 5743fi 5744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5745 conftest$ac_exeext 5746 if test ${ac_cv_search_fmod+y} 5747then : 5748 break 5749fi 5750done 5751if test ${ac_cv_search_fmod+y} 5752then : 5753 5754else $as_nop 5755 ac_cv_search_fmod=no 5756fi 5757rm conftest.$ac_ext 5758LIBS=$ac_func_search_save_LIBS 5759fi 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 5761printf "%s\n" "$ac_cv_search_fmod" >&6; } 5762ac_res=$ac_cv_search_fmod 5763if test "$ac_res" != no 5764then : 5765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5766 5767fi 5768 5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 5770printf %s "checking for library containing getspent... " >&6; } 5771if test ${ac_cv_search_getspent+y} 5772then : 5773 printf %s "(cached) " >&6 5774else $as_nop 5775 ac_func_search_save_LIBS=$LIBS 5776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778 5779/* Override any GCC internal prototype to avoid an error. 5780 Use char because int might match the return type of a GCC 5781 builtin and then its argument prototype would still apply. */ 5782char getspent (); 5783int 5784main (void) 5785{ 5786return getspent (); 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791for ac_lib in '' sec gen 5792do 5793 if test -z "$ac_lib"; then 5794 ac_res="none required" 5795 else 5796 ac_res=-l$ac_lib 5797 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5798 fi 5799 if ac_fn_c_try_link "$LINENO" 5800then : 5801 ac_cv_search_getspent=$ac_res 5802fi 5803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5804 conftest$ac_exeext 5805 if test ${ac_cv_search_getspent+y} 5806then : 5807 break 5808fi 5809done 5810if test ${ac_cv_search_getspent+y} 5811then : 5812 5813else $as_nop 5814 ac_cv_search_getspent=no 5815fi 5816rm conftest.$ac_ext 5817LIBS=$ac_func_search_save_LIBS 5818fi 5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 5820printf "%s\n" "$ac_cv_search_getspent" >&6; } 5821ac_res=$ac_cv_search_getspent 5822if test "$ac_res" != no 5823then : 5824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5825 5826fi 5827 5828 5829LIBMALLOC="" 5830# Check whether --enable-mallinfo was given. 5831if test ${enable_mallinfo+y} 5832then : 5833 enableval=$enable_mallinfo; 5834fi 5835 5836 5837if test x$enable_mallinfo = xyes 5838then : 5839 5840 SAVELIBS="$LIBS" 5841 LIBS="" 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 5843printf %s "checking for library containing mallinfo... " >&6; } 5844if test ${ac_cv_search_mallinfo+y} 5845then : 5846 printf %s "(cached) " >&6 5847else $as_nop 5848 ac_func_search_save_LIBS=$LIBS 5849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850/* end confdefs.h. */ 5851 5852/* Override any GCC internal prototype to avoid an error. 5853 Use char because int might match the return type of a GCC 5854 builtin and then its argument prototype would still apply. */ 5855char mallinfo (); 5856int 5857main (void) 5858{ 5859return mallinfo (); 5860 ; 5861 return 0; 5862} 5863_ACEOF 5864for ac_lib in '' malloc 5865do 5866 if test -z "$ac_lib"; then 5867 ac_res="none required" 5868 else 5869 ac_res=-l$ac_lib 5870 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5871 fi 5872 if ac_fn_c_try_link "$LINENO" 5873then : 5874 ac_cv_search_mallinfo=$ac_res 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5877 conftest$ac_exeext 5878 if test ${ac_cv_search_mallinfo+y} 5879then : 5880 break 5881fi 5882done 5883if test ${ac_cv_search_mallinfo+y} 5884then : 5885 5886else $as_nop 5887 ac_cv_search_mallinfo=no 5888fi 5889rm conftest.$ac_ext 5890LIBS=$ac_func_search_save_LIBS 5891fi 5892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 5893printf "%s\n" "$ac_cv_search_mallinfo" >&6; } 5894ac_res=$ac_cv_search_mallinfo 5895if test "$ac_res" != no 5896then : 5897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5898 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h 5899 5900fi 5901 5902 LIBMALLOC="$LIBS" 5903 LIBS="$SAVELIBS" 5904 5905fi 5906 5907 5908 5909# Check whether --enable-libpaper was given. 5910if test ${enable_libpaper+y} 5911then : 5912 enableval=$enable_libpaper; 5913fi 5914 5915 5916if test x$enable_libpaper = xyes 5917then : 5918 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 5920printf %s "checking for systempapername in -lpaper... " >&6; } 5921if test ${ac_cv_lib_paper_systempapername+y} 5922then : 5923 printf %s "(cached) " >&6 5924else $as_nop 5925 ac_check_lib_save_LIBS=$LIBS 5926LIBS="-lpaper $LIBS" 5927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929 5930/* Override any GCC internal prototype to avoid an error. 5931 Use char because int might match the return type of a GCC 5932 builtin and then its argument prototype would still apply. */ 5933char systempapername (); 5934int 5935main (void) 5936{ 5937return systempapername (); 5938 ; 5939 return 0; 5940} 5941_ACEOF 5942if ac_fn_c_try_link "$LINENO" 5943then : 5944 ac_cv_lib_paper_systempapername=yes 5945else $as_nop 5946 ac_cv_lib_paper_systempapername=no 5947fi 5948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5949 conftest$ac_exeext conftest.$ac_ext 5950LIBS=$ac_check_lib_save_LIBS 5951fi 5952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 5953printf "%s\n" "$ac_cv_lib_paper_systempapername" >&6; } 5954if test "x$ac_cv_lib_paper_systempapername" = xyes 5955then : 5956 5957 5958printf "%s\n" "#define HAVE_LIBPAPER 1" >>confdefs.h 5959 5960 LIBPAPER="-lpaper" 5961 5962else $as_nop 5963 5964 LIBPAPER="" 5965 5966fi 5967 5968 5969else $as_nop 5970 5971 LIBPAPER="" 5972 5973fi 5974 5975 5976ac_header= ac_cache= 5977for ac_item in $ac_header_c_list 5978do 5979 if test $ac_cache; then 5980 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5981 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5982 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5983 fi 5984 ac_header= ac_cache= 5985 elif test $ac_header; then 5986 ac_cache=$ac_item 5987 else 5988 ac_header=$ac_item 5989 fi 5990done 5991 5992 5993 5994 5995 5996 5997 5998 5999if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6000then : 6001 6002printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6003 6004fi 6005ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 6006if test "x$ac_cv_header_crypt_h" = xyes 6007then : 6008 6009printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 6010 6011fi 6012 6013ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 6014if test "x$ac_cv_header_langinfo_h" = xyes 6015then : 6016 6017printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h 6018 6019fi 6020 6021ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 6022if test "x$ac_cv_header_malloc_h" = xyes 6023then : 6024 6025printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 6026 6027fi 6028 6029ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 6030if test "x$ac_cv_header_shadow_h" = xyes 6031then : 6032 6033printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h 6034 6035fi 6036 6037ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 6038if test "x$ac_cv_header_stdint_h" = xyes 6039then : 6040 6041printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 6042 6043fi 6044 6045ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 6046if test "x$ac_cv_header_sys_ioctl_h" = xyes 6047then : 6048 6049printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 6050 6051fi 6052 6053ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 6054if test "x$ac_cv_header_sys_param_h" = xyes 6055then : 6056 6057printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 6058 6059fi 6060 6061ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" 6062if test "x$ac_cv_header_sys_ucred_h" = xyes 6063then : 6064 6065printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h 6066 6067fi 6068 6069 6070ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 6071if test "x$ac_cv_header_iconv_h" = xyes 6072then : 6073 6074 SAVELIBS="$LIBS" 6075 LIBS="" 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 6077printf %s "checking for library containing iconv_open... " >&6; } 6078if test ${ac_cv_search_iconv_open+y} 6079then : 6080 printf %s "(cached) " >&6 6081else $as_nop 6082 ac_func_search_save_LIBS=$LIBS 6083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085 6086/* Override any GCC internal prototype to avoid an error. 6087 Use char because int might match the return type of a GCC 6088 builtin and then its argument prototype would still apply. */ 6089char iconv_open (); 6090int 6091main (void) 6092{ 6093return iconv_open (); 6094 ; 6095 return 0; 6096} 6097_ACEOF 6098for ac_lib in '' iconv 6099do 6100 if test -z "$ac_lib"; then 6101 ac_res="none required" 6102 else 6103 ac_res=-l$ac_lib 6104 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6105 fi 6106 if ac_fn_c_try_link "$LINENO" 6107then : 6108 ac_cv_search_iconv_open=$ac_res 6109fi 6110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6111 conftest$ac_exeext 6112 if test ${ac_cv_search_iconv_open+y} 6113then : 6114 break 6115fi 6116done 6117if test ${ac_cv_search_iconv_open+y} 6118then : 6119 6120else $as_nop 6121 ac_cv_search_iconv_open=no 6122fi 6123rm conftest.$ac_ext 6124LIBS=$ac_func_search_save_LIBS 6125fi 6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 6127printf "%s\n" "$ac_cv_search_iconv_open" >&6; } 6128ac_res=$ac_cv_search_iconv_open 6129if test "$ac_res" != no 6130then : 6131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6132 6133 6134printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h 6135 6136 SAVELIBS="$SAVELIBS $LIBS" 6137 6138fi 6139 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5 6141printf %s "checking for library containing libiconv_open... " >&6; } 6142if test ${ac_cv_search_libiconv_open+y} 6143then : 6144 printf %s "(cached) " >&6 6145else $as_nop 6146 ac_func_search_save_LIBS=$LIBS 6147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148/* end confdefs.h. */ 6149 6150/* Override any GCC internal prototype to avoid an error. 6151 Use char because int might match the return type of a GCC 6152 builtin and then its argument prototype would still apply. */ 6153char libiconv_open (); 6154int 6155main (void) 6156{ 6157return libiconv_open (); 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162for ac_lib in '' iconv 6163do 6164 if test -z "$ac_lib"; then 6165 ac_res="none required" 6166 else 6167 ac_res=-l$ac_lib 6168 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6169 fi 6170 if ac_fn_c_try_link "$LINENO" 6171then : 6172 ac_cv_search_libiconv_open=$ac_res 6173fi 6174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6175 conftest$ac_exeext 6176 if test ${ac_cv_search_libiconv_open+y} 6177then : 6178 break 6179fi 6180done 6181if test ${ac_cv_search_libiconv_open+y} 6182then : 6183 6184else $as_nop 6185 ac_cv_search_libiconv_open=no 6186fi 6187rm conftest.$ac_ext 6188LIBS=$ac_func_search_save_LIBS 6189fi 6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5 6191printf "%s\n" "$ac_cv_search_libiconv_open" >&6; } 6192ac_res=$ac_cv_search_libiconv_open 6193if test "$ac_res" != no 6194then : 6195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6196 6197 6198printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h 6199 6200 SAVELIBS="$SAVELIBS $LIBS" 6201 6202fi 6203 6204 LIBS="$SAVELIBS" 6205 6206fi 6207 6208 6209ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" 6210if test "x$ac_cv_header_sys_mount_h" = xyes 6211then : 6212 6213printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 6214 6215fi 6216 6217ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" 6218if test "x$ac_cv_header_sys_statfs_h" = xyes 6219then : 6220 6221printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h 6222 6223fi 6224 6225ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 6226if test "x$ac_cv_header_sys_statvfs_h" = xyes 6227then : 6228 6229printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h 6230 6231fi 6232 6233ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" 6234if test "x$ac_cv_header_sys_vfs_h" = xyes 6235then : 6236 6237printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h 6238 6239fi 6240 6241ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs" 6242if test "x$ac_cv_func_statfs" = xyes 6243then : 6244 printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h 6245 6246fi 6247ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" 6248if test "x$ac_cv_func_statvfs" = xyes 6249then : 6250 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h 6251 6252fi 6253 6254 6255ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 6256if test "x$ac_cv_func_strdup" = xyes 6257then : 6258 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 6259 6260fi 6261ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 6262if test "x$ac_cv_func_snprintf" = xyes 6263then : 6264 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 6265 6266fi 6267ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6268if test "x$ac_cv_func_vsnprintf" = xyes 6269then : 6270 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 6271 6272fi 6273 6274ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 6275if test "x$ac_cv_func_strlcat" = xyes 6276then : 6277 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 6278 6279fi 6280ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 6281if test "x$ac_cv_func_strlcpy" = xyes 6282then : 6283 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 6284 6285fi 6286 6287 6288ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 6289if test "x$ac_cv_func_random" = xyes 6290then : 6291 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 6292 6293fi 6294ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48" 6295if test "x$ac_cv_func_lrand48" = xyes 6296then : 6297 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h 6298 6299fi 6300ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 6301if test "x$ac_cv_func_arc4random" = xyes 6302then : 6303 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 6304 6305fi 6306 6307 6308ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 6309if test "x$ac_cv_func_geteuid" = xyes 6310then : 6311 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 6312 6313fi 6314 6315 6316ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" 6317if test "x$ac_cv_func_setpgid" = xyes 6318then : 6319 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h 6320 6321fi 6322 6323 6324ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 6325if test "x$ac_cv_func_vsyslog" = xyes 6326then : 6327 printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h 6328 6329fi 6330 6331 6332case "$host_os_name" in #( 6333 linux* | gnu*) : 6334 6335 # Do not use sigset on Linux or GNU HURD 6336 ;; #( 6337 *) : 6338 6339 # Use sigset on other platforms, if available 6340 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" 6341if test "x$ac_cv_func_sigset" = xyes 6342then : 6343 printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h 6344 6345fi 6346 6347 ;; #( 6348 *) : 6349 ;; 6350esac 6351 6352ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 6353if test "x$ac_cv_func_sigaction" = xyes 6354then : 6355 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 6356 6357fi 6358 6359 6360ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 6361if test "x$ac_cv_func_waitpid" = xyes 6362then : 6363 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h 6364 6365fi 6366ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" 6367if test "x$ac_cv_func_wait3" = xyes 6368then : 6369 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h 6370 6371fi 6372 6373 6374ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" 6375if test "x$ac_cv_func_posix_spawn" = xyes 6376then : 6377 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h 6378 6379fi 6380 6381 6382ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" 6383if test "x$ac_cv_func_getgrouplist" = xyes 6384then : 6385 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h 6386 6387fi 6388 6389 6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 6391printf %s "checking for tm_gmtoff member in tm structure... " >&6; } 6392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394 6395 #include <time.h> 6396int 6397main (void) 6398{ 6399 6400 struct tm t; 6401 int o = t.tm_gmtoff; 6402 6403 ; 6404 return 0; 6405} 6406 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO" 6409then : 6410 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6412printf "%s\n" "yes" >&6; } 6413 6414printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h 6415 6416 6417else $as_nop 6418 6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420printf "%s\n" "no" >&6; } 6421 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6424 6425ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 6426if test "x$ac_cv_func_timegm" = xyes 6427then : 6428 6429 6430printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 6431 6432 6433fi 6434 6435 6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 6437printf %s "checking for st_gen member in stat structure... " >&6; } 6438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440 6441 #include <sys/stat.h> 6442int 6443main (void) 6444{ 6445 6446 struct stat t; 6447 int o = t.st_gen; 6448 6449 ; 6450 return 0; 6451} 6452 6453_ACEOF 6454if ac_fn_c_try_compile "$LINENO" 6455then : 6456 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6458printf "%s\n" "yes" >&6; } 6459 6460printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h 6461 6462 6463else $as_nop 6464 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6466printf "%s\n" "no" >&6; } 6467 6468fi 6469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6470 6471ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" 6472if test "x$ac_cv_func_removefile" = xyes 6473then : 6474 printf "%s\n" "#define HAVE_REMOVEFILE 1" >>confdefs.h 6475 6476fi 6477 6478 6479# Check whether --enable-libusb was given. 6480if test ${enable_libusb+y} 6481then : 6482 enableval=$enable_libusb; 6483fi 6484 6485 6486LIBUSB="" 6487USBQUIRKS="" 6488 6489 6490 6491if test "x$PKGCONFIG" != x 6492then : 6493 6494 if test x$enable_libusb != xno -a $host_os_name != darwin 6495then : 6496 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 6498printf %s "checking for libusb-1.0... " >&6; } 6499 if $PKGCONFIG --exists libusb-1.0 6500then : 6501 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6503printf "%s\n" "yes" >&6; } 6504 6505printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h 6506 6507 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libusb-1.0)" 6508 LIBUSB="$($PKGCONFIG --libs libusb-1.0)" 6509 USBQUIRKS="\$(DATADIR)/usb" 6510 6511else $as_nop 6512 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514printf "%s\n" "no" >&6; } 6515 if test x$enable_libusb = xyes 6516then : 6517 6518 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 6519 6520fi 6521 6522fi 6523 6524fi 6525 6526elif test x$enable_libusb = xyes 6527then : 6528 6529 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 6530 6531fi 6532 6533# Check whether --enable-tcp_wrappers was given. 6534if test ${enable_tcp_wrappers+y} 6535then : 6536 enableval=$enable_tcp_wrappers; 6537fi 6538 6539 6540LIBWRAP="" 6541 6542 6543if test x$enable_tcp_wrappers = xyes 6544then : 6545 6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 6547printf %s "checking for hosts_access in -lwrap... " >&6; } 6548if test ${ac_cv_lib_wrap_hosts_access+y} 6549then : 6550 printf %s "(cached) " >&6 6551else $as_nop 6552 ac_check_lib_save_LIBS=$LIBS 6553LIBS="-lwrap $LIBS" 6554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556 6557/* Override any GCC internal prototype to avoid an error. 6558 Use char because int might match the return type of a GCC 6559 builtin and then its argument prototype would still apply. */ 6560char hosts_access (); 6561int 6562main (void) 6563{ 6564return hosts_access (); 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569if ac_fn_c_try_link "$LINENO" 6570then : 6571 ac_cv_lib_wrap_hosts_access=yes 6572else $as_nop 6573 ac_cv_lib_wrap_hosts_access=no 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6576 conftest$ac_exeext conftest.$ac_ext 6577LIBS=$ac_check_lib_save_LIBS 6578fi 6579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 6580printf "%s\n" "$ac_cv_lib_wrap_hosts_access" >&6; } 6581if test "x$ac_cv_lib_wrap_hosts_access" = xyes 6582then : 6583 6584 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" 6585if test "x$ac_cv_header_tcpd_h" = xyes 6586then : 6587 6588 6589printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h 6590 6591 LIBWRAP="-lwrap" 6592 6593fi 6594 6595 6596fi 6597 6598 6599fi 6600 6601INSTALL_GZIP="" 6602LIBZ="" 6603ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 6604if test "x$ac_cv_header_zlib_h" = xyes 6605then : 6606 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 6608printf %s "checking for gzgets in -lz... " >&6; } 6609if test ${ac_cv_lib_z_gzgets+y} 6610then : 6611 printf %s "(cached) " >&6 6612else $as_nop 6613 ac_check_lib_save_LIBS=$LIBS 6614LIBS="-lz $LIBS" 6615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616/* end confdefs.h. */ 6617 6618/* Override any GCC internal prototype to avoid an error. 6619 Use char because int might match the return type of a GCC 6620 builtin and then its argument prototype would still apply. */ 6621char gzgets (); 6622int 6623main (void) 6624{ 6625return gzgets (); 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_c_try_link "$LINENO" 6631then : 6632 ac_cv_lib_z_gzgets=yes 6633else $as_nop 6634 ac_cv_lib_z_gzgets=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6637 conftest$ac_exeext conftest.$ac_ext 6638LIBS=$ac_check_lib_save_LIBS 6639fi 6640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 6641printf "%s\n" "$ac_cv_lib_z_gzgets" >&6; } 6642if test "x$ac_cv_lib_z_gzgets" = xyes 6643then : 6644 6645 6646printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 6647 6648 LIBZ="-lz" 6649 LIBS="$LIBS -lz" 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 6651printf %s "checking for inflateCopy in -lz... " >&6; } 6652if test ${ac_cv_lib_z_inflateCopy+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 ac_check_lib_save_LIBS=$LIBS 6657LIBS="-lz $LIBS" 6658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660 6661/* Override any GCC internal prototype to avoid an error. 6662 Use char because int might match the return type of a GCC 6663 builtin and then its argument prototype would still apply. */ 6664char inflateCopy (); 6665int 6666main (void) 6667{ 6668return inflateCopy (); 6669 ; 6670 return 0; 6671} 6672_ACEOF 6673if ac_fn_c_try_link "$LINENO" 6674then : 6675 ac_cv_lib_z_inflateCopy=yes 6676else $as_nop 6677 ac_cv_lib_z_inflateCopy=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6680 conftest$ac_exeext conftest.$ac_ext 6681LIBS=$ac_check_lib_save_LIBS 6682fi 6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 6684printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } 6685if test "x$ac_cv_lib_z_inflateCopy" = xyes 6686then : 6687 6688 6689printf "%s\n" "#define HAVE_INFLATECOPY 1" >>confdefs.h 6690 6691 6692fi 6693 6694 if test "x$GZIPPROG" != x 6695then : 6696 6697 INSTALL_GZIP="-z" 6698 6699fi 6700 6701fi 6702 6703 6704fi 6705 6706 6707 6708 6709PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBZ" 6710 6711case host_os_name in #( 6712 darwin* | *bsd*) : 6713 6714 ARFLAGS="-rcv" 6715 ;; #( 6716 *) : 6717 6718 ARFLAGS="crvs" 6719 ;; #( 6720 *) : 6721 ;; 6722esac 6723 6724 6725BACKLIBS="" 6726SERVERLIBS="" 6727 6728 6729 6730SAVELIBS="$LIBS" 6731LIBS="" 6732# Check whether --enable-acl was given. 6733if test ${enable_acl+y} 6734then : 6735 enableval=$enable_acl; 6736fi 6737 6738if test "x$enable_acl" != xno 6739then : 6740 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 6742printf %s "checking for library containing acl_init... " >&6; } 6743if test ${ac_cv_search_acl_init+y} 6744then : 6745 printf %s "(cached) " >&6 6746else $as_nop 6747 ac_func_search_save_LIBS=$LIBS 6748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749/* end confdefs.h. */ 6750 6751/* Override any GCC internal prototype to avoid an error. 6752 Use char because int might match the return type of a GCC 6753 builtin and then its argument prototype would still apply. */ 6754char acl_init (); 6755int 6756main (void) 6757{ 6758return acl_init (); 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763for ac_lib in '' acl 6764do 6765 if test -z "$ac_lib"; then 6766 ac_res="none required" 6767 else 6768 ac_res=-l$ac_lib 6769 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6770 fi 6771 if ac_fn_c_try_link "$LINENO" 6772then : 6773 ac_cv_search_acl_init=$ac_res 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6776 conftest$ac_exeext 6777 if test ${ac_cv_search_acl_init+y} 6778then : 6779 break 6780fi 6781done 6782if test ${ac_cv_search_acl_init+y} 6783then : 6784 6785else $as_nop 6786 ac_cv_search_acl_init=no 6787fi 6788rm conftest.$ac_ext 6789LIBS=$ac_func_search_save_LIBS 6790fi 6791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 6792printf "%s\n" "$ac_cv_search_acl_init" >&6; } 6793ac_res=$ac_cv_search_acl_init 6794if test "$ac_res" != no 6795then : 6796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6797 6798 6799printf "%s\n" "#define HAVE_ACL_INIT 1" >>confdefs.h 6800 6801 6802fi 6803 6804 SERVERLIBS="$SERVERLIBS $LIBS" 6805 6806fi 6807LIBS="$SAVELIBS" 6808 6809DBUSDIR="" 6810DBUS_NOTIFIER="" 6811DBUS_NOTIFIERLIBS="" 6812 6813# Check whether --enable-dbus was given. 6814if test ${enable_dbus+y} 6815then : 6816 enableval=$enable_dbus; 6817fi 6818 6819 6820# Check whether --with-dbusdir was given. 6821if test ${with_dbusdir+y} 6822then : 6823 withval=$with_dbusdir; 6824 DBUSDIR="$withval" 6825 6826fi 6827 6828 6829if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin 6830then : 6831 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 6833printf %s "checking for DBUS... " >&6; } 6834 if $PKGCONFIG --exists dbus-1 6835then : 6836 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6838printf "%s\n" "yes" >&6; } 6839 6840printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h 6841 6842 CFLAGS="$CFLAGS $($PKGCONFIG --cflags dbus-1) -DDBUS_API_SUBJECT_TO_CHANGE" 6843 SERVERLIBS="$SERVERLIBS $($PKGCONFIG --libs dbus-1)" 6844 DBUS_NOTIFIER="dbus" 6845 DBUS_NOTIFIERLIBS="$($PKGCONFIG --libs dbus-1)" 6846 SAVELIBS="$LIBS" 6847 LIBS="$LIBS $DBUS_NOTIFIERLIBS" 6848 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" 6849if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes 6850then : 6851 6852 6853printf "%s\n" "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h 6854 6855 6856fi 6857 6858 ac_fn_c_check_func "$LINENO" "dbus_threads_init_default" "ac_cv_func_dbus_threads_init_default" 6859if test "x$ac_cv_func_dbus_threads_init_default" = xyes 6860then : 6861 6862 6863printf "%s\n" "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h 6864 6865 6866fi 6867 6868 LIBS="$SAVELIBS" 6869 if test -d /etc/dbus-1 -a "x$DBUSDIR" = x 6870then : 6871 6872 DBUSDIR="/etc/dbus-1" 6873 6874fi 6875 6876else $as_nop 6877 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879printf "%s\n" "no" >&6; } 6880 6881fi 6882 6883fi 6884 6885 6886 6887 6888 6889CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" 6890CUPS_DEFAULT_SYSTEM_AUTHKEY="" 6891CUPS_SYSTEM_AUTHKEY="" 6892INSTALLXPC="" 6893 6894case $host_os_name in #( 6895 darwin*) : 6896 6897 BACKLIBS="$BACKLIBS -framework IOKit" 6898 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" 6899 LIBS="-framework CoreFoundation -framework Security $LIBS" 6900 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC -framework CoreFoundation -framework Security" 6901 6902 ac_fn_c_check_header_compile "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" 6903if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes 6904then : 6905 6906 6907printf "%s\n" "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h 6908 6909 6910fi 6911 6912 ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" 6913if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes 6914then : 6915 6916 6917printf "%s\n" "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h 6918 6919 6920fi 6921 6922 6923 SAVELIBS="$LIBS" 6924 LIBS="-framework SystemConfiguration $LIBS" 6925 6926 for ac_func in SCDynamicStoreCopyComputerName 6927do : 6928 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" 6929if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes 6930then : 6931 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h 6932 6933 6934printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h 6935 6936 6937else $as_nop 6938 6939 LIBS="$SAVELIBS" 6940 6941fi 6942 6943done 6944 6945 ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" 6946if test "x$ac_cv_header_membership_h" = xyes 6947then : 6948 6949 6950printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h 6951 6952 6953fi 6954 6955 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" 6956if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes 6957then : 6958 printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h 6959 6960fi 6961 6962 6963 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6964if test "x$ac_cv_header_dlfcn_h" = xyes 6965then : 6966 6967 6968printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 6969 6970 6971fi 6972 6973 6974 ac_fn_c_check_header_compile "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" 6975if test "x$ac_cv_header_notify_h" = xyes 6976then : 6977 6978 6979printf "%s\n" "#define HAVE_NOTIFY_H 1" >>confdefs.h 6980 6981 6982fi 6983 6984 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" 6985if test "x$ac_cv_func_notify_post" = xyes 6986then : 6987 printf "%s\n" "#define HAVE_NOTIFY_POST 1" >>confdefs.h 6988 6989fi 6990 6991 6992 6993# Check whether --with-adminkey was given. 6994if test ${with_adminkey+y} 6995then : 6996 withval=$with_adminkey; 6997 default_adminkey="$withval" 6998 6999else $as_nop 7000 7001 default_adminkey="default" 7002 7003fi 7004 7005 7006# Check whether --with-operkey was given. 7007if test ${with_operkey+y} 7008then : 7009 withval=$with_operkey; 7010 default_operkey="$withval" 7011 7012else $as_nop 7013 7014 default_operkey="default" 7015 7016fi 7017 7018 7019 ac_fn_c_check_header_compile "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" 7020if test "x$ac_cv_header_Security_Authorization_h" = xyes 7021then : 7022 7023 7024printf "%s\n" "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h 7025 7026 7027 if test "x$default_adminkey" != xdefault 7028then : 7029 7030 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" 7031 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" 7032 7033else $as_nop 7034 7035 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" 7036 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" 7037 7038fi 7039 7040 if test "x$default_operkey" != xdefault 7041then : 7042 7043 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" 7044 7045else $as_nop 7046 7047 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" 7048 7049fi 7050 7051fi 7052 7053 7054 ac_fn_c_check_header_compile "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" 7055if test "x$ac_cv_header_sandbox_h" = xyes 7056then : 7057 7058 7059printf "%s\n" "#define HAVE_SANDBOX_H 1" >>confdefs.h 7060 7061 7062fi 7063 7064 7065 ac_fn_c_check_header_compile "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" 7066if test "x$ac_cv_header_xpc_xpc_h" = xyes 7067then : 7068 7069 7070printf "%s\n" "#define HAVE_XPC 1" >>confdefs.h 7071 7072 INSTALLXPC="install-xpc" 7073 7074fi 7075 7076 ;; #( 7077 *) : 7078 ;; 7079esac 7080 7081 7082 7083printf "%s\n" "#define CUPS_DEFAULT_PRINTOPERATOR_AUTH \"$CUPS_DEFAULT_PRINTOPERATOR_AUTH\"" >>confdefs.h 7084 7085 7086printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_AUTHKEY \"$CUPS_DEFAULT_SYSTEM_AUTHKEY\"" >>confdefs.h 7087 7088 7089 7090 7091COMPONENTS="all" 7092 7093 7094# Check whether --with-components was given. 7095if test ${with_components+y} 7096then : 7097 withval=$with_components; 7098 COMPONENTS="$withval" 7099 7100fi 7101 7102 7103cupsimagebase="cupsimage" 7104IPPEVECOMMANDS="ippevepcl ippeveps" 7105LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)" 7106LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)" 7107LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)" 7108 7109case "$COMPONENTS" in #( 7110 all) : 7111 7112 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" 7113 ;; #( 7114 core) : 7115 7116 BUILDDIRS="tools examples locale" 7117 ;; #( 7118 corelite) : 7119 7120 7121printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h 7122 7123 BUILDDIRS="tools examples locale" 7124 cupsimagebase="" 7125 LIBCUPSOBJS="\$(COREOBJS)" 7126 LIBHEADERS="\$(COREHEADERS)" 7127 LIBHEADERSPRIV="\$(COREHEADERSPRIV)" 7128 ;; #( 7129 libcups) : 7130 7131 BUILDDIRS="locale" 7132 cupsimagebase="" 7133 ;; #( 7134 libcupslite) : 7135 7136 7137printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h 7138 7139 BUILDDIRS="locale" 7140 cupsimagebase="" 7141 LIBCUPSOBJS="\$(COREOBJS)" 7142 LIBHEADERS="\$(COREHEADERS)" 7143 LIBHEADERSPRIV="\$(COREHEADERSPRIV)" 7144 ;; #( 7145 *) : 7146 7147 as_fn_error $? "Bad build component \"$COMPONENTS\" specified." "$LINENO" 5 7148 ;; #( 7149 *) : 7150 ;; 7151esac 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162if test "$prefix" = "NONE" 7163then : 7164 7165 prefix="/" 7166 7167fi 7168 7169if test "$exec_prefix" = "NONE" 7170then : 7171 7172 if test "$prefix" = "/" 7173then : 7174 7175 exec_prefix="/usr" 7176 7177else $as_nop 7178 7179 exec_prefix="$prefix" 7180 7181fi 7182 7183fi 7184 7185if test "$bindir" = "\${exec_prefix}/bin" 7186then : 7187 7188 bindir="$exec_prefix/bin" 7189 7190fi 7191 7192 7193printf "%s\n" "#define CUPS_BINDIR \"$bindir\"" >>confdefs.h 7194 7195 7196if test "$sbindir" = "\${exec_prefix}/sbin" 7197then : 7198 7199 sbindir="$exec_prefix/sbin" 7200 7201fi 7202 7203 7204printf "%s\n" "#define CUPS_SBINDIR \"$sbindir\"" >>confdefs.h 7205 7206 7207if test "$datarootdir" = "\${prefix}/share" 7208then : 7209 7210 if test "$prefix" = "/" 7211then : 7212 7213 datarootdir="/usr/share" 7214 7215else $as_nop 7216 7217 datarootdir="$prefix/share" 7218 7219fi 7220 7221fi 7222 7223if test "$datadir" = "\${prefix}/share" 7224then : 7225 7226 if test "$prefix" = "/" 7227then : 7228 7229 datadir="/usr/share" 7230 7231else $as_nop 7232 7233 datadir="$prefix/share" 7234 7235fi 7236 7237elif test "$datadir" = "\${datarootdir}" 7238then : 7239 7240 datadir="$datarootdir" 7241 7242fi 7243 7244if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/" 7245then : 7246 7247 includedir="/usr/include" 7248 7249fi 7250if test "$includedir" != "/usr/include" 7251then : 7252 7253 PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir" 7254 7255fi 7256 7257if test "$localstatedir" = "\${prefix}/var" 7258then : 7259 7260 if test "$prefix" = "/" 7261then : 7262 7263 if test "$host_os_name" = darwin 7264then : 7265 7266 localstatedir="/private/var" 7267 7268else $as_nop 7269 7270 localstatedir="/var" 7271 7272fi 7273 7274else $as_nop 7275 7276 localstatedir="$prefix/var" 7277 7278fi 7279 7280fi 7281 7282if test "$sysconfdir" = "\${prefix}/etc" 7283then : 7284 7285 if test "$prefix" = "/" 7286then : 7287 7288 if test "$host_os_name" = darwin 7289then : 7290 7291 sysconfdir="/private/etc" 7292 7293else $as_nop 7294 7295 sysconfdir="/etc" 7296 7297fi 7298 7299else $as_nop 7300 7301 sysconfdir="$prefix/etc" 7302 7303fi 7304 7305fi 7306 7307if test "$libdir" = "\${exec_prefix}/lib" 7308then : 7309 7310 case "$host_os_name" in #( 7311 linux*) : 7312 7313 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot 7314then : 7315 7316 libdir="$exec_prefix/lib64" 7317 7318else $as_nop 7319 7320 libdir="$exec_prefix/lib" 7321 7322fi 7323 ;; #( 7324 *) : 7325 7326 libdir="$exec_prefix/lib" 7327 ;; #( 7328 *) : 7329 ;; 7330esac 7331 7332fi 7333if test "$libdir" = "/usr/lib" 7334then : 7335 7336 PKGCONFIG_LIBS="-lcups" 7337 7338else $as_nop 7339 7340 PKGCONFIG_LIBS="-L$libdir -lcups" 7341 7342fi 7343 7344# Cache data... 7345 7346# Check whether --with-cachedir was given. 7347if test ${with_cachedir+y} 7348then : 7349 withval=$with_cachedir; 7350 cachedir="$withval" 7351 7352else $as_nop 7353 7354 cachedir="" 7355 7356fi 7357 7358 7359if test x$cachedir = x 7360then : 7361 7362 if test "x$host_os_name" = xdarwin 7363then : 7364 7365 CUPS_CACHEDIR="$localstatedir/spool/cups/cache" 7366 7367else $as_nop 7368 7369 CUPS_CACHEDIR="$localstatedir/cache/cups" 7370 7371fi 7372 7373else $as_nop 7374 7375 CUPS_CACHEDIR="$cachedir" 7376 7377fi 7378 7379printf "%s\n" "#define CUPS_CACHEDIR \"$CUPS_CACHEDIR\"" >>confdefs.h 7380 7381 7382 7383# Data files 7384CUPS_DATADIR="$datadir/cups" 7385 7386printf "%s\n" "#define CUPS_DATADIR \"$datadir/cups\"" >>confdefs.h 7387 7388 7389 7390# Icon directory 7391 7392# Check whether --with-icondir was given. 7393if test ${with_icondir+y} 7394then : 7395 withval=$with_icondir; 7396 icondir="$withval" 7397 7398else $as_nop 7399 7400 icondir="" 7401 7402fi 7403 7404 7405if test "x$icondir" = x 7406then : 7407 7408 ICONDIR="/usr/share/icons" 7409 7410else $as_nop 7411 7412 ICONDIR="$icondir" 7413 7414fi 7415 7416 7417 7418# Menu directory 7419 7420# Check whether --with-menudir was given. 7421if test ${with_menudir+y} 7422then : 7423 withval=$with_menudir; 7424 menudir="$withval" 7425 7426else $as_nop 7427 7428 menudir="" 7429 7430fi 7431 7432 7433if test "x$menudir" = x 7434then : 7435 7436 MENUDIR="/usr/share/applications" 7437 7438else $as_nop 7439 7440 MENUDIR="$menudir" 7441 7442fi 7443 7444 7445 7446# Documentation files 7447 7448# Check whether --with-docdir was given. 7449if test ${with_docdir+y} 7450then : 7451 withval=$with_docdir; 7452 docdir="$withval" 7453 7454else $as_nop 7455 7456 docdir="" 7457 7458fi 7459 7460 7461if test x$docdir = x 7462then : 7463 7464 CUPS_DOCROOT="$datadir/doc/cups" 7465 docdir="$datadir/doc/cups" 7466 7467else $as_nop 7468 7469 CUPS_DOCROOT="$docdir" 7470 7471fi 7472 7473 7474printf "%s\n" "#define CUPS_DOCROOT \"$docdir\"" >>confdefs.h 7475 7476 7477 7478# Locale data 7479if test "$localedir" = "\${datarootdir}/locale" 7480then : 7481 7482 case "$host_os_name" in #( 7483 linux* | gnu* | *bsd* | darwin* | solaris*) : 7484 7485 CUPS_LOCALEDIR="$datarootdir/locale" 7486 ;; #( 7487 *) : 7488 7489 # This is the standard System V location... 7490 CUPS_LOCALEDIR="$exec_prefix/lib/locale" 7491 ;; #( 7492 *) : 7493 ;; 7494esac 7495 7496else $as_nop 7497 7498 CUPS_LOCALEDIR="$localedir" 7499 7500fi 7501 7502 7503printf "%s\n" "#define CUPS_LOCALEDIR \"$CUPS_LOCALEDIR\"" >>confdefs.h 7504 7505 7506 7507 7508# cups.pc file... 7509 7510# Check whether --with-pkgconfpath was given. 7511if test ${with_pkgconfpath+y} 7512then : 7513 withval=$with_pkgconfpath; 7514 pkgconfpath="$withval" 7515 7516else $as_nop 7517 7518 pkgconfpath="" 7519 7520fi 7521 7522 7523if test x$pkgconfpath = x 7524then : 7525 7526 CUPS_PKGCONFPATH="$exec_prefix/lib/pkgconfig" 7527 7528else $as_nop 7529 7530 CUPS_PKGCONFPATH="$pkgconfpath" 7531 7532fi 7533 7534printf "%s\n" "#define CUPS_PKGCONFPATH \"$CUPS_PKGCONFPATH\"" >>confdefs.h 7535 7536 7537 7538 7539 7540# Log files... 7541 7542# Check whether --with-logdir was given. 7543if test ${with_logdir+y} 7544then : 7545 withval=$with_logdir; 7546 logdir="$withval" 7547 7548else $as_nop 7549 7550 logdir="" 7551 7552fi 7553 7554 7555if test x$logdir = x 7556then : 7557 7558 CUPS_LOGDIR="$localstatedir/log/cups" 7559 7560else $as_nop 7561 7562 CUPS_LOGDIR="$logdir" 7563 7564fi 7565 7566printf "%s\n" "#define CUPS_LOGDIR \"$CUPS_LOGDIR\"" >>confdefs.h 7567 7568 7569 7570# Longer-term spool data 7571CUPS_REQUESTS="$localstatedir/spool/cups" 7572 7573printf "%s\n" "#define CUPS_REQUESTS \"$localstatedir/spool/cups\"" >>confdefs.h 7574 7575 7576 7577# Server executables... 7578case "$host_os_name" in #( 7579 *-gnu) : 7580 7581 # GNUs 7582 INSTALL_SYSV="install-sysv" 7583 CUPS_SERVERBIN="$exec_prefix/lib/cups" 7584 ;; #( 7585 *bsd* | darwin*) : 7586 7587 # *BSD and Darwin (macOS) 7588 INSTALL_SYSV="" 7589 CUPS_SERVERBIN="$exec_prefix/libexec/cups" 7590 ;; #( 7591 *) : 7592 7593 # All others 7594 INSTALL_SYSV="install-sysv" 7595 CUPS_SERVERBIN="$exec_prefix/lib/cups" 7596 ;; #( 7597 *) : 7598 ;; 7599esac 7600 7601 7602printf "%s\n" "#define CUPS_SERVERBIN \"$CUPS_SERVERBIN\"" >>confdefs.h 7603 7604 7605 7606 7607# Configuration files 7608CUPS_SERVERROOT="$sysconfdir/cups" 7609 7610printf "%s\n" "#define CUPS_SERVERROOT \"$sysconfdir/cups\"" >>confdefs.h 7611 7612 7613 7614# Transient run-time state 7615 7616# Check whether --with-rundir was given. 7617if test ${with_rundir+y} 7618then : 7619 withval=$with_rundir; 7620 CUPS_STATEDIR="$withval" 7621 7622else $as_nop 7623 7624 case "$host_os_name" in #( 7625 darwin*) : 7626 7627 # Darwin (macOS) 7628 CUPS_STATEDIR="$CUPS_SERVERROOT" 7629 ;; #( 7630 sunos* | solaris*) : 7631 7632 if test -d /system/volatile 7633then : 7634 7635 CUPS_STATEDIR="/system/volatile/cups" 7636 7637else $as_nop 7638 7639 CUPS_STATEDIR="$localstatedir/run/cups" 7640 7641fi 7642 ;; #( 7643 *) : 7644 7645 # All others 7646 CUPS_STATEDIR="$localstatedir/run/cups" 7647 ;; #( 7648 *) : 7649 ;; 7650esac 7651 7652fi 7653 7654 7655printf "%s\n" "#define CUPS_STATEDIR \"$CUPS_STATEDIR\"" >>confdefs.h 7656 7657 7658 7659 7660if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/" 7661then : 7662 7663 # New GNU "standards" break previous ones, so make sure we use 7664 # the right default location for the operating system... 7665 mandir="\${prefix}/man" 7666 7667fi 7668 7669if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/" 7670then : 7671 7672 case "$host_os_name" in #( 7673 darwin* | linux* | gnu* | *bsd*) : 7674 7675 # Darwin, macOS, Linux, GNU HURD, and *BSD 7676 mandir="/usr/share/man" 7677 ;; #( 7678 *) : 7679 7680 # All others 7681 mandir="/usr/man" 7682 7683 ;; #( 7684 *) : 7685 ;; 7686esac 7687 7688fi 7689 7690 7691PICFLAG="1" 7692DSOFLAGS="${DSOFLAGS:=}" 7693 7694# Check whether --enable-shared was given. 7695if test ${enable_shared+y} 7696then : 7697 enableval=$enable_shared; 7698fi 7699 7700 7701cupsbase="cups" 7702LIBCUPSBASE="lib$cupsbase" 7703LIBCUPSIMAGE="" 7704LIBCUPSSTATIC="lib$cupsbase.a" 7705 7706if test x$enable_shared != xno 7707then : 7708 7709 case "$host_os_name" in #( 7710 sunos*) : 7711 7712 LIBCUPS="lib$cupsbase.so.2" 7713 if test "x$cupsimagebase" != x 7714then : 7715 7716 LIBCUPSIMAGE="lib$cupsimagebase.so.2" 7717 7718fi 7719 DSO="\$(CC)" 7720 DSOXX="\$(CXX)" 7721 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G" 7722 ;; #( 7723 linux* | gnu* | *bsd* | solaris*) : 7724 7725 LIBCUPS="lib$cupsbase.so.2" 7726 if test "x$cupsimagebase" != x 7727then : 7728 7729 LIBCUPSIMAGE="lib$cupsimagebase.so.2" 7730 7731fi 7732 DSO="\$(CC)" 7733 DSOXX="\$(CXX)" 7734 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" 7735 ;; #( 7736 darwin*) : 7737 7738 LIBCUPS="lib$cupsbase.2.dylib" 7739 if test "x$cupsimagebase" != x 7740then : 7741 7742 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib" 7743 7744fi 7745 DSO="\$(CC)" 7746 DSOXX="\$(CXX)" 7747 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" 7748 ;; #( 7749 aix*) : 7750 7751 LIBCUPS="lib$cupsbase.so.2" 7752 if test "x$cupsimagebase" != x 7753then : 7754 7755 LIBCUPSIMAGE="lib$cupsimagebase.so.2" 7756 7757fi 7758 DSO="\$(CC)" 7759 DSOXX="\$(CXX)" 7760 DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`" 7761 LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm" 7762 ;; #( 7763 *) : 7764 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Warning: Shared libraries may not work, trying -shared option." >&5 7766printf "%s\n" "$as_me: Warning: Shared libraries may not work, trying -shared option." >&6;} 7767 LIBCUPS="lib$cupsbase.so.2" 7768 if test "x$cupsimagebase" != x 7769then : 7770 7771 LIBCUPSIMAGE="lib$cupsimagebase.so.2" 7772 7773fi 7774 DSO="\$(CC)" 7775 DSOXX="\$(CXX)" 7776 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" 7777 ;; #( 7778 *) : 7779 ;; 7780esac 7781 7782else $as_nop 7783 7784 PICFLAG=0 7785 LIBCUPS="lib$cupsbase.a" 7786 if test "x$cupsimagebase" != x 7787then : 7788 7789 LIBCUPSIMAGE="lib$cupsimagebase.a" 7790 7791fi 7792 DSO=":" 7793 DSOXX=":" 7794 7795fi 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805if test x$enable_shared = xno 7806then : 7807 7808 LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)" 7809 EXTLINKCUPS="-lcups \$LIBS" 7810 7811elif test "$host_os_name" = aix 7812then : 7813 7814 LINKCUPS="-L../cups -l${cupsbase} \$(LIBS)" 7815 EXTLINKCUPS="-lcups \$LIBS" 7816 7817else $as_nop 7818 7819 LINKCUPS="-L../cups -l${cupsbase}" 7820 EXTLINKCUPS="-lcups" 7821 7822fi 7823 7824 7825 7826 7827EXPORT_LDFLAGS="" 7828 7829if test "$DSO" != ":" 7830then : 7831 7832 # Tell the run-time linkers where to find a DSO. Some platforms 7833 # need this option, even when the library is installed in a 7834 # standard location... 7835 case $host_os_name in #( 7836 sunos* | solaris*) : 7837 7838 # Solaris... 7839 if test $exec_prefix != /usr 7840then : 7841 7842 DSOFLAGS="-R$libdir $DSOFLAGS" 7843 LDFLAGS="$LDFLAGS -R$libdir" 7844 EXPORT_LDFLAGS="-R$libdir" 7845 7846fi 7847 ;; #( 7848 *bsd*) : 7849 7850 # *BSD... 7851 if test $exec_prefix != /usr 7852then : 7853 7854 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" 7855 LDFLAGS="$LDFLAGS -Wl,-R$libdir" 7856 EXPORT_LDFLAGS="-Wl,-R$libdir" 7857 7858fi 7859 ;; #( 7860 linux* | gnu*) : 7861 7862 # Linux, and HURD... 7863 if test $exec_prefix != /usr 7864then : 7865 7866 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" 7867 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" 7868 EXPORT_LDFLAGS="-Wl,-rpath,$libdir" 7869 7870fi 7871 ;; #( 7872 *) : 7873 ;; 7874esac 7875 7876fi 7877 7878 7879 7880 7881# Check whether --enable-libtool_unsupported was given. 7882if test ${enable_libtool_unsupported+y} 7883then : 7884 enableval=$enable_libtool_unsupported; 7885 7886else $as_nop 7887 7888 enable_libtool_unsupported=no 7889 7890fi 7891 7892 7893if test x$enable_libtool_unsupported != xno 7894then : 7895 7896 if test "x$enable_libtool_unsupported" = xyes 7897then : 7898 7899 as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5 7900 7901else $as_nop 7902 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5 7904printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;} 7905 7906fi 7907 7908 LIBTOOL="$enable_libtool_unsupported" 7909 enable_shared="no" 7910 7911 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" 7912 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" 7913 7914 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" 7915 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" 7916 7917 LIBCUPS="libcups.la" 7918 LIBCUPSSTATIC="libcups.la" 7919 LIBCUPSCGI="libcupscgi.la" 7920 LIBCUPSIMAGE="libcupsimage.la" 7921 LIBCUPSMIME="libcupsmime.la" 7922 LIBCUPSPPDC="libcupsppdc.la" 7923 7924 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" 7925 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" 7926 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" 7927 7928 LINKCUPS="../cups/\$(LIBCUPS)" 7929 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" 7930 7931else $as_nop 7932 7933 LD_CC="\$(CC)" 7934 LD_CXX="\$(CXX)" 7935 7936 LIBTOOL_CC="" 7937 LIBTOOL_CXX="" 7938 LIBTOOL_INSTALL="" 7939 7940fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951INSTALL_STRIP="" 7952 7953 7954 7955# Check whether --with-optim was given. 7956if test ${with_optim+y} 7957then : 7958 withval=$with_optim; 7959 OPTIM="$withval" 7960 7961else $as_nop 7962 7963 OPTIM="" 7964 7965fi 7966 7967 7968 7969# Check whether --enable-debug was given. 7970if test ${enable_debug+y} 7971then : 7972 enableval=$enable_debug; 7973fi 7974 7975# Check whether --enable-debug_guards was given. 7976if test ${enable_debug_guards+y} 7977then : 7978 enableval=$enable_debug_guards; 7979fi 7980 7981# Check whether --enable-debug_printfs was given. 7982if test ${enable_debug_printfs+y} 7983then : 7984 enableval=$enable_debug_printfs; 7985fi 7986 7987# Check whether --enable-maintainer was given. 7988if test ${enable_maintainer+y} 7989then : 7990 enableval=$enable_maintainer; 7991fi 7992 7993# Check whether --enable-unit_tests was given. 7994if test ${enable_unit_tests+y} 7995then : 7996 enableval=$enable_unit_tests; 7997fi 7998 7999 8000if test x$enable_debug = xyes -a "x$OPTIM" = x 8001then : 8002 8003 OPTIM="-g" 8004 8005else $as_nop 8006 8007 INSTALL_STRIP="-s" 8008 8009fi 8010 8011if test x$enable_debug_printfs = xyes 8012then : 8013 8014 CFLAGS="$CFLAGS -DDEBUG" 8015 CXXFLAGS="$CXXFLAGS -DDEBUG" 8016 8017fi 8018 8019if test x$enable_debug_guards = xyes 8020then : 8021 8022 CFLAGS="$CFLAGS -DDEBUG_GUARDS" 8023 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" 8024 8025fi 8026 8027if test x$enable_unit_tests = xyes 8028then : 8029 8030 if test "$build" != "$host" 8031then : 8032 8033 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5 8034 8035fi 8036 8037 UNITTESTS="unittests" 8038 8039else $as_nop 8040 8041 UNITTESTS="" 8042 8043fi 8044 8045 8046 8047# Check whether --with-archflags was given. 8048if test ${with_archflags+y} 8049then : 8050 withval=$with_archflags; 8051fi 8052 8053 8054# Check whether --with-ldarchflags was given. 8055if test ${with_ldarchflags+y} 8056then : 8057 withval=$with_ldarchflags; 8058fi 8059 8060 8061if test -z "$with_archflags" 8062then : 8063 8064 ARCHFLAGS="" 8065 8066else $as_nop 8067 8068 ARCHFLAGS="$with_archflags" 8069 8070fi 8071 8072if test -z "$with_ldarchflags" 8073then : 8074 8075 LDARCHFLAGS="$ARCHFLAGS" 8076 8077else $as_nop 8078 8079 LDARCHFLAGS="$with_ldarchflags" 8080 8081fi 8082 8083 8084 8085 8086# Check whether --enable-relro was given. 8087if test ${enable_relro+y} 8088then : 8089 enableval=$enable_relro; 8090fi 8091 8092 8093# Check whether --enable-sanitizer was given. 8094if test ${enable_sanitizer+y} 8095then : 8096 enableval=$enable_sanitizer; 8097fi 8098 8099 8100CXXLIBS="${CXXLIBS:=}" 8101 8102 8103PIEFLAGS="" 8104 8105 8106RELROFLAGS="" 8107 8108 8109WARNING_OPTIONS="" 8110 8111 8112if test -n "$GCC" 8113then : 8114 8115 # Add GCC/Clang compiler options... 8116 8117 # Address sanitizer is a useful tool to use when developing/debugging 8118 # code but adds about 2x overhead... 8119 if test x$enable_sanitizer = xyes 8120then : 8121 8122 # Use -fsanitize=address with debugging... 8123 OPTIM="$OPTIM -g -fsanitize=address" 8124 8125elif echo "$CXXFLAGS $CFLAGS" | grep -q _FORTIFY_SOURCE 8126then : 8127 8128 # Don't add _FORTIFY_SOURCE if it is already there 8129 8130else $as_nop 8131 8132 # Otherwise use the Fortify enhancements to catch any unbounded 8133 # string operations... 8134 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3" 8135 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=3" 8136 8137fi 8138 8139 # Default optimization options... 8140 if test -z "$OPTIM" 8141then : 8142 8143 # Default to optimize-for-size and debug 8144 OPTIM="-Os -g" 8145 8146fi 8147 8148 # Generate position-independent code as needed... 8149 if test $PICFLAG = 1 8150then : 8151 8152 OPTIM="-fPIC $OPTIM" 8153 8154fi 8155 8156 # The -fstack-protector-strong and -fstack-protector options are available 8157 # with some versions of GCC and adds "stack canaries" which detect 8158 # when the return address has been overwritten, preventing many types of exploit attacks. 8159 # First check for -fstack-protector-strong, then for -fstack-protector... 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector-strong" >&5 8161printf %s "checking whether compiler supports -fstack-protector-strong... " >&6; } 8162 OLDCFLAGS="$CFLAGS" 8163 CFLAGS="$CFLAGS -fstack-protector-strong" 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166 8167int 8168main (void) 8169{ 8170 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO" 8176then : 8177 8178 OPTIM="$OPTIM -fstack-protector-strong" 8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8180printf "%s\n" "yes" >&6; } 8181 8182else $as_nop 8183 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8185printf "%s\n" "no" >&6; } 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5 8187printf %s "checking whether compiler supports -fstack-protector... " >&6; } 8188 CFLAGS="$OLDCFLAGS -fstack-protector" 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 8192int 8193main (void) 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_link "$LINENO" 8201then : 8202 8203 OPTIM="$OPTIM -fstack-protector" 8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8205printf "%s\n" "yes" >&6; } 8206 8207else $as_nop 8208 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8210printf "%s\n" "no" >&6; } 8211 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8214 conftest$ac_exeext conftest.$ac_ext 8215 8216fi 8217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8218 conftest$ac_exeext conftest.$ac_ext 8219 CFLAGS="$OLDCFLAGS" 8220 8221 if test "x$LSB_BUILD" != xy 8222then : 8223 8224 # The -fPIE option is available with some versions of GCC and 8225 # adds randomization of addresses, which avoids another class of 8226 # exploits that depend on a fixed address for common functions. 8227 # 8228 # Not available to LSB binaries... 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5 8230printf %s "checking whether compiler supports -fPIE... " >&6; } 8231 OLDCFLAGS="$CFLAGS" 8232 case "$host_os_name" in #( 8233 darwin*) : 8234 8235 CFLAGS="$CFLAGS -fPIE -Wl,-pie" 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238 8239int 8240main (void) 8241{ 8242 8243 ; 8244 return 0; 8245} 8246_ACEOF 8247if ac_fn_c_try_link "$LINENO" 8248then : 8249 8250 PIEFLAGS="-fPIE -Wl,-pie" 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8252printf "%s\n" "yes" >&6; } 8253 8254else $as_nop 8255 8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257printf "%s\n" "no" >&6; } 8258 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8261 conftest$ac_exeext conftest.$ac_ext 8262 ;; #( 8263 *) : 8264 8265 CFLAGS="$CFLAGS -fPIE -pie" 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267/* end confdefs.h. */ 8268 8269int 8270main (void) 8271{ 8272 8273 ; 8274 return 0; 8275} 8276_ACEOF 8277if ac_fn_c_try_compile "$LINENO" 8278then : 8279 8280 PIEFLAGS="-fPIE -pie" 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8282printf "%s\n" "yes" >&6; } 8283 8284else $as_nop 8285 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287printf "%s\n" "no" >&6; } 8288 8289fi 8290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8291 ;; #( 8292 *) : 8293 ;; 8294esac 8295 CFLAGS="$OLDCFLAGS" 8296 8297fi 8298 8299 WARNING_OPTIONS="-Wall -Wunused" 8300 8301 for warning in char-subscripts deprecated-declarations format-truncation format-y2k switch unused-result; do 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-$warning" >&5 8303printf %s "checking whether compiler supports -Wno-$warning... " >&6; } 8304 8305 OLDCFLAGS="$CFLAGS" 8306 CFLAGS="$CFLAGS -Wno-$warning -Werror" 8307 8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8309/* end confdefs.h. */ 8310 8311int 8312main (void) 8313{ 8314 8315 ; 8316 return 0; 8317} 8318_ACEOF 8319if ac_fn_c_try_compile "$LINENO" 8320then : 8321 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8323printf "%s\n" "yes" >&6; } 8324 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-$warning" 8325 8326else $as_nop 8327 8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8329printf "%s\n" "no" >&6; } 8330 8331fi 8332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8333 8334 CFLAGS="$OLDCFLAGS" 8335 done 8336 8337 if test x$enable_maintainer = xyes 8338then : 8339 8340 WARNING_OPTIONS="$WARNING_OPTIONS -Werror" 8341 8342fi 8343 8344else $as_nop 8345 8346 # Add vendor-specific compiler options... 8347 case $host_os_name in #( 8348 sunos* | solaris*) : 8349 8350 # Solaris 8351 if test -z "$OPTIM" 8352then : 8353 8354 OPTIM="-xO2" 8355 8356fi 8357 8358 if test $PICFLAG = 1 8359then : 8360 8361 OPTIM="-KPIC $OPTIM" 8362 8363fi 8364 ;; #( 8365 *) : 8366 8367 # Running some other operating system; inform the user 8368 # they should contribute the necessary options via 8369 # GitHub... 8370 echo "Building CUPS with default compiler optimizations." 8371 echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler" 8372 echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment" 8373 echo "variables before running configure." 8374 echo "" 8375 echo "https://github.com/openprinting/cups" 8376 ;; #( 8377 *) : 8378 ;; 8379esac 8380 8381fi 8382 8383# Add general compiler options per platform... 8384case $host_os_name in #( 8385 linux*) : 8386 8387 # glibc 2.8 and higher breaks peer credentials unless you 8388 # define _GNU_SOURCE... 8389 OPTIM="$OPTIM -D_GNU_SOURCE" 8390 8391 # The -z relro option is provided by the Linux linker command to 8392 # make relocatable data read-only. 8393 if test x$enable_relro = xyes 8394then : 8395 8396 RELROFLAGS="-Wl,-z,relro,-z,now" 8397 8398fi 8399 ;; #( 8400 *) : 8401 ;; 8402esac 8403 8404 8405ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 8406 #include <sys/socket.h> 8407 #include <netinet/in.h> 8408 #include <arpa/inet.h> 8409 #include <netinet/in_systm.h> 8410 #include <netinet/ip.h> 8411 8412" 8413if test "x$ac_cv_header_resolv_h" = xyes 8414then : 8415 8416 8417printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h 8418 8419 8420fi 8421 8422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 8423printf %s "checking for library containing socket... " >&6; } 8424if test ${ac_cv_search_socket+y} 8425then : 8426 printf %s "(cached) " >&6 8427else $as_nop 8428 ac_func_search_save_LIBS=$LIBS 8429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430/* end confdefs.h. */ 8431 8432/* Override any GCC internal prototype to avoid an error. 8433 Use char because int might match the return type of a GCC 8434 builtin and then its argument prototype would still apply. */ 8435char socket (); 8436int 8437main (void) 8438{ 8439return socket (); 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444for ac_lib in '' socket 8445do 8446 if test -z "$ac_lib"; then 8447 ac_res="none required" 8448 else 8449 ac_res=-l$ac_lib 8450 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8451 fi 8452 if ac_fn_c_try_link "$LINENO" 8453then : 8454 ac_cv_search_socket=$ac_res 8455fi 8456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8457 conftest$ac_exeext 8458 if test ${ac_cv_search_socket+y} 8459then : 8460 break 8461fi 8462done 8463if test ${ac_cv_search_socket+y} 8464then : 8465 8466else $as_nop 8467 ac_cv_search_socket=no 8468fi 8469rm conftest.$ac_ext 8470LIBS=$ac_func_search_save_LIBS 8471fi 8472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 8473printf "%s\n" "$ac_cv_search_socket" >&6; } 8474ac_res=$ac_cv_search_socket 8475if test "$ac_res" != no 8476then : 8477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8478 8479fi 8480 8481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 8482printf %s "checking for library containing gethostbyaddr... " >&6; } 8483if test ${ac_cv_search_gethostbyaddr+y} 8484then : 8485 printf %s "(cached) " >&6 8486else $as_nop 8487 ac_func_search_save_LIBS=$LIBS 8488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490 8491/* Override any GCC internal prototype to avoid an error. 8492 Use char because int might match the return type of a GCC 8493 builtin and then its argument prototype would still apply. */ 8494char gethostbyaddr (); 8495int 8496main (void) 8497{ 8498return gethostbyaddr (); 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503for ac_lib in '' nsl 8504do 8505 if test -z "$ac_lib"; then 8506 ac_res="none required" 8507 else 8508 ac_res=-l$ac_lib 8509 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8510 fi 8511 if ac_fn_c_try_link "$LINENO" 8512then : 8513 ac_cv_search_gethostbyaddr=$ac_res 8514fi 8515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8516 conftest$ac_exeext 8517 if test ${ac_cv_search_gethostbyaddr+y} 8518then : 8519 break 8520fi 8521done 8522if test ${ac_cv_search_gethostbyaddr+y} 8523then : 8524 8525else $as_nop 8526 ac_cv_search_gethostbyaddr=no 8527fi 8528rm conftest.$ac_ext 8529LIBS=$ac_func_search_save_LIBS 8530fi 8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 8532printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; } 8533ac_res=$ac_cv_search_gethostbyaddr 8534if test "$ac_res" != no 8535then : 8536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8537 8538fi 8539 8540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 8541printf %s "checking for library containing getifaddrs... " >&6; } 8542if test ${ac_cv_search_getifaddrs+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 ac_func_search_save_LIBS=$LIBS 8547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8548/* end confdefs.h. */ 8549 8550/* Override any GCC internal prototype to avoid an error. 8551 Use char because int might match the return type of a GCC 8552 builtin and then its argument prototype would still apply. */ 8553char getifaddrs (); 8554int 8555main (void) 8556{ 8557return getifaddrs (); 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562for ac_lib in '' nsl 8563do 8564 if test -z "$ac_lib"; then 8565 ac_res="none required" 8566 else 8567 ac_res=-l$ac_lib 8568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8569 fi 8570 if ac_fn_c_try_link "$LINENO" 8571then : 8572 ac_cv_search_getifaddrs=$ac_res 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8575 conftest$ac_exeext 8576 if test ${ac_cv_search_getifaddrs+y} 8577then : 8578 break 8579fi 8580done 8581if test ${ac_cv_search_getifaddrs+y} 8582then : 8583 8584else $as_nop 8585 ac_cv_search_getifaddrs=no 8586fi 8587rm conftest.$ac_ext 8588LIBS=$ac_func_search_save_LIBS 8589fi 8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 8591printf "%s\n" "$ac_cv_search_getifaddrs" >&6; } 8592ac_res=$ac_cv_search_getifaddrs 8593if test "$ac_res" != no 8594then : 8595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8596 8597 8598printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 8599 8600 8601fi 8602 8603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 8604printf %s "checking for library containing hstrerror... " >&6; } 8605if test ${ac_cv_search_hstrerror+y} 8606then : 8607 printf %s "(cached) " >&6 8608else $as_nop 8609 ac_func_search_save_LIBS=$LIBS 8610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612 8613/* Override any GCC internal prototype to avoid an error. 8614 Use char because int might match the return type of a GCC 8615 builtin and then its argument prototype would still apply. */ 8616char hstrerror (); 8617int 8618main (void) 8619{ 8620return hstrerror (); 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625for ac_lib in '' nsl socket resolv 8626do 8627 if test -z "$ac_lib"; then 8628 ac_res="none required" 8629 else 8630 ac_res=-l$ac_lib 8631 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8632 fi 8633 if ac_fn_c_try_link "$LINENO" 8634then : 8635 ac_cv_search_hstrerror=$ac_res 8636fi 8637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8638 conftest$ac_exeext 8639 if test ${ac_cv_search_hstrerror+y} 8640then : 8641 break 8642fi 8643done 8644if test ${ac_cv_search_hstrerror+y} 8645then : 8646 8647else $as_nop 8648 ac_cv_search_hstrerror=no 8649fi 8650rm conftest.$ac_ext 8651LIBS=$ac_func_search_save_LIBS 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 8654printf "%s\n" "$ac_cv_search_hstrerror" >&6; } 8655ac_res=$ac_cv_search_hstrerror 8656if test "$ac_res" != no 8657then : 8658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8659 8660 8661printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h 8662 8663 8664fi 8665 8666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 8667printf %s "checking for library containing rresvport_af... " >&6; } 8668if test ${ac_cv_search_rresvport_af+y} 8669then : 8670 printf %s "(cached) " >&6 8671else $as_nop 8672 ac_func_search_save_LIBS=$LIBS 8673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675 8676/* Override any GCC internal prototype to avoid an error. 8677 Use char because int might match the return type of a GCC 8678 builtin and then its argument prototype would still apply. */ 8679char rresvport_af (); 8680int 8681main (void) 8682{ 8683return rresvport_af (); 8684 ; 8685 return 0; 8686} 8687_ACEOF 8688for ac_lib in '' nsl 8689do 8690 if test -z "$ac_lib"; then 8691 ac_res="none required" 8692 else 8693 ac_res=-l$ac_lib 8694 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8695 fi 8696 if ac_fn_c_try_link "$LINENO" 8697then : 8698 ac_cv_search_rresvport_af=$ac_res 8699fi 8700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8701 conftest$ac_exeext 8702 if test ${ac_cv_search_rresvport_af+y} 8703then : 8704 break 8705fi 8706done 8707if test ${ac_cv_search_rresvport_af+y} 8708then : 8709 8710else $as_nop 8711 ac_cv_search_rresvport_af=no 8712fi 8713rm conftest.$ac_ext 8714LIBS=$ac_func_search_save_LIBS 8715fi 8716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 8717printf "%s\n" "$ac_cv_search_rresvport_af" >&6; } 8718ac_res=$ac_cv_search_rresvport_af 8719if test "$ac_res" != no 8720then : 8721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8722 8723 8724printf "%s\n" "#define HAVE_RRESVPORT_AF 1" >>confdefs.h 8725 8726 8727fi 8728 8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 8730printf %s "checking for library containing __res_init... " >&6; } 8731if test ${ac_cv_search___res_init+y} 8732then : 8733 printf %s "(cached) " >&6 8734else $as_nop 8735 ac_func_search_save_LIBS=$LIBS 8736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738 8739/* Override any GCC internal prototype to avoid an error. 8740 Use char because int might match the return type of a GCC 8741 builtin and then its argument prototype would still apply. */ 8742char __res_init (); 8743int 8744main (void) 8745{ 8746return __res_init (); 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751for ac_lib in '' resolv bind 8752do 8753 if test -z "$ac_lib"; then 8754 ac_res="none required" 8755 else 8756 ac_res=-l$ac_lib 8757 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8758 fi 8759 if ac_fn_c_try_link "$LINENO" 8760then : 8761 ac_cv_search___res_init=$ac_res 8762fi 8763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8764 conftest$ac_exeext 8765 if test ${ac_cv_search___res_init+y} 8766then : 8767 break 8768fi 8769done 8770if test ${ac_cv_search___res_init+y} 8771then : 8772 8773else $as_nop 8774 ac_cv_search___res_init=no 8775fi 8776rm conftest.$ac_ext 8777LIBS=$ac_func_search_save_LIBS 8778fi 8779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 8780printf "%s\n" "$ac_cv_search___res_init" >&6; } 8781ac_res=$ac_cv_search___res_init 8782if test "$ac_res" != no 8783then : 8784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8785 8786 8787printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h 8788 8789 8790else $as_nop 8791 8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 8793printf %s "checking for library containing res_9_init... " >&6; } 8794if test ${ac_cv_search_res_9_init+y} 8795then : 8796 printf %s "(cached) " >&6 8797else $as_nop 8798 ac_func_search_save_LIBS=$LIBS 8799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800/* end confdefs.h. */ 8801 8802/* Override any GCC internal prototype to avoid an error. 8803 Use char because int might match the return type of a GCC 8804 builtin and then its argument prototype would still apply. */ 8805char res_9_init (); 8806int 8807main (void) 8808{ 8809return res_9_init (); 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814for ac_lib in '' resolv bind 8815do 8816 if test -z "$ac_lib"; then 8817 ac_res="none required" 8818 else 8819 ac_res=-l$ac_lib 8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8821 fi 8822 if ac_fn_c_try_link "$LINENO" 8823then : 8824 ac_cv_search_res_9_init=$ac_res 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8827 conftest$ac_exeext 8828 if test ${ac_cv_search_res_9_init+y} 8829then : 8830 break 8831fi 8832done 8833if test ${ac_cv_search_res_9_init+y} 8834then : 8835 8836else $as_nop 8837 ac_cv_search_res_9_init=no 8838fi 8839rm conftest.$ac_ext 8840LIBS=$ac_func_search_save_LIBS 8841fi 8842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 8843printf "%s\n" "$ac_cv_search_res_9_init" >&6; } 8844ac_res=$ac_cv_search_res_9_init 8845if test "$ac_res" != no 8846then : 8847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8848 8849 8850printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h 8851 8852 8853else $as_nop 8854 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 8856printf %s "checking for library containing res_init... " >&6; } 8857if test ${ac_cv_search_res_init+y} 8858then : 8859 printf %s "(cached) " >&6 8860else $as_nop 8861 ac_func_search_save_LIBS=$LIBS 8862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864 8865/* Override any GCC internal prototype to avoid an error. 8866 Use char because int might match the return type of a GCC 8867 builtin and then its argument prototype would still apply. */ 8868char res_init (); 8869int 8870main (void) 8871{ 8872return res_init (); 8873 ; 8874 return 0; 8875} 8876_ACEOF 8877for ac_lib in '' resolv bind 8878do 8879 if test -z "$ac_lib"; then 8880 ac_res="none required" 8881 else 8882 ac_res=-l$ac_lib 8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8884 fi 8885 if ac_fn_c_try_link "$LINENO" 8886then : 8887 ac_cv_search_res_init=$ac_res 8888fi 8889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8890 conftest$ac_exeext 8891 if test ${ac_cv_search_res_init+y} 8892then : 8893 break 8894fi 8895done 8896if test ${ac_cv_search_res_init+y} 8897then : 8898 8899else $as_nop 8900 ac_cv_search_res_init=no 8901fi 8902rm conftest.$ac_ext 8903LIBS=$ac_func_search_save_LIBS 8904fi 8905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 8906printf "%s\n" "$ac_cv_search_res_init" >&6; } 8907ac_res=$ac_cv_search_res_init 8908if test "$ac_res" != no 8909then : 8910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8911 8912 8913printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h 8914 8915 8916fi 8917 8918 8919fi 8920 8921 8922fi 8923 8924 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 8926printf %s "checking for library containing getaddrinfo... " >&6; } 8927if test ${ac_cv_search_getaddrinfo+y} 8928then : 8929 printf %s "(cached) " >&6 8930else $as_nop 8931 ac_func_search_save_LIBS=$LIBS 8932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934 8935/* Override any GCC internal prototype to avoid an error. 8936 Use char because int might match the return type of a GCC 8937 builtin and then its argument prototype would still apply. */ 8938char getaddrinfo (); 8939int 8940main (void) 8941{ 8942return getaddrinfo (); 8943 ; 8944 return 0; 8945} 8946_ACEOF 8947for ac_lib in '' nsl 8948do 8949 if test -z "$ac_lib"; then 8950 ac_res="none required" 8951 else 8952 ac_res=-l$ac_lib 8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8954 fi 8955 if ac_fn_c_try_link "$LINENO" 8956then : 8957 ac_cv_search_getaddrinfo=$ac_res 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8960 conftest$ac_exeext 8961 if test ${ac_cv_search_getaddrinfo+y} 8962then : 8963 break 8964fi 8965done 8966if test ${ac_cv_search_getaddrinfo+y} 8967then : 8968 8969else $as_nop 8970 ac_cv_search_getaddrinfo=no 8971fi 8972rm conftest.$ac_ext 8973LIBS=$ac_func_search_save_LIBS 8974fi 8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 8976printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } 8977ac_res=$ac_cv_search_getaddrinfo 8978if test "$ac_res" != no 8979then : 8980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8981 8982 8983printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 8984 8985 8986fi 8987 8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 8989printf %s "checking for library containing getnameinfo... " >&6; } 8990if test ${ac_cv_search_getnameinfo+y} 8991then : 8992 printf %s "(cached) " >&6 8993else $as_nop 8994 ac_func_search_save_LIBS=$LIBS 8995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996/* end confdefs.h. */ 8997 8998/* Override any GCC internal prototype to avoid an error. 8999 Use char because int might match the return type of a GCC 9000 builtin and then its argument prototype would still apply. */ 9001char getnameinfo (); 9002int 9003main (void) 9004{ 9005return getnameinfo (); 9006 ; 9007 return 0; 9008} 9009_ACEOF 9010for ac_lib in '' nsl 9011do 9012 if test -z "$ac_lib"; then 9013 ac_res="none required" 9014 else 9015 ac_res=-l$ac_lib 9016 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9017 fi 9018 if ac_fn_c_try_link "$LINENO" 9019then : 9020 ac_cv_search_getnameinfo=$ac_res 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9023 conftest$ac_exeext 9024 if test ${ac_cv_search_getnameinfo+y} 9025then : 9026 break 9027fi 9028done 9029if test ${ac_cv_search_getnameinfo+y} 9030then : 9031 9032else $as_nop 9033 ac_cv_search_getnameinfo=no 9034fi 9035rm conftest.$ac_ext 9036LIBS=$ac_func_search_save_LIBS 9037fi 9038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 9039printf "%s\n" "$ac_cv_search_getnameinfo" >&6; } 9040ac_res=$ac_cv_search_getnameinfo 9041if test "$ac_res" != no 9042then : 9043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9044 9045 9046printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 9047 9048 9049fi 9050 9051 9052ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> 9053" 9054if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes 9055then : 9056 9057fi 9058 9059ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 9060if test "x$ac_cv_header_sys_sockio_h" = xyes 9061then : 9062 9063 9064printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 9065 9066 9067fi 9068 9069 9070CUPS_DEFAULT_DOMAINSOCKET="" 9071 9072 9073# Check whether --with-domainsocket was given. 9074if test ${with_domainsocket+y} 9075then : 9076 withval=$with_domainsocket; 9077 default_domainsocket="$withval" 9078 9079else $as_nop 9080 9081 default_domainsocket="" 9082 9083fi 9084 9085 9086if test x$enable_domainsocket != xno -a x$default_domainsocket != xno 9087then : 9088 9089 if test "x$default_domainsocket" = x 9090then : 9091 9092 case "$host_os_name" in #( 9093 darwin*) : 9094 9095 # Darwin and macOS do their own thing... 9096 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" 9097 ;; #( 9098 *) : 9099 9100 # All others use FHS standard... 9101 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" 9102 ;; #( 9103 *) : 9104 ;; 9105esac 9106 9107else $as_nop 9108 9109 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" 9110 9111fi 9112 9113 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" 9114 9115 9116printf "%s\n" "#define CUPS_DEFAULT_DOMAINSOCKET \"$CUPS_DEFAULT_DOMAINSOCKET\"" >>confdefs.h 9117 9118 9119else $as_nop 9120 9121 CUPS_LISTEN_DOMAINSOCKET="" 9122 9123fi 9124 9125 9126 9127 9128 9129ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 9130if test "x$ac_cv_func_poll" = xyes 9131then : 9132 9133 9134printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 9135 9136 9137fi 9138 9139ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" 9140if test "x$ac_cv_func_epoll_create" = xyes 9141then : 9142 9143 9144printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 9145 9146 9147fi 9148 9149ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 9150if test "x$ac_cv_func_kqueue" = xyes 9151then : 9152 9153 9154printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 9155 9156 9157fi 9158 9159 9160 9161# Check whether --enable-gssapi was given. 9162if test ${enable_gssapi+y} 9163then : 9164 enableval=$enable_gssapi; 9165fi 9166 9167 9168LIBGSSAPI="" 9169 9170 9171if test x$enable_gssapi = xyes 9172then : 9173 9174 if test -n "$ac_tool_prefix"; then 9175 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. 9176set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 9177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9178printf %s "checking for $ac_word... " >&6; } 9179if test ${ac_cv_path_KRB5CONFIG+y} 9180then : 9181 printf %s "(cached) " >&6 9182else $as_nop 9183 case $KRB5CONFIG in 9184 [\\/]* | ?:[\\/]*) 9185 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. 9186 ;; 9187 *) 9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9189for as_dir in $PATH 9190do 9191 IFS=$as_save_IFS 9192 case $as_dir in #((( 9193 '') as_dir=./ ;; 9194 */) ;; 9195 *) as_dir=$as_dir/ ;; 9196 esac 9197 for ac_exec_ext in '' $ac_executable_extensions; do 9198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9199 ac_cv_path_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext" 9200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9201 break 2 9202 fi 9203done 9204 done 9205IFS=$as_save_IFS 9206 9207 ;; 9208esac 9209fi 9210KRB5CONFIG=$ac_cv_path_KRB5CONFIG 9211if test -n "$KRB5CONFIG"; then 9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 9213printf "%s\n" "$KRB5CONFIG" >&6; } 9214else 9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9216printf "%s\n" "no" >&6; } 9217fi 9218 9219 9220fi 9221if test -z "$ac_cv_path_KRB5CONFIG"; then 9222 ac_pt_KRB5CONFIG=$KRB5CONFIG 9223 # Extract the first word of "krb5-config", so it can be a program name with args. 9224set dummy krb5-config; ac_word=$2 9225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9226printf %s "checking for $ac_word... " >&6; } 9227if test ${ac_cv_path_ac_pt_KRB5CONFIG+y} 9228then : 9229 printf %s "(cached) " >&6 9230else $as_nop 9231 case $ac_pt_KRB5CONFIG in 9232 [\\/]* | ?:[\\/]*) 9233 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. 9234 ;; 9235 *) 9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9237for as_dir in $PATH 9238do 9239 IFS=$as_save_IFS 9240 case $as_dir in #((( 9241 '') as_dir=./ ;; 9242 */) ;; 9243 *) as_dir=$as_dir/ ;; 9244 esac 9245 for ac_exec_ext in '' $ac_executable_extensions; do 9246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9247 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext" 9248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9249 break 2 9250 fi 9251done 9252 done 9253IFS=$as_save_IFS 9254 9255 ;; 9256esac 9257fi 9258ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG 9259if test -n "$ac_pt_KRB5CONFIG"; then 9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 9261printf "%s\n" "$ac_pt_KRB5CONFIG" >&6; } 9262else 9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9264printf "%s\n" "no" >&6; } 9265fi 9266 9267 if test "x$ac_pt_KRB5CONFIG" = x; then 9268 KRB5CONFIG="" 9269 else 9270 case $cross_compiling:$ac_tool_warned in 9271yes:) 9272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9274ac_tool_warned=yes ;; 9275esac 9276 KRB5CONFIG=$ac_pt_KRB5CONFIG 9277 fi 9278else 9279 KRB5CONFIG="$ac_cv_path_KRB5CONFIG" 9280fi 9281 9282 case "$host_os_name" in #( 9283 darwin*) : 9284 9285 # macOS weak-links to the Kerberos framework... 9286 9287printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 9288 9289 LIBGSSAPI="-weak_framework Kerberos" 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 9291printf %s "checking for GSS framework... " >&6; } 9292 if test -d /System/Library/Frameworks/GSS.framework 9293then : 9294 9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9296printf "%s\n" "yes" >&6; } 9297 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" 9298 9299else $as_nop 9300 9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9302printf "%s\n" "no" >&6; } 9303 9304fi 9305 ;; #( 9306 sunos* | solaris*) : 9307 9308 # Solaris has a non-standard krb5-config, don't use it! 9309 SAVELIBS="$LIBS" 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 9311printf %s "checking for gss_display_status in -lgss... " >&6; } 9312if test ${ac_cv_lib_gss_gss_display_status+y} 9313then : 9314 printf %s "(cached) " >&6 9315else $as_nop 9316 ac_check_lib_save_LIBS=$LIBS 9317LIBS="-lgss $LIBS" 9318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320 9321/* Override any GCC internal prototype to avoid an error. 9322 Use char because int might match the return type of a GCC 9323 builtin and then its argument prototype would still apply. */ 9324char gss_display_status (); 9325int 9326main (void) 9327{ 9328return gss_display_status (); 9329 ; 9330 return 0; 9331} 9332_ACEOF 9333if ac_fn_c_try_link "$LINENO" 9334then : 9335 ac_cv_lib_gss_gss_display_status=yes 9336else $as_nop 9337 ac_cv_lib_gss_gss_display_status=no 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9340 conftest$ac_exeext conftest.$ac_ext 9341LIBS=$ac_check_lib_save_LIBS 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 9344printf "%s\n" "$ac_cv_lib_gss_gss_display_status" >&6; } 9345if test "x$ac_cv_lib_gss_gss_display_status" = xyes 9346then : 9347 9348 9349printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 9350 9351 if test "x$KRB5CONFIG" != x 9352then : 9353 9354 CFLAGS="$($KRB5CONFIG --cflags) $CFLAGS" 9355 CPPFLAGS="$($KRB5CONFIG --cflags) $CPPFLAGS" 9356 LIBGSSAPI="-lgss $($KRB5CONFIG --libs)" 9357 9358else $as_nop 9359 9360 LIBGSSAPI="-lgss" 9361 9362fi 9363 9364else $as_nop 9365 9366 as_fn_error $? "--enable-gssapi specified but GSSAPI library cannot be found." "$LINENO" 5 9367 9368fi 9369 9370 LIBS="$SAVELIBS" 9371 ;; #( 9372 *) : 9373 9374 # Other platforms just ask for GSSAPI 9375 if test "x$KRB5CONFIG" = x 9376then : 9377 9378 as_fn_error $? "--enable-gssapi specified but krb5-config cannot be found." "$LINENO" 5 9379 9380else $as_nop 9381 9382 9383printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 9384 9385 CFLAGS="$($KRB5CONFIG --cflags gssapi) $CFLAGS" 9386 CPPFLAGS="$($KRB5CONFIG --cflags gssapi) $CPPFLAGS" 9387 LIBGSSAPI="$($KRB5CONFIG --libs gssapi)" 9388 9389fi 9390 ;; #( 9391 *) : 9392 ;; 9393esac 9394 9395 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 9396if test "x$ac_cv_header_krb5_h" = xyes 9397then : 9398 9399printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h 9400 9401fi 9402 9403 if test -d /System/Library/Frameworks/GSS.framework 9404then : 9405 9406 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" 9407if test "x$ac_cv_header_GSS_gssapi_h" = xyes 9408then : 9409 9410printf "%s\n" "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h 9411 9412fi 9413 9414 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" 9415if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes 9416then : 9417 9418printf "%s\n" "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h 9419 9420fi 9421 9422 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" 9423if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes 9424then : 9425 9426printf "%s\n" "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h 9427 9428fi 9429 9430 9431else $as_nop 9432 9433 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 9434if test "x$ac_cv_header_gssapi_h" = xyes 9435then : 9436 9437printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h 9438 9439fi 9440 9441 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 9442if test "x$ac_cv_header_gssapi_gssapi_h" = xyes 9443then : 9444 9445printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h 9446 9447fi 9448 9449 9450fi 9451 9452 SAVELIBS="$LIBS" 9453 LIBS="$LIBS $LIBGSSAPI" 9454 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBGSSAPI" 9455 9456 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" 9457if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes 9458then : 9459 9460 9461printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h 9462 9463 9464fi 9465 9466 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 9468printf %s "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 9469 if test x$ac_cv_header_gssapi_gssapi_h = xyes 9470then : 9471 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474 9475 #include <gssapi/gssapi.h> 9476int 9477main (void) 9478{ 9479 9480 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; 9481 9482 ; 9483 return 0; 9484} 9485 9486_ACEOF 9487if ac_fn_c_try_compile "$LINENO" 9488then : 9489 9490 9491printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h 9492 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9494printf "%s\n" "yes" >&6; } 9495 9496else $as_nop 9497 9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9499printf "%s\n" "no" >&6; } 9500 9501fi 9502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9503 9504elif test x$ac_cv_header_gss_gssapi_h = xyes 9505then : 9506 9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9508/* end confdefs.h. */ 9509 9510 #include <GSS/gssapi.h> 9511int 9512main (void) 9513{ 9514 9515 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; 9516 9517 ; 9518 return 0; 9519} 9520 9521_ACEOF 9522if ac_fn_c_try_compile "$LINENO" 9523then : 9524 9525 9526printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h 9527 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9529printf "%s\n" "yes" >&6; } 9530 9531else $as_nop 9532 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9534printf "%s\n" "no" >&6; } 9535 9536fi 9537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9538 9539else $as_nop 9540 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542/* end confdefs.h. */ 9543 9544 #include <gssapi.h> 9545int 9546main (void) 9547{ 9548 9549 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; 9550 9551 ; 9552 return 0; 9553} 9554 9555_ACEOF 9556if ac_fn_c_try_compile "$LINENO" 9557then : 9558 9559 9560printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h 9561 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9563printf "%s\n" "yes" >&6; } 9564 9565else $as_nop 9566 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9568printf "%s\n" "no" >&6; } 9569 9570fi 9571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9572 9573fi 9574 9575 LIBS="$SAVELIBS" 9576 9577fi 9578 9579 9580# Check whether --with-gssservicename was given. 9581if test ${with_gssservicename+y} 9582then : 9583 withval=$with_gssservicename; 9584 default_gssservicename="$withval" 9585 9586else $as_nop 9587 9588 default_gssservicename="default" 9589 9590fi 9591 9592 9593if test x$default_gssservicename != xno 9594then : 9595 9596 if test "x$default_gssservicename" = "xdefault" 9597then : 9598 9599 CUPS_DEFAULT_GSSSERVICENAME="host" 9600 9601else $as_nop 9602 9603 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" 9604 9605fi 9606 9607else $as_nop 9608 9609 CUPS_DEFAULT_GSSSERVICENAME="" 9610 9611fi 9612 9613 9614 9615printf "%s\n" "#define CUPS_DEFAULT_GSSSERVICENAME \"$CUPS_DEFAULT_GSSSERVICENAME\"" >>confdefs.h 9616 9617 9618 9619have_pthread="no" 9620PTHREAD_FLAGS="" 9621 9622 9623ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9624if test "x$ac_cv_header_pthread_h" = xyes 9625then : 9626 9627 9628printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 9629 9630 9631fi 9632 9633 9634if test x$ac_cv_header_pthread_h = xyes 9635then : 9636 9637 for flag in -lpthreads -lpthread -pthread; do 9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 9639printf %s "checking for pthread_create using $flag... " >&6; } 9640 SAVELIBS="$LIBS" 9641 LIBS="$flag $LIBS" 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644 9645 #include <pthread.h> 9646int 9647main (void) 9648{ 9649 9650 pthread_create(0, 0, 0, 0); 9651 9652 ; 9653 return 0; 9654} 9655 9656_ACEOF 9657if ac_fn_c_try_link "$LINENO" 9658then : 9659 9660 have_pthread="yes" 9661 9662else $as_nop 9663 9664 LIBS="$SAVELIBS" 9665 9666fi 9667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9668 conftest$ac_exeext conftest.$ac_ext 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 9670printf "%s\n" "$have_pthread" >&6; } 9671 9672 if test $have_pthread = yes 9673then : 9674 9675 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" 9676 9677 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX- 9678 # compliant... :( 9679 if test $host_os_name = sunos -o $host_os_name = solaris 9680then : 9681 9682 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" 9683 9684fi 9685 break 9686 9687fi 9688 done 9689 9690fi 9691 9692if test $have_pthread = no 9693then : 9694 9695 as_fn_error $? "CUPS requires threading support." "$LINENO" 5 9696 9697fi 9698 9699 9700 9701# Check whether --with-tls was given. 9702if test ${with_tls+y} 9703then : 9704 withval=$with_tls; 9705fi 9706 9707if test "x$with_tls" = x 9708then : 9709 9710 with_tls="yes" 9711 9712elif test "$with_tls" != cdsa -a "$with_tls" != gnutls -a "$with_tls" != openssl -a "$with_tls" != no -a "$with_tls" != yes 9713then : 9714 9715 as_fn_error $? "Unsupported --with-tls value \"$with_tls\" specified." "$LINENO" 5 9716 9717fi 9718 9719TLSFLAGS="" 9720TLSLIBS="" 9721have_tls="0" 9722CUPS_SERVERKEYCHAIN="" 9723 9724if test $with_tls = yes -o $with_tls = openssl 9725then : 9726 9727 if test "x$PKGCONFIG" != x 9728then : 9729 9730 # Find openssl using pkg-config... 9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl package" >&5 9732printf %s "checking for openssl package... " >&6; } 9733 if $PKGCONFIG --exists openssl 9734then : 9735 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9737printf "%s\n" "yes" >&6; } 9738 have_tls="1" 9739 with_tls="openssl" 9740 TLSLIBS="$($PKGCONFIG --libs openssl)" 9741 TLSFLAGS="$($PKGCONFIG --cflags openssl)" 9742 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES openssl" 9743 9744printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h 9745 9746 9747printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h 9748 9749 9750else $as_nop 9751 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9753printf "%s\n" "no" >&6; } 9754 9755fi 9756 9757else $as_nop 9758 9759 # Find openssl using legacy library/header checks... 9760 SAVELIBS="$LIBS" 9761 LIBS="-lcrypto $LIBS" 9762 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 9764printf %s "checking for SSL_new in -lssl... " >&6; } 9765if test ${ac_cv_lib_ssl_SSL_new+y} 9766then : 9767 printf %s "(cached) " >&6 9768else $as_nop 9769 ac_check_lib_save_LIBS=$LIBS 9770LIBS="-lssl $LIBS" 9771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9772/* end confdefs.h. */ 9773 9774/* Override any GCC internal prototype to avoid an error. 9775 Use char because int might match the return type of a GCC 9776 builtin and then its argument prototype would still apply. */ 9777char SSL_new (); 9778int 9779main (void) 9780{ 9781return SSL_new (); 9782 ; 9783 return 0; 9784} 9785_ACEOF 9786if ac_fn_c_try_link "$LINENO" 9787then : 9788 ac_cv_lib_ssl_SSL_new=yes 9789else $as_nop 9790 ac_cv_lib_ssl_SSL_new=no 9791fi 9792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9793 conftest$ac_exeext conftest.$ac_ext 9794LIBS=$ac_check_lib_save_LIBS 9795fi 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 9797printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; } 9798if test "x$ac_cv_lib_ssl_SSL_new" = xyes 9799then : 9800 9801 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 9802if test "x$ac_cv_header_openssl_ssl_h" = xyes 9803then : 9804 9805 have_tls="1" 9806 with_tls="openssl" 9807 TLSLIBS="-lssl -lcrypto" 9808 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" 9809 9810printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h 9811 9812 9813printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h 9814 9815 9816fi 9817 9818 9819fi 9820 9821 9822 LIBS="$SAVELIBS" 9823 9824fi 9825 9826 if test $have_tls = 1 9827then : 9828 9829 CUPS_SERVERKEYCHAIN="ssl" 9830 9831elif test $with_tls = openssl 9832then : 9833 9834 as_fn_error $? "--with-tls=openssl was specified but neither the OpenSSL nor LibreSSL library were found." "$LINENO" 5 9835 9836fi 9837 9838fi 9839 9840if test $with_tls = yes -o $with_tls = gnutls 9841then : 9842 9843 if test -n "$ac_tool_prefix"; then 9844 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. 9845set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9847printf %s "checking for $ac_word... " >&6; } 9848if test ${ac_cv_path_LIBGNUTLSCONFIG+y} 9849then : 9850 printf %s "(cached) " >&6 9851else $as_nop 9852 case $LIBGNUTLSCONFIG in 9853 [\\/]* | ?:[\\/]*) 9854 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. 9855 ;; 9856 *) 9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9858for as_dir in $PATH 9859do 9860 IFS=$as_save_IFS 9861 case $as_dir in #((( 9862 '') as_dir=./ ;; 9863 */) ;; 9864 *) as_dir=$as_dir/ ;; 9865 esac 9866 for ac_exec_ext in '' $ac_executable_extensions; do 9867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9868 ac_cv_path_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext" 9869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9870 break 2 9871 fi 9872done 9873 done 9874IFS=$as_save_IFS 9875 9876 ;; 9877esac 9878fi 9879LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG 9880if test -n "$LIBGNUTLSCONFIG"; then 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 9882printf "%s\n" "$LIBGNUTLSCONFIG" >&6; } 9883else 9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9885printf "%s\n" "no" >&6; } 9886fi 9887 9888 9889fi 9890if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then 9891 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG 9892 # Extract the first word of "libgnutls-config", so it can be a program name with args. 9893set dummy libgnutls-config; ac_word=$2 9894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9895printf %s "checking for $ac_word... " >&6; } 9896if test ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+y} 9897then : 9898 printf %s "(cached) " >&6 9899else $as_nop 9900 case $ac_pt_LIBGNUTLSCONFIG in 9901 [\\/]* | ?:[\\/]*) 9902 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. 9903 ;; 9904 *) 9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9906for as_dir in $PATH 9907do 9908 IFS=$as_save_IFS 9909 case $as_dir in #((( 9910 '') as_dir=./ ;; 9911 */) ;; 9912 *) as_dir=$as_dir/ ;; 9913 esac 9914 for ac_exec_ext in '' $ac_executable_extensions; do 9915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9916 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext" 9917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9918 break 2 9919 fi 9920done 9921 done 9922IFS=$as_save_IFS 9923 9924 ;; 9925esac 9926fi 9927ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG 9928if test -n "$ac_pt_LIBGNUTLSCONFIG"; then 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 9930printf "%s\n" "$ac_pt_LIBGNUTLSCONFIG" >&6; } 9931else 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9933printf "%s\n" "no" >&6; } 9934fi 9935 9936 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then 9937 LIBGNUTLSCONFIG="" 9938 else 9939 case $cross_compiling:$ac_tool_warned in 9940yes:) 9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9943ac_tool_warned=yes ;; 9944esac 9945 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG 9946 fi 9947else 9948 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" 9949fi 9950 9951 if test "x$PKGCONFIG" != x 9952then : 9953 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls package" >&5 9955printf %s "checking for gnutls package... " >&6; } 9956 if $PKGCONFIG --exists gnutls 9957then : 9958 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9960printf "%s\n" "yes" >&6; } 9961 have_tls="1" 9962 with_tls="gnutls" 9963 TLSLIBS="$($PKGCONFIG --libs gnutls)" 9964 TLSFLAGS="$($PKGCONFIG --cflags gnutls)" 9965 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES gnutls" 9966 9967printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h 9968 9969 9970printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h 9971 9972 9973else $as_nop 9974 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9976printf "%s\n" "no" >&6; } 9977 9978fi 9979 9980fi 9981 if test $have_tls = 0 -a "x$LIBGNUTLSCONFIG" != x 9982then : 9983 9984 have_tls="1" 9985 with_tls="gnutls" 9986 TLSLIBS="$($LIBGNUTLSCONFIG --libs)" 9987 TLSFLAGS="$($LIBGNUTLSCONFIG --cflags)" 9988 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" 9989 9990printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h 9991 9992 9993printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h 9994 9995 9996fi 9997 9998 if test $have_tls = 1 9999then : 10000 10001 CUPS_SERVERKEYCHAIN="ssl" 10002 10003 SAVELIBS="$LIBS" 10004 LIBS="$LIBS $TLSLIBS" 10005 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function" 10006if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes 10007then : 10008 10009 10010printf "%s\n" "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h 10011 10012 10013fi 10014 10015 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct" 10016if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes 10017then : 10018 10019 10020printf "%s\n" "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h 10021 10022 10023fi 10024 10025 LIBS="$SAVELIBS" 10026 10027elif test $with_tls = gnutls 10028then : 10029 10030 as_fn_error $? "--with-tls=gnutls was specified but the GNU TLS library was not found." "$LINENO" 5 10031 10032fi 10033 10034fi 10035 10036if test $with_tls = yes -o $with_tls = cdsa 10037then : 10038 10039 if test $host_os_name = darwin 10040then : 10041 10042 ac_fn_c_check_header_compile "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" 10043if test "x$ac_cv_header_Security_SecureTransport_h" = xyes 10044then : 10045 10046 have_tls="1" 10047 with_tls="cdsa" 10048 10049printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h 10050 10051 10052printf "%s\n" "#define HAVE_CDSASSL 1" >>confdefs.h 10053 10054 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" 10055 10056 ac_fn_c_check_header_compile "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" 10057if test "x$ac_cv_header_Security_SecCertificate_h" = xyes 10058then : 10059 10060 10061printf "%s\n" "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h 10062 10063 10064fi 10065 10066 ac_fn_c_check_header_compile "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" 10067if test "x$ac_cv_header_Security_SecItem_h" = xyes 10068then : 10069 10070 10071printf "%s\n" "#define HAVE_SECITEM_H 1" >>confdefs.h 10072 10073 10074fi 10075 10076 ac_fn_c_check_header_compile "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" 10077if test "x$ac_cv_header_Security_SecPolicy_h" = xyes 10078then : 10079 10080 10081printf "%s\n" "#define HAVE_SECPOLICY_H 1" >>confdefs.h 10082 10083 10084fi 10085 10086 10087fi 10088 10089 10090elif test $with_tls = cdsa 10091then : 10092 10093 as_fn_error $? "--with-tls=cdsa is not compatible with your host operating system." "$LINENO" 5 10094 10095fi 10096 10097fi 10098 10099IPPALIASES="http" 10100if test $have_tls = 1 10101then : 10102 10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSLIBS=\"$TLSLIBS\"" >&5 10104printf "%s\n" "$as_me: Using TLSLIBS=\"$TLSLIBS\"" >&6;} 10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSFLAGS=\"$TLSFLAGS\"" >&5 10106printf "%s\n" "$as_me: Using TLSFLAGS=\"$TLSFLAGS\"" >&6;} 10107 IPPALIASES="http https ipps" 10108 10109elif test $with_tls = yes 10110then : 10111 10112 as_fn_error $? "--with-tls=yes was specified but no compatible TLS libraries could be found." "$LINENO" 5 10113 10114fi 10115 10116 10117 10118 10119 10120 10121EXPORT_TLSLIBS="$TLSLIBS" 10122 10123 10124 10125# Check whether --enable-pam was given. 10126if test ${enable_pam+y} 10127then : 10128 enableval=$enable_pam; 10129fi 10130 10131 10132# Check whether --with-pam_module was given. 10133if test ${with_pam_module+y} 10134then : 10135 withval=$with_pam_module; 10136fi 10137 10138 10139PAMDIR="" 10140PAMFILE="pam.std" 10141PAMLIBS="" 10142PAMMOD="pam_unknown.so" 10143PAMMODAUTH="pam_unknown.so" 10144 10145if test x$enable_pam != xno 10146then : 10147 10148 SAVELIBS="$LIBS" 10149 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10151printf %s "checking for dlopen in -ldl... " >&6; } 10152if test ${ac_cv_lib_dl_dlopen+y} 10153then : 10154 printf %s "(cached) " >&6 10155else $as_nop 10156 ac_check_lib_save_LIBS=$LIBS 10157LIBS="-ldl $LIBS" 10158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160 10161/* Override any GCC internal prototype to avoid an error. 10162 Use char because int might match the return type of a GCC 10163 builtin and then its argument prototype would still apply. */ 10164char dlopen (); 10165int 10166main (void) 10167{ 10168return dlopen (); 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173if ac_fn_c_try_link "$LINENO" 10174then : 10175 ac_cv_lib_dl_dlopen=yes 10176else $as_nop 10177 ac_cv_lib_dl_dlopen=no 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10180 conftest$ac_exeext conftest.$ac_ext 10181LIBS=$ac_check_lib_save_LIBS 10182fi 10183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10184printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 10185if test "x$ac_cv_lib_dl_dlopen" = xyes 10186then : 10187 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 10188 10189 LIBS="-ldl $LIBS" 10190 10191fi 10192 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 10194printf %s "checking for pam_start in -lpam... " >&6; } 10195if test ${ac_cv_lib_pam_pam_start+y} 10196then : 10197 printf %s "(cached) " >&6 10198else $as_nop 10199 ac_check_lib_save_LIBS=$LIBS 10200LIBS="-lpam $LIBS" 10201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203 10204/* Override any GCC internal prototype to avoid an error. 10205 Use char because int might match the return type of a GCC 10206 builtin and then its argument prototype would still apply. */ 10207char pam_start (); 10208int 10209main (void) 10210{ 10211return pam_start (); 10212 ; 10213 return 0; 10214} 10215_ACEOF 10216if ac_fn_c_try_link "$LINENO" 10217then : 10218 ac_cv_lib_pam_pam_start=yes 10219else $as_nop 10220 ac_cv_lib_pam_pam_start=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10223 conftest$ac_exeext conftest.$ac_ext 10224LIBS=$ac_check_lib_save_LIBS 10225fi 10226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 10227printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } 10228if test "x$ac_cv_lib_pam_pam_start" = xyes 10229then : 10230 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h 10231 10232 LIBS="-lpam $LIBS" 10233 10234fi 10235 10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 10237printf %s "checking for pam_set_item in -lpam... " >&6; } 10238if test ${ac_cv_lib_pam_pam_set_item+y} 10239then : 10240 printf %s "(cached) " >&6 10241else $as_nop 10242 ac_check_lib_save_LIBS=$LIBS 10243LIBS="-lpam $LIBS" 10244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245/* end confdefs.h. */ 10246 10247/* Override any GCC internal prototype to avoid an error. 10248 Use char because int might match the return type of a GCC 10249 builtin and then its argument prototype would still apply. */ 10250char pam_set_item (); 10251int 10252main (void) 10253{ 10254return pam_set_item (); 10255 ; 10256 return 0; 10257} 10258_ACEOF 10259if ac_fn_c_try_link "$LINENO" 10260then : 10261 ac_cv_lib_pam_pam_set_item=yes 10262else $as_nop 10263 ac_cv_lib_pam_pam_set_item=no 10264fi 10265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10266 conftest$ac_exeext conftest.$ac_ext 10267LIBS=$ac_check_lib_save_LIBS 10268fi 10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 10270printf "%s\n" "$ac_cv_lib_pam_pam_set_item" >&6; } 10271if test "x$ac_cv_lib_pam_pam_set_item" = xyes 10272then : 10273 10274 10275printf "%s\n" "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h 10276 10277 10278fi 10279 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 10281printf %s "checking for pam_setcred in -lpam... " >&6; } 10282if test ${ac_cv_lib_pam_pam_setcred+y} 10283then : 10284 printf %s "(cached) " >&6 10285else $as_nop 10286 ac_check_lib_save_LIBS=$LIBS 10287LIBS="-lpam $LIBS" 10288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290 10291/* Override any GCC internal prototype to avoid an error. 10292 Use char because int might match the return type of a GCC 10293 builtin and then its argument prototype would still apply. */ 10294char pam_setcred (); 10295int 10296main (void) 10297{ 10298return pam_setcred (); 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO" 10304then : 10305 ac_cv_lib_pam_pam_setcred=yes 10306else $as_nop 10307 ac_cv_lib_pam_pam_setcred=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10310 conftest$ac_exeext conftest.$ac_ext 10311LIBS=$ac_check_lib_save_LIBS 10312fi 10313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 10314printf "%s\n" "$ac_cv_lib_pam_pam_setcred" >&6; } 10315if test "x$ac_cv_lib_pam_pam_setcred" = xyes 10316then : 10317 10318 10319printf "%s\n" "#define HAVE_PAM_SETCRED 1" >>confdefs.h 10320 10321 10322fi 10323 10324 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 10325if test "x$ac_cv_header_security_pam_appl_h" = xyes 10326then : 10327 10328fi 10329 10330 if test x$ac_cv_header_security_pam_appl_h != xyes 10331then : 10332 10333 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" 10334if test "x$ac_cv_header_pam_pam_appl_h" = xyes 10335then : 10336 10337 10338printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h 10339 10340 10341fi 10342 10343 10344fi 10345 10346 if test x$ac_cv_lib_pam_pam_start != xno 10347then : 10348 10349 # Set the necessary libraries for PAM... 10350 if test x$ac_cv_lib_dl_dlopen != xno 10351then : 10352 10353 PAMLIBS="-lpam -ldl" 10354 10355else $as_nop 10356 10357 PAMLIBS="-lpam" 10358 10359fi 10360 10361 # Find the PAM configuration directory, if any... 10362 for dir in /private/etc/pam.d /etc/pam.d; do 10363 if test -d $dir 10364then : 10365 10366 PAMDIR="$dir" 10367 break; 10368 10369fi 10370 done 10371 10372fi 10373 10374 LIBS="$SAVELIBS" 10375 10376 case "$host_os_name" in #( 10377 darwin*) : 10378 10379 # Darwin/macOS 10380 if test "x$with_pam_module" != x 10381then : 10382 10383 PAMFILE="pam.$with_pam_module" 10384 10385elif test -f /usr/lib/pam/pam_opendirectory.so.2 10386then : 10387 10388 PAMFILE="pam.opendirectory" 10389 10390else $as_nop 10391 10392 PAMFILE="pam.securityserver" 10393 10394fi 10395 ;; #( 10396 *) : 10397 10398 # All others; this test might need to be updated 10399 # as Linux distributors move things around... 10400 if test "x$with_pam_module" != x 10401then : 10402 10403 PAMMOD="pam_${with_pam_module}.so" 10404 10405elif test -f /etc/pam.d/common-auth 10406then : 10407 10408 PAMFILE="pam.common" 10409 10410elif test -f /etc/pam.d/password-auth 10411then : 10412 10413 PAMFILE="pam.password" 10414 10415elif test -f /etc/pam.d/system-auth 10416then : 10417 10418 PAMFILE="pam.system" 10419 10420else $as_nop 10421 10422 moddir="" 10423 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do 10424 if test -d $dir 10425then : 10426 10427 moddir="$dir" 10428 break; 10429 10430fi 10431 done 10432 10433 if test -f $moddir/pam_unix2.so 10434then : 10435 10436 PAMMOD="pam_unix2.so" 10437 10438elif test -f $moddir/pam_unix.so 10439then : 10440 10441 PAMMOD="pam_unix.so" 10442 10443fi 10444 10445fi 10446 10447 if test "x$PAMMOD" = xpam_unix.so 10448then : 10449 10450 PAMMODAUTH="$PAMMOD shadow nodelay" 10451 10452else $as_nop 10453 10454 PAMMODAUTH="$PAMMOD nodelay" 10455 10456fi 10457 ;; #( 10458 *) : 10459 ;; 10460esac 10461 10462fi 10463 10464 10465 10466 10467 10468 10469 10470 10471# Check whether --enable-largefile was given. 10472if test ${enable_largefile+y} 10473then : 10474 enableval=$enable_largefile; 10475fi 10476 10477if test "$enable_largefile" != no; then 10478 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10480printf %s "checking for special C compiler options needed for large files... " >&6; } 10481if test ${ac_cv_sys_largefile_CC+y} 10482then : 10483 printf %s "(cached) " >&6 10484else $as_nop 10485 ac_cv_sys_largefile_CC=no 10486 if test "$GCC" != yes; then 10487 ac_save_CC=$CC 10488 while :; do 10489 # IRIX 6.2 and later do not support large files by default, 10490 # so use the C compiler's -n32 option if that helps. 10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493#include <sys/types.h> 10494 /* Check that off_t can represent 2**63 - 1 correctly. 10495 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10496 since some C++ compilers masquerading as C compilers 10497 incorrectly reject 9223372036854775807. */ 10498#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 10499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10500 && LARGE_OFF_T % 2147483647 == 1) 10501 ? 1 : -1]; 10502int 10503main (void) 10504{ 10505 10506 ; 10507 return 0; 10508} 10509_ACEOF 10510 if ac_fn_c_try_compile "$LINENO" 10511then : 10512 break 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam 10515 CC="$CC -n32" 10516 if ac_fn_c_try_compile "$LINENO" 10517then : 10518 ac_cv_sys_largefile_CC=' -n32'; break 10519fi 10520rm -f core conftest.err conftest.$ac_objext conftest.beam 10521 break 10522 done 10523 CC=$ac_save_CC 10524 rm -f conftest.$ac_ext 10525 fi 10526fi 10527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10528printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 10529 if test "$ac_cv_sys_largefile_CC" != no; then 10530 CC=$CC$ac_cv_sys_largefile_CC 10531 fi 10532 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10534printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10535if test ${ac_cv_sys_file_offset_bits+y} 10536then : 10537 printf %s "(cached) " >&6 10538else $as_nop 10539 while :; do 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542#include <sys/types.h> 10543 /* Check that off_t can represent 2**63 - 1 correctly. 10544 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10545 since some C++ compilers masquerading as C compilers 10546 incorrectly reject 9223372036854775807. */ 10547#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 10548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10549 && LARGE_OFF_T % 2147483647 == 1) 10550 ? 1 : -1]; 10551int 10552main (void) 10553{ 10554 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559if ac_fn_c_try_compile "$LINENO" 10560then : 10561 ac_cv_sys_file_offset_bits=no; break 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566#define _FILE_OFFSET_BITS 64 10567#include <sys/types.h> 10568 /* Check that off_t can represent 2**63 - 1 correctly. 10569 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10570 since some C++ compilers masquerading as C compilers 10571 incorrectly reject 9223372036854775807. */ 10572#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 10573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10574 && LARGE_OFF_T % 2147483647 == 1) 10575 ? 1 : -1]; 10576int 10577main (void) 10578{ 10579 10580 ; 10581 return 0; 10582} 10583_ACEOF 10584if ac_fn_c_try_compile "$LINENO" 10585then : 10586 ac_cv_sys_file_offset_bits=64; break 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10589 ac_cv_sys_file_offset_bits=unknown 10590 break 10591done 10592fi 10593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10594printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 10595case $ac_cv_sys_file_offset_bits in #( 10596 no | unknown) ;; 10597 *) 10598printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 10599;; 10600esac 10601rm -rf conftest* 10602 if test $ac_cv_sys_file_offset_bits = unknown; then 10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10604printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 10605if test ${ac_cv_sys_large_files+y} 10606then : 10607 printf %s "(cached) " >&6 10608else $as_nop 10609 while :; do 10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10611/* end confdefs.h. */ 10612#include <sys/types.h> 10613 /* Check that off_t can represent 2**63 - 1 correctly. 10614 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10615 since some C++ compilers masquerading as C compilers 10616 incorrectly reject 9223372036854775807. */ 10617#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 10618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10619 && LARGE_OFF_T % 2147483647 == 1) 10620 ? 1 : -1]; 10621int 10622main (void) 10623{ 10624 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_compile "$LINENO" 10630then : 10631 ac_cv_sys_large_files=no; break 10632fi 10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636#define _LARGE_FILES 1 10637#include <sys/types.h> 10638 /* Check that off_t can represent 2**63 - 1 correctly. 10639 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10640 since some C++ compilers masquerading as C compilers 10641 incorrectly reject 9223372036854775807. */ 10642#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 10643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10644 && LARGE_OFF_T % 2147483647 == 1) 10645 ? 1 : -1]; 10646int 10647main (void) 10648{ 10649 10650 ; 10651 return 0; 10652} 10653_ACEOF 10654if ac_fn_c_try_compile "$LINENO" 10655then : 10656 ac_cv_sys_large_files=1; break 10657fi 10658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10659 ac_cv_sys_large_files=unknown 10660 break 10661done 10662fi 10663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10664printf "%s\n" "$ac_cv_sys_large_files" >&6; } 10665case $ac_cv_sys_large_files in #( 10666 no | unknown) ;; 10667 *) 10668printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 10669;; 10670esac 10671rm -rf conftest* 10672 fi 10673fi 10674 10675 10676LARGEFILE="" 10677if test x$enable_largefile != xno 10678then : 10679 10680 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" 10681 10682 if test x$ac_cv_sys_large_files = x1 10683then : 10684 10685 LARGEFILE="$LARGEFILE -D_LARGE_FILES" 10686 10687fi 10688 10689 if test x$ac_cv_sys_file_offset_bits = x64 10690then : 10691 10692 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" 10693 10694fi 10695 10696fi 10697 10698 10699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 10700printf %s "checking for long long int... " >&6; } 10701if test ${ac_cv_c_long_long+y} 10702then : 10703 printf %s "(cached) " >&6 10704else $as_nop 10705 10706 if test "$GCC" = yes 10707then : 10708 10709 ac_cv_c_long_long="yes" 10710 10711else $as_nop 10712 10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10714/* end confdefs.h. */ 10715 10716 10717int 10718main (void) 10719{ 10720long long int i; 10721 ; 10722 return 0; 10723} 10724 10725_ACEOF 10726if ac_fn_c_try_compile "$LINENO" 10727then : 10728 10729 ac_cv_c_long_long="yes" 10730 10731else $as_nop 10732 10733 ac_cv_c_long_long="no" 10734 10735fi 10736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10737 10738fi 10739 10740fi 10741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 10742printf "%s\n" "$ac_cv_c_long_long" >&6; } 10743 10744if test $ac_cv_c_long_long = yes 10745then : 10746 10747 10748printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 10749 10750 10751fi 10752 10753ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 10754if test "x$ac_cv_func_strtoll" = xyes 10755then : 10756 10757 10758printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 10759 10760 10761fi 10762 10763 10764 10765 10766# Check whether --with-dnssd was given. 10767if test ${with_dnssd+y} 10768then : 10769 withval=$with_dnssd; 10770fi 10771 10772if test x$with_dnssd = x 10773then : 10774 10775 with_dnssd="yes" 10776 10777elif test "$with_dnssd" != avahi -a "$with_dnssd" != mdnsresponder -a "$with_dnssd" != no -a "$with_dnssd" != yes 10778then : 10779 10780 as_fn_error $? "Unsupported --with-dnssd value \"$with_dnssd\"." "$LINENO" 5 10781 10782fi 10783 10784# Check whether --with-dnssd_libs was given. 10785if test ${with_dnssd_libs+y} 10786then : 10787 withval=$with_dnssd_libs; 10788 LDFLAGS="-L$withval $LDFLAGS" 10789 DSOFLAGS="-L$withval $DSOFLAGS" 10790 10791fi 10792 10793 10794# Check whether --with-dnssd_includes was given. 10795if test ${with_dnssd_includes+y} 10796then : 10797 withval=$with_dnssd_includes; 10798 CFLAGS="-I$withval $CFLAGS" 10799 CPPFLAGS="-I$withval $CPPFLAGS" 10800 10801fi 10802 10803 10804DNSSDLIBS="" 10805DNSSD_BACKEND="" 10806IPPFIND_BIN="" 10807IPPFIND_MAN="" 10808 10809if test $with_dnssd = yes -o $with_dnssd = mdnsresponder 10810then : 10811 10812 ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 10813if test "x$ac_cv_header_dns_sd_h" = xyes 10814then : 10815 10816 case "$host_os_name" in #( 10817 darwin*) : 10818 10819 # Darwin and macOS... 10820 with_dnssd="mdnsresponder" 10821 10822printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h 10823 10824 10825printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h 10826 10827 DNSSD_BACKEND="dnssd" 10828 IPPFIND_BIN="ippfind" 10829 IPPFIND_MAN="ippfind.1" 10830 ;; #( 10831 *) : 10832 10833 # All others... 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 10835printf %s "checking for current version of dns_sd library... " >&6; } 10836 SAVELIBS="$LIBS" 10837 LIBS="$LIBS -ldns_sd" 10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10839/* end confdefs.h. */ 10840 10841 #include <dns_sd.h> 10842int 10843main (void) 10844{ 10845 10846 int constant = kDNSServiceFlagsShareConnection; 10847 unsigned char txtRecord[100]; 10848 uint8_t valueLen; 10849 TXTRecordGetValuePtr(sizeof(txtRecord), txtRecord, "value", &valueLen); 10850 10851 ; 10852 return 0; 10853} 10854 10855_ACEOF 10856if ac_fn_c_try_compile "$LINENO" 10857then : 10858 10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10860printf "%s\n" "yes" >&6; } 10861 with_dnssd="mdnsresponder" 10862 10863printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h 10864 10865 10866printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h 10867 10868 DNSSDLIBS="-ldns_sd" 10869 DNSSD_BACKEND="dnssd" 10870 IPPFIND_BIN="ippfind" 10871 IPPFIND_MAN="ippfind.1" 10872 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $DNSSDLIBS" 10873 10874else $as_nop 10875 10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10877printf "%s\n" "no" >&6; } 10878 if test $with_dnssd = mdnsresponder 10879then : 10880 10881 as_fn_error $? "--with-dnssd=mdnsresponder specified but dns_sd library not present." "$LINENO" 5 10882 10883fi 10884 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10887 LIBS="$SAVELIBS" 10888 ;; #( 10889 *) : 10890 ;; 10891esac 10892 10893fi 10894 10895 10896fi 10897 10898if test $with_dnssd = avahi -o $with_dnssd = yes 10899then : 10900 10901 if test "x$PKGCONFIG" = x 10902then : 10903 10904 if test $with_dnssd = avahi 10905then : 10906 10907 as_fn_error $? "Avahi requires pkg-config." "$LINENO" 5 10908 10909fi 10910 10911else $as_nop 10912 10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Avahi client" >&5 10914printf %s "checking for Avahi client... " >&6; } 10915 if $PKGCONFIG --exists avahi-client 10916then : 10917 10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10919printf "%s\n" "yes" >&6; } 10920 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" 10921 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" 10922 DNSSD_BACKEND="dnssd" 10923 IPPFIND_BIN="ippfind" 10924 IPPFIND_MAN="ippfind.1" 10925 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES avahi-client" 10926 10927printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h 10928 10929 10930printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h 10931 10932 10933else $as_nop 10934 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10936printf "%s\n" "no" >&6; } 10937 if test $with_dnssd = avahi 10938then : 10939 10940 as_fn_error $? "--with-dnssd=avahi specified but Avahi client not present." "$LINENO" 5 10941 10942fi 10943 10944fi 10945 10946fi 10947 10948fi 10949 10950 10951 10952 10953 10954 10955 10956CONTAINER="none" 10957 10958 10959# Check whether --with-container was given. 10960if test ${with_container+y} 10961then : 10962 withval=$with_container; 10963 CONTAINER="$withval" 10964 10965fi 10966 10967 10968case "$CONTAINER" in #( 10969 none) : 10970 10971 # No container in use 10972 ;; #( 10973 snap) : 10974 10975 # Building as a snap 10976 10977printf "%s\n" "#define CUPS_SNAP 1" >>confdefs.h 10978 10979 ;; #( 10980 *) : 10981 10982 as_fn_error $? "Unsupported container '$CONTAINER' specified." "$LINENO" 5 10983 ;; #( 10984 *) : 10985 ;; 10986esac 10987 10988 10989APPARMORLIBS="" 10990SNAPDGLIBLIBS="" 10991 10992 10993 10994if test "x$PKGCONFIG" != x 10995then : 10996 10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libapparmor" >&5 10998printf %s "checking for libapparmor... " >&6; } 10999 if $PKGCONFIG --exists libapparmor 11000then : 11001 11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11003printf "%s\n" "yes" >&6; } 11004 11005 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libapparmor)" 11006 APPARMORLIBS="$($PKGCONFIG --libs libapparmor)" 11007 11008printf "%s\n" "#define HAVE_LIBAPPARMOR 1" >>confdefs.h 11009 11010 11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib-2" >&5 11012printf %s "checking for libsnapd-glib-2... " >&6; } 11013 if $PKGCONFIG --exists snapd-glib-2 glib-2.0 gio-2.0 11014then : 11015 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11017printf "%s\n" "yes" >&6; } 11018 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib-2 glib-2.0 gio-2.0)" 11019 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib-2 glib-2.0 gio-2.0)" 11020 11021printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h 11022 11023 SAVELIBS="$LIBS" 11024 LIBS="$SNAPDGLIBLIBS $LIBS" 11025 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync" 11026if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes 11027then : 11028 11029 11030printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h 11031 11032 11033fi 11034 11035 LIBS="$SAVELIBS" 11036 11037else $as_nop 11038 11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib" >&5 11040printf %s "checking for libsnapd-glib... " >&6; } 11041 if $PKGCONFIG --exists snapd-glib glib-2.0 gio-2.0 11042then : 11043 11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11045printf "%s\n" "yes" >&6; } 11046 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib glib-2.0 gio-2.0)" 11047 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib glib-2.0 gio-2.0)" 11048 11049printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h 11050 11051 SAVELIBS="$LIBS" 11052 LIBS="$SNAPDGLIBLIBS $LIBS" 11053 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync" 11054if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes 11055then : 11056 11057 11058printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h 11059 11060 11061fi 11062 11063 LIBS="$SAVELIBS" 11064 11065else $as_nop 11066 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11068printf "%s\n" "no" >&6; } 11069 11070fi 11071 11072fi 11073 11074fi 11075 11076fi 11077 11078 11079ONDEMANDFLAGS="" 11080ONDEMANDLIBS="" 11081 11082 11083 11084 11085# Check whether --with-ondemand was given. 11086if test ${with_ondemand+y} 11087then : 11088 withval=$with_ondemand; 11089fi 11090 11091 11092if test "x$with_ondemand" = x 11093then : 11094 11095 if test $host_os_name = darwin 11096then : 11097 11098 with_ondemand="launchd" 11099 11100else $as_nop 11101 11102 with_ondemand="yes" 11103 11104fi 11105 11106elif test "x$with_ondemand" = xyes -a $host_os_name = darwin 11107then : 11108 11109 with_ondemand="launchd" 11110 11111elif test "x$with_ondemand" != xno -a "x$with_ondemand" != xsystemd -a "x$with_ondemand" != xupstart -a "x$with_ondemand" != xyes 11112then : 11113 11114 as_fn_error $? "Unknown --with-ondemand value \"$with_ondemand\" specified." "$LINENO" 5 11115 11116fi 11117 11118LAUNCHD_DIR="" 11119 11120 11121if test $with_ondemand = launchd 11122then : 11123 11124 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" 11125if test "x$ac_cv_func_launch_activate_socket" = xyes 11126then : 11127 11128 11129printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h 11130 11131 11132printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h 11133 11134 with_ondemand="launchd" 11135 11136else $as_nop 11137 11138 if test $with_ondemand = launchd 11139then : 11140 11141 as_fn_error $? "Need launch_activate_socket/liblaunch for launchd support." "$LINENO" 5 11142 11143fi 11144 11145fi 11146 11147 ac_fn_c_check_header_compile "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" 11148if test "x$ac_cv_header_launch_h" = xyes 11149then : 11150 11151 11152printf "%s\n" "#define HAVE_LAUNCH_H 1" >>confdefs.h 11153 11154 11155fi 11156 11157 11158 if test $host_os_name = darwin 11159then : 11160 11161 LAUNCHD_DIR="/System/Library/LaunchDaemons" 11162 # liblaunch is already part of libSystem 11163 11164fi 11165 11166fi 11167 11168 11169# Check whether --with-systemd was given. 11170if test ${with_systemd+y} 11171then : 11172 withval=$with_systemd; 11173 SYSTEMD_DIR="$withval" 11174 11175else $as_nop 11176 11177 SYSTEMD_DIR="" 11178 11179fi 11180 11181 11182 11183if test $with_ondemand = systemd -o $with_ondemand = yes 11184then : 11185 11186 if test "x$PKGCONFIG" = x 11187then : 11188 11189 if test $with_ondemand = systemd 11190then : 11191 11192 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 11193 11194fi 11195 11196else $as_nop 11197 11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 11199printf %s "checking for libsystemd... " >&6; } 11200 have_systemd="no" 11201 if $PKGCONFIG --exists libsystemd 11202then : 11203 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11205printf "%s\n" "yes" >&6; } 11206 have_systemd="yes" 11207 with_ondemand="systemd" 11208 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd)" 11209 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd)" 11210 11211elif $PKGCONFIG --exists libsystemd-daemon 11212then : 11213 11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5 11215printf "%s\n" "yes - legacy" >&6; } 11216 have_systemd="yes" 11217 with_ondemand="systemd" 11218 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd-daemon)" 11219 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd-daemon)" 11220 11221 if $PKGCONFIG --exists libsystemd-journal 11222then : 11223 11224 ONDEMANDFLAGS="$ONDEMANDFLAGS $($PKGCONFIG --cflags libsystemd-journal)" 11225 ONDEMANDLIBS="$ONDEMANDLIBS $($PKGCONFIG --libs libsystemd-journal)" 11226 11227fi 11228 11229else $as_nop 11230 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11232printf "%s\n" "no" >&6; } 11233 11234fi 11235 11236 if test $have_systemd = yes 11237then : 11238 11239 11240printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 11241 11242 11243printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h 11244 11245 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" 11246if test "x$ac_cv_header_systemd_sd_journal_h" = xyes 11247then : 11248 11249 11250printf "%s\n" "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h 11251 11252 11253fi 11254 11255 if test "x$SYSTEMD_DIR" = x 11256then : 11257 11258 SYSTEMD_DIR="$($PKGCONFIG --variable=systemdsystemunitdir systemd)" 11259 11260fi 11261 11262fi 11263 11264fi 11265 11266fi 11267 11268if test $with_ondemand = upstart 11269then : 11270 11271 printf "%s\n" "#define HAVE_UPSTART. 1 Have upstart support?" >>confdefs.h 11272 11273 11274printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h 11275 11276 11277fi 11278 11279 11280# Check whether --with-smfmanifestdir was given. 11281if test ${with_smfmanifestdir+y} 11282then : 11283 withval=$with_smfmanifestdir; 11284 SMFMANIFESTDIR="$withval" 11285 11286else $as_nop 11287 11288 SMFMANIFESTDIR="" 11289 11290fi 11291 11292 11293 11294 11295# Check whether --with-rcdir was given. 11296if test ${with_rcdir+y} 11297then : 11298 withval=$with_rcdir; 11299 rcdir="$withval" 11300 11301else $as_nop 11302 11303 rcdir="" 11304 11305fi 11306 11307 11308# Check whether --with-rclevels was given. 11309if test ${with_rclevels+y} 11310then : 11311 withval=$with_rclevels; 11312 rclevels="$withval" 11313 11314else $as_nop 11315 11316 rclevels="2 3 5" 11317 11318fi 11319 11320 11321# Check whether --with-rcstart was given. 11322if test ${with_rcstart+y} 11323then : 11324 withval=$with_rcstart; 11325 rcstart="$withval" 11326 11327else $as_nop 11328 11329 rcstart="" 11330 11331fi 11332 11333 11334# Check whether --with-rcstop was given. 11335if test ${with_rcstop+y} 11336then : 11337 withval=$with_rcstop; 11338 rcstop="$withval" 11339 11340else $as_nop 11341 11342 rcstop="" 11343 11344fi 11345 11346 11347if test "x$rcdir" = x 11348then : 11349 11350 if test "x$LAUNCHD_DIR" = x -a "x$SYSTEMD_DIR" = x -a "x$SMFMANIFESTDIR" = x 11351then : 11352 11353 # Fall back on "init", the original service startup interface... 11354 if test -d /sbin/init.d 11355then : 11356 11357 # SuSE 11358 rcdir="/sbin/init.d" 11359 11360elif test -d /etc/init.d 11361then : 11362 11363 # Others 11364 rcdir="/etc" 11365 11366else $as_nop 11367 11368 # RedHat, NetBSD 11369 rcdir="/etc/rc.d" 11370 11371fi 11372 11373else $as_nop 11374 11375 rcdir="no" 11376 11377fi 11378 11379fi 11380 11381if test "x$rcstart" = x 11382then : 11383 11384 case "$host_os_name" in #( 11385 linux* | gnu*) : 11386 11387 # Linux 11388 rcstart="81" 11389 ;; #( 11390 sunos*) : 11391 11392 # Solaris 11393 rcstart="81" 11394 ;; #( 11395 *) : 11396 11397 # Others 11398 rcstart="99" 11399 ;; #( 11400 *) : 11401 ;; 11402esac 11403 11404fi 11405 11406if test "x$rcstop" = x 11407then : 11408 11409 case "$host_os_name" in #( 11410 linux* | gnu*) : 11411 11412 # Linux 11413 rcstop="36" 11414 ;; #( 11415 *) : 11416 11417 # Others 11418 rcstop="00" 11419 ;; #( 11420 *) : 11421 ;; 11422esac 11423 11424fi 11425 11426INITDIR="" 11427INITDDIR="" 11428RCLEVELS="$rclevels" 11429RCSTART="$rcstart" 11430RCSTOP="$rcstop" 11431 11432 11433 11434 11435 11436 11437if test "x$rcdir" != xno 11438then : 11439 11440 if test "x$rclevels" = x 11441then : 11442 11443 INITDDIR="$rcdir" 11444 11445else $as_nop 11446 11447 INITDIR="$rcdir" 11448 11449fi 11450 11451fi 11452 11453 11454# Check whether --with-xinetd was given. 11455if test ${with_xinetd+y} 11456then : 11457 withval=$with_xinetd; 11458 xinetd="$withval" 11459 11460else $as_nop 11461 11462 xinetd="" 11463 11464fi 11465 11466XINETD="" 11467 11468 11469if test "x$xinetd" = x 11470then : 11471 11472 if test ! -x /sbin/launchd 11473then : 11474 11475 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do 11476 if test -d $dir 11477then : 11478 11479 XINETD="$dir" 11480 break 11481 11482fi 11483 done 11484 11485fi 11486 11487elif test "x$xinetd" != xno 11488then : 11489 11490 XINETD="$xinetd" 11491 11492fi 11493 11494 11495SYSTEMD_WANTED_BY="printer.target" 11496 11497LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')" 11498 11499 11500# Check whether --with-languages was given. 11501if test ${with_languages+y} 11502then : 11503 withval=$with_languages; 11504 case "$withval" in #( 11505 none | no) : 11506 11507 LANGUAGES="" 11508 ;; #( 11509 all) : 11510 11511 ;; #( 11512 *) : 11513 11514 LANGUAGES="$withval" 11515 ;; #( 11516 *) : 11517 ;; 11518esac 11519 11520fi 11521 11522 11523 11524 11525# Check whether --with-bundledir was given. 11526if test ${with_bundledir+y} 11527then : 11528 withval=$with_bundledir; 11529 CUPS_BUNDLEDIR="$withval" 11530 11531else $as_nop 11532 11533 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100 11534then : 11535 11536 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" 11537 LANGUAGES="" 11538 11539else $as_nop 11540 11541 CUPS_BUNDLEDIR="" 11542 11543fi 11544 11545fi 11546 11547 11548 11549if test "x$CUPS_BUNDLEDIR" != x 11550then : 11551 11552 11553printf "%s\n" "#define CUPS_BUNDLEDIR \"$CUPS_BUNDLEDIR\"" >>confdefs.h 11554 11555 11556fi 11557 11558 11559# Check whether --with-bundlelang was given. 11560if test ${with_bundlelang+y} 11561then : 11562 withval=$with_bundlelang; 11563 cups_bundlelang="$withval" 11564 11565else $as_nop 11566 11567 if test $host_os_version -ge 190 11568then : 11569 11570 cups_bundlelang="en" 11571 11572else $as_nop 11573 11574 cups_bundlelang="English" 11575 11576fi 11577 11578fi 11579 11580 11581if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x 11582then : 11583 11584 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj" 11585 11586else $as_nop 11587 11588 CUPS_RESOURCEDIR="" 11589 11590fi 11591 11592 11593 11594# Check whether --with-exe_file_perm was given. 11595if test ${with_exe_file_perm+y} 11596then : 11597 withval=$with_exe_file_perm; 11598 CUPS_EXE_FILE_PERM="$withval" 11599 11600else $as_nop 11601 11602 CUPS_EXE_FILE_PERM="755" 11603 11604fi 11605 11606 11607 11608 11609# Check whether --with-config_file_perm was given. 11610if test ${with_config_file_perm+y} 11611then : 11612 withval=$with_config_file_perm; 11613 CUPS_CONFIG_FILE_PERM="$withval" 11614 11615else $as_nop 11616 11617 CUPS_CONFIG_FILE_PERM="640" 11618 11619fi 11620 11621 11622 11623printf "%s\n" "#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM" >>confdefs.h 11624 11625 11626 11627# Check whether --with-cupsd_file_perm was given. 11628if test ${with_cupsd_file_perm+y} 11629then : 11630 withval=$with_cupsd_file_perm; 11631 CUPS_CUPSD_FILE_PERM="$withval" 11632 11633else $as_nop 11634 11635 CUPS_CUPSD_FILE_PERM="700" 11636 11637fi 11638 11639 11640 11641 11642# Check whether --with-log_file_perm was given. 11643if test ${with_log_file_perm+y} 11644then : 11645 withval=$with_log_file_perm; 11646 CUPS_LOG_FILE_PERM="$withval" 11647 11648else $as_nop 11649 11650 CUPS_LOG_FILE_PERM="644" 11651 11652fi 11653 11654 11655 11656printf "%s\n" "#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM" >>confdefs.h 11657 11658 11659 11660# Check whether --with-max_log_size was given. 11661if test ${with_max_log_size+y} 11662then : 11663 withval=$with_max_log_size; 11664 CUPS_MAX_LOG_SIZE="$withval" 11665 11666else $as_nop 11667 11668 CUPS_MAX_LOG_SIZE="1m" 11669 11670fi 11671 11672 11673 11674printf "%s\n" "#define CUPS_DEFAULT_MAX_LOG_SIZE \"$CUPS_MAX_LOG_SIZE\"" >>confdefs.h 11675 11676 11677 11678# Check whether --with-error_policy was given. 11679if test ${with_error_policy+y} 11680then : 11681 withval=$with_error_policy; 11682 CUPS_ERROR_POLICY="$withval" 11683 11684else $as_nop 11685 11686 CUPS_ERROR_POLICY="stop-printer" 11687 11688fi 11689 11690 11691 11692printf "%s\n" "#define CUPS_DEFAULT_ERROR_POLICY \"$CUPS_ERROR_POLICY\"" >>confdefs.h 11693 11694 11695 11696# Check whether --with-fatal_errors was given. 11697if test ${with_fatal_errors+y} 11698then : 11699 withval=$with_fatal_errors; 11700 CUPS_FATAL_ERRORS="$withval" 11701 11702else $as_nop 11703 11704 CUPS_FATAL_ERRORS="config" 11705 11706fi 11707 11708 11709 11710printf "%s\n" "#define CUPS_DEFAULT_FATAL_ERRORS \"$CUPS_FATAL_ERRORS\"" >>confdefs.h 11711 11712 11713 11714# Check whether --with-log_level was given. 11715if test ${with_log_level+y} 11716then : 11717 withval=$with_log_level; 11718 CUPS_LOG_LEVEL="$withval" 11719 11720else $as_nop 11721 11722 CUPS_LOG_LEVEL="warn" 11723 11724fi 11725 11726 11727 11728printf "%s\n" "#define CUPS_DEFAULT_LOG_LEVEL \"$CUPS_LOG_LEVEL\"" >>confdefs.h 11729 11730 11731 11732# Check whether --with-access_log_level was given. 11733if test ${with_access_log_level+y} 11734then : 11735 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" 11736else $as_nop 11737 CUPS_ACCESS_LOG_LEVEL="none" 11738fi 11739 11740 11741printf "%s\n" "#define CUPS_DEFAULT_ACCESS_LOG_LEVEL \"$CUPS_ACCESS_LOG_LEVEL\"" >>confdefs.h 11742 11743 11744# Check whether --enable-page_logging was given. 11745if test ${enable_page_logging+y} 11746then : 11747 enableval=$enable_page_logging; 11748fi 11749 11750if test "x$enable_page_logging" = xyes 11751then : 11752 11753 CUPS_PAGE_LOG_FORMAT="" 11754 11755else $as_nop 11756 11757 CUPS_PAGE_LOG_FORMAT="PageLogFormat" 11758 11759fi 11760 11761 11762# Check whether --enable-sync_on_close was given. 11763if test ${enable_sync_on_close+y} 11764then : 11765 enableval=$enable_sync_on_close; 11766fi 11767 11768if test "x$enable_sync_on_close" = xyes 11769then : 11770 11771 CUPS_SYNC_ON_CLOSE="Yes" 11772 11773printf "%s\n" "#define CUPS_DEFAULT_SYNC_ON_CLOSE 1" >>confdefs.h 11774 11775 11776else $as_nop 11777 11778 CUPS_SYNC_ON_CLOSE="No" 11779 11780fi 11781 11782 11783# Check whether --enable-browsing was given. 11784if test ${enable_browsing+y} 11785then : 11786 enableval=$enable_browsing; 11787fi 11788 11789if test "x$enable_browsing" = xno 11790then : 11791 11792 CUPS_BROWSING="No" 11793 11794printf "%s\n" "#define CUPS_DEFAULT_BROWSING 0" >>confdefs.h 11795 11796 11797else $as_nop 11798 11799 CUPS_BROWSING="Yes" 11800 11801printf "%s\n" "#define CUPS_DEFAULT_BROWSING 1" >>confdefs.h 11802 11803 11804fi 11805 11806 11807 11808# Check whether --with-local_protocols was given. 11809if test ${with_local_protocols+y} 11810then : 11811 withval=$with_local_protocols; 11812 default_local_protocols="$withval" 11813 11814else $as_nop 11815 11816 default_local_protocols="default" 11817 11818fi 11819 11820 11821if test x$with_local_protocols != xno 11822then : 11823 11824 if test "x$default_local_protocols" = "xdefault" 11825then : 11826 11827 if test "x$DNSSD_BACKEND" != "x" 11828then : 11829 11830 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" 11831 11832else $as_nop 11833 11834 CUPS_BROWSE_LOCAL_PROTOCOLS="" 11835 11836fi 11837 11838else $as_nop 11839 11840 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" 11841 11842fi 11843 11844else $as_nop 11845 11846 CUPS_BROWSE_LOCAL_PROTOCOLS="" 11847 11848fi 11849 11850 11851 11852printf "%s\n" "#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS \"$CUPS_BROWSE_LOCAL_PROTOCOLS\"" >>confdefs.h 11853 11854 11855# Check whether --enable-default_shared was given. 11856if test ${enable_default_shared+y} 11857then : 11858 enableval=$enable_default_shared; 11859fi 11860 11861if test "x$enable_default_shared" = xno 11862then : 11863 11864 CUPS_DEFAULT_SHARED="No" 11865 11866printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 0" >>confdefs.h 11867 11868 11869else $as_nop 11870 11871 CUPS_DEFAULT_SHARED="Yes" 11872 11873printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 1" >>confdefs.h 11874 11875 11876fi 11877 11878 11879 11880# Check whether --with-cups_user was given. 11881if test ${with_cups_user+y} 11882then : 11883 withval=$with_cups_user; 11884 CUPS_USER="$withval" 11885 11886else $as_nop 11887 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 11889printf %s "checking for default print user... " >&6; } 11890 if test x$host_os_name = xdarwin 11891then : 11892 11893 if test "x$(id -u _lp 2>/dev/null)" = x 11894then : 11895 11896 CUPS_USER="lp" 11897 11898else $as_nop 11899 11900 CUPS_USER="_lp" 11901 11902fi 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 11904printf "%s\n" "$CUPS_USER" >&6; } 11905 11906elif test -f /etc/passwd 11907then : 11908 11909 CUPS_USER="" 11910 for user in lp lpd guest daemon nobody; do 11911 if test "$(grep \^${user}: /etc/passwd)" != "" 11912then : 11913 11914 CUPS_USER="$user" 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $user" >&5 11916printf "%s\n" "$user" >&6; } 11917 break 11918 11919fi 11920 done 11921 11922 if test x$CUPS_USER = x 11923then : 11924 11925 CUPS_USER="nobody" 11926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_USER\"" >&5 11927printf "%s\n" "not found, using \"$CUPS_USER\"" >&6; } 11928 11929fi 11930 11931else $as_nop 11932 11933 CUPS_USER="nobody" 11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no password file, using \"$CUPS_USER\"" >&5 11935printf "%s\n" "no password file, using \"$CUPS_USER\"" >&6; } 11936 11937fi 11938 11939fi 11940 11941 11942if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0" 11943then : 11944 11945 as_fn_error $? "The default user for CUPS cannot be root." "$LINENO" 5 11946 11947fi 11948 11949 11950# Check whether --with-cups_group was given. 11951if test ${with_cups_group+y} 11952then : 11953 withval=$with_cups_group; 11954 CUPS_GROUP="$withval" 11955 11956else $as_nop 11957 11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 11959printf %s "checking for default print group... " >&6; } 11960 if test x$host_os_name = xdarwin 11961then : 11962 11963 if test "x$(id -g _lp 2>/dev/null)" = x 11964then : 11965 11966 CUPS_GROUP="lp" 11967 11968else $as_nop 11969 11970 CUPS_GROUP="_lp" 11971 11972fi 11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 11974printf "%s\n" "$CUPS_GROUP" >&6; } 11975 11976elif test -f /etc/group 11977then : 11978 11979 GROUP_LIST="_lp lp nobody" 11980 CUPS_GROUP="" 11981 for group in $GROUP_LIST; do 11982 if test "$(grep \^${group}: /etc/group)" != "" 11983then : 11984 11985 CUPS_GROUP="$group" 11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $group" >&5 11987printf "%s\n" "$group" >&6; } 11988 break 11989 11990fi 11991 done 11992 11993 if test x$CUPS_GROUP = x 11994then : 11995 11996 CUPS_GROUP="nobody" 11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_GROUP\"" >&5 11998printf "%s\n" "not found, using \"$CUPS_GROUP\"" >&6; } 11999 12000fi 12001 12002else $as_nop 12003 12004 CUPS_GROUP="nobody" 12005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_GROUP\"" >&5 12006printf "%s\n" "no group file, using \"$CUPS_GROUP\"" >&6; } 12007 12008fi 12009 12010fi 12011 12012 12013if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0" 12014then : 12015 12016 as_fn_error $? "The default group for CUPS cannot be root." "$LINENO" 5 12017 12018fi 12019 12020 12021# Check whether --with-system_groups was given. 12022if test ${with_system_groups+y} 12023then : 12024 withval=$with_system_groups; 12025 CUPS_SYSTEM_GROUPS="$withval" 12026 12027else $as_nop 12028 12029 if test x$host_os_name = xdarwin 12030then : 12031 12032 CUPS_SYSTEM_GROUPS="admin" 12033 12034else $as_nop 12035 12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 12037printf %s "checking for default system groups... " >&6; } 12038 if test -f /etc/group 12039then : 12040 12041 CUPS_SYSTEM_GROUPS="" 12042 GROUP_LIST="lpadmin sys system root wheel" 12043 for group in $GROUP_LIST; do 12044 if test "$(grep \^${group}: /etc/group)" != "" 12045then : 12046 12047 if test "x$CUPS_SYSTEM_GROUPS" = x 12048then : 12049 12050 CUPS_SYSTEM_GROUPS="$group" 12051 12052else $as_nop 12053 12054 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" 12055 12056fi 12057 12058fi 12059 done 12060 12061 if test "x$CUPS_SYSTEM_GROUPS" = x 12062then : 12063 12064 CUPS_SYSTEM_GROUPS="$GROUP_LIST" 12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&5 12066printf "%s\n" "no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&6; } 12067 12068else $as_nop 12069 12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 12071printf "%s\n" "\"$CUPS_SYSTEM_GROUPS\"" >&6; } 12072 12073fi 12074 12075else $as_nop 12076 12077 CUPS_SYSTEM_GROUPS="$GROUP_LIST" 12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&5 12079printf "%s\n" "no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&6; } 12080 12081fi 12082 12083fi 12084 12085fi 12086 12087 12088CUPS_PRIMARY_SYSTEM_GROUP="$(echo $CUPS_SYSTEM_GROUPS | awk '{print $1}')" 12089 12090for group in $CUPS_SYSTEM_GROUPS; do 12091 if test "x$CUPS_GROUP" = "x$group" 12092then : 12093 12094 as_fn_error $? "The default system groups cannot contain the default CUPS group." "$LINENO" 5 12095 12096fi 12097done 12098 12099 12100 12101 12102 12103 12104 12105printf "%s\n" "#define CUPS_DEFAULT_USER \"$CUPS_USER\"" >>confdefs.h 12106 12107 12108printf "%s\n" "#define CUPS_DEFAULT_GROUP \"$CUPS_GROUP\"" >>confdefs.h 12109 12110 12111printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_GROUPS \"$CUPS_SYSTEM_GROUPS\"" >>confdefs.h 12112 12113 12114 12115 12116# Check whether --with-printcap was given. 12117if test ${with_printcap+y} 12118then : 12119 withval=$with_printcap; 12120 default_printcap="$withval" 12121 12122else $as_nop 12123 12124 default_printcap="default" 12125 12126fi 12127 12128 12129if test x$default_printcap != xno 12130then : 12131 12132 if test "x$default_printcap" = "xdefault" 12133then : 12134 12135 case $host_os_name in #( 12136 darwin*) : 12137 12138 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" 12139 ;; #( 12140 sunos* | solaris*) : 12141 12142 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" 12143 ;; #( 12144 *) : 12145 12146 CUPS_DEFAULT_PRINTCAP="/etc/printcap" 12147 ;; #( 12148 *) : 12149 ;; 12150esac 12151 12152else $as_nop 12153 12154 CUPS_DEFAULT_PRINTCAP="$default_printcap" 12155 12156fi 12157 12158else $as_nop 12159 12160 CUPS_DEFAULT_PRINTCAP="" 12161 12162fi 12163 12164 12165 12166printf "%s\n" "#define CUPS_DEFAULT_PRINTCAP \"$CUPS_DEFAULT_PRINTCAP\"" >>confdefs.h 12167 12168 12169 12170# Check whether --with-max_copies was given. 12171if test ${with_max_copies+y} 12172then : 12173 withval=$with_max_copies; 12174 CUPS_MAX_COPIES="$withval" 12175 12176else $as_nop 12177 12178 CUPS_MAX_COPIES="9999" 12179 12180fi 12181 12182 12183 12184 12185printf "%s\n" "#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES" >>confdefs.h 12186 12187 12188# Check whether --enable-raw_printing was given. 12189if test ${enable_raw_printing+y} 12190then : 12191 enableval=$enable_raw_printing; 12192fi 12193 12194if test "x$enable_raw_printing" != xno 12195then : 12196 12197 DEFAULT_RAW_PRINTING="" 12198 12199else $as_nop 12200 12201 DEFAULT_RAW_PRINTING="#" 12202 12203fi 12204 12205 12206 12207# Check whether --with-snmp_address was given. 12208if test ${with_snmp_address+y} 12209then : 12210 withval=$with_snmp_address; 12211 if test "x$withval" = x 12212then : 12213 12214 CUPS_SNMP_ADDRESS="" 12215 12216else $as_nop 12217 12218 CUPS_SNMP_ADDRESS="Address $withval" 12219 12220fi 12221 12222else $as_nop 12223 12224 if test "x$host_os_name" = xdarwin 12225then : 12226 12227 CUPS_SNMP_ADDRESS="" 12228 12229else $as_nop 12230 12231 CUPS_SNMP_ADDRESS="Address @LOCAL" 12232 12233fi 12234 12235fi 12236 12237 12238 12239# Check whether --with-snmp_community was given. 12240if test ${with_snmp_community+y} 12241then : 12242 withval=$with_snmp_community; 12243 CUPS_SNMP_COMMUNITY="Community $withval" 12244 12245else $as_nop 12246 12247 CUPS_SNMP_COMMUNITY="Community public" 12248 12249fi 12250 12251 12252 12253 12254 12255 12256# Check whether --with-ipp_port was given. 12257if test ${with_ipp_port+y} 12258then : 12259 withval=$with_ipp_port; 12260 DEFAULT_IPP_PORT="$withval" 12261 12262else $as_nop 12263 12264 DEFAULT_IPP_PORT="631" 12265 12266fi 12267 12268 12269 12270 12271printf "%s\n" "#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT" >>confdefs.h 12272 12273 12274# Check whether --enable-webif was given. 12275if test ${enable_webif+y} 12276then : 12277 enableval=$enable_webif; 12278fi 12279 12280case "x$enable_webif" in #( 12281 xno) : 12282 12283 CUPS_WEBIF=No 12284 CUPS_DEFAULT_WEBIF=0 12285 ;; #( 12286 xyes) : 12287 12288 CUPS_WEBIF=Yes 12289 CUPS_DEFAULT_WEBIF=1 12290 ;; #( 12291 *) : 12292 12293 if test $host_os_name = darwin 12294then : 12295 12296 CUPS_WEBIF=No 12297 CUPS_DEFAULT_WEBIF=0 12298 12299else $as_nop 12300 12301 CUPS_WEBIF=Yes 12302 CUPS_DEFAULT_WEBIF=1 12303 12304fi 12305 ;; #( 12306 *) : 12307 ;; 12308esac 12309 12310 12311 12312printf "%s\n" "#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF" >>confdefs.h 12313 12314 12315if test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes 12316then : 12317 12318 SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target" 12319fi 12320 12321 12322 12323# Check whether --with-idle_exit_timeout was given. 12324if test ${with_idle_exit_timeout+y} 12325then : 12326 withval=$with_idle_exit_timeout; 12327 if test "x$withval" = "xno" 12328then : 12329 12330 EXIT_TIMEOUT=0 12331 12332else $as_nop 12333 12334 EXIT_TIMEOUT=$withval 12335 12336fi 12337 12338else $as_nop 12339 12340 EXIT_TIMEOUT=60 12341 12342fi 12343 12344 12345 12346 12347 12348# Check whether --with-systemd-timeoutstartsec was given. 12349if test ${with_systemd_timeoutstartsec+y} 12350then : 12351 withval=$with_systemd_timeoutstartsec; 12352 if test "x$withval" = "xno" 12353then : 12354 12355 TIMEOUTSTARTSEC="TimeoutStartSec=infinity" 12356 12357else $as_nop 12358 12359 TIMEOUTSTARTSEC="TimeoutStartSec=$withval" 12360 12361fi 12362 12363else $as_nop 12364 12365 TIMEOUTSTARTSEC="" 12366 12367fi 12368 12369 12370 12371 12372INSTALL_LANGUAGES="" 12373UNINSTALL_LANGUAGES="" 12374LANGFILES="" 12375if test "x$LANGUAGES" != x 12376then : 12377 12378 INSTALL_LANGUAGES="install-languages" 12379 UNINSTALL_LANGUAGES="uninstall-languages" 12380 for lang in $LANGUAGES; do 12381 if test -f doc/$lang/index.html.in 12382then : 12383 12384 LANGFILES="$LANGFILES doc/$lang/index.html" 12385 12386fi 12387 12388 if test -f templates/$lang/header.tmpl.in 12389then : 12390 12391 LANGFILES="$LANGFILES templates/$lang/header.tmpl" 12392 12393fi 12394 done 12395 12396elif test "x$CUPS_BUNDLEDIR" != x 12397then : 12398 12399 INSTALL_LANGUAGES="install-langbundle" 12400 UNINSTALL_LANGUAGES="uninstall-langbundle" 12401 12402fi 12403 12404 12405 12406 12407ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket templates/header.tmpl packaging/cups.list $LANGFILES" 12408 12409cat >confcache <<\_ACEOF 12410# This file is a shell script that caches the results of configure 12411# tests run on this system so they can be shared between configure 12412# scripts and configure runs, see configure's option --config-cache. 12413# It is not useful on other systems. If it contains results you don't 12414# want to keep, you may remove or edit it. 12415# 12416# config.status only pays attention to the cache file if you give it 12417# the --recheck option to rerun configure. 12418# 12419# `ac_cv_env_foo' variables (set or unset) will be overridden when 12420# loading this file, other *unset* `ac_cv_foo' will be assigned the 12421# following values. 12422 12423_ACEOF 12424 12425# The following way of writing the cache mishandles newlines in values, 12426# but we know of no workaround that is simple, portable, and efficient. 12427# So, we kill variables containing newlines. 12428# Ultrix sh set writes to stderr and can't be redirected directly, 12429# and sets the high bit in the cache file unless we assign to the vars. 12430( 12431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12432 eval ac_val=\$$ac_var 12433 case $ac_val in #( 12434 *${as_nl}*) 12435 case $ac_var in #( 12436 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12437printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12438 esac 12439 case $ac_var in #( 12440 _ | IFS | as_nl) ;; #( 12441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12442 *) { eval $ac_var=; unset $ac_var;} ;; 12443 esac ;; 12444 esac 12445 done 12446 12447 (set) 2>&1 | 12448 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12449 *${as_nl}ac_space=\ *) 12450 # `set' does not quote correctly, so add quotes: double-quote 12451 # substitution turns \\\\ into \\, and sed turns \\ into \. 12452 sed -n \ 12453 "s/'/'\\\\''/g; 12454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12455 ;; #( 12456 *) 12457 # `set' quotes correctly as required by POSIX, so do not add quotes. 12458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12459 ;; 12460 esac | 12461 sort 12462) | 12463 sed ' 12464 /^ac_cv_env_/b end 12465 t clear 12466 :clear 12467 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12468 t end 12469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12470 :end' >>confcache 12471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12472 if test -w "$cache_file"; then 12473 if test "x$cache_file" != "x/dev/null"; then 12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12475printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12476 if test ! -f "$cache_file" || test -h "$cache_file"; then 12477 cat confcache >"$cache_file" 12478 else 12479 case $cache_file in #( 12480 */* | ?:*) 12481 mv -f confcache "$cache_file"$$ && 12482 mv -f "$cache_file"$$ "$cache_file" ;; #( 12483 *) 12484 mv -f confcache "$cache_file" ;; 12485 esac 12486 fi 12487 fi 12488 else 12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12490printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12491 fi 12492fi 12493rm -f confcache 12494 12495test "x$prefix" = xNONE && prefix=$ac_default_prefix 12496# Let make expand exec_prefix. 12497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12498 12499DEFS=-DHAVE_CONFIG_H 12500 12501ac_libobjs= 12502ac_ltlibobjs= 12503U= 12504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12505 # 1. Remove the extension, and $U if already installed. 12506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12507 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12509 # will be set to the directory where LIBOBJS objects are built. 12510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12512done 12513LIBOBJS=$ac_libobjs 12514 12515LTLIBOBJS=$ac_ltlibobjs 12516 12517 12518 12519: "${CONFIG_STATUS=./config.status}" 12520ac_write_fail=0 12521ac_clean_files_save=$ac_clean_files 12522ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12524printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12525as_write_fail=0 12526cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12527#! $SHELL 12528# Generated by $as_me. 12529# Run this file to recreate the current configuration. 12530# Compiler output produced by configure, useful for debugging 12531# configure, is in config.log if it exists. 12532 12533debug=false 12534ac_cs_recheck=false 12535ac_cs_silent=false 12536 12537SHELL=\${CONFIG_SHELL-$SHELL} 12538export SHELL 12539_ASEOF 12540cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12541## -------------------- ## 12542## M4sh Initialization. ## 12543## -------------------- ## 12544 12545# Be more Bourne compatible 12546DUALCASE=1; export DUALCASE # for MKS sh 12547as_nop=: 12548if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12549then : 12550 emulate sh 12551 NULLCMD=: 12552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12553 # is contrary to our usage. Disable this feature. 12554 alias -g '${1+"$@"}'='"$@"' 12555 setopt NO_GLOB_SUBST 12556else $as_nop 12557 case `(set -o) 2>/dev/null` in #( 12558 *posix*) : 12559 set -o posix ;; #( 12560 *) : 12561 ;; 12562esac 12563fi 12564 12565 12566 12567# Reset variables that may have inherited troublesome values from 12568# the environment. 12569 12570# IFS needs to be set, to space, tab, and newline, in precisely that order. 12571# (If _AS_PATH_WALK were called with IFS unset, it would have the 12572# side effect of setting IFS to empty, thus disabling word splitting.) 12573# Quoting is to prevent editors from complaining about space-tab. 12574as_nl=' 12575' 12576export as_nl 12577IFS=" "" $as_nl" 12578 12579PS1='$ ' 12580PS2='> ' 12581PS4='+ ' 12582 12583# Ensure predictable behavior from utilities with locale-dependent output. 12584LC_ALL=C 12585export LC_ALL 12586LANGUAGE=C 12587export LANGUAGE 12588 12589# We cannot yet rely on "unset" to work, but we need these variables 12590# to be unset--not just set to an empty or harmless value--now, to 12591# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12592# also avoids known problems related to "unset" and subshell syntax 12593# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12594for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12595do eval test \${$as_var+y} \ 12596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12597done 12598 12599# Ensure that fds 0, 1, and 2 are open. 12600if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12601if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12602if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12603 12604# The user is always right. 12605if ${PATH_SEPARATOR+false} :; then 12606 PATH_SEPARATOR=: 12607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12609 PATH_SEPARATOR=';' 12610 } 12611fi 12612 12613 12614# Find who we are. Look in the path if we contain no directory separator. 12615as_myself= 12616case $0 in #(( 12617 *[\\/]* ) as_myself=$0 ;; 12618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12619for as_dir in $PATH 12620do 12621 IFS=$as_save_IFS 12622 case $as_dir in #((( 12623 '') as_dir=./ ;; 12624 */) ;; 12625 *) as_dir=$as_dir/ ;; 12626 esac 12627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12628 done 12629IFS=$as_save_IFS 12630 12631 ;; 12632esac 12633# We did not find ourselves, most probably we were run as `sh COMMAND' 12634# in which case we are not to be found in the path. 12635if test "x$as_myself" = x; then 12636 as_myself=$0 12637fi 12638if test ! -f "$as_myself"; then 12639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12640 exit 1 12641fi 12642 12643 12644 12645# as_fn_error STATUS ERROR [LINENO LOG_FD] 12646# ---------------------------------------- 12647# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12648# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12649# script with STATUS, using 1 if that was 0. 12650as_fn_error () 12651{ 12652 as_status=$1; test $as_status -eq 0 && as_status=1 12653 if test "$4"; then 12654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12656 fi 12657 printf "%s\n" "$as_me: error: $2" >&2 12658 as_fn_exit $as_status 12659} # as_fn_error 12660 12661 12662 12663# as_fn_set_status STATUS 12664# ----------------------- 12665# Set $? to STATUS, without forking. 12666as_fn_set_status () 12667{ 12668 return $1 12669} # as_fn_set_status 12670 12671# as_fn_exit STATUS 12672# ----------------- 12673# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12674as_fn_exit () 12675{ 12676 set +e 12677 as_fn_set_status $1 12678 exit $1 12679} # as_fn_exit 12680 12681# as_fn_unset VAR 12682# --------------- 12683# Portably unset VAR. 12684as_fn_unset () 12685{ 12686 { eval $1=; unset $1;} 12687} 12688as_unset=as_fn_unset 12689 12690# as_fn_append VAR VALUE 12691# ---------------------- 12692# Append the text in VALUE to the end of the definition contained in VAR. Take 12693# advantage of any shell optimizations that allow amortized linear growth over 12694# repeated appends, instead of the typical quadratic growth present in naive 12695# implementations. 12696if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12697then : 12698 eval 'as_fn_append () 12699 { 12700 eval $1+=\$2 12701 }' 12702else $as_nop 12703 as_fn_append () 12704 { 12705 eval $1=\$$1\$2 12706 } 12707fi # as_fn_append 12708 12709# as_fn_arith ARG... 12710# ------------------ 12711# Perform arithmetic evaluation on the ARGs, and store the result in the 12712# global $as_val. Take advantage of shells that can avoid forks. The arguments 12713# must be portable across $(()) and expr. 12714if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12715then : 12716 eval 'as_fn_arith () 12717 { 12718 as_val=$(( $* )) 12719 }' 12720else $as_nop 12721 as_fn_arith () 12722 { 12723 as_val=`expr "$@" || test $? -eq 1` 12724 } 12725fi # as_fn_arith 12726 12727 12728if expr a : '\(a\)' >/dev/null 2>&1 && 12729 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12730 as_expr=expr 12731else 12732 as_expr=false 12733fi 12734 12735if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12736 as_basename=basename 12737else 12738 as_basename=false 12739fi 12740 12741if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12742 as_dirname=dirname 12743else 12744 as_dirname=false 12745fi 12746 12747as_me=`$as_basename -- "$0" || 12748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12749 X"$0" : 'X\(//\)$' \| \ 12750 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12751printf "%s\n" X/"$0" | 12752 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12753 s//\1/ 12754 q 12755 } 12756 /^X\/\(\/\/\)$/{ 12757 s//\1/ 12758 q 12759 } 12760 /^X\/\(\/\).*/{ 12761 s//\1/ 12762 q 12763 } 12764 s/.*/./; q'` 12765 12766# Avoid depending upon Character Ranges. 12767as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12769as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12770as_cr_digits='0123456789' 12771as_cr_alnum=$as_cr_Letters$as_cr_digits 12772 12773 12774# Determine whether it's possible to make 'echo' print without a newline. 12775# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12776# for compatibility with existing Makefiles. 12777ECHO_C= ECHO_N= ECHO_T= 12778case `echo -n x` in #((((( 12779-n*) 12780 case `echo 'xy\c'` in 12781 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12782 xy) ECHO_C='\c';; 12783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12784 ECHO_T=' ';; 12785 esac;; 12786*) 12787 ECHO_N='-n';; 12788esac 12789 12790# For backward compatibility with old third-party macros, we provide 12791# the shell variables $as_echo and $as_echo_n. New code should use 12792# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12793as_echo='printf %s\n' 12794as_echo_n='printf %s' 12795 12796rm -f conf$$ conf$$.exe conf$$.file 12797if test -d conf$$.dir; then 12798 rm -f conf$$.dir/conf$$.file 12799else 12800 rm -f conf$$.dir 12801 mkdir conf$$.dir 2>/dev/null 12802fi 12803if (echo >conf$$.file) 2>/dev/null; then 12804 if ln -s conf$$.file conf$$ 2>/dev/null; then 12805 as_ln_s='ln -s' 12806 # ... but there are two gotchas: 12807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12809 # In both cases, we have to default to `cp -pR'. 12810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12811 as_ln_s='cp -pR' 12812 elif ln conf$$.file conf$$ 2>/dev/null; then 12813 as_ln_s=ln 12814 else 12815 as_ln_s='cp -pR' 12816 fi 12817else 12818 as_ln_s='cp -pR' 12819fi 12820rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12821rmdir conf$$.dir 2>/dev/null 12822 12823 12824# as_fn_mkdir_p 12825# ------------- 12826# Create "$as_dir" as a directory, including parents if necessary. 12827as_fn_mkdir_p () 12828{ 12829 12830 case $as_dir in #( 12831 -*) as_dir=./$as_dir;; 12832 esac 12833 test -d "$as_dir" || eval $as_mkdir_p || { 12834 as_dirs= 12835 while :; do 12836 case $as_dir in #( 12837 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12838 *) as_qdir=$as_dir;; 12839 esac 12840 as_dirs="'$as_qdir' $as_dirs" 12841 as_dir=`$as_dirname -- "$as_dir" || 12842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12843 X"$as_dir" : 'X\(//\)[^/]' \| \ 12844 X"$as_dir" : 'X\(//\)$' \| \ 12845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12846printf "%s\n" X"$as_dir" | 12847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12848 s//\1/ 12849 q 12850 } 12851 /^X\(\/\/\)[^/].*/{ 12852 s//\1/ 12853 q 12854 } 12855 /^X\(\/\/\)$/{ 12856 s//\1/ 12857 q 12858 } 12859 /^X\(\/\).*/{ 12860 s//\1/ 12861 q 12862 } 12863 s/.*/./; q'` 12864 test -d "$as_dir" && break 12865 done 12866 test -z "$as_dirs" || eval "mkdir $as_dirs" 12867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12868 12869 12870} # as_fn_mkdir_p 12871if mkdir -p . 2>/dev/null; then 12872 as_mkdir_p='mkdir -p "$as_dir"' 12873else 12874 test -d ./-p && rmdir ./-p 12875 as_mkdir_p=false 12876fi 12877 12878 12879# as_fn_executable_p FILE 12880# ----------------------- 12881# Test if FILE is an executable regular file. 12882as_fn_executable_p () 12883{ 12884 test -f "$1" && test -x "$1" 12885} # as_fn_executable_p 12886as_test_x='test -x' 12887as_executable_p=as_fn_executable_p 12888 12889# Sed expression to map a string onto a valid CPP name. 12890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12891 12892# Sed expression to map a string onto a valid variable name. 12893as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12894 12895 12896exec 6>&1 12897## ----------------------------------- ## 12898## Main body of $CONFIG_STATUS script. ## 12899## ----------------------------------- ## 12900_ASEOF 12901test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12902 12903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12904# Save the log message, to keep $0 and so on meaningful, and to 12905# report actual input values of CONFIG_FILES etc. instead of their 12906# values after options handling. 12907ac_log=" 12908This file was extended by CUPS $as_me 2.4.12, which was 12909generated by GNU Autoconf 2.71. Invocation command line was 12910 12911 CONFIG_FILES = $CONFIG_FILES 12912 CONFIG_HEADERS = $CONFIG_HEADERS 12913 CONFIG_LINKS = $CONFIG_LINKS 12914 CONFIG_COMMANDS = $CONFIG_COMMANDS 12915 $ $0 $@ 12916 12917on `(hostname || uname -n) 2>/dev/null | sed 1q` 12918" 12919 12920_ACEOF 12921 12922case $ac_config_files in *" 12923"*) set x $ac_config_files; shift; ac_config_files=$*;; 12924esac 12925 12926case $ac_config_headers in *" 12927"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12928esac 12929 12930 12931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12932# Files that config.status was made for. 12933config_files="$ac_config_files" 12934config_headers="$ac_config_headers" 12935 12936_ACEOF 12937 12938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12939ac_cs_usage="\ 12940\`$as_me' instantiates files and other configuration actions 12941from templates according to the current configuration. Unless the files 12942and actions are specified as TAGs, all are instantiated by default. 12943 12944Usage: $0 [OPTION]... [TAG]... 12945 12946 -h, --help print this help, then exit 12947 -V, --version print version number and configuration settings, then exit 12948 --config print configuration, then exit 12949 -q, --quiet, --silent 12950 do not print progress messages 12951 -d, --debug don't remove temporary files 12952 --recheck update $as_me by reconfiguring in the same conditions 12953 --file=FILE[:TEMPLATE] 12954 instantiate the configuration file FILE 12955 --header=FILE[:TEMPLATE] 12956 instantiate the configuration header FILE 12957 12958Configuration files: 12959$config_files 12960 12961Configuration headers: 12962$config_headers 12963 12964Report bugs to <https://github.com/openprinting/cups/issues>. 12965CUPS home page: <https://openprinting.github.io/cups>." 12966 12967_ACEOF 12968ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12969ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12971ac_cs_config='$ac_cs_config_escaped' 12972ac_cs_version="\\ 12973CUPS config.status 2.4.12 12974configured by $0, generated by GNU Autoconf 2.71, 12975 with options \\"\$ac_cs_config\\" 12976 12977Copyright (C) 2021 Free Software Foundation, Inc. 12978This config.status script is free software; the Free Software Foundation 12979gives unlimited permission to copy, distribute and modify it." 12980 12981ac_pwd='$ac_pwd' 12982srcdir='$srcdir' 12983AWK='$AWK' 12984test -n "\$AWK" || AWK=awk 12985_ACEOF 12986 12987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12988# The default lists apply if the user does not specify any file. 12989ac_need_defaults=: 12990while test $# != 0 12991do 12992 case $1 in 12993 --*=?*) 12994 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12995 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12996 ac_shift=: 12997 ;; 12998 --*=) 12999 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13000 ac_optarg= 13001 ac_shift=: 13002 ;; 13003 *) 13004 ac_option=$1 13005 ac_optarg=$2 13006 ac_shift=shift 13007 ;; 13008 esac 13009 13010 case $ac_option in 13011 # Handling of the options. 13012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13013 ac_cs_recheck=: ;; 13014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13015 printf "%s\n" "$ac_cs_version"; exit ;; 13016 --config | --confi | --conf | --con | --co | --c ) 13017 printf "%s\n" "$ac_cs_config"; exit ;; 13018 --debug | --debu | --deb | --de | --d | -d ) 13019 debug=: ;; 13020 --file | --fil | --fi | --f ) 13021 $ac_shift 13022 case $ac_optarg in 13023 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13024 '') as_fn_error $? "missing file argument" ;; 13025 esac 13026 as_fn_append CONFIG_FILES " '$ac_optarg'" 13027 ac_need_defaults=false;; 13028 --header | --heade | --head | --hea ) 13029 $ac_shift 13030 case $ac_optarg in 13031 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13032 esac 13033 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13034 ac_need_defaults=false;; 13035 --he | --h) 13036 # Conflict between --help and --header 13037 as_fn_error $? "ambiguous option: \`$1' 13038Try \`$0 --help' for more information.";; 13039 --help | --hel | -h ) 13040 printf "%s\n" "$ac_cs_usage"; exit ;; 13041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13042 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13043 ac_cs_silent=: ;; 13044 13045 # This is an error. 13046 -*) as_fn_error $? "unrecognized option: \`$1' 13047Try \`$0 --help' for more information." ;; 13048 13049 *) as_fn_append ac_config_targets " $1" 13050 ac_need_defaults=false ;; 13051 13052 esac 13053 shift 13054done 13055 13056ac_configure_extra_args= 13057 13058if $ac_cs_silent; then 13059 exec 6>/dev/null 13060 ac_configure_extra_args="$ac_configure_extra_args --silent" 13061fi 13062 13063_ACEOF 13064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13065if \$ac_cs_recheck; then 13066 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13067 shift 13068 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13069 CONFIG_SHELL='$SHELL' 13070 export CONFIG_SHELL 13071 exec "\$@" 13072fi 13073 13074_ACEOF 13075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13076exec 5>>config.log 13077{ 13078 echo 13079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13080## Running $as_me. ## 13081_ASBOX 13082 printf "%s\n" "$ac_log" 13083} >&5 13084 13085_ACEOF 13086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13087_ACEOF 13088 13089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13090 13091# Handling of arguments. 13092for ac_config_target in $ac_config_targets 13093do 13094 case $ac_config_target in 13095 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13096 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; 13097 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; 13098 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; 13099 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; 13100 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; 13101 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; 13102 "cups.pc") CONFIG_FILES="$CONFIG_FILES cups.pc" ;; 13103 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; 13104 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; 13105 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; 13106 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; 13107 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; 13108 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; 13109 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; 13110 "scheduler/cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpdAT.service" ;; 13111 "scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;; 13112 "scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;; 13113 "scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;; 13114 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; 13115 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; 13116 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; 13117 13118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13119 esac 13120done 13121 13122 13123# If the user did not use the arguments to specify the items to instantiate, 13124# then the envvar interface is used. Set only those that are not. 13125# We use the long form for the default assignment because of an extremely 13126# bizarre bug on SunOS 4.1.3. 13127if $ac_need_defaults; then 13128 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13129 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13130fi 13131 13132# Have a temporary directory for convenience. Make it in the build tree 13133# simply because there is no reason against having it here, and in addition, 13134# creating and moving files from /tmp can sometimes cause problems. 13135# Hook for its removal unless debugging. 13136# Note that there is a small window in which the directory will not be cleaned: 13137# after its creation but before its name has been assigned to `$tmp'. 13138$debug || 13139{ 13140 tmp= ac_tmp= 13141 trap 'exit_status=$? 13142 : "${ac_tmp:=$tmp}" 13143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13144' 0 13145 trap 'as_fn_exit 1' 1 2 13 15 13146} 13147# Create a (secure) tmp directory for tmp files. 13148 13149{ 13150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13151 test -d "$tmp" 13152} || 13153{ 13154 tmp=./conf$$-$RANDOM 13155 (umask 077 && mkdir "$tmp") 13156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13157ac_tmp=$tmp 13158 13159# Set up the scripts for CONFIG_FILES section. 13160# No need to generate them if there are no CONFIG_FILES. 13161# This happens for instance with `./config.status config.h'. 13162if test -n "$CONFIG_FILES"; then 13163 13164 13165ac_cr=`echo X | tr X '\015'` 13166# On cygwin, bash can eat \r inside `` if the user requested igncr. 13167# But we know of no other shell where ac_cr would be empty at this 13168# point, so we can use a bashism as a fallback. 13169if test "x$ac_cr" = x; then 13170 eval ac_cr=\$\'\\r\' 13171fi 13172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13174 ac_cs_awk_cr='\\r' 13175else 13176 ac_cs_awk_cr=$ac_cr 13177fi 13178 13179echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13180_ACEOF 13181 13182 13183{ 13184 echo "cat >conf$$subs.awk <<_ACEOF" && 13185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13186 echo "_ACEOF" 13187} >conf$$subs.sh || 13188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13190ac_delim='%!_!# ' 13191for ac_last_try in false false false false false :; do 13192 . ./conf$$subs.sh || 13193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13194 13195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13196 if test $ac_delim_n = $ac_delim_num; then 13197 break 13198 elif $ac_last_try; then 13199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13200 else 13201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13202 fi 13203done 13204rm -f conf$$subs.sh 13205 13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13208_ACEOF 13209sed -n ' 13210h 13211s/^/S["/; s/!.*/"]=/ 13212p 13213g 13214s/^[^!]*!// 13215:repl 13216t repl 13217s/'"$ac_delim"'$// 13218t delim 13219:nl 13220h 13221s/\(.\{148\}\)..*/\1/ 13222t more1 13223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13224p 13225n 13226b repl 13227:more1 13228s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13229p 13230g 13231s/.\{148\}// 13232t nl 13233:delim 13234h 13235s/\(.\{148\}\)..*/\1/ 13236t more2 13237s/["\\]/\\&/g; s/^/"/; s/$/"/ 13238p 13239b 13240:more2 13241s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13242p 13243g 13244s/.\{148\}// 13245t delim 13246' <conf$$subs.awk | sed ' 13247/^[^""]/{ 13248 N 13249 s/\n// 13250} 13251' >>$CONFIG_STATUS || ac_write_fail=1 13252rm -f conf$$subs.awk 13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13254_ACAWK 13255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13256 for (key in S) S_is_set[key] = 1 13257 FS = "" 13258 13259} 13260{ 13261 line = $ 0 13262 nfields = split(line, field, "@") 13263 substed = 0 13264 len = length(field[1]) 13265 for (i = 2; i < nfields; i++) { 13266 key = field[i] 13267 keylen = length(key) 13268 if (S_is_set[key]) { 13269 value = S[key] 13270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13271 len += length(value) + length(field[++i]) 13272 substed = 1 13273 } else 13274 len += 1 + keylen 13275 } 13276 13277 print line 13278} 13279 13280_ACAWK 13281_ACEOF 13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13285else 13286 cat 13287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13289_ACEOF 13290 13291# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13293# trailing colons and then remove the whole line if VPATH becomes empty 13294# (actually we leave an empty line to preserve line numbers). 13295if test "x$srcdir" = x.; then 13296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13297h 13298s/// 13299s/^/:/ 13300s/[ ]*$/:/ 13301s/:\$(srcdir):/:/g 13302s/:\${srcdir}:/:/g 13303s/:@srcdir@:/:/g 13304s/^:*// 13305s/:*$// 13306x 13307s/\(=[ ]*\).*/\1/ 13308G 13309s/\n// 13310s/^[^=]*=[ ]*$// 13311}' 13312fi 13313 13314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13315fi # test -n "$CONFIG_FILES" 13316 13317# Set up the scripts for CONFIG_HEADERS section. 13318# No need to generate them if there are no CONFIG_HEADERS. 13319# This happens for instance with `./config.status Makefile'. 13320if test -n "$CONFIG_HEADERS"; then 13321cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13322BEGIN { 13323_ACEOF 13324 13325# Transform confdefs.h into an awk script `defines.awk', embedded as 13326# here-document in config.status, that substitutes the proper values into 13327# config.h.in to produce config.h. 13328 13329# Create a delimiter string that does not exist in confdefs.h, to ease 13330# handling of long lines. 13331ac_delim='%!_!# ' 13332for ac_last_try in false false :; do 13333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13334 if test -z "$ac_tt"; then 13335 break 13336 elif $ac_last_try; then 13337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13338 else 13339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13340 fi 13341done 13342 13343# For the awk script, D is an array of macro values keyed by name, 13344# likewise P contains macro parameters if any. Preserve backslash 13345# newline sequences. 13346 13347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13348sed -n ' 13349s/.\{148\}/&'"$ac_delim"'/g 13350t rset 13351:rset 13352s/^[ ]*#[ ]*define[ ][ ]*/ / 13353t def 13354d 13355:def 13356s/\\$// 13357t bsnl 13358s/["\\]/\\&/g 13359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13360D["\1"]=" \3"/p 13361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13362d 13363:bsnl 13364s/["\\]/\\&/g 13365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13366D["\1"]=" \3\\\\\\n"\\/p 13367t cont 13368s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13369t cont 13370d 13371:cont 13372n 13373s/.\{148\}/&'"$ac_delim"'/g 13374t clear 13375:clear 13376s/\\$// 13377t bsnlc 13378s/["\\]/\\&/g; s/^/"/; s/$/"/p 13379d 13380:bsnlc 13381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13382b cont 13383' <confdefs.h | sed ' 13384s/'"$ac_delim"'/"\\\ 13385"/g' >>$CONFIG_STATUS || ac_write_fail=1 13386 13387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13388 for (key in D) D_is_set[key] = 1 13389 FS = "" 13390} 13391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13392 line = \$ 0 13393 split(line, arg, " ") 13394 if (arg[1] == "#") { 13395 defundef = arg[2] 13396 mac1 = arg[3] 13397 } else { 13398 defundef = substr(arg[1], 2) 13399 mac1 = arg[2] 13400 } 13401 split(mac1, mac2, "(") #) 13402 macro = mac2[1] 13403 prefix = substr(line, 1, index(line, defundef) - 1) 13404 if (D_is_set[macro]) { 13405 # Preserve the white space surrounding the "#". 13406 print prefix "define", macro P[macro] D[macro] 13407 next 13408 } else { 13409 # Replace #undef with comments. This is necessary, for example, 13410 # in the case of _POSIX_SOURCE, which is predefined and required 13411 # on some systems where configure will not decide to define it. 13412 if (defundef == "undef") { 13413 print "/*", prefix defundef, macro, "*/" 13414 next 13415 } 13416 } 13417} 13418{ print } 13419_ACAWK 13420_ACEOF 13421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13423fi # test -n "$CONFIG_HEADERS" 13424 13425 13426eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13427shift 13428for ac_tag 13429do 13430 case $ac_tag in 13431 :[FHLC]) ac_mode=$ac_tag; continue;; 13432 esac 13433 case $ac_mode$ac_tag in 13434 :[FHL]*:*);; 13435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13436 :[FH]-) ac_tag=-:-;; 13437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13438 esac 13439 ac_save_IFS=$IFS 13440 IFS=: 13441 set x $ac_tag 13442 IFS=$ac_save_IFS 13443 shift 13444 ac_file=$1 13445 shift 13446 13447 case $ac_mode in 13448 :L) ac_source=$1;; 13449 :[FH]) 13450 ac_file_inputs= 13451 for ac_f 13452 do 13453 case $ac_f in 13454 -) ac_f="$ac_tmp/stdin";; 13455 *) # Look for the file first in the build tree, then in the source tree 13456 # (if the path is not absolute). The absolute path cannot be DOS-style, 13457 # because $ac_f cannot contain `:'. 13458 test -f "$ac_f" || 13459 case $ac_f in 13460 [\\/$]*) false;; 13461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13462 esac || 13463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13464 esac 13465 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13466 as_fn_append ac_file_inputs " '$ac_f'" 13467 done 13468 13469 # Let's still pretend it is `configure' which instantiates (i.e., don't 13470 # use $as_me), people would be surprised to read: 13471 # /* config.h. Generated by config.status. */ 13472 configure_input='Generated from '` 13473 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13474 `' by configure.' 13475 if test x"$ac_file" != x-; then 13476 configure_input="$ac_file. $configure_input" 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13478printf "%s\n" "$as_me: creating $ac_file" >&6;} 13479 fi 13480 # Neutralize special characters interpreted by sed in replacement strings. 13481 case $configure_input in #( 13482 *\&* | *\|* | *\\* ) 13483 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13484 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13485 *) ac_sed_conf_input=$configure_input;; 13486 esac 13487 13488 case $ac_tag in 13489 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13491 esac 13492 ;; 13493 esac 13494 13495 ac_dir=`$as_dirname -- "$ac_file" || 13496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13497 X"$ac_file" : 'X\(//\)[^/]' \| \ 13498 X"$ac_file" : 'X\(//\)$' \| \ 13499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13500printf "%s\n" X"$ac_file" | 13501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13502 s//\1/ 13503 q 13504 } 13505 /^X\(\/\/\)[^/].*/{ 13506 s//\1/ 13507 q 13508 } 13509 /^X\(\/\/\)$/{ 13510 s//\1/ 13511 q 13512 } 13513 /^X\(\/\).*/{ 13514 s//\1/ 13515 q 13516 } 13517 s/.*/./; q'` 13518 as_dir="$ac_dir"; as_fn_mkdir_p 13519 ac_builddir=. 13520 13521case "$ac_dir" in 13522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13523*) 13524 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13525 # A ".." for each directory in $ac_dir_suffix. 13526 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13527 case $ac_top_builddir_sub in 13528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13530 esac ;; 13531esac 13532ac_abs_top_builddir=$ac_pwd 13533ac_abs_builddir=$ac_pwd$ac_dir_suffix 13534# for backward compatibility: 13535ac_top_builddir=$ac_top_build_prefix 13536 13537case $srcdir in 13538 .) # We are building in place. 13539 ac_srcdir=. 13540 ac_top_srcdir=$ac_top_builddir_sub 13541 ac_abs_top_srcdir=$ac_pwd ;; 13542 [\\/]* | ?:[\\/]* ) # Absolute name. 13543 ac_srcdir=$srcdir$ac_dir_suffix; 13544 ac_top_srcdir=$srcdir 13545 ac_abs_top_srcdir=$srcdir ;; 13546 *) # Relative name. 13547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13548 ac_top_srcdir=$ac_top_build_prefix$srcdir 13549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13550esac 13551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13552 13553 13554 case $ac_mode in 13555 :F) 13556 # 13557 # CONFIG_FILE 13558 # 13559 13560_ACEOF 13561 13562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13563# If the template does not know about datarootdir, expand it. 13564# FIXME: This hack should be removed a few years after 2.60. 13565ac_datarootdir_hack=; ac_datarootdir_seen= 13566ac_sed_dataroot=' 13567/datarootdir/ { 13568 p 13569 q 13570} 13571/@datadir@/p 13572/@docdir@/p 13573/@infodir@/p 13574/@localedir@/p 13575/@mandir@/p' 13576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13577*datarootdir*) ac_datarootdir_seen=yes;; 13578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13580printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13581_ACEOF 13582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13583 ac_datarootdir_hack=' 13584 s&@datadir@&$datadir&g 13585 s&@docdir@&$docdir&g 13586 s&@infodir@&$infodir&g 13587 s&@localedir@&$localedir&g 13588 s&@mandir@&$mandir&g 13589 s&\\\${datarootdir}&$datarootdir&g' ;; 13590esac 13591_ACEOF 13592 13593# Neutralize VPATH when `$srcdir' = `.'. 13594# Shell code in configure.ac might set extrasub. 13595# FIXME: do we really want to maintain this feature? 13596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13597ac_sed_extra="$ac_vpsub 13598$extrasub 13599_ACEOF 13600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13601:t 13602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13603s|@configure_input@|$ac_sed_conf_input|;t t 13604s&@top_builddir@&$ac_top_builddir_sub&;t t 13605s&@top_build_prefix@&$ac_top_build_prefix&;t t 13606s&@srcdir@&$ac_srcdir&;t t 13607s&@abs_srcdir@&$ac_abs_srcdir&;t t 13608s&@top_srcdir@&$ac_top_srcdir&;t t 13609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13610s&@builddir@&$ac_builddir&;t t 13611s&@abs_builddir@&$ac_abs_builddir&;t t 13612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13613$ac_datarootdir_hack 13614" 13615eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13616 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13617 13618test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13619 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13620 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13621 "$ac_tmp/out"`; test -z "$ac_out"; } && 13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13623which seems to be undefined. Please make sure it is defined" >&5 13624printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13625which seems to be undefined. Please make sure it is defined" >&2;} 13626 13627 rm -f "$ac_tmp/stdin" 13628 case $ac_file in 13629 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13630 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13631 esac \ 13632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13633 ;; 13634 :H) 13635 # 13636 # CONFIG_HEADER 13637 # 13638 if test x"$ac_file" != x-; then 13639 { 13640 printf "%s\n" "/* $configure_input */" >&1 \ 13641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13642 } >"$ac_tmp/config.h" \ 13643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13644 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13646printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13647 else 13648 rm -f "$ac_file" 13649 mv "$ac_tmp/config.h" "$ac_file" \ 13650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13651 fi 13652 else 13653 printf "%s\n" "/* $configure_input */" >&1 \ 13654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13655 || as_fn_error $? "could not create -" "$LINENO" 5 13656 fi 13657 ;; 13658 13659 13660 esac 13661 13662done # for ac_tag 13663 13664 13665as_fn_exit 0 13666_ACEOF 13667ac_clean_files=$ac_clean_files_save 13668 13669test $ac_write_fail = 0 || 13670 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13671 13672 13673# configure is writing to config.log, and then calls config.status. 13674# config.status does its own redirection, appending to config.log. 13675# Unfortunately, on DOS this fails, as config.log is still kept open 13676# by configure, so config.status won't be able to write to it; its 13677# output is simply discarded. So we exec the FD to /dev/null, 13678# effectively closing config.log, so it can be properly (re)opened and 13679# appended to by config.status. When coming back to configure, we 13680# need to make the FD available again. 13681if test "$no_create" != yes; then 13682 ac_cs_success=: 13683 ac_config_status_args= 13684 test "$silent" = yes && 13685 ac_config_status_args="$ac_config_status_args --quiet" 13686 exec 5>/dev/null 13687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13688 exec 5>>config.log 13689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13690 # would make configure fail if this is the last instruction. 13691 $ac_cs_success || as_fn_exit 1 13692fi 13693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13695printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13696fi 13697 13698 13699chmod +x cups-config 13700 13701