configure revision 4901b09e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xdm 1.1.16. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/app/xdm/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 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 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595test -n "$DJDIR" || exec 7<&0 </dev/null 596exec 6>&1 597 598# Name of the host. 599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600# so uname gets run too. 601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603# 604# Initializations. 605# 606ac_default_prefix=/usr/local 607ac_clean_files= 608ac_config_libobj_dir=. 609LIBOBJS= 610cross_compiling=no 611subdirs= 612MFLAGS= 613MAKEFLAGS= 614 615# Identity of this package. 616PACKAGE_NAME='xdm' 617PACKAGE_TARNAME='xdm' 618PACKAGE_VERSION='1.1.16' 619PACKAGE_STRING='xdm 1.1.16' 620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdm/-/issues' 621PACKAGE_URL='' 622 623# Factoring default headers for most tests. 624ac_includes_default="\ 625#include <stddef.h> 626#ifdef HAVE_STDIO_H 627# include <stdio.h> 628#endif 629#ifdef HAVE_STDLIB_H 630# include <stdlib.h> 631#endif 632#ifdef HAVE_STRING_H 633# include <string.h> 634#endif 635#ifdef HAVE_INTTYPES_H 636# include <inttypes.h> 637#endif 638#ifdef HAVE_STDINT_H 639# include <stdint.h> 640#endif 641#ifdef HAVE_STRINGS_H 642# include <strings.h> 643#endif 644#ifdef HAVE_SYS_TYPES_H 645# include <sys/types.h> 646#endif 647#ifdef HAVE_SYS_STAT_H 648# include <sys/stat.h> 649#endif 650#ifdef HAVE_UNISTD_H 651# include <unistd.h> 652#endif" 653 654ac_header_c_list= 655ac_unique_file="Makefile.am" 656ac_func_c_list= 657ac_subst_vars='am__EXEEXT_FALSE 658am__EXEEXT_TRUE 659LTLIBOBJS 660LIBOBJS 661appdefaultdir 662APPDEFS_LIBS 663APPDEFS_CFLAGS 664DEF_AUTH_DIR 665XDMXAUTHDIR 666DEF_CHOOSER 667DEF_XDM_CONFIG 668DEF_FAILSAFE_CLIENT 669DEF_SYSTEM_SHELL 670DEF_SYSTEM_PATH 671DEF_USER_PATH 672DEF_SESSION 673XRDB_PROGRAM 674DEF_SERVER_LINE 675CHOOSER_LIBS 676CHOOSER_CFLAGS 677XDMSHELL_LIBS 678XDMSHELL_CFLAGS 679XT_LIBS 680XT_CFLAGS 681INSTALL_XDMSHELL_FALSE 682INSTALL_XDMSHELL_TRUE 683HAS_XDM_AUTH_FALSE 684HAS_XDM_AUTH_TRUE 685DEF_GREETER_LIB 686XDMGREET_LIBS 687XDMGREET_CFLAGS 688AUTH_LIBS 689AUTH_CFLAGS 690XLIB_LIBS 691XLIB_CFLAGS 692DMCP_LIBS 693DMCP_CFLAGS 694XDM_TOOLKIT_LIBS 695XDM_TOOLKIT_CFLAGS 696XDM_PIXMAPDIR 697XDM_BWPIXMAP 698XDM_PIXMAP 699USE_XPM_FALSE 700USE_XPM_TRUE 701XPM_LIBS 702XPM_CFLAGS 703XFT_LIBS 704XFT_CFLAGS 705XINERAMA_LIBS 706XINERAMA_CFLAGS 707SHELL_CMD 708WTMP_FILE 709SET_WTMP_FILE_FALSE 710SET_WTMP_FILE_TRUE 711UTMP_FILE 712SET_UTMP_FILE_FALSE 713SET_UTMP_FILE_TRUE 714SERVERSTYPE 715DEFAULTVT 716XDMPIDDIR 717XDMLOGDIR 718XDMSCRIPTDIR 719XDMCONFIGDIR 720XDMLIBDIR 721HAS_KERBEROS_FIVE_FALSE 722HAS_KERBEROS_FIVE_TRUE 723DEV_RANDOM 724SU 725USE_SYSTEMD_DAEMON_FALSE 726USE_SYSTEMD_DAEMON_TRUE 727SYSTEMD_DAEMON_LIBS 728SYSTEMD_DAEMON_CFLAGS 729HAVE_SYSTEMD_FALSE 730HAVE_SYSTEMD_TRUE 731systemdsystemunitdir 732HAS_SECURE_RPC_FALSE 733HAS_SECURE_RPC_TRUE 734HAVE_ARC4RANDOM_FALSE 735HAVE_ARC4RANDOM_TRUE 736HAVE_ARC4RANDOM 737LIBBSD_LIBS 738LIBBSD_CFLAGS 739XDM_LIBS 740XDM_CFLAGS 741HAVE_MKTEMP_COMMAND_FALSE 742HAVE_MKTEMP_COMMAND_TRUE 743MKTEMP_COMMAND 744LINT_FALSE 745LINT_TRUE 746LINT_FLAGS 747LINT 748TRADITIONALCPPFLAGS 749RAWCPPFLAGS 750RAWCPP 751CPP 752MAN_SUBSTS 753XORG_MAN_PAGE 754ADMIN_MAN_DIR 755DRIVER_MAN_DIR 756MISC_MAN_DIR 757FILE_MAN_DIR 758LIB_MAN_DIR 759APP_MAN_DIR 760ADMIN_MAN_SUFFIX 761DRIVER_MAN_SUFFIX 762MISC_MAN_SUFFIX 763FILE_MAN_SUFFIX 764LIB_MAN_SUFFIX 765APP_MAN_SUFFIX 766INSTALL_CMD 767PKG_CONFIG_LIBDIR 768PKG_CONFIG_PATH 769PKG_CONFIG 770CHANGELOG_CMD 771STRICT_CFLAGS 772CWARNFLAGS 773BASE_CFLAGS 774LT_SYS_LIBRARY_PATH 775OTOOL64 776OTOOL 777LIPO 778NMEDIT 779DSYMUTIL 780MANIFEST_TOOL 781RANLIB 782ac_ct_AR 783AR 784DLLTOOL 785OBJDUMP 786FILECMD 787LN_S 788NM 789ac_ct_DUMPBIN 790DUMPBIN 791LD 792FGREP 793EGREP 794GREP 795SED 796host_os 797host_vendor 798host_cpu 799host 800build_os 801build_vendor 802build_cpu 803build 804LIBTOOL 805AM_BACKSLASH 806AM_DEFAULT_VERBOSITY 807AM_DEFAULT_V 808AM_V 809CSCOPE 810ETAGS 811CTAGS 812am__fastdepCC_FALSE 813am__fastdepCC_TRUE 814CCDEPMODE 815am__nodep 816AMDEPBACKSLASH 817AMDEP_FALSE 818AMDEP_TRUE 819am__include 820DEPDIR 821am__untar 822am__tar 823AMTAR 824am__leading_dot 825SET_MAKE 826AWK 827mkdir_p 828MKDIR_P 829INSTALL_STRIP_PROGRAM 830STRIP 831install_sh 832MAKEINFO 833AUTOHEADER 834AUTOMAKE 835AUTOCONF 836ACLOCAL 837VERSION 838PACKAGE 839CYGPATH_W 840am__isrc 841INSTALL_DATA 842INSTALL_SCRIPT 843INSTALL_PROGRAM 844OBJEXT 845EXEEXT 846ac_ct_CC 847CPPFLAGS 848LDFLAGS 849CFLAGS 850CC 851target_alias 852host_alias 853build_alias 854LIBS 855ECHO_T 856ECHO_N 857ECHO_C 858DEFS 859mandir 860localedir 861libdir 862psdir 863pdfdir 864dvidir 865htmldir 866infodir 867docdir 868oldincludedir 869includedir 870runstatedir 871localstatedir 872sharedstatedir 873sysconfdir 874datadir 875datarootdir 876libexecdir 877sbindir 878bindir 879program_transform_name 880prefix 881exec_prefix 882PACKAGE_URL 883PACKAGE_BUGREPORT 884PACKAGE_STRING 885PACKAGE_VERSION 886PACKAGE_TARNAME 887PACKAGE_NAME 888PATH_SEPARATOR 889SHELL 890am__quote' 891ac_subst_files='' 892ac_user_opts=' 893enable_option_checking 894enable_dependency_tracking 895enable_silent_rules 896enable_static 897enable_shared 898with_pic 899enable_fast_install 900with_aix_soname 901with_gnu_ld 902with_sysroot 903enable_libtool_lock 904enable_selective_werror 905enable_strict_compilation 906with_lint 907enable_unix_transport 908enable_tcp_transport 909enable_ipv6 910enable_local_transport 911enable_secure_rpc 912with_pam 913with_selinux 914with_systemdsystemunitdir 915with_systemd_daemon 916with_random_device 917with_xdmlibdir 918with_xdmconfigdir 919with_xdmscriptdir 920with_logdir 921with_piddir 922with_default_vt 923with_config_type 924with_utmp_file 925with_wtmp_file 926with_xinerama 927with_xft 928enable_xpm_logos 929with_color_pixmap 930with_bw_pixmap 931with_pixmapdir 932enable_xdm_auth 933enable_xdmshell 934with_xrdb 935with_default_session 936with_authdir 937with_appdefaultdir 938' 939 ac_precious_vars='build_alias 940host_alias 941target_alias 942CC 943CFLAGS 944LDFLAGS 945LIBS 946CPPFLAGS 947LT_SYS_LIBRARY_PATH 948PKG_CONFIG 949PKG_CONFIG_PATH 950PKG_CONFIG_LIBDIR 951CPP 952LINT 953LINT_FLAGS 954XDM_CFLAGS 955XDM_LIBS 956LIBBSD_CFLAGS 957LIBBSD_LIBS 958SYSTEMD_DAEMON_CFLAGS 959SYSTEMD_DAEMON_LIBS 960XINERAMA_CFLAGS 961XINERAMA_LIBS 962XFT_CFLAGS 963XFT_LIBS 964XPM_CFLAGS 965XPM_LIBS 966XDM_TOOLKIT_CFLAGS 967XDM_TOOLKIT_LIBS 968DMCP_CFLAGS 969DMCP_LIBS 970XLIB_CFLAGS 971XLIB_LIBS 972AUTH_CFLAGS 973AUTH_LIBS 974XDMGREET_CFLAGS 975XDMGREET_LIBS 976XT_CFLAGS 977XT_LIBS 978APPDEFS_CFLAGS 979APPDEFS_LIBS' 980 981 982# Initialize some variables set by options. 983ac_init_help= 984ac_init_version=false 985ac_unrecognized_opts= 986ac_unrecognized_sep= 987# The variables have the same names as the options, with 988# dashes changed to underlines. 989cache_file=/dev/null 990exec_prefix=NONE 991no_create= 992no_recursion= 993prefix=NONE 994program_prefix=NONE 995program_suffix=NONE 996program_transform_name=s,x,x, 997silent= 998site= 999srcdir= 1000verbose= 1001x_includes=NONE 1002x_libraries=NONE 1003 1004# Installation directory options. 1005# These are left unexpanded so users can "make install exec_prefix=/foo" 1006# and all the variables that are supposed to be based on exec_prefix 1007# by default will actually change. 1008# Use braces instead of parens because sh, perl, etc. also accept them. 1009# (The list follows the same order as the GNU Coding Standards.) 1010bindir='${exec_prefix}/bin' 1011sbindir='${exec_prefix}/sbin' 1012libexecdir='${exec_prefix}/libexec' 1013datarootdir='${prefix}/share' 1014datadir='${datarootdir}' 1015sysconfdir='${prefix}/etc' 1016sharedstatedir='${prefix}/com' 1017localstatedir='${prefix}/var' 1018runstatedir='${localstatedir}/run' 1019includedir='${prefix}/include' 1020oldincludedir='/usr/include' 1021docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1022infodir='${datarootdir}/info' 1023htmldir='${docdir}' 1024dvidir='${docdir}' 1025pdfdir='${docdir}' 1026psdir='${docdir}' 1027libdir='${exec_prefix}/lib' 1028localedir='${datarootdir}/locale' 1029mandir='${datarootdir}/man' 1030 1031ac_prev= 1032ac_dashdash= 1033for ac_option 1034do 1035 # If the previous option needs an argument, assign it. 1036 if test -n "$ac_prev"; then 1037 eval $ac_prev=\$ac_option 1038 ac_prev= 1039 continue 1040 fi 1041 1042 case $ac_option in 1043 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1044 *=) ac_optarg= ;; 1045 *) ac_optarg=yes ;; 1046 esac 1047 1048 case $ac_dashdash$ac_option in 1049 --) 1050 ac_dashdash=yes ;; 1051 1052 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1053 ac_prev=bindir ;; 1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1055 bindir=$ac_optarg ;; 1056 1057 -build | --build | --buil | --bui | --bu) 1058 ac_prev=build_alias ;; 1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1060 build_alias=$ac_optarg ;; 1061 1062 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1064 ac_prev=cache_file ;; 1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1067 cache_file=$ac_optarg ;; 1068 1069 --config-cache | -C) 1070 cache_file=config.cache ;; 1071 1072 -datadir | --datadir | --datadi | --datad) 1073 ac_prev=datadir ;; 1074 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1075 datadir=$ac_optarg ;; 1076 1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1078 | --dataroo | --dataro | --datar) 1079 ac_prev=datarootdir ;; 1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1082 datarootdir=$ac_optarg ;; 1083 1084 -disable-* | --disable-*) 1085 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1086 # Reject names that are not valid shell variable names. 1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1088 as_fn_error $? "invalid feature name: '$ac_useropt'" 1089 ac_useropt_orig=$ac_useropt 1090 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1091 case $ac_user_opts in 1092 *" 1093"enable_$ac_useropt" 1094"*) ;; 1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1096 ac_unrecognized_sep=', ';; 1097 esac 1098 eval enable_$ac_useropt=no ;; 1099 1100 -docdir | --docdir | --docdi | --doc | --do) 1101 ac_prev=docdir ;; 1102 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1103 docdir=$ac_optarg ;; 1104 1105 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1106 ac_prev=dvidir ;; 1107 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1108 dvidir=$ac_optarg ;; 1109 1110 -enable-* | --enable-*) 1111 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1112 # Reject names that are not valid shell variable names. 1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 as_fn_error $? "invalid feature name: '$ac_useropt'" 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"enable_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval enable_$ac_useropt=\$ac_optarg ;; 1125 1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1128 | --exec | --exe | --ex) 1129 ac_prev=exec_prefix ;; 1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1132 | --exec=* | --exe=* | --ex=*) 1133 exec_prefix=$ac_optarg ;; 1134 1135 -gas | --gas | --ga | --g) 1136 # Obsolete; use --with-gas. 1137 with_gas=yes ;; 1138 1139 -help | --help | --hel | --he | -h) 1140 ac_init_help=long ;; 1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1142 ac_init_help=recursive ;; 1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1144 ac_init_help=short ;; 1145 1146 -host | --host | --hos | --ho) 1147 ac_prev=host_alias ;; 1148 -host=* | --host=* | --hos=* | --ho=*) 1149 host_alias=$ac_optarg ;; 1150 1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1152 ac_prev=htmldir ;; 1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1154 | --ht=*) 1155 htmldir=$ac_optarg ;; 1156 1157 -includedir | --includedir | --includedi | --included | --include \ 1158 | --includ | --inclu | --incl | --inc) 1159 ac_prev=includedir ;; 1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1161 | --includ=* | --inclu=* | --incl=* | --inc=*) 1162 includedir=$ac_optarg ;; 1163 1164 -infodir | --infodir | --infodi | --infod | --info | --inf) 1165 ac_prev=infodir ;; 1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1167 infodir=$ac_optarg ;; 1168 1169 -libdir | --libdir | --libdi | --libd) 1170 ac_prev=libdir ;; 1171 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1172 libdir=$ac_optarg ;; 1173 1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1175 | --libexe | --libex | --libe) 1176 ac_prev=libexecdir ;; 1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1178 | --libexe=* | --libex=* | --libe=*) 1179 libexecdir=$ac_optarg ;; 1180 1181 -localedir | --localedir | --localedi | --localed | --locale) 1182 ac_prev=localedir ;; 1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1184 localedir=$ac_optarg ;; 1185 1186 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1187 | --localstate | --localstat | --localsta | --localst | --locals) 1188 ac_prev=localstatedir ;; 1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1191 localstatedir=$ac_optarg ;; 1192 1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1194 ac_prev=mandir ;; 1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1196 mandir=$ac_optarg ;; 1197 1198 -nfp | --nfp | --nf) 1199 # Obsolete; use --without-fp. 1200 with_fp=no ;; 1201 1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1203 | --no-cr | --no-c | -n) 1204 no_create=yes ;; 1205 1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1208 no_recursion=yes ;; 1209 1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1212 | --oldin | --oldi | --old | --ol | --o) 1213 ac_prev=oldincludedir ;; 1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1217 oldincludedir=$ac_optarg ;; 1218 1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1220 ac_prev=prefix ;; 1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1222 prefix=$ac_optarg ;; 1223 1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1225 | --program-pre | --program-pr | --program-p) 1226 ac_prev=program_prefix ;; 1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1229 program_prefix=$ac_optarg ;; 1230 1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1232 | --program-suf | --program-su | --program-s) 1233 ac_prev=program_suffix ;; 1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1236 program_suffix=$ac_optarg ;; 1237 1238 -program-transform-name | --program-transform-name \ 1239 | --program-transform-nam | --program-transform-na \ 1240 | --program-transform-n | --program-transform- \ 1241 | --program-transform | --program-transfor \ 1242 | --program-transfo | --program-transf \ 1243 | --program-trans | --program-tran \ 1244 | --progr-tra | --program-tr | --program-t) 1245 ac_prev=program_transform_name ;; 1246 -program-transform-name=* | --program-transform-name=* \ 1247 | --program-transform-nam=* | --program-transform-na=* \ 1248 | --program-transform-n=* | --program-transform-=* \ 1249 | --program-transform=* | --program-transfor=* \ 1250 | --program-transfo=* | --program-transf=* \ 1251 | --program-trans=* | --program-tran=* \ 1252 | --progr-tra=* | --program-tr=* | --program-t=*) 1253 program_transform_name=$ac_optarg ;; 1254 1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1256 ac_prev=pdfdir ;; 1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1258 pdfdir=$ac_optarg ;; 1259 1260 -psdir | --psdir | --psdi | --psd | --ps) 1261 ac_prev=psdir ;; 1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1263 psdir=$ac_optarg ;; 1264 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1266 | -silent | --silent | --silen | --sile | --sil) 1267 silent=yes ;; 1268 1269 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1270 | --runstate | --runstat | --runsta | --runst | --runs \ 1271 | --run | --ru | --r) 1272 ac_prev=runstatedir ;; 1273 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1274 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1275 | --run=* | --ru=* | --r=*) 1276 runstatedir=$ac_optarg ;; 1277 1278 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1279 ac_prev=sbindir ;; 1280 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1281 | --sbi=* | --sb=*) 1282 sbindir=$ac_optarg ;; 1283 1284 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1285 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1286 | --sharedst | --shareds | --shared | --share | --shar \ 1287 | --sha | --sh) 1288 ac_prev=sharedstatedir ;; 1289 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1290 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1291 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1292 | --sha=* | --sh=*) 1293 sharedstatedir=$ac_optarg ;; 1294 1295 -site | --site | --sit) 1296 ac_prev=site ;; 1297 -site=* | --site=* | --sit=*) 1298 site=$ac_optarg ;; 1299 1300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1301 ac_prev=srcdir ;; 1302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1303 srcdir=$ac_optarg ;; 1304 1305 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1306 | --syscon | --sysco | --sysc | --sys | --sy) 1307 ac_prev=sysconfdir ;; 1308 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1309 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1310 sysconfdir=$ac_optarg ;; 1311 1312 -target | --target | --targe | --targ | --tar | --ta | --t) 1313 ac_prev=target_alias ;; 1314 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1315 target_alias=$ac_optarg ;; 1316 1317 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1318 verbose=yes ;; 1319 1320 -version | --version | --versio | --versi | --vers | -V) 1321 ac_init_version=: ;; 1322 1323 -with-* | --with-*) 1324 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1325 # Reject names that are not valid shell variable names. 1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1327 as_fn_error $? "invalid package name: '$ac_useropt'" 1328 ac_useropt_orig=$ac_useropt 1329 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1330 case $ac_user_opts in 1331 *" 1332"with_$ac_useropt" 1333"*) ;; 1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1335 ac_unrecognized_sep=', ';; 1336 esac 1337 eval with_$ac_useropt=\$ac_optarg ;; 1338 1339 -without-* | --without-*) 1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1341 # Reject names that are not valid shell variable names. 1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1343 as_fn_error $? "invalid package name: '$ac_useropt'" 1344 ac_useropt_orig=$ac_useropt 1345 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1346 case $ac_user_opts in 1347 *" 1348"with_$ac_useropt" 1349"*) ;; 1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1351 ac_unrecognized_sep=', ';; 1352 esac 1353 eval with_$ac_useropt=no ;; 1354 1355 --x) 1356 # Obsolete; use --with-x. 1357 with_x=yes ;; 1358 1359 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1360 | --x-incl | --x-inc | --x-in | --x-i) 1361 ac_prev=x_includes ;; 1362 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1363 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1364 x_includes=$ac_optarg ;; 1365 1366 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1367 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1368 ac_prev=x_libraries ;; 1369 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1370 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1371 x_libraries=$ac_optarg ;; 1372 1373 -*) as_fn_error $? "unrecognized option: '$ac_option' 1374Try '$0 --help' for more information" 1375 ;; 1376 1377 *=*) 1378 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1379 # Reject names that are not valid shell variable names. 1380 case $ac_envvar in #( 1381 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1382 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1383 esac 1384 eval $ac_envvar=\$ac_optarg 1385 export $ac_envvar ;; 1386 1387 *) 1388 # FIXME: should be removed in autoconf 3.0. 1389 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1390 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1391 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1392 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1393 ;; 1394 1395 esac 1396done 1397 1398if test -n "$ac_prev"; then 1399 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1400 as_fn_error $? "missing argument to $ac_option" 1401fi 1402 1403if test -n "$ac_unrecognized_opts"; then 1404 case $enable_option_checking in 1405 no) ;; 1406 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1407 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1408 esac 1409fi 1410 1411# Check all directory arguments for consistency. 1412for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1413 datadir sysconfdir sharedstatedir localstatedir includedir \ 1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1415 libdir localedir mandir runstatedir 1416do 1417 eval ac_val=\$$ac_var 1418 # Remove trailing slashes. 1419 case $ac_val in 1420 */ ) 1421 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1422 eval $ac_var=\$ac_val;; 1423 esac 1424 # Be sure to have absolute directory names. 1425 case $ac_val in 1426 [\\/$]* | ?:[\\/]* ) continue;; 1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1428 esac 1429 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1430done 1431 1432# There might be people who depend on the old broken behavior: '$host' 1433# used to hold the argument of --host etc. 1434# FIXME: To remove some day. 1435build=$build_alias 1436host=$host_alias 1437target=$target_alias 1438 1439# FIXME: To remove some day. 1440if test "x$host_alias" != x; then 1441 if test "x$build_alias" = x; then 1442 cross_compiling=maybe 1443 elif test "x$build_alias" != "x$host_alias"; then 1444 cross_compiling=yes 1445 fi 1446fi 1447 1448ac_tool_prefix= 1449test -n "$host_alias" && ac_tool_prefix=$host_alias- 1450 1451test "$silent" = yes && exec 6>/dev/null 1452 1453 1454ac_pwd=`pwd` && test -n "$ac_pwd" && 1455ac_ls_di=`ls -di .` && 1456ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1457 as_fn_error $? "working directory cannot be determined" 1458test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1459 as_fn_error $? "pwd does not report name of working directory" 1460 1461 1462# Find the source files, if location was not specified. 1463if test -z "$srcdir"; then 1464 ac_srcdir_defaulted=yes 1465 # Try the directory containing this script, then the parent directory. 1466 ac_confdir=`$as_dirname -- "$as_myself" || 1467$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1468 X"$as_myself" : 'X\(//\)[^/]' \| \ 1469 X"$as_myself" : 'X\(//\)$' \| \ 1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1471printf "%s\n" X"$as_myself" | 1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1473 s//\1/ 1474 q 1475 } 1476 /^X\(\/\/\)[^/].*/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)$/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\).*/{ 1485 s//\1/ 1486 q 1487 } 1488 s/.*/./; q'` 1489 srcdir=$ac_confdir 1490 if test ! -r "$srcdir/$ac_unique_file"; then 1491 srcdir=.. 1492 fi 1493else 1494 ac_srcdir_defaulted=no 1495fi 1496if test ! -r "$srcdir/$ac_unique_file"; then 1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1498 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1499fi 1500ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1501ac_abs_confdir=`( 1502 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1503 pwd)` 1504# When building in place, set srcdir=. 1505if test "$ac_abs_confdir" = "$ac_pwd"; then 1506 srcdir=. 1507fi 1508# Remove unnecessary trailing slashes from srcdir. 1509# Double slashes in file names in object file debugging info 1510# mess up M-x gdb in Emacs. 1511case $srcdir in 1512*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1513esac 1514for ac_var in $ac_precious_vars; do 1515 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1516 eval ac_env_${ac_var}_value=\$${ac_var} 1517 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1518 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1519done 1520 1521# 1522# Report the --help message. 1523# 1524if test "$ac_init_help" = "long"; then 1525 # Omit some internal or obsolete options to make the list less imposing. 1526 # This message is too long to be a string in the A/UX 3.1 sh. 1527 cat <<_ACEOF 1528'configure' configures xdm 1.1.16 to adapt to many kinds of systems. 1529 1530Usage: $0 [OPTION]... [VAR=VALUE]... 1531 1532To assign environment variables (e.g., CC, CFLAGS...), specify them as 1533VAR=VALUE. See below for descriptions of some of the useful variables. 1534 1535Defaults for the options are specified in brackets. 1536 1537Configuration: 1538 -h, --help display this help and exit 1539 --help=short display options specific to this package 1540 --help=recursive display the short help of all the included packages 1541 -V, --version display version information and exit 1542 -q, --quiet, --silent do not print 'checking ...' messages 1543 --cache-file=FILE cache test results in FILE [disabled] 1544 -C, --config-cache alias for '--cache-file=config.cache' 1545 -n, --no-create do not create output files 1546 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1547 1548Installation directories: 1549 --prefix=PREFIX install architecture-independent files in PREFIX 1550 [$ac_default_prefix] 1551 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1552 [PREFIX] 1553 1554By default, 'make install' will install all the files in 1555'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1556an installation prefix other than '$ac_default_prefix' using '--prefix', 1557for instance '--prefix=\$HOME'. 1558 1559For better control, use the options below. 1560 1561Fine tuning of the installation directories: 1562 --bindir=DIR user executables [EPREFIX/bin] 1563 --sbindir=DIR system admin executables [EPREFIX/sbin] 1564 --libexecdir=DIR program executables [EPREFIX/libexec] 1565 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1566 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1567 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1568 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1569 --libdir=DIR object code libraries [EPREFIX/lib] 1570 --includedir=DIR C header files [PREFIX/include] 1571 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1574 --infodir=DIR info documentation [DATAROOTDIR/info] 1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1576 --mandir=DIR man documentation [DATAROOTDIR/man] 1577 --docdir=DIR documentation root [DATAROOTDIR/doc/xdm] 1578 --htmldir=DIR html documentation [DOCDIR] 1579 --dvidir=DIR dvi documentation [DOCDIR] 1580 --pdfdir=DIR pdf documentation [DOCDIR] 1581 --psdir=DIR ps documentation [DOCDIR] 1582_ACEOF 1583 1584 cat <<\_ACEOF 1585 1586Program names: 1587 --program-prefix=PREFIX prepend PREFIX to installed program names 1588 --program-suffix=SUFFIX append SUFFIX to installed program names 1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1590 1591System types: 1592 --build=BUILD configure for building on BUILD [guessed] 1593 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1594_ACEOF 1595fi 1596 1597if test -n "$ac_init_help"; then 1598 case $ac_init_help in 1599 short | recursive ) echo "Configuration of xdm 1.1.16:";; 1600 esac 1601 cat <<\_ACEOF 1602 1603Optional Features: 1604 --disable-option-checking ignore unrecognized --enable/--with options 1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1607 --enable-dependency-tracking 1608 do not reject slow dependency extractors 1609 --disable-dependency-tracking 1610 speeds up one-time build 1611 --enable-silent-rules less verbose build output (undo: "make V=1") 1612 --disable-silent-rules verbose build output (undo: "make V=0") 1613 --enable-static[=PKGS] build static libraries [default=no] 1614 --enable-shared[=PKGS] build shared libraries [default=yes] 1615 --enable-fast-install[=PKGS] 1616 optimize for fast installation [default=yes] 1617 --disable-libtool-lock avoid locking (might break parallel builds) 1618 --disable-selective-werror 1619 Turn off selective compiler errors. (default: 1620 enabled) 1621 --enable-strict-compilation 1622 Enable all warnings from compiler and make them 1623 errors (default: disabled) 1624 --enable-unix-transport Enable UNIX domain socket transport 1625 --enable-tcp-transport Enable TCP socket transport 1626 --enable-ipv6 Enable IPv6 support 1627 --enable-local-transport 1628 Enable os-specific local transport 1629 --enable-secure-rpc Enable Secure RPC 1630 --enable-xpm-logos Display xpm logos in greeter (default is YES) 1631 --enable-xdm-auth Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1 1632 (default: auto) 1633 --enable-xdmshell Install xdmshell (default: disabled) 1634 1635Optional Packages: 1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1638 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1639 both] 1640 --with-aix-soname=aix|svr4|both 1641 shared library versioning (aka "SONAME") variant to 1642 provide on AIX, [default=aix]. 1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1644 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1645 compiler's sysroot if not specified). 1646 --with-lint Use a lint-style source code checker (default: 1647 disabled) 1648 --with-pam Use PAM for authentication (default is autodetected) 1649 --with-selinux Add support for SELinux (default is no support) 1650 --with-systemdsystemunitdir=DIR 1651 Directory for systemd service files (default from 1652 the System and Service Manager) 1653 --with-systemd-daemon Add support for systemd startup notification 1654 (default is autodetected) 1655 --with-random-device\=<pathname>\ 1656 Use <pathname> as a source of randomness (default is 1657 auto-detected) 1658 --with-xdmlibdir=<pathname> 1659 specify directory for xdm scripts and modules 1660 (default=${libdir}/X11/xdm) 1661 --with-xdmconfigdir=<pathname> 1662 specify directory for xdm config files (default is 1663 same as xdmlibdir) 1664 --with-xdmscriptdir=<pathname> 1665 specify directory for xdm scripts (default is same 1666 as xdmlibdir) 1667 --with-logdir=<pathname> 1668 specify directory for xdm log files 1669 (default=/var/log) 1670 --with-piddir=<pathname> 1671 specify directory for xdm pid files 1672 (default=/var/run) 1673 --with-default-vt=<vtname> 1674 specify default vt to start xdm on (default=none) 1675 --with-config-type={ws|fs} 1676 default config file type to use - workstation (ws) 1677 or fileserver (fs) (default=ws) 1678 --with-utmp-file=<pathname> 1679 specify file to pass to sessreg -u for current 1680 logins 1681 --without-utmp-file specify passing "none" to sessreg -u to not record 1682 logins in utmp 1683 --with-wtmp-file=<pathname> 1684 specify file to pass to sessreg -w for login history 1685 --without-wtmp-file specify passing "none" to sessreg -w to not record 1686 logins in wtmp 1687 --with-xinerama Use Xinerama (default is YES if installed) 1688 --with-xft Use Xft to draw text (default is YES if installed) 1689 --with-color-pixmap=<filename> 1690 specify xpm file to use as color logo 1691 (default=xorg.xpm) 1692 --with-bw-pixmap=<filename> 1693 specify xpm file to use as black-and-white logo 1694 (default=xorg-bw.xpm) 1695 --with-pixmapdir=<pathname> 1696 specify directory for xpm files 1697 (default=xdmlibdir/pixmaps) 1698 --with-xrdb=path Use path for xrdb (default: bindir/xrdb) 1699 --with-default-session=command 1700 Use command for default session (default: 1701 bindir/xterm -ls) 1702 --with-authdir=<pathname> 1703 specify directory for X auth files 1704 (default=/var/lib/xdm) 1705 --with-appdefaultdir=<pathname> 1706 specify directory for app-defaults files (default is 1707 autodetected) 1708 1709Some influential environment variables: 1710 CC C compiler command 1711 CFLAGS C compiler flags 1712 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1713 nonstandard directory <lib dir> 1714 LIBS libraries to pass to the linker, e.g. -l<library> 1715 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1716 you have headers in a nonstandard directory <include dir> 1717 LT_SYS_LIBRARY_PATH 1718 User-defined run-time library search path. 1719 PKG_CONFIG path to pkg-config utility 1720 PKG_CONFIG_PATH 1721 directories to add to pkg-config's search path 1722 PKG_CONFIG_LIBDIR 1723 path overriding pkg-config's built-in search path 1724 CPP C preprocessor 1725 LINT Path to a lint-style command 1726 LINT_FLAGS Flags for the lint-style command 1727 XDM_CFLAGS C compiler flags for XDM, overriding pkg-config 1728 XDM_LIBS linker flags for XDM, overriding pkg-config 1729 LIBBSD_CFLAGS 1730 C compiler flags for LIBBSD, overriding pkg-config 1731 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1732 SYSTEMD_DAEMON_CFLAGS 1733 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1734 SYSTEMD_DAEMON_LIBS 1735 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1736 XINERAMA_CFLAGS 1737 C compiler flags for XINERAMA, overriding pkg-config 1738 XINERAMA_LIBS 1739 linker flags for XINERAMA, overriding pkg-config 1740 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1741 XFT_LIBS linker flags for XFT, overriding pkg-config 1742 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1743 XPM_LIBS linker flags for XPM, overriding pkg-config 1744 XDM_TOOLKIT_CFLAGS 1745 C compiler flags for XDM_TOOLKIT, overriding pkg-config 1746 XDM_TOOLKIT_LIBS 1747 linker flags for XDM_TOOLKIT, overriding pkg-config 1748 DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config 1749 DMCP_LIBS linker flags for DMCP, overriding pkg-config 1750 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1751 XLIB_LIBS linker flags for XLIB, overriding pkg-config 1752 AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config 1753 AUTH_LIBS linker flags for AUTH, overriding pkg-config 1754 XDMGREET_CFLAGS 1755 C compiler flags for XDMGREET, overriding pkg-config 1756 XDMGREET_LIBS 1757 linker flags for XDMGREET, overriding pkg-config 1758 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1759 XT_LIBS linker flags for XT, overriding pkg-config 1760 APPDEFS_CFLAGS 1761 C compiler flags for APPDEFS, overriding pkg-config 1762 APPDEFS_LIBS 1763 linker flags for APPDEFS, overriding pkg-config 1764 1765Use these variables to override the choices made by 'configure' or to help 1766it to find libraries and programs with nonstandard names/locations. 1767 1768Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>. 1769_ACEOF 1770ac_status=$? 1771fi 1772 1773if test "$ac_init_help" = "recursive"; then 1774 # If there are subdirs, report their specific --help. 1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1776 test -d "$ac_dir" || 1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1778 continue 1779 ac_builddir=. 1780 1781case "$ac_dir" in 1782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1783*) 1784 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1785 # A ".." for each directory in $ac_dir_suffix. 1786 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1787 case $ac_top_builddir_sub in 1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1790 esac ;; 1791esac 1792ac_abs_top_builddir=$ac_pwd 1793ac_abs_builddir=$ac_pwd$ac_dir_suffix 1794# for backward compatibility: 1795ac_top_builddir=$ac_top_build_prefix 1796 1797case $srcdir in 1798 .) # We are building in place. 1799 ac_srcdir=. 1800 ac_top_srcdir=$ac_top_builddir_sub 1801 ac_abs_top_srcdir=$ac_pwd ;; 1802 [\\/]* | ?:[\\/]* ) # Absolute name. 1803 ac_srcdir=$srcdir$ac_dir_suffix; 1804 ac_top_srcdir=$srcdir 1805 ac_abs_top_srcdir=$srcdir ;; 1806 *) # Relative name. 1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1808 ac_top_srcdir=$ac_top_build_prefix$srcdir 1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1810esac 1811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1812 1813 cd "$ac_dir" || { ac_status=$?; continue; } 1814 # Check for configure.gnu first; this name is used for a wrapper for 1815 # Metaconfig's "Configure" on case-insensitive file systems. 1816 if test -f "$ac_srcdir/configure.gnu"; then 1817 echo && 1818 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1819 elif test -f "$ac_srcdir/configure"; then 1820 echo && 1821 $SHELL "$ac_srcdir/configure" --help=recursive 1822 else 1823 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1824 fi || ac_status=$? 1825 cd "$ac_pwd" || { ac_status=$?; break; } 1826 done 1827fi 1828 1829test -n "$ac_init_help" && exit $ac_status 1830if $ac_init_version; then 1831 cat <<\_ACEOF 1832xdm configure 1.1.16 1833generated by GNU Autoconf 2.72 1834 1835Copyright (C) 2023 Free Software Foundation, Inc. 1836This configure script is free software; the Free Software Foundation 1837gives unlimited permission to copy, distribute and modify it. 1838_ACEOF 1839 exit 1840fi 1841 1842## ------------------------ ## 1843## Autoconf initialization. ## 1844## ------------------------ ## 1845 1846# ac_fn_c_try_compile LINENO 1847# -------------------------- 1848# Try to compile conftest.$ac_ext, and return whether this succeeded. 1849ac_fn_c_try_compile () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 rm -f conftest.$ac_objext conftest.beam 1853 if { { ac_try="$ac_compile" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859printf "%s\n" "$ac_try_echo"; } >&5 1860 (eval "$ac_compile") 2>conftest.err 1861 ac_status=$? 1862 if test -s conftest.err; then 1863 grep -v '^ *+' conftest.err >conftest.er1 1864 cat conftest.er1 >&5 1865 mv -f conftest.er1 conftest.err 1866 fi 1867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { 1869 test -z "$ac_c_werror_flag" || 1870 test ! -s conftest.err 1871 } && test -s conftest.$ac_objext 1872then : 1873 ac_retval=0 1874else case e in #( 1875 e) printf "%s\n" "$as_me: failed program was:" >&5 1876sed 's/^/| /' conftest.$ac_ext >&5 1877 1878 ac_retval=1 ;; 1879esac 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 as_fn_set_status $ac_retval 1883 1884} # ac_fn_c_try_compile 1885 1886# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1887# ------------------------------------------------------- 1888# Tests whether HEADER exists and can be compiled using the include files in 1889# INCLUDES, setting the cache variable VAR accordingly. 1890ac_fn_c_check_header_compile () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894printf %s "checking for $2... " >&6; } 1895if eval test \${$3+y} 1896then : 1897 printf %s "(cached) " >&6 1898else case e in #( 1899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901$4 1902#include <$2> 1903_ACEOF 1904if ac_fn_c_try_compile "$LINENO" 1905then : 1906 eval "$3=yes" 1907else case e in #( 1908 e) eval "$3=no" ;; 1909esac 1910fi 1911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1912esac 1913fi 1914eval ac_res=\$$3 1915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916printf "%s\n" "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919} # ac_fn_c_check_header_compile 1920 1921# ac_fn_c_try_link LINENO 1922# ----------------------- 1923# Try to link conftest.$ac_ext, and return whether this succeeded. 1924ac_fn_c_try_link () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1928 if { { ac_try="$ac_link" 1929case "(($ac_try" in 1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1931 *) ac_try_echo=$ac_try;; 1932esac 1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1934printf "%s\n" "$ac_try_echo"; } >&5 1935 (eval "$ac_link") 2>conftest.err 1936 ac_status=$? 1937 if test -s conftest.err; then 1938 grep -v '^ *+' conftest.err >conftest.er1 1939 cat conftest.er1 >&5 1940 mv -f conftest.er1 conftest.err 1941 fi 1942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1943 test $ac_status = 0; } && { 1944 test -z "$ac_c_werror_flag" || 1945 test ! -s conftest.err 1946 } && test -s conftest$ac_exeext && { 1947 test "$cross_compiling" = yes || 1948 test -x conftest$ac_exeext 1949 } 1950then : 1951 ac_retval=0 1952else case e in #( 1953 e) printf "%s\n" "$as_me: failed program was:" >&5 1954sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_retval=1 ;; 1957esac 1958fi 1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1961 # interfere with the next link command; also delete a directory that is 1962 # left behind by Apple's compiler. We do this before executing the actions. 1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 as_fn_set_status $ac_retval 1966 1967} # ac_fn_c_try_link 1968 1969# ac_fn_c_check_func LINENO FUNC VAR 1970# ---------------------------------- 1971# Tests whether FUNC exists, setting the cache variable VAR accordingly 1972ac_fn_c_check_func () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976printf %s "checking for $2... " >&6; } 1977if eval test \${$3+y} 1978then : 1979 printf %s "(cached) " >&6 1980else case e in #( 1981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1985#define $2 innocuous_$2 1986 1987/* System header to define __stub macros and hopefully few prototypes, 1988 which can conflict with char $2 (void); below. */ 1989 1990#include <limits.h> 1991#undef $2 1992 1993/* Override any GCC internal prototype to avoid an error. 1994 Use char because int might match the return type of a GCC 1995 builtin and then its argument prototype would still apply. */ 1996#ifdef __cplusplus 1997extern "C" 1998#endif 1999char $2 (void); 2000/* The GNU C library defines this for functions which it implements 2001 to always fail with ENOSYS. Some functions are actually named 2002 something starting with __ and the normal name is an alias. */ 2003#if defined __stub_$2 || defined __stub___$2 2004choke me 2005#endif 2006 2007int 2008main (void) 2009{ 2010return $2 (); 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_link "$LINENO" 2016then : 2017 eval "$3=yes" 2018else case e in #( 2019 e) eval "$3=no" ;; 2020esac 2021fi 2022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2023 conftest$ac_exeext conftest.$ac_ext ;; 2024esac 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_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2034# ------------------------------------------------------------------ 2035# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2036# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2037ac_fn_check_decl () 2038{ 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 as_decl_name=`echo $2|sed 's/ *(.*//'` 2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2042printf %s "checking whether $as_decl_name is declared... " >&6; } 2043if eval test \${$3+y} 2044then : 2045 printf %s "(cached) " >&6 2046else case e in #( 2047 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2048 eval ac_save_FLAGS=\$$6 2049 as_fn_append $6 " $5" 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main (void) 2055{ 2056#ifndef $as_decl_name 2057#ifdef __cplusplus 2058 (void) $as_decl_use; 2059#else 2060 (void) $as_decl_name; 2061#endif 2062#endif 2063 2064 ; 2065 return 0; 2066} 2067_ACEOF 2068if ac_fn_c_try_compile "$LINENO" 2069then : 2070 eval "$3=yes" 2071else case e in #( 2072 e) eval "$3=no" ;; 2073esac 2074fi 2075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2076 eval $6=\$ac_save_FLAGS 2077 ;; 2078esac 2079fi 2080eval ac_res=\$$3 2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2082printf "%s\n" "$ac_res" >&6; } 2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2084 2085} # ac_fn_check_decl 2086 2087# ac_fn_c_try_cpp LINENO 2088# ---------------------- 2089# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2090ac_fn_c_try_cpp () 2091{ 2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2093 if { { ac_try="$ac_cpp conftest.$ac_ext" 2094case "(($ac_try" in 2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2096 *) ac_try_echo=$ac_try;; 2097esac 2098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2099printf "%s\n" "$ac_try_echo"; } >&5 2100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2101 ac_status=$? 2102 if test -s conftest.err; then 2103 grep -v '^ *+' conftest.err >conftest.er1 2104 cat conftest.er1 >&5 2105 mv -f conftest.er1 conftest.err 2106 fi 2107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2108 test $ac_status = 0; } > conftest.i && { 2109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2110 test ! -s conftest.err 2111 } 2112then : 2113 ac_retval=0 2114else case e in #( 2115 e) printf "%s\n" "$as_me: failed program was:" >&5 2116sed 's/^/| /' conftest.$ac_ext >&5 2117 2118 ac_retval=1 ;; 2119esac 2120fi 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2122 as_fn_set_status $ac_retval 2123 2124} # ac_fn_c_try_cpp 2125 2126# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2127# ------------------------------------------- 2128# Tests whether TYPE exists after having included INCLUDES, setting cache 2129# variable VAR accordingly. 2130ac_fn_c_check_type () 2131{ 2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2134printf %s "checking for $2... " >&6; } 2135if eval test \${$3+y} 2136then : 2137 printf %s "(cached) " >&6 2138else case e in #( 2139 e) eval "$3=no" 2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141/* end confdefs.h. */ 2142$4 2143int 2144main (void) 2145{ 2146if (sizeof ($2)) 2147 return 0; 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152if ac_fn_c_try_compile "$LINENO" 2153then : 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main (void) 2159{ 2160if (sizeof (($2))) 2161 return 0; 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166if ac_fn_c_try_compile "$LINENO" 2167then : 2168 2169else case e in #( 2170 e) eval "$3=yes" ;; 2171esac 2172fi 2173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2174fi 2175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2176esac 2177fi 2178eval ac_res=\$$3 2179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180printf "%s\n" "$ac_res" >&6; } 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 2183} # ac_fn_c_check_type 2184 2185# ac_fn_c_try_run LINENO 2186# ---------------------- 2187# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2188# executables *can* be run. 2189ac_fn_c_try_run () 2190{ 2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 if { { ac_try="$ac_link" 2193case "(($ac_try" in 2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2195 *) ac_try_echo=$ac_try;; 2196esac 2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2198printf "%s\n" "$ac_try_echo"; } >&5 2199 (eval "$ac_link") 2>&5 2200 ac_status=$? 2201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2202 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2203 { { case "(($ac_try" in 2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2205 *) ac_try_echo=$ac_try;; 2206esac 2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2208printf "%s\n" "$ac_try_echo"; } >&5 2209 (eval "$ac_try") 2>&5 2210 ac_status=$? 2211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2212 test $ac_status = 0; }; } 2213then : 2214 ac_retval=0 2215else case e in #( 2216 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2217 printf "%s\n" "$as_me: failed program was:" >&5 2218sed 's/^/| /' conftest.$ac_ext >&5 2219 2220 ac_retval=$ac_status ;; 2221esac 2222fi 2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2225 as_fn_set_status $ac_retval 2226 2227} # ac_fn_c_try_run 2228 2229# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2230# ---------------------------------------------------- 2231# Tries to find if the field MEMBER exists in type AGGR, after including 2232# INCLUDES, setting cache variable VAR accordingly. 2233ac_fn_c_check_member () 2234{ 2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2237printf %s "checking for $2.$3... " >&6; } 2238if eval test \${$4+y} 2239then : 2240 printf %s "(cached) " >&6 2241else case e in #( 2242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243/* end confdefs.h. */ 2244$5 2245int 2246main (void) 2247{ 2248static $2 ac_aggr; 2249if (ac_aggr.$3) 2250return 0; 2251 ; 2252 return 0; 2253} 2254_ACEOF 2255if ac_fn_c_try_compile "$LINENO" 2256then : 2257 eval "$4=yes" 2258else case e in #( 2259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260/* end confdefs.h. */ 2261$5 2262int 2263main (void) 2264{ 2265static $2 ac_aggr; 2266if (sizeof ac_aggr.$3) 2267return 0; 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_compile "$LINENO" 2273then : 2274 eval "$4=yes" 2275else case e in #( 2276 e) eval "$4=no" ;; 2277esac 2278fi 2279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2280esac 2281fi 2282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2283esac 2284fi 2285eval ac_res=\$$4 2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2287printf "%s\n" "$ac_res" >&6; } 2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2289 2290} # ac_fn_c_check_member 2291ac_configure_args_raw= 2292for ac_arg 2293do 2294 case $ac_arg in 2295 *\'*) 2296 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 esac 2298 as_fn_append ac_configure_args_raw " '$ac_arg'" 2299done 2300 2301case $ac_configure_args_raw in 2302 *$as_nl*) 2303 ac_safe_unquote= ;; 2304 *) 2305 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2306 ac_unsafe_a="$ac_unsafe_z#~" 2307 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2308 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2309esac 2310 2311cat >config.log <<_ACEOF 2312This file contains any messages produced by compilers while 2313running configure, to aid debugging if configure makes a mistake. 2314 2315It was created by xdm $as_me 1.1.16, which was 2316generated by GNU Autoconf 2.72. Invocation command line was 2317 2318 $ $0$ac_configure_args_raw 2319 2320_ACEOF 2321exec 5>>config.log 2322{ 2323cat <<_ASUNAME 2324## --------- ## 2325## Platform. ## 2326## --------- ## 2327 2328hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2329uname -m = `(uname -m) 2>/dev/null || echo unknown` 2330uname -r = `(uname -r) 2>/dev/null || echo unknown` 2331uname -s = `(uname -s) 2>/dev/null || echo unknown` 2332uname -v = `(uname -v) 2>/dev/null || echo unknown` 2333 2334/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2335/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2336 2337/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2338/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2339/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2340/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2341/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2342/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2343/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2344 2345_ASUNAME 2346 2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2348for as_dir in $PATH 2349do 2350 IFS=$as_save_IFS 2351 case $as_dir in #((( 2352 '') as_dir=./ ;; 2353 */) ;; 2354 *) as_dir=$as_dir/ ;; 2355 esac 2356 printf "%s\n" "PATH: $as_dir" 2357 done 2358IFS=$as_save_IFS 2359 2360} >&5 2361 2362cat >&5 <<_ACEOF 2363 2364 2365## ----------- ## 2366## Core tests. ## 2367## ----------- ## 2368 2369_ACEOF 2370 2371 2372# Keep a trace of the command line. 2373# Strip out --no-create and --no-recursion so they do not pile up. 2374# Strip out --silent because we don't want to record it for future runs. 2375# Also quote any args containing shell meta-characters. 2376# Make two passes to allow for proper duplicate-argument suppression. 2377ac_configure_args= 2378ac_configure_args0= 2379ac_configure_args1= 2380ac_must_keep_next=false 2381for ac_pass in 1 2 2382do 2383 for ac_arg 2384 do 2385 case $ac_arg in 2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2388 | -silent | --silent | --silen | --sile | --sil) 2389 continue ;; 2390 *\'*) 2391 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2392 esac 2393 case $ac_pass in 2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2395 2) 2396 as_fn_append ac_configure_args1 " '$ac_arg'" 2397 if test $ac_must_keep_next = true; then 2398 ac_must_keep_next=false # Got value, back to normal. 2399 else 2400 case $ac_arg in 2401 *=* | --config-cache | -C | -disable-* | --disable-* \ 2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2404 | -with-* | --with-* | -without-* | --without-* | --x) 2405 case "$ac_configure_args0 " in 2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2407 esac 2408 ;; 2409 -* ) ac_must_keep_next=true ;; 2410 esac 2411 fi 2412 as_fn_append ac_configure_args " '$ac_arg'" 2413 ;; 2414 esac 2415 done 2416done 2417{ ac_configure_args0=; unset ac_configure_args0;} 2418{ ac_configure_args1=; unset ac_configure_args1;} 2419 2420# When interrupted or exit'd, cleanup temporary files, and complete 2421# config.log. We remove comments because anyway the quotes in there 2422# would cause problems or look ugly. 2423# WARNING: Use '\'' to represent an apostrophe within the trap. 2424# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2425trap 'exit_status=$? 2426 # Sanitize IFS. 2427 IFS=" "" $as_nl" 2428 # Save into config.log some information that might help in debugging. 2429 { 2430 echo 2431 2432 printf "%s\n" "## ---------------- ## 2433## Cache variables. ## 2434## ---------------- ##" 2435 echo 2436 # The following way of writing the cache mishandles newlines in values, 2437( 2438 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2439 eval ac_val=\$$ac_var 2440 case $ac_val in #( 2441 *${as_nl}*) 2442 case $ac_var in #( 2443 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2444printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2445 esac 2446 case $ac_var in #( 2447 _ | IFS | as_nl) ;; #( 2448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2449 *) { eval $ac_var=; unset $ac_var;} ;; 2450 esac ;; 2451 esac 2452 done 2453 (set) 2>&1 | 2454 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2455 *${as_nl}ac_space=\ *) 2456 sed -n \ 2457 "s/'\''/'\''\\\\'\'''\''/g; 2458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2459 ;; #( 2460 *) 2461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2462 ;; 2463 esac | 2464 sort 2465) 2466 echo 2467 2468 printf "%s\n" "## ----------------- ## 2469## Output variables. ## 2470## ----------------- ##" 2471 echo 2472 for ac_var in $ac_subst_vars 2473 do 2474 eval ac_val=\$$ac_var 2475 case $ac_val in 2476 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2477 esac 2478 printf "%s\n" "$ac_var='\''$ac_val'\''" 2479 done | sort 2480 echo 2481 2482 if test -n "$ac_subst_files"; then 2483 printf "%s\n" "## ------------------- ## 2484## File substitutions. ## 2485## ------------------- ##" 2486 echo 2487 for ac_var in $ac_subst_files 2488 do 2489 eval ac_val=\$$ac_var 2490 case $ac_val in 2491 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2492 esac 2493 printf "%s\n" "$ac_var='\''$ac_val'\''" 2494 done | sort 2495 echo 2496 fi 2497 2498 if test -s confdefs.h; then 2499 printf "%s\n" "## ----------- ## 2500## confdefs.h. ## 2501## ----------- ##" 2502 echo 2503 cat confdefs.h 2504 echo 2505 fi 2506 test "$ac_signal" != 0 && 2507 printf "%s\n" "$as_me: caught signal $ac_signal" 2508 printf "%s\n" "$as_me: exit $exit_status" 2509 } >&5 2510 rm -f core *.core core.conftest.* && 2511 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2512 exit $exit_status 2513' 0 2514for ac_signal in 1 2 13 15; do 2515 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2516done 2517ac_signal=0 2518 2519# confdefs.h avoids OS command line length limits that DEFS can exceed. 2520rm -f -r conftest* confdefs.h 2521 2522printf "%s\n" "/* confdefs.h */" > confdefs.h 2523 2524# Predefined preprocessor variables. 2525 2526printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2527 2528printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2529 2530printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2531 2532printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2533 2534printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2535 2536printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2537 2538 2539# Let the site file select an alternate cache file if it wants to. 2540# Prefer an explicitly selected file to automatically selected ones. 2541if test -n "$CONFIG_SITE"; then 2542 ac_site_files="$CONFIG_SITE" 2543elif test "x$prefix" != xNONE; then 2544 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2545else 2546 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2547fi 2548 2549for ac_site_file in $ac_site_files 2550do 2551 case $ac_site_file in #( 2552 */*) : 2553 ;; #( 2554 *) : 2555 ac_site_file=./$ac_site_file ;; 2556esac 2557 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2559printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2560 sed 's/^/| /' "$ac_site_file" >&5 2561 . "$ac_site_file" \ 2562 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2563printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2564as_fn_error $? "failed to load site script $ac_site_file 2565See 'config.log' for more details" "$LINENO" 5; } 2566 fi 2567done 2568 2569if test -r "$cache_file"; then 2570 # Some versions of bash will fail to source /dev/null (special files 2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2574printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2575 case $cache_file in 2576 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2577 *) . "./$cache_file";; 2578 esac 2579 fi 2580else 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2582printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2583 >$cache_file 2584fi 2585 2586as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2587# Test code for whether the C compiler supports C89 (global declarations) 2588ac_c_conftest_c89_globals=' 2589/* Does the compiler advertise C89 conformance? 2590 Do not test the value of __STDC__, because some compilers set it to 0 2591 while being otherwise adequately conformant. */ 2592#if !defined __STDC__ 2593# error "Compiler does not advertise C89 conformance" 2594#endif 2595 2596#include <stddef.h> 2597#include <stdarg.h> 2598struct stat; 2599/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2600struct buf { int x; }; 2601struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2602static char *e (char **p, int i) 2603{ 2604 return p[i]; 2605} 2606static char *f (char * (*g) (char **, int), char **p, ...) 2607{ 2608 char *s; 2609 va_list v; 2610 va_start (v,p); 2611 s = g (p, va_arg (v,int)); 2612 va_end (v); 2613 return s; 2614} 2615 2616/* C89 style stringification. */ 2617#define noexpand_stringify(a) #a 2618const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2619 2620/* C89 style token pasting. Exercises some of the corner cases that 2621 e.g. old MSVC gets wrong, but not very hard. */ 2622#define noexpand_concat(a,b) a##b 2623#define expand_concat(a,b) noexpand_concat(a,b) 2624extern int vA; 2625extern int vbee; 2626#define aye A 2627#define bee B 2628int *pvA = &expand_concat(v,aye); 2629int *pvbee = &noexpand_concat(v,bee); 2630 2631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2632 function prototypes and stuff, but not \xHH hex character constants. 2633 These do not provoke an error unfortunately, instead are silently treated 2634 as an "x". The following induces an error, until -std is added to get 2635 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2636 array size at least. It is necessary to write \x00 == 0 to get something 2637 that is true only with -std. */ 2638int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2639 2640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2641 inside strings and character constants. */ 2642#define FOO(x) '\''x'\'' 2643int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2644 2645int test (int i, double x); 2646struct s1 {int (*f) (int a);}; 2647struct s2 {int (*f) (double a);}; 2648int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2649 int, int);' 2650 2651# Test code for whether the C compiler supports C89 (body of main). 2652ac_c_conftest_c89_main=' 2653ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2654' 2655 2656# Test code for whether the C compiler supports C99 (global declarations) 2657ac_c_conftest_c99_globals=' 2658/* Does the compiler advertise C99 conformance? */ 2659#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2660# error "Compiler does not advertise C99 conformance" 2661#endif 2662 2663// See if C++-style comments work. 2664 2665#include <stdbool.h> 2666extern int puts (const char *); 2667extern int printf (const char *, ...); 2668extern int dprintf (int, const char *, ...); 2669extern void *malloc (size_t); 2670extern void free (void *); 2671 2672// Check varargs macros. These examples are taken from C99 6.10.3.5. 2673// dprintf is used instead of fprintf to avoid needing to declare 2674// FILE and stderr. 2675#define debug(...) dprintf (2, __VA_ARGS__) 2676#define showlist(...) puts (#__VA_ARGS__) 2677#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2678static void 2679test_varargs_macros (void) 2680{ 2681 int x = 1234; 2682 int y = 5678; 2683 debug ("Flag"); 2684 debug ("X = %d\n", x); 2685 showlist (The first, second, and third items.); 2686 report (x>y, "x is %d but y is %d", x, y); 2687} 2688 2689// Check long long types. 2690#define BIG64 18446744073709551615ull 2691#define BIG32 4294967295ul 2692#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2693#if !BIG_OK 2694 #error "your preprocessor is broken" 2695#endif 2696#if BIG_OK 2697#else 2698 #error "your preprocessor is broken" 2699#endif 2700static long long int bignum = -9223372036854775807LL; 2701static unsigned long long int ubignum = BIG64; 2702 2703struct incomplete_array 2704{ 2705 int datasize; 2706 double data[]; 2707}; 2708 2709struct named_init { 2710 int number; 2711 const wchar_t *name; 2712 double average; 2713}; 2714 2715typedef const char *ccp; 2716 2717static inline int 2718test_restrict (ccp restrict text) 2719{ 2720 // Iterate through items via the restricted pointer. 2721 // Also check for declarations in for loops. 2722 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2723 continue; 2724 return 0; 2725} 2726 2727// Check varargs and va_copy. 2728static bool 2729test_varargs (const char *format, ...) 2730{ 2731 va_list args; 2732 va_start (args, format); 2733 va_list args_copy; 2734 va_copy (args_copy, args); 2735 2736 const char *str = ""; 2737 int number = 0; 2738 float fnumber = 0; 2739 2740 while (*format) 2741 { 2742 switch (*format++) 2743 { 2744 case '\''s'\'': // string 2745 str = va_arg (args_copy, const char *); 2746 break; 2747 case '\''d'\'': // int 2748 number = va_arg (args_copy, int); 2749 break; 2750 case '\''f'\'': // float 2751 fnumber = va_arg (args_copy, double); 2752 break; 2753 default: 2754 break; 2755 } 2756 } 2757 va_end (args_copy); 2758 va_end (args); 2759 2760 return *str && number && fnumber; 2761} 2762' 2763 2764# Test code for whether the C compiler supports C99 (body of main). 2765ac_c_conftest_c99_main=' 2766 // Check bool. 2767 _Bool success = false; 2768 success |= (argc != 0); 2769 2770 // Check restrict. 2771 if (test_restrict ("String literal") == 0) 2772 success = true; 2773 char *restrict newvar = "Another string"; 2774 2775 // Check varargs. 2776 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2777 test_varargs_macros (); 2778 2779 // Check flexible array members. 2780 struct incomplete_array *ia = 2781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2782 ia->datasize = 10; 2783 for (int i = 0; i < ia->datasize; ++i) 2784 ia->data[i] = i * 1.234; 2785 // Work around memory leak warnings. 2786 free (ia); 2787 2788 // Check named initializers. 2789 struct named_init ni = { 2790 .number = 34, 2791 .name = L"Test wide string", 2792 .average = 543.34343, 2793 }; 2794 2795 ni.number = 58; 2796 2797 int dynamic_array[ni.number]; 2798 dynamic_array[0] = argv[0][0]; 2799 dynamic_array[ni.number - 1] = 543; 2800 2801 // work around unused variable warnings 2802 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2803 || dynamic_array[ni.number - 1] != 543); 2804' 2805 2806# Test code for whether the C compiler supports C11 (global declarations) 2807ac_c_conftest_c11_globals=' 2808/* Does the compiler advertise C11 conformance? */ 2809#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2810# error "Compiler does not advertise C11 conformance" 2811#endif 2812 2813// Check _Alignas. 2814char _Alignas (double) aligned_as_double; 2815char _Alignas (0) no_special_alignment; 2816extern char aligned_as_int; 2817char _Alignas (0) _Alignas (int) aligned_as_int; 2818 2819// Check _Alignof. 2820enum 2821{ 2822 int_alignment = _Alignof (int), 2823 int_array_alignment = _Alignof (int[100]), 2824 char_alignment = _Alignof (char) 2825}; 2826_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2827 2828// Check _Noreturn. 2829int _Noreturn does_not_return (void) { for (;;) continue; } 2830 2831// Check _Static_assert. 2832struct test_static_assert 2833{ 2834 int x; 2835 _Static_assert (sizeof (int) <= sizeof (long int), 2836 "_Static_assert does not work in struct"); 2837 long int y; 2838}; 2839 2840// Check UTF-8 literals. 2841#define u8 syntax error! 2842char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2843 2844// Check duplicate typedefs. 2845typedef long *long_ptr; 2846typedef long int *long_ptr; 2847typedef long_ptr long_ptr; 2848 2849// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2850struct anonymous 2851{ 2852 union { 2853 struct { int i; int j; }; 2854 struct { int k; long int l; } w; 2855 }; 2856 int m; 2857} v1; 2858' 2859 2860# Test code for whether the C compiler supports C11 (body of main). 2861ac_c_conftest_c11_main=' 2862 _Static_assert ((offsetof (struct anonymous, i) 2863 == offsetof (struct anonymous, w.k)), 2864 "Anonymous union alignment botch"); 2865 v1.i = 2; 2866 v1.w.k = 5; 2867 ok |= v1.i != 5; 2868' 2869 2870# Test code for whether the C compiler supports C11 (complete). 2871ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2872${ac_c_conftest_c99_globals} 2873${ac_c_conftest_c11_globals} 2874 2875int 2876main (int argc, char **argv) 2877{ 2878 int ok = 0; 2879 ${ac_c_conftest_c89_main} 2880 ${ac_c_conftest_c99_main} 2881 ${ac_c_conftest_c11_main} 2882 return ok; 2883} 2884" 2885 2886# Test code for whether the C compiler supports C99 (complete). 2887ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2888${ac_c_conftest_c99_globals} 2889 2890int 2891main (int argc, char **argv) 2892{ 2893 int ok = 0; 2894 ${ac_c_conftest_c89_main} 2895 ${ac_c_conftest_c99_main} 2896 return ok; 2897} 2898" 2899 2900# Test code for whether the C compiler supports C89 (complete). 2901ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2902 2903int 2904main (int argc, char **argv) 2905{ 2906 int ok = 0; 2907 ${ac_c_conftest_c89_main} 2908 return ok; 2909} 2910" 2911 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" 2920as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2921as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2922as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2923as_fn_append ac_func_c_list " fork HAVE_FORK" 2924as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2925 2926# Auxiliary files required by this configure script. 2927ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2928 2929# Locations in which to look for auxiliary files. 2930ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2931 2932# Search for a directory containing all of the required auxiliary files, 2933# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2934# If we don't find one directory that contains all the files we need, 2935# we report the set of missing files from the *first* directory in 2936# $ac_aux_dir_candidates and give up. 2937ac_missing_aux_files="" 2938ac_first_candidate=: 2939printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2941as_found=false 2942for as_dir in $ac_aux_dir_candidates 2943do 2944 IFS=$as_save_IFS 2945 case $as_dir in #((( 2946 '') as_dir=./ ;; 2947 */) ;; 2948 *) as_dir=$as_dir/ ;; 2949 esac 2950 as_found=: 2951 2952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2953 ac_aux_dir_found=yes 2954 ac_install_sh= 2955 for ac_aux in $ac_aux_files 2956 do 2957 # As a special case, if "install-sh" is required, that requirement 2958 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2959 # and $ac_install_sh is set appropriately for whichever one is found. 2960 if test x"$ac_aux" = x"install-sh" 2961 then 2962 if test -f "${as_dir}install-sh"; then 2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2964 ac_install_sh="${as_dir}install-sh -c" 2965 elif test -f "${as_dir}install.sh"; then 2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2967 ac_install_sh="${as_dir}install.sh -c" 2968 elif test -f "${as_dir}shtool"; then 2969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2970 ac_install_sh="${as_dir}shtool install -c" 2971 else 2972 ac_aux_dir_found=no 2973 if $ac_first_candidate; then 2974 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2975 else 2976 break 2977 fi 2978 fi 2979 else 2980 if test -f "${as_dir}${ac_aux}"; then 2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2982 else 2983 ac_aux_dir_found=no 2984 if $ac_first_candidate; then 2985 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2986 else 2987 break 2988 fi 2989 fi 2990 fi 2991 done 2992 if test "$ac_aux_dir_found" = yes; then 2993 ac_aux_dir="$as_dir" 2994 break 2995 fi 2996 ac_first_candidate=false 2997 2998 as_found=false 2999done 3000IFS=$as_save_IFS 3001if $as_found 3002then : 3003 3004else case e in #( 3005 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3006esac 3007fi 3008 3009 3010# These three variables are undocumented and unsupported, 3011# and are intended to be withdrawn in a future Autoconf release. 3012# They can cause serious problems if a builder's source tree is in a directory 3013# whose full name contains unusual characters. 3014if test -f "${ac_aux_dir}config.guess"; then 3015 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3016fi 3017if test -f "${ac_aux_dir}config.sub"; then 3018 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3019fi 3020if test -f "$ac_aux_dir/configure"; then 3021 ac_configure="$SHELL ${ac_aux_dir}configure" 3022fi 3023 3024# Check that the precious variables saved in the cache have kept the same 3025# value. 3026ac_cache_corrupted=false 3027for ac_var in $ac_precious_vars; do 3028 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3029 eval ac_new_set=\$ac_env_${ac_var}_set 3030 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3031 eval ac_new_val=\$ac_env_${ac_var}_value 3032 case $ac_old_set,$ac_new_set in 3033 set,) 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3035printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3036 ac_cache_corrupted=: ;; 3037 ,set) 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3039printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3040 ac_cache_corrupted=: ;; 3041 ,);; 3042 *) 3043 if test "x$ac_old_val" != "x$ac_new_val"; then 3044 # differences in whitespace do not lead to failure. 3045 ac_old_val_w=`echo x $ac_old_val` 3046 ac_new_val_w=`echo x $ac_new_val` 3047 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3049printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3050 ac_cache_corrupted=: 3051 else 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3053printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3054 eval $ac_var=\$ac_old_val 3055 fi 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3057printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3059printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3060 fi;; 3061 esac 3062 # Pass precious variables to config.status. 3063 if test "$ac_new_set" = set; then 3064 case $ac_new_val in 3065 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3066 *) ac_arg=$ac_var=$ac_new_val ;; 3067 esac 3068 case " $ac_configure_args " in 3069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3070 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3071 esac 3072 fi 3073done 3074if $ac_cache_corrupted; then 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3076printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3078printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3079 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3080 and start over" "$LINENO" 5 3081fi 3082## -------------------- ## 3083## Main body of script. ## 3084## -------------------- ## 3085 3086ac_ext=c 3087ac_cpp='$CPP $CPPFLAGS' 3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3090ac_compiler_gnu=$ac_cv_c_compiler_gnu 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104# Expand $ac_aux_dir to an absolute path. 3105am_aux_dir=`cd "$ac_aux_dir" && pwd` 3106 3107ac_ext=c 3108ac_cpp='$CPP $CPPFLAGS' 3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3111ac_compiler_gnu=$ac_cv_c_compiler_gnu 3112if test -n "$ac_tool_prefix"; then 3113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3114set dummy ${ac_tool_prefix}gcc; ac_word=$2 3115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116printf %s "checking for $ac_word... " >&6; } 3117if test ${ac_cv_prog_CC+y} 3118then : 3119 printf %s "(cached) " >&6 3120else case e in #( 3121 e) if test -n "$CC"; then 3122 ac_cv_prog_CC="$CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 case $as_dir in #((( 3129 '') as_dir=./ ;; 3130 */) ;; 3131 *) as_dir=$as_dir/ ;; 3132 esac 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3135 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140 done 3141IFS=$as_save_IFS 3142 3143fi ;; 3144esac 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149printf "%s\n" "$CC" >&6; } 3150else 3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152printf "%s\n" "no" >&6; } 3153fi 3154 3155 3156fi 3157if test -z "$ac_cv_prog_CC"; then 3158 ac_ct_CC=$CC 3159 # Extract the first word of "gcc", so it can be a program name with args. 3160set dummy gcc; ac_word=$2 3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3162printf %s "checking for $ac_word... " >&6; } 3163if test ${ac_cv_prog_ac_ct_CC+y} 3164then : 3165 printf %s "(cached) " >&6 3166else case e in #( 3167 e) if test -n "$ac_ct_CC"; then 3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 case $as_dir in #((( 3175 '') as_dir=./ ;; 3176 */) ;; 3177 *) as_dir=$as_dir/ ;; 3178 esac 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_ac_ct_CC="gcc" 3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186 done 3187IFS=$as_save_IFS 3188 3189fi ;; 3190esac 3191fi 3192ac_ct_CC=$ac_cv_prog_ac_ct_CC 3193if test -n "$ac_ct_CC"; then 3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3195printf "%s\n" "$ac_ct_CC" >&6; } 3196else 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198printf "%s\n" "no" >&6; } 3199fi 3200 3201 if test "x$ac_ct_CC" = x; then 3202 CC="" 3203 else 3204 case $cross_compiling:$ac_tool_warned in 3205yes:) 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3207printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3208ac_tool_warned=yes ;; 3209esac 3210 CC=$ac_ct_CC 3211 fi 3212else 3213 CC="$ac_cv_prog_CC" 3214fi 3215 3216if test -z "$CC"; then 3217 if test -n "$ac_tool_prefix"; then 3218 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3219set dummy ${ac_tool_prefix}cc; ac_word=$2 3220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221printf %s "checking for $ac_word... " >&6; } 3222if test ${ac_cv_prog_CC+y} 3223then : 3224 printf %s "(cached) " >&6 3225else case e in #( 3226 e) if test -n "$CC"; then 3227 ac_cv_prog_CC="$CC" # Let the user override the test. 3228else 3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 case $as_dir in #((( 3234 '') as_dir=./ ;; 3235 */) ;; 3236 *) as_dir=$as_dir/ ;; 3237 esac 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3240 ac_cv_prog_CC="${ac_tool_prefix}cc" 3241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3242 break 2 3243 fi 3244done 3245 done 3246IFS=$as_save_IFS 3247 3248fi ;; 3249esac 3250fi 3251CC=$ac_cv_prog_CC 3252if test -n "$CC"; then 3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3254printf "%s\n" "$CC" >&6; } 3255else 3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257printf "%s\n" "no" >&6; } 3258fi 3259 3260 3261 fi 3262fi 3263if test -z "$CC"; then 3264 # Extract the first word of "cc", so it can be a program name with args. 3265set dummy cc; ac_word=$2 3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267printf %s "checking for $ac_word... " >&6; } 3268if test ${ac_cv_prog_CC+y} 3269then : 3270 printf %s "(cached) " >&6 3271else case e in #( 3272 e) if test -n "$CC"; then 3273 ac_cv_prog_CC="$CC" # Let the user override the test. 3274else 3275 ac_prog_rejected=no 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH 3278do 3279 IFS=$as_save_IFS 3280 case $as_dir in #((( 3281 '') as_dir=./ ;; 3282 */) ;; 3283 *) as_dir=$as_dir/ ;; 3284 esac 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3287 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3288 ac_prog_rejected=yes 3289 continue 3290 fi 3291 ac_cv_prog_CC="cc" 3292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3293 break 2 3294 fi 3295done 3296 done 3297IFS=$as_save_IFS 3298 3299if test $ac_prog_rejected = yes; then 3300 # We found a bogon in the path, so make sure we never use it. 3301 set dummy $ac_cv_prog_CC 3302 shift 3303 if test $# != 0; then 3304 # We chose a different compiler from the bogus one. 3305 # However, it has the same basename, so the bogon will be chosen 3306 # first if we set CC to just the basename; use the full file name. 3307 shift 3308 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3309 fi 3310fi 3311fi ;; 3312esac 3313fi 3314CC=$ac_cv_prog_CC 3315if test -n "$CC"; then 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3317printf "%s\n" "$CC" >&6; } 3318else 3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3320printf "%s\n" "no" >&6; } 3321fi 3322 3323 3324fi 3325if test -z "$CC"; then 3326 if test -n "$ac_tool_prefix"; then 3327 for ac_prog in cl.exe 3328 do 3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3330set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332printf %s "checking for $ac_word... " >&6; } 3333if test ${ac_cv_prog_CC+y} 3334then : 3335 printf %s "(cached) " >&6 3336else case e in #( 3337 e) if test -n "$CC"; then 3338 ac_cv_prog_CC="$CC" # Let the user override the test. 3339else 3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341for as_dir in $PATH 3342do 3343 IFS=$as_save_IFS 3344 case $as_dir in #((( 3345 '') as_dir=./ ;; 3346 */) ;; 3347 *) as_dir=$as_dir/ ;; 3348 esac 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355done 3356 done 3357IFS=$as_save_IFS 3358 3359fi ;; 3360esac 3361fi 3362CC=$ac_cv_prog_CC 3363if test -n "$CC"; then 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3365printf "%s\n" "$CC" >&6; } 3366else 3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3368printf "%s\n" "no" >&6; } 3369fi 3370 3371 3372 test -n "$CC" && break 3373 done 3374fi 3375if test -z "$CC"; then 3376 ac_ct_CC=$CC 3377 for ac_prog in cl.exe 3378do 3379 # Extract the first word of "$ac_prog", so it can be a program name with args. 3380set dummy $ac_prog; ac_word=$2 3381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3382printf %s "checking for $ac_word... " >&6; } 3383if test ${ac_cv_prog_ac_ct_CC+y} 3384then : 3385 printf %s "(cached) " >&6 3386else case e in #( 3387 e) if test -n "$ac_ct_CC"; then 3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3389else 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391for as_dir in $PATH 3392do 3393 IFS=$as_save_IFS 3394 case $as_dir in #((( 3395 '') as_dir=./ ;; 3396 */) ;; 3397 *) as_dir=$as_dir/ ;; 3398 esac 3399 for ac_exec_ext in '' $ac_executable_extensions; do 3400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3401 ac_cv_prog_ac_ct_CC="$ac_prog" 3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3403 break 2 3404 fi 3405done 3406 done 3407IFS=$as_save_IFS 3408 3409fi ;; 3410esac 3411fi 3412ac_ct_CC=$ac_cv_prog_ac_ct_CC 3413if test -n "$ac_ct_CC"; then 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3415printf "%s\n" "$ac_ct_CC" >&6; } 3416else 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418printf "%s\n" "no" >&6; } 3419fi 3420 3421 3422 test -n "$ac_ct_CC" && break 3423done 3424 3425 if test "x$ac_ct_CC" = x; then 3426 CC="" 3427 else 3428 case $cross_compiling:$ac_tool_warned in 3429yes:) 3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3432ac_tool_warned=yes ;; 3433esac 3434 CC=$ac_ct_CC 3435 fi 3436fi 3437 3438fi 3439if test -z "$CC"; then 3440 if test -n "$ac_tool_prefix"; then 3441 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3442set dummy ${ac_tool_prefix}clang; 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 case e in #( 3449 e) 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}clang" 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 ;; 3472esac 3473fi 3474CC=$ac_cv_prog_CC 3475if test -n "$CC"; then 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3477printf "%s\n" "$CC" >&6; } 3478else 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480printf "%s\n" "no" >&6; } 3481fi 3482 3483 3484fi 3485if test -z "$ac_cv_prog_CC"; then 3486 ac_ct_CC=$CC 3487 # Extract the first word of "clang", so it can be a program name with args. 3488set dummy clang; ac_word=$2 3489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490printf %s "checking for $ac_word... " >&6; } 3491if test ${ac_cv_prog_ac_ct_CC+y} 3492then : 3493 printf %s "(cached) " >&6 3494else case e in #( 3495 e) if test -n "$ac_ct_CC"; then 3496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3497else 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 ac_cv_prog_ac_ct_CC="clang" 3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513done 3514 done 3515IFS=$as_save_IFS 3516 3517fi ;; 3518esac 3519fi 3520ac_ct_CC=$ac_cv_prog_ac_ct_CC 3521if test -n "$ac_ct_CC"; then 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3523printf "%s\n" "$ac_ct_CC" >&6; } 3524else 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3526printf "%s\n" "no" >&6; } 3527fi 3528 3529 if test "x$ac_ct_CC" = x; then 3530 CC="" 3531 else 3532 case $cross_compiling:$ac_tool_warned in 3533yes:) 3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3536ac_tool_warned=yes ;; 3537esac 3538 CC=$ac_ct_CC 3539 fi 3540else 3541 CC="$ac_cv_prog_CC" 3542fi 3543 3544fi 3545 3546 3547test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3548printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3549as_fn_error $? "no acceptable C compiler found in \$PATH 3550See 'config.log' for more details" "$LINENO" 5; } 3551 3552# Provide some information about the compiler. 3553printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3554set X $ac_compile 3555ac_compiler=$2 3556for ac_option in --version -v -V -qversion -version; do 3557 { { ac_try="$ac_compiler $ac_option >&5" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563printf "%s\n" "$ac_try_echo"; } >&5 3564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3565 ac_status=$? 3566 if test -s conftest.err; then 3567 sed '10a\ 3568... rest of stderr output deleted ... 3569 10q' conftest.err >conftest.er1 3570 cat conftest.er1 >&5 3571 fi 3572 rm -f conftest.er1 conftest.err 3573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3574 test $ac_status = 0; } 3575done 3576 3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579 3580int 3581main (void) 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588ac_clean_files_save=$ac_clean_files 3589ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3590# Try to create an executable without -o first, disregard a.out. 3591# It will help us diagnose broken compilers, and finding out an intuition 3592# of exeext. 3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3594printf %s "checking whether the C compiler works... " >&6; } 3595ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3596 3597# The possible output files: 3598ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3599 3600ac_rmfiles= 3601for ac_file in $ac_files 3602do 3603 case $ac_file in 3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3605 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3606 esac 3607done 3608rm -f $ac_rmfiles 3609 3610if { { ac_try="$ac_link_default" 3611case "(($ac_try" in 3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3613 *) ac_try_echo=$ac_try;; 3614esac 3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3616printf "%s\n" "$ac_try_echo"; } >&5 3617 (eval "$ac_link_default") 2>&5 3618 ac_status=$? 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3620 test $ac_status = 0; } 3621then : 3622 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3623# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3624# in a Makefile. We should not override ac_cv_exeext if it was cached, 3625# so that the user can short-circuit this test for compilers unknown to 3626# Autoconf. 3627for ac_file in $ac_files '' 3628do 3629 test -f "$ac_file" || continue 3630 case $ac_file in 3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3632 ;; 3633 [ab].out ) 3634 # We found the default executable, but exeext='' is most 3635 # certainly right. 3636 break;; 3637 *.* ) 3638 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3639 then :; else 3640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3641 fi 3642 # We set ac_cv_exeext here because the later test for it is not 3643 # safe: cross compilers may not add the suffix if given an '-o' 3644 # argument, so we may need to know it at that point already. 3645 # Even if this section looks crufty: it has the advantage of 3646 # actually working. 3647 break;; 3648 * ) 3649 break;; 3650 esac 3651done 3652test "$ac_cv_exeext" = no && ac_cv_exeext= 3653 3654else case e in #( 3655 e) ac_file='' ;; 3656esac 3657fi 3658if test -z "$ac_file" 3659then : 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661printf "%s\n" "no" >&6; } 3662printf "%s\n" "$as_me: failed program was:" >&5 3663sed 's/^/| /' conftest.$ac_ext >&5 3664 3665{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3666printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3667as_fn_error 77 "C compiler cannot create executables 3668See 'config.log' for more details" "$LINENO" 5; } 3669else case e in #( 3670 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3671printf "%s\n" "yes" >&6; } ;; 3672esac 3673fi 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3675printf %s "checking for C compiler default output file name... " >&6; } 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3677printf "%s\n" "$ac_file" >&6; } 3678ac_exeext=$ac_cv_exeext 3679 3680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3681ac_clean_files=$ac_clean_files_save 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3683printf %s "checking for suffix of executables... " >&6; } 3684if { { ac_try="$ac_link" 3685case "(($ac_try" in 3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3687 *) ac_try_echo=$ac_try;; 3688esac 3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3690printf "%s\n" "$ac_try_echo"; } >&5 3691 (eval "$ac_link") 2>&5 3692 ac_status=$? 3693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3694 test $ac_status = 0; } 3695then : 3696 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3697# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3698# work properly (i.e., refer to 'conftest.exe'), while it won't with 3699# 'rm'. 3700for ac_file in conftest.exe conftest conftest.*; do 3701 test -f "$ac_file" || continue 3702 case $ac_file in 3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3705 break;; 3706 * ) break;; 3707 esac 3708done 3709else case e in #( 3710 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3711printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3712as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3713See 'config.log' for more details" "$LINENO" 5; } ;; 3714esac 3715fi 3716rm -f conftest conftest$ac_cv_exeext 3717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3718printf "%s\n" "$ac_cv_exeext" >&6; } 3719 3720rm -f conftest.$ac_ext 3721EXEEXT=$ac_cv_exeext 3722ac_exeext=$EXEEXT 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725#include <stdio.h> 3726int 3727main (void) 3728{ 3729FILE *f = fopen ("conftest.out", "w"); 3730 if (!f) 3731 return 1; 3732 return ferror (f) || fclose (f) != 0; 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738ac_clean_files="$ac_clean_files conftest.out" 3739# Check that the compiler produces executables we can run. If not, either 3740# the compiler is broken, or we cross compile. 3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3742printf %s "checking whether we are cross compiling... " >&6; } 3743if test "$cross_compiling" != yes; then 3744 { { ac_try="$ac_link" 3745case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3750printf "%s\n" "$ac_try_echo"; } >&5 3751 (eval "$ac_link") 2>&5 3752 ac_status=$? 3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3754 test $ac_status = 0; } 3755 if { ac_try='./conftest$ac_cv_exeext' 3756 { { case "(($ac_try" in 3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3758 *) ac_try_echo=$ac_try;; 3759esac 3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3761printf "%s\n" "$ac_try_echo"; } >&5 3762 (eval "$ac_try") 2>&5 3763 ac_status=$? 3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3765 test $ac_status = 0; }; }; then 3766 cross_compiling=no 3767 else 3768 if test "$cross_compiling" = maybe; then 3769 cross_compiling=yes 3770 else 3771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3772printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3773as_fn_error 77 "cannot run C compiled programs. 3774If you meant to cross compile, use '--host'. 3775See 'config.log' for more details" "$LINENO" 5; } 3776 fi 3777 fi 3778fi 3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3780printf "%s\n" "$cross_compiling" >&6; } 3781 3782rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3783 conftest.o conftest.obj conftest.out 3784ac_clean_files=$ac_clean_files_save 3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3786printf %s "checking for suffix of object files... " >&6; } 3787if test ${ac_cv_objext+y} 3788then : 3789 printf %s "(cached) " >&6 3790else case e in #( 3791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main (void) 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802rm -f conftest.o conftest.obj 3803if { { ac_try="$ac_compile" 3804case "(($ac_try" in 3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3806 *) ac_try_echo=$ac_try;; 3807esac 3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3809printf "%s\n" "$ac_try_echo"; } >&5 3810 (eval "$ac_compile") 2>&5 3811 ac_status=$? 3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3813 test $ac_status = 0; } 3814then : 3815 for ac_file in conftest.o conftest.obj conftest.*; do 3816 test -f "$ac_file" || continue; 3817 case $ac_file in 3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3820 break;; 3821 esac 3822done 3823else case e in #( 3824 e) printf "%s\n" "$as_me: failed program was:" >&5 3825sed 's/^/| /' conftest.$ac_ext >&5 3826 3827{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3828printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3829as_fn_error $? "cannot compute suffix of object files: cannot compile 3830See 'config.log' for more details" "$LINENO" 5; } ;; 3831esac 3832fi 3833rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3834esac 3835fi 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3837printf "%s\n" "$ac_cv_objext" >&6; } 3838OBJEXT=$ac_cv_objext 3839ac_objext=$OBJEXT 3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3841printf %s "checking whether the compiler supports GNU C... " >&6; } 3842if test ${ac_cv_c_compiler_gnu+y} 3843then : 3844 printf %s "(cached) " >&6 3845else case e in #( 3846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3847/* end confdefs.h. */ 3848 3849int 3850main (void) 3851{ 3852#ifndef __GNUC__ 3853 choke me 3854#endif 3855 3856 ; 3857 return 0; 3858} 3859_ACEOF 3860if ac_fn_c_try_compile "$LINENO" 3861then : 3862 ac_compiler_gnu=yes 3863else case e in #( 3864 e) ac_compiler_gnu=no ;; 3865esac 3866fi 3867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3868ac_cv_c_compiler_gnu=$ac_compiler_gnu 3869 ;; 3870esac 3871fi 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3873printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3874ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876if test $ac_compiler_gnu = yes; then 3877 GCC=yes 3878else 3879 GCC= 3880fi 3881ac_test_CFLAGS=${CFLAGS+y} 3882ac_save_CFLAGS=$CFLAGS 3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3884printf %s "checking whether $CC accepts -g... " >&6; } 3885if test ${ac_cv_prog_cc_g+y} 3886then : 3887 printf %s "(cached) " >&6 3888else case e in #( 3889 e) ac_save_c_werror_flag=$ac_c_werror_flag 3890 ac_c_werror_flag=yes 3891 ac_cv_prog_cc_g=no 3892 CFLAGS="-g" 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895 3896int 3897main (void) 3898{ 3899 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904if ac_fn_c_try_compile "$LINENO" 3905then : 3906 ac_cv_prog_cc_g=yes 3907else case e in #( 3908 e) CFLAGS="" 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main (void) 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920if ac_fn_c_try_compile "$LINENO" 3921then : 3922 3923else case e in #( 3924 e) ac_c_werror_flag=$ac_save_c_werror_flag 3925 CFLAGS="-g" 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927/* end confdefs.h. */ 3928 3929int 3930main (void) 3931{ 3932 3933 ; 3934 return 0; 3935} 3936_ACEOF 3937if ac_fn_c_try_compile "$LINENO" 3938then : 3939 ac_cv_prog_cc_g=yes 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3942esac 3943fi 3944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3945esac 3946fi 3947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3948 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3949esac 3950fi 3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3952printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3953if test $ac_test_CFLAGS; then 3954 CFLAGS=$ac_save_CFLAGS 3955elif test $ac_cv_prog_cc_g = yes; then 3956 if test "$GCC" = yes; then 3957 CFLAGS="-g -O2" 3958 else 3959 CFLAGS="-g" 3960 fi 3961else 3962 if test "$GCC" = yes; then 3963 CFLAGS="-O2" 3964 else 3965 CFLAGS= 3966 fi 3967fi 3968ac_prog_cc_stdc=no 3969if test x$ac_prog_cc_stdc = xno 3970then : 3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3972printf %s "checking for $CC option to enable C11 features... " >&6; } 3973if test ${ac_cv_prog_cc_c11+y} 3974then : 3975 printf %s "(cached) " >&6 3976else case e in #( 3977 e) ac_cv_prog_cc_c11=no 3978ac_save_CC=$CC 3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981$ac_c_conftest_c11_program 3982_ACEOF 3983for ac_arg in '' -std=gnu11 3984do 3985 CC="$ac_save_CC $ac_arg" 3986 if ac_fn_c_try_compile "$LINENO" 3987then : 3988 ac_cv_prog_cc_c11=$ac_arg 3989fi 3990rm -f core conftest.err conftest.$ac_objext conftest.beam 3991 test "x$ac_cv_prog_cc_c11" != "xno" && break 3992done 3993rm -f conftest.$ac_ext 3994CC=$ac_save_CC ;; 3995esac 3996fi 3997 3998if test "x$ac_cv_prog_cc_c11" = xno 3999then : 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4001printf "%s\n" "unsupported" >&6; } 4002else case e in #( 4003 e) if test "x$ac_cv_prog_cc_c11" = x 4004then : 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4006printf "%s\n" "none needed" >&6; } 4007else case e in #( 4008 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4009printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4010 CC="$CC $ac_cv_prog_cc_c11" ;; 4011esac 4012fi 4013 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4014 ac_prog_cc_stdc=c11 ;; 4015esac 4016fi 4017fi 4018if test x$ac_prog_cc_stdc = xno 4019then : 4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4021printf %s "checking for $CC option to enable C99 features... " >&6; } 4022if test ${ac_cv_prog_cc_c99+y} 4023then : 4024 printf %s "(cached) " >&6 4025else case e in #( 4026 e) ac_cv_prog_cc_c99=no 4027ac_save_CC=$CC 4028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030$ac_c_conftest_c99_program 4031_ACEOF 4032for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4033do 4034 CC="$ac_save_CC $ac_arg" 4035 if ac_fn_c_try_compile "$LINENO" 4036then : 4037 ac_cv_prog_cc_c99=$ac_arg 4038fi 4039rm -f core conftest.err conftest.$ac_objext conftest.beam 4040 test "x$ac_cv_prog_cc_c99" != "xno" && break 4041done 4042rm -f conftest.$ac_ext 4043CC=$ac_save_CC ;; 4044esac 4045fi 4046 4047if test "x$ac_cv_prog_cc_c99" = xno 4048then : 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4050printf "%s\n" "unsupported" >&6; } 4051else case e in #( 4052 e) if test "x$ac_cv_prog_cc_c99" = x 4053then : 4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4055printf "%s\n" "none needed" >&6; } 4056else case e in #( 4057 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4058printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4059 CC="$CC $ac_cv_prog_cc_c99" ;; 4060esac 4061fi 4062 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4063 ac_prog_cc_stdc=c99 ;; 4064esac 4065fi 4066fi 4067if test x$ac_prog_cc_stdc = xno 4068then : 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4070printf %s "checking for $CC option to enable C89 features... " >&6; } 4071if test ${ac_cv_prog_cc_c89+y} 4072then : 4073 printf %s "(cached) " >&6 4074else case e in #( 4075 e) ac_cv_prog_cc_c89=no 4076ac_save_CC=$CC 4077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079$ac_c_conftest_c89_program 4080_ACEOF 4081for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4082do 4083 CC="$ac_save_CC $ac_arg" 4084 if ac_fn_c_try_compile "$LINENO" 4085then : 4086 ac_cv_prog_cc_c89=$ac_arg 4087fi 4088rm -f core conftest.err conftest.$ac_objext conftest.beam 4089 test "x$ac_cv_prog_cc_c89" != "xno" && break 4090done 4091rm -f conftest.$ac_ext 4092CC=$ac_save_CC ;; 4093esac 4094fi 4095 4096if test "x$ac_cv_prog_cc_c89" = xno 4097then : 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4099printf "%s\n" "unsupported" >&6; } 4100else case e in #( 4101 e) if test "x$ac_cv_prog_cc_c89" = x 4102then : 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4104printf "%s\n" "none needed" >&6; } 4105else case e in #( 4106 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4107printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4108 CC="$CC $ac_cv_prog_cc_c89" ;; 4109esac 4110fi 4111 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4112 ac_prog_cc_stdc=c89 ;; 4113esac 4114fi 4115fi 4116 4117ac_ext=c 4118ac_cpp='$CPP $CPPFLAGS' 4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4121ac_compiler_gnu=$ac_cv_c_compiler_gnu 4122 4123 4124 ac_ext=c 4125ac_cpp='$CPP $CPPFLAGS' 4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4128ac_compiler_gnu=$ac_cv_c_compiler_gnu 4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4130printf %s "checking whether $CC understands -c and -o together... " >&6; } 4131if test ${am_cv_prog_cc_c_o+y} 4132then : 4133 printf %s "(cached) " >&6 4134else case e in #( 4135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main (void) 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146 # Make sure it works both with $CC and with simple cc. 4147 # Following AC_PROG_CC_C_O, we do the test twice because some 4148 # compilers refuse to overwrite an existing .o file with -o, 4149 # though they will create one. 4150 am_cv_prog_cc_c_o=yes 4151 for am_i in 1 2; do 4152 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4153 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } \ 4157 && test -f conftest2.$ac_objext; then 4158 : OK 4159 else 4160 am_cv_prog_cc_c_o=no 4161 break 4162 fi 4163 done 4164 rm -f core conftest* 4165 unset am_i ;; 4166esac 4167fi 4168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4169printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4170if test "$am_cv_prog_cc_c_o" != yes; then 4171 # Losing compiler, so override with the script. 4172 # FIXME: It is wrong to rewrite CC. 4173 # But if we don't then we get into trouble of one sort or another. 4174 # A longer-term fix would be to have automake use am__CC in this case, 4175 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4176 CC="$am_aux_dir/compile $CC" 4177fi 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183 4184 4185 4186ac_header= ac_cache= 4187for ac_item in $ac_header_c_list 4188do 4189 if test $ac_cache; then 4190 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4191 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4192 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4193 fi 4194 ac_header= ac_cache= 4195 elif test $ac_header; then 4196 ac_cache=$ac_item 4197 else 4198 ac_header=$ac_item 4199 fi 4200done 4201 4202 4203 4204 4205 4206 4207 4208 4209if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4210then : 4211 4212printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4213 4214fi 4215 4216 4217 4218 4219 4220 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4222printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4223if test ${ac_cv_safe_to_define___extensions__+y} 4224then : 4225 printf %s "(cached) " >&6 4226else case e in #( 4227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229 4230# define __EXTENSIONS__ 1 4231 $ac_includes_default 4232int 4233main (void) 4234{ 4235 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240if ac_fn_c_try_compile "$LINENO" 4241then : 4242 ac_cv_safe_to_define___extensions__=yes 4243else case e in #( 4244 e) ac_cv_safe_to_define___extensions__=no ;; 4245esac 4246fi 4247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4248esac 4249fi 4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4251printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4252 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4254printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4255if test ${ac_cv_should_define__xopen_source+y} 4256then : 4257 printf %s "(cached) " >&6 4258else case e in #( 4259 e) ac_cv_should_define__xopen_source=no 4260 if test $ac_cv_header_wchar_h = yes 4261then : 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264 4265 #include <wchar.h> 4266 mbstate_t x; 4267int 4268main (void) 4269{ 4270 4271 ; 4272 return 0; 4273} 4274_ACEOF 4275if ac_fn_c_try_compile "$LINENO" 4276then : 4277 4278else case e in #( 4279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281 4282 #define _XOPEN_SOURCE 500 4283 #include <wchar.h> 4284 mbstate_t x; 4285int 4286main (void) 4287{ 4288 4289 ; 4290 return 0; 4291} 4292_ACEOF 4293if ac_fn_c_try_compile "$LINENO" 4294then : 4295 ac_cv_should_define__xopen_source=yes 4296fi 4297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4298esac 4299fi 4300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4301fi ;; 4302esac 4303fi 4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4305printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4306 4307 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4308 4309 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4310 4311 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4312 4313 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4314 4315 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4316 4317 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4318 4319 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4320 4321 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4322 4323 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4324 4325 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4326 4327 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4328 4329 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4330 4331 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4332 4333 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4334 4335 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4336 4337 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4338 4339 if test $ac_cv_header_minix_config_h = yes 4340then : 4341 MINIX=yes 4342 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4343 4344 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4345 4346 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4347 4348else case e in #( 4349 e) MINIX= ;; 4350esac 4351fi 4352 if test $ac_cv_safe_to_define___extensions__ = yes 4353then : 4354 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4355 4356fi 4357 if test $ac_cv_should_define__xopen_source = yes 4358then : 4359 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4360 4361fi 4362 4363 4364 4365ac_config_headers="$ac_config_headers config.h" 4366 4367 4368# Initialize Automake 4369am__api_version='1.16' 4370 4371 4372 # Find a good install program. We prefer a C program (faster), 4373# so one script is as good as another. But avoid the broken or 4374# incompatible versions: 4375# SysV /etc/install, /usr/sbin/install 4376# SunOS /usr/etc/install 4377# IRIX /sbin/install 4378# AIX /bin/install 4379# AmigaOS /C/install, which installs bootblocks on floppy discs 4380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4381# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4383# OS/2's system install, which has a completely different semantic 4384# ./install, which can be erroneously created by make from ./install.sh. 4385# Reject install programs that cannot install multiple files. 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4387printf %s "checking for a BSD-compatible install... " >&6; } 4388if test -z "$INSTALL"; then 4389if test ${ac_cv_path_install+y} 4390then : 4391 printf %s "(cached) " >&6 4392else case e in #( 4393 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4394for as_dir in $PATH 4395do 4396 IFS=$as_save_IFS 4397 case $as_dir in #((( 4398 '') as_dir=./ ;; 4399 */) ;; 4400 *) as_dir=$as_dir/ ;; 4401 esac 4402 # Account for fact that we put trailing slashes in our PATH walk. 4403case $as_dir in #(( 4404 ./ | /[cC]/* | \ 4405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4407 /usr/ucb/* ) ;; 4408 *) 4409 # OSF1 and SCO ODT 3.0 have their own names for install. 4410 # Don't use installbsd from OSF since it installs stuff as root 4411 # by default. 4412 for ac_prog in ginstall scoinst install; do 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4415 if test $ac_prog = install && 4416 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4417 # AIX install. It has an incompatible calling convention. 4418 : 4419 elif test $ac_prog = install && 4420 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4421 # program-specific install script used by HP pwplus--don't use. 4422 : 4423 else 4424 rm -rf conftest.one conftest.two conftest.dir 4425 echo one > conftest.one 4426 echo two > conftest.two 4427 mkdir conftest.dir 4428 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4429 test -s conftest.one && test -s conftest.two && 4430 test -s conftest.dir/conftest.one && 4431 test -s conftest.dir/conftest.two 4432 then 4433 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4434 break 3 4435 fi 4436 fi 4437 fi 4438 done 4439 done 4440 ;; 4441esac 4442 4443 done 4444IFS=$as_save_IFS 4445 4446rm -rf conftest.one conftest.two conftest.dir 4447 ;; 4448esac 4449fi 4450 if test ${ac_cv_path_install+y}; then 4451 INSTALL=$ac_cv_path_install 4452 else 4453 # As a last resort, use the slow shell script. Don't cache a 4454 # value for INSTALL within a source directory, because that will 4455 # break other packages using the cache if that directory is 4456 # removed, or if the value is a relative name. 4457 INSTALL=$ac_install_sh 4458 fi 4459fi 4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4461printf "%s\n" "$INSTALL" >&6; } 4462 4463# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4464# It thinks the first close brace ends the variable substitution. 4465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4466 4467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4468 4469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4470 4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4472printf %s "checking whether build environment is sane... " >&6; } 4473# Reject unsafe characters in $srcdir or the absolute working directory 4474# name. Accept space and tab only in the latter. 4475am_lf=' 4476' 4477case `pwd` in 4478 *[\\\"\#\$\&\'\`$am_lf]*) 4479 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4480esac 4481case $srcdir in 4482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4483 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4484esac 4485 4486# Do 'set' in a subshell so we don't clobber the current shell's 4487# arguments. Must try -L first in case configure is actually a 4488# symlink; some systems play weird games with the mod time of symlinks 4489# (eg FreeBSD returns the mod time of the symlink's containing 4490# directory). 4491if ( 4492 am_has_slept=no 4493 for am_try in 1 2; do 4494 echo "timestamp, slept: $am_has_slept" > conftest.file 4495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4496 if test "$*" = "X"; then 4497 # -L didn't work. 4498 set X `ls -t "$srcdir/configure" conftest.file` 4499 fi 4500 if test "$*" != "X $srcdir/configure conftest.file" \ 4501 && test "$*" != "X conftest.file $srcdir/configure"; then 4502 4503 # If neither matched, then we have a broken ls. This can happen 4504 # if, for instance, CONFIG_SHELL is bash and it inherits a 4505 # broken ls alias from the environment. This has actually 4506 # happened. Such a system could not be considered "sane". 4507 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4508 alias in your environment" "$LINENO" 5 4509 fi 4510 if test "$2" = conftest.file || test $am_try -eq 2; then 4511 break 4512 fi 4513 # Just in case. 4514 sleep 1 4515 am_has_slept=yes 4516 done 4517 test "$2" = conftest.file 4518 ) 4519then 4520 # Ok. 4521 : 4522else 4523 as_fn_error $? "newly created file is older than distributed files! 4524Check your system clock" "$LINENO" 5 4525fi 4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4527printf "%s\n" "yes" >&6; } 4528# If we didn't sleep, we still need to ensure time stamps of config.status and 4529# generated files are strictly newer. 4530am_sleep_pid= 4531if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4532 ( sleep 1 ) & 4533 am_sleep_pid=$! 4534fi 4535 4536rm -f conftest.file 4537 4538test "$program_prefix" != NONE && 4539 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4540# Use a double $ so make ignores it. 4541test "$program_suffix" != NONE && 4542 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4543# Double any \ or $. 4544# By default was 's,x,x', remove it if useless. 4545ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4546program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4547 4548 4549 if test x"${MISSING+set}" != xset; then 4550 MISSING="\${SHELL} '$am_aux_dir/missing'" 4551fi 4552# Use eval to expand $SHELL 4553if eval "$MISSING --is-lightweight"; then 4554 am_missing_run="$MISSING " 4555else 4556 am_missing_run= 4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4558printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4559fi 4560 4561if test x"${install_sh+set}" != xset; then 4562 case $am_aux_dir in 4563 *\ * | *\ *) 4564 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4565 *) 4566 install_sh="\${SHELL} $am_aux_dir/install-sh" 4567 esac 4568fi 4569 4570# Installed binaries are usually stripped using 'strip' when the user 4571# run "make install-strip". However 'strip' might not be the right 4572# tool to use in cross-compilation environments, therefore Automake 4573# will honor the 'STRIP' environment variable to overrule this program. 4574if test "$cross_compiling" != no; then 4575 if test -n "$ac_tool_prefix"; then 4576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4577set dummy ${ac_tool_prefix}strip; ac_word=$2 4578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579printf %s "checking for $ac_word... " >&6; } 4580if test ${ac_cv_prog_STRIP+y} 4581then : 4582 printf %s "(cached) " >&6 4583else case e in #( 4584 e) if test -n "$STRIP"; then 4585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4586else 4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH 4589do 4590 IFS=$as_save_IFS 4591 case $as_dir in #((( 4592 '') as_dir=./ ;; 4593 */) ;; 4594 *) as_dir=$as_dir/ ;; 4595 esac 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4598 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4600 break 2 4601 fi 4602done 4603 done 4604IFS=$as_save_IFS 4605 4606fi ;; 4607esac 4608fi 4609STRIP=$ac_cv_prog_STRIP 4610if test -n "$STRIP"; then 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4612printf "%s\n" "$STRIP" >&6; } 4613else 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615printf "%s\n" "no" >&6; } 4616fi 4617 4618 4619fi 4620if test -z "$ac_cv_prog_STRIP"; then 4621 ac_ct_STRIP=$STRIP 4622 # Extract the first word of "strip", so it can be a program name with args. 4623set dummy strip; ac_word=$2 4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625printf %s "checking for $ac_word... " >&6; } 4626if test ${ac_cv_prog_ac_ct_STRIP+y} 4627then : 4628 printf %s "(cached) " >&6 4629else case e in #( 4630 e) if test -n "$ac_ct_STRIP"; then 4631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4632else 4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634for as_dir in $PATH 4635do 4636 IFS=$as_save_IFS 4637 case $as_dir in #((( 4638 '') as_dir=./ ;; 4639 */) ;; 4640 *) as_dir=$as_dir/ ;; 4641 esac 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4644 ac_cv_prog_ac_ct_STRIP="strip" 4645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648done 4649 done 4650IFS=$as_save_IFS 4651 4652fi ;; 4653esac 4654fi 4655ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4656if test -n "$ac_ct_STRIP"; then 4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4658printf "%s\n" "$ac_ct_STRIP" >&6; } 4659else 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4661printf "%s\n" "no" >&6; } 4662fi 4663 4664 if test "x$ac_ct_STRIP" = x; then 4665 STRIP=":" 4666 else 4667 case $cross_compiling:$ac_tool_warned in 4668yes:) 4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4671ac_tool_warned=yes ;; 4672esac 4673 STRIP=$ac_ct_STRIP 4674 fi 4675else 4676 STRIP="$ac_cv_prog_STRIP" 4677fi 4678 4679fi 4680INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4681 4682 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4684printf %s "checking for a race-free mkdir -p... " >&6; } 4685if test -z "$MKDIR_P"; then 4686 if test ${ac_cv_path_mkdir+y} 4687then : 4688 printf %s "(cached) " >&6 4689else case e in #( 4690 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4691for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4692do 4693 IFS=$as_save_IFS 4694 case $as_dir in #((( 4695 '') as_dir=./ ;; 4696 */) ;; 4697 *) as_dir=$as_dir/ ;; 4698 esac 4699 for ac_prog in mkdir gmkdir; do 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4702 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4703 'mkdir ('*'coreutils) '* | \ 4704 *'BusyBox '* | \ 4705 'mkdir (fileutils) '4.1*) 4706 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4707 break 3;; 4708 esac 4709 done 4710 done 4711 done 4712IFS=$as_save_IFS 4713 ;; 4714esac 4715fi 4716 4717 test -d ./--version && rmdir ./--version 4718 if test ${ac_cv_path_mkdir+y}; then 4719 MKDIR_P="$ac_cv_path_mkdir -p" 4720 else 4721 # As a last resort, use plain mkdir -p, 4722 # in the hope it doesn't have the bugs of ancient mkdir. 4723 MKDIR_P='mkdir -p' 4724 fi 4725fi 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4727printf "%s\n" "$MKDIR_P" >&6; } 4728 4729for ac_prog in gawk mawk nawk awk 4730do 4731 # Extract the first word of "$ac_prog", so it can be a program name with args. 4732set dummy $ac_prog; ac_word=$2 4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4734printf %s "checking for $ac_word... " >&6; } 4735if test ${ac_cv_prog_AWK+y} 4736then : 4737 printf %s "(cached) " >&6 4738else case e in #( 4739 e) if test -n "$AWK"; then 4740 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4741else 4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743for as_dir in $PATH 4744do 4745 IFS=$as_save_IFS 4746 case $as_dir in #((( 4747 '') as_dir=./ ;; 4748 */) ;; 4749 *) as_dir=$as_dir/ ;; 4750 esac 4751 for ac_exec_ext in '' $ac_executable_extensions; do 4752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4753 ac_cv_prog_AWK="$ac_prog" 4754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4755 break 2 4756 fi 4757done 4758 done 4759IFS=$as_save_IFS 4760 4761fi ;; 4762esac 4763fi 4764AWK=$ac_cv_prog_AWK 4765if test -n "$AWK"; then 4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4767printf "%s\n" "$AWK" >&6; } 4768else 4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4770printf "%s\n" "no" >&6; } 4771fi 4772 4773 4774 test -n "$AWK" && break 4775done 4776 4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4778printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4779set x ${MAKE-make} 4780ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4781if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4782then : 4783 printf %s "(cached) " >&6 4784else case e in #( 4785 e) cat >conftest.make <<\_ACEOF 4786SHELL = /bin/sh 4787all: 4788 @echo '@@@%%%=$(MAKE)=@@@%%%' 4789_ACEOF 4790# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4791case `${MAKE-make} -f conftest.make 2>/dev/null` in 4792 *@@@%%%=?*=@@@%%%*) 4793 eval ac_cv_prog_make_${ac_make}_set=yes;; 4794 *) 4795 eval ac_cv_prog_make_${ac_make}_set=no;; 4796esac 4797rm -f conftest.make ;; 4798esac 4799fi 4800if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4802printf "%s\n" "yes" >&6; } 4803 SET_MAKE= 4804else 4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806printf "%s\n" "no" >&6; } 4807 SET_MAKE="MAKE=${MAKE-make}" 4808fi 4809 4810rm -rf .tst 2>/dev/null 4811mkdir .tst 2>/dev/null 4812if test -d .tst; then 4813 am__leading_dot=. 4814else 4815 am__leading_dot=_ 4816fi 4817rmdir .tst 2>/dev/null 4818 4819DEPDIR="${am__leading_dot}deps" 4820 4821ac_config_commands="$ac_config_commands depfiles" 4822 4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4824printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4825cat > confinc.mk << 'END' 4826am__doit: 4827 @echo this is the am__doit target >confinc.out 4828.PHONY: am__doit 4829END 4830am__include="#" 4831am__quote= 4832# BSD make does it like this. 4833echo '.include "confinc.mk" # ignored' > confmf.BSD 4834# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4835echo 'include confinc.mk # ignored' > confmf.GNU 4836_am_result=no 4837for s in GNU BSD; do 4838 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4839 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4840 ac_status=$? 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); } 4843 case $?:`cat confinc.out 2>/dev/null` in #( 4844 '0:this is the am__doit target') : 4845 case $s in #( 4846 BSD) : 4847 am__include='.include' am__quote='"' ;; #( 4848 *) : 4849 am__include='include' am__quote='' ;; 4850esac ;; #( 4851 *) : 4852 ;; 4853esac 4854 if test "$am__include" != "#"; then 4855 _am_result="yes ($s style)" 4856 break 4857 fi 4858done 4859rm -f confinc.* confmf.* 4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4861printf "%s\n" "${_am_result}" >&6; } 4862 4863# Check whether --enable-dependency-tracking was given. 4864if test ${enable_dependency_tracking+y} 4865then : 4866 enableval=$enable_dependency_tracking; 4867fi 4868 4869if test "x$enable_dependency_tracking" != xno; then 4870 am_depcomp="$ac_aux_dir/depcomp" 4871 AMDEPBACKSLASH='\' 4872 am__nodep='_no' 4873fi 4874 if test "x$enable_dependency_tracking" != xno; then 4875 AMDEP_TRUE= 4876 AMDEP_FALSE='#' 4877else 4878 AMDEP_TRUE='#' 4879 AMDEP_FALSE= 4880fi 4881 4882 4883# Check whether --enable-silent-rules was given. 4884if test ${enable_silent_rules+y} 4885then : 4886 enableval=$enable_silent_rules; 4887fi 4888 4889case $enable_silent_rules in # ((( 4890 yes) AM_DEFAULT_VERBOSITY=0;; 4891 no) AM_DEFAULT_VERBOSITY=1;; 4892 *) AM_DEFAULT_VERBOSITY=1;; 4893esac 4894am_make=${MAKE-make} 4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4896printf %s "checking whether $am_make supports nested variables... " >&6; } 4897if test ${am_cv_make_support_nested_variables+y} 4898then : 4899 printf %s "(cached) " >&6 4900else case e in #( 4901 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4902BAR0=false 4903BAR1=true 4904V=1 4905am__doit: 4906 @$(TRUE) 4907.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4908 am_cv_make_support_nested_variables=yes 4909else 4910 am_cv_make_support_nested_variables=no 4911fi ;; 4912esac 4913fi 4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4915printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4916if test $am_cv_make_support_nested_variables = yes; then 4917 AM_V='$(V)' 4918 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4919else 4920 AM_V=$AM_DEFAULT_VERBOSITY 4921 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4922fi 4923AM_BACKSLASH='\' 4924 4925if test "`cd $srcdir && pwd`" != "`pwd`"; then 4926 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4927 # is not polluted with repeated "-I." 4928 am__isrc=' -I$(srcdir)' 4929 # test to see if srcdir already configured 4930 if test -f $srcdir/config.status; then 4931 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4932 fi 4933fi 4934 4935# test whether we have cygpath 4936if test -z "$CYGPATH_W"; then 4937 if (cygpath --version) >/dev/null 2>/dev/null; then 4938 CYGPATH_W='cygpath -w' 4939 else 4940 CYGPATH_W=echo 4941 fi 4942fi 4943 4944 4945# Define the identity of the package. 4946 PACKAGE='xdm' 4947 VERSION='1.1.16' 4948 4949 4950printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4951 4952 4953printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4954 4955# Some tools Automake needs. 4956 4957ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4958 4959 4960AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4961 4962 4963AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4964 4965 4966AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4967 4968 4969MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4970 4971# For better backward compatibility. To be removed once Automake 1.9.x 4972# dies out for good. For more background, see: 4973# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4974# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4975mkdir_p='$(MKDIR_P)' 4976 4977# We need awk for the "check" target (and possibly the TAP driver). The 4978# system "awk" is bad on some platforms. 4979# Always define AMTAR for backward compatibility. Yes, it's still used 4980# in the wild :-( We should find a proper way to deprecate it ... 4981AMTAR='$${TAR-tar}' 4982 4983 4984# We'll loop over all known methods to create a tar archive until one works. 4985_am_tools='gnutar pax cpio none' 4986 4987am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4988 4989 4990 4991 4992 4993depcc="$CC" am_compiler_list= 4994 4995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4996printf %s "checking dependency style of $depcc... " >&6; } 4997if test ${am_cv_CC_dependencies_compiler_type+y} 4998then : 4999 printf %s "(cached) " >&6 5000else case e in #( 5001 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5002 # We make a subdir and do the tests there. Otherwise we can end up 5003 # making bogus files that we don't know about and never remove. For 5004 # instance it was reported that on HP-UX the gcc test will end up 5005 # making a dummy file named 'D' -- because '-MD' means "put the output 5006 # in D". 5007 rm -rf conftest.dir 5008 mkdir conftest.dir 5009 # Copy depcomp to subdir because otherwise we won't find it if we're 5010 # using a relative directory. 5011 cp "$am_depcomp" conftest.dir 5012 cd conftest.dir 5013 # We will build objects and dependencies in a subdirectory because 5014 # it helps to detect inapplicable dependency modes. For instance 5015 # both Tru64's cc and ICC support -MD to output dependencies as a 5016 # side effect of compilation, but ICC will put the dependencies in 5017 # the current directory while Tru64 will put them in the object 5018 # directory. 5019 mkdir sub 5020 5021 am_cv_CC_dependencies_compiler_type=none 5022 if test "$am_compiler_list" = ""; then 5023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5024 fi 5025 am__universal=false 5026 case " $depcc " in #( 5027 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5028 esac 5029 5030 for depmode in $am_compiler_list; do 5031 # Setup a source with many dependencies, because some compilers 5032 # like to wrap large dependency lists on column 80 (with \), and 5033 # we should not choose a depcomp mode which is confused by this. 5034 # 5035 # We need to recreate these files for each test, as the compiler may 5036 # overwrite some of them when testing with obscure command lines. 5037 # This happens at least with the AIX C compiler. 5038 : > sub/conftest.c 5039 for i in 1 2 3 4 5 6; do 5040 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5041 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5042 # Solaris 10 /bin/sh. 5043 echo '/* dummy */' > sub/conftst$i.h 5044 done 5045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5046 5047 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5048 # mode. It turns out that the SunPro C++ compiler does not properly 5049 # handle '-M -o', and we need to detect this. Also, some Intel 5050 # versions had trouble with output in subdirs. 5051 am__obj=sub/conftest.${OBJEXT-o} 5052 am__minus_obj="-o $am__obj" 5053 case $depmode in 5054 gcc) 5055 # This depmode causes a compiler race in universal mode. 5056 test "$am__universal" = false || continue 5057 ;; 5058 nosideeffect) 5059 # After this tag, mechanisms are not by side-effect, so they'll 5060 # only be used when explicitly requested. 5061 if test "x$enable_dependency_tracking" = xyes; then 5062 continue 5063 else 5064 break 5065 fi 5066 ;; 5067 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5068 # This compiler won't grok '-c -o', but also, the minuso test has 5069 # not run yet. These depmodes are late enough in the game, and 5070 # so weak that their functioning should not be impacted. 5071 am__obj=conftest.${OBJEXT-o} 5072 am__minus_obj= 5073 ;; 5074 none) break ;; 5075 esac 5076 if depmode=$depmode \ 5077 source=sub/conftest.c object=$am__obj \ 5078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5079 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5080 >/dev/null 2>conftest.err && 5081 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5083 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5085 # icc doesn't choke on unknown options, it will just issue warnings 5086 # or remarks (even with -Werror). So we grep stderr for any message 5087 # that says an option was ignored or not supported. 5088 # When given -MP, icc 7.0 and 7.1 complain thusly: 5089 # icc: Command line warning: ignoring option '-M'; no argument required 5090 # The diagnosis changed in icc 8.0: 5091 # icc: Command line remark: option '-MP' not supported 5092 if (grep 'ignoring option' conftest.err || 5093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5094 am_cv_CC_dependencies_compiler_type=$depmode 5095 break 5096 fi 5097 fi 5098 done 5099 5100 cd .. 5101 rm -rf conftest.dir 5102else 5103 am_cv_CC_dependencies_compiler_type=none 5104fi 5105 ;; 5106esac 5107fi 5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5109printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5110CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5111 5112 if 5113 test "x$enable_dependency_tracking" != xno \ 5114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5115 am__fastdepCC_TRUE= 5116 am__fastdepCC_FALSE='#' 5117else 5118 am__fastdepCC_TRUE='#' 5119 am__fastdepCC_FALSE= 5120fi 5121 5122 5123# Variables for tags utilities; see am/tags.am 5124if test -z "$CTAGS"; then 5125 CTAGS=ctags 5126fi 5127 5128if test -z "$ETAGS"; then 5129 ETAGS=etags 5130fi 5131 5132if test -z "$CSCOPE"; then 5133 CSCOPE=cscope 5134fi 5135 5136 5137 5138# POSIX will say in a future version that running "rm -f" with no argument 5139# is OK; and we want to be able to make that assumption in our Makefile 5140# recipes. So use an aggressive probe to check that the usage we want is 5141# actually supported "in the wild" to an acceptable degree. 5142# See automake bug#10828. 5143# To make any issue more visible, cause the running configure to be aborted 5144# by default if the 'rm' program in use doesn't match our expectations; the 5145# user can still override this though. 5146if rm -f && rm -fr && rm -rf; then : OK; else 5147 cat >&2 <<'END' 5148Oops! 5149 5150Your 'rm' program seems unable to run without file operands specified 5151on the command line, even when the '-f' option is present. This is contrary 5152to the behaviour of most rm programs out there, and not conforming with 5153the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5154 5155Please tell bug-automake@gnu.org about your system, including the value 5156of your $PATH and any error possibly output before this message. This 5157can help us improve future automake versions. 5158 5159END 5160 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5161 echo 'Configuration will proceed anyway, since you have set the' >&2 5162 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5163 echo >&2 5164 else 5165 cat >&2 <<'END' 5166Aborting the configuration process, to ensure you take notice of the issue. 5167 5168You can download and install GNU coreutils to get an 'rm' implementation 5169that behaves properly: <https://www.gnu.org/software/coreutils/>. 5170 5171If you want to complete the configuration process using your problematic 5172'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5173to "yes", and re-run configure. 5174 5175END 5176 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5177 fi 5178fi 5179 5180 5181# Initialize libtool 5182case `pwd` in 5183 *\ * | *\ *) 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5185printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5186esac 5187 5188 5189 5190macro_version='2.4.7' 5191macro_revision='2.4.7' 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206ltmain=$ac_aux_dir/ltmain.sh 5207 5208 5209 5210 # Make sure we can run config.sub. 5211$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5212 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5213 5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5215printf %s "checking build system type... " >&6; } 5216if test ${ac_cv_build+y} 5217then : 5218 printf %s "(cached) " >&6 5219else case e in #( 5220 e) ac_build_alias=$build_alias 5221test "x$ac_build_alias" = x && 5222 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5223test "x$ac_build_alias" = x && 5224 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5225ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5226 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5227 ;; 5228esac 5229fi 5230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5231printf "%s\n" "$ac_cv_build" >&6; } 5232case $ac_cv_build in 5233*-*-*) ;; 5234*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5235esac 5236build=$ac_cv_build 5237ac_save_IFS=$IFS; IFS='-' 5238set x $ac_cv_build 5239shift 5240build_cpu=$1 5241build_vendor=$2 5242shift; shift 5243# Remember, the first character of IFS is used to create $*, 5244# except with old shells: 5245build_os=$* 5246IFS=$ac_save_IFS 5247case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5248 5249 5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5251printf %s "checking host system type... " >&6; } 5252if test ${ac_cv_host+y} 5253then : 5254 printf %s "(cached) " >&6 5255else case e in #( 5256 e) if test "x$host_alias" = x; then 5257 ac_cv_host=$ac_cv_build 5258else 5259 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5260 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5261fi 5262 ;; 5263esac 5264fi 5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5266printf "%s\n" "$ac_cv_host" >&6; } 5267case $ac_cv_host in 5268*-*-*) ;; 5269*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5270esac 5271host=$ac_cv_host 5272ac_save_IFS=$IFS; IFS='-' 5273set x $ac_cv_host 5274shift 5275host_cpu=$1 5276host_vendor=$2 5277shift; shift 5278# Remember, the first character of IFS is used to create $*, 5279# except with old shells: 5280host_os=$* 5281IFS=$ac_save_IFS 5282case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5283 5284 5285# Backslashify metacharacters that are still active within 5286# double-quoted strings. 5287sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5288 5289# Same as above, but do not quote variable references. 5290double_quote_subst='s/\(["`\\]\)/\\\1/g' 5291 5292# Sed substitution to delay expansion of an escaped shell variable in a 5293# double_quote_subst'ed string. 5294delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5295 5296# Sed substitution to delay expansion of an escaped single quote. 5297delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5298 5299# Sed substitution to avoid accidental globbing in evaled expressions 5300no_glob_subst='s/\*/\\\*/g' 5301 5302ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5304ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5305 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5307printf %s "checking how to print strings... " >&6; } 5308# Test print first, because it will be a builtin if present. 5309if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5310 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5311 ECHO='print -r --' 5312elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5313 ECHO='printf %s\n' 5314else 5315 # Use this function as a fallback that always works. 5316 func_fallback_echo () 5317 { 5318 eval 'cat <<_LTECHO_EOF 5319$1 5320_LTECHO_EOF' 5321 } 5322 ECHO='func_fallback_echo' 5323fi 5324 5325# func_echo_all arg... 5326# Invoke $ECHO with all args, space-separated. 5327func_echo_all () 5328{ 5329 $ECHO "" 5330} 5331 5332case $ECHO in 5333 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5334printf "%s\n" "printf" >&6; } ;; 5335 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5336printf "%s\n" "print -r" >&6; } ;; 5337 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5338printf "%s\n" "cat" >&6; } ;; 5339esac 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5355printf %s "checking for a sed that does not truncate output... " >&6; } 5356if test ${ac_cv_path_SED+y} 5357then : 5358 printf %s "(cached) " >&6 5359else case e in #( 5360 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5361 for ac_i in 1 2 3 4 5 6 7; do 5362 ac_script="$ac_script$as_nl$ac_script" 5363 done 5364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5365 { ac_script=; unset ac_script;} 5366 if test -z "$SED"; then 5367 ac_path_SED_found=false 5368 # Loop through the user's path and test for each of PROGNAME-LIST 5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5370for as_dir in $PATH 5371do 5372 IFS=$as_save_IFS 5373 case $as_dir in #((( 5374 '') as_dir=./ ;; 5375 */) ;; 5376 *) as_dir=$as_dir/ ;; 5377 esac 5378 for ac_prog in sed gsed 5379 do 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5382 as_fn_executable_p "$ac_path_SED" || continue 5383# Check for GNU ac_path_SED and select it if it is found. 5384 # Check for GNU $ac_path_SED 5385case `"$ac_path_SED" --version 2>&1` in #( 5386*GNU*) 5387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5388#( 5389*) 5390 ac_count=0 5391 printf %s 0123456789 >"conftest.in" 5392 while : 5393 do 5394 cat "conftest.in" "conftest.in" >"conftest.tmp" 5395 mv "conftest.tmp" "conftest.in" 5396 cp "conftest.in" "conftest.nl" 5397 printf "%s\n" '' >> "conftest.nl" 5398 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5400 as_fn_arith $ac_count + 1 && ac_count=$as_val 5401 if test $ac_count -gt ${ac_path_SED_max-0}; then 5402 # Best one so far, save it but keep looking for a better one 5403 ac_cv_path_SED="$ac_path_SED" 5404 ac_path_SED_max=$ac_count 5405 fi 5406 # 10*(2^10) chars as input seems more than enough 5407 test $ac_count -gt 10 && break 5408 done 5409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5410esac 5411 5412 $ac_path_SED_found && break 3 5413 done 5414 done 5415 done 5416IFS=$as_save_IFS 5417 if test -z "$ac_cv_path_SED"; then 5418 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5419 fi 5420else 5421 ac_cv_path_SED=$SED 5422fi 5423 ;; 5424esac 5425fi 5426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5427printf "%s\n" "$ac_cv_path_SED" >&6; } 5428 SED="$ac_cv_path_SED" 5429 rm -f conftest.sed 5430 5431test -z "$SED" && SED=sed 5432Xsed="$SED -e 1s/^X//" 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5445printf %s "checking for grep that handles long lines and -e... " >&6; } 5446if test ${ac_cv_path_GREP+y} 5447then : 5448 printf %s "(cached) " >&6 5449else case e in #( 5450 e) if test -z "$GREP"; then 5451 ac_path_GREP_found=false 5452 # Loop through the user's path and test for each of PROGNAME-LIST 5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5455do 5456 IFS=$as_save_IFS 5457 case $as_dir in #((( 5458 '') as_dir=./ ;; 5459 */) ;; 5460 *) as_dir=$as_dir/ ;; 5461 esac 5462 for ac_prog in grep ggrep 5463 do 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5466 as_fn_executable_p "$ac_path_GREP" || continue 5467# Check for GNU ac_path_GREP and select it if it is found. 5468 # Check for GNU $ac_path_GREP 5469case `"$ac_path_GREP" --version 2>&1` in #( 5470*GNU*) 5471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5472#( 5473*) 5474 ac_count=0 5475 printf %s 0123456789 >"conftest.in" 5476 while : 5477 do 5478 cat "conftest.in" "conftest.in" >"conftest.tmp" 5479 mv "conftest.tmp" "conftest.in" 5480 cp "conftest.in" "conftest.nl" 5481 printf "%s\n" 'GREP' >> "conftest.nl" 5482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5484 as_fn_arith $ac_count + 1 && ac_count=$as_val 5485 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5486 # Best one so far, save it but keep looking for a better one 5487 ac_cv_path_GREP="$ac_path_GREP" 5488 ac_path_GREP_max=$ac_count 5489 fi 5490 # 10*(2^10) chars as input seems more than enough 5491 test $ac_count -gt 10 && break 5492 done 5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5494esac 5495 5496 $ac_path_GREP_found && break 3 5497 done 5498 done 5499 done 5500IFS=$as_save_IFS 5501 if test -z "$ac_cv_path_GREP"; then 5502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5503 fi 5504else 5505 ac_cv_path_GREP=$GREP 5506fi 5507 ;; 5508esac 5509fi 5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5511printf "%s\n" "$ac_cv_path_GREP" >&6; } 5512 GREP="$ac_cv_path_GREP" 5513 5514 5515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5516printf %s "checking for egrep... " >&6; } 5517if test ${ac_cv_path_EGREP+y} 5518then : 5519 printf %s "(cached) " >&6 5520else case e in #( 5521 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5522 then ac_cv_path_EGREP="$GREP -E" 5523 else 5524 if test -z "$EGREP"; then 5525 ac_path_EGREP_found=false 5526 # Loop through the user's path and test for each of PROGNAME-LIST 5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5529do 5530 IFS=$as_save_IFS 5531 case $as_dir in #((( 5532 '') as_dir=./ ;; 5533 */) ;; 5534 *) as_dir=$as_dir/ ;; 5535 esac 5536 for ac_prog in egrep 5537 do 5538 for ac_exec_ext in '' $ac_executable_extensions; do 5539 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5540 as_fn_executable_p "$ac_path_EGREP" || continue 5541# Check for GNU ac_path_EGREP and select it if it is found. 5542 # Check for GNU $ac_path_EGREP 5543case `"$ac_path_EGREP" --version 2>&1` in #( 5544*GNU*) 5545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5546#( 5547*) 5548 ac_count=0 5549 printf %s 0123456789 >"conftest.in" 5550 while : 5551 do 5552 cat "conftest.in" "conftest.in" >"conftest.tmp" 5553 mv "conftest.tmp" "conftest.in" 5554 cp "conftest.in" "conftest.nl" 5555 printf "%s\n" 'EGREP' >> "conftest.nl" 5556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5558 as_fn_arith $ac_count + 1 && ac_count=$as_val 5559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5560 # Best one so far, save it but keep looking for a better one 5561 ac_cv_path_EGREP="$ac_path_EGREP" 5562 ac_path_EGREP_max=$ac_count 5563 fi 5564 # 10*(2^10) chars as input seems more than enough 5565 test $ac_count -gt 10 && break 5566 done 5567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5568esac 5569 5570 $ac_path_EGREP_found && break 3 5571 done 5572 done 5573 done 5574IFS=$as_save_IFS 5575 if test -z "$ac_cv_path_EGREP"; then 5576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5577 fi 5578else 5579 ac_cv_path_EGREP=$EGREP 5580fi 5581 5582 fi ;; 5583esac 5584fi 5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5586printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5587 EGREP="$ac_cv_path_EGREP" 5588 5589 EGREP_TRADITIONAL=$EGREP 5590 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5591 5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5593printf %s "checking for fgrep... " >&6; } 5594if test ${ac_cv_path_FGREP+y} 5595then : 5596 printf %s "(cached) " >&6 5597else case e in #( 5598 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5599 then ac_cv_path_FGREP="$GREP -F" 5600 else 5601 if test -z "$FGREP"; then 5602 ac_path_FGREP_found=false 5603 # Loop through the user's path and test for each of PROGNAME-LIST 5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5606do 5607 IFS=$as_save_IFS 5608 case $as_dir in #((( 5609 '') as_dir=./ ;; 5610 */) ;; 5611 *) as_dir=$as_dir/ ;; 5612 esac 5613 for ac_prog in fgrep 5614 do 5615 for ac_exec_ext in '' $ac_executable_extensions; do 5616 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5617 as_fn_executable_p "$ac_path_FGREP" || continue 5618# Check for GNU ac_path_FGREP and select it if it is found. 5619 # Check for GNU $ac_path_FGREP 5620case `"$ac_path_FGREP" --version 2>&1` in #( 5621*GNU*) 5622 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5623#( 5624*) 5625 ac_count=0 5626 printf %s 0123456789 >"conftest.in" 5627 while : 5628 do 5629 cat "conftest.in" "conftest.in" >"conftest.tmp" 5630 mv "conftest.tmp" "conftest.in" 5631 cp "conftest.in" "conftest.nl" 5632 printf "%s\n" 'FGREP' >> "conftest.nl" 5633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5635 as_fn_arith $ac_count + 1 && ac_count=$as_val 5636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5637 # Best one so far, save it but keep looking for a better one 5638 ac_cv_path_FGREP="$ac_path_FGREP" 5639 ac_path_FGREP_max=$ac_count 5640 fi 5641 # 10*(2^10) chars as input seems more than enough 5642 test $ac_count -gt 10 && break 5643 done 5644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5645esac 5646 5647 $ac_path_FGREP_found && break 3 5648 done 5649 done 5650 done 5651IFS=$as_save_IFS 5652 if test -z "$ac_cv_path_FGREP"; then 5653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5654 fi 5655else 5656 ac_cv_path_FGREP=$FGREP 5657fi 5658 5659 fi ;; 5660esac 5661fi 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5663printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5664 FGREP="$ac_cv_path_FGREP" 5665 5666 5667test -z "$GREP" && GREP=grep 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687# Check whether --with-gnu-ld was given. 5688if test ${with_gnu_ld+y} 5689then : 5690 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5691else case e in #( 5692 e) with_gnu_ld=no ;; 5693esac 5694fi 5695 5696ac_prog=ld 5697if test yes = "$GCC"; then 5698 # Check if gcc -print-prog-name=ld gives a path. 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5700printf %s "checking for ld used by $CC... " >&6; } 5701 case $host in 5702 *-*-mingw*) 5703 # gcc leaves a trailing carriage return, which upsets mingw 5704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5705 *) 5706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5707 esac 5708 case $ac_prog in 5709 # Accept absolute paths. 5710 [\\/]* | ?:[\\/]*) 5711 re_direlt='/[^/][^/]*/\.\./' 5712 # Canonicalize the pathname of ld 5713 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5714 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5715 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5716 done 5717 test -z "$LD" && LD=$ac_prog 5718 ;; 5719 "") 5720 # If it fails, then pretend we aren't using GCC. 5721 ac_prog=ld 5722 ;; 5723 *) 5724 # If it is relative, then search for the first ld in PATH. 5725 with_gnu_ld=unknown 5726 ;; 5727 esac 5728elif test yes = "$with_gnu_ld"; then 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5730printf %s "checking for GNU ld... " >&6; } 5731else 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5733printf %s "checking for non-GNU ld... " >&6; } 5734fi 5735if test ${lt_cv_path_LD+y} 5736then : 5737 printf %s "(cached) " >&6 5738else case e in #( 5739 e) if test -z "$LD"; then 5740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5741 for ac_dir in $PATH; do 5742 IFS=$lt_save_ifs 5743 test -z "$ac_dir" && ac_dir=. 5744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5745 lt_cv_path_LD=$ac_dir/$ac_prog 5746 # Check to see if the program is GNU ld. I'd rather use --version, 5747 # but apparently some variants of GNU ld only accept -v. 5748 # Break only if it was the GNU/non-GNU ld that we prefer. 5749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5750 *GNU* | *'with BFD'*) 5751 test no != "$with_gnu_ld" && break 5752 ;; 5753 *) 5754 test yes != "$with_gnu_ld" && break 5755 ;; 5756 esac 5757 fi 5758 done 5759 IFS=$lt_save_ifs 5760else 5761 lt_cv_path_LD=$LD # Let the user override the test with a path. 5762fi ;; 5763esac 5764fi 5765 5766LD=$lt_cv_path_LD 5767if test -n "$LD"; then 5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5769printf "%s\n" "$LD" >&6; } 5770else 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5772printf "%s\n" "no" >&6; } 5773fi 5774test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5776printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5777if test ${lt_cv_prog_gnu_ld+y} 5778then : 5779 printf %s "(cached) " >&6 5780else case e in #( 5781 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5782case `$LD -v 2>&1 </dev/null` in 5783*GNU* | *'with BFD'*) 5784 lt_cv_prog_gnu_ld=yes 5785 ;; 5786*) 5787 lt_cv_prog_gnu_ld=no 5788 ;; 5789esac ;; 5790esac 5791fi 5792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5793printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5794with_gnu_ld=$lt_cv_prog_gnu_ld 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5805printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5806if test ${lt_cv_path_NM+y} 5807then : 5808 printf %s "(cached) " >&6 5809else case e in #( 5810 e) if test -n "$NM"; then 5811 # Let the user override the test. 5812 lt_cv_path_NM=$NM 5813else 5814 lt_nm_to_check=${ac_tool_prefix}nm 5815 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5816 lt_nm_to_check="$lt_nm_to_check nm" 5817 fi 5818 for lt_tmp_nm in $lt_nm_to_check; do 5819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5820 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5821 IFS=$lt_save_ifs 5822 test -z "$ac_dir" && ac_dir=. 5823 tmp_nm=$ac_dir/$lt_tmp_nm 5824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5825 # Check to see if the nm accepts a BSD-compat flag. 5826 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5827 # nm: unknown option "B" ignored 5828 # Tru64's nm complains that /dev/null is an invalid object file 5829 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5830 case $build_os in 5831 mingw*) lt_bad_file=conftest.nm/nofile ;; 5832 *) lt_bad_file=/dev/null ;; 5833 esac 5834 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5835 *$lt_bad_file* | *'Invalid file or object type'*) 5836 lt_cv_path_NM="$tmp_nm -B" 5837 break 2 5838 ;; 5839 *) 5840 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5841 */dev/null*) 5842 lt_cv_path_NM="$tmp_nm -p" 5843 break 2 5844 ;; 5845 *) 5846 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5847 continue # so that we can try to find one that supports BSD flags 5848 ;; 5849 esac 5850 ;; 5851 esac 5852 fi 5853 done 5854 IFS=$lt_save_ifs 5855 done 5856 : ${lt_cv_path_NM=no} 5857fi ;; 5858esac 5859fi 5860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5861printf "%s\n" "$lt_cv_path_NM" >&6; } 5862if test no != "$lt_cv_path_NM"; then 5863 NM=$lt_cv_path_NM 5864else 5865 # Didn't find any BSD compatible name lister, look for dumpbin. 5866 if test -n "$DUMPBIN"; then : 5867 # Let the user override the test. 5868 else 5869 if test -n "$ac_tool_prefix"; then 5870 for ac_prog in dumpbin "link -dump" 5871 do 5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5873set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875printf %s "checking for $ac_word... " >&6; } 5876if test ${ac_cv_prog_DUMPBIN+y} 5877then : 5878 printf %s "(cached) " >&6 5879else case e in #( 5880 e) if test -n "$DUMPBIN"; then 5881 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 case $as_dir in #((( 5888 '') as_dir=./ ;; 5889 */) ;; 5890 *) as_dir=$as_dir/ ;; 5891 esac 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899 done 5900IFS=$as_save_IFS 5901 5902fi ;; 5903esac 5904fi 5905DUMPBIN=$ac_cv_prog_DUMPBIN 5906if test -n "$DUMPBIN"; then 5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5908printf "%s\n" "$DUMPBIN" >&6; } 5909else 5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911printf "%s\n" "no" >&6; } 5912fi 5913 5914 5915 test -n "$DUMPBIN" && break 5916 done 5917fi 5918if test -z "$DUMPBIN"; then 5919 ac_ct_DUMPBIN=$DUMPBIN 5920 for ac_prog in dumpbin "link -dump" 5921do 5922 # Extract the first word of "$ac_prog", so it can be a program name with args. 5923set dummy $ac_prog; ac_word=$2 5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5925printf %s "checking for $ac_word... " >&6; } 5926if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5927then : 5928 printf %s "(cached) " >&6 5929else case e in #( 5930 e) if test -n "$ac_ct_DUMPBIN"; then 5931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 case $as_dir in #((( 5938 '') as_dir=./ ;; 5939 */) ;; 5940 *) as_dir=$as_dir/ ;; 5941 esac 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5944 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949 done 5950IFS=$as_save_IFS 5951 5952fi ;; 5953esac 5954fi 5955ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5956if test -n "$ac_ct_DUMPBIN"; then 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5958printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5959else 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961printf "%s\n" "no" >&6; } 5962fi 5963 5964 5965 test -n "$ac_ct_DUMPBIN" && break 5966done 5967 5968 if test "x$ac_ct_DUMPBIN" = x; then 5969 DUMPBIN=":" 5970 else 5971 case $cross_compiling:$ac_tool_warned in 5972yes:) 5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5975ac_tool_warned=yes ;; 5976esac 5977 DUMPBIN=$ac_ct_DUMPBIN 5978 fi 5979fi 5980 5981 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5982 *COFF*) 5983 DUMPBIN="$DUMPBIN -symbols -headers" 5984 ;; 5985 *) 5986 DUMPBIN=: 5987 ;; 5988 esac 5989 fi 5990 5991 if test : != "$DUMPBIN"; then 5992 NM=$DUMPBIN 5993 fi 5994fi 5995test -z "$NM" && NM=nm 5996 5997 5998 5999 6000 6001 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6003printf %s "checking the name lister ($NM) interface... " >&6; } 6004if test ${lt_cv_nm_interface+y} 6005then : 6006 printf %s "(cached) " >&6 6007else case e in #( 6008 e) lt_cv_nm_interface="BSD nm" 6009 echo "int some_variable = 0;" > conftest.$ac_ext 6010 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6011 (eval "$ac_compile" 2>conftest.err) 6012 cat conftest.err >&5 6013 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6014 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6015 cat conftest.err >&5 6016 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6017 cat conftest.out >&5 6018 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6019 lt_cv_nm_interface="MS dumpbin" 6020 fi 6021 rm -f conftest* ;; 6022esac 6023fi 6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6025printf "%s\n" "$lt_cv_nm_interface" >&6; } 6026 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6028printf %s "checking whether ln -s works... " >&6; } 6029LN_S=$as_ln_s 6030if test "$LN_S" = "ln -s"; then 6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6032printf "%s\n" "yes" >&6; } 6033else 6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6035printf "%s\n" "no, using $LN_S" >&6; } 6036fi 6037 6038# find the maximum length of command line arguments 6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6040printf %s "checking the maximum length of command line arguments... " >&6; } 6041if test ${lt_cv_sys_max_cmd_len+y} 6042then : 6043 printf %s "(cached) " >&6 6044else case e in #( 6045 e) i=0 6046 teststring=ABCD 6047 6048 case $build_os in 6049 msdosdjgpp*) 6050 # On DJGPP, this test can blow up pretty badly due to problems in libc 6051 # (any single argument exceeding 2000 bytes causes a buffer overrun 6052 # during glob expansion). Even if it were fixed, the result of this 6053 # check would be larger than it should be. 6054 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6055 ;; 6056 6057 gnu*) 6058 # Under GNU Hurd, this test is not required because there is 6059 # no limit to the length of command line arguments. 6060 # Libtool will interpret -1 as no limit whatsoever 6061 lt_cv_sys_max_cmd_len=-1; 6062 ;; 6063 6064 cygwin* | mingw* | cegcc*) 6065 # On Win9x/ME, this test blows up -- it succeeds, but takes 6066 # about 5 minutes as the teststring grows exponentially. 6067 # Worse, since 9x/ME are not pre-emptively multitasking, 6068 # you end up with a "frozen" computer, even though with patience 6069 # the test eventually succeeds (with a max line length of 256k). 6070 # Instead, let's just punt: use the minimum linelength reported by 6071 # all of the supported platforms: 8192 (on NT/2K/XP). 6072 lt_cv_sys_max_cmd_len=8192; 6073 ;; 6074 6075 mint*) 6076 # On MiNT this can take a long time and run out of memory. 6077 lt_cv_sys_max_cmd_len=8192; 6078 ;; 6079 6080 amigaos*) 6081 # On AmigaOS with pdksh, this test takes hours, literally. 6082 # So we just punt and use a minimum line length of 8192. 6083 lt_cv_sys_max_cmd_len=8192; 6084 ;; 6085 6086 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6087 # This has been around since 386BSD, at least. Likely further. 6088 if test -x /sbin/sysctl; then 6089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6090 elif test -x /usr/sbin/sysctl; then 6091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6092 else 6093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6094 fi 6095 # And add a safety zone 6096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6098 ;; 6099 6100 interix*) 6101 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6102 lt_cv_sys_max_cmd_len=196608 6103 ;; 6104 6105 os2*) 6106 # The test takes a long time on OS/2. 6107 lt_cv_sys_max_cmd_len=8192 6108 ;; 6109 6110 osf*) 6111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6113 # nice to cause kernel panics so lets avoid the loop below. 6114 # First set a reasonable default. 6115 lt_cv_sys_max_cmd_len=16384 6116 # 6117 if test -x /sbin/sysconfig; then 6118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6119 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6120 esac 6121 fi 6122 ;; 6123 sco3.2v5*) 6124 lt_cv_sys_max_cmd_len=102400 6125 ;; 6126 sysv5* | sco5v6* | sysv4.2uw2*) 6127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6128 if test -n "$kargmax"; then 6129 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6130 else 6131 lt_cv_sys_max_cmd_len=32768 6132 fi 6133 ;; 6134 *) 6135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6136 if test -n "$lt_cv_sys_max_cmd_len" && \ 6137 test undefined != "$lt_cv_sys_max_cmd_len"; then 6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6140 else 6141 # Make teststring a little bigger before we do anything with it. 6142 # a 1K string should be a reasonable start. 6143 for i in 1 2 3 4 5 6 7 8; do 6144 teststring=$teststring$teststring 6145 done 6146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6147 # If test is not a shell built-in, we'll probably end up computing a 6148 # maximum length that is only half of the actual maximum length, but 6149 # we can't tell. 6150 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6151 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6152 test 17 != "$i" # 1/2 MB should be enough 6153 do 6154 i=`expr $i + 1` 6155 teststring=$teststring$teststring 6156 done 6157 # Only check the string length outside the loop. 6158 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6159 teststring= 6160 # Add a significant safety factor because C++ compilers can tack on 6161 # massive amounts of additional arguments before passing them to the 6162 # linker. It appears as though 1/2 is a usable value. 6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6164 fi 6165 ;; 6166 esac 6167 ;; 6168esac 6169fi 6170 6171if test -n "$lt_cv_sys_max_cmd_len"; then 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6173printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6174else 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6176printf "%s\n" "none" >&6; } 6177fi 6178max_cmd_len=$lt_cv_sys_max_cmd_len 6179 6180 6181 6182 6183 6184 6185: ${CP="cp -f"} 6186: ${MV="mv -f"} 6187: ${RM="rm -f"} 6188 6189if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6190 lt_unset=unset 6191else 6192 lt_unset=false 6193fi 6194 6195 6196 6197 6198 6199# test EBCDIC or ASCII 6200case `echo X|tr X '\101'` in 6201 A) # ASCII based system 6202 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6203 lt_SP2NL='tr \040 \012' 6204 lt_NL2SP='tr \015\012 \040\040' 6205 ;; 6206 *) # EBCDIC based system 6207 lt_SP2NL='tr \100 \n' 6208 lt_NL2SP='tr \r\n \100\100' 6209 ;; 6210esac 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6221printf %s "checking how to convert $build file names to $host format... " >&6; } 6222if test ${lt_cv_to_host_file_cmd+y} 6223then : 6224 printf %s "(cached) " >&6 6225else case e in #( 6226 e) case $host in 6227 *-*-mingw* ) 6228 case $build in 6229 *-*-mingw* ) # actually msys 6230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6231 ;; 6232 *-*-cygwin* ) 6233 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6234 ;; 6235 * ) # otherwise, assume *nix 6236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6237 ;; 6238 esac 6239 ;; 6240 *-*-cygwin* ) 6241 case $build in 6242 *-*-mingw* ) # actually msys 6243 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6244 ;; 6245 *-*-cygwin* ) 6246 lt_cv_to_host_file_cmd=func_convert_file_noop 6247 ;; 6248 * ) # otherwise, assume *nix 6249 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6250 ;; 6251 esac 6252 ;; 6253 * ) # unhandled hosts (and "normal" native builds) 6254 lt_cv_to_host_file_cmd=func_convert_file_noop 6255 ;; 6256esac 6257 ;; 6258esac 6259fi 6260 6261to_host_file_cmd=$lt_cv_to_host_file_cmd 6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6263printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6264 6265 6266 6267 6268 6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6270printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6271if test ${lt_cv_to_tool_file_cmd+y} 6272then : 6273 printf %s "(cached) " >&6 6274else case e in #( 6275 e) #assume ordinary cross tools, or native build. 6276lt_cv_to_tool_file_cmd=func_convert_file_noop 6277case $host in 6278 *-*-mingw* ) 6279 case $build in 6280 *-*-mingw* ) # actually msys 6281 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6282 ;; 6283 esac 6284 ;; 6285esac 6286 ;; 6287esac 6288fi 6289 6290to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6292printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6293 6294 6295 6296 6297 6298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6299printf %s "checking for $LD option to reload object files... " >&6; } 6300if test ${lt_cv_ld_reload_flag+y} 6301then : 6302 printf %s "(cached) " >&6 6303else case e in #( 6304 e) lt_cv_ld_reload_flag='-r' ;; 6305esac 6306fi 6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6308printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6309reload_flag=$lt_cv_ld_reload_flag 6310case $reload_flag in 6311"" | " "*) ;; 6312*) reload_flag=" $reload_flag" ;; 6313esac 6314reload_cmds='$LD$reload_flag -o $output$reload_objs' 6315case $host_os in 6316 cygwin* | mingw* | pw32* | cegcc*) 6317 if test yes != "$GCC"; then 6318 reload_cmds=false 6319 fi 6320 ;; 6321 darwin*) 6322 if test yes = "$GCC"; then 6323 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6324 else 6325 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6326 fi 6327 ;; 6328esac 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338if test -n "$ac_tool_prefix"; then 6339 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6340set dummy ${ac_tool_prefix}file; ac_word=$2 6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6342printf %s "checking for $ac_word... " >&6; } 6343if test ${ac_cv_prog_FILECMD+y} 6344then : 6345 printf %s "(cached) " >&6 6346else case e in #( 6347 e) if test -n "$FILECMD"; then 6348 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 case $as_dir in #((( 6355 '') as_dir=./ ;; 6356 */) ;; 6357 *) as_dir=$as_dir/ ;; 6358 esac 6359 for ac_exec_ext in '' $ac_executable_extensions; do 6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6361 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6363 break 2 6364 fi 6365done 6366 done 6367IFS=$as_save_IFS 6368 6369fi ;; 6370esac 6371fi 6372FILECMD=$ac_cv_prog_FILECMD 6373if test -n "$FILECMD"; then 6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6375printf "%s\n" "$FILECMD" >&6; } 6376else 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378printf "%s\n" "no" >&6; } 6379fi 6380 6381 6382fi 6383if test -z "$ac_cv_prog_FILECMD"; then 6384 ac_ct_FILECMD=$FILECMD 6385 # Extract the first word of "file", so it can be a program name with args. 6386set dummy file; ac_word=$2 6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6388printf %s "checking for $ac_word... " >&6; } 6389if test ${ac_cv_prog_ac_ct_FILECMD+y} 6390then : 6391 printf %s "(cached) " >&6 6392else case e in #( 6393 e) if test -n "$ac_ct_FILECMD"; then 6394 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6395else 6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397for as_dir in $PATH 6398do 6399 IFS=$as_save_IFS 6400 case $as_dir in #((( 6401 '') as_dir=./ ;; 6402 */) ;; 6403 *) as_dir=$as_dir/ ;; 6404 esac 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6407 ac_cv_prog_ac_ct_FILECMD="file" 6408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6409 break 2 6410 fi 6411done 6412 done 6413IFS=$as_save_IFS 6414 6415fi ;; 6416esac 6417fi 6418ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6419if test -n "$ac_ct_FILECMD"; then 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6421printf "%s\n" "$ac_ct_FILECMD" >&6; } 6422else 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424printf "%s\n" "no" >&6; } 6425fi 6426 6427 if test "x$ac_ct_FILECMD" = x; then 6428 FILECMD=":" 6429 else 6430 case $cross_compiling:$ac_tool_warned in 6431yes:) 6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6434ac_tool_warned=yes ;; 6435esac 6436 FILECMD=$ac_ct_FILECMD 6437 fi 6438else 6439 FILECMD="$ac_cv_prog_FILECMD" 6440fi 6441 6442 6443 6444 6445 6446 6447 6448if test -n "$ac_tool_prefix"; then 6449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6450set dummy ${ac_tool_prefix}objdump; ac_word=$2 6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6452printf %s "checking for $ac_word... " >&6; } 6453if test ${ac_cv_prog_OBJDUMP+y} 6454then : 6455 printf %s "(cached) " >&6 6456else case e in #( 6457 e) if test -n "$OBJDUMP"; then 6458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6459else 6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461for as_dir in $PATH 6462do 6463 IFS=$as_save_IFS 6464 case $as_dir in #((( 6465 '') as_dir=./ ;; 6466 */) ;; 6467 *) as_dir=$as_dir/ ;; 6468 esac 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479fi ;; 6480esac 6481fi 6482OBJDUMP=$ac_cv_prog_OBJDUMP 6483if test -n "$OBJDUMP"; then 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6485printf "%s\n" "$OBJDUMP" >&6; } 6486else 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488printf "%s\n" "no" >&6; } 6489fi 6490 6491 6492fi 6493if test -z "$ac_cv_prog_OBJDUMP"; then 6494 ac_ct_OBJDUMP=$OBJDUMP 6495 # Extract the first word of "objdump", so it can be a program name with args. 6496set dummy objdump; ac_word=$2 6497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6498printf %s "checking for $ac_word... " >&6; } 6499if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6500then : 6501 printf %s "(cached) " >&6 6502else case e in #( 6503 e) if test -n "$ac_ct_OBJDUMP"; then 6504 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6505else 6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6507for as_dir in $PATH 6508do 6509 IFS=$as_save_IFS 6510 case $as_dir in #((( 6511 '') as_dir=./ ;; 6512 */) ;; 6513 *) as_dir=$as_dir/ ;; 6514 esac 6515 for ac_exec_ext in '' $ac_executable_extensions; do 6516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6517 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6519 break 2 6520 fi 6521done 6522 done 6523IFS=$as_save_IFS 6524 6525fi ;; 6526esac 6527fi 6528ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6529if test -n "$ac_ct_OBJDUMP"; then 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6531printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6532else 6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6534printf "%s\n" "no" >&6; } 6535fi 6536 6537 if test "x$ac_ct_OBJDUMP" = x; then 6538 OBJDUMP="false" 6539 else 6540 case $cross_compiling:$ac_tool_warned in 6541yes:) 6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6544ac_tool_warned=yes ;; 6545esac 6546 OBJDUMP=$ac_ct_OBJDUMP 6547 fi 6548else 6549 OBJDUMP="$ac_cv_prog_OBJDUMP" 6550fi 6551 6552test -z "$OBJDUMP" && OBJDUMP=objdump 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6563printf %s "checking how to recognize dependent libraries... " >&6; } 6564if test ${lt_cv_deplibs_check_method+y} 6565then : 6566 printf %s "(cached) " >&6 6567else case e in #( 6568 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6569lt_cv_file_magic_test_file= 6570lt_cv_deplibs_check_method='unknown' 6571# Need to set the preceding variable on all platforms that support 6572# interlibrary dependencies. 6573# 'none' -- dependencies not supported. 6574# 'unknown' -- same as none, but documents that we really don't know. 6575# 'pass_all' -- all dependencies passed with no checks. 6576# 'test_compile' -- check by making test program. 6577# 'file_magic [[regex]]' -- check by looking for files in library path 6578# that responds to the $file_magic_cmd with a given extended regex. 6579# If you have 'file' or equivalent on your system and you're not sure 6580# whether 'pass_all' will *always* work, you probably want this one. 6581 6582case $host_os in 6583aix[4-9]*) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 6587beos*) 6588 lt_cv_deplibs_check_method=pass_all 6589 ;; 6590 6591bsdi[45]*) 6592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6593 lt_cv_file_magic_cmd='$FILECMD -L' 6594 lt_cv_file_magic_test_file=/shlib/libc.so 6595 ;; 6596 6597cygwin*) 6598 # func_win32_libid is a shell function defined in ltmain.sh 6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6600 lt_cv_file_magic_cmd='func_win32_libid' 6601 ;; 6602 6603mingw* | pw32*) 6604 # Base MSYS/MinGW do not provide the 'file' command needed by 6605 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6606 # unless we find 'file', for example because we are cross-compiling. 6607 if ( file / ) >/dev/null 2>&1; then 6608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6609 lt_cv_file_magic_cmd='func_win32_libid' 6610 else 6611 # Keep this pattern in sync with the one in func_win32_libid. 6612 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6613 lt_cv_file_magic_cmd='$OBJDUMP -f' 6614 fi 6615 ;; 6616 6617cegcc*) 6618 # use the weaker test based on 'objdump'. See mingw*. 6619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6620 lt_cv_file_magic_cmd='$OBJDUMP -f' 6621 ;; 6622 6623darwin* | rhapsody*) 6624 lt_cv_deplibs_check_method=pass_all 6625 ;; 6626 6627freebsd* | dragonfly* | midnightbsd*) 6628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6629 case $host_cpu in 6630 i*86 ) 6631 # Not sure whether the presence of OpenBSD here was a mistake. 6632 # Let's accept both of them until this is cleared up. 6633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6634 lt_cv_file_magic_cmd=$FILECMD 6635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6636 ;; 6637 esac 6638 else 6639 lt_cv_deplibs_check_method=pass_all 6640 fi 6641 ;; 6642 6643haiku*) 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 6647hpux10.20* | hpux11*) 6648 lt_cv_file_magic_cmd=$FILECMD 6649 case $host_cpu in 6650 ia64*) 6651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6653 ;; 6654 hppa*64*) 6655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6657 ;; 6658 *) 6659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6660 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6661 ;; 6662 esac 6663 ;; 6664 6665interix[3-9]*) 6666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6668 ;; 6669 6670irix5* | irix6* | nonstopux*) 6671 case $LD in 6672 *-32|*"-32 ") libmagic=32-bit;; 6673 *-n32|*"-n32 ") libmagic=N32;; 6674 *-64|*"-64 ") libmagic=64-bit;; 6675 *) libmagic=never-match;; 6676 esac 6677 lt_cv_deplibs_check_method=pass_all 6678 ;; 6679 6680# This must be glibc/ELF. 6681linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6682 lt_cv_deplibs_check_method=pass_all 6683 ;; 6684 6685netbsd*) 6686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6688 else 6689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6690 fi 6691 ;; 6692 6693newos6*) 6694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6695 lt_cv_file_magic_cmd=$FILECMD 6696 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6697 ;; 6698 6699*nto* | *qnx*) 6700 lt_cv_deplibs_check_method=pass_all 6701 ;; 6702 6703openbsd* | bitrig*) 6704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6706 else 6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6708 fi 6709 ;; 6710 6711osf3* | osf4* | osf5*) 6712 lt_cv_deplibs_check_method=pass_all 6713 ;; 6714 6715rdos*) 6716 lt_cv_deplibs_check_method=pass_all 6717 ;; 6718 6719solaris*) 6720 lt_cv_deplibs_check_method=pass_all 6721 ;; 6722 6723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6724 lt_cv_deplibs_check_method=pass_all 6725 ;; 6726 6727sysv4 | sysv4.3*) 6728 case $host_vendor in 6729 motorola) 6730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6732 ;; 6733 ncr) 6734 lt_cv_deplibs_check_method=pass_all 6735 ;; 6736 sequent) 6737 lt_cv_file_magic_cmd='/bin/file' 6738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6739 ;; 6740 sni) 6741 lt_cv_file_magic_cmd='/bin/file' 6742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6743 lt_cv_file_magic_test_file=/lib/libc.so 6744 ;; 6745 siemens) 6746 lt_cv_deplibs_check_method=pass_all 6747 ;; 6748 pc) 6749 lt_cv_deplibs_check_method=pass_all 6750 ;; 6751 esac 6752 ;; 6753 6754tpf*) 6755 lt_cv_deplibs_check_method=pass_all 6756 ;; 6757os2*) 6758 lt_cv_deplibs_check_method=pass_all 6759 ;; 6760esac 6761 ;; 6762esac 6763fi 6764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6765printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6766 6767file_magic_glob= 6768want_nocaseglob=no 6769if test "$build" = "$host"; then 6770 case $host_os in 6771 mingw* | pw32*) 6772 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6773 want_nocaseglob=yes 6774 else 6775 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6776 fi 6777 ;; 6778 esac 6779fi 6780 6781file_magic_cmd=$lt_cv_file_magic_cmd 6782deplibs_check_method=$lt_cv_deplibs_check_method 6783test -z "$deplibs_check_method" && deplibs_check_method=unknown 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806if test -n "$ac_tool_prefix"; then 6807 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6808set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810printf %s "checking for $ac_word... " >&6; } 6811if test ${ac_cv_prog_DLLTOOL+y} 6812then : 6813 printf %s "(cached) " >&6 6814else case e in #( 6815 e) if test -n "$DLLTOOL"; then 6816 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 case $as_dir in #((( 6823 '') as_dir=./ ;; 6824 */) ;; 6825 *) as_dir=$as_dir/ ;; 6826 esac 6827 for ac_exec_ext in '' $ac_executable_extensions; do 6828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6829 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6831 break 2 6832 fi 6833done 6834 done 6835IFS=$as_save_IFS 6836 6837fi ;; 6838esac 6839fi 6840DLLTOOL=$ac_cv_prog_DLLTOOL 6841if test -n "$DLLTOOL"; then 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6843printf "%s\n" "$DLLTOOL" >&6; } 6844else 6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6846printf "%s\n" "no" >&6; } 6847fi 6848 6849 6850fi 6851if test -z "$ac_cv_prog_DLLTOOL"; then 6852 ac_ct_DLLTOOL=$DLLTOOL 6853 # Extract the first word of "dlltool", so it can be a program name with args. 6854set dummy dlltool; ac_word=$2 6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856printf %s "checking for $ac_word... " >&6; } 6857if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6858then : 6859 printf %s "(cached) " >&6 6860else case e in #( 6861 e) if test -n "$ac_ct_DLLTOOL"; then 6862 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 case $as_dir in #((( 6869 '') as_dir=./ ;; 6870 */) ;; 6871 *) as_dir=$as_dir/ ;; 6872 esac 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6875 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879done 6880 done 6881IFS=$as_save_IFS 6882 6883fi ;; 6884esac 6885fi 6886ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6887if test -n "$ac_ct_DLLTOOL"; then 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6889printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6890else 6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892printf "%s\n" "no" >&6; } 6893fi 6894 6895 if test "x$ac_ct_DLLTOOL" = x; then 6896 DLLTOOL="false" 6897 else 6898 case $cross_compiling:$ac_tool_warned in 6899yes:) 6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6902ac_tool_warned=yes ;; 6903esac 6904 DLLTOOL=$ac_ct_DLLTOOL 6905 fi 6906else 6907 DLLTOOL="$ac_cv_prog_DLLTOOL" 6908fi 6909 6910test -z "$DLLTOOL" && DLLTOOL=dlltool 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6922printf %s "checking how to associate runtime and link libraries... " >&6; } 6923if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6924then : 6925 printf %s "(cached) " >&6 6926else case e in #( 6927 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6928 6929case $host_os in 6930cygwin* | mingw* | pw32* | cegcc*) 6931 # two different shell functions defined in ltmain.sh; 6932 # decide which one to use based on capabilities of $DLLTOOL 6933 case `$DLLTOOL --help 2>&1` in 6934 *--identify-strict*) 6935 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6936 ;; 6937 *) 6938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6939 ;; 6940 esac 6941 ;; 6942*) 6943 # fallback: assume linklib IS sharedlib 6944 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6945 ;; 6946esac 6947 ;; 6948esac 6949fi 6950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6951printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6952sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6953test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6954 6955 6956 6957 6958 6959 6960 6961if test -n "$ac_tool_prefix"; then 6962 for ac_prog in ar 6963 do 6964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6965set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6967printf %s "checking for $ac_word... " >&6; } 6968if test ${ac_cv_prog_AR+y} 6969then : 6970 printf %s "(cached) " >&6 6971else case e in #( 6972 e) if test -n "$AR"; then 6973 ac_cv_prog_AR="$AR" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 case $as_dir in #((( 6980 '') as_dir=./ ;; 6981 */) ;; 6982 *) as_dir=$as_dir/ ;; 6983 esac 6984 for ac_exec_ext in '' $ac_executable_extensions; do 6985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6988 break 2 6989 fi 6990done 6991 done 6992IFS=$as_save_IFS 6993 6994fi ;; 6995esac 6996fi 6997AR=$ac_cv_prog_AR 6998if test -n "$AR"; then 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7000printf "%s\n" "$AR" >&6; } 7001else 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7003printf "%s\n" "no" >&6; } 7004fi 7005 7006 7007 test -n "$AR" && break 7008 done 7009fi 7010if test -z "$AR"; then 7011 ac_ct_AR=$AR 7012 for ac_prog in ar 7013do 7014 # Extract the first word of "$ac_prog", so it can be a program name with args. 7015set dummy $ac_prog; ac_word=$2 7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7017printf %s "checking for $ac_word... " >&6; } 7018if test ${ac_cv_prog_ac_ct_AR+y} 7019then : 7020 printf %s "(cached) " >&6 7021else case e in #( 7022 e) if test -n "$ac_ct_AR"; then 7023 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7024else 7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026for as_dir in $PATH 7027do 7028 IFS=$as_save_IFS 7029 case $as_dir in #((( 7030 '') as_dir=./ ;; 7031 */) ;; 7032 *) as_dir=$as_dir/ ;; 7033 esac 7034 for ac_exec_ext in '' $ac_executable_extensions; do 7035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7036 ac_cv_prog_ac_ct_AR="$ac_prog" 7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7038 break 2 7039 fi 7040done 7041 done 7042IFS=$as_save_IFS 7043 7044fi ;; 7045esac 7046fi 7047ac_ct_AR=$ac_cv_prog_ac_ct_AR 7048if test -n "$ac_ct_AR"; then 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7050printf "%s\n" "$ac_ct_AR" >&6; } 7051else 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053printf "%s\n" "no" >&6; } 7054fi 7055 7056 7057 test -n "$ac_ct_AR" && break 7058done 7059 7060 if test "x$ac_ct_AR" = x; then 7061 AR="false" 7062 else 7063 case $cross_compiling:$ac_tool_warned in 7064yes:) 7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7066printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7067ac_tool_warned=yes ;; 7068esac 7069 AR=$ac_ct_AR 7070 fi 7071fi 7072 7073: ${AR=ar} 7074 7075 7076 7077 7078 7079 7080# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7081# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7082# higher priority because thats what people were doing historically (setting 7083# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7084# variable obsoleted/removed. 7085 7086test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7087lt_ar_flags=$AR_FLAGS 7088 7089 7090 7091 7092 7093 7094# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7095# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7096 7097 7098 7099 7100 7101 7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7103printf %s "checking for archiver @FILE support... " >&6; } 7104if test ${lt_cv_ar_at_file+y} 7105then : 7106 printf %s "(cached) " >&6 7107else case e in #( 7108 e) lt_cv_ar_at_file=no 7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110/* end confdefs.h. */ 7111 7112int 7113main (void) 7114{ 7115 7116 ; 7117 return 0; 7118} 7119_ACEOF 7120if ac_fn_c_try_compile "$LINENO" 7121then : 7122 echo conftest.$ac_objext > conftest.lst 7123 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7125 (eval $lt_ar_try) 2>&5 7126 ac_status=$? 7127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7128 test $ac_status = 0; } 7129 if test 0 -eq "$ac_status"; then 7130 # Ensure the archiver fails upon bogus file names. 7131 rm -f conftest.$ac_objext libconftest.a 7132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7133 (eval $lt_ar_try) 2>&5 7134 ac_status=$? 7135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7136 test $ac_status = 0; } 7137 if test 0 -ne "$ac_status"; then 7138 lt_cv_ar_at_file=@ 7139 fi 7140 fi 7141 rm -f conftest.* libconftest.a 7142 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7145 ;; 7146esac 7147fi 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7149printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7150 7151if test no = "$lt_cv_ar_at_file"; then 7152 archiver_list_spec= 7153else 7154 archiver_list_spec=$lt_cv_ar_at_file 7155fi 7156 7157 7158 7159 7160 7161 7162 7163if test -n "$ac_tool_prefix"; then 7164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7165set dummy ${ac_tool_prefix}strip; ac_word=$2 7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7167printf %s "checking for $ac_word... " >&6; } 7168if test ${ac_cv_prog_STRIP+y} 7169then : 7170 printf %s "(cached) " >&6 7171else case e in #( 7172 e) if test -n "$STRIP"; then 7173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7174else 7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7176for as_dir in $PATH 7177do 7178 IFS=$as_save_IFS 7179 case $as_dir in #((( 7180 '') as_dir=./ ;; 7181 */) ;; 7182 *) as_dir=$as_dir/ ;; 7183 esac 7184 for ac_exec_ext in '' $ac_executable_extensions; do 7185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7186 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7188 break 2 7189 fi 7190done 7191 done 7192IFS=$as_save_IFS 7193 7194fi ;; 7195esac 7196fi 7197STRIP=$ac_cv_prog_STRIP 7198if test -n "$STRIP"; then 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7200printf "%s\n" "$STRIP" >&6; } 7201else 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7203printf "%s\n" "no" >&6; } 7204fi 7205 7206 7207fi 7208if test -z "$ac_cv_prog_STRIP"; then 7209 ac_ct_STRIP=$STRIP 7210 # Extract the first word of "strip", so it can be a program name with args. 7211set dummy strip; ac_word=$2 7212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213printf %s "checking for $ac_word... " >&6; } 7214if test ${ac_cv_prog_ac_ct_STRIP+y} 7215then : 7216 printf %s "(cached) " >&6 7217else case e in #( 7218 e) if test -n "$ac_ct_STRIP"; then 7219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 case $as_dir in #((( 7226 '') as_dir=./ ;; 7227 */) ;; 7228 *) as_dir=$as_dir/ ;; 7229 esac 7230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7232 ac_cv_prog_ac_ct_STRIP="strip" 7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7234 break 2 7235 fi 7236done 7237 done 7238IFS=$as_save_IFS 7239 7240fi ;; 7241esac 7242fi 7243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7244if test -n "$ac_ct_STRIP"; then 7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7246printf "%s\n" "$ac_ct_STRIP" >&6; } 7247else 7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7249printf "%s\n" "no" >&6; } 7250fi 7251 7252 if test "x$ac_ct_STRIP" = x; then 7253 STRIP=":" 7254 else 7255 case $cross_compiling:$ac_tool_warned in 7256yes:) 7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7258printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7259ac_tool_warned=yes ;; 7260esac 7261 STRIP=$ac_ct_STRIP 7262 fi 7263else 7264 STRIP="$ac_cv_prog_STRIP" 7265fi 7266 7267test -z "$STRIP" && STRIP=: 7268 7269 7270 7271 7272 7273 7274if test -n "$ac_tool_prefix"; then 7275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7276set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7278printf %s "checking for $ac_word... " >&6; } 7279if test ${ac_cv_prog_RANLIB+y} 7280then : 7281 printf %s "(cached) " >&6 7282else case e in #( 7283 e) if test -n "$RANLIB"; then 7284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7285else 7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287for as_dir in $PATH 7288do 7289 IFS=$as_save_IFS 7290 case $as_dir in #((( 7291 '') as_dir=./ ;; 7292 */) ;; 7293 *) as_dir=$as_dir/ ;; 7294 esac 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi ;; 7306esac 7307fi 7308RANLIB=$ac_cv_prog_RANLIB 7309if test -n "$RANLIB"; then 7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7311printf "%s\n" "$RANLIB" >&6; } 7312else 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314printf "%s\n" "no" >&6; } 7315fi 7316 7317 7318fi 7319if test -z "$ac_cv_prog_RANLIB"; then 7320 ac_ct_RANLIB=$RANLIB 7321 # Extract the first word of "ranlib", so it can be a program name with args. 7322set dummy ranlib; ac_word=$2 7323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7324printf %s "checking for $ac_word... " >&6; } 7325if test ${ac_cv_prog_ac_ct_RANLIB+y} 7326then : 7327 printf %s "(cached) " >&6 7328else case e in #( 7329 e) if test -n "$ac_ct_RANLIB"; then 7330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7331else 7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7333for as_dir in $PATH 7334do 7335 IFS=$as_save_IFS 7336 case $as_dir in #((( 7337 '') as_dir=./ ;; 7338 */) ;; 7339 *) as_dir=$as_dir/ ;; 7340 esac 7341 for ac_exec_ext in '' $ac_executable_extensions; do 7342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7343 ac_cv_prog_ac_ct_RANLIB="ranlib" 7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7345 break 2 7346 fi 7347done 7348 done 7349IFS=$as_save_IFS 7350 7351fi ;; 7352esac 7353fi 7354ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7355if test -n "$ac_ct_RANLIB"; then 7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7357printf "%s\n" "$ac_ct_RANLIB" >&6; } 7358else 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360printf "%s\n" "no" >&6; } 7361fi 7362 7363 if test "x$ac_ct_RANLIB" = x; then 7364 RANLIB=":" 7365 else 7366 case $cross_compiling:$ac_tool_warned in 7367yes:) 7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7370ac_tool_warned=yes ;; 7371esac 7372 RANLIB=$ac_ct_RANLIB 7373 fi 7374else 7375 RANLIB="$ac_cv_prog_RANLIB" 7376fi 7377 7378test -z "$RANLIB" && RANLIB=: 7379 7380 7381 7382 7383 7384 7385# Determine commands to create old-style static archives. 7386old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7387old_postinstall_cmds='chmod 644 $oldlib' 7388old_postuninstall_cmds= 7389 7390if test -n "$RANLIB"; then 7391 case $host_os in 7392 bitrig* | openbsd*) 7393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7394 ;; 7395 *) 7396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7397 ;; 7398 esac 7399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7400fi 7401 7402case $host_os in 7403 darwin*) 7404 lock_old_archive_extraction=yes ;; 7405 *) 7406 lock_old_archive_extraction=no ;; 7407esac 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447# If no C compiler was specified, use CC. 7448LTCC=${LTCC-"$CC"} 7449 7450# If no C compiler flags were specified, use CFLAGS. 7451LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7452 7453# Allow CC to be a program name with arguments. 7454compiler=$CC 7455 7456 7457# Check for command to grab the raw symbol name followed by C symbol from nm. 7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7459printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7460if test ${lt_cv_sys_global_symbol_pipe+y} 7461then : 7462 printf %s "(cached) " >&6 7463else case e in #( 7464 e) 7465# These are sane defaults that work on at least a few old systems. 7466# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7467 7468# Character class describing NM global symbol codes. 7469symcode='[BCDEGRST]' 7470 7471# Regexp to match symbols that can be accessed directly from C. 7472sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7473 7474# Define system-specific variables. 7475case $host_os in 7476aix*) 7477 symcode='[BCDT]' 7478 ;; 7479cygwin* | mingw* | pw32* | cegcc*) 7480 symcode='[ABCDGISTW]' 7481 ;; 7482hpux*) 7483 if test ia64 = "$host_cpu"; then 7484 symcode='[ABCDEGRST]' 7485 fi 7486 ;; 7487irix* | nonstopux*) 7488 symcode='[BCDEGRST]' 7489 ;; 7490osf*) 7491 symcode='[BCDEGQRST]' 7492 ;; 7493solaris*) 7494 symcode='[BDRT]' 7495 ;; 7496sco3.2v5*) 7497 symcode='[DT]' 7498 ;; 7499sysv4.2uw2*) 7500 symcode='[DT]' 7501 ;; 7502sysv5* | sco5v6* | unixware* | OpenUNIX*) 7503 symcode='[ABDT]' 7504 ;; 7505sysv4) 7506 symcode='[DFNSTU]' 7507 ;; 7508esac 7509 7510# If we're using GNU nm, then use its standard symbol codes. 7511case `$NM -V 2>&1` in 7512*GNU* | *'with BFD'*) 7513 symcode='[ABCDGIRSTW]' ;; 7514esac 7515 7516if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7517 # Gets list of data symbols to import. 7518 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7519 # Adjust the below global symbol transforms to fixup imported variables. 7520 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7521 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7522 lt_c_name_lib_hook="\ 7523 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7524 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7525else 7526 # Disable hooks by default. 7527 lt_cv_sys_global_symbol_to_import= 7528 lt_cdecl_hook= 7529 lt_c_name_hook= 7530 lt_c_name_lib_hook= 7531fi 7532 7533# Transform an extracted symbol line into a proper C declaration. 7534# Some systems (esp. on ia64) link data and code symbols differently, 7535# so use this general approach. 7536lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7537$lt_cdecl_hook\ 7538" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7539" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7540 7541# Transform an extracted symbol line into symbol name and symbol address 7542lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7543$lt_c_name_hook\ 7544" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7545" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7546 7547# Transform an extracted symbol line into symbol name with lib prefix and 7548# symbol address. 7549lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7550$lt_c_name_lib_hook\ 7551" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7552" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7553" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7554 7555# Handle CRLF in mingw tool chain 7556opt_cr= 7557case $build_os in 7558mingw*) 7559 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7560 ;; 7561esac 7562 7563# Try without a prefix underscore, then with it. 7564for ac_symprfx in "" "_"; do 7565 7566 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7567 symxfrm="\\1 $ac_symprfx\\2 \\2" 7568 7569 # Write the raw and C identifiers. 7570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7571 # Fake it for dumpbin and say T for any non-static function, 7572 # D for any global variable and I for any imported variable. 7573 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7574 # which start with @ or ?. 7575 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7576" {last_section=section; section=\$ 3};"\ 7577" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7578" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7579" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7580" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7581" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7582" \$ 0!~/External *\|/{next};"\ 7583" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7584" {if(hide[section]) next};"\ 7585" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7586" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7587" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7588" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7589" ' prfx=^$ac_symprfx" 7590 else 7591 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7592 fi 7593 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7594 7595 # Check to see that the pipe works correctly. 7596 pipe_works=no 7597 7598 rm -f conftest* 7599 cat > conftest.$ac_ext <<_LT_EOF 7600#ifdef __cplusplus 7601extern "C" { 7602#endif 7603char nm_test_var; 7604void nm_test_func(void); 7605void nm_test_func(void){} 7606#ifdef __cplusplus 7607} 7608#endif 7609int main(){nm_test_var='a';nm_test_func();return(0);} 7610_LT_EOF 7611 7612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7613 (eval $ac_compile) 2>&5 7614 ac_status=$? 7615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7616 test $ac_status = 0; }; then 7617 # Now try to grab the symbols. 7618 nlist=conftest.nm 7619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7620 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7621 ac_status=$? 7622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7623 test $ac_status = 0; } && test -s "$nlist"; then 7624 # Try sorting and uniquifying the output. 7625 if sort "$nlist" | uniq > "$nlist"T; then 7626 mv -f "$nlist"T "$nlist" 7627 else 7628 rm -f "$nlist"T 7629 fi 7630 7631 # Make sure that we snagged all the symbols we need. 7632 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7633 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7634 cat <<_LT_EOF > conftest.$ac_ext 7635/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7636#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7637/* DATA imports from DLLs on WIN32 can't be const, because runtime 7638 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7639# define LT_DLSYM_CONST 7640#elif defined __osf__ 7641/* This system does not cope well with relocations in const data. */ 7642# define LT_DLSYM_CONST 7643#else 7644# define LT_DLSYM_CONST const 7645#endif 7646 7647#ifdef __cplusplus 7648extern "C" { 7649#endif 7650 7651_LT_EOF 7652 # Now generate the symbol file. 7653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7654 7655 cat <<_LT_EOF >> conftest.$ac_ext 7656 7657/* The mapping between symbol names and symbols. */ 7658LT_DLSYM_CONST struct { 7659 const char *name; 7660 void *address; 7661} 7662lt__PROGRAM__LTX_preloaded_symbols[] = 7663{ 7664 { "@PROGRAM@", (void *) 0 }, 7665_LT_EOF 7666 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7667 cat <<\_LT_EOF >> conftest.$ac_ext 7668 {0, (void *) 0} 7669}; 7670 7671/* This works around a problem in FreeBSD linker */ 7672#ifdef FREEBSD_WORKAROUND 7673static const void *lt_preloaded_setup() { 7674 return lt__PROGRAM__LTX_preloaded_symbols; 7675} 7676#endif 7677 7678#ifdef __cplusplus 7679} 7680#endif 7681_LT_EOF 7682 # Now try linking the two files. 7683 mv conftest.$ac_objext conftstm.$ac_objext 7684 lt_globsym_save_LIBS=$LIBS 7685 lt_globsym_save_CFLAGS=$CFLAGS 7686 LIBS=conftstm.$ac_objext 7687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7689 (eval $ac_link) 2>&5 7690 ac_status=$? 7691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7692 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7693 pipe_works=yes 7694 fi 7695 LIBS=$lt_globsym_save_LIBS 7696 CFLAGS=$lt_globsym_save_CFLAGS 7697 else 7698 echo "cannot find nm_test_func in $nlist" >&5 7699 fi 7700 else 7701 echo "cannot find nm_test_var in $nlist" >&5 7702 fi 7703 else 7704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7705 fi 7706 else 7707 echo "$progname: failed program was:" >&5 7708 cat conftest.$ac_ext >&5 7709 fi 7710 rm -rf conftest* conftst* 7711 7712 # Do not use the global_symbol_pipe unless it works. 7713 if test yes = "$pipe_works"; then 7714 break 7715 else 7716 lt_cv_sys_global_symbol_pipe= 7717 fi 7718done 7719 ;; 7720esac 7721fi 7722 7723if test -z "$lt_cv_sys_global_symbol_pipe"; then 7724 lt_cv_sys_global_symbol_to_cdecl= 7725fi 7726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7728printf "%s\n" "failed" >&6; } 7729else 7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7731printf "%s\n" "ok" >&6; } 7732fi 7733 7734# Response file support. 7735if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7736 nm_file_list_spec='@' 7737elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7738 nm_file_list_spec='@' 7739fi 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7778printf %s "checking for sysroot... " >&6; } 7779 7780# Check whether --with-sysroot was given. 7781if test ${with_sysroot+y} 7782then : 7783 withval=$with_sysroot; 7784else case e in #( 7785 e) with_sysroot=no ;; 7786esac 7787fi 7788 7789 7790lt_sysroot= 7791case $with_sysroot in #( 7792 yes) 7793 if test yes = "$GCC"; then 7794 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7795 fi 7796 ;; #( 7797 /*) 7798 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7799 ;; #( 7800 no|'') 7801 ;; #( 7802 *) 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7804printf "%s\n" "$with_sysroot" >&6; } 7805 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7806 ;; 7807esac 7808 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7810printf "%s\n" "${lt_sysroot:-no}" >&6; } 7811 7812 7813 7814 7815 7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7817printf %s "checking for a working dd... " >&6; } 7818if test ${ac_cv_path_lt_DD+y} 7819then : 7820 printf %s "(cached) " >&6 7821else case e in #( 7822 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7823cat conftest.i conftest.i >conftest2.i 7824: ${lt_DD:=$DD} 7825if test -z "$lt_DD"; then 7826 ac_path_lt_DD_found=false 7827 # Loop through the user's path and test for each of PROGNAME-LIST 7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 case $as_dir in #((( 7833 '') as_dir=./ ;; 7834 */) ;; 7835 *) as_dir=$as_dir/ ;; 7836 esac 7837 for ac_prog in dd 7838 do 7839 for ac_exec_ext in '' $ac_executable_extensions; do 7840 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7841 as_fn_executable_p "$ac_path_lt_DD" || continue 7842if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7843 cmp -s conftest.i conftest.out \ 7844 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7845fi 7846 $ac_path_lt_DD_found && break 3 7847 done 7848 done 7849 done 7850IFS=$as_save_IFS 7851 if test -z "$ac_cv_path_lt_DD"; then 7852 : 7853 fi 7854else 7855 ac_cv_path_lt_DD=$lt_DD 7856fi 7857 7858rm -f conftest.i conftest2.i conftest.out ;; 7859esac 7860fi 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7862printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7863 7864 7865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7866printf %s "checking how to truncate binary pipes... " >&6; } 7867if test ${lt_cv_truncate_bin+y} 7868then : 7869 printf %s "(cached) " >&6 7870else case e in #( 7871 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7872cat conftest.i conftest.i >conftest2.i 7873lt_cv_truncate_bin= 7874if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7875 cmp -s conftest.i conftest.out \ 7876 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7877fi 7878rm -f conftest.i conftest2.i conftest.out 7879test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7880esac 7881fi 7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7883printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7884 7885 7886 7887 7888 7889 7890 7891# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7892func_cc_basename () 7893{ 7894 for cc_temp in $*""; do 7895 case $cc_temp in 7896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7898 \-*) ;; 7899 *) break;; 7900 esac 7901 done 7902 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7903} 7904 7905# Check whether --enable-libtool-lock was given. 7906if test ${enable_libtool_lock+y} 7907then : 7908 enableval=$enable_libtool_lock; 7909fi 7910 7911test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7912 7913# Some flags need to be propagated to the compiler or linker for good 7914# libtool support. 7915case $host in 7916ia64-*-hpux*) 7917 # Find out what ABI is being produced by ac_compile, and set mode 7918 # options accordingly. 7919 echo 'int i;' > conftest.$ac_ext 7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7921 (eval $ac_compile) 2>&5 7922 ac_status=$? 7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7924 test $ac_status = 0; }; then 7925 case `$FILECMD conftest.$ac_objext` in 7926 *ELF-32*) 7927 HPUX_IA64_MODE=32 7928 ;; 7929 *ELF-64*) 7930 HPUX_IA64_MODE=64 7931 ;; 7932 esac 7933 fi 7934 rm -rf conftest* 7935 ;; 7936*-*-irix6*) 7937 # Find out what ABI is being produced by ac_compile, and set linker 7938 # options accordingly. 7939 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7941 (eval $ac_compile) 2>&5 7942 ac_status=$? 7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7944 test $ac_status = 0; }; then 7945 if test yes = "$lt_cv_prog_gnu_ld"; then 7946 case `$FILECMD conftest.$ac_objext` in 7947 *32-bit*) 7948 LD="${LD-ld} -melf32bsmip" 7949 ;; 7950 *N32*) 7951 LD="${LD-ld} -melf32bmipn32" 7952 ;; 7953 *64-bit*) 7954 LD="${LD-ld} -melf64bmip" 7955 ;; 7956 esac 7957 else 7958 case `$FILECMD conftest.$ac_objext` in 7959 *32-bit*) 7960 LD="${LD-ld} -32" 7961 ;; 7962 *N32*) 7963 LD="${LD-ld} -n32" 7964 ;; 7965 *64-bit*) 7966 LD="${LD-ld} -64" 7967 ;; 7968 esac 7969 fi 7970 fi 7971 rm -rf conftest* 7972 ;; 7973 7974mips64*-*linux*) 7975 # Find out what ABI is being produced by ac_compile, and set linker 7976 # options accordingly. 7977 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7979 (eval $ac_compile) 2>&5 7980 ac_status=$? 7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7982 test $ac_status = 0; }; then 7983 emul=elf 7984 case `$FILECMD conftest.$ac_objext` in 7985 *32-bit*) 7986 emul="${emul}32" 7987 ;; 7988 *64-bit*) 7989 emul="${emul}64" 7990 ;; 7991 esac 7992 case `$FILECMD conftest.$ac_objext` in 7993 *MSB*) 7994 emul="${emul}btsmip" 7995 ;; 7996 *LSB*) 7997 emul="${emul}ltsmip" 7998 ;; 7999 esac 8000 case `$FILECMD conftest.$ac_objext` in 8001 *N32*) 8002 emul="${emul}n32" 8003 ;; 8004 esac 8005 LD="${LD-ld} -m $emul" 8006 fi 8007 rm -rf conftest* 8008 ;; 8009 8010x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8011s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8012 # Find out what ABI is being produced by ac_compile, and set linker 8013 # options accordingly. Note that the listed cases only cover the 8014 # situations where additional linker options are needed (such as when 8015 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8016 # vice versa); the common cases where no linker options are needed do 8017 # not appear in the list. 8018 echo 'int i;' > conftest.$ac_ext 8019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8020 (eval $ac_compile) 2>&5 8021 ac_status=$? 8022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8023 test $ac_status = 0; }; then 8024 case `$FILECMD conftest.o` in 8025 *32-bit*) 8026 case $host in 8027 x86_64-*kfreebsd*-gnu) 8028 LD="${LD-ld} -m elf_i386_fbsd" 8029 ;; 8030 x86_64-*linux*) 8031 case `$FILECMD conftest.o` in 8032 *x86-64*) 8033 LD="${LD-ld} -m elf32_x86_64" 8034 ;; 8035 *) 8036 LD="${LD-ld} -m elf_i386" 8037 ;; 8038 esac 8039 ;; 8040 powerpc64le-*linux*) 8041 LD="${LD-ld} -m elf32lppclinux" 8042 ;; 8043 powerpc64-*linux*) 8044 LD="${LD-ld} -m elf32ppclinux" 8045 ;; 8046 s390x-*linux*) 8047 LD="${LD-ld} -m elf_s390" 8048 ;; 8049 sparc64-*linux*) 8050 LD="${LD-ld} -m elf32_sparc" 8051 ;; 8052 esac 8053 ;; 8054 *64-bit*) 8055 case $host in 8056 x86_64-*kfreebsd*-gnu) 8057 LD="${LD-ld} -m elf_x86_64_fbsd" 8058 ;; 8059 x86_64-*linux*) 8060 LD="${LD-ld} -m elf_x86_64" 8061 ;; 8062 powerpcle-*linux*) 8063 LD="${LD-ld} -m elf64lppc" 8064 ;; 8065 powerpc-*linux*) 8066 LD="${LD-ld} -m elf64ppc" 8067 ;; 8068 s390*-*linux*|s390*-*tpf*) 8069 LD="${LD-ld} -m elf64_s390" 8070 ;; 8071 sparc*-*linux*) 8072 LD="${LD-ld} -m elf64_sparc" 8073 ;; 8074 esac 8075 ;; 8076 esac 8077 fi 8078 rm -rf conftest* 8079 ;; 8080 8081*-*-sco3.2v5*) 8082 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8083 SAVE_CFLAGS=$CFLAGS 8084 CFLAGS="$CFLAGS -belf" 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8086printf %s "checking whether the C compiler needs -belf... " >&6; } 8087if test ${lt_cv_cc_needs_belf+y} 8088then : 8089 printf %s "(cached) " >&6 8090else case e in #( 8091 e) ac_ext=c 8092ac_cpp='$CPP $CPPFLAGS' 8093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8095ac_compiler_gnu=$ac_cv_c_compiler_gnu 8096 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099 8100int 8101main (void) 8102{ 8103 8104 ; 8105 return 0; 8106} 8107_ACEOF 8108if ac_fn_c_try_link "$LINENO" 8109then : 8110 lt_cv_cc_needs_belf=yes 8111else case e in #( 8112 e) lt_cv_cc_needs_belf=no ;; 8113esac 8114fi 8115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8116 conftest$ac_exeext conftest.$ac_ext 8117 ac_ext=c 8118ac_cpp='$CPP $CPPFLAGS' 8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8121ac_compiler_gnu=$ac_cv_c_compiler_gnu 8122 ;; 8123esac 8124fi 8125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8126printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8127 if test yes != "$lt_cv_cc_needs_belf"; then 8128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8129 CFLAGS=$SAVE_CFLAGS 8130 fi 8131 ;; 8132*-*solaris*) 8133 # Find out what ABI is being produced by ac_compile, and set linker 8134 # options accordingly. 8135 echo 'int i;' > conftest.$ac_ext 8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8137 (eval $ac_compile) 2>&5 8138 ac_status=$? 8139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8140 test $ac_status = 0; }; then 8141 case `$FILECMD conftest.o` in 8142 *64-bit*) 8143 case $lt_cv_prog_gnu_ld in 8144 yes*) 8145 case $host in 8146 i?86-*-solaris*|x86_64-*-solaris*) 8147 LD="${LD-ld} -m elf_x86_64" 8148 ;; 8149 sparc*-*-solaris*) 8150 LD="${LD-ld} -m elf64_sparc" 8151 ;; 8152 esac 8153 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8154 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8155 LD=${LD-ld}_sol2 8156 fi 8157 ;; 8158 *) 8159 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8160 LD="${LD-ld} -64" 8161 fi 8162 ;; 8163 esac 8164 ;; 8165 esac 8166 fi 8167 rm -rf conftest* 8168 ;; 8169esac 8170 8171need_locks=$enable_libtool_lock 8172 8173if test -n "$ac_tool_prefix"; then 8174 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8175set dummy ${ac_tool_prefix}mt; ac_word=$2 8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8177printf %s "checking for $ac_word... " >&6; } 8178if test ${ac_cv_prog_MANIFEST_TOOL+y} 8179then : 8180 printf %s "(cached) " >&6 8181else case e in #( 8182 e) if test -n "$MANIFEST_TOOL"; then 8183 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8184else 8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8186for as_dir in $PATH 8187do 8188 IFS=$as_save_IFS 8189 case $as_dir in #((( 8190 '') as_dir=./ ;; 8191 */) ;; 8192 *) as_dir=$as_dir/ ;; 8193 esac 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8196 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200done 8201 done 8202IFS=$as_save_IFS 8203 8204fi ;; 8205esac 8206fi 8207MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8208if test -n "$MANIFEST_TOOL"; then 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8210printf "%s\n" "$MANIFEST_TOOL" >&6; } 8211else 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8213printf "%s\n" "no" >&6; } 8214fi 8215 8216 8217fi 8218if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8219 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8220 # Extract the first word of "mt", so it can be a program name with args. 8221set dummy mt; ac_word=$2 8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8223printf %s "checking for $ac_word... " >&6; } 8224if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8225then : 8226 printf %s "(cached) " >&6 8227else case e in #( 8228 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8229 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8230else 8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8232for as_dir in $PATH 8233do 8234 IFS=$as_save_IFS 8235 case $as_dir in #((( 8236 '') as_dir=./ ;; 8237 */) ;; 8238 *) as_dir=$as_dir/ ;; 8239 esac 8240 for ac_exec_ext in '' $ac_executable_extensions; do 8241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8242 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8244 break 2 8245 fi 8246done 8247 done 8248IFS=$as_save_IFS 8249 8250fi ;; 8251esac 8252fi 8253ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8254if test -n "$ac_ct_MANIFEST_TOOL"; then 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8256printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8257else 8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8259printf "%s\n" "no" >&6; } 8260fi 8261 8262 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8263 MANIFEST_TOOL=":" 8264 else 8265 case $cross_compiling:$ac_tool_warned in 8266yes:) 8267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8269ac_tool_warned=yes ;; 8270esac 8271 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8272 fi 8273else 8274 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8275fi 8276 8277test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8279printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8280if test ${lt_cv_path_mainfest_tool+y} 8281then : 8282 printf %s "(cached) " >&6 8283else case e in #( 8284 e) lt_cv_path_mainfest_tool=no 8285 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8286 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8287 cat conftest.err >&5 8288 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8289 lt_cv_path_mainfest_tool=yes 8290 fi 8291 rm -f conftest* ;; 8292esac 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8295printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8296if test yes != "$lt_cv_path_mainfest_tool"; then 8297 MANIFEST_TOOL=: 8298fi 8299 8300 8301 8302 8303 8304 8305 case $host_os in 8306 rhapsody* | darwin*) 8307 if test -n "$ac_tool_prefix"; then 8308 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8309set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8311printf %s "checking for $ac_word... " >&6; } 8312if test ${ac_cv_prog_DSYMUTIL+y} 8313then : 8314 printf %s "(cached) " >&6 8315else case e in #( 8316 e) if test -n "$DSYMUTIL"; then 8317 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8318else 8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8320for as_dir in $PATH 8321do 8322 IFS=$as_save_IFS 8323 case $as_dir in #((( 8324 '') as_dir=./ ;; 8325 */) ;; 8326 *) as_dir=$as_dir/ ;; 8327 esac 8328 for ac_exec_ext in '' $ac_executable_extensions; do 8329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8332 break 2 8333 fi 8334done 8335 done 8336IFS=$as_save_IFS 8337 8338fi ;; 8339esac 8340fi 8341DSYMUTIL=$ac_cv_prog_DSYMUTIL 8342if test -n "$DSYMUTIL"; then 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8344printf "%s\n" "$DSYMUTIL" >&6; } 8345else 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8347printf "%s\n" "no" >&6; } 8348fi 8349 8350 8351fi 8352if test -z "$ac_cv_prog_DSYMUTIL"; then 8353 ac_ct_DSYMUTIL=$DSYMUTIL 8354 # Extract the first word of "dsymutil", so it can be a program name with args. 8355set dummy dsymutil; ac_word=$2 8356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8357printf %s "checking for $ac_word... " >&6; } 8358if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8359then : 8360 printf %s "(cached) " >&6 8361else case e in #( 8362 e) if test -n "$ac_ct_DSYMUTIL"; then 8363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8364else 8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8366for as_dir in $PATH 8367do 8368 IFS=$as_save_IFS 8369 case $as_dir in #((( 8370 '') as_dir=./ ;; 8371 */) ;; 8372 *) as_dir=$as_dir/ ;; 8373 esac 8374 for ac_exec_ext in '' $ac_executable_extensions; do 8375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8376 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8378 break 2 8379 fi 8380done 8381 done 8382IFS=$as_save_IFS 8383 8384fi ;; 8385esac 8386fi 8387ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8388if test -n "$ac_ct_DSYMUTIL"; then 8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8390printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8391else 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8393printf "%s\n" "no" >&6; } 8394fi 8395 8396 if test "x$ac_ct_DSYMUTIL" = x; then 8397 DSYMUTIL=":" 8398 else 8399 case $cross_compiling:$ac_tool_warned in 8400yes:) 8401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8402printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8403ac_tool_warned=yes ;; 8404esac 8405 DSYMUTIL=$ac_ct_DSYMUTIL 8406 fi 8407else 8408 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8409fi 8410 8411 if test -n "$ac_tool_prefix"; then 8412 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8413set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8415printf %s "checking for $ac_word... " >&6; } 8416if test ${ac_cv_prog_NMEDIT+y} 8417then : 8418 printf %s "(cached) " >&6 8419else case e in #( 8420 e) if test -n "$NMEDIT"; then 8421 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8422else 8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8424for as_dir in $PATH 8425do 8426 IFS=$as_save_IFS 8427 case $as_dir in #((( 8428 '') as_dir=./ ;; 8429 */) ;; 8430 *) as_dir=$as_dir/ ;; 8431 esac 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8434 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8436 break 2 8437 fi 8438done 8439 done 8440IFS=$as_save_IFS 8441 8442fi ;; 8443esac 8444fi 8445NMEDIT=$ac_cv_prog_NMEDIT 8446if test -n "$NMEDIT"; then 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8448printf "%s\n" "$NMEDIT" >&6; } 8449else 8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451printf "%s\n" "no" >&6; } 8452fi 8453 8454 8455fi 8456if test -z "$ac_cv_prog_NMEDIT"; then 8457 ac_ct_NMEDIT=$NMEDIT 8458 # Extract the first word of "nmedit", so it can be a program name with args. 8459set dummy nmedit; ac_word=$2 8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8461printf %s "checking for $ac_word... " >&6; } 8462if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8463then : 8464 printf %s "(cached) " >&6 8465else case e in #( 8466 e) if test -n "$ac_ct_NMEDIT"; then 8467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8468else 8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8470for as_dir in $PATH 8471do 8472 IFS=$as_save_IFS 8473 case $as_dir in #((( 8474 '') as_dir=./ ;; 8475 */) ;; 8476 *) as_dir=$as_dir/ ;; 8477 esac 8478 for ac_exec_ext in '' $ac_executable_extensions; do 8479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8480 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8482 break 2 8483 fi 8484done 8485 done 8486IFS=$as_save_IFS 8487 8488fi ;; 8489esac 8490fi 8491ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8492if test -n "$ac_ct_NMEDIT"; then 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8494printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8495else 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497printf "%s\n" "no" >&6; } 8498fi 8499 8500 if test "x$ac_ct_NMEDIT" = x; then 8501 NMEDIT=":" 8502 else 8503 case $cross_compiling:$ac_tool_warned in 8504yes:) 8505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8507ac_tool_warned=yes ;; 8508esac 8509 NMEDIT=$ac_ct_NMEDIT 8510 fi 8511else 8512 NMEDIT="$ac_cv_prog_NMEDIT" 8513fi 8514 8515 if test -n "$ac_tool_prefix"; then 8516 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8517set dummy ${ac_tool_prefix}lipo; ac_word=$2 8518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8519printf %s "checking for $ac_word... " >&6; } 8520if test ${ac_cv_prog_LIPO+y} 8521then : 8522 printf %s "(cached) " >&6 8523else case e in #( 8524 e) if test -n "$LIPO"; then 8525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8526else 8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8528for as_dir in $PATH 8529do 8530 IFS=$as_save_IFS 8531 case $as_dir in #((( 8532 '') as_dir=./ ;; 8533 */) ;; 8534 *) as_dir=$as_dir/ ;; 8535 esac 8536 for ac_exec_ext in '' $ac_executable_extensions; do 8537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8540 break 2 8541 fi 8542done 8543 done 8544IFS=$as_save_IFS 8545 8546fi ;; 8547esac 8548fi 8549LIPO=$ac_cv_prog_LIPO 8550if test -n "$LIPO"; then 8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8552printf "%s\n" "$LIPO" >&6; } 8553else 8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8555printf "%s\n" "no" >&6; } 8556fi 8557 8558 8559fi 8560if test -z "$ac_cv_prog_LIPO"; then 8561 ac_ct_LIPO=$LIPO 8562 # Extract the first word of "lipo", so it can be a program name with args. 8563set dummy lipo; ac_word=$2 8564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8565printf %s "checking for $ac_word... " >&6; } 8566if test ${ac_cv_prog_ac_ct_LIPO+y} 8567then : 8568 printf %s "(cached) " >&6 8569else case e in #( 8570 e) if test -n "$ac_ct_LIPO"; then 8571 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8572else 8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8574for as_dir in $PATH 8575do 8576 IFS=$as_save_IFS 8577 case $as_dir in #((( 8578 '') as_dir=./ ;; 8579 */) ;; 8580 *) as_dir=$as_dir/ ;; 8581 esac 8582 for ac_exec_ext in '' $ac_executable_extensions; do 8583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8584 ac_cv_prog_ac_ct_LIPO="lipo" 8585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8586 break 2 8587 fi 8588done 8589 done 8590IFS=$as_save_IFS 8591 8592fi ;; 8593esac 8594fi 8595ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8596if test -n "$ac_ct_LIPO"; then 8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8598printf "%s\n" "$ac_ct_LIPO" >&6; } 8599else 8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601printf "%s\n" "no" >&6; } 8602fi 8603 8604 if test "x$ac_ct_LIPO" = x; then 8605 LIPO=":" 8606 else 8607 case $cross_compiling:$ac_tool_warned in 8608yes:) 8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8610printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8611ac_tool_warned=yes ;; 8612esac 8613 LIPO=$ac_ct_LIPO 8614 fi 8615else 8616 LIPO="$ac_cv_prog_LIPO" 8617fi 8618 8619 if test -n "$ac_tool_prefix"; then 8620 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8621set dummy ${ac_tool_prefix}otool; ac_word=$2 8622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8623printf %s "checking for $ac_word... " >&6; } 8624if test ${ac_cv_prog_OTOOL+y} 8625then : 8626 printf %s "(cached) " >&6 8627else case e in #( 8628 e) if test -n "$OTOOL"; then 8629 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8630else 8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8632for as_dir in $PATH 8633do 8634 IFS=$as_save_IFS 8635 case $as_dir in #((( 8636 '') as_dir=./ ;; 8637 */) ;; 8638 *) as_dir=$as_dir/ ;; 8639 esac 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647 done 8648IFS=$as_save_IFS 8649 8650fi ;; 8651esac 8652fi 8653OTOOL=$ac_cv_prog_OTOOL 8654if test -n "$OTOOL"; then 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8656printf "%s\n" "$OTOOL" >&6; } 8657else 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659printf "%s\n" "no" >&6; } 8660fi 8661 8662 8663fi 8664if test -z "$ac_cv_prog_OTOOL"; then 8665 ac_ct_OTOOL=$OTOOL 8666 # Extract the first word of "otool", so it can be a program name with args. 8667set dummy otool; ac_word=$2 8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8669printf %s "checking for $ac_word... " >&6; } 8670if test ${ac_cv_prog_ac_ct_OTOOL+y} 8671then : 8672 printf %s "(cached) " >&6 8673else case e in #( 8674 e) if test -n "$ac_ct_OTOOL"; then 8675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8676else 8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678for as_dir in $PATH 8679do 8680 IFS=$as_save_IFS 8681 case $as_dir in #((( 8682 '') as_dir=./ ;; 8683 */) ;; 8684 *) as_dir=$as_dir/ ;; 8685 esac 8686 for ac_exec_ext in '' $ac_executable_extensions; do 8687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8688 ac_cv_prog_ac_ct_OTOOL="otool" 8689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8690 break 2 8691 fi 8692done 8693 done 8694IFS=$as_save_IFS 8695 8696fi ;; 8697esac 8698fi 8699ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8700if test -n "$ac_ct_OTOOL"; then 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8702printf "%s\n" "$ac_ct_OTOOL" >&6; } 8703else 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8705printf "%s\n" "no" >&6; } 8706fi 8707 8708 if test "x$ac_ct_OTOOL" = x; then 8709 OTOOL=":" 8710 else 8711 case $cross_compiling:$ac_tool_warned in 8712yes:) 8713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8714printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8715ac_tool_warned=yes ;; 8716esac 8717 OTOOL=$ac_ct_OTOOL 8718 fi 8719else 8720 OTOOL="$ac_cv_prog_OTOOL" 8721fi 8722 8723 if test -n "$ac_tool_prefix"; then 8724 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8725set dummy ${ac_tool_prefix}otool64; ac_word=$2 8726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8727printf %s "checking for $ac_word... " >&6; } 8728if test ${ac_cv_prog_OTOOL64+y} 8729then : 8730 printf %s "(cached) " >&6 8731else case e in #( 8732 e) if test -n "$OTOOL64"; then 8733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8734else 8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8736for as_dir in $PATH 8737do 8738 IFS=$as_save_IFS 8739 case $as_dir in #((( 8740 '') as_dir=./ ;; 8741 */) ;; 8742 *) as_dir=$as_dir/ ;; 8743 esac 8744 for ac_exec_ext in '' $ac_executable_extensions; do 8745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8746 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8748 break 2 8749 fi 8750done 8751 done 8752IFS=$as_save_IFS 8753 8754fi ;; 8755esac 8756fi 8757OTOOL64=$ac_cv_prog_OTOOL64 8758if test -n "$OTOOL64"; then 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8760printf "%s\n" "$OTOOL64" >&6; } 8761else 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8763printf "%s\n" "no" >&6; } 8764fi 8765 8766 8767fi 8768if test -z "$ac_cv_prog_OTOOL64"; then 8769 ac_ct_OTOOL64=$OTOOL64 8770 # Extract the first word of "otool64", so it can be a program name with args. 8771set dummy otool64; ac_word=$2 8772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8773printf %s "checking for $ac_word... " >&6; } 8774if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8775then : 8776 printf %s "(cached) " >&6 8777else case e in #( 8778 e) if test -n "$ac_ct_OTOOL64"; then 8779 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8780else 8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8782for as_dir in $PATH 8783do 8784 IFS=$as_save_IFS 8785 case $as_dir in #((( 8786 '') as_dir=./ ;; 8787 */) ;; 8788 *) as_dir=$as_dir/ ;; 8789 esac 8790 for ac_exec_ext in '' $ac_executable_extensions; do 8791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8792 ac_cv_prog_ac_ct_OTOOL64="otool64" 8793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8794 break 2 8795 fi 8796done 8797 done 8798IFS=$as_save_IFS 8799 8800fi ;; 8801esac 8802fi 8803ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8804if test -n "$ac_ct_OTOOL64"; then 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8806printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8807else 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8809printf "%s\n" "no" >&6; } 8810fi 8811 8812 if test "x$ac_ct_OTOOL64" = x; then 8813 OTOOL64=":" 8814 else 8815 case $cross_compiling:$ac_tool_warned in 8816yes:) 8817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8819ac_tool_warned=yes ;; 8820esac 8821 OTOOL64=$ac_ct_OTOOL64 8822 fi 8823else 8824 OTOOL64="$ac_cv_prog_OTOOL64" 8825fi 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8854printf %s "checking for -single_module linker flag... " >&6; } 8855if test ${lt_cv_apple_cc_single_mod+y} 8856then : 8857 printf %s "(cached) " >&6 8858else case e in #( 8859 e) lt_cv_apple_cc_single_mod=no 8860 if test -z "$LT_MULTI_MODULE"; then 8861 # By default we will add the -single_module flag. You can override 8862 # by either setting the environment variable LT_MULTI_MODULE 8863 # non-empty at configure time, or by adding -multi_module to the 8864 # link flags. 8865 rm -rf libconftest.dylib* 8866 echo "int foo(void){return 1;}" > conftest.c 8867 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8868-dynamiclib -Wl,-single_module conftest.c" >&5 8869 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8870 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8871 _lt_result=$? 8872 # If there is a non-empty error log, and "single_module" 8873 # appears in it, assume the flag caused a linker warning 8874 if test -s conftest.err && $GREP single_module conftest.err; then 8875 cat conftest.err >&5 8876 # Otherwise, if the output was created with a 0 exit code from 8877 # the compiler, it worked. 8878 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8879 lt_cv_apple_cc_single_mod=yes 8880 else 8881 cat conftest.err >&5 8882 fi 8883 rm -rf libconftest.dylib* 8884 rm -f conftest.* 8885 fi ;; 8886esac 8887fi 8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8889printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8890 8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8892printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8893if test ${lt_cv_ld_exported_symbols_list+y} 8894then : 8895 printf %s "(cached) " >&6 8896else case e in #( 8897 e) lt_cv_ld_exported_symbols_list=no 8898 save_LDFLAGS=$LDFLAGS 8899 echo "_main" > conftest.sym 8900 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903 8904int 8905main (void) 8906{ 8907 8908 ; 8909 return 0; 8910} 8911_ACEOF 8912if ac_fn_c_try_link "$LINENO" 8913then : 8914 lt_cv_ld_exported_symbols_list=yes 8915else case e in #( 8916 e) lt_cv_ld_exported_symbols_list=no ;; 8917esac 8918fi 8919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8920 conftest$ac_exeext conftest.$ac_ext 8921 LDFLAGS=$save_LDFLAGS 8922 ;; 8923esac 8924fi 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8926printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8927 8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8929printf %s "checking for -force_load linker flag... " >&6; } 8930if test ${lt_cv_ld_force_load+y} 8931then : 8932 printf %s "(cached) " >&6 8933else case e in #( 8934 e) lt_cv_ld_force_load=no 8935 cat > conftest.c << _LT_EOF 8936int forced_loaded() { return 2;} 8937_LT_EOF 8938 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8939 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8940 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8941 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8942 echo "$RANLIB libconftest.a" >&5 8943 $RANLIB libconftest.a 2>&5 8944 cat > conftest.c << _LT_EOF 8945int main() { return 0;} 8946_LT_EOF 8947 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8948 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8949 _lt_result=$? 8950 if test -s conftest.err && $GREP force_load conftest.err; then 8951 cat conftest.err >&5 8952 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8953 lt_cv_ld_force_load=yes 8954 else 8955 cat conftest.err >&5 8956 fi 8957 rm -f conftest.err libconftest.a conftest conftest.c 8958 rm -rf conftest.dSYM 8959 ;; 8960esac 8961fi 8962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8963printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8964 case $host_os in 8965 rhapsody* | darwin1.[012]) 8966 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8967 darwin1.*) 8968 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8969 darwin*) 8970 case $MACOSX_DEPLOYMENT_TARGET,$host in 8971 10.[012],*|,*powerpc*-darwin[5-8]*) 8972 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8973 *) 8974 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8975 esac 8976 ;; 8977 esac 8978 if test yes = "$lt_cv_apple_cc_single_mod"; then 8979 _lt_dar_single_mod='$single_module' 8980 fi 8981 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8982 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8983 else 8984 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8985 fi 8986 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8987 _lt_dsymutil='~$DSYMUTIL $lib || :' 8988 else 8989 _lt_dsymutil= 8990 fi 8991 ;; 8992 esac 8993 8994# func_munge_path_list VARIABLE PATH 8995# ----------------------------------- 8996# VARIABLE is name of variable containing _space_ separated list of 8997# directories to be munged by the contents of PATH, which is string 8998# having a format: 8999# "DIR[:DIR]:" 9000# string "DIR[ DIR]" will be prepended to VARIABLE 9001# ":DIR[:DIR]" 9002# string "DIR[ DIR]" will be appended to VARIABLE 9003# "DIRP[:DIRP]::[DIRA:]DIRA" 9004# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9005# "DIRA[ DIRA]" will be appended to VARIABLE 9006# "DIR[:DIR]" 9007# VARIABLE will be replaced by "DIR[ DIR]" 9008func_munge_path_list () 9009{ 9010 case x$2 in 9011 x) 9012 ;; 9013 *:) 9014 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9015 ;; 9016 x:*) 9017 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9018 ;; 9019 *::*) 9020 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9021 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9022 ;; 9023 *) 9024 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9025 ;; 9026 esac 9027} 9028 9029ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9030" 9031if test "x$ac_cv_header_dlfcn_h" = xyes 9032then : 9033 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9034 9035fi 9036 9037 9038 9039 9040 9041# Set options 9042# Check whether --enable-static was given. 9043if test ${enable_static+y} 9044then : 9045 enableval=$enable_static; p=${PACKAGE-default} 9046 case $enableval in 9047 yes) enable_static=yes ;; 9048 no) enable_static=no ;; 9049 *) 9050 enable_static=no 9051 # Look at the argument we got. We use all the common list separators. 9052 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9053 for pkg in $enableval; do 9054 IFS=$lt_save_ifs 9055 if test "X$pkg" = "X$p"; then 9056 enable_static=yes 9057 fi 9058 done 9059 IFS=$lt_save_ifs 9060 ;; 9061 esac 9062else case e in #( 9063 e) enable_static=no ;; 9064esac 9065fi 9066 9067 9068 9069 9070 9071 9072 9073enable_dlopen=yes 9074 9075 9076 9077 9078 enable_win32_dll=no 9079 9080 9081 # Check whether --enable-shared was given. 9082if test ${enable_shared+y} 9083then : 9084 enableval=$enable_shared; p=${PACKAGE-default} 9085 case $enableval in 9086 yes) enable_shared=yes ;; 9087 no) enable_shared=no ;; 9088 *) 9089 enable_shared=no 9090 # Look at the argument we got. We use all the common list separators. 9091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9092 for pkg in $enableval; do 9093 IFS=$lt_save_ifs 9094 if test "X$pkg" = "X$p"; then 9095 enable_shared=yes 9096 fi 9097 done 9098 IFS=$lt_save_ifs 9099 ;; 9100 esac 9101else case e in #( 9102 e) enable_shared=yes ;; 9103esac 9104fi 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116# Check whether --with-pic was given. 9117if test ${with_pic+y} 9118then : 9119 withval=$with_pic; lt_p=${PACKAGE-default} 9120 case $withval in 9121 yes|no) pic_mode=$withval ;; 9122 *) 9123 pic_mode=default 9124 # Look at the argument we got. We use all the common list separators. 9125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9126 for lt_pkg in $withval; do 9127 IFS=$lt_save_ifs 9128 if test "X$lt_pkg" = "X$lt_p"; then 9129 pic_mode=yes 9130 fi 9131 done 9132 IFS=$lt_save_ifs 9133 ;; 9134 esac 9135else case e in #( 9136 e) pic_mode=default ;; 9137esac 9138fi 9139 9140 9141 9142 9143 9144 9145 9146 9147 # Check whether --enable-fast-install was given. 9148if test ${enable_fast_install+y} 9149then : 9150 enableval=$enable_fast_install; p=${PACKAGE-default} 9151 case $enableval in 9152 yes) enable_fast_install=yes ;; 9153 no) enable_fast_install=no ;; 9154 *) 9155 enable_fast_install=no 9156 # Look at the argument we got. We use all the common list separators. 9157 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9158 for pkg in $enableval; do 9159 IFS=$lt_save_ifs 9160 if test "X$pkg" = "X$p"; then 9161 enable_fast_install=yes 9162 fi 9163 done 9164 IFS=$lt_save_ifs 9165 ;; 9166 esac 9167else case e in #( 9168 e) enable_fast_install=yes ;; 9169esac 9170fi 9171 9172 9173 9174 9175 9176 9177 9178 9179 shared_archive_member_spec= 9180case $host,$enable_shared in 9181power*-*-aix[5-9]*,yes) 9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9183printf %s "checking which variant of shared library versioning to provide... " >&6; } 9184 9185# Check whether --with-aix-soname was given. 9186if test ${with_aix_soname+y} 9187then : 9188 withval=$with_aix_soname; case $withval in 9189 aix|svr4|both) 9190 ;; 9191 *) 9192 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9193 ;; 9194 esac 9195 lt_cv_with_aix_soname=$with_aix_soname 9196else case e in #( 9197 e) if test ${lt_cv_with_aix_soname+y} 9198then : 9199 printf %s "(cached) " >&6 9200else case e in #( 9201 e) lt_cv_with_aix_soname=aix ;; 9202esac 9203fi 9204 9205 with_aix_soname=$lt_cv_with_aix_soname ;; 9206esac 9207fi 9208 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9210printf "%s\n" "$with_aix_soname" >&6; } 9211 if test aix != "$with_aix_soname"; then 9212 # For the AIX way of multilib, we name the shared archive member 9213 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9214 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9215 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9216 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9217 if test 64 = "${OBJECT_MODE-32}"; then 9218 shared_archive_member_spec=shr_64 9219 else 9220 shared_archive_member_spec=shr 9221 fi 9222 fi 9223 ;; 9224*) 9225 with_aix_soname=aix 9226 ;; 9227esac 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238# This can be used to rebuild libtool when needed 9239LIBTOOL_DEPS=$ltmain 9240 9241# Always use our own libtool. 9242LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273test -z "$LN_S" && LN_S="ln -s" 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288if test -n "${ZSH_VERSION+set}"; then 9289 setopt NO_GLOB_SUBST 9290fi 9291 9292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9293printf %s "checking for objdir... " >&6; } 9294if test ${lt_cv_objdir+y} 9295then : 9296 printf %s "(cached) " >&6 9297else case e in #( 9298 e) rm -f .libs 2>/dev/null 9299mkdir .libs 2>/dev/null 9300if test -d .libs; then 9301 lt_cv_objdir=.libs 9302else 9303 # MS-DOS does not allow filenames that begin with a dot. 9304 lt_cv_objdir=_libs 9305fi 9306rmdir .libs 2>/dev/null ;; 9307esac 9308fi 9309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9310printf "%s\n" "$lt_cv_objdir" >&6; } 9311objdir=$lt_cv_objdir 9312 9313 9314 9315 9316 9317printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9318 9319 9320 9321 9322case $host_os in 9323aix3*) 9324 # AIX sometimes has problems with the GCC collect2 program. For some 9325 # reason, if we set the COLLECT_NAMES environment variable, the problems 9326 # vanish in a puff of smoke. 9327 if test set != "${COLLECT_NAMES+set}"; then 9328 COLLECT_NAMES= 9329 export COLLECT_NAMES 9330 fi 9331 ;; 9332esac 9333 9334# Global variables: 9335ofile=libtool 9336can_build_shared=yes 9337 9338# All known linkers require a '.a' archive for static linking (except MSVC and 9339# ICC, which need '.lib'). 9340libext=a 9341 9342with_gnu_ld=$lt_cv_prog_gnu_ld 9343 9344old_CC=$CC 9345old_CFLAGS=$CFLAGS 9346 9347# Set sane defaults for various variables 9348test -z "$CC" && CC=cc 9349test -z "$LTCC" && LTCC=$CC 9350test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9351test -z "$LD" && LD=ld 9352test -z "$ac_objext" && ac_objext=o 9353 9354func_cc_basename $compiler 9355cc_basename=$func_cc_basename_result 9356 9357 9358# Only perform the check for file, if the check method requires it 9359test -z "$MAGIC_CMD" && MAGIC_CMD=file 9360case $deplibs_check_method in 9361file_magic*) 9362 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9364printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9365if test ${lt_cv_path_MAGIC_CMD+y} 9366then : 9367 printf %s "(cached) " >&6 9368else case e in #( 9369 e) case $MAGIC_CMD in 9370[\\/*] | ?:[\\/]*) 9371 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9372 ;; 9373*) 9374 lt_save_MAGIC_CMD=$MAGIC_CMD 9375 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9377 for ac_dir in $ac_dummy; do 9378 IFS=$lt_save_ifs 9379 test -z "$ac_dir" && ac_dir=. 9380 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9381 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9382 if test -n "$file_magic_test_file"; then 9383 case $deplibs_check_method in 9384 "file_magic "*) 9385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9386 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9388 $EGREP "$file_magic_regex" > /dev/null; then 9389 : 9390 else 9391 cat <<_LT_EOF 1>&2 9392 9393*** Warning: the command libtool uses to detect shared libraries, 9394*** $file_magic_cmd, produces output that libtool cannot recognize. 9395*** The result is that libtool may fail to recognize shared libraries 9396*** as such. This will affect the creation of libtool libraries that 9397*** depend on shared libraries, but programs linked with such libtool 9398*** libraries will work regardless of this problem. Nevertheless, you 9399*** may want to report the problem to your system manager and/or to 9400*** bug-libtool@gnu.org 9401 9402_LT_EOF 9403 fi ;; 9404 esac 9405 fi 9406 break 9407 fi 9408 done 9409 IFS=$lt_save_ifs 9410 MAGIC_CMD=$lt_save_MAGIC_CMD 9411 ;; 9412esac ;; 9413esac 9414fi 9415 9416MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9417if test -n "$MAGIC_CMD"; then 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9419printf "%s\n" "$MAGIC_CMD" >&6; } 9420else 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9422printf "%s\n" "no" >&6; } 9423fi 9424 9425 9426 9427 9428 9429if test -z "$lt_cv_path_MAGIC_CMD"; then 9430 if test -n "$ac_tool_prefix"; then 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9432printf %s "checking for file... " >&6; } 9433if test ${lt_cv_path_MAGIC_CMD+y} 9434then : 9435 printf %s "(cached) " >&6 9436else case e in #( 9437 e) case $MAGIC_CMD in 9438[\\/*] | ?:[\\/]*) 9439 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9440 ;; 9441*) 9442 lt_save_MAGIC_CMD=$MAGIC_CMD 9443 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9445 for ac_dir in $ac_dummy; do 9446 IFS=$lt_save_ifs 9447 test -z "$ac_dir" && ac_dir=. 9448 if test -f "$ac_dir/file"; then 9449 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9450 if test -n "$file_magic_test_file"; then 9451 case $deplibs_check_method in 9452 "file_magic "*) 9453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9454 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9456 $EGREP "$file_magic_regex" > /dev/null; then 9457 : 9458 else 9459 cat <<_LT_EOF 1>&2 9460 9461*** Warning: the command libtool uses to detect shared libraries, 9462*** $file_magic_cmd, produces output that libtool cannot recognize. 9463*** The result is that libtool may fail to recognize shared libraries 9464*** as such. This will affect the creation of libtool libraries that 9465*** depend on shared libraries, but programs linked with such libtool 9466*** libraries will work regardless of this problem. Nevertheless, you 9467*** may want to report the problem to your system manager and/or to 9468*** bug-libtool@gnu.org 9469 9470_LT_EOF 9471 fi ;; 9472 esac 9473 fi 9474 break 9475 fi 9476 done 9477 IFS=$lt_save_ifs 9478 MAGIC_CMD=$lt_save_MAGIC_CMD 9479 ;; 9480esac ;; 9481esac 9482fi 9483 9484MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9485if test -n "$MAGIC_CMD"; then 9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9487printf "%s\n" "$MAGIC_CMD" >&6; } 9488else 9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9490printf "%s\n" "no" >&6; } 9491fi 9492 9493 9494 else 9495 MAGIC_CMD=: 9496 fi 9497fi 9498 9499 fi 9500 ;; 9501esac 9502 9503# Use C for the default configuration in the libtool script 9504 9505lt_save_CC=$CC 9506ac_ext=c 9507ac_cpp='$CPP $CPPFLAGS' 9508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9510ac_compiler_gnu=$ac_cv_c_compiler_gnu 9511 9512 9513# Source file extension for C test sources. 9514ac_ext=c 9515 9516# Object file extension for compiled C test sources. 9517objext=o 9518objext=$objext 9519 9520# Code to be used in simple compile tests 9521lt_simple_compile_test_code="int some_variable = 0;" 9522 9523# Code to be used in simple link tests 9524lt_simple_link_test_code='int main(){return(0);}' 9525 9526 9527 9528 9529 9530 9531 9532# If no C compiler was specified, use CC. 9533LTCC=${LTCC-"$CC"} 9534 9535# If no C compiler flags were specified, use CFLAGS. 9536LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9537 9538# Allow CC to be a program name with arguments. 9539compiler=$CC 9540 9541# Save the default compiler, since it gets overwritten when the other 9542# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9543compiler_DEFAULT=$CC 9544 9545# save warnings/boilerplate of simple test code 9546ac_outfile=conftest.$ac_objext 9547echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9548eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9549_lt_compiler_boilerplate=`cat conftest.err` 9550$RM conftest* 9551 9552ac_outfile=conftest.$ac_objext 9553echo "$lt_simple_link_test_code" >conftest.$ac_ext 9554eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9555_lt_linker_boilerplate=`cat conftest.err` 9556$RM -r conftest* 9557 9558 9559## CAVEAT EMPTOR: 9560## There is no encapsulation within the following macros, do not change 9561## the running order or otherwise move them around unless you know exactly 9562## what you are doing... 9563if test -n "$compiler"; then 9564 9565lt_prog_compiler_no_builtin_flag= 9566 9567if test yes = "$GCC"; then 9568 case $cc_basename in 9569 nvcc*) 9570 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9571 *) 9572 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9573 esac 9574 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9576printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9577if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9578then : 9579 printf %s "(cached) " >&6 9580else case e in #( 9581 e) lt_cv_prog_compiler_rtti_exceptions=no 9582 ac_outfile=conftest.$ac_objext 9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9584 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9585 # Insert the option either (1) after the last *FLAGS variable, or 9586 # (2) before a word containing "conftest.", or (3) at the end. 9587 # Note that $ac_compile itself does not contain backslashes and begins 9588 # with a dollar sign (not a hyphen), so the echo should work correctly. 9589 # The option is referenced via a variable to avoid confusing sed. 9590 lt_compile=`echo "$ac_compile" | $SED \ 9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9593 -e 's:$: $lt_compiler_flag:'` 9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9595 (eval "$lt_compile" 2>conftest.err) 9596 ac_status=$? 9597 cat conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 if (exit $ac_status) && test -s "$ac_outfile"; then 9600 # The compiler can only warn and ignore the option if not recognized 9601 # So say no if there are warnings other than the usual output. 9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9605 lt_cv_prog_compiler_rtti_exceptions=yes 9606 fi 9607 fi 9608 $RM conftest* 9609 ;; 9610esac 9611fi 9612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9613printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9614 9615if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9616 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9617else 9618 : 9619fi 9620 9621fi 9622 9623 9624 9625 9626 9627 9628 lt_prog_compiler_wl= 9629lt_prog_compiler_pic= 9630lt_prog_compiler_static= 9631 9632 9633 if test yes = "$GCC"; then 9634 lt_prog_compiler_wl='-Wl,' 9635 lt_prog_compiler_static='-static' 9636 9637 case $host_os in 9638 aix*) 9639 # All AIX code is PIC. 9640 if test ia64 = "$host_cpu"; then 9641 # AIX 5 now supports IA64 processor 9642 lt_prog_compiler_static='-Bstatic' 9643 fi 9644 lt_prog_compiler_pic='-fPIC' 9645 ;; 9646 9647 amigaos*) 9648 case $host_cpu in 9649 powerpc) 9650 # see comment about AmigaOS4 .so support 9651 lt_prog_compiler_pic='-fPIC' 9652 ;; 9653 m68k) 9654 # FIXME: we need at least 68020 code to build shared libraries, but 9655 # adding the '-m68020' flag to GCC prevents building anything better, 9656 # like '-m68040'. 9657 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9658 ;; 9659 esac 9660 ;; 9661 9662 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9663 # PIC is the default for these OSes. 9664 ;; 9665 9666 mingw* | cygwin* | pw32* | os2* | cegcc*) 9667 # This hack is so that the source file can tell whether it is being 9668 # built for inclusion in a dll (and should export symbols for example). 9669 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9670 # (--disable-auto-import) libraries 9671 lt_prog_compiler_pic='-DDLL_EXPORT' 9672 case $host_os in 9673 os2*) 9674 lt_prog_compiler_static='$wl-static' 9675 ;; 9676 esac 9677 ;; 9678 9679 darwin* | rhapsody*) 9680 # PIC is the default on this platform 9681 # Common symbols not allowed in MH_DYLIB files 9682 lt_prog_compiler_pic='-fno-common' 9683 ;; 9684 9685 haiku*) 9686 # PIC is the default for Haiku. 9687 # The "-static" flag exists, but is broken. 9688 lt_prog_compiler_static= 9689 ;; 9690 9691 hpux*) 9692 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9693 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9694 # sets the default TLS model and affects inlining. 9695 case $host_cpu in 9696 hppa*64*) 9697 # +Z the default 9698 ;; 9699 *) 9700 lt_prog_compiler_pic='-fPIC' 9701 ;; 9702 esac 9703 ;; 9704 9705 interix[3-9]*) 9706 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9707 # Instead, we relocate shared libraries at runtime. 9708 ;; 9709 9710 msdosdjgpp*) 9711 # Just because we use GCC doesn't mean we suddenly get shared libraries 9712 # on systems that don't support them. 9713 lt_prog_compiler_can_build_shared=no 9714 enable_shared=no 9715 ;; 9716 9717 *nto* | *qnx*) 9718 # QNX uses GNU C++, but need to define -shared option too, otherwise 9719 # it will coredump. 9720 lt_prog_compiler_pic='-fPIC -shared' 9721 ;; 9722 9723 sysv4*MP*) 9724 if test -d /usr/nec; then 9725 lt_prog_compiler_pic=-Kconform_pic 9726 fi 9727 ;; 9728 9729 *) 9730 lt_prog_compiler_pic='-fPIC' 9731 ;; 9732 esac 9733 9734 case $cc_basename in 9735 nvcc*) # Cuda Compiler Driver 2.2 9736 lt_prog_compiler_wl='-Xlinker ' 9737 if test -n "$lt_prog_compiler_pic"; then 9738 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9739 fi 9740 ;; 9741 esac 9742 else 9743 # PORTME Check for flag to pass linker flags through the system compiler. 9744 case $host_os in 9745 aix*) 9746 lt_prog_compiler_wl='-Wl,' 9747 if test ia64 = "$host_cpu"; then 9748 # AIX 5 now supports IA64 processor 9749 lt_prog_compiler_static='-Bstatic' 9750 else 9751 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9752 fi 9753 ;; 9754 9755 darwin* | rhapsody*) 9756 # PIC is the default on this platform 9757 # Common symbols not allowed in MH_DYLIB files 9758 lt_prog_compiler_pic='-fno-common' 9759 case $cc_basename in 9760 nagfor*) 9761 # NAG Fortran compiler 9762 lt_prog_compiler_wl='-Wl,-Wl,,' 9763 lt_prog_compiler_pic='-PIC' 9764 lt_prog_compiler_static='-Bstatic' 9765 ;; 9766 esac 9767 ;; 9768 9769 mingw* | cygwin* | pw32* | os2* | cegcc*) 9770 # This hack is so that the source file can tell whether it is being 9771 # built for inclusion in a dll (and should export symbols for example). 9772 lt_prog_compiler_pic='-DDLL_EXPORT' 9773 case $host_os in 9774 os2*) 9775 lt_prog_compiler_static='$wl-static' 9776 ;; 9777 esac 9778 ;; 9779 9780 hpux9* | hpux10* | hpux11*) 9781 lt_prog_compiler_wl='-Wl,' 9782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9783 # not for PA HP-UX. 9784 case $host_cpu in 9785 hppa*64*|ia64*) 9786 # +Z the default 9787 ;; 9788 *) 9789 lt_prog_compiler_pic='+Z' 9790 ;; 9791 esac 9792 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9793 lt_prog_compiler_static='$wl-a ${wl}archive' 9794 ;; 9795 9796 irix5* | irix6* | nonstopux*) 9797 lt_prog_compiler_wl='-Wl,' 9798 # PIC (with -KPIC) is the default. 9799 lt_prog_compiler_static='-non_shared' 9800 ;; 9801 9802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9803 case $cc_basename in 9804 # old Intel for x86_64, which still supported -KPIC. 9805 ecc*) 9806 lt_prog_compiler_wl='-Wl,' 9807 lt_prog_compiler_pic='-KPIC' 9808 lt_prog_compiler_static='-static' 9809 ;; 9810 # icc used to be incompatible with GCC. 9811 # ICC 10 doesn't accept -KPIC any more. 9812 icc* | ifort*) 9813 lt_prog_compiler_wl='-Wl,' 9814 lt_prog_compiler_pic='-fPIC' 9815 lt_prog_compiler_static='-static' 9816 ;; 9817 # Lahey Fortran 8.1. 9818 lf95*) 9819 lt_prog_compiler_wl='-Wl,' 9820 lt_prog_compiler_pic='--shared' 9821 lt_prog_compiler_static='--static' 9822 ;; 9823 nagfor*) 9824 # NAG Fortran compiler 9825 lt_prog_compiler_wl='-Wl,-Wl,,' 9826 lt_prog_compiler_pic='-PIC' 9827 lt_prog_compiler_static='-Bstatic' 9828 ;; 9829 tcc*) 9830 # Fabrice Bellard et al's Tiny C Compiler 9831 lt_prog_compiler_wl='-Wl,' 9832 lt_prog_compiler_pic='-fPIC' 9833 lt_prog_compiler_static='-static' 9834 ;; 9835 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9836 # Portland Group compilers (*not* the Pentium gcc compiler, 9837 # which looks to be a dead project) 9838 lt_prog_compiler_wl='-Wl,' 9839 lt_prog_compiler_pic='-fpic' 9840 lt_prog_compiler_static='-Bstatic' 9841 ;; 9842 ccc*) 9843 lt_prog_compiler_wl='-Wl,' 9844 # All Alpha code is PIC. 9845 lt_prog_compiler_static='-non_shared' 9846 ;; 9847 xl* | bgxl* | bgf* | mpixl*) 9848 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9849 lt_prog_compiler_wl='-Wl,' 9850 lt_prog_compiler_pic='-qpic' 9851 lt_prog_compiler_static='-qstaticlink' 9852 ;; 9853 *) 9854 case `$CC -V 2>&1 | $SED 5q` in 9855 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9856 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9857 lt_prog_compiler_pic='-KPIC' 9858 lt_prog_compiler_static='-Bstatic' 9859 lt_prog_compiler_wl='' 9860 ;; 9861 *Sun\ F* | *Sun*Fortran*) 9862 lt_prog_compiler_pic='-KPIC' 9863 lt_prog_compiler_static='-Bstatic' 9864 lt_prog_compiler_wl='-Qoption ld ' 9865 ;; 9866 *Sun\ C*) 9867 # Sun C 5.9 9868 lt_prog_compiler_pic='-KPIC' 9869 lt_prog_compiler_static='-Bstatic' 9870 lt_prog_compiler_wl='-Wl,' 9871 ;; 9872 *Intel*\ [CF]*Compiler*) 9873 lt_prog_compiler_wl='-Wl,' 9874 lt_prog_compiler_pic='-fPIC' 9875 lt_prog_compiler_static='-static' 9876 ;; 9877 *Portland\ Group*) 9878 lt_prog_compiler_wl='-Wl,' 9879 lt_prog_compiler_pic='-fpic' 9880 lt_prog_compiler_static='-Bstatic' 9881 ;; 9882 esac 9883 ;; 9884 esac 9885 ;; 9886 9887 newsos6) 9888 lt_prog_compiler_pic='-KPIC' 9889 lt_prog_compiler_static='-Bstatic' 9890 ;; 9891 9892 *nto* | *qnx*) 9893 # QNX uses GNU C++, but need to define -shared option too, otherwise 9894 # it will coredump. 9895 lt_prog_compiler_pic='-fPIC -shared' 9896 ;; 9897 9898 osf3* | osf4* | osf5*) 9899 lt_prog_compiler_wl='-Wl,' 9900 # All OSF/1 code is PIC. 9901 lt_prog_compiler_static='-non_shared' 9902 ;; 9903 9904 rdos*) 9905 lt_prog_compiler_static='-non_shared' 9906 ;; 9907 9908 solaris*) 9909 lt_prog_compiler_pic='-KPIC' 9910 lt_prog_compiler_static='-Bstatic' 9911 case $cc_basename in 9912 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9913 lt_prog_compiler_wl='-Qoption ld ';; 9914 *) 9915 lt_prog_compiler_wl='-Wl,';; 9916 esac 9917 ;; 9918 9919 sunos4*) 9920 lt_prog_compiler_wl='-Qoption ld ' 9921 lt_prog_compiler_pic='-PIC' 9922 lt_prog_compiler_static='-Bstatic' 9923 ;; 9924 9925 sysv4 | sysv4.2uw2* | sysv4.3*) 9926 lt_prog_compiler_wl='-Wl,' 9927 lt_prog_compiler_pic='-KPIC' 9928 lt_prog_compiler_static='-Bstatic' 9929 ;; 9930 9931 sysv4*MP*) 9932 if test -d /usr/nec; then 9933 lt_prog_compiler_pic='-Kconform_pic' 9934 lt_prog_compiler_static='-Bstatic' 9935 fi 9936 ;; 9937 9938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9939 lt_prog_compiler_wl='-Wl,' 9940 lt_prog_compiler_pic='-KPIC' 9941 lt_prog_compiler_static='-Bstatic' 9942 ;; 9943 9944 unicos*) 9945 lt_prog_compiler_wl='-Wl,' 9946 lt_prog_compiler_can_build_shared=no 9947 ;; 9948 9949 uts4*) 9950 lt_prog_compiler_pic='-pic' 9951 lt_prog_compiler_static='-Bstatic' 9952 ;; 9953 9954 *) 9955 lt_prog_compiler_can_build_shared=no 9956 ;; 9957 esac 9958 fi 9959 9960case $host_os in 9961 # For platforms that do not support PIC, -DPIC is meaningless: 9962 *djgpp*) 9963 lt_prog_compiler_pic= 9964 ;; 9965 *) 9966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9967 ;; 9968esac 9969 9970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9971printf %s "checking for $compiler option to produce PIC... " >&6; } 9972if test ${lt_cv_prog_compiler_pic+y} 9973then : 9974 printf %s "(cached) " >&6 9975else case e in #( 9976 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9977esac 9978fi 9979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9980printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9981lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9982 9983# 9984# Check to make sure the PIC flag actually works. 9985# 9986if test -n "$lt_prog_compiler_pic"; then 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9988printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9989if test ${lt_cv_prog_compiler_pic_works+y} 9990then : 9991 printf %s "(cached) " >&6 9992else case e in #( 9993 e) lt_cv_prog_compiler_pic_works=no 9994 ac_outfile=conftest.$ac_objext 9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9997 # Insert the option either (1) after the last *FLAGS variable, or 9998 # (2) before a word containing "conftest.", or (3) at the end. 9999 # Note that $ac_compile itself does not contain backslashes and begins 10000 # with a dollar sign (not a hyphen), so the echo should work correctly. 10001 # The option is referenced via a variable to avoid confusing sed. 10002 lt_compile=`echo "$ac_compile" | $SED \ 10003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10005 -e 's:$: $lt_compiler_flag:'` 10006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10007 (eval "$lt_compile" 2>conftest.err) 10008 ac_status=$? 10009 cat conftest.err >&5 10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10011 if (exit $ac_status) && test -s "$ac_outfile"; then 10012 # The compiler can only warn and ignore the option if not recognized 10013 # So say no if there are warnings other than the usual output. 10014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10017 lt_cv_prog_compiler_pic_works=yes 10018 fi 10019 fi 10020 $RM conftest* 10021 ;; 10022esac 10023fi 10024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10025printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10026 10027if test yes = "$lt_cv_prog_compiler_pic_works"; then 10028 case $lt_prog_compiler_pic in 10029 "" | " "*) ;; 10030 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10031 esac 10032else 10033 lt_prog_compiler_pic= 10034 lt_prog_compiler_can_build_shared=no 10035fi 10036 10037fi 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049# 10050# Check to make sure the static flag actually works. 10051# 10052wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10054printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10055if test ${lt_cv_prog_compiler_static_works+y} 10056then : 10057 printf %s "(cached) " >&6 10058else case e in #( 10059 e) lt_cv_prog_compiler_static_works=no 10060 save_LDFLAGS=$LDFLAGS 10061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10062 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10064 # The linker can only warn and ignore the option if not recognized 10065 # So say no if there are warnings 10066 if test -s conftest.err; then 10067 # Append any errors to the config.log. 10068 cat conftest.err 1>&5 10069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10071 if diff conftest.exp conftest.er2 >/dev/null; then 10072 lt_cv_prog_compiler_static_works=yes 10073 fi 10074 else 10075 lt_cv_prog_compiler_static_works=yes 10076 fi 10077 fi 10078 $RM -r conftest* 10079 LDFLAGS=$save_LDFLAGS 10080 ;; 10081esac 10082fi 10083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10084printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10085 10086if test yes = "$lt_cv_prog_compiler_static_works"; then 10087 : 10088else 10089 lt_prog_compiler_static= 10090fi 10091 10092 10093 10094 10095 10096 10097 10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10099printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10100if test ${lt_cv_prog_compiler_c_o+y} 10101then : 10102 printf %s "(cached) " >&6 10103else case e in #( 10104 e) lt_cv_prog_compiler_c_o=no 10105 $RM -r conftest 2>/dev/null 10106 mkdir conftest 10107 cd conftest 10108 mkdir out 10109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10110 10111 lt_compiler_flag="-o out/conftest2.$ac_objext" 10112 # Insert the option either (1) after the last *FLAGS variable, or 10113 # (2) before a word containing "conftest.", or (3) at the end. 10114 # Note that $ac_compile itself does not contain backslashes and begins 10115 # with a dollar sign (not a hyphen), so the echo should work correctly. 10116 lt_compile=`echo "$ac_compile" | $SED \ 10117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10119 -e 's:$: $lt_compiler_flag:'` 10120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10121 (eval "$lt_compile" 2>out/conftest.err) 10122 ac_status=$? 10123 cat out/conftest.err >&5 10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10126 then 10127 # The compiler can only warn and ignore the option if not recognized 10128 # So say no if there are warnings 10129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10132 lt_cv_prog_compiler_c_o=yes 10133 fi 10134 fi 10135 chmod u+w . 2>&5 10136 $RM conftest* 10137 # SGI C++ compiler will create directory out/ii_files/ for 10138 # template instantiation 10139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10140 $RM out/* && rmdir out 10141 cd .. 10142 $RM -r conftest 10143 $RM conftest* 10144 ;; 10145esac 10146fi 10147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10148printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10149 10150 10151 10152 10153 10154 10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10156printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10157if test ${lt_cv_prog_compiler_c_o+y} 10158then : 10159 printf %s "(cached) " >&6 10160else case e in #( 10161 e) lt_cv_prog_compiler_c_o=no 10162 $RM -r conftest 2>/dev/null 10163 mkdir conftest 10164 cd conftest 10165 mkdir out 10166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10167 10168 lt_compiler_flag="-o out/conftest2.$ac_objext" 10169 # Insert the option either (1) after the last *FLAGS variable, or 10170 # (2) before a word containing "conftest.", or (3) at the end. 10171 # Note that $ac_compile itself does not contain backslashes and begins 10172 # with a dollar sign (not a hyphen), so the echo should work correctly. 10173 lt_compile=`echo "$ac_compile" | $SED \ 10174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10176 -e 's:$: $lt_compiler_flag:'` 10177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10178 (eval "$lt_compile" 2>out/conftest.err) 10179 ac_status=$? 10180 cat out/conftest.err >&5 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10183 then 10184 # The compiler can only warn and ignore the option if not recognized 10185 # So say no if there are warnings 10186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10189 lt_cv_prog_compiler_c_o=yes 10190 fi 10191 fi 10192 chmod u+w . 2>&5 10193 $RM conftest* 10194 # SGI C++ compiler will create directory out/ii_files/ for 10195 # template instantiation 10196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10197 $RM out/* && rmdir out 10198 cd .. 10199 $RM -r conftest 10200 $RM conftest* 10201 ;; 10202esac 10203fi 10204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10205printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10206 10207 10208 10209 10210hard_links=nottested 10211if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10212 # do not overwrite the value of need_locks provided by the user 10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10214printf %s "checking if we can lock with hard links... " >&6; } 10215 hard_links=yes 10216 $RM conftest* 10217 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10218 touch conftest.a 10219 ln conftest.a conftest.b 2>&5 || hard_links=no 10220 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10222printf "%s\n" "$hard_links" >&6; } 10223 if test no = "$hard_links"; then 10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10225printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10226 need_locks=warn 10227 fi 10228else 10229 need_locks=no 10230fi 10231 10232 10233 10234 10235 10236 10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10238printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10239 10240 runpath_var= 10241 allow_undefined_flag= 10242 always_export_symbols=no 10243 archive_cmds= 10244 archive_expsym_cmds= 10245 compiler_needs_object=no 10246 enable_shared_with_static_runtimes=no 10247 export_dynamic_flag_spec= 10248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10249 hardcode_automatic=no 10250 hardcode_direct=no 10251 hardcode_direct_absolute=no 10252 hardcode_libdir_flag_spec= 10253 hardcode_libdir_separator= 10254 hardcode_minus_L=no 10255 hardcode_shlibpath_var=unsupported 10256 inherit_rpath=no 10257 link_all_deplibs=unknown 10258 module_cmds= 10259 module_expsym_cmds= 10260 old_archive_from_new_cmds= 10261 old_archive_from_expsyms_cmds= 10262 thread_safe_flag_spec= 10263 whole_archive_flag_spec= 10264 # include_expsyms should be a list of space-separated symbols to be *always* 10265 # included in the symbol list 10266 include_expsyms= 10267 # exclude_expsyms can be an extended regexp of symbols to exclude 10268 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10269 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10270 # as well as any symbol that contains 'd'. 10271 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10273 # platforms (ab)use it in PIC code, but their linkers get confused if 10274 # the symbol is explicitly referenced. Since portable code cannot 10275 # rely on this symbol name, it's probably fine to never include it in 10276 # preloaded symbol tables. 10277 # Exclude shared library initialization/finalization symbols. 10278 extract_expsyms_cmds= 10279 10280 case $host_os in 10281 cygwin* | mingw* | pw32* | cegcc*) 10282 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10283 # When not using gcc, we currently assume that we are using 10284 # Microsoft Visual C++ or Intel C++ Compiler. 10285 if test yes != "$GCC"; then 10286 with_gnu_ld=no 10287 fi 10288 ;; 10289 interix*) 10290 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10291 with_gnu_ld=yes 10292 ;; 10293 openbsd* | bitrig*) 10294 with_gnu_ld=no 10295 ;; 10296 esac 10297 10298 ld_shlibs=yes 10299 10300 # On some targets, GNU ld is compatible enough with the native linker 10301 # that we're better off using the native interface for both. 10302 lt_use_gnu_ld_interface=no 10303 if test yes = "$with_gnu_ld"; then 10304 case $host_os in 10305 aix*) 10306 # The AIX port of GNU ld has always aspired to compatibility 10307 # with the native linker. However, as the warning in the GNU ld 10308 # block says, versions before 2.19.5* couldn't really create working 10309 # shared libraries, regardless of the interface used. 10310 case `$LD -v 2>&1` in 10311 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10312 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10313 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10314 *) 10315 lt_use_gnu_ld_interface=yes 10316 ;; 10317 esac 10318 ;; 10319 *) 10320 lt_use_gnu_ld_interface=yes 10321 ;; 10322 esac 10323 fi 10324 10325 if test yes = "$lt_use_gnu_ld_interface"; then 10326 # If archive_cmds runs LD, not CC, wlarc should be empty 10327 wlarc='$wl' 10328 10329 # Set some defaults for GNU ld with shared library support. These 10330 # are reset later if shared libraries are not supported. Putting them 10331 # here allows them to be overridden if necessary. 10332 runpath_var=LD_RUN_PATH 10333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10334 export_dynamic_flag_spec='$wl--export-dynamic' 10335 # ancient GNU ld didn't support --whole-archive et. al. 10336 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10337 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10338 else 10339 whole_archive_flag_spec= 10340 fi 10341 supports_anon_versioning=no 10342 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10343 *GNU\ gold*) supports_anon_versioning=yes ;; 10344 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10347 *\ 2.11.*) ;; # other 2.11 versions 10348 *) supports_anon_versioning=yes ;; 10349 esac 10350 10351 # See if GNU ld supports shared libraries. 10352 case $host_os in 10353 aix[3-9]*) 10354 # On AIX/PPC, the GNU linker is very broken 10355 if test ia64 != "$host_cpu"; then 10356 ld_shlibs=no 10357 cat <<_LT_EOF 1>&2 10358 10359*** Warning: the GNU linker, at least up to release 2.19, is reported 10360*** to be unable to reliably create shared libraries on AIX. 10361*** Therefore, libtool is disabling shared libraries support. If you 10362*** really care for shared libraries, you may want to install binutils 10363*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10364*** You will then need to restart the configuration process. 10365 10366_LT_EOF 10367 fi 10368 ;; 10369 10370 amigaos*) 10371 case $host_cpu in 10372 powerpc) 10373 # see comment about AmigaOS4 .so support 10374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10375 archive_expsym_cmds='' 10376 ;; 10377 m68k) 10378 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10379 hardcode_libdir_flag_spec='-L$libdir' 10380 hardcode_minus_L=yes 10381 ;; 10382 esac 10383 ;; 10384 10385 beos*) 10386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10387 allow_undefined_flag=unsupported 10388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10389 # support --undefined. This deserves some investigation. FIXME 10390 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10391 else 10392 ld_shlibs=no 10393 fi 10394 ;; 10395 10396 cygwin* | mingw* | pw32* | cegcc*) 10397 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10398 # as there is no search path for DLLs. 10399 hardcode_libdir_flag_spec='-L$libdir' 10400 export_dynamic_flag_spec='$wl--export-all-symbols' 10401 allow_undefined_flag=unsupported 10402 always_export_symbols=no 10403 enable_shared_with_static_runtimes=yes 10404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10405 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10406 10407 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10409 # If the export-symbols file already is a .def file, use it as 10410 # is; otherwise, prepend EXPORTS... 10411 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10412 cp $export_symbols $output_objdir/$soname.def; 10413 else 10414 echo EXPORTS > $output_objdir/$soname.def; 10415 cat $export_symbols >> $output_objdir/$soname.def; 10416 fi~ 10417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10418 else 10419 ld_shlibs=no 10420 fi 10421 ;; 10422 10423 haiku*) 10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10425 link_all_deplibs=yes 10426 ;; 10427 10428 os2*) 10429 hardcode_libdir_flag_spec='-L$libdir' 10430 hardcode_minus_L=yes 10431 allow_undefined_flag=unsupported 10432 shrext_cmds=.dll 10433 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10434 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10435 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10436 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10437 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10438 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10439 emximp -o $lib $output_objdir/$libname.def' 10440 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10441 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10442 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10443 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10444 prefix_cmds="$SED"~ 10445 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10446 prefix_cmds="$prefix_cmds -e 1d"; 10447 fi~ 10448 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10449 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10450 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10451 emximp -o $lib $output_objdir/$libname.def' 10452 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10453 enable_shared_with_static_runtimes=yes 10454 file_list_spec='@' 10455 ;; 10456 10457 interix[3-9]*) 10458 hardcode_direct=no 10459 hardcode_shlibpath_var=no 10460 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10461 export_dynamic_flag_spec='$wl-E' 10462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10463 # Instead, shared libraries are loaded at an image base (0x10000000 by 10464 # default) and relocated if they conflict, which is a slow very memory 10465 # consuming and fragmenting process. To avoid this, we pick a random, 10466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10467 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10469 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10470 ;; 10471 10472 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10473 tmp_diet=no 10474 if test linux-dietlibc = "$host_os"; then 10475 case $cc_basename in 10476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10477 esac 10478 fi 10479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10480 && test no = "$tmp_diet" 10481 then 10482 tmp_addflag=' $pic_flag' 10483 tmp_sharedflag='-shared' 10484 case $cc_basename,$host_cpu in 10485 pgcc*) # Portland Group C compiler 10486 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10487 tmp_addflag=' $pic_flag' 10488 ;; 10489 pgf77* | pgf90* | pgf95* | pgfortran*) 10490 # Portland Group f77 and f90 compilers 10491 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10492 tmp_addflag=' $pic_flag -Mnomain' ;; 10493 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10494 tmp_addflag=' -i_dynamic' ;; 10495 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10496 tmp_addflag=' -i_dynamic -nofor_main' ;; 10497 ifc* | ifort*) # Intel Fortran compiler 10498 tmp_addflag=' -nofor_main' ;; 10499 lf95*) # Lahey Fortran 8.1 10500 whole_archive_flag_spec= 10501 tmp_sharedflag='--shared' ;; 10502 nagfor*) # NAGFOR 5.3 10503 tmp_sharedflag='-Wl,-shared' ;; 10504 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10505 tmp_sharedflag='-qmkshrobj' 10506 tmp_addflag= ;; 10507 nvcc*) # Cuda Compiler Driver 2.2 10508 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10509 compiler_needs_object=yes 10510 ;; 10511 esac 10512 case `$CC -V 2>&1 | $SED 5q` in 10513 *Sun\ C*) # Sun C 5.9 10514 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10515 compiler_needs_object=yes 10516 tmp_sharedflag='-G' ;; 10517 *Sun\ F*) # Sun Fortran 8.3 10518 tmp_sharedflag='-G' ;; 10519 esac 10520 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10521 10522 if test yes = "$supports_anon_versioning"; then 10523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10524 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10525 echo "local: *; };" >> $output_objdir/$libname.ver~ 10526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10527 fi 10528 10529 case $cc_basename in 10530 tcc*) 10531 export_dynamic_flag_spec='-rdynamic' 10532 ;; 10533 xlf* | bgf* | bgxlf* | mpixlf*) 10534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10535 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10537 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10538 if test yes = "$supports_anon_versioning"; then 10539 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10540 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10541 echo "local: *; };" >> $output_objdir/$libname.ver~ 10542 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10543 fi 10544 ;; 10545 esac 10546 else 10547 ld_shlibs=no 10548 fi 10549 ;; 10550 10551 netbsd*) 10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10553 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10554 wlarc= 10555 else 10556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10558 fi 10559 ;; 10560 10561 solaris*) 10562 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10563 ld_shlibs=no 10564 cat <<_LT_EOF 1>&2 10565 10566*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10567*** create shared libraries on Solaris systems. Therefore, libtool 10568*** is disabling shared libraries support. We urge you to upgrade GNU 10569*** binutils to release 2.9.1 or newer. Another option is to modify 10570*** your PATH or compiler configuration so that the native linker is 10571*** used, and then restart. 10572 10573_LT_EOF 10574 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10577 else 10578 ld_shlibs=no 10579 fi 10580 ;; 10581 10582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10583 case `$LD -v 2>&1` in 10584 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10585 ld_shlibs=no 10586 cat <<_LT_EOF 1>&2 10587 10588*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10589*** reliably create shared libraries on SCO systems. Therefore, libtool 10590*** is disabling shared libraries support. We urge you to upgrade GNU 10591*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10592*** your PATH or compiler configuration so that the native linker is 10593*** used, and then restart. 10594 10595_LT_EOF 10596 ;; 10597 *) 10598 # For security reasons, it is highly recommended that you always 10599 # use absolute paths for naming shared libraries, and exclude the 10600 # DT_RUNPATH tag from executables and libraries. But doing so 10601 # requires that you compile everything twice, which is a pain. 10602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10606 else 10607 ld_shlibs=no 10608 fi 10609 ;; 10610 esac 10611 ;; 10612 10613 sunos4*) 10614 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10615 wlarc= 10616 hardcode_direct=yes 10617 hardcode_shlibpath_var=no 10618 ;; 10619 10620 *) 10621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10624 else 10625 ld_shlibs=no 10626 fi 10627 ;; 10628 esac 10629 10630 if test no = "$ld_shlibs"; then 10631 runpath_var= 10632 hardcode_libdir_flag_spec= 10633 export_dynamic_flag_spec= 10634 whole_archive_flag_spec= 10635 fi 10636 else 10637 # PORTME fill in a description of your system's linker (not GNU ld) 10638 case $host_os in 10639 aix3*) 10640 allow_undefined_flag=unsupported 10641 always_export_symbols=yes 10642 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10643 # Note: this linker hardcodes the directories in LIBPATH if there 10644 # are no directories specified by -L. 10645 hardcode_minus_L=yes 10646 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10647 # Neither direct hardcoding nor static linking is supported with a 10648 # broken collect2. 10649 hardcode_direct=unsupported 10650 fi 10651 ;; 10652 10653 aix[4-9]*) 10654 if test ia64 = "$host_cpu"; then 10655 # On IA64, the linker does run time linking by default, so we don't 10656 # have to do anything special. 10657 aix_use_runtimelinking=no 10658 exp_sym_flag='-Bexport' 10659 no_entry_flag= 10660 else 10661 # If we're using GNU nm, then we don't want the "-C" option. 10662 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10663 # Without the "-l" option, or with the "-B" option, AIX nm treats 10664 # weak defined symbols like other global defined symbols, whereas 10665 # GNU nm marks them as "W". 10666 # While the 'weak' keyword is ignored in the Export File, we need 10667 # it in the Import File for the 'aix-soname' feature, so we have 10668 # to replace the "-B" option with "-P" for AIX nm. 10669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10670 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10671 else 10672 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10673 fi 10674 aix_use_runtimelinking=no 10675 10676 # Test if we are trying to use run time linking or normal 10677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10678 # have runtime linking enabled, and use it for executables. 10679 # For shared libraries, we enable/disable runtime linking 10680 # depending on the kind of the shared library created - 10681 # when "with_aix_soname,aix_use_runtimelinking" is: 10682 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10683 # "aix,yes" lib.so shared, rtl:yes, for executables 10684 # lib.a static archive 10685 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10686 # lib.a(lib.so.V) shared, rtl:no, for executables 10687 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10688 # lib.a(lib.so.V) shared, rtl:no 10689 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10690 # lib.a static archive 10691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10692 for ld_flag in $LDFLAGS; do 10693 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10694 aix_use_runtimelinking=yes 10695 break 10696 fi 10697 done 10698 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10699 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10700 # so we don't have lib.a shared libs to link our executables. 10701 # We have to force runtime linking in this case. 10702 aix_use_runtimelinking=yes 10703 LDFLAGS="$LDFLAGS -Wl,-brtl" 10704 fi 10705 ;; 10706 esac 10707 10708 exp_sym_flag='-bexport' 10709 no_entry_flag='-bnoentry' 10710 fi 10711 10712 # When large executables or shared objects are built, AIX ld can 10713 # have problems creating the table of contents. If linking a library 10714 # or program results in "error TOC overflow" add -mminimal-toc to 10715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10717 10718 archive_cmds='' 10719 hardcode_direct=yes 10720 hardcode_direct_absolute=yes 10721 hardcode_libdir_separator=':' 10722 link_all_deplibs=yes 10723 file_list_spec='$wl-f,' 10724 case $with_aix_soname,$aix_use_runtimelinking in 10725 aix,*) ;; # traditional, no import file 10726 svr4,* | *,yes) # use import file 10727 # The Import File defines what to hardcode. 10728 hardcode_direct=no 10729 hardcode_direct_absolute=no 10730 ;; 10731 esac 10732 10733 if test yes = "$GCC"; then 10734 case $host_os in aix4.[012]|aix4.[012].*) 10735 # We only want to do this on AIX 4.2 and lower, the check 10736 # below for broken collect2 doesn't work under 4.3+ 10737 collect2name=`$CC -print-prog-name=collect2` 10738 if test -f "$collect2name" && 10739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10740 then 10741 # We have reworked collect2 10742 : 10743 else 10744 # We have old collect2 10745 hardcode_direct=unsupported 10746 # It fails to find uninstalled libraries when the uninstalled 10747 # path is not listed in the libpath. Setting hardcode_minus_L 10748 # to unsupported forces relinking 10749 hardcode_minus_L=yes 10750 hardcode_libdir_flag_spec='-L$libdir' 10751 hardcode_libdir_separator= 10752 fi 10753 ;; 10754 esac 10755 shared_flag='-shared' 10756 if test yes = "$aix_use_runtimelinking"; then 10757 shared_flag="$shared_flag "'$wl-G' 10758 fi 10759 # Need to ensure runtime linking is disabled for the traditional 10760 # shared library, or the linker may eventually find shared libraries 10761 # /with/ Import File - we do not want to mix them. 10762 shared_flag_aix='-shared' 10763 shared_flag_svr4='-shared $wl-G' 10764 else 10765 # not using gcc 10766 if test ia64 = "$host_cpu"; then 10767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10768 # chokes on -Wl,-G. The following line is correct: 10769 shared_flag='-G' 10770 else 10771 if test yes = "$aix_use_runtimelinking"; then 10772 shared_flag='$wl-G' 10773 else 10774 shared_flag='$wl-bM:SRE' 10775 fi 10776 shared_flag_aix='$wl-bM:SRE' 10777 shared_flag_svr4='$wl-G' 10778 fi 10779 fi 10780 10781 export_dynamic_flag_spec='$wl-bexpall' 10782 # It seems that -bexpall does not export symbols beginning with 10783 # underscore (_), so it is better to generate a list of symbols to export. 10784 always_export_symbols=yes 10785 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10786 # Warning - without using the other runtime loading flags (-brtl), 10787 # -berok will link without error, but may produce a broken library. 10788 allow_undefined_flag='-berok' 10789 # Determine the default libpath from the value encoded in an 10790 # empty executable. 10791 if test set = "${lt_cv_aix_libpath+set}"; then 10792 aix_libpath=$lt_cv_aix_libpath 10793else 10794 if test ${lt_cv_aix_libpath_+y} 10795then : 10796 printf %s "(cached) " >&6 10797else case e in #( 10798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799/* end confdefs.h. */ 10800 10801int 10802main (void) 10803{ 10804 10805 ; 10806 return 0; 10807} 10808_ACEOF 10809if ac_fn_c_try_link "$LINENO" 10810then : 10811 10812 lt_aix_libpath_sed=' 10813 /Import File Strings/,/^$/ { 10814 /^0/ { 10815 s/^0 *\([^ ]*\) *$/\1/ 10816 p 10817 } 10818 }' 10819 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10820 # Check for a 64-bit object if we didn't find anything. 10821 if test -z "$lt_cv_aix_libpath_"; then 10822 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10823 fi 10824fi 10825rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10826 conftest$ac_exeext conftest.$ac_ext 10827 if test -z "$lt_cv_aix_libpath_"; then 10828 lt_cv_aix_libpath_=/usr/lib:/lib 10829 fi 10830 ;; 10831esac 10832fi 10833 10834 aix_libpath=$lt_cv_aix_libpath_ 10835fi 10836 10837 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10838 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10839 else 10840 if test ia64 = "$host_cpu"; then 10841 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10842 allow_undefined_flag="-z nodefs" 10843 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 10844 else 10845 # Determine the default libpath from the value encoded in an 10846 # empty executable. 10847 if test set = "${lt_cv_aix_libpath+set}"; then 10848 aix_libpath=$lt_cv_aix_libpath 10849else 10850 if test ${lt_cv_aix_libpath_+y} 10851then : 10852 printf %s "(cached) " >&6 10853else case e in #( 10854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856 10857int 10858main (void) 10859{ 10860 10861 ; 10862 return 0; 10863} 10864_ACEOF 10865if ac_fn_c_try_link "$LINENO" 10866then : 10867 10868 lt_aix_libpath_sed=' 10869 /Import File Strings/,/^$/ { 10870 /^0/ { 10871 s/^0 *\([^ ]*\) *$/\1/ 10872 p 10873 } 10874 }' 10875 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10876 # Check for a 64-bit object if we didn't find anything. 10877 if test -z "$lt_cv_aix_libpath_"; then 10878 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10879 fi 10880fi 10881rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10882 conftest$ac_exeext conftest.$ac_ext 10883 if test -z "$lt_cv_aix_libpath_"; then 10884 lt_cv_aix_libpath_=/usr/lib:/lib 10885 fi 10886 ;; 10887esac 10888fi 10889 10890 aix_libpath=$lt_cv_aix_libpath_ 10891fi 10892 10893 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10894 # Warning - without using the other run time loading flags, 10895 # -berok will link without error, but may produce a broken library. 10896 no_undefined_flag=' $wl-bernotok' 10897 allow_undefined_flag=' $wl-berok' 10898 if test yes = "$with_gnu_ld"; then 10899 # We only use this code for GNU lds that support --whole-archive. 10900 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10901 else 10902 # Exported symbols can be pulled into shared objects from archives 10903 whole_archive_flag_spec='$convenience' 10904 fi 10905 archive_cmds_need_lc=yes 10906 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10907 # -brtl affects multiple linker settings, -berok does not and is overridden later 10908 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10909 if test svr4 != "$with_aix_soname"; then 10910 # This is similar to how AIX traditionally builds its shared libraries. 10911 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10912 fi 10913 if test aix != "$with_aix_soname"; then 10914 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10915 else 10916 # used by -dlpreopen to get the symbols 10917 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10918 fi 10919 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10920 fi 10921 fi 10922 ;; 10923 10924 amigaos*) 10925 case $host_cpu in 10926 powerpc) 10927 # see comment about AmigaOS4 .so support 10928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10929 archive_expsym_cmds='' 10930 ;; 10931 m68k) 10932 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10933 hardcode_libdir_flag_spec='-L$libdir' 10934 hardcode_minus_L=yes 10935 ;; 10936 esac 10937 ;; 10938 10939 bsdi[45]*) 10940 export_dynamic_flag_spec=-rdynamic 10941 ;; 10942 10943 cygwin* | mingw* | pw32* | cegcc*) 10944 # When not using gcc, we currently assume that we are using 10945 # Microsoft Visual C++ or Intel C++ Compiler. 10946 # hardcode_libdir_flag_spec is actually meaningless, as there is 10947 # no search path for DLLs. 10948 case $cc_basename in 10949 cl* | icl*) 10950 # Native MSVC or ICC 10951 hardcode_libdir_flag_spec=' ' 10952 allow_undefined_flag=unsupported 10953 always_export_symbols=yes 10954 file_list_spec='@' 10955 # Tell ltmain to make .lib files, not .a files. 10956 libext=lib 10957 # Tell ltmain to make .dll files, not .so files. 10958 shrext_cmds=.dll 10959 # FIXME: Setting linknames here is a bad hack. 10960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10961 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10962 cp "$export_symbols" "$output_objdir/$soname.def"; 10963 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10964 else 10965 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10966 fi~ 10967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10968 linknames=' 10969 # The linker will not automatically build a static lib if we build a DLL. 10970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10971 enable_shared_with_static_runtimes=yes 10972 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10974 # Don't use ranlib 10975 old_postinstall_cmds='chmod 644 $oldlib' 10976 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10977 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10978 case $lt_outputfile in 10979 *.exe|*.EXE) ;; 10980 *) 10981 lt_outputfile=$lt_outputfile.exe 10982 lt_tool_outputfile=$lt_tool_outputfile.exe 10983 ;; 10984 esac~ 10985 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10987 $RM "$lt_outputfile.manifest"; 10988 fi' 10989 ;; 10990 *) 10991 # Assume MSVC and ICC wrapper 10992 hardcode_libdir_flag_spec=' ' 10993 allow_undefined_flag=unsupported 10994 # Tell ltmain to make .lib files, not .a files. 10995 libext=lib 10996 # Tell ltmain to make .dll files, not .so files. 10997 shrext_cmds=.dll 10998 # FIXME: Setting linknames here is a bad hack. 10999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11000 # The linker will automatically build a .lib file if we build a DLL. 11001 old_archive_from_new_cmds='true' 11002 # FIXME: Should let the user specify the lib program. 11003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11004 enable_shared_with_static_runtimes=yes 11005 ;; 11006 esac 11007 ;; 11008 11009 darwin* | rhapsody*) 11010 11011 11012 archive_cmds_need_lc=no 11013 hardcode_direct=no 11014 hardcode_automatic=yes 11015 hardcode_shlibpath_var=unsupported 11016 if test yes = "$lt_cv_ld_force_load"; then 11017 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 11018 11019 else 11020 whole_archive_flag_spec='' 11021 fi 11022 link_all_deplibs=yes 11023 allow_undefined_flag=$_lt_dar_allow_undefined 11024 case $cc_basename in 11025 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11026 *) _lt_dar_can_shared=$GCC ;; 11027 esac 11028 if test yes = "$_lt_dar_can_shared"; then 11029 output_verbose_link_cmd=func_echo_all 11030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11032 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 11033 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 11034 11035 else 11036 ld_shlibs=no 11037 fi 11038 11039 ;; 11040 11041 dgux*) 11042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11043 hardcode_libdir_flag_spec='-L$libdir' 11044 hardcode_shlibpath_var=no 11045 ;; 11046 11047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11048 # support. Future versions do this automatically, but an explicit c++rt0.o 11049 # does not break anything, and helps significantly (at the cost of a little 11050 # extra space). 11051 freebsd2.2*) 11052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11053 hardcode_libdir_flag_spec='-R$libdir' 11054 hardcode_direct=yes 11055 hardcode_shlibpath_var=no 11056 ;; 11057 11058 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11059 freebsd2.*) 11060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11061 hardcode_direct=yes 11062 hardcode_minus_L=yes 11063 hardcode_shlibpath_var=no 11064 ;; 11065 11066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11067 freebsd* | dragonfly* | midnightbsd*) 11068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11069 hardcode_libdir_flag_spec='-R$libdir' 11070 hardcode_direct=yes 11071 hardcode_shlibpath_var=no 11072 ;; 11073 11074 hpux9*) 11075 if test yes = "$GCC"; then 11076 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11077 else 11078 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11079 fi 11080 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11081 hardcode_libdir_separator=: 11082 hardcode_direct=yes 11083 11084 # hardcode_minus_L: Not really in the search PATH, 11085 # but as the default location of the library. 11086 hardcode_minus_L=yes 11087 export_dynamic_flag_spec='$wl-E' 11088 ;; 11089 11090 hpux10*) 11091 if test yes,no = "$GCC,$with_gnu_ld"; then 11092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11093 else 11094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11095 fi 11096 if test no = "$with_gnu_ld"; then 11097 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11098 hardcode_libdir_separator=: 11099 hardcode_direct=yes 11100 hardcode_direct_absolute=yes 11101 export_dynamic_flag_spec='$wl-E' 11102 # hardcode_minus_L: Not really in the search PATH, 11103 # but as the default location of the library. 11104 hardcode_minus_L=yes 11105 fi 11106 ;; 11107 11108 hpux11*) 11109 if test yes,no = "$GCC,$with_gnu_ld"; then 11110 case $host_cpu in 11111 hppa*64*) 11112 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11113 ;; 11114 ia64*) 11115 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11116 ;; 11117 *) 11118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11119 ;; 11120 esac 11121 else 11122 case $host_cpu in 11123 hppa*64*) 11124 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11125 ;; 11126 ia64*) 11127 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11128 ;; 11129 *) 11130 11131 # Older versions of the 11.00 compiler do not understand -b yet 11132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11134printf %s "checking if $CC understands -b... " >&6; } 11135if test ${lt_cv_prog_compiler__b+y} 11136then : 11137 printf %s "(cached) " >&6 11138else case e in #( 11139 e) lt_cv_prog_compiler__b=no 11140 save_LDFLAGS=$LDFLAGS 11141 LDFLAGS="$LDFLAGS -b" 11142 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11144 # The linker can only warn and ignore the option if not recognized 11145 # So say no if there are warnings 11146 if test -s conftest.err; then 11147 # Append any errors to the config.log. 11148 cat conftest.err 1>&5 11149 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11151 if diff conftest.exp conftest.er2 >/dev/null; then 11152 lt_cv_prog_compiler__b=yes 11153 fi 11154 else 11155 lt_cv_prog_compiler__b=yes 11156 fi 11157 fi 11158 $RM -r conftest* 11159 LDFLAGS=$save_LDFLAGS 11160 ;; 11161esac 11162fi 11163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11164printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11165 11166if test yes = "$lt_cv_prog_compiler__b"; then 11167 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11168else 11169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11170fi 11171 11172 ;; 11173 esac 11174 fi 11175 if test no = "$with_gnu_ld"; then 11176 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11177 hardcode_libdir_separator=: 11178 11179 case $host_cpu in 11180 hppa*64*|ia64*) 11181 hardcode_direct=no 11182 hardcode_shlibpath_var=no 11183 ;; 11184 *) 11185 hardcode_direct=yes 11186 hardcode_direct_absolute=yes 11187 export_dynamic_flag_spec='$wl-E' 11188 11189 # hardcode_minus_L: Not really in the search PATH, 11190 # but as the default location of the library. 11191 hardcode_minus_L=yes 11192 ;; 11193 esac 11194 fi 11195 ;; 11196 11197 irix5* | irix6* | nonstopux*) 11198 if test yes = "$GCC"; then 11199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11200 # Try to use the -exported_symbol ld option, if it does not 11201 # work, assume that -exports_file does not work either and 11202 # implicitly export all symbols. 11203 # This should be the same for all languages, so no per-tag cache variable. 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11205printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11206if test ${lt_cv_irix_exported_symbol+y} 11207then : 11208 printf %s "(cached) " >&6 11209else case e in #( 11210 e) save_LDFLAGS=$LDFLAGS 11211 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11213/* end confdefs.h. */ 11214int foo (void) { return 0; } 11215_ACEOF 11216if ac_fn_c_try_link "$LINENO" 11217then : 11218 lt_cv_irix_exported_symbol=yes 11219else case e in #( 11220 e) lt_cv_irix_exported_symbol=no ;; 11221esac 11222fi 11223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11224 conftest$ac_exeext conftest.$ac_ext 11225 LDFLAGS=$save_LDFLAGS ;; 11226esac 11227fi 11228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11229printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11230 if test yes = "$lt_cv_irix_exported_symbol"; then 11231 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11232 fi 11233 else 11234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 11236 fi 11237 archive_cmds_need_lc='no' 11238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11239 hardcode_libdir_separator=: 11240 inherit_rpath=yes 11241 link_all_deplibs=yes 11242 ;; 11243 11244 linux*) 11245 case $cc_basename in 11246 tcc*) 11247 # Fabrice Bellard et al's Tiny C Compiler 11248 ld_shlibs=yes 11249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11250 ;; 11251 esac 11252 ;; 11253 11254 netbsd*) 11255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11257 else 11258 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11259 fi 11260 hardcode_libdir_flag_spec='-R$libdir' 11261 hardcode_direct=yes 11262 hardcode_shlibpath_var=no 11263 ;; 11264 11265 newsos6) 11266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11267 hardcode_direct=yes 11268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11269 hardcode_libdir_separator=: 11270 hardcode_shlibpath_var=no 11271 ;; 11272 11273 *nto* | *qnx*) 11274 ;; 11275 11276 openbsd* | bitrig*) 11277 if test -f /usr/libexec/ld.so; then 11278 hardcode_direct=yes 11279 hardcode_shlibpath_var=no 11280 hardcode_direct_absolute=yes 11281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11283 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11284 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11285 export_dynamic_flag_spec='$wl-E' 11286 else 11287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11288 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11289 fi 11290 else 11291 ld_shlibs=no 11292 fi 11293 ;; 11294 11295 os2*) 11296 hardcode_libdir_flag_spec='-L$libdir' 11297 hardcode_minus_L=yes 11298 allow_undefined_flag=unsupported 11299 shrext_cmds=.dll 11300 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11303 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11304 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11306 emximp -o $lib $output_objdir/$libname.def' 11307 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11310 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11311 prefix_cmds="$SED"~ 11312 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11313 prefix_cmds="$prefix_cmds -e 1d"; 11314 fi~ 11315 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11316 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11318 emximp -o $lib $output_objdir/$libname.def' 11319 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11320 enable_shared_with_static_runtimes=yes 11321 file_list_spec='@' 11322 ;; 11323 11324 osf3*) 11325 if test yes = "$GCC"; then 11326 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11327 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11328 else 11329 allow_undefined_flag=' -expect_unresolved \*' 11330 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11331 fi 11332 archive_cmds_need_lc='no' 11333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11334 hardcode_libdir_separator=: 11335 ;; 11336 11337 osf4* | osf5*) # as osf3* with the addition of -msym flag 11338 if test yes = "$GCC"; then 11339 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11340 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11342 else 11343 allow_undefined_flag=' -expect_unresolved \*' 11344 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11345 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 11346 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 11347 11348 # Both c and cxx compiler support -rpath directly 11349 hardcode_libdir_flag_spec='-rpath $libdir' 11350 fi 11351 archive_cmds_need_lc='no' 11352 hardcode_libdir_separator=: 11353 ;; 11354 11355 solaris*) 11356 no_undefined_flag=' -z defs' 11357 if test yes = "$GCC"; then 11358 wlarc='$wl' 11359 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11360 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11361 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11362 else 11363 case `$CC -V 2>&1` in 11364 *"Compilers 5.0"*) 11365 wlarc='' 11366 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11368 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11369 ;; 11370 *) 11371 wlarc='$wl' 11372 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11374 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11375 ;; 11376 esac 11377 fi 11378 hardcode_libdir_flag_spec='-R$libdir' 11379 hardcode_shlibpath_var=no 11380 case $host_os in 11381 solaris2.[0-5] | solaris2.[0-5].*) ;; 11382 *) 11383 # The compiler driver will combine and reorder linker options, 11384 # but understands '-z linker_flag'. GCC discards it without '$wl', 11385 # but is careful enough not to reorder. 11386 # Supported since Solaris 2.6 (maybe 2.5.1?) 11387 if test yes = "$GCC"; then 11388 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11389 else 11390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11391 fi 11392 ;; 11393 esac 11394 link_all_deplibs=yes 11395 ;; 11396 11397 sunos4*) 11398 if test sequent = "$host_vendor"; then 11399 # Use $CC to link under sequent, because it throws in some extra .o 11400 # files that make .init and .fini sections work. 11401 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11402 else 11403 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11404 fi 11405 hardcode_libdir_flag_spec='-L$libdir' 11406 hardcode_direct=yes 11407 hardcode_minus_L=yes 11408 hardcode_shlibpath_var=no 11409 ;; 11410 11411 sysv4) 11412 case $host_vendor in 11413 sni) 11414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11415 hardcode_direct=yes # is this really true??? 11416 ;; 11417 siemens) 11418 ## LD is ld it makes a PLAMLIB 11419 ## CC just makes a GrossModule. 11420 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11421 reload_cmds='$CC -r -o $output$reload_objs' 11422 hardcode_direct=no 11423 ;; 11424 motorola) 11425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11426 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11427 ;; 11428 esac 11429 runpath_var='LD_RUN_PATH' 11430 hardcode_shlibpath_var=no 11431 ;; 11432 11433 sysv4.3*) 11434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11435 hardcode_shlibpath_var=no 11436 export_dynamic_flag_spec='-Bexport' 11437 ;; 11438 11439 sysv4*MP*) 11440 if test -d /usr/nec; then 11441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11442 hardcode_shlibpath_var=no 11443 runpath_var=LD_RUN_PATH 11444 hardcode_runpath_var=yes 11445 ld_shlibs=yes 11446 fi 11447 ;; 11448 11449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11450 no_undefined_flag='$wl-z,text' 11451 archive_cmds_need_lc=no 11452 hardcode_shlibpath_var=no 11453 runpath_var='LD_RUN_PATH' 11454 11455 if test yes = "$GCC"; then 11456 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11457 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11458 else 11459 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11460 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11461 fi 11462 ;; 11463 11464 sysv5* | sco3.2v5* | sco5v6*) 11465 # Note: We CANNOT use -z defs as we might desire, because we do not 11466 # link with -lc, and that would cause any symbols used from libc to 11467 # always be unresolved, which means just about no library would 11468 # ever link correctly. If we're not using GNU ld we use -z text 11469 # though, which does catch some bad symbols but isn't as heavy-handed 11470 # as -z defs. 11471 no_undefined_flag='$wl-z,text' 11472 allow_undefined_flag='$wl-z,nodefs' 11473 archive_cmds_need_lc=no 11474 hardcode_shlibpath_var=no 11475 hardcode_libdir_flag_spec='$wl-R,$libdir' 11476 hardcode_libdir_separator=':' 11477 link_all_deplibs=yes 11478 export_dynamic_flag_spec='$wl-Bexport' 11479 runpath_var='LD_RUN_PATH' 11480 11481 if test yes = "$GCC"; then 11482 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11483 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11484 else 11485 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11486 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11487 fi 11488 ;; 11489 11490 uts4*) 11491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11492 hardcode_libdir_flag_spec='-L$libdir' 11493 hardcode_shlibpath_var=no 11494 ;; 11495 11496 *) 11497 ld_shlibs=no 11498 ;; 11499 esac 11500 11501 if test sni = "$host_vendor"; then 11502 case $host in 11503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11504 export_dynamic_flag_spec='$wl-Blargedynsym' 11505 ;; 11506 esac 11507 fi 11508 fi 11509 11510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11511printf "%s\n" "$ld_shlibs" >&6; } 11512test no = "$ld_shlibs" && can_build_shared=no 11513 11514with_gnu_ld=$with_gnu_ld 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530# 11531# Do we need to explicitly link libc? 11532# 11533case "x$archive_cmds_need_lc" in 11534x|xyes) 11535 # Assume -lc should be added 11536 archive_cmds_need_lc=yes 11537 11538 if test yes,yes = "$GCC,$enable_shared"; then 11539 case $archive_cmds in 11540 *'~'*) 11541 # FIXME: we may have to deal with multi-command sequences. 11542 ;; 11543 '$CC '*) 11544 # Test whether the compiler implicitly links with -lc since on some 11545 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11546 # to ld, don't add -lc before -lgcc. 11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11548printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11549if test ${lt_cv_archive_cmds_need_lc+y} 11550then : 11551 printf %s "(cached) " >&6 11552else case e in #( 11553 e) $RM conftest* 11554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11555 11556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11557 (eval $ac_compile) 2>&5 11558 ac_status=$? 11559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11560 test $ac_status = 0; } 2>conftest.err; then 11561 soname=conftest 11562 lib=conftest 11563 libobjs=conftest.$ac_objext 11564 deplibs= 11565 wl=$lt_prog_compiler_wl 11566 pic_flag=$lt_prog_compiler_pic 11567 compiler_flags=-v 11568 linker_flags=-v 11569 verstring= 11570 output_objdir=. 11571 libname=conftest 11572 lt_save_allow_undefined_flag=$allow_undefined_flag 11573 allow_undefined_flag= 11574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11575 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11576 ac_status=$? 11577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11578 test $ac_status = 0; } 11579 then 11580 lt_cv_archive_cmds_need_lc=no 11581 else 11582 lt_cv_archive_cmds_need_lc=yes 11583 fi 11584 allow_undefined_flag=$lt_save_allow_undefined_flag 11585 else 11586 cat conftest.err 1>&5 11587 fi 11588 $RM conftest* 11589 ;; 11590esac 11591fi 11592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11593printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11594 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11595 ;; 11596 esac 11597 fi 11598 ;; 11599esac 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11753printf %s "checking dynamic linker characteristics... " >&6; } 11754 11755if test yes = "$GCC"; then 11756 case $host_os in 11757 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11758 *) lt_awk_arg='/^libraries:/' ;; 11759 esac 11760 case $host_os in 11761 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11762 *) lt_sed_strip_eq='s|=/|/|g' ;; 11763 esac 11764 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11765 case $lt_search_path_spec in 11766 *\;*) 11767 # if the path contains ";" then we assume it to be the separator 11768 # otherwise default to the standard path separator (i.e. ":") - it is 11769 # assumed that no part of a normal pathname contains ";" but that should 11770 # okay in the real world where ";" in dirpaths is itself problematic. 11771 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11772 ;; 11773 *) 11774 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11775 ;; 11776 esac 11777 # Ok, now we have the path, separated by spaces, we can step through it 11778 # and add multilib dir if necessary... 11779 lt_tmp_lt_search_path_spec= 11780 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11781 # ...but if some path component already ends with the multilib dir we assume 11782 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11783 case "$lt_multi_os_dir; $lt_search_path_spec " in 11784 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11785 lt_multi_os_dir= 11786 ;; 11787 esac 11788 for lt_sys_path in $lt_search_path_spec; do 11789 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11790 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11791 elif test -n "$lt_multi_os_dir"; then 11792 test -d "$lt_sys_path" && \ 11793 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11794 fi 11795 done 11796 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11797BEGIN {RS = " "; FS = "/|\n";} { 11798 lt_foo = ""; 11799 lt_count = 0; 11800 for (lt_i = NF; lt_i > 0; lt_i--) { 11801 if ($lt_i != "" && $lt_i != ".") { 11802 if ($lt_i == "..") { 11803 lt_count++; 11804 } else { 11805 if (lt_count == 0) { 11806 lt_foo = "/" $lt_i lt_foo; 11807 } else { 11808 lt_count--; 11809 } 11810 } 11811 } 11812 } 11813 if (lt_foo != "") { lt_freq[lt_foo]++; } 11814 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11815}'` 11816 # AWK program above erroneously prepends '/' to C:/dos/paths 11817 # for these hosts. 11818 case $host_os in 11819 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11820 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11821 esac 11822 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11823else 11824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11825fi 11826library_names_spec= 11827libname_spec='lib$name' 11828soname_spec= 11829shrext_cmds=.so 11830postinstall_cmds= 11831postuninstall_cmds= 11832finish_cmds= 11833finish_eval= 11834shlibpath_var= 11835shlibpath_overrides_runpath=unknown 11836version_type=none 11837dynamic_linker="$host_os ld.so" 11838sys_lib_dlsearch_path_spec="/lib /usr/lib" 11839need_lib_prefix=unknown 11840hardcode_into_libs=no 11841 11842# when you set need_version to no, make sure it does not cause -set_version 11843# flags to be left without arguments 11844need_version=unknown 11845 11846 11847 11848case $host_os in 11849aix3*) 11850 version_type=linux # correct to gnu/linux during the next big refactor 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11852 shlibpath_var=LIBPATH 11853 11854 # AIX 3 has no versioning support, so we append a major version to the name. 11855 soname_spec='$libname$release$shared_ext$major' 11856 ;; 11857 11858aix[4-9]*) 11859 version_type=linux # correct to gnu/linux during the next big refactor 11860 need_lib_prefix=no 11861 need_version=no 11862 hardcode_into_libs=yes 11863 if test ia64 = "$host_cpu"; then 11864 # AIX 5 supports IA64 11865 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11866 shlibpath_var=LD_LIBRARY_PATH 11867 else 11868 # With GCC up to 2.95.x, collect2 would create an import file 11869 # for dependence libraries. The import file would start with 11870 # the line '#! .'. This would cause the generated library to 11871 # depend on '.', always an invalid library. This was fixed in 11872 # development snapshots of GCC prior to 3.0. 11873 case $host_os in 11874 aix4 | aix4.[01] | aix4.[01].*) 11875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11876 echo ' yes ' 11877 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11878 : 11879 else 11880 can_build_shared=no 11881 fi 11882 ;; 11883 esac 11884 # Using Import Files as archive members, it is possible to support 11885 # filename-based versioning of shared library archives on AIX. While 11886 # this would work for both with and without runtime linking, it will 11887 # prevent static linking of such archives. So we do filename-based 11888 # shared library versioning with .so extension only, which is used 11889 # when both runtime linking and shared linking is enabled. 11890 # Unfortunately, runtime linking may impact performance, so we do 11891 # not want this to be the default eventually. Also, we use the 11892 # versioned .so libs for executables only if there is the -brtl 11893 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11894 # To allow for filename-based versioning support, we need to create 11895 # libNAME.so.V as an archive file, containing: 11896 # *) an Import File, referring to the versioned filename of the 11897 # archive as well as the shared archive member, telling the 11898 # bitwidth (32 or 64) of that shared object, and providing the 11899 # list of exported symbols of that shared object, eventually 11900 # decorated with the 'weak' keyword 11901 # *) the shared object with the F_LOADONLY flag set, to really avoid 11902 # it being seen by the linker. 11903 # At run time we better use the real file rather than another symlink, 11904 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11905 11906 case $with_aix_soname,$aix_use_runtimelinking in 11907 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11908 # soname into executable. Probably we can add versioning support to 11909 # collect2, so additional links can be useful in future. 11910 aix,yes) # traditional libtool 11911 dynamic_linker='AIX unversionable lib.so' 11912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11913 # instead of lib<name>.a to let people know that these are not 11914 # typical AIX shared libraries. 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 ;; 11917 aix,no) # traditional AIX only 11918 dynamic_linker='AIX lib.a(lib.so.V)' 11919 # We preserve .a as extension for shared libraries through AIX4.2 11920 # and later when we are not doing run time linking. 11921 library_names_spec='$libname$release.a $libname.a' 11922 soname_spec='$libname$release$shared_ext$major' 11923 ;; 11924 svr4,*) # full svr4 only 11925 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11926 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11927 # We do not specify a path in Import Files, so LIBPATH fires. 11928 shlibpath_overrides_runpath=yes 11929 ;; 11930 *,yes) # both, prefer svr4 11931 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11932 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11933 # unpreferred sharedlib libNAME.a needs extra handling 11934 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11935 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11936 # We do not specify a path in Import Files, so LIBPATH fires. 11937 shlibpath_overrides_runpath=yes 11938 ;; 11939 *,no) # both, prefer aix 11940 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11941 library_names_spec='$libname$release.a $libname.a' 11942 soname_spec='$libname$release$shared_ext$major' 11943 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11944 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11945 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11946 ;; 11947 esac 11948 shlibpath_var=LIBPATH 11949 fi 11950 ;; 11951 11952amigaos*) 11953 case $host_cpu in 11954 powerpc) 11955 # Since July 2007 AmigaOS4 officially supports .so libraries. 11956 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11958 ;; 11959 m68k) 11960 library_names_spec='$libname.ixlibrary $libname.a' 11961 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11962 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11963 ;; 11964 esac 11965 ;; 11966 11967beos*) 11968 library_names_spec='$libname$shared_ext' 11969 dynamic_linker="$host_os ld.so" 11970 shlibpath_var=LIBRARY_PATH 11971 ;; 11972 11973bsdi[45]*) 11974 version_type=linux # correct to gnu/linux during the next big refactor 11975 need_version=no 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11982 # the default ld.so.conf also contains /usr/contrib/lib and 11983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11984 # libtool to hard-code these into programs 11985 ;; 11986 11987cygwin* | mingw* | pw32* | cegcc*) 11988 version_type=windows 11989 shrext_cmds=.dll 11990 need_version=no 11991 need_lib_prefix=no 11992 11993 case $GCC,$cc_basename in 11994 yes,*) 11995 # gcc 11996 library_names_spec='$libname.dll.a' 11997 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11998 postinstall_cmds='base_file=`basename \$file`~ 11999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12000 dldir=$destdir/`dirname \$dlpath`~ 12001 test -d \$dldir || mkdir -p \$dldir~ 12002 $install_prog $dir/$dlname \$dldir/$dlname~ 12003 chmod a+x \$dldir/$dlname~ 12004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12006 fi' 12007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12008 dlpath=$dir/\$dldll~ 12009 $RM \$dlpath' 12010 shlibpath_overrides_runpath=yes 12011 12012 case $host_os in 12013 cygwin*) 12014 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12015 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12016 12017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12018 ;; 12019 mingw* | cegcc*) 12020 # MinGW DLLs use traditional 'lib' prefix 12021 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12022 ;; 12023 pw32*) 12024 # pw32 DLLs use 'pw' prefix rather than 'lib' 12025 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12026 ;; 12027 esac 12028 dynamic_linker='Win32 ld.exe' 12029 ;; 12030 12031 *,cl* | *,icl*) 12032 # Native MSVC or ICC 12033 libname_spec='$name' 12034 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12035 library_names_spec='$libname.dll.lib' 12036 12037 case $build_os in 12038 mingw*) 12039 sys_lib_search_path_spec= 12040 lt_save_ifs=$IFS 12041 IFS=';' 12042 for lt_path in $LIB 12043 do 12044 IFS=$lt_save_ifs 12045 # Let DOS variable expansion print the short 8.3 style file name. 12046 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12047 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12048 done 12049 IFS=$lt_save_ifs 12050 # Convert to MSYS style. 12051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12052 ;; 12053 cygwin*) 12054 # Convert to unix form, then to dos form, then back to unix form 12055 # but this time dos style (no spaces!) so that the unix form looks 12056 # like /cygdrive/c/PROGRA~1:/cygdr... 12057 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12058 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12059 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12060 ;; 12061 *) 12062 sys_lib_search_path_spec=$LIB 12063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12064 # It is most probably a Windows format PATH. 12065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12066 else 12067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12068 fi 12069 # FIXME: find the short name or the path components, as spaces are 12070 # common. (e.g. "Program Files" -> "PROGRA~1") 12071 ;; 12072 esac 12073 12074 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12075 postinstall_cmds='base_file=`basename \$file`~ 12076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12077 dldir=$destdir/`dirname \$dlpath`~ 12078 test -d \$dldir || mkdir -p \$dldir~ 12079 $install_prog $dir/$dlname \$dldir/$dlname' 12080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12081 dlpath=$dir/\$dldll~ 12082 $RM \$dlpath' 12083 shlibpath_overrides_runpath=yes 12084 dynamic_linker='Win32 link.exe' 12085 ;; 12086 12087 *) 12088 # Assume MSVC and ICC wrapper 12089 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12090 dynamic_linker='Win32 ld.exe' 12091 ;; 12092 esac 12093 # FIXME: first we should search . and the directory the executable is in 12094 shlibpath_var=PATH 12095 ;; 12096 12097darwin* | rhapsody*) 12098 dynamic_linker="$host_os dyld" 12099 version_type=darwin 12100 need_lib_prefix=no 12101 need_version=no 12102 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12103 soname_spec='$libname$release$major$shared_ext' 12104 shlibpath_overrides_runpath=yes 12105 shlibpath_var=DYLD_LIBRARY_PATH 12106 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12107 12108 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12110 ;; 12111 12112dgux*) 12113 version_type=linux # correct to gnu/linux during the next big refactor 12114 need_lib_prefix=no 12115 need_version=no 12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12117 soname_spec='$libname$release$shared_ext$major' 12118 shlibpath_var=LD_LIBRARY_PATH 12119 ;; 12120 12121freebsd* | dragonfly* | midnightbsd*) 12122 # DragonFly does not have aout. When/if they implement a new 12123 # versioning mechanism, adjust this. 12124 if test -x /usr/bin/objformat; then 12125 objformat=`/usr/bin/objformat` 12126 else 12127 case $host_os in 12128 freebsd[23].*) objformat=aout ;; 12129 *) objformat=elf ;; 12130 esac 12131 fi 12132 version_type=freebsd-$objformat 12133 case $version_type in 12134 freebsd-elf*) 12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12136 soname_spec='$libname$release$shared_ext$major' 12137 need_version=no 12138 need_lib_prefix=no 12139 ;; 12140 freebsd-*) 12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12142 need_version=yes 12143 ;; 12144 esac 12145 shlibpath_var=LD_LIBRARY_PATH 12146 case $host_os in 12147 freebsd2.*) 12148 shlibpath_overrides_runpath=yes 12149 ;; 12150 freebsd3.[01]* | freebsdelf3.[01]*) 12151 shlibpath_overrides_runpath=yes 12152 hardcode_into_libs=yes 12153 ;; 12154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12156 shlibpath_overrides_runpath=no 12157 hardcode_into_libs=yes 12158 ;; 12159 *) # from 4.6 on, and DragonFly 12160 shlibpath_overrides_runpath=yes 12161 hardcode_into_libs=yes 12162 ;; 12163 esac 12164 ;; 12165 12166haiku*) 12167 version_type=linux # correct to gnu/linux during the next big refactor 12168 need_lib_prefix=no 12169 need_version=no 12170 dynamic_linker="$host_os runtime_loader" 12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12172 soname_spec='$libname$release$shared_ext$major' 12173 shlibpath_var=LIBRARY_PATH 12174 shlibpath_overrides_runpath=no 12175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12176 hardcode_into_libs=yes 12177 ;; 12178 12179hpux9* | hpux10* | hpux11*) 12180 # Give a soname corresponding to the major version so that dld.sl refuses to 12181 # link against other versions. 12182 version_type=sunos 12183 need_lib_prefix=no 12184 need_version=no 12185 case $host_cpu in 12186 ia64*) 12187 shrext_cmds='.so' 12188 hardcode_into_libs=yes 12189 dynamic_linker="$host_os dld.so" 12190 shlibpath_var=LD_LIBRARY_PATH 12191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12193 soname_spec='$libname$release$shared_ext$major' 12194 if test 32 = "$HPUX_IA64_MODE"; then 12195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12196 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12197 else 12198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12199 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12200 fi 12201 ;; 12202 hppa*64*) 12203 shrext_cmds='.sl' 12204 hardcode_into_libs=yes 12205 dynamic_linker="$host_os dld.sl" 12206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12209 soname_spec='$libname$release$shared_ext$major' 12210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12212 ;; 12213 *) 12214 shrext_cmds='.sl' 12215 dynamic_linker="$host_os dld.sl" 12216 shlibpath_var=SHLIB_PATH 12217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12219 soname_spec='$libname$release$shared_ext$major' 12220 ;; 12221 esac 12222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12223 postinstall_cmds='chmod 555 $lib' 12224 # or fails outright, so override atomically: 12225 install_override_mode=555 12226 ;; 12227 12228interix[3-9]*) 12229 version_type=linux # correct to gnu/linux during the next big refactor 12230 need_lib_prefix=no 12231 need_version=no 12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12233 soname_spec='$libname$release$shared_ext$major' 12234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12235 shlibpath_var=LD_LIBRARY_PATH 12236 shlibpath_overrides_runpath=no 12237 hardcode_into_libs=yes 12238 ;; 12239 12240irix5* | irix6* | nonstopux*) 12241 case $host_os in 12242 nonstopux*) version_type=nonstopux ;; 12243 *) 12244 if test yes = "$lt_cv_prog_gnu_ld"; then 12245 version_type=linux # correct to gnu/linux during the next big refactor 12246 else 12247 version_type=irix 12248 fi ;; 12249 esac 12250 need_lib_prefix=no 12251 need_version=no 12252 soname_spec='$libname$release$shared_ext$major' 12253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12254 case $host_os in 12255 irix5* | nonstopux*) 12256 libsuff= shlibsuff= 12257 ;; 12258 *) 12259 case $LD in # libtool.m4 will add one of these switches to LD 12260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12261 libsuff= shlibsuff= libmagic=32-bit;; 12262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12263 libsuff=32 shlibsuff=N32 libmagic=N32;; 12264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12265 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12266 *) libsuff= shlibsuff= libmagic=never-match;; 12267 esac 12268 ;; 12269 esac 12270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12271 shlibpath_overrides_runpath=no 12272 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12273 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12274 hardcode_into_libs=yes 12275 ;; 12276 12277# No shared lib support for Linux oldld, aout, or coff. 12278linux*oldld* | linux*aout* | linux*coff*) 12279 dynamic_linker=no 12280 ;; 12281 12282linux*android*) 12283 version_type=none # Android doesn't support versioned libraries. 12284 need_lib_prefix=no 12285 need_version=no 12286 library_names_spec='$libname$release$shared_ext' 12287 soname_spec='$libname$release$shared_ext' 12288 finish_cmds= 12289 shlibpath_var=LD_LIBRARY_PATH 12290 shlibpath_overrides_runpath=yes 12291 12292 # This implies no fast_install, which is unacceptable. 12293 # Some rework will be needed to allow for fast_install 12294 # before this can be enabled. 12295 hardcode_into_libs=yes 12296 12297 dynamic_linker='Android linker' 12298 # Don't embed -rpath directories since the linker doesn't support them. 12299 hardcode_libdir_flag_spec='-L$libdir' 12300 ;; 12301 12302# This must be glibc/ELF. 12303linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12304 version_type=linux # correct to gnu/linux during the next big refactor 12305 need_lib_prefix=no 12306 need_version=no 12307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12308 soname_spec='$libname$release$shared_ext$major' 12309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12310 shlibpath_var=LD_LIBRARY_PATH 12311 shlibpath_overrides_runpath=no 12312 12313 # Some binutils ld are patched to set DT_RUNPATH 12314 if test ${lt_cv_shlibpath_overrides_runpath+y} 12315then : 12316 printf %s "(cached) " >&6 12317else case e in #( 12318 e) lt_cv_shlibpath_overrides_runpath=no 12319 save_LDFLAGS=$LDFLAGS 12320 save_libdir=$libdir 12321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12324/* end confdefs.h. */ 12325 12326int 12327main (void) 12328{ 12329 12330 ; 12331 return 0; 12332} 12333_ACEOF 12334if ac_fn_c_try_link "$LINENO" 12335then : 12336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12337then : 12338 lt_cv_shlibpath_overrides_runpath=yes 12339fi 12340fi 12341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12342 conftest$ac_exeext conftest.$ac_ext 12343 LDFLAGS=$save_LDFLAGS 12344 libdir=$save_libdir 12345 ;; 12346esac 12347fi 12348 12349 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12350 12351 # This implies no fast_install, which is unacceptable. 12352 # Some rework will be needed to allow for fast_install 12353 # before this can be enabled. 12354 hardcode_into_libs=yes 12355 12356 # Ideally, we could use ldconfig to report *all* directores which are 12357 # searched for libraries, however this is still not possible. Aside from not 12358 # being certain /sbin/ldconfig is available, command 12359 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12360 # even though it is searched at run-time. Try to do the best guess by 12361 # appending ld.so.conf contents (and includes) to the search path. 12362 if test -f /etc/ld.so.conf; then 12363 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 12364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12365 fi 12366 12367 # We used to test for /lib/ld.so.1 and disable shared libraries on 12368 # powerpc, because MkLinux only supported shared libraries with the 12369 # GNU dynamic linker. Since this was broken with cross compilers, 12370 # most powerpc-linux boxes support dynamic linking these days and 12371 # people can always --disable-shared, the test was removed, and we 12372 # assume the GNU/Linux dynamic linker is in use. 12373 dynamic_linker='GNU/Linux ld.so' 12374 ;; 12375 12376netbsd*) 12377 version_type=sunos 12378 need_lib_prefix=no 12379 need_version=no 12380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12383 dynamic_linker='NetBSD (a.out) ld.so' 12384 else 12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12386 soname_spec='$libname$release$shared_ext$major' 12387 dynamic_linker='NetBSD ld.elf_so' 12388 fi 12389 shlibpath_var=LD_LIBRARY_PATH 12390 shlibpath_overrides_runpath=yes 12391 hardcode_into_libs=yes 12392 ;; 12393 12394newsos6) 12395 version_type=linux # correct to gnu/linux during the next big refactor 12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12397 shlibpath_var=LD_LIBRARY_PATH 12398 shlibpath_overrides_runpath=yes 12399 ;; 12400 12401*nto* | *qnx*) 12402 version_type=qnx 12403 need_lib_prefix=no 12404 need_version=no 12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12406 soname_spec='$libname$release$shared_ext$major' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 shlibpath_overrides_runpath=no 12409 hardcode_into_libs=yes 12410 dynamic_linker='ldqnx.so' 12411 ;; 12412 12413openbsd* | bitrig*) 12414 version_type=sunos 12415 sys_lib_dlsearch_path_spec=/usr/lib 12416 need_lib_prefix=no 12417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12418 need_version=no 12419 else 12420 need_version=yes 12421 fi 12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12424 shlibpath_var=LD_LIBRARY_PATH 12425 shlibpath_overrides_runpath=yes 12426 ;; 12427 12428os2*) 12429 libname_spec='$name' 12430 version_type=windows 12431 shrext_cmds=.dll 12432 need_version=no 12433 need_lib_prefix=no 12434 # OS/2 can only load a DLL with a base name of 8 characters or less. 12435 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12436 v=$($ECHO $release$versuffix | tr -d .-); 12437 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12438 $ECHO $n$v`$shared_ext' 12439 library_names_spec='${libname}_dll.$libext' 12440 dynamic_linker='OS/2 ld.exe' 12441 shlibpath_var=BEGINLIBPATH 12442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12444 postinstall_cmds='base_file=`basename \$file`~ 12445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12446 dldir=$destdir/`dirname \$dlpath`~ 12447 test -d \$dldir || mkdir -p \$dldir~ 12448 $install_prog $dir/$dlname \$dldir/$dlname~ 12449 chmod a+x \$dldir/$dlname~ 12450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12452 fi' 12453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12454 dlpath=$dir/\$dldll~ 12455 $RM \$dlpath' 12456 ;; 12457 12458osf3* | osf4* | osf5*) 12459 version_type=osf 12460 need_lib_prefix=no 12461 need_version=no 12462 soname_spec='$libname$release$shared_ext$major' 12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12467 ;; 12468 12469rdos*) 12470 dynamic_linker=no 12471 ;; 12472 12473solaris*) 12474 version_type=linux # correct to gnu/linux during the next big refactor 12475 need_lib_prefix=no 12476 need_version=no 12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12478 soname_spec='$libname$release$shared_ext$major' 12479 shlibpath_var=LD_LIBRARY_PATH 12480 shlibpath_overrides_runpath=yes 12481 hardcode_into_libs=yes 12482 # ldd complains unless libraries are executable 12483 postinstall_cmds='chmod +x $lib' 12484 ;; 12485 12486sunos4*) 12487 version_type=sunos 12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12489 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12490 shlibpath_var=LD_LIBRARY_PATH 12491 shlibpath_overrides_runpath=yes 12492 if test yes = "$with_gnu_ld"; then 12493 need_lib_prefix=no 12494 fi 12495 need_version=yes 12496 ;; 12497 12498sysv4 | sysv4.3*) 12499 version_type=linux # correct to gnu/linux during the next big refactor 12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12501 soname_spec='$libname$release$shared_ext$major' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 case $host_vendor in 12504 sni) 12505 shlibpath_overrides_runpath=no 12506 need_lib_prefix=no 12507 runpath_var=LD_RUN_PATH 12508 ;; 12509 siemens) 12510 need_lib_prefix=no 12511 ;; 12512 motorola) 12513 need_lib_prefix=no 12514 need_version=no 12515 shlibpath_overrides_runpath=no 12516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12517 ;; 12518 esac 12519 ;; 12520 12521sysv4*MP*) 12522 if test -d /usr/nec; then 12523 version_type=linux # correct to gnu/linux during the next big refactor 12524 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12525 soname_spec='$libname$shared_ext.$major' 12526 shlibpath_var=LD_LIBRARY_PATH 12527 fi 12528 ;; 12529 12530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12531 version_type=sco 12532 need_lib_prefix=no 12533 need_version=no 12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12535 soname_spec='$libname$release$shared_ext$major' 12536 shlibpath_var=LD_LIBRARY_PATH 12537 shlibpath_overrides_runpath=yes 12538 hardcode_into_libs=yes 12539 if test yes = "$with_gnu_ld"; then 12540 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12541 else 12542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12543 case $host_os in 12544 sco3.2v5*) 12545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12546 ;; 12547 esac 12548 fi 12549 sys_lib_dlsearch_path_spec='/usr/lib' 12550 ;; 12551 12552tpf*) 12553 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12554 version_type=linux # correct to gnu/linux during the next big refactor 12555 need_lib_prefix=no 12556 need_version=no 12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12558 shlibpath_var=LD_LIBRARY_PATH 12559 shlibpath_overrides_runpath=no 12560 hardcode_into_libs=yes 12561 ;; 12562 12563uts4*) 12564 version_type=linux # correct to gnu/linux during the next big refactor 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12566 soname_spec='$libname$release$shared_ext$major' 12567 shlibpath_var=LD_LIBRARY_PATH 12568 ;; 12569 12570*) 12571 dynamic_linker=no 12572 ;; 12573esac 12574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12575printf "%s\n" "$dynamic_linker" >&6; } 12576test no = "$dynamic_linker" && can_build_shared=no 12577 12578variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12579if test yes = "$GCC"; then 12580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12581fi 12582 12583if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12584 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12585fi 12586 12587if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12588 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12589fi 12590 12591# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12592configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12593 12594# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12595func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12596 12597# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12598configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12697printf %s "checking how to hardcode library paths into programs... " >&6; } 12698hardcode_action= 12699if test -n "$hardcode_libdir_flag_spec" || 12700 test -n "$runpath_var" || 12701 test yes = "$hardcode_automatic"; then 12702 12703 # We can hardcode non-existent directories. 12704 if test no != "$hardcode_direct" && 12705 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12706 # have to relink, otherwise we might link with an installed library 12707 # when we should be linking with a yet-to-be-installed one 12708 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12709 test no != "$hardcode_minus_L"; then 12710 # Linking always hardcodes the temporary library directory. 12711 hardcode_action=relink 12712 else 12713 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12714 hardcode_action=immediate 12715 fi 12716else 12717 # We cannot hardcode anything, or else we can only hardcode existing 12718 # directories. 12719 hardcode_action=unsupported 12720fi 12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12722printf "%s\n" "$hardcode_action" >&6; } 12723 12724if test relink = "$hardcode_action" || 12725 test yes = "$inherit_rpath"; then 12726 # Fast installation is not supported 12727 enable_fast_install=no 12728elif test yes = "$shlibpath_overrides_runpath" || 12729 test no = "$enable_shared"; then 12730 # Fast installation is not necessary 12731 enable_fast_install=needless 12732fi 12733 12734 12735 12736 12737 12738 12739 if test yes != "$enable_dlopen"; then 12740 enable_dlopen=unknown 12741 enable_dlopen_self=unknown 12742 enable_dlopen_self_static=unknown 12743else 12744 lt_cv_dlopen=no 12745 lt_cv_dlopen_libs= 12746 12747 case $host_os in 12748 beos*) 12749 lt_cv_dlopen=load_add_on 12750 lt_cv_dlopen_libs= 12751 lt_cv_dlopen_self=yes 12752 ;; 12753 12754 mingw* | pw32* | cegcc*) 12755 lt_cv_dlopen=LoadLibrary 12756 lt_cv_dlopen_libs= 12757 ;; 12758 12759 cygwin*) 12760 lt_cv_dlopen=dlopen 12761 lt_cv_dlopen_libs= 12762 ;; 12763 12764 darwin*) 12765 # if libdl is installed we need to link against it 12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12767printf %s "checking for dlopen in -ldl... " >&6; } 12768if test ${ac_cv_lib_dl_dlopen+y} 12769then : 12770 printf %s "(cached) " >&6 12771else case e in #( 12772 e) ac_check_lib_save_LIBS=$LIBS 12773LIBS="-ldl $LIBS" 12774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12775/* end confdefs.h. */ 12776 12777/* Override any GCC internal prototype to avoid an error. 12778 Use char because int might match the return type of a GCC 12779 builtin and then its argument prototype would still apply. 12780 The 'extern "C"' is for builds by C++ compilers; 12781 although this is not generally supported in C code supporting it here 12782 has little cost and some practical benefit (sr 110532). */ 12783#ifdef __cplusplus 12784extern "C" 12785#endif 12786char dlopen (void); 12787int 12788main (void) 12789{ 12790return dlopen (); 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795if ac_fn_c_try_link "$LINENO" 12796then : 12797 ac_cv_lib_dl_dlopen=yes 12798else case e in #( 12799 e) ac_cv_lib_dl_dlopen=no ;; 12800esac 12801fi 12802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12803 conftest$ac_exeext conftest.$ac_ext 12804LIBS=$ac_check_lib_save_LIBS ;; 12805esac 12806fi 12807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12808printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12809if test "x$ac_cv_lib_dl_dlopen" = xyes 12810then : 12811 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12812else case e in #( 12813 e) 12814 lt_cv_dlopen=dyld 12815 lt_cv_dlopen_libs= 12816 lt_cv_dlopen_self=yes 12817 ;; 12818esac 12819fi 12820 12821 ;; 12822 12823 tpf*) 12824 # Don't try to run any link tests for TPF. We know it's impossible 12825 # because TPF is a cross-compiler, and we know how we open DSOs. 12826 lt_cv_dlopen=dlopen 12827 lt_cv_dlopen_libs= 12828 lt_cv_dlopen_self=no 12829 ;; 12830 12831 *) 12832 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12833if test "x$ac_cv_func_shl_load" = xyes 12834then : 12835 lt_cv_dlopen=shl_load 12836else case e in #( 12837 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12838printf %s "checking for shl_load in -ldld... " >&6; } 12839if test ${ac_cv_lib_dld_shl_load+y} 12840then : 12841 printf %s "(cached) " >&6 12842else case e in #( 12843 e) ac_check_lib_save_LIBS=$LIBS 12844LIBS="-ldld $LIBS" 12845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12846/* end confdefs.h. */ 12847 12848/* Override any GCC internal prototype to avoid an error. 12849 Use char because int might match the return type of a GCC 12850 builtin and then its argument prototype would still apply. 12851 The 'extern "C"' is for builds by C++ compilers; 12852 although this is not generally supported in C code supporting it here 12853 has little cost and some practical benefit (sr 110532). */ 12854#ifdef __cplusplus 12855extern "C" 12856#endif 12857char shl_load (void); 12858int 12859main (void) 12860{ 12861return shl_load (); 12862 ; 12863 return 0; 12864} 12865_ACEOF 12866if ac_fn_c_try_link "$LINENO" 12867then : 12868 ac_cv_lib_dld_shl_load=yes 12869else case e in #( 12870 e) ac_cv_lib_dld_shl_load=no ;; 12871esac 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12874 conftest$ac_exeext conftest.$ac_ext 12875LIBS=$ac_check_lib_save_LIBS ;; 12876esac 12877fi 12878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12879printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12880if test "x$ac_cv_lib_dld_shl_load" = xyes 12881then : 12882 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12883else case e in #( 12884 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12885if test "x$ac_cv_func_dlopen" = xyes 12886then : 12887 lt_cv_dlopen=dlopen 12888else case e in #( 12889 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12890printf %s "checking for dlopen in -ldl... " >&6; } 12891if test ${ac_cv_lib_dl_dlopen+y} 12892then : 12893 printf %s "(cached) " >&6 12894else case e in #( 12895 e) ac_check_lib_save_LIBS=$LIBS 12896LIBS="-ldl $LIBS" 12897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12898/* end confdefs.h. */ 12899 12900/* Override any GCC internal prototype to avoid an error. 12901 Use char because int might match the return type of a GCC 12902 builtin and then its argument prototype would still apply. 12903 The 'extern "C"' is for builds by C++ compilers; 12904 although this is not generally supported in C code supporting it here 12905 has little cost and some practical benefit (sr 110532). */ 12906#ifdef __cplusplus 12907extern "C" 12908#endif 12909char dlopen (void); 12910int 12911main (void) 12912{ 12913return dlopen (); 12914 ; 12915 return 0; 12916} 12917_ACEOF 12918if ac_fn_c_try_link "$LINENO" 12919then : 12920 ac_cv_lib_dl_dlopen=yes 12921else case e in #( 12922 e) ac_cv_lib_dl_dlopen=no ;; 12923esac 12924fi 12925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12926 conftest$ac_exeext conftest.$ac_ext 12927LIBS=$ac_check_lib_save_LIBS ;; 12928esac 12929fi 12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12931printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12932if test "x$ac_cv_lib_dl_dlopen" = xyes 12933then : 12934 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12935else case e in #( 12936 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12937printf %s "checking for dlopen in -lsvld... " >&6; } 12938if test ${ac_cv_lib_svld_dlopen+y} 12939then : 12940 printf %s "(cached) " >&6 12941else case e in #( 12942 e) ac_check_lib_save_LIBS=$LIBS 12943LIBS="-lsvld $LIBS" 12944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12945/* end confdefs.h. */ 12946 12947/* Override any GCC internal prototype to avoid an error. 12948 Use char because int might match the return type of a GCC 12949 builtin and then its argument prototype would still apply. 12950 The 'extern "C"' is for builds by C++ compilers; 12951 although this is not generally supported in C code supporting it here 12952 has little cost and some practical benefit (sr 110532). */ 12953#ifdef __cplusplus 12954extern "C" 12955#endif 12956char dlopen (void); 12957int 12958main (void) 12959{ 12960return dlopen (); 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965if ac_fn_c_try_link "$LINENO" 12966then : 12967 ac_cv_lib_svld_dlopen=yes 12968else case e in #( 12969 e) ac_cv_lib_svld_dlopen=no ;; 12970esac 12971fi 12972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12973 conftest$ac_exeext conftest.$ac_ext 12974LIBS=$ac_check_lib_save_LIBS ;; 12975esac 12976fi 12977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12978printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12979if test "x$ac_cv_lib_svld_dlopen" = xyes 12980then : 12981 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12982else case e in #( 12983 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12984printf %s "checking for dld_link in -ldld... " >&6; } 12985if test ${ac_cv_lib_dld_dld_link+y} 12986then : 12987 printf %s "(cached) " >&6 12988else case e in #( 12989 e) ac_check_lib_save_LIBS=$LIBS 12990LIBS="-ldld $LIBS" 12991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993 12994/* Override any GCC internal prototype to avoid an error. 12995 Use char because int might match the return type of a GCC 12996 builtin and then its argument prototype would still apply. 12997 The 'extern "C"' is for builds by C++ compilers; 12998 although this is not generally supported in C code supporting it here 12999 has little cost and some practical benefit (sr 110532). */ 13000#ifdef __cplusplus 13001extern "C" 13002#endif 13003char dld_link (void); 13004int 13005main (void) 13006{ 13007return dld_link (); 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012if ac_fn_c_try_link "$LINENO" 13013then : 13014 ac_cv_lib_dld_dld_link=yes 13015else case e in #( 13016 e) ac_cv_lib_dld_dld_link=no ;; 13017esac 13018fi 13019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13020 conftest$ac_exeext conftest.$ac_ext 13021LIBS=$ac_check_lib_save_LIBS ;; 13022esac 13023fi 13024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13025printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13026if test "x$ac_cv_lib_dld_dld_link" = xyes 13027then : 13028 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13029fi 13030 13031 ;; 13032esac 13033fi 13034 13035 ;; 13036esac 13037fi 13038 13039 ;; 13040esac 13041fi 13042 13043 ;; 13044esac 13045fi 13046 13047 ;; 13048esac 13049fi 13050 13051 ;; 13052 esac 13053 13054 if test no = "$lt_cv_dlopen"; then 13055 enable_dlopen=no 13056 else 13057 enable_dlopen=yes 13058 fi 13059 13060 case $lt_cv_dlopen in 13061 dlopen) 13062 save_CPPFLAGS=$CPPFLAGS 13063 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13064 13065 save_LDFLAGS=$LDFLAGS 13066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13067 13068 save_LIBS=$LIBS 13069 LIBS="$lt_cv_dlopen_libs $LIBS" 13070 13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13072printf %s "checking whether a program can dlopen itself... " >&6; } 13073if test ${lt_cv_dlopen_self+y} 13074then : 13075 printf %s "(cached) " >&6 13076else case e in #( 13077 e) if test yes = "$cross_compiling"; then : 13078 lt_cv_dlopen_self=cross 13079else 13080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13081 lt_status=$lt_dlunknown 13082 cat > conftest.$ac_ext <<_LT_EOF 13083#line $LINENO "configure" 13084#include "confdefs.h" 13085 13086#if HAVE_DLFCN_H 13087#include <dlfcn.h> 13088#endif 13089 13090#include <stdio.h> 13091 13092#ifdef RTLD_GLOBAL 13093# define LT_DLGLOBAL RTLD_GLOBAL 13094#else 13095# ifdef DL_GLOBAL 13096# define LT_DLGLOBAL DL_GLOBAL 13097# else 13098# define LT_DLGLOBAL 0 13099# endif 13100#endif 13101 13102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13103 find out it does not work in some platform. */ 13104#ifndef LT_DLLAZY_OR_NOW 13105# ifdef RTLD_LAZY 13106# define LT_DLLAZY_OR_NOW RTLD_LAZY 13107# else 13108# ifdef DL_LAZY 13109# define LT_DLLAZY_OR_NOW DL_LAZY 13110# else 13111# ifdef RTLD_NOW 13112# define LT_DLLAZY_OR_NOW RTLD_NOW 13113# else 13114# ifdef DL_NOW 13115# define LT_DLLAZY_OR_NOW DL_NOW 13116# else 13117# define LT_DLLAZY_OR_NOW 0 13118# endif 13119# endif 13120# endif 13121# endif 13122#endif 13123 13124/* When -fvisibility=hidden is used, assume the code has been annotated 13125 correspondingly for the symbols needed. */ 13126#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13127int fnord () __attribute__((visibility("default"))); 13128#endif 13129 13130int fnord () { return 42; } 13131int main () 13132{ 13133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13134 int status = $lt_dlunknown; 13135 13136 if (self) 13137 { 13138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13139 else 13140 { 13141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13142 else puts (dlerror ()); 13143 } 13144 /* dlclose (self); */ 13145 } 13146 else 13147 puts (dlerror ()); 13148 13149 return status; 13150} 13151_LT_EOF 13152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13153 (eval $ac_link) 2>&5 13154 ac_status=$? 13155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13156 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13157 (./conftest; exit; ) >&5 2>/dev/null 13158 lt_status=$? 13159 case x$lt_status in 13160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13162 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13163 esac 13164 else : 13165 # compilation failed 13166 lt_cv_dlopen_self=no 13167 fi 13168fi 13169rm -fr conftest* 13170 13171 ;; 13172esac 13173fi 13174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13175printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13176 13177 if test yes = "$lt_cv_dlopen_self"; then 13178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13180printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13181if test ${lt_cv_dlopen_self_static+y} 13182then : 13183 printf %s "(cached) " >&6 13184else case e in #( 13185 e) if test yes = "$cross_compiling"; then : 13186 lt_cv_dlopen_self_static=cross 13187else 13188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13189 lt_status=$lt_dlunknown 13190 cat > conftest.$ac_ext <<_LT_EOF 13191#line $LINENO "configure" 13192#include "confdefs.h" 13193 13194#if HAVE_DLFCN_H 13195#include <dlfcn.h> 13196#endif 13197 13198#include <stdio.h> 13199 13200#ifdef RTLD_GLOBAL 13201# define LT_DLGLOBAL RTLD_GLOBAL 13202#else 13203# ifdef DL_GLOBAL 13204# define LT_DLGLOBAL DL_GLOBAL 13205# else 13206# define LT_DLGLOBAL 0 13207# endif 13208#endif 13209 13210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13211 find out it does not work in some platform. */ 13212#ifndef LT_DLLAZY_OR_NOW 13213# ifdef RTLD_LAZY 13214# define LT_DLLAZY_OR_NOW RTLD_LAZY 13215# else 13216# ifdef DL_LAZY 13217# define LT_DLLAZY_OR_NOW DL_LAZY 13218# else 13219# ifdef RTLD_NOW 13220# define LT_DLLAZY_OR_NOW RTLD_NOW 13221# else 13222# ifdef DL_NOW 13223# define LT_DLLAZY_OR_NOW DL_NOW 13224# else 13225# define LT_DLLAZY_OR_NOW 0 13226# endif 13227# endif 13228# endif 13229# endif 13230#endif 13231 13232/* When -fvisibility=hidden is used, assume the code has been annotated 13233 correspondingly for the symbols needed. */ 13234#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13235int fnord () __attribute__((visibility("default"))); 13236#endif 13237 13238int fnord () { return 42; } 13239int main () 13240{ 13241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13242 int status = $lt_dlunknown; 13243 13244 if (self) 13245 { 13246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13247 else 13248 { 13249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13250 else puts (dlerror ()); 13251 } 13252 /* dlclose (self); */ 13253 } 13254 else 13255 puts (dlerror ()); 13256 13257 return status; 13258} 13259_LT_EOF 13260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13261 (eval $ac_link) 2>&5 13262 ac_status=$? 13263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13264 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13265 (./conftest; exit; ) >&5 2>/dev/null 13266 lt_status=$? 13267 case x$lt_status in 13268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13271 esac 13272 else : 13273 # compilation failed 13274 lt_cv_dlopen_self_static=no 13275 fi 13276fi 13277rm -fr conftest* 13278 13279 ;; 13280esac 13281fi 13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13283printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13284 fi 13285 13286 CPPFLAGS=$save_CPPFLAGS 13287 LDFLAGS=$save_LDFLAGS 13288 LIBS=$save_LIBS 13289 ;; 13290 esac 13291 13292 case $lt_cv_dlopen_self in 13293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13294 *) enable_dlopen_self=unknown ;; 13295 esac 13296 13297 case $lt_cv_dlopen_self_static in 13298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13299 *) enable_dlopen_self_static=unknown ;; 13300 esac 13301fi 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319striplib= 13320old_striplib= 13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13322printf %s "checking whether stripping libraries is possible... " >&6; } 13323if test -z "$STRIP"; then 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325printf "%s\n" "no" >&6; } 13326else 13327 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13328 old_striplib="$STRIP --strip-debug" 13329 striplib="$STRIP --strip-unneeded" 13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13331printf "%s\n" "yes" >&6; } 13332 else 13333 case $host_os in 13334 darwin*) 13335 # FIXME - insert some real tests, host_os isn't really good enough 13336 striplib="$STRIP -x" 13337 old_striplib="$STRIP -S" 13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13339printf "%s\n" "yes" >&6; } 13340 ;; 13341 freebsd*) 13342 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13343 old_striplib="$STRIP --strip-debug" 13344 striplib="$STRIP --strip-unneeded" 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13346printf "%s\n" "yes" >&6; } 13347 else 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13349printf "%s\n" "no" >&6; } 13350 fi 13351 ;; 13352 *) 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13354printf "%s\n" "no" >&6; } 13355 ;; 13356 esac 13357 fi 13358fi 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 # Report what library types will actually be built 13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13373printf %s "checking if libtool supports shared libraries... " >&6; } 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13375printf "%s\n" "$can_build_shared" >&6; } 13376 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13378printf %s "checking whether to build shared libraries... " >&6; } 13379 test no = "$can_build_shared" && enable_shared=no 13380 13381 # On AIX, shared libraries and static libraries use the same namespace, and 13382 # are all built from PIC. 13383 case $host_os in 13384 aix3*) 13385 test yes = "$enable_shared" && enable_static=no 13386 if test -n "$RANLIB"; then 13387 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13388 postinstall_cmds='$RANLIB $lib' 13389 fi 13390 ;; 13391 13392 aix[4-9]*) 13393 if test ia64 != "$host_cpu"; then 13394 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13395 yes,aix,yes) ;; # shared object as lib.so file only 13396 yes,svr4,*) ;; # shared object as lib.so archive member only 13397 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13398 esac 13399 fi 13400 ;; 13401 esac 13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13403printf "%s\n" "$enable_shared" >&6; } 13404 13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13406printf %s "checking whether to build static libraries... " >&6; } 13407 # Make sure either enable_shared or enable_static is yes. 13408 test yes = "$enable_shared" || enable_static=yes 13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13410printf "%s\n" "$enable_static" >&6; } 13411 13412 13413 13414 13415fi 13416ac_ext=c 13417ac_cpp='$CPP $CPPFLAGS' 13418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13420ac_compiler_gnu=$ac_cv_c_compiler_gnu 13421 13422CC=$lt_save_CC 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 ac_config_commands="$ac_config_commands libtool" 13439 13440 13441 13442 13443# Only expand once: 13444 13445 13446 13447# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13460printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13461if test ${ac_cv_c_undeclared_builtin_options+y} 13462then : 13463 printf %s "(cached) " >&6 13464else case e in #( 13465 e) ac_save_CFLAGS=$CFLAGS 13466 ac_cv_c_undeclared_builtin_options='cannot detect' 13467 for ac_arg in '' -fno-builtin; do 13468 CFLAGS="$ac_save_CFLAGS $ac_arg" 13469 # This test program should *not* compile successfully. 13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13471/* end confdefs.h. */ 13472 13473int 13474main (void) 13475{ 13476(void) strchr; 13477 ; 13478 return 0; 13479} 13480_ACEOF 13481if ac_fn_c_try_compile "$LINENO" 13482then : 13483 13484else case e in #( 13485 e) # This test program should compile successfully. 13486 # No library function is consistently available on 13487 # freestanding implementations, so test against a dummy 13488 # declaration. Include always-available headers on the 13489 # off chance that they somehow elicit warnings. 13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491/* end confdefs.h. */ 13492#include <float.h> 13493#include <limits.h> 13494#include <stdarg.h> 13495#include <stddef.h> 13496extern void ac_decl (int, char *); 13497 13498int 13499main (void) 13500{ 13501(void) ac_decl (0, (char *) 0); 13502 (void) ac_decl; 13503 13504 ; 13505 return 0; 13506} 13507_ACEOF 13508if ac_fn_c_try_compile "$LINENO" 13509then : 13510 if test x"$ac_arg" = x 13511then : 13512 ac_cv_c_undeclared_builtin_options='none needed' 13513else case e in #( 13514 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13515esac 13516fi 13517 break 13518fi 13519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13520esac 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13523 done 13524 CFLAGS=$ac_save_CFLAGS 13525 ;; 13526esac 13527fi 13528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13529printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13530 case $ac_cv_c_undeclared_builtin_options in #( 13531 'cannot detect') : 13532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13533printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13534as_fn_error $? "cannot make $CC report undeclared builtins 13535See 'config.log' for more details" "$LINENO" 5; } ;; #( 13536 'none needed') : 13537 ac_c_undeclared_builtin_options='' ;; #( 13538 *) : 13539 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13540esac 13541 13542 13543 13544 13545 13546ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13547if test "x$ac_cv_have_decl___clang__" = xyes 13548then : 13549 CLANGCC="yes" 13550else case e in #( 13551 e) CLANGCC="no" ;; 13552esac 13553fi 13554ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13555if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13556then : 13557 INTELCC="yes" 13558else case e in #( 13559 e) INTELCC="no" ;; 13560esac 13561fi 13562ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13563if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13564then : 13565 SUNCC="yes" 13566else case e in #( 13567 e) SUNCC="no" ;; 13568esac 13569fi 13570 13571 13572 13573 13574 13575 13576 13577 13578if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13579 if test -n "$ac_tool_prefix"; then 13580 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13581set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13583printf %s "checking for $ac_word... " >&6; } 13584if test ${ac_cv_path_PKG_CONFIG+y} 13585then : 13586 printf %s "(cached) " >&6 13587else case e in #( 13588 e) case $PKG_CONFIG in 13589 [\\/]* | ?:[\\/]*) 13590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13591 ;; 13592 *) 13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13594for as_dir in $PATH 13595do 13596 IFS=$as_save_IFS 13597 case $as_dir in #((( 13598 '') as_dir=./ ;; 13599 */) ;; 13600 *) as_dir=$as_dir/ ;; 13601 esac 13602 for ac_exec_ext in '' $ac_executable_extensions; do 13603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13604 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13606 break 2 13607 fi 13608done 13609 done 13610IFS=$as_save_IFS 13611 13612 ;; 13613esac ;; 13614esac 13615fi 13616PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13617if test -n "$PKG_CONFIG"; then 13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13619printf "%s\n" "$PKG_CONFIG" >&6; } 13620else 13621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13622printf "%s\n" "no" >&6; } 13623fi 13624 13625 13626fi 13627if test -z "$ac_cv_path_PKG_CONFIG"; then 13628 ac_pt_PKG_CONFIG=$PKG_CONFIG 13629 # Extract the first word of "pkg-config", so it can be a program name with args. 13630set dummy pkg-config; ac_word=$2 13631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13632printf %s "checking for $ac_word... " >&6; } 13633if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13634then : 13635 printf %s "(cached) " >&6 13636else case e in #( 13637 e) case $ac_pt_PKG_CONFIG in 13638 [\\/]* | ?:[\\/]*) 13639 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13640 ;; 13641 *) 13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13643for as_dir in $PATH 13644do 13645 IFS=$as_save_IFS 13646 case $as_dir in #((( 13647 '') as_dir=./ ;; 13648 */) ;; 13649 *) as_dir=$as_dir/ ;; 13650 esac 13651 for ac_exec_ext in '' $ac_executable_extensions; do 13652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13653 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13655 break 2 13656 fi 13657done 13658 done 13659IFS=$as_save_IFS 13660 13661 ;; 13662esac ;; 13663esac 13664fi 13665ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13666if test -n "$ac_pt_PKG_CONFIG"; then 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13668printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13669else 13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13671printf "%s\n" "no" >&6; } 13672fi 13673 13674 if test "x$ac_pt_PKG_CONFIG" = x; then 13675 PKG_CONFIG="" 13676 else 13677 case $cross_compiling:$ac_tool_warned in 13678yes:) 13679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13680printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13681ac_tool_warned=yes ;; 13682esac 13683 PKG_CONFIG=$ac_pt_PKG_CONFIG 13684 fi 13685else 13686 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13687fi 13688 13689fi 13690if test -n "$PKG_CONFIG"; then 13691 _pkg_min_version=0.9.0 13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13693printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13694 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13696printf "%s\n" "yes" >&6; } 13697 else 13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13699printf "%s\n" "no" >&6; } 13700 PKG_CONFIG="" 13701 fi 13702fi 13703 13704 13705 13706 13707 13708# Check whether --enable-selective-werror was given. 13709if test ${enable_selective_werror+y} 13710then : 13711 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13712else case e in #( 13713 e) SELECTIVE_WERROR=yes ;; 13714esac 13715fi 13716 13717 13718 13719 13720 13721# -v is too short to test reliably with XORG_TESTSET_CFLAG 13722if test "x$SUNCC" = "xyes"; then 13723 BASE_CFLAGS="-v" 13724else 13725 BASE_CFLAGS="" 13726fi 13727 13728# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742xorg_testset_save_CFLAGS="$CFLAGS" 13743 13744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13749then : 13750 printf %s "(cached) " >&6 13751else case e in #( 13752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754int i; 13755_ACEOF 13756if ac_fn_c_try_compile "$LINENO" 13757then : 13758 xorg_cv_cc_flag_unknown_warning_option=yes 13759else case e in #( 13760 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13761esac 13762fi 13763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13764esac 13765fi 13766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13769 CFLAGS="$xorg_testset_save_CFLAGS" 13770fi 13771 13772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13775 fi 13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13779if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13780then : 13781 printf %s "(cached) " >&6 13782else case e in #( 13783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785int i; 13786_ACEOF 13787if ac_fn_c_try_compile "$LINENO" 13788then : 13789 xorg_cv_cc_flag_unused_command_line_argument=yes 13790else case e in #( 13791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13792esac 13793fi 13794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13795esac 13796fi 13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801fi 13802 13803found="no" 13804 13805 if test $found = "no" ; then 13806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13808 fi 13809 13810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13812 fi 13813 13814 CFLAGS="$CFLAGS -Wall" 13815 13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13817printf %s "checking if $CC supports -Wall... " >&6; } 13818 cacheid=xorg_cv_cc_flag__Wall 13819 if eval test \${$cacheid+y} 13820then : 13821 printf %s "(cached) " >&6 13822else case e in #( 13823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13824/* end confdefs.h. */ 13825int i; 13826int 13827main (void) 13828{ 13829 13830 ; 13831 return 0; 13832} 13833_ACEOF 13834if ac_fn_c_try_link "$LINENO" 13835then : 13836 eval $cacheid=yes 13837else case e in #( 13838 e) eval $cacheid=no ;; 13839esac 13840fi 13841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13842 conftest$ac_exeext conftest.$ac_ext ;; 13843esac 13844fi 13845 13846 13847 CFLAGS="$xorg_testset_save_CFLAGS" 13848 13849 eval supported=\$$cacheid 13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13851printf "%s\n" "$supported" >&6; } 13852 if test "$supported" = "yes" ; then 13853 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13854 found="yes" 13855 fi 13856 fi 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872xorg_testset_save_CFLAGS="$CFLAGS" 13873 13874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13878if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13879then : 13880 printf %s "(cached) " >&6 13881else case e in #( 13882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884int i; 13885_ACEOF 13886if ac_fn_c_try_compile "$LINENO" 13887then : 13888 xorg_cv_cc_flag_unknown_warning_option=yes 13889else case e in #( 13890 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13891esac 13892fi 13893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13894esac 13895fi 13896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13899 CFLAGS="$xorg_testset_save_CFLAGS" 13900fi 13901 13902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13905 fi 13906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13910then : 13911 printf %s "(cached) " >&6 13912else case e in #( 13913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int i; 13916_ACEOF 13917if ac_fn_c_try_compile "$LINENO" 13918then : 13919 xorg_cv_cc_flag_unused_command_line_argument=yes 13920else case e in #( 13921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13922esac 13923fi 13924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13925esac 13926fi 13927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13930 CFLAGS="$xorg_testset_save_CFLAGS" 13931fi 13932 13933found="no" 13934 13935 if test $found = "no" ; then 13936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13938 fi 13939 13940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13942 fi 13943 13944 CFLAGS="$CFLAGS -Wpointer-arith" 13945 13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13947printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13948 cacheid=xorg_cv_cc_flag__Wpointer_arith 13949 if eval test \${$cacheid+y} 13950then : 13951 printf %s "(cached) " >&6 13952else case e in #( 13953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13954/* end confdefs.h. */ 13955int i; 13956int 13957main (void) 13958{ 13959 13960 ; 13961 return 0; 13962} 13963_ACEOF 13964if ac_fn_c_try_link "$LINENO" 13965then : 13966 eval $cacheid=yes 13967else case e in #( 13968 e) eval $cacheid=no ;; 13969esac 13970fi 13971rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13972 conftest$ac_exeext conftest.$ac_ext ;; 13973esac 13974fi 13975 13976 13977 CFLAGS="$xorg_testset_save_CFLAGS" 13978 13979 eval supported=\$$cacheid 13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13981printf "%s\n" "$supported" >&6; } 13982 if test "$supported" = "yes" ; then 13983 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13984 found="yes" 13985 fi 13986 fi 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002xorg_testset_save_CFLAGS="$CFLAGS" 14003 14004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14009then : 14010 printf %s "(cached) " >&6 14011else case e in #( 14012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14013/* end confdefs.h. */ 14014int i; 14015_ACEOF 14016if ac_fn_c_try_compile "$LINENO" 14017then : 14018 xorg_cv_cc_flag_unknown_warning_option=yes 14019else case e in #( 14020 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14021esac 14022fi 14023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14024esac 14025fi 14026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14029 CFLAGS="$xorg_testset_save_CFLAGS" 14030fi 14031 14032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14035 fi 14036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14039if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14040then : 14041 printf %s "(cached) " >&6 14042else case e in #( 14043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14044/* end confdefs.h. */ 14045int i; 14046_ACEOF 14047if ac_fn_c_try_compile "$LINENO" 14048then : 14049 xorg_cv_cc_flag_unused_command_line_argument=yes 14050else case e in #( 14051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14052esac 14053fi 14054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14055esac 14056fi 14057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14060 CFLAGS="$xorg_testset_save_CFLAGS" 14061fi 14062 14063found="no" 14064 14065 if test $found = "no" ; then 14066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14068 fi 14069 14070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 fi 14073 14074 CFLAGS="$CFLAGS -Wmissing-declarations" 14075 14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14077printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14078 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14079 if eval test \${$cacheid+y} 14080then : 14081 printf %s "(cached) " >&6 14082else case e in #( 14083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085int i; 14086int 14087main (void) 14088{ 14089 14090 ; 14091 return 0; 14092} 14093_ACEOF 14094if ac_fn_c_try_link "$LINENO" 14095then : 14096 eval $cacheid=yes 14097else case e in #( 14098 e) eval $cacheid=no ;; 14099esac 14100fi 14101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14102 conftest$ac_exeext conftest.$ac_ext ;; 14103esac 14104fi 14105 14106 14107 CFLAGS="$xorg_testset_save_CFLAGS" 14108 14109 eval supported=\$$cacheid 14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14111printf "%s\n" "$supported" >&6; } 14112 if test "$supported" = "yes" ; then 14113 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14114 found="yes" 14115 fi 14116 fi 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132xorg_testset_save_CFLAGS="$CFLAGS" 14133 14134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14138if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14139then : 14140 printf %s "(cached) " >&6 14141else case e in #( 14142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14143/* end confdefs.h. */ 14144int i; 14145_ACEOF 14146if ac_fn_c_try_compile "$LINENO" 14147then : 14148 xorg_cv_cc_flag_unknown_warning_option=yes 14149else case e in #( 14150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14151esac 14152fi 14153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14154esac 14155fi 14156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14159 CFLAGS="$xorg_testset_save_CFLAGS" 14160fi 14161 14162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14165 fi 14166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14170then : 14171 printf %s "(cached) " >&6 14172else case e in #( 14173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14174/* end confdefs.h. */ 14175int i; 14176_ACEOF 14177if ac_fn_c_try_compile "$LINENO" 14178then : 14179 xorg_cv_cc_flag_unused_command_line_argument=yes 14180else case e in #( 14181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14182esac 14183fi 14184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14185esac 14186fi 14187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14190 CFLAGS="$xorg_testset_save_CFLAGS" 14191fi 14192 14193found="no" 14194 14195 if test $found = "no" ; then 14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14198 fi 14199 14200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14202 fi 14203 14204 CFLAGS="$CFLAGS -Wformat=2" 14205 14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14207printf %s "checking if $CC supports -Wformat=2... " >&6; } 14208 cacheid=xorg_cv_cc_flag__Wformat_2 14209 if eval test \${$cacheid+y} 14210then : 14211 printf %s "(cached) " >&6 14212else case e in #( 14213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216int 14217main (void) 14218{ 14219 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224if ac_fn_c_try_link "$LINENO" 14225then : 14226 eval $cacheid=yes 14227else case e in #( 14228 e) eval $cacheid=no ;; 14229esac 14230fi 14231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14232 conftest$ac_exeext conftest.$ac_ext ;; 14233esac 14234fi 14235 14236 14237 CFLAGS="$xorg_testset_save_CFLAGS" 14238 14239 eval supported=\$$cacheid 14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14241printf "%s\n" "$supported" >&6; } 14242 if test "$supported" = "yes" ; then 14243 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14244 found="yes" 14245 fi 14246 fi 14247 14248 if test $found = "no" ; then 14249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14251 fi 14252 14253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14255 fi 14256 14257 CFLAGS="$CFLAGS -Wformat" 14258 14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14260printf %s "checking if $CC supports -Wformat... " >&6; } 14261 cacheid=xorg_cv_cc_flag__Wformat 14262 if eval test \${$cacheid+y} 14263then : 14264 printf %s "(cached) " >&6 14265else case e in #( 14266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14267/* end confdefs.h. */ 14268int i; 14269int 14270main (void) 14271{ 14272 14273 ; 14274 return 0; 14275} 14276_ACEOF 14277if ac_fn_c_try_link "$LINENO" 14278then : 14279 eval $cacheid=yes 14280else case e in #( 14281 e) eval $cacheid=no ;; 14282esac 14283fi 14284rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14285 conftest$ac_exeext conftest.$ac_ext ;; 14286esac 14287fi 14288 14289 14290 CFLAGS="$xorg_testset_save_CFLAGS" 14291 14292 eval supported=\$$cacheid 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14294printf "%s\n" "$supported" >&6; } 14295 if test "$supported" = "yes" ; then 14296 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14297 found="yes" 14298 fi 14299 fi 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317xorg_testset_save_CFLAGS="$CFLAGS" 14318 14319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14323if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14324then : 14325 printf %s "(cached) " >&6 14326else case e in #( 14327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329int i; 14330_ACEOF 14331if ac_fn_c_try_compile "$LINENO" 14332then : 14333 xorg_cv_cc_flag_unknown_warning_option=yes 14334else case e in #( 14335 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14336esac 14337fi 14338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14339esac 14340fi 14341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14344 CFLAGS="$xorg_testset_save_CFLAGS" 14345fi 14346 14347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14350 fi 14351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14355then : 14356 printf %s "(cached) " >&6 14357else case e in #( 14358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14359/* end confdefs.h. */ 14360int i; 14361_ACEOF 14362if ac_fn_c_try_compile "$LINENO" 14363then : 14364 xorg_cv_cc_flag_unused_command_line_argument=yes 14365else case e in #( 14366 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14367esac 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14370esac 14371fi 14372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14375 CFLAGS="$xorg_testset_save_CFLAGS" 14376fi 14377 14378found="no" 14379 14380 if test $found = "no" ; then 14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14383 fi 14384 14385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14387 fi 14388 14389 CFLAGS="$CFLAGS -Wstrict-prototypes" 14390 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14392printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14393 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14394 if eval test \${$cacheid+y} 14395then : 14396 printf %s "(cached) " >&6 14397else case e in #( 14398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main (void) 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO" 14410then : 14411 eval $cacheid=yes 14412else case e in #( 14413 e) eval $cacheid=no ;; 14414esac 14415fi 14416rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14417 conftest$ac_exeext conftest.$ac_ext ;; 14418esac 14419fi 14420 14421 14422 CFLAGS="$xorg_testset_save_CFLAGS" 14423 14424 eval supported=\$$cacheid 14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14426printf "%s\n" "$supported" >&6; } 14427 if test "$supported" = "yes" ; then 14428 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14429 found="yes" 14430 fi 14431 fi 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447xorg_testset_save_CFLAGS="$CFLAGS" 14448 14449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14452printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14453if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14454then : 14455 printf %s "(cached) " >&6 14456else case e in #( 14457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459int i; 14460_ACEOF 14461if ac_fn_c_try_compile "$LINENO" 14462then : 14463 xorg_cv_cc_flag_unknown_warning_option=yes 14464else case e in #( 14465 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14466esac 14467fi 14468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14469esac 14470fi 14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14474 CFLAGS="$xorg_testset_save_CFLAGS" 14475fi 14476 14477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14484if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14485then : 14486 printf %s "(cached) " >&6 14487else case e in #( 14488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491_ACEOF 14492if ac_fn_c_try_compile "$LINENO" 14493then : 14494 xorg_cv_cc_flag_unused_command_line_argument=yes 14495else case e in #( 14496 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14497esac 14498fi 14499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14500esac 14501fi 14502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14505 CFLAGS="$xorg_testset_save_CFLAGS" 14506fi 14507 14508found="no" 14509 14510 if test $found = "no" ; then 14511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14513 fi 14514 14515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14517 fi 14518 14519 CFLAGS="$CFLAGS -Wmissing-prototypes" 14520 14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14522printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14523 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14524 if eval test \${$cacheid+y} 14525then : 14526 printf %s "(cached) " >&6 14527else case e in #( 14528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14529/* end confdefs.h. */ 14530int i; 14531int 14532main (void) 14533{ 14534 14535 ; 14536 return 0; 14537} 14538_ACEOF 14539if ac_fn_c_try_link "$LINENO" 14540then : 14541 eval $cacheid=yes 14542else case e in #( 14543 e) eval $cacheid=no ;; 14544esac 14545fi 14546rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14547 conftest$ac_exeext conftest.$ac_ext ;; 14548esac 14549fi 14550 14551 14552 CFLAGS="$xorg_testset_save_CFLAGS" 14553 14554 eval supported=\$$cacheid 14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14556printf "%s\n" "$supported" >&6; } 14557 if test "$supported" = "yes" ; then 14558 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14559 found="yes" 14560 fi 14561 fi 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577xorg_testset_save_CFLAGS="$CFLAGS" 14578 14579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14583if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14584then : 14585 printf %s "(cached) " >&6 14586else case e in #( 14587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14588/* end confdefs.h. */ 14589int i; 14590_ACEOF 14591if ac_fn_c_try_compile "$LINENO" 14592then : 14593 xorg_cv_cc_flag_unknown_warning_option=yes 14594else case e in #( 14595 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14596esac 14597fi 14598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14599esac 14600fi 14601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14604 CFLAGS="$xorg_testset_save_CFLAGS" 14605fi 14606 14607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14610 fi 14611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14615then : 14616 printf %s "(cached) " >&6 14617else case e in #( 14618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14619/* end confdefs.h. */ 14620int i; 14621_ACEOF 14622if ac_fn_c_try_compile "$LINENO" 14623then : 14624 xorg_cv_cc_flag_unused_command_line_argument=yes 14625else case e in #( 14626 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14627esac 14628fi 14629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14630esac 14631fi 14632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14635 CFLAGS="$xorg_testset_save_CFLAGS" 14636fi 14637 14638found="no" 14639 14640 if test $found = "no" ; then 14641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14643 fi 14644 14645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14647 fi 14648 14649 CFLAGS="$CFLAGS -Wnested-externs" 14650 14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14652printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14653 cacheid=xorg_cv_cc_flag__Wnested_externs 14654 if eval test \${$cacheid+y} 14655then : 14656 printf %s "(cached) " >&6 14657else case e in #( 14658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661int 14662main (void) 14663{ 14664 14665 ; 14666 return 0; 14667} 14668_ACEOF 14669if ac_fn_c_try_link "$LINENO" 14670then : 14671 eval $cacheid=yes 14672else case e in #( 14673 e) eval $cacheid=no ;; 14674esac 14675fi 14676rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14677 conftest$ac_exeext conftest.$ac_ext ;; 14678esac 14679fi 14680 14681 14682 CFLAGS="$xorg_testset_save_CFLAGS" 14683 14684 eval supported=\$$cacheid 14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14686printf "%s\n" "$supported" >&6; } 14687 if test "$supported" = "yes" ; then 14688 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14689 found="yes" 14690 fi 14691 fi 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707xorg_testset_save_CFLAGS="$CFLAGS" 14708 14709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14713if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14714then : 14715 printf %s "(cached) " >&6 14716else case e in #( 14717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14718/* end confdefs.h. */ 14719int i; 14720_ACEOF 14721if ac_fn_c_try_compile "$LINENO" 14722then : 14723 xorg_cv_cc_flag_unknown_warning_option=yes 14724else case e in #( 14725 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14726esac 14727fi 14728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14729esac 14730fi 14731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14734 CFLAGS="$xorg_testset_save_CFLAGS" 14735fi 14736 14737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14740 fi 14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14744if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14745then : 14746 printf %s "(cached) " >&6 14747else case e in #( 14748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750int i; 14751_ACEOF 14752if ac_fn_c_try_compile "$LINENO" 14753then : 14754 xorg_cv_cc_flag_unused_command_line_argument=yes 14755else case e in #( 14756 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14757esac 14758fi 14759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14760esac 14761fi 14762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14765 CFLAGS="$xorg_testset_save_CFLAGS" 14766fi 14767 14768found="no" 14769 14770 if test $found = "no" ; then 14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14773 fi 14774 14775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14777 fi 14778 14779 CFLAGS="$CFLAGS -Wbad-function-cast" 14780 14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14782printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14783 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14784 if eval test \${$cacheid+y} 14785then : 14786 printf %s "(cached) " >&6 14787else case e in #( 14788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14789/* end confdefs.h. */ 14790int i; 14791int 14792main (void) 14793{ 14794 14795 ; 14796 return 0; 14797} 14798_ACEOF 14799if ac_fn_c_try_link "$LINENO" 14800then : 14801 eval $cacheid=yes 14802else case e in #( 14803 e) eval $cacheid=no ;; 14804esac 14805fi 14806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14807 conftest$ac_exeext conftest.$ac_ext ;; 14808esac 14809fi 14810 14811 14812 CFLAGS="$xorg_testset_save_CFLAGS" 14813 14814 eval supported=\$$cacheid 14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14816printf "%s\n" "$supported" >&6; } 14817 if test "$supported" = "yes" ; then 14818 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14819 found="yes" 14820 fi 14821 fi 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837xorg_testset_save_CFLAGS="$CFLAGS" 14838 14839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14843if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14844then : 14845 printf %s "(cached) " >&6 14846else case e in #( 14847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14848/* end confdefs.h. */ 14849int i; 14850_ACEOF 14851if ac_fn_c_try_compile "$LINENO" 14852then : 14853 xorg_cv_cc_flag_unknown_warning_option=yes 14854else case e in #( 14855 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14856esac 14857fi 14858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14859esac 14860fi 14861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14864 CFLAGS="$xorg_testset_save_CFLAGS" 14865fi 14866 14867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14870 fi 14871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14874if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14875then : 14876 printf %s "(cached) " >&6 14877else case e in #( 14878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14879/* end confdefs.h. */ 14880int i; 14881_ACEOF 14882if ac_fn_c_try_compile "$LINENO" 14883then : 14884 xorg_cv_cc_flag_unused_command_line_argument=yes 14885else case e in #( 14886 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14887esac 14888fi 14889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14890esac 14891fi 14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14895 CFLAGS="$xorg_testset_save_CFLAGS" 14896fi 14897 14898found="no" 14899 14900 if test $found = "no" ; then 14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14907 fi 14908 14909 CFLAGS="$CFLAGS -Wold-style-definition" 14910 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14912printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14913 cacheid=xorg_cv_cc_flag__Wold_style_definition 14914 if eval test \${$cacheid+y} 14915then : 14916 printf %s "(cached) " >&6 14917else case e in #( 14918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920int i; 14921int 14922main (void) 14923{ 14924 14925 ; 14926 return 0; 14927} 14928_ACEOF 14929if ac_fn_c_try_link "$LINENO" 14930then : 14931 eval $cacheid=yes 14932else case e in #( 14933 e) eval $cacheid=no ;; 14934esac 14935fi 14936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14937 conftest$ac_exeext conftest.$ac_ext ;; 14938esac 14939fi 14940 14941 14942 CFLAGS="$xorg_testset_save_CFLAGS" 14943 14944 eval supported=\$$cacheid 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14946printf "%s\n" "$supported" >&6; } 14947 if test "$supported" = "yes" ; then 14948 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14949 found="yes" 14950 fi 14951 fi 14952 14953 if test $found = "no" ; then 14954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14956 fi 14957 14958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14960 fi 14961 14962 CFLAGS="$CFLAGS -fd" 14963 14964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14965printf %s "checking if $CC supports -fd... " >&6; } 14966 cacheid=xorg_cv_cc_flag__fd 14967 if eval test \${$cacheid+y} 14968then : 14969 printf %s "(cached) " >&6 14970else case e in #( 14971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14972/* end confdefs.h. */ 14973int i; 14974int 14975main (void) 14976{ 14977 14978 ; 14979 return 0; 14980} 14981_ACEOF 14982if ac_fn_c_try_link "$LINENO" 14983then : 14984 eval $cacheid=yes 14985else case e in #( 14986 e) eval $cacheid=no ;; 14987esac 14988fi 14989rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14990 conftest$ac_exeext conftest.$ac_ext ;; 14991esac 14992fi 14993 14994 14995 CFLAGS="$xorg_testset_save_CFLAGS" 14996 14997 eval supported=\$$cacheid 14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14999printf "%s\n" "$supported" >&6; } 15000 if test "$supported" = "yes" ; then 15001 BASE_CFLAGS="$BASE_CFLAGS -fd" 15002 found="yes" 15003 fi 15004 fi 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020xorg_testset_save_CFLAGS="$CFLAGS" 15021 15022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15027then : 15028 printf %s "(cached) " >&6 15029else case e in #( 15030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15031/* end confdefs.h. */ 15032int i; 15033_ACEOF 15034if ac_fn_c_try_compile "$LINENO" 15035then : 15036 xorg_cv_cc_flag_unknown_warning_option=yes 15037else case e in #( 15038 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15039esac 15040fi 15041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15042esac 15043fi 15044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15047 CFLAGS="$xorg_testset_save_CFLAGS" 15048fi 15049 15050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15053 fi 15054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15058then : 15059 printf %s "(cached) " >&6 15060else case e in #( 15061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063int i; 15064_ACEOF 15065if ac_fn_c_try_compile "$LINENO" 15066then : 15067 xorg_cv_cc_flag_unused_command_line_argument=yes 15068else case e in #( 15069 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15070esac 15071fi 15072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15073esac 15074fi 15075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15076printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15078 CFLAGS="$xorg_testset_save_CFLAGS" 15079fi 15080 15081found="no" 15082 15083 if test $found = "no" ; then 15084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15086 fi 15087 15088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15090 fi 15091 15092 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15093 15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15095printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15096 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15097 if eval test \${$cacheid+y} 15098then : 15099 printf %s "(cached) " >&6 15100else case e in #( 15101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15102/* end confdefs.h. */ 15103int i; 15104int 15105main (void) 15106{ 15107 15108 ; 15109 return 0; 15110} 15111_ACEOF 15112if ac_fn_c_try_link "$LINENO" 15113then : 15114 eval $cacheid=yes 15115else case e in #( 15116 e) eval $cacheid=no ;; 15117esac 15118fi 15119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15120 conftest$ac_exeext conftest.$ac_ext ;; 15121esac 15122fi 15123 15124 15125 CFLAGS="$xorg_testset_save_CFLAGS" 15126 15127 eval supported=\$$cacheid 15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15129printf "%s\n" "$supported" >&6; } 15130 if test "$supported" = "yes" ; then 15131 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15132 found="yes" 15133 fi 15134 fi 15135 15136 15137 15138 15139 15140# This chunk adds additional warnings that could catch undesired effects. 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154xorg_testset_save_CFLAGS="$CFLAGS" 15155 15156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15160if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15161then : 15162 printf %s "(cached) " >&6 15163else case e in #( 15164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165/* end confdefs.h. */ 15166int i; 15167_ACEOF 15168if ac_fn_c_try_compile "$LINENO" 15169then : 15170 xorg_cv_cc_flag_unknown_warning_option=yes 15171else case e in #( 15172 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15173esac 15174fi 15175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15176esac 15177fi 15178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15181 CFLAGS="$xorg_testset_save_CFLAGS" 15182fi 15183 15184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15187 fi 15188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15192then : 15193 printf %s "(cached) " >&6 15194else case e in #( 15195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15196/* end confdefs.h. */ 15197int i; 15198_ACEOF 15199if ac_fn_c_try_compile "$LINENO" 15200then : 15201 xorg_cv_cc_flag_unused_command_line_argument=yes 15202else case e in #( 15203 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15204esac 15205fi 15206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15207esac 15208fi 15209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15212 CFLAGS="$xorg_testset_save_CFLAGS" 15213fi 15214 15215found="no" 15216 15217 if test $found = "no" ; then 15218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15220 fi 15221 15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15224 fi 15225 15226 CFLAGS="$CFLAGS -Wunused" 15227 15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15229printf %s "checking if $CC supports -Wunused... " >&6; } 15230 cacheid=xorg_cv_cc_flag__Wunused 15231 if eval test \${$cacheid+y} 15232then : 15233 printf %s "(cached) " >&6 15234else case e in #( 15235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236/* end confdefs.h. */ 15237int i; 15238int 15239main (void) 15240{ 15241 15242 ; 15243 return 0; 15244} 15245_ACEOF 15246if ac_fn_c_try_link "$LINENO" 15247then : 15248 eval $cacheid=yes 15249else case e in #( 15250 e) eval $cacheid=no ;; 15251esac 15252fi 15253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15254 conftest$ac_exeext conftest.$ac_ext ;; 15255esac 15256fi 15257 15258 15259 CFLAGS="$xorg_testset_save_CFLAGS" 15260 15261 eval supported=\$$cacheid 15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15263printf "%s\n" "$supported" >&6; } 15264 if test "$supported" = "yes" ; then 15265 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15266 found="yes" 15267 fi 15268 fi 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284xorg_testset_save_CFLAGS="$CFLAGS" 15285 15286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15290if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15291then : 15292 printf %s "(cached) " >&6 15293else case e in #( 15294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15295/* end confdefs.h. */ 15296int i; 15297_ACEOF 15298if ac_fn_c_try_compile "$LINENO" 15299then : 15300 xorg_cv_cc_flag_unknown_warning_option=yes 15301else case e in #( 15302 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15303esac 15304fi 15305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15306esac 15307fi 15308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15309printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15317 fi 15318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15320printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15321if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15322then : 15323 printf %s "(cached) " >&6 15324else case e in #( 15325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326/* end confdefs.h. */ 15327int i; 15328_ACEOF 15329if ac_fn_c_try_compile "$LINENO" 15330then : 15331 xorg_cv_cc_flag_unused_command_line_argument=yes 15332else case e in #( 15333 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15334esac 15335fi 15336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15337esac 15338fi 15339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15342 CFLAGS="$xorg_testset_save_CFLAGS" 15343fi 15344 15345found="no" 15346 15347 if test $found = "no" ; then 15348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15350 fi 15351 15352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15354 fi 15355 15356 CFLAGS="$CFLAGS -Wuninitialized" 15357 15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15359printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15360 cacheid=xorg_cv_cc_flag__Wuninitialized 15361 if eval test \${$cacheid+y} 15362then : 15363 printf %s "(cached) " >&6 15364else case e in #( 15365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367int i; 15368int 15369main (void) 15370{ 15371 15372 ; 15373 return 0; 15374} 15375_ACEOF 15376if ac_fn_c_try_link "$LINENO" 15377then : 15378 eval $cacheid=yes 15379else case e in #( 15380 e) eval $cacheid=no ;; 15381esac 15382fi 15383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15384 conftest$ac_exeext conftest.$ac_ext ;; 15385esac 15386fi 15387 15388 15389 CFLAGS="$xorg_testset_save_CFLAGS" 15390 15391 eval supported=\$$cacheid 15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15393printf "%s\n" "$supported" >&6; } 15394 if test "$supported" = "yes" ; then 15395 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15396 found="yes" 15397 fi 15398 fi 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414xorg_testset_save_CFLAGS="$CFLAGS" 15415 15416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15420if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15421then : 15422 printf %s "(cached) " >&6 15423else case e in #( 15424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15425/* end confdefs.h. */ 15426int i; 15427_ACEOF 15428if ac_fn_c_try_compile "$LINENO" 15429then : 15430 xorg_cv_cc_flag_unknown_warning_option=yes 15431else case e in #( 15432 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15433esac 15434fi 15435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15436esac 15437fi 15438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15441 CFLAGS="$xorg_testset_save_CFLAGS" 15442fi 15443 15444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15447 fi 15448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15451if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15452then : 15453 printf %s "(cached) " >&6 15454else case e in #( 15455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457int i; 15458_ACEOF 15459if ac_fn_c_try_compile "$LINENO" 15460then : 15461 xorg_cv_cc_flag_unused_command_line_argument=yes 15462else case e in #( 15463 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15464esac 15465fi 15466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15467esac 15468fi 15469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473fi 15474 15475found="no" 15476 15477 if test $found = "no" ; then 15478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15480 fi 15481 15482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15484 fi 15485 15486 CFLAGS="$CFLAGS -Wshadow" 15487 15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15489printf %s "checking if $CC supports -Wshadow... " >&6; } 15490 cacheid=xorg_cv_cc_flag__Wshadow 15491 if eval test \${$cacheid+y} 15492then : 15493 printf %s "(cached) " >&6 15494else case e in #( 15495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497int i; 15498int 15499main (void) 15500{ 15501 15502 ; 15503 return 0; 15504} 15505_ACEOF 15506if ac_fn_c_try_link "$LINENO" 15507then : 15508 eval $cacheid=yes 15509else case e in #( 15510 e) eval $cacheid=no ;; 15511esac 15512fi 15513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15514 conftest$ac_exeext conftest.$ac_ext ;; 15515esac 15516fi 15517 15518 15519 CFLAGS="$xorg_testset_save_CFLAGS" 15520 15521 eval supported=\$$cacheid 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15523printf "%s\n" "$supported" >&6; } 15524 if test "$supported" = "yes" ; then 15525 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15526 found="yes" 15527 fi 15528 fi 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544xorg_testset_save_CFLAGS="$CFLAGS" 15545 15546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15550if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15551then : 15552 printf %s "(cached) " >&6 15553else case e in #( 15554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556int i; 15557_ACEOF 15558if ac_fn_c_try_compile "$LINENO" 15559then : 15560 xorg_cv_cc_flag_unknown_warning_option=yes 15561else case e in #( 15562 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15563esac 15564fi 15565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15566esac 15567fi 15568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15571 CFLAGS="$xorg_testset_save_CFLAGS" 15572fi 15573 15574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15577 fi 15578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15581if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15582then : 15583 printf %s "(cached) " >&6 15584else case e in #( 15585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587int i; 15588_ACEOF 15589if ac_fn_c_try_compile "$LINENO" 15590then : 15591 xorg_cv_cc_flag_unused_command_line_argument=yes 15592else case e in #( 15593 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15594esac 15595fi 15596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15597esac 15598fi 15599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603fi 15604 15605found="no" 15606 15607 if test $found = "no" ; then 15608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15610 fi 15611 15612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15614 fi 15615 15616 CFLAGS="$CFLAGS -Wmissing-noreturn" 15617 15618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15619printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15620 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15621 if eval test \${$cacheid+y} 15622then : 15623 printf %s "(cached) " >&6 15624else case e in #( 15625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15626/* end confdefs.h. */ 15627int i; 15628int 15629main (void) 15630{ 15631 15632 ; 15633 return 0; 15634} 15635_ACEOF 15636if ac_fn_c_try_link "$LINENO" 15637then : 15638 eval $cacheid=yes 15639else case e in #( 15640 e) eval $cacheid=no ;; 15641esac 15642fi 15643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15644 conftest$ac_exeext conftest.$ac_ext ;; 15645esac 15646fi 15647 15648 15649 CFLAGS="$xorg_testset_save_CFLAGS" 15650 15651 eval supported=\$$cacheid 15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15653printf "%s\n" "$supported" >&6; } 15654 if test "$supported" = "yes" ; then 15655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15656 found="yes" 15657 fi 15658 fi 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674xorg_testset_save_CFLAGS="$CFLAGS" 15675 15676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15679printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15680if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15681then : 15682 printf %s "(cached) " >&6 15683else case e in #( 15684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686int i; 15687_ACEOF 15688if ac_fn_c_try_compile "$LINENO" 15689then : 15690 xorg_cv_cc_flag_unknown_warning_option=yes 15691else case e in #( 15692 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15693esac 15694fi 15695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15696esac 15697fi 15698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15701 CFLAGS="$xorg_testset_save_CFLAGS" 15702fi 15703 15704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15707 fi 15708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15712then : 15713 printf %s "(cached) " >&6 15714else case e in #( 15715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15716/* end confdefs.h. */ 15717int i; 15718_ACEOF 15719if ac_fn_c_try_compile "$LINENO" 15720then : 15721 xorg_cv_cc_flag_unused_command_line_argument=yes 15722else case e in #( 15723 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15724esac 15725fi 15726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15727esac 15728fi 15729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15732 CFLAGS="$xorg_testset_save_CFLAGS" 15733fi 15734 15735found="no" 15736 15737 if test $found = "no" ; then 15738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15740 fi 15741 15742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15744 fi 15745 15746 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15747 15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15749printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15750 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15751 if eval test \${$cacheid+y} 15752then : 15753 printf %s "(cached) " >&6 15754else case e in #( 15755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15756/* end confdefs.h. */ 15757int i; 15758int 15759main (void) 15760{ 15761 15762 ; 15763 return 0; 15764} 15765_ACEOF 15766if ac_fn_c_try_link "$LINENO" 15767then : 15768 eval $cacheid=yes 15769else case e in #( 15770 e) eval $cacheid=no ;; 15771esac 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15774 conftest$ac_exeext conftest.$ac_ext ;; 15775esac 15776fi 15777 15778 15779 CFLAGS="$xorg_testset_save_CFLAGS" 15780 15781 eval supported=\$$cacheid 15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15783printf "%s\n" "$supported" >&6; } 15784 if test "$supported" = "yes" ; then 15785 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15786 found="yes" 15787 fi 15788 fi 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804xorg_testset_save_CFLAGS="$CFLAGS" 15805 15806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15811then : 15812 printf %s "(cached) " >&6 15813else case e in #( 15814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15815/* end confdefs.h. */ 15816int i; 15817_ACEOF 15818if ac_fn_c_try_compile "$LINENO" 15819then : 15820 xorg_cv_cc_flag_unknown_warning_option=yes 15821else case e in #( 15822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15823esac 15824fi 15825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15826esac 15827fi 15828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15831 CFLAGS="$xorg_testset_save_CFLAGS" 15832fi 15833 15834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15837 fi 15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15842then : 15843 printf %s "(cached) " >&6 15844else case e in #( 15845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847int i; 15848_ACEOF 15849if ac_fn_c_try_compile "$LINENO" 15850then : 15851 xorg_cv_cc_flag_unused_command_line_argument=yes 15852else case e in #( 15853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15854esac 15855fi 15856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15857esac 15858fi 15859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15862 CFLAGS="$xorg_testset_save_CFLAGS" 15863fi 15864 15865found="no" 15866 15867 if test $found = "no" ; then 15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15870 fi 15871 15872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15874 fi 15875 15876 CFLAGS="$CFLAGS -Wredundant-decls" 15877 15878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15879printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15880 cacheid=xorg_cv_cc_flag__Wredundant_decls 15881 if eval test \${$cacheid+y} 15882then : 15883 printf %s "(cached) " >&6 15884else case e in #( 15885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15886/* end confdefs.h. */ 15887int i; 15888int 15889main (void) 15890{ 15891 15892 ; 15893 return 0; 15894} 15895_ACEOF 15896if ac_fn_c_try_link "$LINENO" 15897then : 15898 eval $cacheid=yes 15899else case e in #( 15900 e) eval $cacheid=no ;; 15901esac 15902fi 15903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15904 conftest$ac_exeext conftest.$ac_ext ;; 15905esac 15906fi 15907 15908 15909 CFLAGS="$xorg_testset_save_CFLAGS" 15910 15911 eval supported=\$$cacheid 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15913printf "%s\n" "$supported" >&6; } 15914 if test "$supported" = "yes" ; then 15915 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15916 found="yes" 15917 fi 15918 fi 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934xorg_testset_save_CFLAGS="$CFLAGS" 15935 15936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15940if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15941then : 15942 printf %s "(cached) " >&6 15943else case e in #( 15944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946int i; 15947_ACEOF 15948if ac_fn_c_try_compile "$LINENO" 15949then : 15950 xorg_cv_cc_flag_unknown_warning_option=yes 15951else case e in #( 15952 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15953esac 15954fi 15955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15956esac 15957fi 15958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15961 CFLAGS="$xorg_testset_save_CFLAGS" 15962fi 15963 15964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15967 fi 15968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15972then : 15973 printf %s "(cached) " >&6 15974else case e in #( 15975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978_ACEOF 15979if ac_fn_c_try_compile "$LINENO" 15980then : 15981 xorg_cv_cc_flag_unused_command_line_argument=yes 15982else case e in #( 15983 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15984esac 15985fi 15986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15987esac 15988fi 15989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993fi 15994 15995found="no" 15996 15997 if test $found = "no" ; then 15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16004 fi 16005 16006 CFLAGS="$CFLAGS -Wlogical-op" 16007 16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16009printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16010 cacheid=xorg_cv_cc_flag__Wlogical_op 16011 if eval test \${$cacheid+y} 16012then : 16013 printf %s "(cached) " >&6 16014else case e in #( 16015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16016/* end confdefs.h. */ 16017int i; 16018int 16019main (void) 16020{ 16021 16022 ; 16023 return 0; 16024} 16025_ACEOF 16026if ac_fn_c_try_link "$LINENO" 16027then : 16028 eval $cacheid=yes 16029else case e in #( 16030 e) eval $cacheid=no ;; 16031esac 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16034 conftest$ac_exeext conftest.$ac_ext ;; 16035esac 16036fi 16037 16038 16039 CFLAGS="$xorg_testset_save_CFLAGS" 16040 16041 eval supported=\$$cacheid 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16043printf "%s\n" "$supported" >&6; } 16044 if test "$supported" = "yes" ; then 16045 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16046 found="yes" 16047 fi 16048 fi 16049 16050 16051 16052# These are currently disabled because they are noisy. They will be enabled 16053# in the future once the codebase is sufficiently modernized to silence 16054# them. For now, I don't want them to drown out the other warnings. 16055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16056# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16057# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16058 16059# Turn some warnings into errors, so we don't accidentally get successful builds 16060# when there are problems that should be fixed. 16061 16062if test "x$SELECTIVE_WERROR" = "xyes" ; then 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076xorg_testset_save_CFLAGS="$CFLAGS" 16077 16078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16082if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16083then : 16084 printf %s "(cached) " >&6 16085else case e in #( 16086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16087/* end confdefs.h. */ 16088int i; 16089_ACEOF 16090if ac_fn_c_try_compile "$LINENO" 16091then : 16092 xorg_cv_cc_flag_unknown_warning_option=yes 16093else case e in #( 16094 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16095esac 16096fi 16097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16098esac 16099fi 16100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16103 CFLAGS="$xorg_testset_save_CFLAGS" 16104fi 16105 16106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16109 fi 16110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16113if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16114then : 16115 printf %s "(cached) " >&6 16116else case e in #( 16117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16118/* end confdefs.h. */ 16119int i; 16120_ACEOF 16121if ac_fn_c_try_compile "$LINENO" 16122then : 16123 xorg_cv_cc_flag_unused_command_line_argument=yes 16124else case e in #( 16125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16126esac 16127fi 16128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16129esac 16130fi 16131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16134 CFLAGS="$xorg_testset_save_CFLAGS" 16135fi 16136 16137found="no" 16138 16139 if test $found = "no" ; then 16140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 fi 16143 16144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16146 fi 16147 16148 CFLAGS="$CFLAGS -Werror=implicit" 16149 16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16151printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16152 cacheid=xorg_cv_cc_flag__Werror_implicit 16153 if eval test \${$cacheid+y} 16154then : 16155 printf %s "(cached) " >&6 16156else case e in #( 16157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16158/* end confdefs.h. */ 16159int i; 16160int 16161main (void) 16162{ 16163 16164 ; 16165 return 0; 16166} 16167_ACEOF 16168if ac_fn_c_try_link "$LINENO" 16169then : 16170 eval $cacheid=yes 16171else case e in #( 16172 e) eval $cacheid=no ;; 16173esac 16174fi 16175rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16176 conftest$ac_exeext conftest.$ac_ext ;; 16177esac 16178fi 16179 16180 16181 CFLAGS="$xorg_testset_save_CFLAGS" 16182 16183 eval supported=\$$cacheid 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16185printf "%s\n" "$supported" >&6; } 16186 if test "$supported" = "yes" ; then 16187 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16188 found="yes" 16189 fi 16190 fi 16191 16192 if test $found = "no" ; then 16193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16195 fi 16196 16197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16199 fi 16200 16201 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16202 16203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 16204printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16205 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16206 if eval test \${$cacheid+y} 16207then : 16208 printf %s "(cached) " >&6 16209else case e in #( 16210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16211/* end confdefs.h. */ 16212int i; 16213int 16214main (void) 16215{ 16216 16217 ; 16218 return 0; 16219} 16220_ACEOF 16221if ac_fn_c_try_link "$LINENO" 16222then : 16223 eval $cacheid=yes 16224else case e in #( 16225 e) eval $cacheid=no ;; 16226esac 16227fi 16228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16229 conftest$ac_exeext conftest.$ac_ext ;; 16230esac 16231fi 16232 16233 16234 CFLAGS="$xorg_testset_save_CFLAGS" 16235 16236 eval supported=\$$cacheid 16237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16238printf "%s\n" "$supported" >&6; } 16239 if test "$supported" = "yes" ; then 16240 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16241 found="yes" 16242 fi 16243 fi 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259xorg_testset_save_CFLAGS="$CFLAGS" 16260 16261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16266then : 16267 printf %s "(cached) " >&6 16268else case e in #( 16269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271int i; 16272_ACEOF 16273if ac_fn_c_try_compile "$LINENO" 16274then : 16275 xorg_cv_cc_flag_unknown_warning_option=yes 16276else case e in #( 16277 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16278esac 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16281esac 16282fi 16283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16286 CFLAGS="$xorg_testset_save_CFLAGS" 16287fi 16288 16289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16292 fi 16293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16297then : 16298 printf %s "(cached) " >&6 16299else case e in #( 16300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16301/* end confdefs.h. */ 16302int i; 16303_ACEOF 16304if ac_fn_c_try_compile "$LINENO" 16305then : 16306 xorg_cv_cc_flag_unused_command_line_argument=yes 16307else case e in #( 16308 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16309esac 16310fi 16311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16312esac 16313fi 16314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16317 CFLAGS="$xorg_testset_save_CFLAGS" 16318fi 16319 16320found="no" 16321 16322 if test $found = "no" ; then 16323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16325 fi 16326 16327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16329 fi 16330 16331 CFLAGS="$CFLAGS -Werror=nonnull" 16332 16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16334printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16335 cacheid=xorg_cv_cc_flag__Werror_nonnull 16336 if eval test \${$cacheid+y} 16337then : 16338 printf %s "(cached) " >&6 16339else case e in #( 16340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16341/* end confdefs.h. */ 16342int i; 16343int 16344main (void) 16345{ 16346 16347 ; 16348 return 0; 16349} 16350_ACEOF 16351if ac_fn_c_try_link "$LINENO" 16352then : 16353 eval $cacheid=yes 16354else case e in #( 16355 e) eval $cacheid=no ;; 16356esac 16357fi 16358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16359 conftest$ac_exeext conftest.$ac_ext ;; 16360esac 16361fi 16362 16363 16364 CFLAGS="$xorg_testset_save_CFLAGS" 16365 16366 eval supported=\$$cacheid 16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16368printf "%s\n" "$supported" >&6; } 16369 if test "$supported" = "yes" ; then 16370 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16371 found="yes" 16372 fi 16373 fi 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389xorg_testset_save_CFLAGS="$CFLAGS" 16390 16391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16395if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16396then : 16397 printf %s "(cached) " >&6 16398else case e in #( 16399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16400/* end confdefs.h. */ 16401int i; 16402_ACEOF 16403if ac_fn_c_try_compile "$LINENO" 16404then : 16405 xorg_cv_cc_flag_unknown_warning_option=yes 16406else case e in #( 16407 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16408esac 16409fi 16410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16411esac 16412fi 16413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16414printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16416 CFLAGS="$xorg_testset_save_CFLAGS" 16417fi 16418 16419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 fi 16423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16425printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16426if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16427then : 16428 printf %s "(cached) " >&6 16429else case e in #( 16430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16431/* end confdefs.h. */ 16432int i; 16433_ACEOF 16434if ac_fn_c_try_compile "$LINENO" 16435then : 16436 xorg_cv_cc_flag_unused_command_line_argument=yes 16437else case e in #( 16438 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16439esac 16440fi 16441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16442esac 16443fi 16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448fi 16449 16450found="no" 16451 16452 if test $found = "no" ; then 16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16455 fi 16456 16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16459 fi 16460 16461 CFLAGS="$CFLAGS -Werror=init-self" 16462 16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16464printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16465 cacheid=xorg_cv_cc_flag__Werror_init_self 16466 if eval test \${$cacheid+y} 16467then : 16468 printf %s "(cached) " >&6 16469else case e in #( 16470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472int i; 16473int 16474main (void) 16475{ 16476 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481if ac_fn_c_try_link "$LINENO" 16482then : 16483 eval $cacheid=yes 16484else case e in #( 16485 e) eval $cacheid=no ;; 16486esac 16487fi 16488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16489 conftest$ac_exeext conftest.$ac_ext ;; 16490esac 16491fi 16492 16493 16494 CFLAGS="$xorg_testset_save_CFLAGS" 16495 16496 eval supported=\$$cacheid 16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16498printf "%s\n" "$supported" >&6; } 16499 if test "$supported" = "yes" ; then 16500 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16501 found="yes" 16502 fi 16503 fi 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519xorg_testset_save_CFLAGS="$CFLAGS" 16520 16521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16525if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16526then : 16527 printf %s "(cached) " >&6 16528else case e in #( 16529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO" 16534then : 16535 xorg_cv_cc_flag_unknown_warning_option=yes 16536else case e in #( 16537 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16538esac 16539fi 16540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16541esac 16542fi 16543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16546 CFLAGS="$xorg_testset_save_CFLAGS" 16547fi 16548 16549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16552 fi 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16557then : 16558 printf %s "(cached) " >&6 16559else case e in #( 16560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562int i; 16563_ACEOF 16564if ac_fn_c_try_compile "$LINENO" 16565then : 16566 xorg_cv_cc_flag_unused_command_line_argument=yes 16567else case e in #( 16568 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16569esac 16570fi 16571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16572esac 16573fi 16574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16577 CFLAGS="$xorg_testset_save_CFLAGS" 16578fi 16579 16580found="no" 16581 16582 if test $found = "no" ; then 16583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16585 fi 16586 16587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16589 fi 16590 16591 CFLAGS="$CFLAGS -Werror=main" 16592 16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16594printf %s "checking if $CC supports -Werror=main... " >&6; } 16595 cacheid=xorg_cv_cc_flag__Werror_main 16596 if eval test \${$cacheid+y} 16597then : 16598 printf %s "(cached) " >&6 16599else case e in #( 16600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16601/* end confdefs.h. */ 16602int i; 16603int 16604main (void) 16605{ 16606 16607 ; 16608 return 0; 16609} 16610_ACEOF 16611if ac_fn_c_try_link "$LINENO" 16612then : 16613 eval $cacheid=yes 16614else case e in #( 16615 e) eval $cacheid=no ;; 16616esac 16617fi 16618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16619 conftest$ac_exeext conftest.$ac_ext ;; 16620esac 16621fi 16622 16623 16624 CFLAGS="$xorg_testset_save_CFLAGS" 16625 16626 eval supported=\$$cacheid 16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16628printf "%s\n" "$supported" >&6; } 16629 if test "$supported" = "yes" ; then 16630 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16631 found="yes" 16632 fi 16633 fi 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649xorg_testset_save_CFLAGS="$CFLAGS" 16650 16651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16656then : 16657 printf %s "(cached) " >&6 16658else case e in #( 16659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16660/* end confdefs.h. */ 16661int i; 16662_ACEOF 16663if ac_fn_c_try_compile "$LINENO" 16664then : 16665 xorg_cv_cc_flag_unknown_warning_option=yes 16666else case e in #( 16667 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16668esac 16669fi 16670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16671esac 16672fi 16673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16676 CFLAGS="$xorg_testset_save_CFLAGS" 16677fi 16678 16679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16682 fi 16683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16686if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16687then : 16688 printf %s "(cached) " >&6 16689else case e in #( 16690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692int i; 16693_ACEOF 16694if ac_fn_c_try_compile "$LINENO" 16695then : 16696 xorg_cv_cc_flag_unused_command_line_argument=yes 16697else case e in #( 16698 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16699esac 16700fi 16701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16702esac 16703fi 16704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16707 CFLAGS="$xorg_testset_save_CFLAGS" 16708fi 16709 16710found="no" 16711 16712 if test $found = "no" ; then 16713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16715 fi 16716 16717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16719 fi 16720 16721 CFLAGS="$CFLAGS -Werror=missing-braces" 16722 16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16724printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16725 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16726 if eval test \${$cacheid+y} 16727then : 16728 printf %s "(cached) " >&6 16729else case e in #( 16730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16731/* end confdefs.h. */ 16732int i; 16733int 16734main (void) 16735{ 16736 16737 ; 16738 return 0; 16739} 16740_ACEOF 16741if ac_fn_c_try_link "$LINENO" 16742then : 16743 eval $cacheid=yes 16744else case e in #( 16745 e) eval $cacheid=no ;; 16746esac 16747fi 16748rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16749 conftest$ac_exeext conftest.$ac_ext ;; 16750esac 16751fi 16752 16753 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755 16756 eval supported=\$$cacheid 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16758printf "%s\n" "$supported" >&6; } 16759 if test "$supported" = "yes" ; then 16760 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16761 found="yes" 16762 fi 16763 fi 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779xorg_testset_save_CFLAGS="$CFLAGS" 16780 16781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16786then : 16787 printf %s "(cached) " >&6 16788else case e in #( 16789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16790/* end confdefs.h. */ 16791int i; 16792_ACEOF 16793if ac_fn_c_try_compile "$LINENO" 16794then : 16795 xorg_cv_cc_flag_unknown_warning_option=yes 16796else case e in #( 16797 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16798esac 16799fi 16800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16801esac 16802fi 16803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16806 CFLAGS="$xorg_testset_save_CFLAGS" 16807fi 16808 16809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16812 fi 16813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16816if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16817then : 16818 printf %s "(cached) " >&6 16819else case e in #( 16820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821/* end confdefs.h. */ 16822int i; 16823_ACEOF 16824if ac_fn_c_try_compile "$LINENO" 16825then : 16826 xorg_cv_cc_flag_unused_command_line_argument=yes 16827else case e in #( 16828 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16829esac 16830fi 16831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16832esac 16833fi 16834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16837 CFLAGS="$xorg_testset_save_CFLAGS" 16838fi 16839 16840found="no" 16841 16842 if test $found = "no" ; then 16843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 fi 16846 16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16849 fi 16850 16851 CFLAGS="$CFLAGS -Werror=sequence-point" 16852 16853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16854printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16855 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16856 if eval test \${$cacheid+y} 16857then : 16858 printf %s "(cached) " >&6 16859else case e in #( 16860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16861/* end confdefs.h. */ 16862int i; 16863int 16864main (void) 16865{ 16866 16867 ; 16868 return 0; 16869} 16870_ACEOF 16871if ac_fn_c_try_link "$LINENO" 16872then : 16873 eval $cacheid=yes 16874else case e in #( 16875 e) eval $cacheid=no ;; 16876esac 16877fi 16878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16879 conftest$ac_exeext conftest.$ac_ext ;; 16880esac 16881fi 16882 16883 16884 CFLAGS="$xorg_testset_save_CFLAGS" 16885 16886 eval supported=\$$cacheid 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16888printf "%s\n" "$supported" >&6; } 16889 if test "$supported" = "yes" ; then 16890 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16891 found="yes" 16892 fi 16893 fi 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909xorg_testset_save_CFLAGS="$CFLAGS" 16910 16911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16915if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16916then : 16917 printf %s "(cached) " >&6 16918else case e in #( 16919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922_ACEOF 16923if ac_fn_c_try_compile "$LINENO" 16924then : 16925 xorg_cv_cc_flag_unknown_warning_option=yes 16926else case e in #( 16927 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16928esac 16929fi 16930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16931esac 16932fi 16933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16936 CFLAGS="$xorg_testset_save_CFLAGS" 16937fi 16938 16939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16942 fi 16943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16946if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16947then : 16948 printf %s "(cached) " >&6 16949else case e in #( 16950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16951/* end confdefs.h. */ 16952int i; 16953_ACEOF 16954if ac_fn_c_try_compile "$LINENO" 16955then : 16956 xorg_cv_cc_flag_unused_command_line_argument=yes 16957else case e in #( 16958 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16959esac 16960fi 16961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16962esac 16963fi 16964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16965printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16967 CFLAGS="$xorg_testset_save_CFLAGS" 16968fi 16969 16970found="no" 16971 16972 if test $found = "no" ; then 16973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16975 fi 16976 16977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16979 fi 16980 16981 CFLAGS="$CFLAGS -Werror=return-type" 16982 16983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16984printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16985 cacheid=xorg_cv_cc_flag__Werror_return_type 16986 if eval test \${$cacheid+y} 16987then : 16988 printf %s "(cached) " >&6 16989else case e in #( 16990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16991/* end confdefs.h. */ 16992int i; 16993int 16994main (void) 16995{ 16996 16997 ; 16998 return 0; 16999} 17000_ACEOF 17001if ac_fn_c_try_link "$LINENO" 17002then : 17003 eval $cacheid=yes 17004else case e in #( 17005 e) eval $cacheid=no ;; 17006esac 17007fi 17008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17009 conftest$ac_exeext conftest.$ac_ext ;; 17010esac 17011fi 17012 17013 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015 17016 eval supported=\$$cacheid 17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17018printf "%s\n" "$supported" >&6; } 17019 if test "$supported" = "yes" ; then 17020 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17021 found="yes" 17022 fi 17023 fi 17024 17025 if test $found = "no" ; then 17026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17028 fi 17029 17030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17032 fi 17033 17034 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17035 17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17037printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17038 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17039 if eval test \${$cacheid+y} 17040then : 17041 printf %s "(cached) " >&6 17042else case e in #( 17043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046int 17047main (void) 17048{ 17049 17050 ; 17051 return 0; 17052} 17053_ACEOF 17054if ac_fn_c_try_link "$LINENO" 17055then : 17056 eval $cacheid=yes 17057else case e in #( 17058 e) eval $cacheid=no ;; 17059esac 17060fi 17061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17062 conftest$ac_exeext conftest.$ac_ext ;; 17063esac 17064fi 17065 17066 17067 CFLAGS="$xorg_testset_save_CFLAGS" 17068 17069 eval supported=\$$cacheid 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17071printf "%s\n" "$supported" >&6; } 17072 if test "$supported" = "yes" ; then 17073 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17074 found="yes" 17075 fi 17076 fi 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092xorg_testset_save_CFLAGS="$CFLAGS" 17093 17094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17098if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17099then : 17100 printf %s "(cached) " >&6 17101else case e in #( 17102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103/* end confdefs.h. */ 17104int i; 17105_ACEOF 17106if ac_fn_c_try_compile "$LINENO" 17107then : 17108 xorg_cv_cc_flag_unknown_warning_option=yes 17109else case e in #( 17110 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17111esac 17112fi 17113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17114esac 17115fi 17116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17119 CFLAGS="$xorg_testset_save_CFLAGS" 17120fi 17121 17122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17125 fi 17126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17130then : 17131 printf %s "(cached) " >&6 17132else case e in #( 17133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134/* end confdefs.h. */ 17135int i; 17136_ACEOF 17137if ac_fn_c_try_compile "$LINENO" 17138then : 17139 xorg_cv_cc_flag_unused_command_line_argument=yes 17140else case e in #( 17141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17142esac 17143fi 17144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17145esac 17146fi 17147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17150 CFLAGS="$xorg_testset_save_CFLAGS" 17151fi 17152 17153found="no" 17154 17155 if test $found = "no" ; then 17156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17158 fi 17159 17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17162 fi 17163 17164 CFLAGS="$CFLAGS -Werror=trigraphs" 17165 17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17167printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17168 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17169 if eval test \${$cacheid+y} 17170then : 17171 printf %s "(cached) " >&6 17172else case e in #( 17173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175int i; 17176int 17177main (void) 17178{ 17179 17180 ; 17181 return 0; 17182} 17183_ACEOF 17184if ac_fn_c_try_link "$LINENO" 17185then : 17186 eval $cacheid=yes 17187else case e in #( 17188 e) eval $cacheid=no ;; 17189esac 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17192 conftest$ac_exeext conftest.$ac_ext ;; 17193esac 17194fi 17195 17196 17197 CFLAGS="$xorg_testset_save_CFLAGS" 17198 17199 eval supported=\$$cacheid 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17201printf "%s\n" "$supported" >&6; } 17202 if test "$supported" = "yes" ; then 17203 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17204 found="yes" 17205 fi 17206 fi 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222xorg_testset_save_CFLAGS="$CFLAGS" 17223 17224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17228if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17229then : 17230 printf %s "(cached) " >&6 17231else case e in #( 17232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17233/* end confdefs.h. */ 17234int i; 17235_ACEOF 17236if ac_fn_c_try_compile "$LINENO" 17237then : 17238 xorg_cv_cc_flag_unknown_warning_option=yes 17239else case e in #( 17240 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17241esac 17242fi 17243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17244esac 17245fi 17246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17249 CFLAGS="$xorg_testset_save_CFLAGS" 17250fi 17251 17252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17255 fi 17256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17259if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17260then : 17261 printf %s "(cached) " >&6 17262else case e in #( 17263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265int i; 17266_ACEOF 17267if ac_fn_c_try_compile "$LINENO" 17268then : 17269 xorg_cv_cc_flag_unused_command_line_argument=yes 17270else case e in #( 17271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17272esac 17273fi 17274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17275esac 17276fi 17277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17280 CFLAGS="$xorg_testset_save_CFLAGS" 17281fi 17282 17283found="no" 17284 17285 if test $found = "no" ; then 17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17288 fi 17289 17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17292 fi 17293 17294 CFLAGS="$CFLAGS -Werror=array-bounds" 17295 17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17297printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17298 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17299 if eval test \${$cacheid+y} 17300then : 17301 printf %s "(cached) " >&6 17302else case e in #( 17303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17304/* end confdefs.h. */ 17305int i; 17306int 17307main (void) 17308{ 17309 17310 ; 17311 return 0; 17312} 17313_ACEOF 17314if ac_fn_c_try_link "$LINENO" 17315then : 17316 eval $cacheid=yes 17317else case e in #( 17318 e) eval $cacheid=no ;; 17319esac 17320fi 17321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17322 conftest$ac_exeext conftest.$ac_ext ;; 17323esac 17324fi 17325 17326 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328 17329 eval supported=\$$cacheid 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17331printf "%s\n" "$supported" >&6; } 17332 if test "$supported" = "yes" ; then 17333 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17334 found="yes" 17335 fi 17336 fi 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352xorg_testset_save_CFLAGS="$CFLAGS" 17353 17354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17358if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17359then : 17360 printf %s "(cached) " >&6 17361else case e in #( 17362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17363/* end confdefs.h. */ 17364int i; 17365_ACEOF 17366if ac_fn_c_try_compile "$LINENO" 17367then : 17368 xorg_cv_cc_flag_unknown_warning_option=yes 17369else case e in #( 17370 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17371esac 17372fi 17373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17374esac 17375fi 17376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17379 CFLAGS="$xorg_testset_save_CFLAGS" 17380fi 17381 17382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17385 fi 17386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17390then : 17391 printf %s "(cached) " >&6 17392else case e in #( 17393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17394/* end confdefs.h. */ 17395int i; 17396_ACEOF 17397if ac_fn_c_try_compile "$LINENO" 17398then : 17399 xorg_cv_cc_flag_unused_command_line_argument=yes 17400else case e in #( 17401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17402esac 17403fi 17404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17405esac 17406fi 17407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17410 CFLAGS="$xorg_testset_save_CFLAGS" 17411fi 17412 17413found="no" 17414 17415 if test $found = "no" ; then 17416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17418 fi 17419 17420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17422 fi 17423 17424 CFLAGS="$CFLAGS -Werror=write-strings" 17425 17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17427printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17428 cacheid=xorg_cv_cc_flag__Werror_write_strings 17429 if eval test \${$cacheid+y} 17430then : 17431 printf %s "(cached) " >&6 17432else case e in #( 17433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17434/* end confdefs.h. */ 17435int i; 17436int 17437main (void) 17438{ 17439 17440 ; 17441 return 0; 17442} 17443_ACEOF 17444if ac_fn_c_try_link "$LINENO" 17445then : 17446 eval $cacheid=yes 17447else case e in #( 17448 e) eval $cacheid=no ;; 17449esac 17450fi 17451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17452 conftest$ac_exeext conftest.$ac_ext ;; 17453esac 17454fi 17455 17456 17457 CFLAGS="$xorg_testset_save_CFLAGS" 17458 17459 eval supported=\$$cacheid 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17461printf "%s\n" "$supported" >&6; } 17462 if test "$supported" = "yes" ; then 17463 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17464 found="yes" 17465 fi 17466 fi 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482xorg_testset_save_CFLAGS="$CFLAGS" 17483 17484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17489then : 17490 printf %s "(cached) " >&6 17491else case e in #( 17492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494int i; 17495_ACEOF 17496if ac_fn_c_try_compile "$LINENO" 17497then : 17498 xorg_cv_cc_flag_unknown_warning_option=yes 17499else case e in #( 17500 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17501esac 17502fi 17503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17504esac 17505fi 17506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17509 CFLAGS="$xorg_testset_save_CFLAGS" 17510fi 17511 17512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17515 fi 17516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17519if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17520then : 17521 printf %s "(cached) " >&6 17522else case e in #( 17523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17524/* end confdefs.h. */ 17525int i; 17526_ACEOF 17527if ac_fn_c_try_compile "$LINENO" 17528then : 17529 xorg_cv_cc_flag_unused_command_line_argument=yes 17530else case e in #( 17531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17532esac 17533fi 17534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17535esac 17536fi 17537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541fi 17542 17543found="no" 17544 17545 if test $found = "no" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 17550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17552 fi 17553 17554 CFLAGS="$CFLAGS -Werror=address" 17555 17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17557printf %s "checking if $CC supports -Werror=address... " >&6; } 17558 cacheid=xorg_cv_cc_flag__Werror_address 17559 if eval test \${$cacheid+y} 17560then : 17561 printf %s "(cached) " >&6 17562else case e in #( 17563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564/* end confdefs.h. */ 17565int i; 17566int 17567main (void) 17568{ 17569 17570 ; 17571 return 0; 17572} 17573_ACEOF 17574if ac_fn_c_try_link "$LINENO" 17575then : 17576 eval $cacheid=yes 17577else case e in #( 17578 e) eval $cacheid=no ;; 17579esac 17580fi 17581rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17582 conftest$ac_exeext conftest.$ac_ext ;; 17583esac 17584fi 17585 17586 17587 CFLAGS="$xorg_testset_save_CFLAGS" 17588 17589 eval supported=\$$cacheid 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17591printf "%s\n" "$supported" >&6; } 17592 if test "$supported" = "yes" ; then 17593 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17594 found="yes" 17595 fi 17596 fi 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612xorg_testset_save_CFLAGS="$CFLAGS" 17613 17614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17619then : 17620 printf %s "(cached) " >&6 17621else case e in #( 17622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17623/* end confdefs.h. */ 17624int i; 17625_ACEOF 17626if ac_fn_c_try_compile "$LINENO" 17627then : 17628 xorg_cv_cc_flag_unknown_warning_option=yes 17629else case e in #( 17630 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17631esac 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17634esac 17635fi 17636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17639 CFLAGS="$xorg_testset_save_CFLAGS" 17640fi 17641 17642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17645 fi 17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17650then : 17651 printf %s "(cached) " >&6 17652else case e in #( 17653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17654/* end confdefs.h. */ 17655int i; 17656_ACEOF 17657if ac_fn_c_try_compile "$LINENO" 17658then : 17659 xorg_cv_cc_flag_unused_command_line_argument=yes 17660else case e in #( 17661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17662esac 17663fi 17664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17665esac 17666fi 17667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17670 CFLAGS="$xorg_testset_save_CFLAGS" 17671fi 17672 17673found="no" 17674 17675 if test $found = "no" ; then 17676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17678 fi 17679 17680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17682 fi 17683 17684 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17685 17686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17687printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17688 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17689 if eval test \${$cacheid+y} 17690then : 17691 printf %s "(cached) " >&6 17692else case e in #( 17693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17694/* end confdefs.h. */ 17695int i; 17696int 17697main (void) 17698{ 17699 17700 ; 17701 return 0; 17702} 17703_ACEOF 17704if ac_fn_c_try_link "$LINENO" 17705then : 17706 eval $cacheid=yes 17707else case e in #( 17708 e) eval $cacheid=no ;; 17709esac 17710fi 17711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17712 conftest$ac_exeext conftest.$ac_ext ;; 17713esac 17714fi 17715 17716 17717 CFLAGS="$xorg_testset_save_CFLAGS" 17718 17719 eval supported=\$$cacheid 17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17721printf "%s\n" "$supported" >&6; } 17722 if test "$supported" = "yes" ; then 17723 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17724 found="yes" 17725 fi 17726 fi 17727 17728 if test $found = "no" ; then 17729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17731 fi 17732 17733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17735 fi 17736 17737 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17738 17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17740printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17741 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17742 if eval test \${$cacheid+y} 17743then : 17744 printf %s "(cached) " >&6 17745else case e in #( 17746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17747/* end confdefs.h. */ 17748int i; 17749int 17750main (void) 17751{ 17752 17753 ; 17754 return 0; 17755} 17756_ACEOF 17757if ac_fn_c_try_link "$LINENO" 17758then : 17759 eval $cacheid=yes 17760else case e in #( 17761 e) eval $cacheid=no ;; 17762esac 17763fi 17764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17765 conftest$ac_exeext conftest.$ac_ext ;; 17766esac 17767fi 17768 17769 17770 CFLAGS="$xorg_testset_save_CFLAGS" 17771 17772 eval supported=\$$cacheid 17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17774printf "%s\n" "$supported" >&6; } 17775 if test "$supported" = "yes" ; then 17776 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17777 found="yes" 17778 fi 17779 fi 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795xorg_testset_save_CFLAGS="$CFLAGS" 17796 17797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17802then : 17803 printf %s "(cached) " >&6 17804else case e in #( 17805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807int i; 17808_ACEOF 17809if ac_fn_c_try_compile "$LINENO" 17810then : 17811 xorg_cv_cc_flag_unknown_warning_option=yes 17812else case e in #( 17813 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17814esac 17815fi 17816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17817esac 17818fi 17819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17822 CFLAGS="$xorg_testset_save_CFLAGS" 17823fi 17824 17825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17828 fi 17829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17833then : 17834 printf %s "(cached) " >&6 17835else case e in #( 17836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17837/* end confdefs.h. */ 17838int i; 17839_ACEOF 17840if ac_fn_c_try_compile "$LINENO" 17841then : 17842 xorg_cv_cc_flag_unused_command_line_argument=yes 17843else case e in #( 17844 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17845esac 17846fi 17847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17848esac 17849fi 17850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17853 CFLAGS="$xorg_testset_save_CFLAGS" 17854fi 17855 17856found="no" 17857 17858 if test $found = "no" ; then 17859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17861 fi 17862 17863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17865 fi 17866 17867 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17868 17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17870printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17871 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17872 if eval test \${$cacheid+y} 17873then : 17874 printf %s "(cached) " >&6 17875else case e in #( 17876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878int i; 17879int 17880main (void) 17881{ 17882 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_link "$LINENO" 17888then : 17889 eval $cacheid=yes 17890else case e in #( 17891 e) eval $cacheid=no ;; 17892esac 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17895 conftest$ac_exeext conftest.$ac_ext ;; 17896esac 17897fi 17898 17899 17900 CFLAGS="$xorg_testset_save_CFLAGS" 17901 17902 eval supported=\$$cacheid 17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17904printf "%s\n" "$supported" >&6; } 17905 if test "$supported" = "yes" ; then 17906 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17907 found="yes" 17908 fi 17909 fi 17910 17911 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17912else 17913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 17914printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928xorg_testset_save_CFLAGS="$CFLAGS" 17929 17930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17934if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17935then : 17936 printf %s "(cached) " >&6 17937else case e in #( 17938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940int i; 17941_ACEOF 17942if ac_fn_c_try_compile "$LINENO" 17943then : 17944 xorg_cv_cc_flag_unknown_warning_option=yes 17945else case e in #( 17946 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17947esac 17948fi 17949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17950esac 17951fi 17952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17955 CFLAGS="$xorg_testset_save_CFLAGS" 17956fi 17957 17958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17961 fi 17962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17965if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17966then : 17967 printf %s "(cached) " >&6 17968else case e in #( 17969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17970/* end confdefs.h. */ 17971int i; 17972_ACEOF 17973if ac_fn_c_try_compile "$LINENO" 17974then : 17975 xorg_cv_cc_flag_unused_command_line_argument=yes 17976else case e in #( 17977 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17978esac 17979fi 17980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17981esac 17982fi 17983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17986 CFLAGS="$xorg_testset_save_CFLAGS" 17987fi 17988 17989found="no" 17990 17991 if test $found = "no" ; then 17992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17994 fi 17995 17996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17998 fi 17999 18000 CFLAGS="$CFLAGS -Wimplicit" 18001 18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18003printf %s "checking if $CC supports -Wimplicit... " >&6; } 18004 cacheid=xorg_cv_cc_flag__Wimplicit 18005 if eval test \${$cacheid+y} 18006then : 18007 printf %s "(cached) " >&6 18008else case e in #( 18009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18010/* end confdefs.h. */ 18011int i; 18012int 18013main (void) 18014{ 18015 18016 ; 18017 return 0; 18018} 18019_ACEOF 18020if ac_fn_c_try_link "$LINENO" 18021then : 18022 eval $cacheid=yes 18023else case e in #( 18024 e) eval $cacheid=no ;; 18025esac 18026fi 18027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18028 conftest$ac_exeext conftest.$ac_ext ;; 18029esac 18030fi 18031 18032 18033 CFLAGS="$xorg_testset_save_CFLAGS" 18034 18035 eval supported=\$$cacheid 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18037printf "%s\n" "$supported" >&6; } 18038 if test "$supported" = "yes" ; then 18039 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18040 found="yes" 18041 fi 18042 fi 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058xorg_testset_save_CFLAGS="$CFLAGS" 18059 18060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18064if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18065then : 18066 printf %s "(cached) " >&6 18067else case e in #( 18068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18069/* end confdefs.h. */ 18070int i; 18071_ACEOF 18072if ac_fn_c_try_compile "$LINENO" 18073then : 18074 xorg_cv_cc_flag_unknown_warning_option=yes 18075else case e in #( 18076 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18077esac 18078fi 18079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18080esac 18081fi 18082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18085 CFLAGS="$xorg_testset_save_CFLAGS" 18086fi 18087 18088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18091 fi 18092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18096then : 18097 printf %s "(cached) " >&6 18098else case e in #( 18099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100/* end confdefs.h. */ 18101int i; 18102_ACEOF 18103if ac_fn_c_try_compile "$LINENO" 18104then : 18105 xorg_cv_cc_flag_unused_command_line_argument=yes 18106else case e in #( 18107 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18108esac 18109fi 18110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18111esac 18112fi 18113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18116 CFLAGS="$xorg_testset_save_CFLAGS" 18117fi 18118 18119found="no" 18120 18121 if test $found = "no" ; then 18122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18124 fi 18125 18126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18128 fi 18129 18130 CFLAGS="$CFLAGS -Wnonnull" 18131 18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18133printf %s "checking if $CC supports -Wnonnull... " >&6; } 18134 cacheid=xorg_cv_cc_flag__Wnonnull 18135 if eval test \${$cacheid+y} 18136then : 18137 printf %s "(cached) " >&6 18138else case e in #( 18139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18140/* end confdefs.h. */ 18141int i; 18142int 18143main (void) 18144{ 18145 18146 ; 18147 return 0; 18148} 18149_ACEOF 18150if ac_fn_c_try_link "$LINENO" 18151then : 18152 eval $cacheid=yes 18153else case e in #( 18154 e) eval $cacheid=no ;; 18155esac 18156fi 18157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18158 conftest$ac_exeext conftest.$ac_ext ;; 18159esac 18160fi 18161 18162 18163 CFLAGS="$xorg_testset_save_CFLAGS" 18164 18165 eval supported=\$$cacheid 18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18167printf "%s\n" "$supported" >&6; } 18168 if test "$supported" = "yes" ; then 18169 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18170 found="yes" 18171 fi 18172 fi 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188xorg_testset_save_CFLAGS="$CFLAGS" 18189 18190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18194if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18195then : 18196 printf %s "(cached) " >&6 18197else case e in #( 18198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18199/* end confdefs.h. */ 18200int i; 18201_ACEOF 18202if ac_fn_c_try_compile "$LINENO" 18203then : 18204 xorg_cv_cc_flag_unknown_warning_option=yes 18205else case e in #( 18206 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18207esac 18208fi 18209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18210esac 18211fi 18212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18215 CFLAGS="$xorg_testset_save_CFLAGS" 18216fi 18217 18218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18221 fi 18222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18225if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18226then : 18227 printf %s "(cached) " >&6 18228else case e in #( 18229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18230/* end confdefs.h. */ 18231int i; 18232_ACEOF 18233if ac_fn_c_try_compile "$LINENO" 18234then : 18235 xorg_cv_cc_flag_unused_command_line_argument=yes 18236else case e in #( 18237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18238esac 18239fi 18240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18241esac 18242fi 18243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18246 CFLAGS="$xorg_testset_save_CFLAGS" 18247fi 18248 18249found="no" 18250 18251 if test $found = "no" ; then 18252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18254 fi 18255 18256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18258 fi 18259 18260 CFLAGS="$CFLAGS -Winit-self" 18261 18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18263printf %s "checking if $CC supports -Winit-self... " >&6; } 18264 cacheid=xorg_cv_cc_flag__Winit_self 18265 if eval test \${$cacheid+y} 18266then : 18267 printf %s "(cached) " >&6 18268else case e in #( 18269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271int i; 18272int 18273main (void) 18274{ 18275 18276 ; 18277 return 0; 18278} 18279_ACEOF 18280if ac_fn_c_try_link "$LINENO" 18281then : 18282 eval $cacheid=yes 18283else case e in #( 18284 e) eval $cacheid=no ;; 18285esac 18286fi 18287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18288 conftest$ac_exeext conftest.$ac_ext ;; 18289esac 18290fi 18291 18292 18293 CFLAGS="$xorg_testset_save_CFLAGS" 18294 18295 eval supported=\$$cacheid 18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18297printf "%s\n" "$supported" >&6; } 18298 if test "$supported" = "yes" ; then 18299 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18300 found="yes" 18301 fi 18302 fi 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318xorg_testset_save_CFLAGS="$CFLAGS" 18319 18320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18325then : 18326 printf %s "(cached) " >&6 18327else case e in #( 18328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18329/* end confdefs.h. */ 18330int i; 18331_ACEOF 18332if ac_fn_c_try_compile "$LINENO" 18333then : 18334 xorg_cv_cc_flag_unknown_warning_option=yes 18335else case e in #( 18336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18337esac 18338fi 18339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18340esac 18341fi 18342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18345 CFLAGS="$xorg_testset_save_CFLAGS" 18346fi 18347 18348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18351 fi 18352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18356then : 18357 printf %s "(cached) " >&6 18358else case e in #( 18359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18360/* end confdefs.h. */ 18361int i; 18362_ACEOF 18363if ac_fn_c_try_compile "$LINENO" 18364then : 18365 xorg_cv_cc_flag_unused_command_line_argument=yes 18366else case e in #( 18367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18368esac 18369fi 18370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18371esac 18372fi 18373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18376 CFLAGS="$xorg_testset_save_CFLAGS" 18377fi 18378 18379found="no" 18380 18381 if test $found = "no" ; then 18382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18384 fi 18385 18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18388 fi 18389 18390 CFLAGS="$CFLAGS -Wmain" 18391 18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18393printf %s "checking if $CC supports -Wmain... " >&6; } 18394 cacheid=xorg_cv_cc_flag__Wmain 18395 if eval test \${$cacheid+y} 18396then : 18397 printf %s "(cached) " >&6 18398else case e in #( 18399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18400/* end confdefs.h. */ 18401int i; 18402int 18403main (void) 18404{ 18405 18406 ; 18407 return 0; 18408} 18409_ACEOF 18410if ac_fn_c_try_link "$LINENO" 18411then : 18412 eval $cacheid=yes 18413else case e in #( 18414 e) eval $cacheid=no ;; 18415esac 18416fi 18417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18418 conftest$ac_exeext conftest.$ac_ext ;; 18419esac 18420fi 18421 18422 18423 CFLAGS="$xorg_testset_save_CFLAGS" 18424 18425 eval supported=\$$cacheid 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18427printf "%s\n" "$supported" >&6; } 18428 if test "$supported" = "yes" ; then 18429 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18430 found="yes" 18431 fi 18432 fi 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448xorg_testset_save_CFLAGS="$CFLAGS" 18449 18450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18454if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18455then : 18456 printf %s "(cached) " >&6 18457else case e in #( 18458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18459/* end confdefs.h. */ 18460int i; 18461_ACEOF 18462if ac_fn_c_try_compile "$LINENO" 18463then : 18464 xorg_cv_cc_flag_unknown_warning_option=yes 18465else case e in #( 18466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18467esac 18468fi 18469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18470esac 18471fi 18472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18475 CFLAGS="$xorg_testset_save_CFLAGS" 18476fi 18477 18478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18481 fi 18482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18486then : 18487 printf %s "(cached) " >&6 18488else case e in #( 18489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18490/* end confdefs.h. */ 18491int i; 18492_ACEOF 18493if ac_fn_c_try_compile "$LINENO" 18494then : 18495 xorg_cv_cc_flag_unused_command_line_argument=yes 18496else case e in #( 18497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18498esac 18499fi 18500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18501esac 18502fi 18503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18506 CFLAGS="$xorg_testset_save_CFLAGS" 18507fi 18508 18509found="no" 18510 18511 if test $found = "no" ; then 18512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18514 fi 18515 18516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18518 fi 18519 18520 CFLAGS="$CFLAGS -Wmissing-braces" 18521 18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18523printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18524 cacheid=xorg_cv_cc_flag__Wmissing_braces 18525 if eval test \${$cacheid+y} 18526then : 18527 printf %s "(cached) " >&6 18528else case e in #( 18529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18530/* end confdefs.h. */ 18531int i; 18532int 18533main (void) 18534{ 18535 18536 ; 18537 return 0; 18538} 18539_ACEOF 18540if ac_fn_c_try_link "$LINENO" 18541then : 18542 eval $cacheid=yes 18543else case e in #( 18544 e) eval $cacheid=no ;; 18545esac 18546fi 18547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18548 conftest$ac_exeext conftest.$ac_ext ;; 18549esac 18550fi 18551 18552 18553 CFLAGS="$xorg_testset_save_CFLAGS" 18554 18555 eval supported=\$$cacheid 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18557printf "%s\n" "$supported" >&6; } 18558 if test "$supported" = "yes" ; then 18559 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18560 found="yes" 18561 fi 18562 fi 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578xorg_testset_save_CFLAGS="$CFLAGS" 18579 18580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18585then : 18586 printf %s "(cached) " >&6 18587else case e in #( 18588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18589/* end confdefs.h. */ 18590int i; 18591_ACEOF 18592if ac_fn_c_try_compile "$LINENO" 18593then : 18594 xorg_cv_cc_flag_unknown_warning_option=yes 18595else case e in #( 18596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18597esac 18598fi 18599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18600esac 18601fi 18602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18605 CFLAGS="$xorg_testset_save_CFLAGS" 18606fi 18607 18608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18611 fi 18612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18616then : 18617 printf %s "(cached) " >&6 18618else case e in #( 18619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18620/* end confdefs.h. */ 18621int i; 18622_ACEOF 18623if ac_fn_c_try_compile "$LINENO" 18624then : 18625 xorg_cv_cc_flag_unused_command_line_argument=yes 18626else case e in #( 18627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18628esac 18629fi 18630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18631esac 18632fi 18633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18636 CFLAGS="$xorg_testset_save_CFLAGS" 18637fi 18638 18639found="no" 18640 18641 if test $found = "no" ; then 18642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18644 fi 18645 18646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18648 fi 18649 18650 CFLAGS="$CFLAGS -Wsequence-point" 18651 18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18653printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18654 cacheid=xorg_cv_cc_flag__Wsequence_point 18655 if eval test \${$cacheid+y} 18656then : 18657 printf %s "(cached) " >&6 18658else case e in #( 18659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18660/* end confdefs.h. */ 18661int i; 18662int 18663main (void) 18664{ 18665 18666 ; 18667 return 0; 18668} 18669_ACEOF 18670if ac_fn_c_try_link "$LINENO" 18671then : 18672 eval $cacheid=yes 18673else case e in #( 18674 e) eval $cacheid=no ;; 18675esac 18676fi 18677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18678 conftest$ac_exeext conftest.$ac_ext ;; 18679esac 18680fi 18681 18682 18683 CFLAGS="$xorg_testset_save_CFLAGS" 18684 18685 eval supported=\$$cacheid 18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18687printf "%s\n" "$supported" >&6; } 18688 if test "$supported" = "yes" ; then 18689 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18690 found="yes" 18691 fi 18692 fi 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708xorg_testset_save_CFLAGS="$CFLAGS" 18709 18710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18715then : 18716 printf %s "(cached) " >&6 18717else case e in #( 18718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720int i; 18721_ACEOF 18722if ac_fn_c_try_compile "$LINENO" 18723then : 18724 xorg_cv_cc_flag_unknown_warning_option=yes 18725else case e in #( 18726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18727esac 18728fi 18729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18730esac 18731fi 18732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18735 CFLAGS="$xorg_testset_save_CFLAGS" 18736fi 18737 18738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18741 fi 18742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18746then : 18747 printf %s "(cached) " >&6 18748else case e in #( 18749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18750/* end confdefs.h. */ 18751int i; 18752_ACEOF 18753if ac_fn_c_try_compile "$LINENO" 18754then : 18755 xorg_cv_cc_flag_unused_command_line_argument=yes 18756else case e in #( 18757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18758esac 18759fi 18760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18761esac 18762fi 18763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18766 CFLAGS="$xorg_testset_save_CFLAGS" 18767fi 18768 18769found="no" 18770 18771 if test $found = "no" ; then 18772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18774 fi 18775 18776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18778 fi 18779 18780 CFLAGS="$CFLAGS -Wreturn-type" 18781 18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18783printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18784 cacheid=xorg_cv_cc_flag__Wreturn_type 18785 if eval test \${$cacheid+y} 18786then : 18787 printf %s "(cached) " >&6 18788else case e in #( 18789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18790/* end confdefs.h. */ 18791int i; 18792int 18793main (void) 18794{ 18795 18796 ; 18797 return 0; 18798} 18799_ACEOF 18800if ac_fn_c_try_link "$LINENO" 18801then : 18802 eval $cacheid=yes 18803else case e in #( 18804 e) eval $cacheid=no ;; 18805esac 18806fi 18807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18808 conftest$ac_exeext conftest.$ac_ext ;; 18809esac 18810fi 18811 18812 18813 CFLAGS="$xorg_testset_save_CFLAGS" 18814 18815 eval supported=\$$cacheid 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18817printf "%s\n" "$supported" >&6; } 18818 if test "$supported" = "yes" ; then 18819 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18820 found="yes" 18821 fi 18822 fi 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838xorg_testset_save_CFLAGS="$CFLAGS" 18839 18840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18845then : 18846 printf %s "(cached) " >&6 18847else case e in #( 18848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18849/* end confdefs.h. */ 18850int i; 18851_ACEOF 18852if ac_fn_c_try_compile "$LINENO" 18853then : 18854 xorg_cv_cc_flag_unknown_warning_option=yes 18855else case e in #( 18856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18857esac 18858fi 18859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18860esac 18861fi 18862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18865 CFLAGS="$xorg_testset_save_CFLAGS" 18866fi 18867 18868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18871 fi 18872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18876then : 18877 printf %s "(cached) " >&6 18878else case e in #( 18879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18880/* end confdefs.h. */ 18881int i; 18882_ACEOF 18883if ac_fn_c_try_compile "$LINENO" 18884then : 18885 xorg_cv_cc_flag_unused_command_line_argument=yes 18886else case e in #( 18887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18888esac 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18891esac 18892fi 18893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18896 CFLAGS="$xorg_testset_save_CFLAGS" 18897fi 18898 18899found="no" 18900 18901 if test $found = "no" ; then 18902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18904 fi 18905 18906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18908 fi 18909 18910 CFLAGS="$CFLAGS -Wtrigraphs" 18911 18912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18913printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18914 cacheid=xorg_cv_cc_flag__Wtrigraphs 18915 if eval test \${$cacheid+y} 18916then : 18917 printf %s "(cached) " >&6 18918else case e in #( 18919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18920/* end confdefs.h. */ 18921int i; 18922int 18923main (void) 18924{ 18925 18926 ; 18927 return 0; 18928} 18929_ACEOF 18930if ac_fn_c_try_link "$LINENO" 18931then : 18932 eval $cacheid=yes 18933else case e in #( 18934 e) eval $cacheid=no ;; 18935esac 18936fi 18937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18938 conftest$ac_exeext conftest.$ac_ext ;; 18939esac 18940fi 18941 18942 18943 CFLAGS="$xorg_testset_save_CFLAGS" 18944 18945 eval supported=\$$cacheid 18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18947printf "%s\n" "$supported" >&6; } 18948 if test "$supported" = "yes" ; then 18949 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18950 found="yes" 18951 fi 18952 fi 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968xorg_testset_save_CFLAGS="$CFLAGS" 18969 18970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18975then : 18976 printf %s "(cached) " >&6 18977else case e in #( 18978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18979/* end confdefs.h. */ 18980int i; 18981_ACEOF 18982if ac_fn_c_try_compile "$LINENO" 18983then : 18984 xorg_cv_cc_flag_unknown_warning_option=yes 18985else case e in #( 18986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18987esac 18988fi 18989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18990esac 18991fi 18992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18995 CFLAGS="$xorg_testset_save_CFLAGS" 18996fi 18997 18998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19001 fi 19002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19006then : 19007 printf %s "(cached) " >&6 19008else case e in #( 19009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19010/* end confdefs.h. */ 19011int i; 19012_ACEOF 19013if ac_fn_c_try_compile "$LINENO" 19014then : 19015 xorg_cv_cc_flag_unused_command_line_argument=yes 19016else case e in #( 19017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19018esac 19019fi 19020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19021esac 19022fi 19023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19026 CFLAGS="$xorg_testset_save_CFLAGS" 19027fi 19028 19029found="no" 19030 19031 if test $found = "no" ; then 19032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19034 fi 19035 19036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19038 fi 19039 19040 CFLAGS="$CFLAGS -Warray-bounds" 19041 19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19043printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19044 cacheid=xorg_cv_cc_flag__Warray_bounds 19045 if eval test \${$cacheid+y} 19046then : 19047 printf %s "(cached) " >&6 19048else case e in #( 19049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19050/* end confdefs.h. */ 19051int i; 19052int 19053main (void) 19054{ 19055 19056 ; 19057 return 0; 19058} 19059_ACEOF 19060if ac_fn_c_try_link "$LINENO" 19061then : 19062 eval $cacheid=yes 19063else case e in #( 19064 e) eval $cacheid=no ;; 19065esac 19066fi 19067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19068 conftest$ac_exeext conftest.$ac_ext ;; 19069esac 19070fi 19071 19072 19073 CFLAGS="$xorg_testset_save_CFLAGS" 19074 19075 eval supported=\$$cacheid 19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19077printf "%s\n" "$supported" >&6; } 19078 if test "$supported" = "yes" ; then 19079 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19080 found="yes" 19081 fi 19082 fi 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098xorg_testset_save_CFLAGS="$CFLAGS" 19099 19100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19105then : 19106 printf %s "(cached) " >&6 19107else case e in #( 19108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19109/* end confdefs.h. */ 19110int i; 19111_ACEOF 19112if ac_fn_c_try_compile "$LINENO" 19113then : 19114 xorg_cv_cc_flag_unknown_warning_option=yes 19115else case e in #( 19116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19117esac 19118fi 19119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19120esac 19121fi 19122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19125 CFLAGS="$xorg_testset_save_CFLAGS" 19126fi 19127 19128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19131 fi 19132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19135if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19136then : 19137 printf %s "(cached) " >&6 19138else case e in #( 19139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19140/* end confdefs.h. */ 19141int i; 19142_ACEOF 19143if ac_fn_c_try_compile "$LINENO" 19144then : 19145 xorg_cv_cc_flag_unused_command_line_argument=yes 19146else case e in #( 19147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19148esac 19149fi 19150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19151esac 19152fi 19153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19156 CFLAGS="$xorg_testset_save_CFLAGS" 19157fi 19158 19159found="no" 19160 19161 if test $found = "no" ; then 19162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19164 fi 19165 19166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19168 fi 19169 19170 CFLAGS="$CFLAGS -Wwrite-strings" 19171 19172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19173printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19174 cacheid=xorg_cv_cc_flag__Wwrite_strings 19175 if eval test \${$cacheid+y} 19176then : 19177 printf %s "(cached) " >&6 19178else case e in #( 19179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19180/* end confdefs.h. */ 19181int i; 19182int 19183main (void) 19184{ 19185 19186 ; 19187 return 0; 19188} 19189_ACEOF 19190if ac_fn_c_try_link "$LINENO" 19191then : 19192 eval $cacheid=yes 19193else case e in #( 19194 e) eval $cacheid=no ;; 19195esac 19196fi 19197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19198 conftest$ac_exeext conftest.$ac_ext ;; 19199esac 19200fi 19201 19202 19203 CFLAGS="$xorg_testset_save_CFLAGS" 19204 19205 eval supported=\$$cacheid 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19207printf "%s\n" "$supported" >&6; } 19208 if test "$supported" = "yes" ; then 19209 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19210 found="yes" 19211 fi 19212 fi 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228xorg_testset_save_CFLAGS="$CFLAGS" 19229 19230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19234if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19235then : 19236 printf %s "(cached) " >&6 19237else case e in #( 19238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19239/* end confdefs.h. */ 19240int i; 19241_ACEOF 19242if ac_fn_c_try_compile "$LINENO" 19243then : 19244 xorg_cv_cc_flag_unknown_warning_option=yes 19245else case e in #( 19246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19247esac 19248fi 19249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19250esac 19251fi 19252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19255 CFLAGS="$xorg_testset_save_CFLAGS" 19256fi 19257 19258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19261 fi 19262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19266then : 19267 printf %s "(cached) " >&6 19268else case e in #( 19269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19270/* end confdefs.h. */ 19271int i; 19272_ACEOF 19273if ac_fn_c_try_compile "$LINENO" 19274then : 19275 xorg_cv_cc_flag_unused_command_line_argument=yes 19276else case e in #( 19277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19278esac 19279fi 19280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19281esac 19282fi 19283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19286 CFLAGS="$xorg_testset_save_CFLAGS" 19287fi 19288 19289found="no" 19290 19291 if test $found = "no" ; then 19292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19294 fi 19295 19296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19298 fi 19299 19300 CFLAGS="$CFLAGS -Waddress" 19301 19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19303printf %s "checking if $CC supports -Waddress... " >&6; } 19304 cacheid=xorg_cv_cc_flag__Waddress 19305 if eval test \${$cacheid+y} 19306then : 19307 printf %s "(cached) " >&6 19308else case e in #( 19309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19310/* end confdefs.h. */ 19311int i; 19312int 19313main (void) 19314{ 19315 19316 ; 19317 return 0; 19318} 19319_ACEOF 19320if ac_fn_c_try_link "$LINENO" 19321then : 19322 eval $cacheid=yes 19323else case e in #( 19324 e) eval $cacheid=no ;; 19325esac 19326fi 19327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19328 conftest$ac_exeext conftest.$ac_ext ;; 19329esac 19330fi 19331 19332 19333 CFLAGS="$xorg_testset_save_CFLAGS" 19334 19335 eval supported=\$$cacheid 19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19337printf "%s\n" "$supported" >&6; } 19338 if test "$supported" = "yes" ; then 19339 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19340 found="yes" 19341 fi 19342 fi 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358xorg_testset_save_CFLAGS="$CFLAGS" 19359 19360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19365then : 19366 printf %s "(cached) " >&6 19367else case e in #( 19368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19369/* end confdefs.h. */ 19370int i; 19371_ACEOF 19372if ac_fn_c_try_compile "$LINENO" 19373then : 19374 xorg_cv_cc_flag_unknown_warning_option=yes 19375else case e in #( 19376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19377esac 19378fi 19379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19380esac 19381fi 19382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19385 CFLAGS="$xorg_testset_save_CFLAGS" 19386fi 19387 19388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19391 fi 19392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19395if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19396then : 19397 printf %s "(cached) " >&6 19398else case e in #( 19399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19400/* end confdefs.h. */ 19401int i; 19402_ACEOF 19403if ac_fn_c_try_compile "$LINENO" 19404then : 19405 xorg_cv_cc_flag_unused_command_line_argument=yes 19406else case e in #( 19407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19408esac 19409fi 19410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19411esac 19412fi 19413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19416 CFLAGS="$xorg_testset_save_CFLAGS" 19417fi 19418 19419found="no" 19420 19421 if test $found = "no" ; then 19422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19424 fi 19425 19426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19428 fi 19429 19430 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19431 19432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19433printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19434 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19435 if eval test \${$cacheid+y} 19436then : 19437 printf %s "(cached) " >&6 19438else case e in #( 19439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19440/* end confdefs.h. */ 19441int i; 19442int 19443main (void) 19444{ 19445 19446 ; 19447 return 0; 19448} 19449_ACEOF 19450if ac_fn_c_try_link "$LINENO" 19451then : 19452 eval $cacheid=yes 19453else case e in #( 19454 e) eval $cacheid=no ;; 19455esac 19456fi 19457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19458 conftest$ac_exeext conftest.$ac_ext ;; 19459esac 19460fi 19461 19462 19463 CFLAGS="$xorg_testset_save_CFLAGS" 19464 19465 eval supported=\$$cacheid 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19467printf "%s\n" "$supported" >&6; } 19468 if test "$supported" = "yes" ; then 19469 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19470 found="yes" 19471 fi 19472 fi 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488xorg_testset_save_CFLAGS="$CFLAGS" 19489 19490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19495then : 19496 printf %s "(cached) " >&6 19497else case e in #( 19498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19499/* end confdefs.h. */ 19500int i; 19501_ACEOF 19502if ac_fn_c_try_compile "$LINENO" 19503then : 19504 xorg_cv_cc_flag_unknown_warning_option=yes 19505else case e in #( 19506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19507esac 19508fi 19509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19510esac 19511fi 19512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19515 CFLAGS="$xorg_testset_save_CFLAGS" 19516fi 19517 19518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19521 fi 19522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19526then : 19527 printf %s "(cached) " >&6 19528else case e in #( 19529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19530/* end confdefs.h. */ 19531int i; 19532_ACEOF 19533if ac_fn_c_try_compile "$LINENO" 19534then : 19535 xorg_cv_cc_flag_unused_command_line_argument=yes 19536else case e in #( 19537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19538esac 19539fi 19540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19541esac 19542fi 19543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19546 CFLAGS="$xorg_testset_save_CFLAGS" 19547fi 19548 19549found="no" 19550 19551 if test $found = "no" ; then 19552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19554 fi 19555 19556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19558 fi 19559 19560 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19561 19562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19563printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19564 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19565 if eval test \${$cacheid+y} 19566then : 19567 printf %s "(cached) " >&6 19568else case e in #( 19569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19570/* end confdefs.h. */ 19571int i; 19572int 19573main (void) 19574{ 19575 19576 ; 19577 return 0; 19578} 19579_ACEOF 19580if ac_fn_c_try_link "$LINENO" 19581then : 19582 eval $cacheid=yes 19583else case e in #( 19584 e) eval $cacheid=no ;; 19585esac 19586fi 19587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19588 conftest$ac_exeext conftest.$ac_ext ;; 19589esac 19590fi 19591 19592 19593 CFLAGS="$xorg_testset_save_CFLAGS" 19594 19595 eval supported=\$$cacheid 19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19597printf "%s\n" "$supported" >&6; } 19598 if test "$supported" = "yes" ; then 19599 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19600 found="yes" 19601 fi 19602 fi 19603 19604 19605fi 19606 19607 19608 19609 19610 19611 19612 19613 CWARNFLAGS="$BASE_CFLAGS" 19614 if test "x$GCC" = xyes ; then 19615 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19616 fi 19617 19618 19619 19620 19621 19622 19623 19624 19625# Check whether --enable-strict-compilation was given. 19626if test ${enable_strict_compilation+y} 19627then : 19628 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19629else case e in #( 19630 e) STRICT_COMPILE=no ;; 19631esac 19632fi 19633 19634 19635 19636 19637 19638 19639STRICT_CFLAGS="" 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653xorg_testset_save_CFLAGS="$CFLAGS" 19654 19655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19659if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19660then : 19661 printf %s "(cached) " >&6 19662else case e in #( 19663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19664/* end confdefs.h. */ 19665int i; 19666_ACEOF 19667if ac_fn_c_try_compile "$LINENO" 19668then : 19669 xorg_cv_cc_flag_unknown_warning_option=yes 19670else case e in #( 19671 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19672esac 19673fi 19674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19675esac 19676fi 19677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19680 CFLAGS="$xorg_testset_save_CFLAGS" 19681fi 19682 19683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19686 fi 19687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19690if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19691then : 19692 printf %s "(cached) " >&6 19693else case e in #( 19694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19695/* end confdefs.h. */ 19696int i; 19697_ACEOF 19698if ac_fn_c_try_compile "$LINENO" 19699then : 19700 xorg_cv_cc_flag_unused_command_line_argument=yes 19701else case e in #( 19702 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19703esac 19704fi 19705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19706esac 19707fi 19708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19711 CFLAGS="$xorg_testset_save_CFLAGS" 19712fi 19713 19714found="no" 19715 19716 if test $found = "no" ; then 19717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19719 fi 19720 19721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19723 fi 19724 19725 CFLAGS="$CFLAGS -pedantic" 19726 19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19728printf %s "checking if $CC supports -pedantic... " >&6; } 19729 cacheid=xorg_cv_cc_flag__pedantic 19730 if eval test \${$cacheid+y} 19731then : 19732 printf %s "(cached) " >&6 19733else case e in #( 19734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19735/* end confdefs.h. */ 19736int i; 19737int 19738main (void) 19739{ 19740 19741 ; 19742 return 0; 19743} 19744_ACEOF 19745if ac_fn_c_try_link "$LINENO" 19746then : 19747 eval $cacheid=yes 19748else case e in #( 19749 e) eval $cacheid=no ;; 19750esac 19751fi 19752rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19753 conftest$ac_exeext conftest.$ac_ext ;; 19754esac 19755fi 19756 19757 19758 CFLAGS="$xorg_testset_save_CFLAGS" 19759 19760 eval supported=\$$cacheid 19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19762printf "%s\n" "$supported" >&6; } 19763 if test "$supported" = "yes" ; then 19764 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19765 found="yes" 19766 fi 19767 fi 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783xorg_testset_save_CFLAGS="$CFLAGS" 19784 19785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19789if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19790then : 19791 printf %s "(cached) " >&6 19792else case e in #( 19793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19794/* end confdefs.h. */ 19795int i; 19796_ACEOF 19797if ac_fn_c_try_compile "$LINENO" 19798then : 19799 xorg_cv_cc_flag_unknown_warning_option=yes 19800else case e in #( 19801 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19802esac 19803fi 19804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19805esac 19806fi 19807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19810 CFLAGS="$xorg_testset_save_CFLAGS" 19811fi 19812 19813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19816 fi 19817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19820if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19821then : 19822 printf %s "(cached) " >&6 19823else case e in #( 19824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19825/* end confdefs.h. */ 19826int i; 19827_ACEOF 19828if ac_fn_c_try_compile "$LINENO" 19829then : 19830 xorg_cv_cc_flag_unused_command_line_argument=yes 19831else case e in #( 19832 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19833esac 19834fi 19835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19836esac 19837fi 19838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19841 CFLAGS="$xorg_testset_save_CFLAGS" 19842fi 19843 19844found="no" 19845 19846 if test $found = "no" ; then 19847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19849 fi 19850 19851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19853 fi 19854 19855 CFLAGS="$CFLAGS -Werror" 19856 19857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19858printf %s "checking if $CC supports -Werror... " >&6; } 19859 cacheid=xorg_cv_cc_flag__Werror 19860 if eval test \${$cacheid+y} 19861then : 19862 printf %s "(cached) " >&6 19863else case e in #( 19864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19865/* end confdefs.h. */ 19866int i; 19867int 19868main (void) 19869{ 19870 19871 ; 19872 return 0; 19873} 19874_ACEOF 19875if ac_fn_c_try_link "$LINENO" 19876then : 19877 eval $cacheid=yes 19878else case e in #( 19879 e) eval $cacheid=no ;; 19880esac 19881fi 19882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19883 conftest$ac_exeext conftest.$ac_ext ;; 19884esac 19885fi 19886 19887 19888 CFLAGS="$xorg_testset_save_CFLAGS" 19889 19890 eval supported=\$$cacheid 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19892printf "%s\n" "$supported" >&6; } 19893 if test "$supported" = "yes" ; then 19894 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19895 found="yes" 19896 fi 19897 fi 19898 19899 if test $found = "no" ; then 19900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19902 fi 19903 19904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19906 fi 19907 19908 CFLAGS="$CFLAGS -errwarn" 19909 19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19911printf %s "checking if $CC supports -errwarn... " >&6; } 19912 cacheid=xorg_cv_cc_flag__errwarn 19913 if eval test \${$cacheid+y} 19914then : 19915 printf %s "(cached) " >&6 19916else case e in #( 19917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19918/* end confdefs.h. */ 19919int i; 19920int 19921main (void) 19922{ 19923 19924 ; 19925 return 0; 19926} 19927_ACEOF 19928if ac_fn_c_try_link "$LINENO" 19929then : 19930 eval $cacheid=yes 19931else case e in #( 19932 e) eval $cacheid=no ;; 19933esac 19934fi 19935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19936 conftest$ac_exeext conftest.$ac_ext ;; 19937esac 19938fi 19939 19940 19941 CFLAGS="$xorg_testset_save_CFLAGS" 19942 19943 eval supported=\$$cacheid 19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19945printf "%s\n" "$supported" >&6; } 19946 if test "$supported" = "yes" ; then 19947 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19948 found="yes" 19949 fi 19950 fi 19951 19952 19953 19954# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19955# activate it with -Werror, so we add it here explicitly. 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969xorg_testset_save_CFLAGS="$CFLAGS" 19970 19971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19975if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19976then : 19977 printf %s "(cached) " >&6 19978else case e in #( 19979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19980/* end confdefs.h. */ 19981int i; 19982_ACEOF 19983if ac_fn_c_try_compile "$LINENO" 19984then : 19985 xorg_cv_cc_flag_unknown_warning_option=yes 19986else case e in #( 19987 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19988esac 19989fi 19990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19991esac 19992fi 19993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19996 CFLAGS="$xorg_testset_save_CFLAGS" 19997fi 19998 19999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20002 fi 20003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20007then : 20008 printf %s "(cached) " >&6 20009else case e in #( 20010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20011/* end confdefs.h. */ 20012int i; 20013_ACEOF 20014if ac_fn_c_try_compile "$LINENO" 20015then : 20016 xorg_cv_cc_flag_unused_command_line_argument=yes 20017else case e in #( 20018 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20019esac 20020fi 20021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20022esac 20023fi 20024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20027 CFLAGS="$xorg_testset_save_CFLAGS" 20028fi 20029 20030found="no" 20031 20032 if test $found = "no" ; then 20033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20035 fi 20036 20037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20039 fi 20040 20041 CFLAGS="$CFLAGS -Werror=attributes" 20042 20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20044printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20045 cacheid=xorg_cv_cc_flag__Werror_attributes 20046 if eval test \${$cacheid+y} 20047then : 20048 printf %s "(cached) " >&6 20049else case e in #( 20050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20051/* end confdefs.h. */ 20052int i; 20053int 20054main (void) 20055{ 20056 20057 ; 20058 return 0; 20059} 20060_ACEOF 20061if ac_fn_c_try_link "$LINENO" 20062then : 20063 eval $cacheid=yes 20064else case e in #( 20065 e) eval $cacheid=no ;; 20066esac 20067fi 20068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20069 conftest$ac_exeext conftest.$ac_ext ;; 20070esac 20071fi 20072 20073 20074 CFLAGS="$xorg_testset_save_CFLAGS" 20075 20076 eval supported=\$$cacheid 20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20078printf "%s\n" "$supported" >&6; } 20079 if test "$supported" = "yes" ; then 20080 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20081 found="yes" 20082 fi 20083 fi 20084 20085 20086 20087if test "x$STRICT_COMPILE" = "xyes"; then 20088 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20089 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20090fi 20091 20092 20093 20094 20095 20096 20097 20098 20099cat >>confdefs.h <<_ACEOF 20100#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20101_ACEOF 20102 20103 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20104 if test "x$PVM" = "x"; then 20105 PVM="0" 20106 fi 20107 20108printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20109 20110 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20111 if test "x$PVP" = "x"; then 20112 PVP="0" 20113 fi 20114 20115printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20116 20117 20118 20119CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20120mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20121|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20122touch \$(top_srcdir)/ChangeLog; \ 20123echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20124 20125 20126 20127 20128macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20129INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20130mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20131|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20132touch \$(top_srcdir)/INSTALL; \ 20133echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20134 20135 20136 20137 20138 20139 20140case $host_os in 20141 solaris*) 20142 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20143 # check for a man page file found in later versions that use 20144 # traditional section numbers instead 20145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20146printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20147if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20148then : 20149 printf %s "(cached) " >&6 20150else case e in #( 20151 e) test "$cross_compiling" = yes && 20152 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20153if test -r "/usr/share/man/man7/attributes.7"; then 20154 ac_cv_file__usr_share_man_man7_attributes_7=yes 20155else 20156 ac_cv_file__usr_share_man_man7_attributes_7=no 20157fi ;; 20158esac 20159fi 20160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20161printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20162if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20163then : 20164 SYSV_MAN_SECTIONS=false 20165else case e in #( 20166 e) SYSV_MAN_SECTIONS=true ;; 20167esac 20168fi 20169 20170 ;; 20171 *) SYSV_MAN_SECTIONS=false ;; 20172esac 20173 20174if test x$APP_MAN_SUFFIX = x ; then 20175 APP_MAN_SUFFIX=1 20176fi 20177if test x$APP_MAN_DIR = x ; then 20178 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20179fi 20180 20181if test x$LIB_MAN_SUFFIX = x ; then 20182 LIB_MAN_SUFFIX=3 20183fi 20184if test x$LIB_MAN_DIR = x ; then 20185 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20186fi 20187 20188if test x$FILE_MAN_SUFFIX = x ; then 20189 case $SYSV_MAN_SECTIONS in 20190 true) FILE_MAN_SUFFIX=4 ;; 20191 *) FILE_MAN_SUFFIX=5 ;; 20192 esac 20193fi 20194if test x$FILE_MAN_DIR = x ; then 20195 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20196fi 20197 20198if test x$MISC_MAN_SUFFIX = x ; then 20199 case $SYSV_MAN_SECTIONS in 20200 true) MISC_MAN_SUFFIX=5 ;; 20201 *) MISC_MAN_SUFFIX=7 ;; 20202 esac 20203fi 20204if test x$MISC_MAN_DIR = x ; then 20205 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20206fi 20207 20208if test x$DRIVER_MAN_SUFFIX = x ; then 20209 case $SYSV_MAN_SECTIONS in 20210 true) DRIVER_MAN_SUFFIX=7 ;; 20211 *) DRIVER_MAN_SUFFIX=4 ;; 20212 esac 20213fi 20214if test x$DRIVER_MAN_DIR = x ; then 20215 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20216fi 20217 20218if test x$ADMIN_MAN_SUFFIX = x ; then 20219 case $SYSV_MAN_SECTIONS in 20220 true) ADMIN_MAN_SUFFIX=1m ;; 20221 *) ADMIN_MAN_SUFFIX=8 ;; 20222 esac 20223fi 20224if test x$ADMIN_MAN_DIR = x ; then 20225 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20226fi 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242XORG_MAN_PAGE="X Version 11" 20243 20244MAN_SUBSTS="\ 20245 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20246 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20247 -e 's|__xservername__|Xorg|g' \ 20248 -e 's|__xconfigfile__|xorg.conf|g' \ 20249 -e 's|__projectroot__|\$(prefix)|g' \ 20250 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20251 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20252 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20253 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20254 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20255 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20256 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20257 20258 20259 20260# Check whether --enable-silent-rules was given. 20261if test ${enable_silent_rules+y} 20262then : 20263 enableval=$enable_silent_rules; 20264fi 20265 20266case $enable_silent_rules in # ((( 20267 yes) AM_DEFAULT_VERBOSITY=0;; 20268 no) AM_DEFAULT_VERBOSITY=1;; 20269 *) AM_DEFAULT_VERBOSITY=0;; 20270esac 20271am_make=${MAKE-make} 20272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 20273printf %s "checking whether $am_make supports nested variables... " >&6; } 20274if test ${am_cv_make_support_nested_variables+y} 20275then : 20276 printf %s "(cached) " >&6 20277else case e in #( 20278 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 20279BAR0=false 20280BAR1=true 20281V=1 20282am__doit: 20283 @$(TRUE) 20284.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 20285 am_cv_make_support_nested_variables=yes 20286else 20287 am_cv_make_support_nested_variables=no 20288fi ;; 20289esac 20290fi 20291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 20292printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 20293if test $am_cv_make_support_nested_variables = yes; then 20294 AM_V='$(V)' 20295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20296else 20297 AM_V=$AM_DEFAULT_VERBOSITY 20298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20299fi 20300AM_BACKSLASH='\' 20301 20302 20303 20304ac_ext=c 20305ac_cpp='$CPP $CPPFLAGS' 20306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20308ac_compiler_gnu=$ac_cv_c_compiler_gnu 20309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20310printf %s "checking how to run the C preprocessor... " >&6; } 20311# On Suns, sometimes $CPP names a directory. 20312if test -n "$CPP" && test -d "$CPP"; then 20313 CPP= 20314fi 20315if test -z "$CPP"; then 20316 if test ${ac_cv_prog_CPP+y} 20317then : 20318 printf %s "(cached) " >&6 20319else case e in #( 20320 e) # Double quotes because $CC needs to be expanded 20321 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20322 do 20323 ac_preproc_ok=false 20324for ac_c_preproc_warn_flag in '' yes 20325do 20326 # Use a header file that comes with gcc, so configuring glibc 20327 # with a fresh cross-compiler works. 20328 # On the NeXT, cc -E runs the code through the compiler's parser, 20329 # not just through cpp. "Syntax error" is here to catch this case. 20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20331/* end confdefs.h. */ 20332#include <limits.h> 20333 Syntax error 20334_ACEOF 20335if ac_fn_c_try_cpp "$LINENO" 20336then : 20337 20338else case e in #( 20339 e) # Broken: fails on valid input. 20340continue ;; 20341esac 20342fi 20343rm -f conftest.err conftest.i conftest.$ac_ext 20344 20345 # OK, works on sane cases. Now check whether nonexistent headers 20346 # can be detected and how. 20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20348/* end confdefs.h. */ 20349#include <ac_nonexistent.h> 20350_ACEOF 20351if ac_fn_c_try_cpp "$LINENO" 20352then : 20353 # Broken: success on invalid input. 20354continue 20355else case e in #( 20356 e) # Passes both tests. 20357ac_preproc_ok=: 20358break ;; 20359esac 20360fi 20361rm -f conftest.err conftest.i conftest.$ac_ext 20362 20363done 20364# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20365rm -f conftest.i conftest.err conftest.$ac_ext 20366if $ac_preproc_ok 20367then : 20368 break 20369fi 20370 20371 done 20372 ac_cv_prog_CPP=$CPP 20373 ;; 20374esac 20375fi 20376 CPP=$ac_cv_prog_CPP 20377else 20378 ac_cv_prog_CPP=$CPP 20379fi 20380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20381printf "%s\n" "$CPP" >&6; } 20382ac_preproc_ok=false 20383for ac_c_preproc_warn_flag in '' yes 20384do 20385 # Use a header file that comes with gcc, so configuring glibc 20386 # with a fresh cross-compiler works. 20387 # On the NeXT, cc -E runs the code through the compiler's parser, 20388 # not just through cpp. "Syntax error" is here to catch this case. 20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20390/* end confdefs.h. */ 20391#include <limits.h> 20392 Syntax error 20393_ACEOF 20394if ac_fn_c_try_cpp "$LINENO" 20395then : 20396 20397else case e in #( 20398 e) # Broken: fails on valid input. 20399continue ;; 20400esac 20401fi 20402rm -f conftest.err conftest.i conftest.$ac_ext 20403 20404 # OK, works on sane cases. Now check whether nonexistent headers 20405 # can be detected and how. 20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20407/* end confdefs.h. */ 20408#include <ac_nonexistent.h> 20409_ACEOF 20410if ac_fn_c_try_cpp "$LINENO" 20411then : 20412 # Broken: success on invalid input. 20413continue 20414else case e in #( 20415 e) # Passes both tests. 20416ac_preproc_ok=: 20417break ;; 20418esac 20419fi 20420rm -f conftest.err conftest.i conftest.$ac_ext 20421 20422done 20423# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20424rm -f conftest.i conftest.err conftest.$ac_ext 20425if $ac_preproc_ok 20426then : 20427 20428else case e in #( 20429 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20430printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20431as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20432See 'config.log' for more details" "$LINENO" 5; } ;; 20433esac 20434fi 20435 20436ac_ext=c 20437ac_cpp='$CPP $CPPFLAGS' 20438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20440ac_compiler_gnu=$ac_cv_c_compiler_gnu 20441 20442 20443 20444if test -n "$ac_tool_prefix"; then 20445 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 20446set dummy ${ac_tool_prefix}cpp; ac_word=$2 20447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20448printf %s "checking for $ac_word... " >&6; } 20449if test ${ac_cv_path_RAWCPP+y} 20450then : 20451 printf %s "(cached) " >&6 20452else case e in #( 20453 e) case $RAWCPP in 20454 [\\/]* | ?:[\\/]*) 20455 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 20456 ;; 20457 *) 20458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20459as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20460for as_dir in $as_dummy 20461do 20462 IFS=$as_save_IFS 20463 case $as_dir in #((( 20464 '') as_dir=./ ;; 20465 */) ;; 20466 *) as_dir=$as_dir/ ;; 20467 esac 20468 for ac_exec_ext in '' $ac_executable_extensions; do 20469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20470 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20472 break 2 20473 fi 20474done 20475 done 20476IFS=$as_save_IFS 20477 20478 ;; 20479esac ;; 20480esac 20481fi 20482RAWCPP=$ac_cv_path_RAWCPP 20483if test -n "$RAWCPP"; then 20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 20485printf "%s\n" "$RAWCPP" >&6; } 20486else 20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20488printf "%s\n" "no" >&6; } 20489fi 20490 20491 20492fi 20493if test -z "$ac_cv_path_RAWCPP"; then 20494 ac_pt_RAWCPP=$RAWCPP 20495 # Extract the first word of "cpp", so it can be a program name with args. 20496set dummy cpp; ac_word=$2 20497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20498printf %s "checking for $ac_word... " >&6; } 20499if test ${ac_cv_path_ac_pt_RAWCPP+y} 20500then : 20501 printf %s "(cached) " >&6 20502else case e in #( 20503 e) case $ac_pt_RAWCPP in 20504 [\\/]* | ?:[\\/]*) 20505 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 20506 ;; 20507 *) 20508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20509as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20510for as_dir in $as_dummy 20511do 20512 IFS=$as_save_IFS 20513 case $as_dir in #((( 20514 '') as_dir=./ ;; 20515 */) ;; 20516 *) as_dir=$as_dir/ ;; 20517 esac 20518 for ac_exec_ext in '' $ac_executable_extensions; do 20519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20520 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20522 break 2 20523 fi 20524done 20525 done 20526IFS=$as_save_IFS 20527 20528 ;; 20529esac ;; 20530esac 20531fi 20532ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 20533if test -n "$ac_pt_RAWCPP"; then 20534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 20535printf "%s\n" "$ac_pt_RAWCPP" >&6; } 20536else 20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20538printf "%s\n" "no" >&6; } 20539fi 20540 20541 if test "x$ac_pt_RAWCPP" = x; then 20542 RAWCPP="${CPP}" 20543 else 20544 case $cross_compiling:$ac_tool_warned in 20545yes:) 20546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20548ac_tool_warned=yes ;; 20549esac 20550 RAWCPP=$ac_pt_RAWCPP 20551 fi 20552else 20553 RAWCPP="$ac_cv_path_RAWCPP" 20554fi 20555 20556 20557# Check for flag to avoid builtin definitions - assumes unix is predefined, 20558# which is not the best choice for supporting other OS'es, but covers most 20559# of the ones we need for now. 20560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 20561printf %s "checking if $RAWCPP requires -undef... " >&6; } 20562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20563/* end confdefs.h. */ 20564Does cpp redefine unix ? 20565_ACEOF 20566if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20568printf "%s\n" "no" >&6; } 20569else 20570 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20571 RAWCPPFLAGS=-undef 20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20573printf "%s\n" "yes" >&6; } 20574 # under Cygwin unix is still defined even with -undef 20575 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20576 RAWCPPFLAGS="-undef -ansi" 20577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 20578printf "%s\n" "yes, with -ansi" >&6; } 20579 else 20580 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 20581 fi 20582fi 20583rm -f conftest.$ac_ext 20584 20585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 20586printf %s "checking if $RAWCPP requires -traditional... " >&6; } 20587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20588/* end confdefs.h. */ 20589Does cpp preserve "whitespace"? 20590_ACEOF 20591if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 20592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20593printf "%s\n" "no" >&6; } 20594else 20595 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 20596 TRADITIONALCPPFLAGS="-traditional" 20597 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20599printf "%s\n" "yes" >&6; } 20600 else 20601 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 20602 fi 20603fi 20604rm -f conftest.$ac_ext 20605 20606 20607 20608 20609 20610 20611 20612 20613# Check whether --with-lint was given. 20614if test ${with_lint+y} 20615then : 20616 withval=$with_lint; use_lint=$withval 20617else case e in #( 20618 e) use_lint=no ;; 20619esac 20620fi 20621 20622 20623# Obtain platform specific info like program name and options 20624# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20625case $host_os in 20626 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20627 lint_name=splint 20628 lint_options="-badflag" 20629 ;; 20630 *freebsd* | *netbsd*) 20631 lint_name=lint 20632 lint_options="-u -b" 20633 ;; 20634 *solaris*) 20635 lint_name=lint 20636 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20637 ;; 20638esac 20639 20640# Test for the presence of the program (either guessed by the code or spelled out by the user) 20641if test "x$use_lint" = x"yes" ; then 20642 # Extract the first word of "$lint_name", so it can be a program name with args. 20643set dummy $lint_name; ac_word=$2 20644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20645printf %s "checking for $ac_word... " >&6; } 20646if test ${ac_cv_path_LINT+y} 20647then : 20648 printf %s "(cached) " >&6 20649else case e in #( 20650 e) case $LINT in 20651 [\\/]* | ?:[\\/]*) 20652 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20653 ;; 20654 *) 20655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20656for as_dir in $PATH 20657do 20658 IFS=$as_save_IFS 20659 case $as_dir in #((( 20660 '') as_dir=./ ;; 20661 */) ;; 20662 *) as_dir=$as_dir/ ;; 20663 esac 20664 for ac_exec_ext in '' $ac_executable_extensions; do 20665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20666 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20668 break 2 20669 fi 20670done 20671 done 20672IFS=$as_save_IFS 20673 20674 ;; 20675esac ;; 20676esac 20677fi 20678LINT=$ac_cv_path_LINT 20679if test -n "$LINT"; then 20680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20681printf "%s\n" "$LINT" >&6; } 20682else 20683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20684printf "%s\n" "no" >&6; } 20685fi 20686 20687 20688 if test "x$LINT" = "x"; then 20689 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20690 fi 20691elif test "x$use_lint" = x"no" ; then 20692 if test "x$LINT" != "x"; then 20693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20694printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20695 fi 20696else 20697 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20698fi 20699 20700# User supplied flags override default flags 20701if test "x$LINT_FLAGS" != "x"; then 20702 lint_options=$LINT_FLAGS 20703fi 20704 20705LINT_FLAGS=$lint_options 20706 20707 if test "x$LINT" != x; then 20708 LINT_TRUE= 20709 LINT_FALSE='#' 20710else 20711 LINT_TRUE='#' 20712 LINT_FALSE= 20713fi 20714 20715 20716 20717 20718# Checks for programs. 20719# Check for mktemp to prevent security issue noted in Xorg bug #5898 20720# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details. 20721# Extract the first word of "mktemp", so it can be a program name with args. 20722set dummy mktemp; ac_word=$2 20723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20724printf %s "checking for $ac_word... " >&6; } 20725if test ${ac_cv_path_MKTEMP_COMMAND+y} 20726then : 20727 printf %s "(cached) " >&6 20728else case e in #( 20729 e) case $MKTEMP_COMMAND in 20730 [\\/]* | ?:[\\/]*) 20731 ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path. 20732 ;; 20733 *) 20734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20735for as_dir in $PATH 20736do 20737 IFS=$as_save_IFS 20738 case $as_dir in #((( 20739 '') as_dir=./ ;; 20740 */) ;; 20741 *) as_dir=$as_dir/ ;; 20742 esac 20743 for ac_exec_ext in '' $ac_executable_extensions; do 20744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20745 ac_cv_path_MKTEMP_COMMAND="$as_dir$ac_word$ac_exec_ext" 20746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20747 break 2 20748 fi 20749done 20750 done 20751IFS=$as_save_IFS 20752 20753 ;; 20754esac ;; 20755esac 20756fi 20757MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND 20758if test -n "$MKTEMP_COMMAND"; then 20759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5 20760printf "%s\n" "$MKTEMP_COMMAND" >&6; } 20761else 20762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20763printf "%s\n" "no" >&6; } 20764fi 20765 20766 20767 if test x$MKTEMP_COMMAND != x; then 20768 HAVE_MKTEMP_COMMAND_TRUE= 20769 HAVE_MKTEMP_COMMAND_FALSE='#' 20770else 20771 HAVE_MKTEMP_COMMAND_TRUE='#' 20772 HAVE_MKTEMP_COMMAND_FALSE= 20773fi 20774 20775 20776#------------------------------------------------------------------------------ 20777# Check for system libraries 20778# 20779# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library. 20780# pre-pends the found library to $LIBS. 20781# 20782#------------------------------------------------------------------------------ 20783 20784 20785pkg_failed=no 20786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5 20787printf %s "checking for XDM... " >&6; } 20788 20789if test -n "$XDM_CFLAGS"; then 20790 pkg_cv_XDM_CFLAGS="$XDM_CFLAGS" 20791 elif test -n "$PKG_CONFIG"; then 20792 if test -n "$PKG_CONFIG" && \ 20793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5 20794 ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5 20795 ac_status=$? 20796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20797 test $ac_status = 0; }; then 20798 pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau xproto >= 7.0.17" 2>/dev/null` 20799 test "x$?" != "x0" && pkg_failed=yes 20800else 20801 pkg_failed=yes 20802fi 20803 else 20804 pkg_failed=untried 20805fi 20806if test -n "$XDM_LIBS"; then 20807 pkg_cv_XDM_LIBS="$XDM_LIBS" 20808 elif test -n "$PKG_CONFIG"; then 20809 if test -n "$PKG_CONFIG" && \ 20810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5 20811 ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5 20812 ac_status=$? 20813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20814 test $ac_status = 0; }; then 20815 pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau xproto >= 7.0.17" 2>/dev/null` 20816 test "x$?" != "x0" && pkg_failed=yes 20817else 20818 pkg_failed=yes 20819fi 20820 else 20821 pkg_failed=untried 20822fi 20823 20824 20825 20826if test $pkg_failed = yes; then 20827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20828printf "%s\n" "no" >&6; } 20829 20830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20831 _pkg_short_errors_supported=yes 20832else 20833 _pkg_short_errors_supported=no 20834fi 20835 if test $_pkg_short_errors_supported = yes; then 20836 XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1` 20837 else 20838 XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1` 20839 fi 20840 # Put the nasty error message in config.log where it belongs 20841 echo "$XDM_PKG_ERRORS" >&5 20842 20843 as_fn_error $? "Package requirements (xmu x11 xau xproto >= 7.0.17) were not met: 20844 20845$XDM_PKG_ERRORS 20846 20847Consider adjusting the PKG_CONFIG_PATH environment variable if you 20848installed software in a non-standard prefix. 20849 20850Alternatively, you may set the environment variables XDM_CFLAGS 20851and XDM_LIBS to avoid the need to call pkg-config. 20852See the pkg-config man page for more details." "$LINENO" 5 20853elif test $pkg_failed = untried; then 20854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20855printf "%s\n" "no" >&6; } 20856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20857printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20858as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20859is in your PATH or set the PKG_CONFIG environment variable to the full 20860path to pkg-config. 20861 20862Alternatively, you may set the environment variables XDM_CFLAGS 20863and XDM_LIBS to avoid the need to call pkg-config. 20864See the pkg-config man page for more details. 20865 20866To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20867See 'config.log' for more details" "$LINENO" 5; } 20868else 20869 XDM_CFLAGS=$pkg_cv_XDM_CFLAGS 20870 XDM_LIBS=$pkg_cv_XDM_LIBS 20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20872printf "%s\n" "yes" >&6; } 20873 20874fi 20875 20876pkg_failed=no 20877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 20878printf %s "checking for LIBBSD... " >&6; } 20879 20880if test -n "$LIBBSD_CFLAGS"; then 20881 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 20882 elif test -n "$PKG_CONFIG"; then 20883 if test -n "$PKG_CONFIG" && \ 20884 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20885 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20886 ac_status=$? 20887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20888 test $ac_status = 0; }; then 20889 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 20890 test "x$?" != "x0" && pkg_failed=yes 20891else 20892 pkg_failed=yes 20893fi 20894 else 20895 pkg_failed=untried 20896fi 20897if test -n "$LIBBSD_LIBS"; then 20898 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 20899 elif test -n "$PKG_CONFIG"; then 20900 if test -n "$PKG_CONFIG" && \ 20901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20902 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20903 ac_status=$? 20904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20905 test $ac_status = 0; }; then 20906 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 20907 test "x$?" != "x0" && pkg_failed=yes 20908else 20909 pkg_failed=yes 20910fi 20911 else 20912 pkg_failed=untried 20913fi 20914 20915 20916 20917if test $pkg_failed = yes; then 20918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20919printf "%s\n" "no" >&6; } 20920 20921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20922 _pkg_short_errors_supported=yes 20923else 20924 _pkg_short_errors_supported=no 20925fi 20926 if test $_pkg_short_errors_supported = yes; then 20927 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20928 else 20929 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20930 fi 20931 # Put the nasty error message in config.log where it belongs 20932 echo "$LIBBSD_PKG_ERRORS" >&5 20933 20934 : 20935elif test $pkg_failed = untried; then 20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20937printf "%s\n" "no" >&6; } 20938 : 20939else 20940 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 20941 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20943printf "%s\n" "yes" >&6; } 20944 : 20945fi 20946 20947 20948 20949# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or 20950# the -lnsl name service library 20951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 20952printf %s "checking for library containing getifaddrs... " >&6; } 20953if test ${ac_cv_search_getifaddrs+y} 20954then : 20955 printf %s "(cached) " >&6 20956else case e in #( 20957 e) ac_func_search_save_LIBS=$LIBS 20958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20959/* end confdefs.h. */ 20960 20961/* Override any GCC internal prototype to avoid an error. 20962 Use char because int might match the return type of a GCC 20963 builtin and then its argument prototype would still apply. 20964 The 'extern "C"' is for builds by C++ compilers; 20965 although this is not generally supported in C code supporting it here 20966 has little cost and some practical benefit (sr 110532). */ 20967#ifdef __cplusplus 20968extern "C" 20969#endif 20970char getifaddrs (void); 20971int 20972main (void) 20973{ 20974return getifaddrs (); 20975 ; 20976 return 0; 20977} 20978_ACEOF 20979for ac_lib in '' socket nsl 20980do 20981 if test -z "$ac_lib"; then 20982 ac_res="none required" 20983 else 20984 ac_res=-l$ac_lib 20985 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20986 fi 20987 if ac_fn_c_try_link "$LINENO" 20988then : 20989 ac_cv_search_getifaddrs=$ac_res 20990fi 20991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20992 conftest$ac_exeext 20993 if test ${ac_cv_search_getifaddrs+y} 20994then : 20995 break 20996fi 20997done 20998if test ${ac_cv_search_getifaddrs+y} 20999then : 21000 21001else case e in #( 21002 e) ac_cv_search_getifaddrs=no ;; 21003esac 21004fi 21005rm conftest.$ac_ext 21006LIBS=$ac_func_search_save_LIBS ;; 21007esac 21008fi 21009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 21010printf "%s\n" "$ac_cv_search_getifaddrs" >&6; } 21011ac_res=$ac_cv_search_getifaddrs 21012if test "$ac_res" != no 21013then : 21014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21015 21016fi 21017 21018 21019# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen 21020# or Old Linux versions -lshadow 21021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5 21022printf %s "checking for library containing getspnam... " >&6; } 21023if test ${ac_cv_search_getspnam+y} 21024then : 21025 printf %s "(cached) " >&6 21026else case e in #( 21027 e) ac_func_search_save_LIBS=$LIBS 21028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21029/* end confdefs.h. */ 21030 21031/* Override any GCC internal prototype to avoid an error. 21032 Use char because int might match the return type of a GCC 21033 builtin and then its argument prototype would still apply. 21034 The 'extern "C"' is for builds by C++ compilers; 21035 although this is not generally supported in C code supporting it here 21036 has little cost and some practical benefit (sr 110532). */ 21037#ifdef __cplusplus 21038extern "C" 21039#endif 21040char getspnam (void); 21041int 21042main (void) 21043{ 21044return getspnam (); 21045 ; 21046 return 0; 21047} 21048_ACEOF 21049for ac_lib in '' sec gen shadow 21050do 21051 if test -z "$ac_lib"; then 21052 ac_res="none required" 21053 else 21054 ac_res=-l$ac_lib 21055 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21056 fi 21057 if ac_fn_c_try_link "$LINENO" 21058then : 21059 ac_cv_search_getspnam=$ac_res 21060fi 21061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21062 conftest$ac_exeext 21063 if test ${ac_cv_search_getspnam+y} 21064then : 21065 break 21066fi 21067done 21068if test ${ac_cv_search_getspnam+y} 21069then : 21070 21071else case e in #( 21072 e) ac_cv_search_getspnam=no ;; 21073esac 21074fi 21075rm conftest.$ac_ext 21076LIBS=$ac_func_search_save_LIBS ;; 21077esac 21078fi 21079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5 21080printf "%s\n" "$ac_cv_search_getspnam" >&6; } 21081ac_res=$ac_cv_search_getspnam 21082if test "$ac_res" != no 21083then : 21084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21085 21086fi 21087 21088 21089# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris 21090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5 21091printf %s "checking for library containing setproctitle... " >&6; } 21092if test ${ac_cv_search_setproctitle+y} 21093then : 21094 printf %s "(cached) " >&6 21095else case e in #( 21096 e) ac_func_search_save_LIBS=$LIBS 21097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21098/* end confdefs.h. */ 21099 21100/* Override any GCC internal prototype to avoid an error. 21101 Use char because int might match the return type of a GCC 21102 builtin and then its argument prototype would still apply. 21103 The 'extern "C"' is for builds by C++ compilers; 21104 although this is not generally supported in C code supporting it here 21105 has little cost and some practical benefit (sr 110532). */ 21106#ifdef __cplusplus 21107extern "C" 21108#endif 21109char setproctitle (void); 21110int 21111main (void) 21112{ 21113return setproctitle (); 21114 ; 21115 return 0; 21116} 21117_ACEOF 21118for ac_lib in '' util 21119do 21120 if test -z "$ac_lib"; then 21121 ac_res="none required" 21122 else 21123 ac_res=-l$ac_lib 21124 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21125 fi 21126 if ac_fn_c_try_link "$LINENO" 21127then : 21128 ac_cv_search_setproctitle=$ac_res 21129fi 21130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21131 conftest$ac_exeext 21132 if test ${ac_cv_search_setproctitle+y} 21133then : 21134 break 21135fi 21136done 21137if test ${ac_cv_search_setproctitle+y} 21138then : 21139 21140else case e in #( 21141 e) ac_cv_search_setproctitle=no ;; 21142esac 21143fi 21144rm conftest.$ac_ext 21145LIBS=$ac_func_search_save_LIBS ;; 21146esac 21147fi 21148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5 21149printf "%s\n" "$ac_cv_search_setproctitle" >&6; } 21150ac_res=$ac_cv_search_setproctitle 21151if test "$ac_res" != no 21152then : 21153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21154 21155fi 21156 21157 21158if test "x$ac_cv_search_setproctitle" = "xno"; then 21159 if test "x$LIBBSD_LIBS" != "x"; then 21160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproctitle in libbsd" >&5 21161printf %s "checking for setproctitle in libbsd... " >&6; } 21162 xdm_save_LIBS="$LIBS" 21163 LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS" 21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21165/* end confdefs.h. */ 21166 21167/* Override any GCC internal prototype to avoid an error. 21168 Use char because int might match the return type of a GCC 21169 builtin and then its argument prototype would still apply. 21170 The 'extern "C"' is for builds by C++ compilers; 21171 although this is not generally supported in C code supporting it here 21172 has little cost and some practical benefit (sr 110532). */ 21173#ifdef __cplusplus 21174extern "C" 21175#endif 21176char setproctitle (void); 21177int 21178main (void) 21179{ 21180return setproctitle (); 21181 ; 21182 return 0; 21183} 21184_ACEOF 21185if ac_fn_c_try_link "$LINENO" 21186then : 21187 xdm_res="yes" 21188else case e in #( 21189 e) xdm_res="no" ;; 21190esac 21191fi 21192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21193 conftest$ac_exeext conftest.$ac_ext 21194 LIBS="$xdm_save_LIBS" 21195 if test "x$xdm_res" = "xyes" 21196then : 21197 21198 XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS" 21199 XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS" 21200 21201fi 21202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5 21203printf "%s\n" "$xdm_res" >&6; } 21204 fi 21205fi 21206 21207# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems 21208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 21209printf %s "checking for library containing setusercontext... " >&6; } 21210if test ${ac_cv_search_setusercontext+y} 21211then : 21212 printf %s "(cached) " >&6 21213else case e in #( 21214 e) ac_func_search_save_LIBS=$LIBS 21215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21216/* end confdefs.h. */ 21217 21218/* Override any GCC internal prototype to avoid an error. 21219 Use char because int might match the return type of a GCC 21220 builtin and then its argument prototype would still apply. 21221 The 'extern "C"' is for builds by C++ compilers; 21222 although this is not generally supported in C code supporting it here 21223 has little cost and some practical benefit (sr 110532). */ 21224#ifdef __cplusplus 21225extern "C" 21226#endif 21227char setusercontext (void); 21228int 21229main (void) 21230{ 21231return setusercontext (); 21232 ; 21233 return 0; 21234} 21235_ACEOF 21236for ac_lib in '' util 21237do 21238 if test -z "$ac_lib"; then 21239 ac_res="none required" 21240 else 21241 ac_res=-l$ac_lib 21242 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21243 fi 21244 if ac_fn_c_try_link "$LINENO" 21245then : 21246 ac_cv_search_setusercontext=$ac_res 21247fi 21248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21249 conftest$ac_exeext 21250 if test ${ac_cv_search_setusercontext+y} 21251then : 21252 break 21253fi 21254done 21255if test ${ac_cv_search_setusercontext+y} 21256then : 21257 21258else case e in #( 21259 e) ac_cv_search_setusercontext=no ;; 21260esac 21261fi 21262rm conftest.$ac_ext 21263LIBS=$ac_func_search_save_LIBS ;; 21264esac 21265fi 21266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 21267printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 21268ac_res=$ac_cv_search_setusercontext 21269if test "$ac_res" != no 21270then : 21271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21272 21273fi 21274 21275 21276# Function arc4random() is in BSD standard C, glibc 2.36+, or GNU systems -lbsd 21277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5 21278printf %s "checking for library containing arc4random... " >&6; } 21279if test ${ac_cv_search_arc4random+y} 21280then : 21281 printf %s "(cached) " >&6 21282else case e in #( 21283 e) ac_func_search_save_LIBS=$LIBS 21284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21285/* end confdefs.h. */ 21286 21287/* Override any GCC internal prototype to avoid an error. 21288 Use char because int might match the return type of a GCC 21289 builtin and then its argument prototype would still apply. 21290 The 'extern "C"' is for builds by C++ compilers; 21291 although this is not generally supported in C code supporting it here 21292 has little cost and some practical benefit (sr 110532). */ 21293#ifdef __cplusplus 21294extern "C" 21295#endif 21296char arc4random (void); 21297int 21298main (void) 21299{ 21300return arc4random (); 21301 ; 21302 return 0; 21303} 21304_ACEOF 21305for ac_lib in '' 21306do 21307 if test -z "$ac_lib"; then 21308 ac_res="none required" 21309 else 21310 ac_res=-l$ac_lib 21311 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21312 fi 21313 if ac_fn_c_try_link "$LINENO" 21314then : 21315 ac_cv_search_arc4random=$ac_res 21316fi 21317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21318 conftest$ac_exeext 21319 if test ${ac_cv_search_arc4random+y} 21320then : 21321 break 21322fi 21323done 21324if test ${ac_cv_search_arc4random+y} 21325then : 21326 21327else case e in #( 21328 e) ac_cv_search_arc4random=no ;; 21329esac 21330fi 21331rm conftest.$ac_ext 21332LIBS=$ac_func_search_save_LIBS ;; 21333esac 21334fi 21335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5 21336printf "%s\n" "$ac_cv_search_arc4random" >&6; } 21337ac_res=$ac_cv_search_arc4random 21338if test "$ac_res" != no 21339then : 21340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21341 HAVE_ARC4RANDOM="yes" 21342fi 21343 21344 21345if test "x$ac_cv_search_arc4random" = "xno"; then 21346 if test "x$LIBBSD_LIBS" != "x"; then 21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random in libbsd" >&5 21348printf %s "checking for arc4random in libbsd... " >&6; } 21349 xdm_save_LIBS="$LIBS" 21350 LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS" 21351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21352/* end confdefs.h. */ 21353 21354/* Override any GCC internal prototype to avoid an error. 21355 Use char because int might match the return type of a GCC 21356 builtin and then its argument prototype would still apply. 21357 The 'extern "C"' is for builds by C++ compilers; 21358 although this is not generally supported in C code supporting it here 21359 has little cost and some practical benefit (sr 110532). */ 21360#ifdef __cplusplus 21361extern "C" 21362#endif 21363char arc4random (void); 21364int 21365main (void) 21366{ 21367return arc4random (); 21368 ; 21369 return 0; 21370} 21371_ACEOF 21372if ac_fn_c_try_link "$LINENO" 21373then : 21374 xdm_res="yes" 21375else case e in #( 21376 e) xdm_res="no" ;; 21377esac 21378fi 21379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21380 conftest$ac_exeext conftest.$ac_ext 21381 LIBS="$xdm_save_LIBS" 21382 if test "x$xdm_res" = "xyes" 21383then : 21384 21385 XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS" 21386 XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS" 21387 HAVE_ARC4RANDOM="yes" 21388fi 21389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5 21390printf "%s\n" "$xdm_res" >&6; } 21391 fi 21392fi 21393 21394 if test x$HAVE_ARC4RANDOM = xyes; then 21395 HAVE_ARC4RANDOM_TRUE= 21396 HAVE_ARC4RANDOM_FALSE='#' 21397else 21398 HAVE_ARC4RANDOM_TRUE='#' 21399 HAVE_ARC4RANDOM_FALSE= 21400fi 21401 21402 21403# Function crypt() comes from the C library or the -lcrypt data encryption library 21404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 21405printf %s "checking for library containing crypt... " >&6; } 21406if test ${ac_cv_search_crypt+y} 21407then : 21408 printf %s "(cached) " >&6 21409else case e in #( 21410 e) ac_func_search_save_LIBS=$LIBS 21411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412/* end confdefs.h. */ 21413 21414/* Override any GCC internal prototype to avoid an error. 21415 Use char because int might match the return type of a GCC 21416 builtin and then its argument prototype would still apply. 21417 The 'extern "C"' is for builds by C++ compilers; 21418 although this is not generally supported in C code supporting it here 21419 has little cost and some practical benefit (sr 110532). */ 21420#ifdef __cplusplus 21421extern "C" 21422#endif 21423char crypt (void); 21424int 21425main (void) 21426{ 21427return crypt (); 21428 ; 21429 return 0; 21430} 21431_ACEOF 21432for ac_lib in '' crypt 21433do 21434 if test -z "$ac_lib"; then 21435 ac_res="none required" 21436 else 21437 ac_res=-l$ac_lib 21438 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21439 fi 21440 if ac_fn_c_try_link "$LINENO" 21441then : 21442 ac_cv_search_crypt=$ac_res 21443fi 21444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21445 conftest$ac_exeext 21446 if test ${ac_cv_search_crypt+y} 21447then : 21448 break 21449fi 21450done 21451if test ${ac_cv_search_crypt+y} 21452then : 21453 21454else case e in #( 21455 e) ac_cv_search_crypt=no ;; 21456esac 21457fi 21458rm conftest.$ac_ext 21459LIBS=$ac_func_search_save_LIBS ;; 21460esac 21461fi 21462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 21463printf "%s\n" "$ac_cv_search_crypt" >&6; } 21464ac_res=$ac_cv_search_crypt 21465if test "$ac_res" != no 21466then : 21467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21468 21469fi 21470 21471 21472# Function dl() comes from the C library or -ldl 21473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 21474printf %s "checking for library containing dlopen... " >&6; } 21475if test ${ac_cv_search_dlopen+y} 21476then : 21477 printf %s "(cached) " >&6 21478else case e in #( 21479 e) ac_func_search_save_LIBS=$LIBS 21480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21481/* end confdefs.h. */ 21482 21483/* Override any GCC internal prototype to avoid an error. 21484 Use char because int might match the return type of a GCC 21485 builtin and then its argument prototype would still apply. 21486 The 'extern "C"' is for builds by C++ compilers; 21487 although this is not generally supported in C code supporting it here 21488 has little cost and some practical benefit (sr 110532). */ 21489#ifdef __cplusplus 21490extern "C" 21491#endif 21492char dlopen (void); 21493int 21494main (void) 21495{ 21496return dlopen (); 21497 ; 21498 return 0; 21499} 21500_ACEOF 21501for ac_lib in '' dl 21502do 21503 if test -z "$ac_lib"; then 21504 ac_res="none required" 21505 else 21506 ac_res=-l$ac_lib 21507 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21508 fi 21509 if ac_fn_c_try_link "$LINENO" 21510then : 21511 ac_cv_search_dlopen=$ac_res 21512fi 21513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21514 conftest$ac_exeext 21515 if test ${ac_cv_search_dlopen+y} 21516then : 21517 break 21518fi 21519done 21520if test ${ac_cv_search_dlopen+y} 21521then : 21522 21523else case e in #( 21524 e) ac_cv_search_dlopen=no ;; 21525esac 21526fi 21527rm conftest.$ac_ext 21528LIBS=$ac_func_search_save_LIBS ;; 21529esac 21530fi 21531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 21532printf "%s\n" "$ac_cv_search_dlopen" >&6; } 21533ac_res=$ac_cv_search_dlopen 21534if test "$ac_res" != no 21535then : 21536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21537 21538fi 21539 21540#------------------------------------------------------------------------------ 21541 21542# Checks for header files. 21543ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 21544if test "x$ac_cv_header_grp_h" = xyes 21545then : 21546 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 21547 21548fi 21549ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 21550if test "x$ac_cv_header_syslog_h" = xyes 21551then : 21552 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 21553 21554fi 21555ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 21556if test "x$ac_cv_header_sys_param_h" = xyes 21557then : 21558 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 21559 21560fi 21561 21562ac_fn_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" " 21563#include <rpc/rpc.h> 21564#include <rpc/key_prot.h> 21565 21566" "$ac_c_undeclared_builtin_options" "CFLAGS" 21567if test "x$ac_cv_have_decl_key_setnet" = xyes 21568then : 21569 21570printf "%s\n" "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h 21571 21572fi 21573 21574# Check for system library functions 21575# Required system libraries have been searched for and are listed in $LIBS 21576 21577 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 21578" 21579if test "x$ac_cv_type_pid_t" = xyes 21580then : 21581 21582else case e in #( 21583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21584/* end confdefs.h. */ 21585 21586 #if defined _WIN64 && !defined __CYGWIN__ 21587 LLP64 21588 #endif 21589 21590int 21591main (void) 21592{ 21593 21594 ; 21595 return 0; 21596} 21597 21598_ACEOF 21599if ac_fn_c_try_compile "$LINENO" 21600then : 21601 ac_pid_type='int' 21602else case e in #( 21603 e) ac_pid_type='__int64' ;; 21604esac 21605fi 21606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21607 21608printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 21609 21610 ;; 21611esac 21612fi 21613 21614 21615 21616ac_func= 21617for ac_item in $ac_func_c_list 21618do 21619 if test $ac_func; then 21620 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 21621 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 21622 echo "#define $ac_item 1" >> confdefs.h 21623 fi 21624 ac_func= 21625 else 21626 ac_func=$ac_item 21627 fi 21628done 21629 21630 21631 21632if test "x$ac_cv_func_fork" = xyes; then 21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 21634printf %s "checking for working fork... " >&6; } 21635if test ${ac_cv_func_fork_works+y} 21636then : 21637 printf %s "(cached) " >&6 21638else case e in #( 21639 e) if test "$cross_compiling" = yes 21640then : 21641 ac_cv_func_fork_works=cross 21642else case e in #( 21643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21644/* end confdefs.h. */ 21645$ac_includes_default 21646int 21647main (void) 21648{ 21649 21650 /* By R. Kuhlmann. */ 21651 return fork () < 0; 21652 21653 ; 21654 return 0; 21655} 21656_ACEOF 21657if ac_fn_c_try_run "$LINENO" 21658then : 21659 ac_cv_func_fork_works=yes 21660else case e in #( 21661 e) ac_cv_func_fork_works=no ;; 21662esac 21663fi 21664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21665 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21666esac 21667fi 21668 ;; 21669esac 21670fi 21671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 21672printf "%s\n" "$ac_cv_func_fork_works" >&6; } 21673 21674else 21675 ac_cv_func_fork_works=$ac_cv_func_fork 21676fi 21677if test "x$ac_cv_func_fork_works" = xcross; then 21678 case $host in 21679 *-*-amigaos* | *-*-msdosdjgpp*) 21680 # Override, as these systems have only a dummy fork() stub 21681 ac_cv_func_fork_works=no 21682 ;; 21683 *) 21684 ac_cv_func_fork_works=yes 21685 ;; 21686 esac 21687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 21688printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 21689fi 21690ac_cv_func_vfork_works=$ac_cv_func_vfork 21691if test "x$ac_cv_func_vfork" = xyes; then 21692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 21693printf %s "checking for working vfork... " >&6; } 21694if test ${ac_cv_func_vfork_works+y} 21695then : 21696 printf %s "(cached) " >&6 21697else case e in #( 21698 e) if test "$cross_compiling" = yes 21699then : 21700 ac_cv_func_vfork_works=cross 21701else case e in #( 21702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21703/* end confdefs.h. */ 21704/* Thanks to Paul Eggert for this test. */ 21705$ac_includes_default 21706#include <signal.h> 21707#include <sys/wait.h> 21708#ifdef HAVE_VFORK_H 21709# include <vfork.h> 21710#endif 21711 21712static void 21713do_nothing (int sig) 21714{ 21715 (void) sig; 21716} 21717 21718/* On some sparc systems, changes by the child to local and incoming 21719 argument registers are propagated back to the parent. The compiler 21720 is told about this with #include <vfork.h>, but some compilers 21721 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 21722 static variable whose address is put into a register that is 21723 clobbered by the vfork. */ 21724static void 21725sparc_address_test (int arg) 21726{ 21727 static pid_t child; 21728 if (!child) { 21729 child = vfork (); 21730 if (child < 0) { 21731 perror ("vfork"); 21732 _exit(2); 21733 } 21734 if (!child) { 21735 arg = getpid(); 21736 write(-1, "", 0); 21737 _exit (arg); 21738 } 21739 } 21740} 21741 21742int 21743main (void) 21744{ 21745 pid_t parent = getpid (); 21746 pid_t child; 21747 21748 sparc_address_test (0); 21749 21750 /* On Solaris 2.4, changes by the child to the signal handler 21751 also munge signal handlers in the parent. To detect this, 21752 start by putting the parent's handler in a known state. */ 21753 signal (SIGTERM, SIG_DFL); 21754 21755 child = vfork (); 21756 21757 if (child == 0) { 21758 /* Here is another test for sparc vfork register problems. This 21759 test uses lots of local variables, at least as many local 21760 variables as main has allocated so far including compiler 21761 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 21762 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 21763 reuse the register of parent for one of the local variables, 21764 since it will think that parent can't possibly be used any more 21765 in this routine. Assigning to the local variable will thus 21766 munge parent in the parent process. */ 21767 pid_t 21768 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 21769 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 21770 /* Convince the compiler that p..p7 are live; otherwise, it might 21771 use the same hardware register for all 8 local variables. */ 21772 if (p != p1 || p != p2 || p != p3 || p != p4 21773 || p != p5 || p != p6 || p != p7) 21774 _exit(1); 21775 21776 /* Alter the child's signal handler. */ 21777 if (signal (SIGTERM, do_nothing) != SIG_DFL) 21778 _exit(1); 21779 21780 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 21781 from child file descriptors. If the child closes a descriptor 21782 before it execs or exits, this munges the parent's descriptor 21783 as well. Test for this by closing stdout in the child. */ 21784 _exit(close(fileno(stdout)) != 0); 21785 } else { 21786 int status; 21787 struct stat st; 21788 21789 while (wait(&status) != child) 21790 ; 21791 return ( 21792 /* Was there some problem with vforking? */ 21793 child < 0 21794 21795 /* Did the child munge the parent's signal handler? */ 21796 || signal (SIGTERM, SIG_DFL) != SIG_DFL 21797 21798 /* Did the child fail? (This shouldn't happen.) */ 21799 || status 21800 21801 /* Did the vfork/compiler bug occur? */ 21802 || parent != getpid() 21803 21804 /* Did the file descriptor bug occur? */ 21805 || fstat(fileno(stdout), &st) != 0 21806 ); 21807 } 21808} 21809_ACEOF 21810if ac_fn_c_try_run "$LINENO" 21811then : 21812 ac_cv_func_vfork_works=yes 21813else case e in #( 21814 e) ac_cv_func_vfork_works=no ;; 21815esac 21816fi 21817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21818 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21819esac 21820fi 21821 ;; 21822esac 21823fi 21824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 21825printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 21826 21827fi; 21828if test "x$ac_cv_func_fork_works" = xcross; then 21829 ac_cv_func_vfork_works=$ac_cv_func_vfork 21830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 21831printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 21832fi 21833 21834if test "x$ac_cv_func_vfork_works" = xyes; then 21835 21836printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 21837 21838else 21839 21840printf "%s\n" "#define vfork fork" >>confdefs.h 21841 21842fi 21843if test "x$ac_cv_func_fork_works" = xyes; then 21844 21845printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 21846 21847fi 21848 21849xdm_save_LIBS="$LIBS" 21850LIBS="$LIBS $XDM_LIBS" 21851ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 21852if test "x$ac_cv_func_daemon" = xyes 21853then : 21854 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 21855 21856fi 21857ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 21858if test "x$ac_cv_func_sigaction" = xyes 21859then : 21860 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 21861 21862fi 21863ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog" 21864if test "x$ac_cv_func_openlog" = xyes 21865then : 21866 printf "%s\n" "#define HAVE_OPENLOG 1" >>confdefs.h 21867 21868fi 21869ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 21870if test "x$ac_cv_func_asprintf" = xyes 21871then : 21872 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 21873 21874fi 21875ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 21876if test "x$ac_cv_func_setproctitle" = xyes 21877then : 21878 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 21879 21880fi 21881ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 21882if test "x$ac_cv_func_setusercontext" = xyes 21883then : 21884 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 21885 21886fi 21887ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 21888if test "x$ac_cv_func_mkstemp" = xyes 21889then : 21890 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 21891 21892fi 21893ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 21894if test "x$ac_cv_func_getifaddrs" = xyes 21895then : 21896 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 21897 21898fi 21899ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 21900if test "x$ac_cv_func_getspnam" = xyes 21901then : 21902 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 21903 21904fi 21905ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 21906if test "x$ac_cv_func_arc4random" = xyes 21907then : 21908 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 21909 21910fi 21911 21912LIBS="$xdm_save_LIBS" 21913 21914# Find needed libraries for TCP sockets (pre-pended in $LIBS) 21915 21916 21917 case $host_os in 21918 mingw*) unixdef="no" ;; 21919 *) unixdef="yes" ;; 21920 esac 21921 # Check whether --enable-unix-transport was given. 21922if test ${enable_unix_transport+y} 21923then : 21924 enableval=$enable_unix_transport; UNIXCONN=$enableval 21925else case e in #( 21926 e) UNIXCONN=$unixdef ;; 21927esac 21928fi 21929 21930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21931printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21932 if test "$UNIXCONN" = "yes"; then 21933 21934printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21935 21936 fi 21937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21938printf "%s\n" "$UNIXCONN" >&6; } 21939 # Check whether --enable-tcp-transport was given. 21940if test ${enable_tcp_transport+y} 21941then : 21942 enableval=$enable_tcp_transport; TCPCONN=$enableval 21943else case e in #( 21944 e) TCPCONN=yes ;; 21945esac 21946fi 21947 21948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21949printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21951printf "%s\n" "$TCPCONN" >&6; } 21952 if test "$TCPCONN" = "yes"; then 21953 21954printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21955 21956 21957 # SVR4 hides these in libraries other than libc 21958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21959printf %s "checking for library containing socket... " >&6; } 21960if test ${ac_cv_search_socket+y} 21961then : 21962 printf %s "(cached) " >&6 21963else case e in #( 21964 e) ac_func_search_save_LIBS=$LIBS 21965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21966/* end confdefs.h. */ 21967 21968/* Override any GCC internal prototype to avoid an error. 21969 Use char because int might match the return type of a GCC 21970 builtin and then its argument prototype would still apply. 21971 The 'extern "C"' is for builds by C++ compilers; 21972 although this is not generally supported in C code supporting it here 21973 has little cost and some practical benefit (sr 110532). */ 21974#ifdef __cplusplus 21975extern "C" 21976#endif 21977char socket (void); 21978int 21979main (void) 21980{ 21981return socket (); 21982 ; 21983 return 0; 21984} 21985_ACEOF 21986for ac_lib in '' socket 21987do 21988 if test -z "$ac_lib"; then 21989 ac_res="none required" 21990 else 21991 ac_res=-l$ac_lib 21992 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21993 fi 21994 if ac_fn_c_try_link "$LINENO" 21995then : 21996 ac_cv_search_socket=$ac_res 21997fi 21998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21999 conftest$ac_exeext 22000 if test ${ac_cv_search_socket+y} 22001then : 22002 break 22003fi 22004done 22005if test ${ac_cv_search_socket+y} 22006then : 22007 22008else case e in #( 22009 e) ac_cv_search_socket=no ;; 22010esac 22011fi 22012rm conftest.$ac_ext 22013LIBS=$ac_func_search_save_LIBS ;; 22014esac 22015fi 22016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 22017printf "%s\n" "$ac_cv_search_socket" >&6; } 22018ac_res=$ac_cv_search_socket 22019if test "$ac_res" != no 22020then : 22021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22022 22023fi 22024 22025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 22026printf %s "checking for library containing gethostbyname... " >&6; } 22027if test ${ac_cv_search_gethostbyname+y} 22028then : 22029 printf %s "(cached) " >&6 22030else case e in #( 22031 e) ac_func_search_save_LIBS=$LIBS 22032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22033/* end confdefs.h. */ 22034 22035/* Override any GCC internal prototype to avoid an error. 22036 Use char because int might match the return type of a GCC 22037 builtin and then its argument prototype would still apply. 22038 The 'extern "C"' is for builds by C++ compilers; 22039 although this is not generally supported in C code supporting it here 22040 has little cost and some practical benefit (sr 110532). */ 22041#ifdef __cplusplus 22042extern "C" 22043#endif 22044char gethostbyname (void); 22045int 22046main (void) 22047{ 22048return gethostbyname (); 22049 ; 22050 return 0; 22051} 22052_ACEOF 22053for ac_lib in '' nsl 22054do 22055 if test -z "$ac_lib"; then 22056 ac_res="none required" 22057 else 22058 ac_res=-l$ac_lib 22059 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22060 fi 22061 if ac_fn_c_try_link "$LINENO" 22062then : 22063 ac_cv_search_gethostbyname=$ac_res 22064fi 22065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22066 conftest$ac_exeext 22067 if test ${ac_cv_search_gethostbyname+y} 22068then : 22069 break 22070fi 22071done 22072if test ${ac_cv_search_gethostbyname+y} 22073then : 22074 22075else case e in #( 22076 e) ac_cv_search_gethostbyname=no ;; 22077esac 22078fi 22079rm conftest.$ac_ext 22080LIBS=$ac_func_search_save_LIBS ;; 22081esac 22082fi 22083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 22084printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 22085ac_res=$ac_cv_search_gethostbyname 22086if test "$ac_res" != no 22087then : 22088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22089 22090fi 22091 22092 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 22093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 22094printf %s "checking for main in -lws2_32... " >&6; } 22095if test ${ac_cv_lib_ws2_32_main+y} 22096then : 22097 printf %s "(cached) " >&6 22098else case e in #( 22099 e) ac_check_lib_save_LIBS=$LIBS 22100LIBS="-lws2_32 $LIBS" 22101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22102/* end confdefs.h. */ 22103 22104 22105int 22106main (void) 22107{ 22108return main (); 22109 ; 22110 return 0; 22111} 22112_ACEOF 22113if ac_fn_c_try_link "$LINENO" 22114then : 22115 ac_cv_lib_ws2_32_main=yes 22116else case e in #( 22117 e) ac_cv_lib_ws2_32_main=no ;; 22118esac 22119fi 22120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22121 conftest$ac_exeext conftest.$ac_ext 22122LIBS=$ac_check_lib_save_LIBS ;; 22123esac 22124fi 22125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22126printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22127if test "x$ac_cv_lib_ws2_32_main" = xyes 22128then : 22129 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22130 22131 LIBS="-lws2_32 $LIBS" 22132 22133fi 22134 22135 fi 22136 22137 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22138 # Check whether --enable-ipv6 was given. 22139if test ${enable_ipv6+y} 22140then : 22141 enableval=$enable_ipv6; IPV6CONN=$enableval 22142else case e in #( 22143 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22144if test "x$ac_cv_func_getaddrinfo" = xyes 22145then : 22146 IPV6CONN=yes 22147else case e in #( 22148 e) IPV6CONN=no ;; 22149esac 22150fi 22151 ;; 22152esac 22153fi 22154 22155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22156printf %s "checking if IPv6 support should be built... " >&6; } 22157 if test "$IPV6CONN" = "yes"; then 22158 22159printf "%s\n" "#define IPv6 1" >>confdefs.h 22160 22161 fi 22162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22163printf "%s\n" "$IPV6CONN" >&6; } 22164 22165 # 4.3BSD-Reno added a new member to struct sockaddr_in 22166 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22167#include <sys/types.h> 22168#include <sys/socket.h> 22169#include <netinet/in.h> 22170 22171" 22172if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22173then : 22174 22175printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22176 22177fi 22178 22179 22180 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22181 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22182$ac_includes_default 22183#include <sys/socket.h> 22184" 22185if test "x$ac_cv_type_socklen_t" = xyes 22186then : 22187 22188printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22189 22190 22191fi 22192 22193 22194 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22195 # _XOPEN_SOURCE to get it (such as on Solaris) 22196 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22197$ac_includes_default 22198#include <sys/socket.h> 22199 22200" 22201if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22202then : 22203 22204fi 22205 22206 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22207 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22208 unset ac_cv_member_struct_msghdr_msg_control 22209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22210printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22211 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22212#define _XOPEN_SOURCE 600 22213$ac_includes_default 22214#include <sys/socket.h> 22215 22216" 22217if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22218then : 22219 22220printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22221 22222 22223fi 22224 22225 fi 22226 # If that didn't work, fall back to XPG5/UNIX98 with C89 22227 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22228 unset ac_cv_member_struct_msghdr_msg_control 22229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22230printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22231 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22232#define _XOPEN_SOURCE 500 22233$ac_includes_default 22234#include <sys/socket.h> 22235 22236" 22237if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22238then : 22239 22240printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22241 22242 22243fi 22244 22245 fi 22246 22247 22248 22249 fi 22250 case $host_os in 22251 solaris*) localdef="yes" ;; 22252 *) localdef="no" ;; 22253 esac 22254 # Check whether --enable-local-transport was given. 22255if test ${enable_local_transport+y} 22256then : 22257 enableval=$enable_local_transport; LOCALCONN=$enableval 22258else case e in #( 22259 e) LOCALCONN=$localdef ;; 22260esac 22261fi 22262 22263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22264printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22266printf "%s\n" "$LOCALCONN" >&6; } 22267 if test "$LOCALCONN" = "yes"; then 22268 22269printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22270 22271 fi 22272 22273 # Other functions Xtrans may need 22274 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22275if test "x$ac_cv_func_strcasecmp" = xyes 22276then : 22277 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22278 22279fi 22280ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22281if test "x$ac_cv_func_strlcpy" = xyes 22282then : 22283 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22284 22285fi 22286 22287 22288 22289 22290# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS 22291 22292 # Check whether --enable-secure-rpc was given. 22293if test ${enable_secure_rpc+y} 22294then : 22295 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 22296else case e in #( 22297 e) SECURE_RPC="try" ;; 22298esac 22299fi 22300 22301 22302 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 22303 FOUND_SECURE_RPC="no" 22304 22305 for ac_func in authdes_seccreate authdes_create 22306do : 22307 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 22308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22309if eval test \"x\$"$as_ac_var"\" = x"yes" 22310then : 22311 cat >>confdefs.h <<_ACEOF 22312#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 22313_ACEOF 22314 FOUND_SECURE_RPC="yes" 22315fi 22316 22317done 22318 if test "x$FOUND_SECURE_RPC" = "xno" ; then 22319 if test "x$SECURE_RPC" = "xyes" ; then 22320 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 22321 fi 22322 SECURE_RPC="no" 22323 else 22324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 22325printf %s "checking for library containing getsecretkey... " >&6; } 22326if test ${ac_cv_search_getsecretkey+y} 22327then : 22328 printf %s "(cached) " >&6 22329else case e in #( 22330 e) ac_func_search_save_LIBS=$LIBS 22331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22332/* end confdefs.h. */ 22333 22334/* Override any GCC internal prototype to avoid an error. 22335 Use char because int might match the return type of a GCC 22336 builtin and then its argument prototype would still apply. 22337 The 'extern "C"' is for builds by C++ compilers; 22338 although this is not generally supported in C code supporting it here 22339 has little cost and some practical benefit (sr 110532). */ 22340#ifdef __cplusplus 22341extern "C" 22342#endif 22343char getsecretkey (void); 22344int 22345main (void) 22346{ 22347return getsecretkey (); 22348 ; 22349 return 0; 22350} 22351_ACEOF 22352for ac_lib in '' rpcsvc 22353do 22354 if test -z "$ac_lib"; then 22355 ac_res="none required" 22356 else 22357 ac_res=-l$ac_lib 22358 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22359 fi 22360 if ac_fn_c_try_link "$LINENO" 22361then : 22362 ac_cv_search_getsecretkey=$ac_res 22363fi 22364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22365 conftest$ac_exeext 22366 if test ${ac_cv_search_getsecretkey+y} 22367then : 22368 break 22369fi 22370done 22371if test ${ac_cv_search_getsecretkey+y} 22372then : 22373 22374else case e in #( 22375 e) ac_cv_search_getsecretkey=no ;; 22376esac 22377fi 22378rm conftest.$ac_ext 22379LIBS=$ac_func_search_save_LIBS ;; 22380esac 22381fi 22382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 22383printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 22384ac_res=$ac_cv_search_getsecretkey 22385if test "$ac_res" != no 22386then : 22387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22388 22389fi 22390 22391 SECURE_RPC="yes" 22392 fi 22393 fi 22394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 22395printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 22396 if test "x$SECURE_RPC" = "xyes" ; then 22397 22398printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 22399 22400 fi 22401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 22402printf "%s\n" "$SECURE_RPC" >&6; } 22403 22404 if test x$SECURE_RPC = xyes; then 22405 HAS_SECURE_RPC_TRUE= 22406 HAS_SECURE_RPC_FALSE='#' 22407else 22408 HAS_SECURE_RPC_TRUE='#' 22409 HAS_SECURE_RPC_FALSE= 22410fi 22411 22412 22413# Check for pluggable authentication modules (PAM) support 22414 22415# Check whether --with-pam was given. 22416if test ${with_pam+y} 22417then : 22418 withval=$with_pam; USE_PAM=$withval 22419else case e in #( 22420 e) USE_PAM=auto ;; 22421esac 22422fi 22423 22424if test "x$USE_PAM" != "xno" ; then 22425 for ac_header in security/pam_appl.h pam/pam_appl.h 22426do : 22427 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 22428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22429if eval test \"x\$"$as_ac_Header"\" = x"yes" 22430then : 22431 cat >>confdefs.h <<_ACEOF 22432#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 22433_ACEOF 22434 found=yes ; break ; 22435else case e in #( 22436 e) found=no ;; 22437esac 22438fi 22439 22440done 22441 if test "x$USE_PAM" = "xyes" -a "x$found" = "xno" 22442then : 22443 as_fn_error $? "PAM support requested, but we could not find the pam headers." "$LINENO" 5 22444fi 22445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5 22446printf %s "checking for library containing pam_open_session... " >&6; } 22447if test ${ac_cv_search_pam_open_session+y} 22448then : 22449 printf %s "(cached) " >&6 22450else case e in #( 22451 e) ac_func_search_save_LIBS=$LIBS 22452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22453/* end confdefs.h. */ 22454 22455/* Override any GCC internal prototype to avoid an error. 22456 Use char because int might match the return type of a GCC 22457 builtin and then its argument prototype would still apply. 22458 The 'extern "C"' is for builds by C++ compilers; 22459 although this is not generally supported in C code supporting it here 22460 has little cost and some practical benefit (sr 110532). */ 22461#ifdef __cplusplus 22462extern "C" 22463#endif 22464char pam_open_session (void); 22465int 22466main (void) 22467{ 22468return pam_open_session (); 22469 ; 22470 return 0; 22471} 22472_ACEOF 22473for ac_lib in '' pam 22474do 22475 if test -z "$ac_lib"; then 22476 ac_res="none required" 22477 else 22478 ac_res=-l$ac_lib 22479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22480 fi 22481 if ac_fn_c_try_link "$LINENO" 22482then : 22483 ac_cv_search_pam_open_session=$ac_res 22484fi 22485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22486 conftest$ac_exeext 22487 if test ${ac_cv_search_pam_open_session+y} 22488then : 22489 break 22490fi 22491done 22492if test ${ac_cv_search_pam_open_session+y} 22493then : 22494 22495else case e in #( 22496 e) ac_cv_search_pam_open_session=no ;; 22497esac 22498fi 22499rm conftest.$ac_ext 22500LIBS=$ac_func_search_save_LIBS ;; 22501esac 22502fi 22503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5 22504printf "%s\n" "$ac_cv_search_pam_open_session" >&6; } 22505ac_res=$ac_cv_search_pam_open_session 22506if test "$ac_res" != no 22507then : 22508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22509 ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session" 22510if test "x$ac_cv_func_pam_open_session" = xyes 22511then : 22512 22513printf "%s\n" "#define USE_PAM 1" >>confdefs.h 22514 22515 22516fi 22517 22518else case e in #( 22519 e) if test "x$USE_PAM" = "xyes" 22520then : 22521 as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5 22522 22523fi 22524 ;; 22525esac 22526fi 22527 22528fi 22529 22530# Check for Security-Enhanced Linux (SELinux) support 22531 22532# Check whether --with-selinux was given. 22533if test ${with_selinux+y} 22534then : 22535 withval=$with_selinux; USE_SELINUX=$withval 22536else case e in #( 22537 e) USE_SELINUX=no ;; 22538esac 22539fi 22540 22541if test "x$USE_SELINUX" != "xno" ; then 22542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5 22543printf %s "checking for library containing is_selinux_enabled... " >&6; } 22544if test ${ac_cv_search_is_selinux_enabled+y} 22545then : 22546 printf %s "(cached) " >&6 22547else case e in #( 22548 e) ac_func_search_save_LIBS=$LIBS 22549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22550/* end confdefs.h. */ 22551 22552/* Override any GCC internal prototype to avoid an error. 22553 Use char because int might match the return type of a GCC 22554 builtin and then its argument prototype would still apply. 22555 The 'extern "C"' is for builds by C++ compilers; 22556 although this is not generally supported in C code supporting it here 22557 has little cost and some practical benefit (sr 110532). */ 22558#ifdef __cplusplus 22559extern "C" 22560#endif 22561char is_selinux_enabled (void); 22562int 22563main (void) 22564{ 22565return is_selinux_enabled (); 22566 ; 22567 return 0; 22568} 22569_ACEOF 22570for ac_lib in '' selinux 22571do 22572 if test -z "$ac_lib"; then 22573 ac_res="none required" 22574 else 22575 ac_res=-l$ac_lib 22576 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22577 fi 22578 if ac_fn_c_try_link "$LINENO" 22579then : 22580 ac_cv_search_is_selinux_enabled=$ac_res 22581fi 22582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22583 conftest$ac_exeext 22584 if test ${ac_cv_search_is_selinux_enabled+y} 22585then : 22586 break 22587fi 22588done 22589if test ${ac_cv_search_is_selinux_enabled+y} 22590then : 22591 22592else case e in #( 22593 e) ac_cv_search_is_selinux_enabled=no ;; 22594esac 22595fi 22596rm conftest.$ac_ext 22597LIBS=$ac_func_search_save_LIBS ;; 22598esac 22599fi 22600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5 22601printf "%s\n" "$ac_cv_search_is_selinux_enabled" >&6; } 22602ac_res=$ac_cv_search_is_selinux_enabled 22603if test "$ac_res" != no 22604then : 22605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22606 ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled" 22607if test "x$ac_cv_func_is_selinux_enabled" = xyes 22608then : 22609 22610printf "%s\n" "#define USE_SELINUX 1" >>confdefs.h 22611 22612 22613fi 22614 22615else case e in #( 22616 e) if test "x$USE_SELINUX" = "xyes" 22617then : 22618 as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5 22619 22620fi 22621 ;; 22622esac 22623fi 22624 22625fi 22626 22627# Check whether to install systemd unit files, as suggested in daemon(7). 22628# When a full path is specified, this does not require systemd installed. 22629 22630# Check whether --with-systemdsystemunitdir was given. 22631if test ${with_systemdsystemunitdir+y} 22632then : 22633 withval=$with_systemdsystemunitdir; 22634else case e in #( 22635 e) with_systemdsystemunitdir=auto ;; 22636esac 22637fi 22638 22639if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto" 22640then : 22641 22642 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 22643 22644 if test "x$def_systemdsystemunitdir" = "x" 22645then : 22646 22647 if test "x$with_systemdsystemunitdir" = "xyes" 22648then : 22649 22650 as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5 22651 22652fi 22653 with_systemdsystemunitdir=no 22654 22655else case e in #( 22656 e) 22657 with_systemdsystemunitdir=$def_systemdsystemunitdir 22658 ;; 22659esac 22660fi 22661 22662fi 22663if test "x$with_systemdsystemunitdir" != "xno" 22664then : 22665 22666 systemdsystemunitdir=$with_systemdsystemunitdir 22667 22668 22669fi 22670 if test "x$with_systemdsystemunitdir" != "xno"; then 22671 HAVE_SYSTEMD_TRUE= 22672 HAVE_SYSTEMD_FALSE='#' 22673else 22674 HAVE_SYSTEMD_TRUE='#' 22675 HAVE_SYSTEMD_FALSE= 22676fi 22677 22678 22679# Check whether to enable systemd startup notification. 22680# This requires libsystemd. 22681 22682# Check whether --with-systemd-daemon was given. 22683if test ${with_systemd_daemon+y} 22684then : 22685 withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval 22686else case e in #( 22687 e) if test -n "$PKG_CONFIG" && \ 22688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 22689 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 22690 ac_status=$? 22691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22692 test $ac_status = 0; }; then 22693 USE_SYSTEMD_DAEMON="yes" 22694else 22695 USE_SYSTEMD_DAEMON="no" 22696fi ;; 22697esac 22698fi 22699 22700if test "x$USE_SYSTEMD_DAEMON" != "xno" 22701then : 22702 22703 22704pkg_failed=no 22705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 22706printf %s "checking for SYSTEMD_DAEMON... " >&6; } 22707 22708if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 22709 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 22710 elif test -n "$PKG_CONFIG"; then 22711 if test -n "$PKG_CONFIG" && \ 22712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 22713 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 22714 ac_status=$? 22715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22716 test $ac_status = 0; }; then 22717 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 22718 test "x$?" != "x0" && pkg_failed=yes 22719else 22720 pkg_failed=yes 22721fi 22722 else 22723 pkg_failed=untried 22724fi 22725if test -n "$SYSTEMD_DAEMON_LIBS"; then 22726 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 22727 elif test -n "$PKG_CONFIG"; then 22728 if test -n "$PKG_CONFIG" && \ 22729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 22730 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 22731 ac_status=$? 22732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22733 test $ac_status = 0; }; then 22734 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 22735 test "x$?" != "x0" && pkg_failed=yes 22736else 22737 pkg_failed=yes 22738fi 22739 else 22740 pkg_failed=untried 22741fi 22742 22743 22744 22745if test $pkg_failed = yes; then 22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22747printf "%s\n" "no" >&6; } 22748 22749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22750 _pkg_short_errors_supported=yes 22751else 22752 _pkg_short_errors_supported=no 22753fi 22754 if test $_pkg_short_errors_supported = yes; then 22755 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 22756 else 22757 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 22758 fi 22759 # Put the nasty error message in config.log where it belongs 22760 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 22761 22762 if test "x$USE_SYSTEMD_DAEMON" = "xyes" 22763then : 22764 as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5 22765 22766fi 22767 22768elif test $pkg_failed = untried; then 22769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22770printf "%s\n" "no" >&6; } 22771 if test "x$USE_SYSTEMD_DAEMON" = "xyes" 22772then : 22773 as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5 22774 22775fi 22776 22777else 22778 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 22779 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 22780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22781printf "%s\n" "yes" >&6; } 22782 22783printf "%s\n" "#define USE_SYSTEMD_DAEMON 1 " >>confdefs.h 22784 22785fi 22786 22787fi 22788 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then 22789 USE_SYSTEMD_DAEMON_TRUE= 22790 USE_SYSTEMD_DAEMON_FALSE='#' 22791else 22792 USE_SYSTEMD_DAEMON_TRUE='#' 22793 USE_SYSTEMD_DAEMON_FALSE= 22794fi 22795 22796 22797# FIXME: Find better test for which OS'es use su -m - for now, just try to 22798# mirror the Imakefile setting of: 22799# if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture) 22800 22801 22802case $host_os in 22803 linux*|gnu*|*-gnu) 22804 SU="su" 22805 ;; 22806 darwin*) 22807 SU="su -m" 22808 ;; 22809 *bsd*|dragonfly*) 22810 SU="su -m" 22811 ;; 22812 solaris*|sysv4*) 22813 SU="su" 22814 ;; 22815 *) 22816 SU="su" 22817 ;; 22818esac 22819 22820 22821# Define a configure option to locate a special file (/dev/random or /dev/urandom) 22822# that serves as a random or a pseudorandom number generator 22823 22824# Check whether --with-random-device was given. 22825if test ${with_random_device+y} 22826then : 22827 withval=$with_random_device; USE_DEVICE="$withval" 22828else case e in #( 22829 e) USE_DEVICE="auto" ;; 22830esac 22831fi 22832 22833if test x$USE_DEVICE != xno ; then 22834 if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then 22835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 22836printf %s "checking for /dev/urandom... " >&6; } 22837if test ${ac_cv_file__dev_urandom+y} 22838then : 22839 printf %s "(cached) " >&6 22840else case e in #( 22841 e) test "$cross_compiling" = yes && 22842 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 22843if test -r "/dev/urandom"; then 22844 ac_cv_file__dev_urandom=yes 22845else 22846 ac_cv_file__dev_urandom=no 22847fi ;; 22848esac 22849fi 22850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 22851printf "%s\n" "$ac_cv_file__dev_urandom" >&6; } 22852if test "x$ac_cv_file__dev_urandom" = xyes 22853then : 22854 DEV_RANDOM=/dev/urandom 22855else case e in #( 22856 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 22857printf %s "checking for /dev/random... " >&6; } 22858if test ${ac_cv_file__dev_random+y} 22859then : 22860 printf %s "(cached) " >&6 22861else case e in #( 22862 e) test "$cross_compiling" = yes && 22863 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 22864if test -r "/dev/random"; then 22865 ac_cv_file__dev_random=yes 22866else 22867 ac_cv_file__dev_random=no 22868fi ;; 22869esac 22870fi 22871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 22872printf "%s\n" "$ac_cv_file__dev_random" >&6; } 22873if test "x$ac_cv_file__dev_random" = xyes 22874then : 22875 DEV_RANDOM=/dev/random 22876else case e in #( 22877 e) if test "x$USE_DEVICE" = "xyes" 22878then : 22879 as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5 22880 22881fi 22882 ;; 22883esac 22884fi 22885 22886 ;; 22887esac 22888fi 22889 22890 else 22891 # assume the user input is a valid path to a random number generator 22892 DEV_RANDOM=$USE_DEVICE 22893 fi 22894 if test x$DEV_RANDOM != x ; then 22895 22896printf "%s\n" "#define DEV_RANDOM \"$DEV_RANDOM\"" >>confdefs.h 22897 22898 fi 22899fi 22900 22901 22902# FIXME: find out how to check for these things. Note that Kerberos was 22903# turned off everywhere but on OpenBSD. 22904 if false; then 22905 HAS_KERBEROS_FIVE_TRUE= 22906 HAS_KERBEROS_FIVE_FALSE='#' 22907else 22908 HAS_KERBEROS_FIVE_TRUE='#' 22909 HAS_KERBEROS_FIVE_FALSE= 22910fi 22911 22912 22913 22914# Figure out where everything goes in the filesystem 22915 22916 22917# Check whether --with-xdmlibdir was given. 22918if test ${with_xdmlibdir+y} 22919then : 22920 withval=$with_xdmlibdir; XDMLIBDIR="$withval" 22921else case e in #( 22922 e) XDMLIBDIR="${libdir}/X11/xdm" ;; 22923esac 22924fi 22925 22926 22927 22928 22929# Check whether --with-xdmconfigdir was given. 22930if test ${with_xdmconfigdir+y} 22931then : 22932 withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval" 22933else case e in #( 22934 e) XDMCONFIGDIR="${XDMLIBDIR}" ;; 22935esac 22936fi 22937 22938 22939 22940 22941# Check whether --with-xdmscriptdir was given. 22942if test ${with_xdmscriptdir+y} 22943then : 22944 withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval" 22945else case e in #( 22946 e) XDMSCRIPTDIR="${XDMLIBDIR}" ;; 22947esac 22948fi 22949 22950 22951 22952 22953# Check whether --with-logdir was given. 22954if test ${with_logdir+y} 22955then : 22956 withval=$with_logdir; XDMLOGDIR="$withval" 22957else case e in #( 22958 e) XDMLOGDIR="/var/log" ;; 22959esac 22960fi 22961 22962 22963 22964 22965# Check whether --with-piddir was given. 22966if test ${with_piddir+y} 22967then : 22968 withval=$with_piddir; XDMPIDDIR="$withval" 22969else case e in #( 22970 e) XDMPIDDIR="/var/run" ;; 22971esac 22972fi 22973 22974 22975 22976 22977# Check whether --with-default-vt was given. 22978if test ${with_default_vt+y} 22979then : 22980 withval=$with_default_vt; DEFAULTVT="$withval" 22981else case e in #( 22982 e) DEFAULTVT="" ;; 22983esac 22984fi 22985 22986 22987 22988 22989# Check whether --with-config-type was given. 22990if test ${with_config_type+y} 22991then : 22992 withval=$with_config_type; SERVERSTYPE="$withval" 22993else case e in #( 22994 e) SERVERSTYPE="ws" ;; 22995esac 22996fi 22997 22998 22999 23000 23001# Check whether --with-utmp_file was given. 23002if test ${with_utmp_file+y} 23003then : 23004 withval=$with_utmp_file; UTMP_FILE="$withval" 23005fi 23006 23007if test "x$UTMP_FILE" = "xyes" ; then 23008 UTMP_FILE="" 23009elif test "x$UTMP_FILE" = "xno" ; then 23010 UTMP_FILE="none" 23011fi 23012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5 23013printf %s "checking for path to file listing current logins for sessreg... " >&6; } 23014if test "x$UTMP_FILE" = "x" ; then 23015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5 23016printf "%s\n" "use sessreg default" >&6; } 23017else 23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5 23019printf "%s\n" "$UTMP_FILE" >&6; } 23020fi 23021 if test x$UTMP_FILE != x; then 23022 SET_UTMP_FILE_TRUE= 23023 SET_UTMP_FILE_FALSE='#' 23024else 23025 SET_UTMP_FILE_TRUE='#' 23026 SET_UTMP_FILE_FALSE= 23027fi 23028 23029 23030 23031 23032# Check whether --with-wtmp_file was given. 23033if test ${with_wtmp_file+y} 23034then : 23035 withval=$with_wtmp_file; WTMP_FILE="$withval" 23036fi 23037 23038if test "x$WTMP_FILE" = "xyes" ; then 23039 WTMP_FILE="" 23040elif test "x$WTMP_FILE" = "xno" ; then 23041 WTMP_FILE="none" 23042fi 23043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5 23044printf %s "checking for path to file listing login history for sessreg... " >&6; } 23045if test "x$WTMP_FILE" = "x" ; then 23046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5 23047printf "%s\n" "use sessreg default" >&6; } 23048else 23049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5 23050printf "%s\n" "$WTMP_FILE" >&6; } 23051fi 23052 if test x$WTMP_FILE != x; then 23053 SET_WTMP_FILE_TRUE= 23054 SET_WTMP_FILE_FALSE='#' 23055else 23056 SET_WTMP_FILE_TRUE='#' 23057 SET_WTMP_FILE_FALSE= 23058fi 23059 23060 23061 23062case $host_os in 23063 *sco*|*solaris*) 23064 SHELL_CMD="/bin/ksh" ;; 23065 *) SHELL_CMD="/bin/sh" ;; 23066esac 23067 23068 23069# Checks for pkg-config packages 23070 23071 23072# Check whether --with-xinerama was given. 23073if test ${with_xinerama+y} 23074then : 23075 withval=$with_xinerama; USE_XINERAMA="$withval" 23076else case e in #( 23077 e) if test -n "$PKG_CONFIG" && \ 23078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23079 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23080 ac_status=$? 23081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23082 test $ac_status = 0; }; then 23083 USE_XINERAMA="yes" 23084else 23085 USE_XINERAMA="no" 23086fi ;; 23087esac 23088fi 23089 23090 23091if test "x$USE_XINERAMA" = "xyes" ; then 23092 23093printf "%s\n" "#define USE_XINERAMA 1" >>confdefs.h 23094 23095 23096pkg_failed=no 23097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 23098printf %s "checking for XINERAMA... " >&6; } 23099 23100if test -n "$XINERAMA_CFLAGS"; then 23101 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 23102 elif test -n "$PKG_CONFIG"; then 23103 if test -n "$PKG_CONFIG" && \ 23104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23105 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23106 ac_status=$? 23107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23108 test $ac_status = 0; }; then 23109 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` 23110 test "x$?" != "x0" && pkg_failed=yes 23111else 23112 pkg_failed=yes 23113fi 23114 else 23115 pkg_failed=untried 23116fi 23117if test -n "$XINERAMA_LIBS"; then 23118 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 23119 elif test -n "$PKG_CONFIG"; then 23120 if test -n "$PKG_CONFIG" && \ 23121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23122 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23123 ac_status=$? 23124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23125 test $ac_status = 0; }; then 23126 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` 23127 test "x$?" != "x0" && pkg_failed=yes 23128else 23129 pkg_failed=yes 23130fi 23131 else 23132 pkg_failed=untried 23133fi 23134 23135 23136 23137if test $pkg_failed = yes; then 23138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23139printf "%s\n" "no" >&6; } 23140 23141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23142 _pkg_short_errors_supported=yes 23143else 23144 _pkg_short_errors_supported=no 23145fi 23146 if test $_pkg_short_errors_supported = yes; then 23147 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1` 23148 else 23149 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1` 23150 fi 23151 # Put the nasty error message in config.log where it belongs 23152 echo "$XINERAMA_PKG_ERRORS" >&5 23153 23154 as_fn_error $? "Package requirements (xinerama) were not met: 23155 23156$XINERAMA_PKG_ERRORS 23157 23158Consider adjusting the PKG_CONFIG_PATH environment variable if you 23159installed software in a non-standard prefix. 23160 23161Alternatively, you may set the environment variables XINERAMA_CFLAGS 23162and XINERAMA_LIBS to avoid the need to call pkg-config. 23163See the pkg-config man page for more details." "$LINENO" 5 23164elif test $pkg_failed = untried; then 23165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23166printf "%s\n" "no" >&6; } 23167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23168printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23169as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23170is in your PATH or set the PKG_CONFIG environment variable to the full 23171path to pkg-config. 23172 23173Alternatively, you may set the environment variables XINERAMA_CFLAGS 23174and XINERAMA_LIBS to avoid the need to call pkg-config. 23175See the pkg-config man page for more details. 23176 23177To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23178See 'config.log' for more details" "$LINENO" 5; } 23179else 23180 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 23181 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 23182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23183printf "%s\n" "yes" >&6; } 23184 23185fi 23186 CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS" 23187 CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS" 23188 GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS" 23189 GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS" 23190fi 23191 23192# Xft text drawing for the greeter screen 23193 23194# Check whether --with-xft was given. 23195if test ${with_xft+y} 23196then : 23197 withval=$with_xft; USE_XFT="$withval" 23198else case e in #( 23199 e) if test -n "$PKG_CONFIG" && \ 23200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23201 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23202 ac_status=$? 23203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23204 test $ac_status = 0; }; then 23205 USE_XFT="yes" 23206else 23207 USE_XFT="no" 23208fi ;; 23209esac 23210fi 23211 23212 23213if test "x$USE_XFT" = "xyes" ; then 23214 23215pkg_failed=no 23216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 23217printf %s "checking for XFT... " >&6; } 23218 23219if test -n "$XFT_CFLAGS"; then 23220 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 23221 elif test -n "$PKG_CONFIG"; then 23222 if test -n "$PKG_CONFIG" && \ 23223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23224 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23225 ac_status=$? 23226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23227 test $ac_status = 0; }; then 23228 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender" 2>/dev/null` 23229 test "x$?" != "x0" && pkg_failed=yes 23230else 23231 pkg_failed=yes 23232fi 23233 else 23234 pkg_failed=untried 23235fi 23236if test -n "$XFT_LIBS"; then 23237 pkg_cv_XFT_LIBS="$XFT_LIBS" 23238 elif test -n "$PKG_CONFIG"; then 23239 if test -n "$PKG_CONFIG" && \ 23240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23241 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23242 ac_status=$? 23243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23244 test $ac_status = 0; }; then 23245 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender" 2>/dev/null` 23246 test "x$?" != "x0" && pkg_failed=yes 23247else 23248 pkg_failed=yes 23249fi 23250 else 23251 pkg_failed=untried 23252fi 23253 23254 23255 23256if test $pkg_failed = yes; then 23257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23258printf "%s\n" "no" >&6; } 23259 23260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23261 _pkg_short_errors_supported=yes 23262else 23263 _pkg_short_errors_supported=no 23264fi 23265 if test $_pkg_short_errors_supported = yes; then 23266 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender" 2>&1` 23267 else 23268 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender" 2>&1` 23269 fi 23270 # Put the nasty error message in config.log where it belongs 23271 echo "$XFT_PKG_ERRORS" >&5 23272 23273 as_fn_error $? "Package requirements (xft xrender) were not met: 23274 23275$XFT_PKG_ERRORS 23276 23277Consider adjusting the PKG_CONFIG_PATH environment variable if you 23278installed software in a non-standard prefix. 23279 23280Alternatively, you may set the environment variables XFT_CFLAGS 23281and XFT_LIBS to avoid the need to call pkg-config. 23282See the pkg-config man page for more details." "$LINENO" 5 23283elif test $pkg_failed = untried; then 23284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23285printf "%s\n" "no" >&6; } 23286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23287printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23288as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23289is in your PATH or set the PKG_CONFIG environment variable to the full 23290path to pkg-config. 23291 23292Alternatively, you may set the environment variables XFT_CFLAGS 23293and XFT_LIBS to avoid the need to call pkg-config. 23294See the pkg-config man page for more details. 23295 23296To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23297See 'config.log' for more details" "$LINENO" 5; } 23298else 23299 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 23300 XFT_LIBS=$pkg_cv_XFT_LIBS 23301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23302printf "%s\n" "yes" >&6; } 23303 23304fi 23305 GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS" 23306 GREETER_LIBS="$GREETER_LIBS $XFT_LIBS" 23307 23308printf "%s\n" "#define USE_XFT 1" >>confdefs.h 23309 23310fi 23311 23312# XPM logos for the greeter screen 23313# Check whether --enable-xpm-logos was given. 23314if test ${enable_xpm_logos+y} 23315then : 23316 enableval=$enable_xpm_logos; USE_XPM="$enableval" 23317else case e in #( 23318 e) if test -n "$PKG_CONFIG" && \ 23319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 23320 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 23321 ac_status=$? 23322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23323 test $ac_status = 0; }; then 23324 USE_XPM="yes" 23325else 23326 USE_XPM="no" 23327fi ;; 23328esac 23329fi 23330 23331if test "x$USE_XPM" = "xyes" ; then 23332 23333pkg_failed=no 23334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 23335printf %s "checking for XPM... " >&6; } 23336 23337if test -n "$XPM_CFLAGS"; then 23338 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 23339 elif test -n "$PKG_CONFIG"; then 23340 if test -n "$PKG_CONFIG" && \ 23341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 23342 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 23343 ac_status=$? 23344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23345 test $ac_status = 0; }; then 23346 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` 23347 test "x$?" != "x0" && pkg_failed=yes 23348else 23349 pkg_failed=yes 23350fi 23351 else 23352 pkg_failed=untried 23353fi 23354if test -n "$XPM_LIBS"; then 23355 pkg_cv_XPM_LIBS="$XPM_LIBS" 23356 elif test -n "$PKG_CONFIG"; then 23357 if test -n "$PKG_CONFIG" && \ 23358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 23359 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 23360 ac_status=$? 23361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23362 test $ac_status = 0; }; then 23363 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` 23364 test "x$?" != "x0" && pkg_failed=yes 23365else 23366 pkg_failed=yes 23367fi 23368 else 23369 pkg_failed=untried 23370fi 23371 23372 23373 23374if test $pkg_failed = yes; then 23375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23376printf "%s\n" "no" >&6; } 23377 23378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23379 _pkg_short_errors_supported=yes 23380else 23381 _pkg_short_errors_supported=no 23382fi 23383 if test $_pkg_short_errors_supported = yes; then 23384 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1` 23385 else 23386 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1` 23387 fi 23388 # Put the nasty error message in config.log where it belongs 23389 echo "$XPM_PKG_ERRORS" >&5 23390 23391 as_fn_error $? "Package requirements (xpm) were not met: 23392 23393$XPM_PKG_ERRORS 23394 23395Consider adjusting the PKG_CONFIG_PATH environment variable if you 23396installed software in a non-standard prefix. 23397 23398Alternatively, you may set the environment variables XPM_CFLAGS 23399and XPM_LIBS to avoid the need to call pkg-config. 23400See the pkg-config man page for more details." "$LINENO" 5 23401elif test $pkg_failed = untried; then 23402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23403printf "%s\n" "no" >&6; } 23404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23405printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23406as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23407is in your PATH or set the PKG_CONFIG environment variable to the full 23408path to pkg-config. 23409 23410Alternatively, you may set the environment variables XPM_CFLAGS 23411and XPM_LIBS to avoid the need to call pkg-config. 23412See the pkg-config man page for more details. 23413 23414To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23415See 'config.log' for more details" "$LINENO" 5; } 23416else 23417 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 23418 XPM_LIBS=$pkg_cv_XPM_LIBS 23419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23420printf "%s\n" "yes" >&6; } 23421 23422fi 23423 GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS" 23424 GREETER_LIBS="$GREETER_LIBS $XPM_LIBS" 23425 23426printf "%s\n" "#define XPM 1" >>confdefs.h 23427 23428fi 23429 if test "x$USE_XPM" = "xyes"; then 23430 USE_XPM_TRUE= 23431 USE_XPM_FALSE='#' 23432else 23433 USE_XPM_TRUE='#' 23434 USE_XPM_FALSE= 23435fi 23436 23437 23438 23439# Check whether --with-color-pixmap was given. 23440if test ${with_color_pixmap+y} 23441then : 23442 withval=$with_color_pixmap; XDM_PIXMAP="$withval" 23443else case e in #( 23444 e) XDM_PIXMAP="xorg.xpm" ;; 23445esac 23446fi 23447 23448 23449# Check whether --with-bw-pixmap was given. 23450if test ${with_bw_pixmap+y} 23451then : 23452 withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval" 23453else case e in #( 23454 e) XDM_BWPIXMAP="xorg-bw.xpm" ;; 23455esac 23456fi 23457 23458 23459# Check whether --with-pixmapdir was given. 23460if test ${with_pixmapdir+y} 23461then : 23462 withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval" 23463else case e in #( 23464 e) XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps' ;; 23465esac 23466fi 23467 23468 23469 23470 23471 23472 23473# Packages used by multiple programs 23474 23475 23476pkg_failed=no 23477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5 23478printf %s "checking for XDM_TOOLKIT... " >&6; } 23479 23480if test -n "$XDM_TOOLKIT_CFLAGS"; then 23481 pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS" 23482 elif test -n "$PKG_CONFIG"; then 23483 if test -n "$PKG_CONFIG" && \ 23484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 23485 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 23486 ac_status=$? 23487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23488 test $ac_status = 0; }; then 23489 pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 23490 test "x$?" != "x0" && pkg_failed=yes 23491else 23492 pkg_failed=yes 23493fi 23494 else 23495 pkg_failed=untried 23496fi 23497if test -n "$XDM_TOOLKIT_LIBS"; then 23498 pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS" 23499 elif test -n "$PKG_CONFIG"; then 23500 if test -n "$PKG_CONFIG" && \ 23501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 23502 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 23503 ac_status=$? 23504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23505 test $ac_status = 0; }; then 23506 pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 23507 test "x$?" != "x0" && pkg_failed=yes 23508else 23509 pkg_failed=yes 23510fi 23511 else 23512 pkg_failed=untried 23513fi 23514 23515 23516 23517if test $pkg_failed = yes; then 23518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23519printf "%s\n" "no" >&6; } 23520 23521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23522 _pkg_short_errors_supported=yes 23523else 23524 _pkg_short_errors_supported=no 23525fi 23526 if test $_pkg_short_errors_supported = yes; then 23527 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1` 23528 else 23529 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1` 23530 fi 23531 # Put the nasty error message in config.log where it belongs 23532 echo "$XDM_TOOLKIT_PKG_ERRORS" >&5 23533 23534 as_fn_error $? "Package requirements (xaw7) were not met: 23535 23536$XDM_TOOLKIT_PKG_ERRORS 23537 23538Consider adjusting the PKG_CONFIG_PATH environment variable if you 23539installed software in a non-standard prefix. 23540 23541Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS 23542and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config. 23543See the pkg-config man page for more details." "$LINENO" 5 23544elif test $pkg_failed = untried; then 23545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23546printf "%s\n" "no" >&6; } 23547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23548printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23549as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23550is in your PATH or set the PKG_CONFIG environment variable to the full 23551path to pkg-config. 23552 23553Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS 23554and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config. 23555See the pkg-config man page for more details. 23556 23557To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23558See 'config.log' for more details" "$LINENO" 5; } 23559else 23560 XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS 23561 XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS 23562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23563printf "%s\n" "yes" >&6; } 23564 23565fi 23566XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS -D_CONST_X_STRING" 23567 23568pkg_failed=no 23569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5 23570printf %s "checking for DMCP... " >&6; } 23571 23572if test -n "$DMCP_CFLAGS"; then 23573 pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS" 23574 elif test -n "$PKG_CONFIG"; then 23575 if test -n "$PKG_CONFIG" && \ 23576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 23577 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 23578 ac_status=$? 23579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23580 test $ac_status = 0; }; then 23581 pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 23582 test "x$?" != "x0" && pkg_failed=yes 23583else 23584 pkg_failed=yes 23585fi 23586 else 23587 pkg_failed=untried 23588fi 23589if test -n "$DMCP_LIBS"; then 23590 pkg_cv_DMCP_LIBS="$DMCP_LIBS" 23591 elif test -n "$PKG_CONFIG"; then 23592 if test -n "$PKG_CONFIG" && \ 23593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 23594 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 23595 ac_status=$? 23596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23597 test $ac_status = 0; }; then 23598 pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 23599 test "x$?" != "x0" && pkg_failed=yes 23600else 23601 pkg_failed=yes 23602fi 23603 else 23604 pkg_failed=untried 23605fi 23606 23607 23608 23609if test $pkg_failed = yes; then 23610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23611printf "%s\n" "no" >&6; } 23612 23613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23614 _pkg_short_errors_supported=yes 23615else 23616 _pkg_short_errors_supported=no 23617fi 23618 if test $_pkg_short_errors_supported = yes; then 23619 DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 23620 else 23621 DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 23622 fi 23623 # Put the nasty error message in config.log where it belongs 23624 echo "$DMCP_PKG_ERRORS" >&5 23625 23626 as_fn_error $? "Package requirements (xdmcp) were not met: 23627 23628$DMCP_PKG_ERRORS 23629 23630Consider adjusting the PKG_CONFIG_PATH environment variable if you 23631installed software in a non-standard prefix. 23632 23633Alternatively, you may set the environment variables DMCP_CFLAGS 23634and DMCP_LIBS to avoid the need to call pkg-config. 23635See the pkg-config man page for more details." "$LINENO" 5 23636elif test $pkg_failed = untried; then 23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23638printf "%s\n" "no" >&6; } 23639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23640printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23641as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23642is in your PATH or set the PKG_CONFIG environment variable to the full 23643path to pkg-config. 23644 23645Alternatively, you may set the environment variables DMCP_CFLAGS 23646and DMCP_LIBS to avoid the need to call pkg-config. 23647See the pkg-config man page for more details. 23648 23649To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23650See 'config.log' for more details" "$LINENO" 5; } 23651else 23652 DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS 23653 DMCP_LIBS=$pkg_cv_DMCP_LIBS 23654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23655printf "%s\n" "yes" >&6; } 23656 23657fi 23658 23659pkg_failed=no 23660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 23661printf %s "checking for XLIB... " >&6; } 23662 23663if test -n "$XLIB_CFLAGS"; then 23664 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 23665 elif test -n "$PKG_CONFIG"; then 23666 if test -n "$PKG_CONFIG" && \ 23667 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 23668 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 23669 ac_status=$? 23670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23671 test $ac_status = 0; }; then 23672 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 23673 test "x$?" != "x0" && pkg_failed=yes 23674else 23675 pkg_failed=yes 23676fi 23677 else 23678 pkg_failed=untried 23679fi 23680if test -n "$XLIB_LIBS"; then 23681 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 23682 elif test -n "$PKG_CONFIG"; then 23683 if test -n "$PKG_CONFIG" && \ 23684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 23685 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 23686 ac_status=$? 23687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23688 test $ac_status = 0; }; then 23689 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 23690 test "x$?" != "x0" && pkg_failed=yes 23691else 23692 pkg_failed=yes 23693fi 23694 else 23695 pkg_failed=untried 23696fi 23697 23698 23699 23700if test $pkg_failed = yes; then 23701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23702printf "%s\n" "no" >&6; } 23703 23704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23705 _pkg_short_errors_supported=yes 23706else 23707 _pkg_short_errors_supported=no 23708fi 23709 if test $_pkg_short_errors_supported = yes; then 23710 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 23711 else 23712 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 23713 fi 23714 # Put the nasty error message in config.log where it belongs 23715 echo "$XLIB_PKG_ERRORS" >&5 23716 23717 as_fn_error $? "Package requirements (x11) were not met: 23718 23719$XLIB_PKG_ERRORS 23720 23721Consider adjusting the PKG_CONFIG_PATH environment variable if you 23722installed software in a non-standard prefix. 23723 23724Alternatively, you may set the environment variables XLIB_CFLAGS 23725and XLIB_LIBS to avoid the need to call pkg-config. 23726See the pkg-config man page for more details." "$LINENO" 5 23727elif test $pkg_failed = untried; then 23728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23729printf "%s\n" "no" >&6; } 23730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23731printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23732as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23733is in your PATH or set the PKG_CONFIG environment variable to the full 23734path to pkg-config. 23735 23736Alternatively, you may set the environment variables XLIB_CFLAGS 23737and XLIB_LIBS to avoid the need to call pkg-config. 23738See the pkg-config man page for more details. 23739 23740To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23741See 'config.log' for more details" "$LINENO" 5; } 23742else 23743 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 23744 XLIB_LIBS=$pkg_cv_XLIB_LIBS 23745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23746printf "%s\n" "yes" >&6; } 23747 23748fi 23749 23750pkg_failed=no 23751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5 23752printf %s "checking for AUTH... " >&6; } 23753 23754if test -n "$AUTH_CFLAGS"; then 23755 pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS" 23756 elif test -n "$PKG_CONFIG"; then 23757 if test -n "$PKG_CONFIG" && \ 23758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 23759 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 23760 ac_status=$? 23761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23762 test $ac_status = 0; }; then 23763 pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null` 23764 test "x$?" != "x0" && pkg_failed=yes 23765else 23766 pkg_failed=yes 23767fi 23768 else 23769 pkg_failed=untried 23770fi 23771if test -n "$AUTH_LIBS"; then 23772 pkg_cv_AUTH_LIBS="$AUTH_LIBS" 23773 elif test -n "$PKG_CONFIG"; then 23774 if test -n "$PKG_CONFIG" && \ 23775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 23776 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 23777 ac_status=$? 23778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23779 test $ac_status = 0; }; then 23780 pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null` 23781 test "x$?" != "x0" && pkg_failed=yes 23782else 23783 pkg_failed=yes 23784fi 23785 else 23786 pkg_failed=untried 23787fi 23788 23789 23790 23791if test $pkg_failed = yes; then 23792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23793printf "%s\n" "no" >&6; } 23794 23795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23796 _pkg_short_errors_supported=yes 23797else 23798 _pkg_short_errors_supported=no 23799fi 23800 if test $_pkg_short_errors_supported = yes; then 23801 AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1` 23802 else 23803 AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1` 23804 fi 23805 # Put the nasty error message in config.log where it belongs 23806 echo "$AUTH_PKG_ERRORS" >&5 23807 23808 as_fn_error $? "Package requirements (xau) were not met: 23809 23810$AUTH_PKG_ERRORS 23811 23812Consider adjusting the PKG_CONFIG_PATH environment variable if you 23813installed software in a non-standard prefix. 23814 23815Alternatively, you may set the environment variables AUTH_CFLAGS 23816and AUTH_LIBS to avoid the need to call pkg-config. 23817See the pkg-config man page for more details." "$LINENO" 5 23818elif test $pkg_failed = untried; then 23819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23820printf "%s\n" "no" >&6; } 23821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23822printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23823as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23824is in your PATH or set the PKG_CONFIG environment variable to the full 23825path to pkg-config. 23826 23827Alternatively, you may set the environment variables AUTH_CFLAGS 23828and AUTH_LIBS to avoid the need to call pkg-config. 23829See the pkg-config man page for more details. 23830 23831To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23832See 'config.log' for more details" "$LINENO" 5; } 23833else 23834 AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS 23835 AUTH_LIBS=$pkg_cv_AUTH_LIBS 23836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23837printf "%s\n" "yes" >&6; } 23838 23839fi 23840 23841# 23842# Greeter 23843# 23844 23845 23846pkg_failed=no 23847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5 23848printf %s "checking for XDMGREET... " >&6; } 23849 23850if test -n "$XDMGREET_CFLAGS"; then 23851 pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS" 23852 elif test -n "$PKG_CONFIG"; then 23853 if test -n "$PKG_CONFIG" && \ 23854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5 23855 ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5 23856 ac_status=$? 23857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23858 test $ac_status = 0; }; then 23859 pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.0 x11 xext" 2>/dev/null` 23860 test "x$?" != "x0" && pkg_failed=yes 23861else 23862 pkg_failed=yes 23863fi 23864 else 23865 pkg_failed=untried 23866fi 23867if test -n "$XDMGREET_LIBS"; then 23868 pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS" 23869 elif test -n "$PKG_CONFIG"; then 23870 if test -n "$PKG_CONFIG" && \ 23871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5 23872 ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5 23873 ac_status=$? 23874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23875 test $ac_status = 0; }; then 23876 pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt >= 1.0 x11 xext" 2>/dev/null` 23877 test "x$?" != "x0" && pkg_failed=yes 23878else 23879 pkg_failed=yes 23880fi 23881 else 23882 pkg_failed=untried 23883fi 23884 23885 23886 23887if test $pkg_failed = yes; then 23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23889printf "%s\n" "no" >&6; } 23890 23891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23892 _pkg_short_errors_supported=yes 23893else 23894 _pkg_short_errors_supported=no 23895fi 23896 if test $_pkg_short_errors_supported = yes; then 23897 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1` 23898 else 23899 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1` 23900 fi 23901 # Put the nasty error message in config.log where it belongs 23902 echo "$XDMGREET_PKG_ERRORS" >&5 23903 23904 as_fn_error $? "Package requirements (xt >= 1.0 x11 xext) were not met: 23905 23906$XDMGREET_PKG_ERRORS 23907 23908Consider adjusting the PKG_CONFIG_PATH environment variable if you 23909installed software in a non-standard prefix. 23910 23911Alternatively, you may set the environment variables XDMGREET_CFLAGS 23912and XDMGREET_LIBS to avoid the need to call pkg-config. 23913See the pkg-config man page for more details." "$LINENO" 5 23914elif test $pkg_failed = untried; then 23915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23916printf "%s\n" "no" >&6; } 23917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23918printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23919as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23920is in your PATH or set the PKG_CONFIG environment variable to the full 23921path to pkg-config. 23922 23923Alternatively, you may set the environment variables XDMGREET_CFLAGS 23924and XDMGREET_LIBS to avoid the need to call pkg-config. 23925See the pkg-config man page for more details. 23926 23927To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23928See 'config.log' for more details" "$LINENO" 5; } 23929else 23930 XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS 23931 XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS 23932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23933printf "%s\n" "yes" >&6; } 23934 23935fi 23936 23937GREETERLIB="${XDMLIBDIR}/libXdmGreet.so" 23938 23939 prefix_NONE= 23940 exec_prefix_NONE= 23941 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23942 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23943 eval ax_define_dir="\"$GREETERLIB\"" 23944 eval ax_define_dir="\"$ax_define_dir\"" 23945 DEF_GREETER_LIB="$ax_define_dir" 23946 23947 23948printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h 23949 23950 test "$prefix_NONE" && prefix=NONE 23951 test "$exec_prefix_NONE" && exec_prefix=NONE 23952 23953 23954XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS" 23955XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS" 23956 23957# 23958# XDM 23959# 23960 23961XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS" 23962XDM_LIBS="$XDM_LIBS $DMCP_LIBS" 23963 23964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 23965printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; } 23966if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y} 23967then : 23968 printf %s "(cached) " >&6 23969else case e in #( 23970 e) ac_check_lib_save_LIBS=$LIBS 23971LIBS="-lXdmcp $DMCP_LIBS $LIBS" 23972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23973/* end confdefs.h. */ 23974 23975/* Override any GCC internal prototype to avoid an error. 23976 Use char because int might match the return type of a GCC 23977 builtin and then its argument prototype would still apply. 23978 The 'extern "C"' is for builds by C++ compilers; 23979 although this is not generally supported in C code supporting it here 23980 has little cost and some practical benefit (sr 110532). */ 23981#ifdef __cplusplus 23982extern "C" 23983#endif 23984char XdmcpWrap (void); 23985int 23986main (void) 23987{ 23988return XdmcpWrap (); 23989 ; 23990 return 0; 23991} 23992_ACEOF 23993if ac_fn_c_try_link "$LINENO" 23994then : 23995 ac_cv_lib_Xdmcp_XdmcpWrap=yes 23996else case e in #( 23997 e) ac_cv_lib_Xdmcp_XdmcpWrap=no ;; 23998esac 23999fi 24000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24001 conftest$ac_exeext conftest.$ac_ext 24002LIBS=$ac_check_lib_save_LIBS ;; 24003esac 24004fi 24005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 24006printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 24007if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes 24008then : 24009 xdmauth="yes" 24010else case e in #( 24011 e) xdmauth="no" ;; 24012esac 24013fi 24014 24015 24016# Check whether --enable-xdm-auth was given. 24017if test ${enable_xdm_auth+y} 24018then : 24019 enableval=$enable_xdm_auth; xdmauth_enable="$enableval" 24020else case e in #( 24021 e) xdmauth_enable="auto" ;; 24022esac 24023fi 24024 24025if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then 24026 as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5 24027fi 24028 24029 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then 24030 HAS_XDM_AUTH_TRUE= 24031 HAS_XDM_AUTH_FALSE='#' 24032else 24033 HAS_XDM_AUTH_TRUE='#' 24034 HAS_XDM_AUTH_FALSE= 24035fi 24036 24037 24038 24039 24040 24041# 24042# xdmshell 24043# 24044 24045# Check whether --enable-xdmshell was given. 24046if test ${enable_xdmshell+y} 24047then : 24048 enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval" 24049else case e in #( 24050 e) INSTALL_XDMSHELL="no" ;; 24051esac 24052fi 24053 24054 if test x$INSTALL_XDMSHELL = xyes; then 24055 INSTALL_XDMSHELL_TRUE= 24056 INSTALL_XDMSHELL_FALSE='#' 24057else 24058 INSTALL_XDMSHELL_TRUE='#' 24059 INSTALL_XDMSHELL_FALSE= 24060fi 24061 24062 24063 24064pkg_failed=no 24065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 24066printf %s "checking for XT... " >&6; } 24067 24068if test -n "$XT_CFLAGS"; then 24069 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 24070 elif test -n "$PKG_CONFIG"; then 24071 if test -n "$PKG_CONFIG" && \ 24072 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24073 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24074 ac_status=$? 24075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24076 test $ac_status = 0; }; then 24077 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 24078 test "x$?" != "x0" && pkg_failed=yes 24079else 24080 pkg_failed=yes 24081fi 24082 else 24083 pkg_failed=untried 24084fi 24085if test -n "$XT_LIBS"; then 24086 pkg_cv_XT_LIBS="$XT_LIBS" 24087 elif test -n "$PKG_CONFIG"; then 24088 if test -n "$PKG_CONFIG" && \ 24089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24090 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24091 ac_status=$? 24092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24093 test $ac_status = 0; }; then 24094 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 24095 test "x$?" != "x0" && pkg_failed=yes 24096else 24097 pkg_failed=yes 24098fi 24099 else 24100 pkg_failed=untried 24101fi 24102 24103 24104 24105if test $pkg_failed = yes; then 24106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24107printf "%s\n" "no" >&6; } 24108 24109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24110 _pkg_short_errors_supported=yes 24111else 24112 _pkg_short_errors_supported=no 24113fi 24114 if test $_pkg_short_errors_supported = yes; then 24115 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 24116 else 24117 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 24118 fi 24119 # Put the nasty error message in config.log where it belongs 24120 echo "$XT_PKG_ERRORS" >&5 24121 24122 as_fn_error $? "Package requirements (xt) were not met: 24123 24124$XT_PKG_ERRORS 24125 24126Consider adjusting the PKG_CONFIG_PATH environment variable if you 24127installed software in a non-standard prefix. 24128 24129Alternatively, you may set the environment variables XT_CFLAGS 24130and XT_LIBS to avoid the need to call pkg-config. 24131See the pkg-config man page for more details." "$LINENO" 5 24132elif test $pkg_failed = untried; then 24133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24134printf "%s\n" "no" >&6; } 24135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24136printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24137as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24138is in your PATH or set the PKG_CONFIG environment variable to the full 24139path to pkg-config. 24140 24141Alternatively, you may set the environment variables XT_CFLAGS 24142and XT_LIBS to avoid the need to call pkg-config. 24143See the pkg-config man page for more details. 24144 24145To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24146See 'config.log' for more details" "$LINENO" 5; } 24147else 24148 XT_CFLAGS=$pkg_cv_XT_CFLAGS 24149 XT_LIBS=$pkg_cv_XT_LIBS 24150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24151printf "%s\n" "yes" >&6; } 24152 24153fi 24154XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS" 24155XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS" 24156 24157 24158 24159 24160# 24161# Chooser 24162# 24163 24164CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS" 24165CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS" 24166 24167 24168 24169 24170# Defaults for X session - should probably be configure --with-* flags 24171# Currently just trying to mirror what defaults were set in Imake 24172 24173# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0" 24174if test -z "$DEF_SERVER" ; then 24175 DEF_SERVER="${bindir}/X" 24176fi 24177if test -z "$DEF_SERVER_LINE" ; then 24178 DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0" 24179fi 24180 24181 prefix_NONE= 24182 exec_prefix_NONE= 24183 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24184 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24185 eval ax_define_dir="\"$DEF_SERVER_LINE\"" 24186 eval ax_define_dir="\"$ax_define_dir\"" 24187 DEF_SERVER_LINE="$ax_define_dir" 24188 24189 24190printf "%s\n" "#define DEF_SERVER_LINE \"$ax_define_dir\"" >>confdefs.h 24191 24192 test "$prefix_NONE" && prefix=NONE 24193 test "$exec_prefix_NONE" && exec_prefix=NONE 24194 24195 24196# -DXRDB_PROGRAM="$(BINDIR)/xrdb" 24197 24198# Check whether --with-xrdb was given. 24199if test ${with_xrdb+y} 24200then : 24201 withval=$with_xrdb; XRDB=$withval 24202else case e in #( 24203 e) XRDB=${bindir}/xrdb ;; 24204esac 24205fi 24206 24207 24208 prefix_NONE= 24209 exec_prefix_NONE= 24210 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24211 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24212 eval ax_define_dir="\"$XRDB\"" 24213 eval ax_define_dir="\"$ax_define_dir\"" 24214 XRDB_PROGRAM="$ax_define_dir" 24215 24216 24217printf "%s\n" "#define XRDB_PROGRAM \"$ax_define_dir\"" >>confdefs.h 24218 24219 test "$prefix_NONE" && prefix=NONE 24220 test "$exec_prefix_NONE" && exec_prefix=NONE 24221 24222 24223# -DDEF_SESSION="$(BINDIR)/xterm -ls" 24224 24225# Check whether --with-default-session was given. 24226if test ${with_default_session+y} 24227then : 24228 withval=$with_default_session; DEF_SESSION=$withval 24229else case e in #( 24230 e) DEF_SESSION="${bindir}/xterm -ls" ;; 24231esac 24232fi 24233 24234 24235 prefix_NONE= 24236 exec_prefix_NONE= 24237 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24238 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24239 eval ax_define_dir="\"$DEF_SESSION\"" 24240 eval ax_define_dir="\"$ax_define_dir\"" 24241 DEF_SESSION="$ax_define_dir" 24242 24243 24244printf "%s\n" "#define DEF_SESSION \"$ax_define_dir\"" >>confdefs.h 24245 24246 test "$prefix_NONE" && prefix=NONE 24247 test "$exec_prefix_NONE" && exec_prefix=NONE 24248 24249 24250# -DDEF_USER_PATH="$(DEF_USER_PATH)" 24251# Default values taken from DefaultUserPath setting in the 24252# old Imake *.cf files for each platform 24253if test -z "$DEF_USER_PATH" ; then 24254 case $host_os in 24255 dragonfly*) 24256 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin" 24257 ;; 24258 freebsd*) 24259 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin" 24260 ;; 24261 netbsd*) 24262 DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}" 24263 ;; 24264 openbsd*|bsdi*) 24265 DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}" 24266 ;; 24267 solaris*) 24268 DEF_USER_PATH="/usr/bin:${bindir}" 24269 ;; 24270 *) 24271 DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb" 24272 ;; 24273 esac 24274fi 24275 24276 prefix_NONE= 24277 exec_prefix_NONE= 24278 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24279 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24280 eval ax_define_dir="\"$DEF_USER_PATH\"" 24281 eval ax_define_dir="\"$ax_define_dir\"" 24282 DEF_USER_PATH="$ax_define_dir" 24283 24284 24285printf "%s\n" "#define DEF_USER_PATH \"$ax_define_dir\"" >>confdefs.h 24286 24287 test "$prefix_NONE" && prefix=NONE 24288 test "$exec_prefix_NONE" && exec_prefix=NONE 24289 24290 24291# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)" 24292# Default values taken from DefaultSystemPath setting in the 24293# old Imake *.cf files for each platform 24294if test -z "$DEF_SYSTEM_PATH" ; then 24295 case $host_os in 24296 freebsd*|dragonfly*) 24297 DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}" 24298 ;; 24299 netbsd*|openbsd*|bsdi*) 24300 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}" 24301 ;; 24302 solaris*) 24303 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}" 24304 ;; 24305 *) 24306 DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb" 24307 ;; 24308 esac 24309fi 24310 24311 prefix_NONE= 24312 exec_prefix_NONE= 24313 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24314 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24315 eval ax_define_dir="\"$DEF_SYSTEM_PATH\"" 24316 eval ax_define_dir="\"$ax_define_dir\"" 24317 DEF_SYSTEM_PATH="$ax_define_dir" 24318 24319 24320printf "%s\n" "#define DEF_SYSTEM_PATH \"$ax_define_dir\"" >>confdefs.h 24321 24322 test "$prefix_NONE" && prefix=NONE 24323 test "$exec_prefix_NONE" && exec_prefix=NONE 24324 24325 24326# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)" 24327if test -z "$BOURNE_SHELL" ; then 24328 BOURNE_SHELL=/bin/sh 24329fi 24330 24331 prefix_NONE= 24332 exec_prefix_NONE= 24333 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24334 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24335 eval ax_define_dir="\"$BOURNE_SHELL\"" 24336 eval ax_define_dir="\"$ax_define_dir\"" 24337 DEF_SYSTEM_SHELL="$ax_define_dir" 24338 24339 24340printf "%s\n" "#define DEF_SYSTEM_SHELL \"$ax_define_dir\"" >>confdefs.h 24341 24342 test "$prefix_NONE" && prefix=NONE 24343 test "$exec_prefix_NONE" && exec_prefix=NONE 24344 24345 24346# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm" 24347 24348 24349 prefix_NONE= 24350 exec_prefix_NONE= 24351 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24352 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24353 eval ax_define_dir="\"$bindir/xterm\"" 24354 eval ax_define_dir="\"$ax_define_dir\"" 24355 DEF_FAILSAFE_CLIENT="$ax_define_dir" 24356 24357 24358printf "%s\n" "#define DEF_FAILSAFE_CLIENT \"$ax_define_dir\"" >>confdefs.h 24359 24360 test "$prefix_NONE" && prefix=NONE 24361 test "$exec_prefix_NONE" && exec_prefix=NONE 24362 24363 24364# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config" 24365 24366 24367 prefix_NONE= 24368 exec_prefix_NONE= 24369 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24370 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24371 eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\"" 24372 eval ax_define_dir="\"$ax_define_dir\"" 24373 DEF_XDM_CONFIG="$ax_define_dir" 24374 24375 24376printf "%s\n" "#define DEF_XDM_CONFIG \"$ax_define_dir\"" >>confdefs.h 24377 24378 test "$prefix_NONE" && prefix=NONE 24379 test "$exec_prefix_NONE" && exec_prefix=NONE 24380 24381 24382# -DDEF_CHOOSER="$(CHOOSERPATH)" 24383 24384 24385 prefix_NONE= 24386 exec_prefix_NONE= 24387 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24388 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24389 eval ax_define_dir="\"$XDMLIBDIR/chooser\"" 24390 eval ax_define_dir="\"$ax_define_dir\"" 24391 DEF_CHOOSER="$ax_define_dir" 24392 24393 24394printf "%s\n" "#define DEF_CHOOSER \"$ax_define_dir\"" >>confdefs.h 24395 24396 test "$prefix_NONE" && prefix=NONE 24397 test "$exec_prefix_NONE" && exec_prefix=NONE 24398 24399 24400# -DDEF_AUTH_DIR="$(XDMDIR)" 24401 24402 24403# Check whether --with-authdir was given. 24404if test ${with_authdir+y} 24405then : 24406 withval=$with_authdir; XDMXAUTHDIR="$withval" 24407else case e in #( 24408 e) XDMXAUTHDIR="/var/lib/xdm" ;; 24409esac 24410fi 24411 24412 24413 24414 24415 prefix_NONE= 24416 exec_prefix_NONE= 24417 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24418 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24419 eval ax_define_dir="\"$XDMXAUTHDIR\"" 24420 eval ax_define_dir="\"$ax_define_dir\"" 24421 DEF_AUTH_DIR="$ax_define_dir" 24422 24423 24424printf "%s\n" "#define DEF_AUTH_DIR \"$ax_define_dir\"" >>confdefs.h 24425 24426 test "$prefix_NONE" && prefix=NONE 24427 test "$exec_prefix_NONE" && exec_prefix=NONE 24428 24429 24430# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so" 24431 24432 24433 prefix_NONE= 24434 exec_prefix_NONE= 24435 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24436 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24437 eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\"" 24438 eval ax_define_dir="\"$ax_define_dir\"" 24439 DEF_GREETER_LIB="$ax_define_dir" 24440 24441 24442printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h 24443 24444 test "$prefix_NONE" && prefix=NONE 24445 test "$exec_prefix_NONE" && exec_prefix=NONE 24446 24447 24448 24449pkg_failed=no 24450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 24451printf %s "checking for APPDEFS... " >&6; } 24452 24453if test -n "$APPDEFS_CFLAGS"; then 24454 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 24455 elif test -n "$PKG_CONFIG"; then 24456 if test -n "$PKG_CONFIG" && \ 24457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24458 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24459 ac_status=$? 24460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24461 test $ac_status = 0; }; then 24462 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 24463 test "x$?" != "x0" && pkg_failed=yes 24464else 24465 pkg_failed=yes 24466fi 24467 else 24468 pkg_failed=untried 24469fi 24470if test -n "$APPDEFS_LIBS"; then 24471 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 24472 elif test -n "$PKG_CONFIG"; then 24473 if test -n "$PKG_CONFIG" && \ 24474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24475 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24476 ac_status=$? 24477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24478 test $ac_status = 0; }; then 24479 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 24480 test "x$?" != "x0" && pkg_failed=yes 24481else 24482 pkg_failed=yes 24483fi 24484 else 24485 pkg_failed=untried 24486fi 24487 24488 24489 24490if test $pkg_failed = yes; then 24491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24492printf "%s\n" "no" >&6; } 24493 24494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24495 _pkg_short_errors_supported=yes 24496else 24497 _pkg_short_errors_supported=no 24498fi 24499 if test $_pkg_short_errors_supported = yes; then 24500 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 24501 else 24502 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 24503 fi 24504 # Put the nasty error message in config.log where it belongs 24505 echo "$APPDEFS_PKG_ERRORS" >&5 24506 24507 as_fn_error $? "Package requirements (xt) were not met: 24508 24509$APPDEFS_PKG_ERRORS 24510 24511Consider adjusting the PKG_CONFIG_PATH environment variable if you 24512installed software in a non-standard prefix. 24513 24514Alternatively, you may set the environment variables APPDEFS_CFLAGS 24515and APPDEFS_LIBS to avoid the need to call pkg-config. 24516See the pkg-config man page for more details." "$LINENO" 5 24517elif test $pkg_failed = untried; then 24518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24519printf "%s\n" "no" >&6; } 24520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24521printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24522as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24523is in your PATH or set the PKG_CONFIG environment variable to the full 24524path to pkg-config. 24525 24526Alternatively, you may set the environment variables APPDEFS_CFLAGS 24527and APPDEFS_LIBS to avoid the need to call pkg-config. 24528See the pkg-config man page for more details. 24529 24530To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24531See 'config.log' for more details" "$LINENO" 5; } 24532else 24533 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 24534 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 24535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24536printf "%s\n" "yes" >&6; } 24537 24538fi 24539xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 24540 24541# Check whether --with-appdefaultdir was given. 24542if test ${with_appdefaultdir+y} 24543then : 24544 withval=$with_appdefaultdir; appdefaultdir="$withval" 24545else case e in #( 24546 e) appdefaultdir="${xt_appdefaultdir}" ;; 24547esac 24548fi 24549 24550 24551 24552 24553 24554ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile" 24555 24556cat >confcache <<\_ACEOF 24557# This file is a shell script that caches the results of configure 24558# tests run on this system so they can be shared between configure 24559# scripts and configure runs, see configure's option --config-cache. 24560# It is not useful on other systems. If it contains results you don't 24561# want to keep, you may remove or edit it. 24562# 24563# config.status only pays attention to the cache file if you give it 24564# the --recheck option to rerun configure. 24565# 24566# 'ac_cv_env_foo' variables (set or unset) will be overridden when 24567# loading this file, other *unset* 'ac_cv_foo' will be assigned the 24568# following values. 24569 24570_ACEOF 24571 24572# The following way of writing the cache mishandles newlines in values, 24573# but we know of no workaround that is simple, portable, and efficient. 24574# So, we kill variables containing newlines. 24575# Ultrix sh set writes to stderr and can't be redirected directly, 24576# and sets the high bit in the cache file unless we assign to the vars. 24577( 24578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24579 eval ac_val=\$$ac_var 24580 case $ac_val in #( 24581 *${as_nl}*) 24582 case $ac_var in #( 24583 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24584printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24585 esac 24586 case $ac_var in #( 24587 _ | IFS | as_nl) ;; #( 24588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24589 *) { eval $ac_var=; unset $ac_var;} ;; 24590 esac ;; 24591 esac 24592 done 24593 24594 (set) 2>&1 | 24595 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24596 *${as_nl}ac_space=\ *) 24597 # 'set' does not quote correctly, so add quotes: double-quote 24598 # substitution turns \\\\ into \\, and sed turns \\ into \. 24599 sed -n \ 24600 "s/'/'\\\\''/g; 24601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24602 ;; #( 24603 *) 24604 # 'set' quotes correctly as required by POSIX, so do not add quotes. 24605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24606 ;; 24607 esac | 24608 sort 24609) | 24610 sed ' 24611 /^ac_cv_env_/b end 24612 t clear 24613 :clear 24614 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 24615 t end 24616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24617 :end' >>confcache 24618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24619 if test -w "$cache_file"; then 24620 if test "x$cache_file" != "x/dev/null"; then 24621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24622printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 24623 if test ! -f "$cache_file" || test -h "$cache_file"; then 24624 cat confcache >"$cache_file" 24625 else 24626 case $cache_file in #( 24627 */* | ?:*) 24628 mv -f confcache "$cache_file"$$ && 24629 mv -f "$cache_file"$$ "$cache_file" ;; #( 24630 *) 24631 mv -f confcache "$cache_file" ;; 24632 esac 24633 fi 24634 fi 24635 else 24636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24637printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 24638 fi 24639fi 24640rm -f confcache 24641 24642test "x$prefix" = xNONE && prefix=$ac_default_prefix 24643# Let make expand exec_prefix. 24644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24645 24646DEFS=-DHAVE_CONFIG_H 24647 24648ac_libobjs= 24649ac_ltlibobjs= 24650U= 24651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24652 # 1. Remove the extension, and $U if already installed. 24653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24654 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 24655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24656 # will be set to the directory where LIBOBJS objects are built. 24657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24659done 24660LIBOBJS=$ac_libobjs 24661 24662LTLIBOBJS=$ac_ltlibobjs 24663 24664 24665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 24666printf %s "checking that generated files are newer than configure... " >&6; } 24667 if test -n "$am_sleep_pid"; then 24668 # Hide warnings about reused PIDs. 24669 wait $am_sleep_pid 2>/dev/null 24670 fi 24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 24672printf "%s\n" "done" >&6; } 24673if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24674 as_fn_error $? "conditional \"AMDEP\" was never defined. 24675Usually this means the macro was only invoked conditionally." "$LINENO" 5 24676fi 24677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24678 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24679Usually this means the macro was only invoked conditionally." "$LINENO" 5 24680fi 24681 if test -n "$EXEEXT"; then 24682 am__EXEEXT_TRUE= 24683 am__EXEEXT_FALSE='#' 24684else 24685 am__EXEEXT_TRUE='#' 24686 am__EXEEXT_FALSE= 24687fi 24688 24689if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 24690 as_fn_error $? "conditional \"LINT\" was never defined. 24691Usually this means the macro was only invoked conditionally." "$LINENO" 5 24692fi 24693if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then 24694 as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined. 24695Usually this means the macro was only invoked conditionally." "$LINENO" 5 24696fi 24697if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 24698 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 24699Usually this means the macro was only invoked conditionally." "$LINENO" 5 24700fi 24701if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then 24702 as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined. 24703Usually this means the macro was only invoked conditionally." "$LINENO" 5 24704fi 24705if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then 24706 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. 24707Usually this means the macro was only invoked conditionally." "$LINENO" 5 24708fi 24709if test -z "${USE_SYSTEMD_DAEMON_TRUE}" && test -z "${USE_SYSTEMD_DAEMON_FALSE}"; then 24710 as_fn_error $? "conditional \"USE_SYSTEMD_DAEMON\" was never defined. 24711Usually this means the macro was only invoked conditionally." "$LINENO" 5 24712fi 24713if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then 24714 as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined. 24715Usually this means the macro was only invoked conditionally." "$LINENO" 5 24716fi 24717if test -z "${SET_UTMP_FILE_TRUE}" && test -z "${SET_UTMP_FILE_FALSE}"; then 24718 as_fn_error $? "conditional \"SET_UTMP_FILE\" was never defined. 24719Usually this means the macro was only invoked conditionally." "$LINENO" 5 24720fi 24721if test -z "${SET_WTMP_FILE_TRUE}" && test -z "${SET_WTMP_FILE_FALSE}"; then 24722 as_fn_error $? "conditional \"SET_WTMP_FILE\" was never defined. 24723Usually this means the macro was only invoked conditionally." "$LINENO" 5 24724fi 24725if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then 24726 as_fn_error $? "conditional \"USE_XPM\" was never defined. 24727Usually this means the macro was only invoked conditionally." "$LINENO" 5 24728fi 24729if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then 24730 as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined. 24731Usually this means the macro was only invoked conditionally." "$LINENO" 5 24732fi 24733if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then 24734 as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined. 24735Usually this means the macro was only invoked conditionally." "$LINENO" 5 24736fi 24737 24738: "${CONFIG_STATUS=./config.status}" 24739ac_write_fail=0 24740ac_clean_files_save=$ac_clean_files 24741ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24743printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 24744as_write_fail=0 24745cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24746#! $SHELL 24747# Generated by $as_me. 24748# Run this file to recreate the current configuration. 24749# Compiler output produced by configure, useful for debugging 24750# configure, is in config.log if it exists. 24751 24752debug=false 24753ac_cs_recheck=false 24754ac_cs_silent=false 24755 24756SHELL=\${CONFIG_SHELL-$SHELL} 24757export SHELL 24758_ASEOF 24759cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24760## -------------------- ## 24761## M4sh Initialization. ## 24762## -------------------- ## 24763 24764# Be more Bourne compatible 24765DUALCASE=1; export DUALCASE # for MKS sh 24766if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 24767then : 24768 emulate sh 24769 NULLCMD=: 24770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24771 # is contrary to our usage. Disable this feature. 24772 alias -g '${1+"$@"}'='"$@"' 24773 setopt NO_GLOB_SUBST 24774else case e in #( 24775 e) case `(set -o) 2>/dev/null` in #( 24776 *posix*) : 24777 set -o posix ;; #( 24778 *) : 24779 ;; 24780esac ;; 24781esac 24782fi 24783 24784 24785 24786# Reset variables that may have inherited troublesome values from 24787# the environment. 24788 24789# IFS needs to be set, to space, tab, and newline, in precisely that order. 24790# (If _AS_PATH_WALK were called with IFS unset, it would have the 24791# side effect of setting IFS to empty, thus disabling word splitting.) 24792# Quoting is to prevent editors from complaining about space-tab. 24793as_nl=' 24794' 24795export as_nl 24796IFS=" "" $as_nl" 24797 24798PS1='$ ' 24799PS2='> ' 24800PS4='+ ' 24801 24802# Ensure predictable behavior from utilities with locale-dependent output. 24803LC_ALL=C 24804export LC_ALL 24805LANGUAGE=C 24806export LANGUAGE 24807 24808# We cannot yet rely on "unset" to work, but we need these variables 24809# to be unset--not just set to an empty or harmless value--now, to 24810# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 24811# also avoids known problems related to "unset" and subshell syntax 24812# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 24813for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 24814do eval test \${$as_var+y} \ 24815 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24816done 24817 24818# Ensure that fds 0, 1, and 2 are open. 24819if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 24820if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 24821if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 24822 24823# The user is always right. 24824if ${PATH_SEPARATOR+false} :; then 24825 PATH_SEPARATOR=: 24826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24828 PATH_SEPARATOR=';' 24829 } 24830fi 24831 24832 24833# Find who we are. Look in the path if we contain no directory separator. 24834as_myself= 24835case $0 in #(( 24836 *[\\/]* ) as_myself=$0 ;; 24837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24838for as_dir in $PATH 24839do 24840 IFS=$as_save_IFS 24841 case $as_dir in #((( 24842 '') as_dir=./ ;; 24843 */) ;; 24844 *) as_dir=$as_dir/ ;; 24845 esac 24846 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 24847 done 24848IFS=$as_save_IFS 24849 24850 ;; 24851esac 24852# We did not find ourselves, most probably we were run as 'sh COMMAND' 24853# in which case we are not to be found in the path. 24854if test "x$as_myself" = x; then 24855 as_myself=$0 24856fi 24857if test ! -f "$as_myself"; then 24858 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24859 exit 1 24860fi 24861 24862 24863 24864# as_fn_error STATUS ERROR [LINENO LOG_FD] 24865# ---------------------------------------- 24866# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24867# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24868# script with STATUS, using 1 if that was 0. 24869as_fn_error () 24870{ 24871 as_status=$1; test $as_status -eq 0 && as_status=1 24872 if test "$4"; then 24873 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24875 fi 24876 printf "%s\n" "$as_me: error: $2" >&2 24877 as_fn_exit $as_status 24878} # as_fn_error 24879 24880 24881# as_fn_set_status STATUS 24882# ----------------------- 24883# Set $? to STATUS, without forking. 24884as_fn_set_status () 24885{ 24886 return $1 24887} # as_fn_set_status 24888 24889# as_fn_exit STATUS 24890# ----------------- 24891# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24892as_fn_exit () 24893{ 24894 set +e 24895 as_fn_set_status $1 24896 exit $1 24897} # as_fn_exit 24898 24899# as_fn_unset VAR 24900# --------------- 24901# Portably unset VAR. 24902as_fn_unset () 24903{ 24904 { eval $1=; unset $1;} 24905} 24906as_unset=as_fn_unset 24907 24908# as_fn_append VAR VALUE 24909# ---------------------- 24910# Append the text in VALUE to the end of the definition contained in VAR. Take 24911# advantage of any shell optimizations that allow amortized linear growth over 24912# repeated appends, instead of the typical quadratic growth present in naive 24913# implementations. 24914if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 24915then : 24916 eval 'as_fn_append () 24917 { 24918 eval $1+=\$2 24919 }' 24920else case e in #( 24921 e) as_fn_append () 24922 { 24923 eval $1=\$$1\$2 24924 } ;; 24925esac 24926fi # as_fn_append 24927 24928# as_fn_arith ARG... 24929# ------------------ 24930# Perform arithmetic evaluation on the ARGs, and store the result in the 24931# global $as_val. Take advantage of shells that can avoid forks. The arguments 24932# must be portable across $(()) and expr. 24933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 24934then : 24935 eval 'as_fn_arith () 24936 { 24937 as_val=$(( $* )) 24938 }' 24939else case e in #( 24940 e) as_fn_arith () 24941 { 24942 as_val=`expr "$@" || test $? -eq 1` 24943 } ;; 24944esac 24945fi # as_fn_arith 24946 24947 24948if expr a : '\(a\)' >/dev/null 2>&1 && 24949 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24950 as_expr=expr 24951else 24952 as_expr=false 24953fi 24954 24955if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24956 as_basename=basename 24957else 24958 as_basename=false 24959fi 24960 24961if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24962 as_dirname=dirname 24963else 24964 as_dirname=false 24965fi 24966 24967as_me=`$as_basename -- "$0" || 24968$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24969 X"$0" : 'X\(//\)$' \| \ 24970 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24971printf "%s\n" X/"$0" | 24972 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24973 s//\1/ 24974 q 24975 } 24976 /^X\/\(\/\/\)$/{ 24977 s//\1/ 24978 q 24979 } 24980 /^X\/\(\/\).*/{ 24981 s//\1/ 24982 q 24983 } 24984 s/.*/./; q'` 24985 24986# Avoid depending upon Character Ranges. 24987as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24988as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24989as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24990as_cr_digits='0123456789' 24991as_cr_alnum=$as_cr_Letters$as_cr_digits 24992 24993 24994# Determine whether it's possible to make 'echo' print without a newline. 24995# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 24996# for compatibility with existing Makefiles. 24997ECHO_C= ECHO_N= ECHO_T= 24998case `echo -n x` in #((((( 24999-n*) 25000 case `echo 'xy\c'` in 25001 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25002 xy) ECHO_C='\c';; 25003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25004 ECHO_T=' ';; 25005 esac;; 25006*) 25007 ECHO_N='-n';; 25008esac 25009 25010# For backward compatibility with old third-party macros, we provide 25011# the shell variables $as_echo and $as_echo_n. New code should use 25012# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 25013as_echo='printf %s\n' 25014as_echo_n='printf %s' 25015 25016rm -f conf$$ conf$$.exe conf$$.file 25017if test -d conf$$.dir; then 25018 rm -f conf$$.dir/conf$$.file 25019else 25020 rm -f conf$$.dir 25021 mkdir conf$$.dir 2>/dev/null 25022fi 25023if (echo >conf$$.file) 2>/dev/null; then 25024 if ln -s conf$$.file conf$$ 2>/dev/null; then 25025 as_ln_s='ln -s' 25026 # ... but there are two gotchas: 25027 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 25028 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 25029 # In both cases, we have to default to 'cp -pR'. 25030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25031 as_ln_s='cp -pR' 25032 elif ln conf$$.file conf$$ 2>/dev/null; then 25033 as_ln_s=ln 25034 else 25035 as_ln_s='cp -pR' 25036 fi 25037else 25038 as_ln_s='cp -pR' 25039fi 25040rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25041rmdir conf$$.dir 2>/dev/null 25042 25043 25044# as_fn_mkdir_p 25045# ------------- 25046# Create "$as_dir" as a directory, including parents if necessary. 25047as_fn_mkdir_p () 25048{ 25049 25050 case $as_dir in #( 25051 -*) as_dir=./$as_dir;; 25052 esac 25053 test -d "$as_dir" || eval $as_mkdir_p || { 25054 as_dirs= 25055 while :; do 25056 case $as_dir in #( 25057 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25058 *) as_qdir=$as_dir;; 25059 esac 25060 as_dirs="'$as_qdir' $as_dirs" 25061 as_dir=`$as_dirname -- "$as_dir" || 25062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25063 X"$as_dir" : 'X\(//\)[^/]' \| \ 25064 X"$as_dir" : 'X\(//\)$' \| \ 25065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25066printf "%s\n" X"$as_dir" | 25067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25068 s//\1/ 25069 q 25070 } 25071 /^X\(\/\/\)[^/].*/{ 25072 s//\1/ 25073 q 25074 } 25075 /^X\(\/\/\)$/{ 25076 s//\1/ 25077 q 25078 } 25079 /^X\(\/\).*/{ 25080 s//\1/ 25081 q 25082 } 25083 s/.*/./; q'` 25084 test -d "$as_dir" && break 25085 done 25086 test -z "$as_dirs" || eval "mkdir $as_dirs" 25087 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25088 25089 25090} # as_fn_mkdir_p 25091if mkdir -p . 2>/dev/null; then 25092 as_mkdir_p='mkdir -p "$as_dir"' 25093else 25094 test -d ./-p && rmdir ./-p 25095 as_mkdir_p=false 25096fi 25097 25098 25099# as_fn_executable_p FILE 25100# ----------------------- 25101# Test if FILE is an executable regular file. 25102as_fn_executable_p () 25103{ 25104 test -f "$1" && test -x "$1" 25105} # as_fn_executable_p 25106as_test_x='test -x' 25107as_executable_p=as_fn_executable_p 25108 25109# Sed expression to map a string onto a valid CPP name. 25110as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 25111as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 25112 25113# Sed expression to map a string onto a valid variable name. 25114as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 25115as_tr_sh="eval sed '$as_sed_sh'" # deprecated 25116 25117 25118exec 6>&1 25119## ----------------------------------- ## 25120## Main body of $CONFIG_STATUS script. ## 25121## ----------------------------------- ## 25122_ASEOF 25123test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25124 25125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25126# Save the log message, to keep $0 and so on meaningful, and to 25127# report actual input values of CONFIG_FILES etc. instead of their 25128# values after options handling. 25129ac_log=" 25130This file was extended by xdm $as_me 1.1.16, which was 25131generated by GNU Autoconf 2.72. Invocation command line was 25132 25133 CONFIG_FILES = $CONFIG_FILES 25134 CONFIG_HEADERS = $CONFIG_HEADERS 25135 CONFIG_LINKS = $CONFIG_LINKS 25136 CONFIG_COMMANDS = $CONFIG_COMMANDS 25137 $ $0 $@ 25138 25139on `(hostname || uname -n) 2>/dev/null | sed 1q` 25140" 25141 25142_ACEOF 25143 25144case $ac_config_files in *" 25145"*) set x $ac_config_files; shift; ac_config_files=$*;; 25146esac 25147 25148case $ac_config_headers in *" 25149"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25150esac 25151 25152 25153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25154# Files that config.status was made for. 25155config_files="$ac_config_files" 25156config_headers="$ac_config_headers" 25157config_commands="$ac_config_commands" 25158 25159_ACEOF 25160 25161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25162ac_cs_usage="\ 25163'$as_me' instantiates files and other configuration actions 25164from templates according to the current configuration. Unless the files 25165and actions are specified as TAGs, all are instantiated by default. 25166 25167Usage: $0 [OPTION]... [TAG]... 25168 25169 -h, --help print this help, then exit 25170 -V, --version print version number and configuration settings, then exit 25171 --config print configuration, then exit 25172 -q, --quiet, --silent 25173 do not print progress messages 25174 -d, --debug don't remove temporary files 25175 --recheck update $as_me by reconfiguring in the same conditions 25176 --file=FILE[:TEMPLATE] 25177 instantiate the configuration file FILE 25178 --header=FILE[:TEMPLATE] 25179 instantiate the configuration header FILE 25180 25181Configuration files: 25182$config_files 25183 25184Configuration headers: 25185$config_headers 25186 25187Configuration commands: 25188$config_commands 25189 25190Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>." 25191 25192_ACEOF 25193ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 25194ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 25195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25196ac_cs_config='$ac_cs_config_escaped' 25197ac_cs_version="\\ 25198xdm config.status 1.1.16 25199configured by $0, generated by GNU Autoconf 2.72, 25200 with options \\"\$ac_cs_config\\" 25201 25202Copyright (C) 2023 Free Software Foundation, Inc. 25203This config.status script is free software; the Free Software Foundation 25204gives unlimited permission to copy, distribute and modify it." 25205 25206ac_pwd='$ac_pwd' 25207srcdir='$srcdir' 25208INSTALL='$INSTALL' 25209MKDIR_P='$MKDIR_P' 25210AWK='$AWK' 25211test -n "\$AWK" || AWK=awk 25212_ACEOF 25213 25214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25215# The default lists apply if the user does not specify any file. 25216ac_need_defaults=: 25217while test $# != 0 25218do 25219 case $1 in 25220 --*=?*) 25221 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25222 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25223 ac_shift=: 25224 ;; 25225 --*=) 25226 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25227 ac_optarg= 25228 ac_shift=: 25229 ;; 25230 *) 25231 ac_option=$1 25232 ac_optarg=$2 25233 ac_shift=shift 25234 ;; 25235 esac 25236 25237 case $ac_option in 25238 # Handling of the options. 25239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25240 ac_cs_recheck=: ;; 25241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25242 printf "%s\n" "$ac_cs_version"; exit ;; 25243 --config | --confi | --conf | --con | --co | --c ) 25244 printf "%s\n" "$ac_cs_config"; exit ;; 25245 --debug | --debu | --deb | --de | --d | -d ) 25246 debug=: ;; 25247 --file | --fil | --fi | --f ) 25248 $ac_shift 25249 case $ac_optarg in 25250 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25251 '') as_fn_error $? "missing file argument" ;; 25252 esac 25253 as_fn_append CONFIG_FILES " '$ac_optarg'" 25254 ac_need_defaults=false;; 25255 --header | --heade | --head | --hea ) 25256 $ac_shift 25257 case $ac_optarg in 25258 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25259 esac 25260 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25261 ac_need_defaults=false;; 25262 --he | --h) 25263 # Conflict between --help and --header 25264 as_fn_error $? "ambiguous option: '$1' 25265Try '$0 --help' for more information.";; 25266 --help | --hel | -h ) 25267 printf "%s\n" "$ac_cs_usage"; exit ;; 25268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25269 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25270 ac_cs_silent=: ;; 25271 25272 # This is an error. 25273 -*) as_fn_error $? "unrecognized option: '$1' 25274Try '$0 --help' for more information." ;; 25275 25276 *) as_fn_append ac_config_targets " $1" 25277 ac_need_defaults=false ;; 25278 25279 esac 25280 shift 25281done 25282 25283ac_configure_extra_args= 25284 25285if $ac_cs_silent; then 25286 exec 6>/dev/null 25287 ac_configure_extra_args="$ac_configure_extra_args --silent" 25288fi 25289 25290_ACEOF 25291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25292if \$ac_cs_recheck; then 25293 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25294 shift 25295 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 25296 CONFIG_SHELL='$SHELL' 25297 export CONFIG_SHELL 25298 exec "\$@" 25299fi 25300 25301_ACEOF 25302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25303exec 5>>config.log 25304{ 25305 echo 25306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25307## Running $as_me. ## 25308_ASBOX 25309 printf "%s\n" "$ac_log" 25310} >&5 25311 25312_ACEOF 25313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25314# 25315# INIT-COMMANDS 25316# 25317AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 25318 25319 25320# The HP-UX ksh and POSIX shell print the target directory to stdout 25321# if CDPATH is set. 25322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25323 25324sed_quote_subst='$sed_quote_subst' 25325double_quote_subst='$double_quote_subst' 25326delay_variable_subst='$delay_variable_subst' 25327macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25328macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25329enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25330enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25331pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25332enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25333shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25334SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25335ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25336PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25337host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25338host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25339host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25340build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25341build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25342build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25343SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25344Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25345GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25346EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25347FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25348LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25349NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25350LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25351max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25352ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25353exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25354lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25355lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25356lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25357lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25358lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25359reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25360reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25361FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 25362OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25363deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25364file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25365file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25366want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25367DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25368sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25369AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25370lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 25371AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25372archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25373STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25374RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25375old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25376old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25377old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25378lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25379CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25380CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25381compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25382GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25383lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25384lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25385lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 25386lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25387lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 25388lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 25389nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25390lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25391lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 25392objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25393MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25394lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25395lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25396lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25397lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25398lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25399need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25400MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25401DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25402NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25403LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25404OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25405OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25406libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25407shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25408extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25409archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25410enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25411export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25412whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25413compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25414old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25415old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25416archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25417archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25418module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25419module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25420with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25421allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25422no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25423hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25424hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25425hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25426hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25427hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25428hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25429hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25430inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25431link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25432always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25433export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25434exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25435include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25436prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25437postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25438file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25439variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25440need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25441need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25442version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25443runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25444shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25445shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25446libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25447library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25448soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25449install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25450postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25451postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25452finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25453finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25454hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25455sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25456configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25457configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25458hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25459enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25460enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25461enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25462old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25463striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25464 25465LTCC='$LTCC' 25466LTCFLAGS='$LTCFLAGS' 25467compiler='$compiler_DEFAULT' 25468 25469# A function that is used when there is no print builtin or printf. 25470func_fallback_echo () 25471{ 25472 eval 'cat <<_LTECHO_EOF 25473\$1 25474_LTECHO_EOF' 25475} 25476 25477# Quote evaled strings. 25478for var in SHELL \ 25479ECHO \ 25480PATH_SEPARATOR \ 25481SED \ 25482GREP \ 25483EGREP \ 25484FGREP \ 25485LD \ 25486NM \ 25487LN_S \ 25488lt_SP2NL \ 25489lt_NL2SP \ 25490reload_flag \ 25491FILECMD \ 25492OBJDUMP \ 25493deplibs_check_method \ 25494file_magic_cmd \ 25495file_magic_glob \ 25496want_nocaseglob \ 25497DLLTOOL \ 25498sharedlib_from_linklib_cmd \ 25499AR \ 25500archiver_list_spec \ 25501STRIP \ 25502RANLIB \ 25503CC \ 25504CFLAGS \ 25505compiler \ 25506lt_cv_sys_global_symbol_pipe \ 25507lt_cv_sys_global_symbol_to_cdecl \ 25508lt_cv_sys_global_symbol_to_import \ 25509lt_cv_sys_global_symbol_to_c_name_address \ 25510lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25511lt_cv_nm_interface \ 25512nm_file_list_spec \ 25513lt_cv_truncate_bin \ 25514lt_prog_compiler_no_builtin_flag \ 25515lt_prog_compiler_pic \ 25516lt_prog_compiler_wl \ 25517lt_prog_compiler_static \ 25518lt_cv_prog_compiler_c_o \ 25519need_locks \ 25520MANIFEST_TOOL \ 25521DSYMUTIL \ 25522NMEDIT \ 25523LIPO \ 25524OTOOL \ 25525OTOOL64 \ 25526shrext_cmds \ 25527export_dynamic_flag_spec \ 25528whole_archive_flag_spec \ 25529compiler_needs_object \ 25530with_gnu_ld \ 25531allow_undefined_flag \ 25532no_undefined_flag \ 25533hardcode_libdir_flag_spec \ 25534hardcode_libdir_separator \ 25535exclude_expsyms \ 25536include_expsyms \ 25537file_list_spec \ 25538variables_saved_for_relink \ 25539libname_spec \ 25540library_names_spec \ 25541soname_spec \ 25542install_override_mode \ 25543finish_eval \ 25544old_striplib \ 25545striplib; do 25546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25547 *[\\\\\\\`\\"\\\$]*) 25548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25549 ;; 25550 *) 25551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25552 ;; 25553 esac 25554done 25555 25556# Double-quote double-evaled strings. 25557for var in reload_cmds \ 25558old_postinstall_cmds \ 25559old_postuninstall_cmds \ 25560old_archive_cmds \ 25561extract_expsyms_cmds \ 25562old_archive_from_new_cmds \ 25563old_archive_from_expsyms_cmds \ 25564archive_cmds \ 25565archive_expsym_cmds \ 25566module_cmds \ 25567module_expsym_cmds \ 25568export_symbols_cmds \ 25569prelink_cmds \ 25570postlink_cmds \ 25571postinstall_cmds \ 25572postuninstall_cmds \ 25573finish_cmds \ 25574sys_lib_search_path_spec \ 25575configure_time_dlsearch_path \ 25576configure_time_lt_sys_library_path; do 25577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25578 *[\\\\\\\`\\"\\\$]*) 25579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25580 ;; 25581 *) 25582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25583 ;; 25584 esac 25585done 25586 25587ac_aux_dir='$ac_aux_dir' 25588 25589# See if we are running on zsh, and set the options that allow our 25590# commands through without removal of \ escapes INIT. 25591if test -n "\${ZSH_VERSION+set}"; then 25592 setopt NO_GLOB_SUBST 25593fi 25594 25595 25596 PACKAGE='$PACKAGE' 25597 VERSION='$VERSION' 25598 RM='$RM' 25599 ofile='$ofile' 25600 25601 25602 25603 25604_ACEOF 25605 25606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25607 25608# Handling of arguments. 25609for ac_config_target in $ac_config_targets 25610do 25611 case $ac_config_target in 25612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25614 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25616 "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;; 25617 "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;; 25618 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 25619 "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;; 25620 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 25621 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 25622 "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;; 25623 "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;; 25624 25625 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 25626 esac 25627done 25628 25629 25630# If the user did not use the arguments to specify the items to instantiate, 25631# then the envvar interface is used. Set only those that are not. 25632# We use the long form for the default assignment because of an extremely 25633# bizarre bug on SunOS 4.1.3. 25634if $ac_need_defaults; then 25635 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 25636 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 25637 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 25638fi 25639 25640# Have a temporary directory for convenience. Make it in the build tree 25641# simply because there is no reason against having it here, and in addition, 25642# creating and moving files from /tmp can sometimes cause problems. 25643# Hook for its removal unless debugging. 25644# Note that there is a small window in which the directory will not be cleaned: 25645# after its creation but before its name has been assigned to '$tmp'. 25646$debug || 25647{ 25648 tmp= ac_tmp= 25649 trap 'exit_status=$? 25650 : "${ac_tmp:=$tmp}" 25651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25652' 0 25653 trap 'as_fn_exit 1' 1 2 13 15 25654} 25655# Create a (secure) tmp directory for tmp files. 25656 25657{ 25658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25659 test -d "$tmp" 25660} || 25661{ 25662 tmp=./conf$$-$RANDOM 25663 (umask 077 && mkdir "$tmp") 25664} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25665ac_tmp=$tmp 25666 25667# Set up the scripts for CONFIG_FILES section. 25668# No need to generate them if there are no CONFIG_FILES. 25669# This happens for instance with './config.status config.h'. 25670if test -n "$CONFIG_FILES"; then 25671 25672 25673ac_cr=`echo X | tr X '\015'` 25674# On cygwin, bash can eat \r inside `` if the user requested igncr. 25675# But we know of no other shell where ac_cr would be empty at this 25676# point, so we can use a bashism as a fallback. 25677if test "x$ac_cr" = x; then 25678 eval ac_cr=\$\'\\r\' 25679fi 25680ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25681if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25682 ac_cs_awk_cr='\\r' 25683else 25684 ac_cs_awk_cr=$ac_cr 25685fi 25686 25687echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25688_ACEOF 25689 25690 25691{ 25692 echo "cat >conf$$subs.awk <<_ACEOF" && 25693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25694 echo "_ACEOF" 25695} >conf$$subs.sh || 25696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25697ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25698ac_delim='%!_!# ' 25699for ac_last_try in false false false false false :; do 25700 . ./conf$$subs.sh || 25701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25702 25703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25704 if test $ac_delim_n = $ac_delim_num; then 25705 break 25706 elif $ac_last_try; then 25707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25708 else 25709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25710 fi 25711done 25712rm -f conf$$subs.sh 25713 25714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25715cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25716_ACEOF 25717sed -n ' 25718h 25719s/^/S["/; s/!.*/"]=/ 25720p 25721g 25722s/^[^!]*!// 25723:repl 25724t repl 25725s/'"$ac_delim"'$// 25726t delim 25727:nl 25728h 25729s/\(.\{148\}\)..*/\1/ 25730t more1 25731s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25732p 25733n 25734b repl 25735:more1 25736s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25737p 25738g 25739s/.\{148\}// 25740t nl 25741:delim 25742h 25743s/\(.\{148\}\)..*/\1/ 25744t more2 25745s/["\\]/\\&/g; s/^/"/; s/$/"/ 25746p 25747b 25748:more2 25749s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25750p 25751g 25752s/.\{148\}// 25753t delim 25754' <conf$$subs.awk | sed ' 25755/^[^""]/{ 25756 N 25757 s/\n// 25758} 25759' >>$CONFIG_STATUS || ac_write_fail=1 25760rm -f conf$$subs.awk 25761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25762_ACAWK 25763cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25764 for (key in S) S_is_set[key] = 1 25765 FS = "" 25766 25767} 25768{ 25769 line = $ 0 25770 nfields = split(line, field, "@") 25771 substed = 0 25772 len = length(field[1]) 25773 for (i = 2; i < nfields; i++) { 25774 key = field[i] 25775 keylen = length(key) 25776 if (S_is_set[key]) { 25777 value = S[key] 25778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25779 len += length(value) + length(field[++i]) 25780 substed = 1 25781 } else 25782 len += 1 + keylen 25783 } 25784 25785 print line 25786} 25787 25788_ACAWK 25789_ACEOF 25790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25791if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25793else 25794 cat 25795fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25797_ACEOF 25798 25799# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25800# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25801# trailing colons and then remove the whole line if VPATH becomes empty 25802# (actually we leave an empty line to preserve line numbers). 25803if test "x$srcdir" = x.; then 25804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25805h 25806s/// 25807s/^/:/ 25808s/[ ]*$/:/ 25809s/:\$(srcdir):/:/g 25810s/:\${srcdir}:/:/g 25811s/:@srcdir@:/:/g 25812s/^:*// 25813s/:*$// 25814x 25815s/\(=[ ]*\).*/\1/ 25816G 25817s/\n// 25818s/^[^=]*=[ ]*$// 25819}' 25820fi 25821 25822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25823fi # test -n "$CONFIG_FILES" 25824 25825# Set up the scripts for CONFIG_HEADERS section. 25826# No need to generate them if there are no CONFIG_HEADERS. 25827# This happens for instance with './config.status Makefile'. 25828if test -n "$CONFIG_HEADERS"; then 25829cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25830BEGIN { 25831_ACEOF 25832 25833# Transform confdefs.h into an awk script 'defines.awk', embedded as 25834# here-document in config.status, that substitutes the proper values into 25835# config.h.in to produce config.h. 25836 25837# Create a delimiter string that does not exist in confdefs.h, to ease 25838# handling of long lines. 25839ac_delim='%!_!# ' 25840for ac_last_try in false false :; do 25841 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25842 if test -z "$ac_tt"; then 25843 break 25844 elif $ac_last_try; then 25845 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25846 else 25847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25848 fi 25849done 25850 25851# For the awk script, D is an array of macro values keyed by name, 25852# likewise P contains macro parameters if any. Preserve backslash 25853# newline sequences. 25854 25855ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25856sed -n ' 25857s/.\{148\}/&'"$ac_delim"'/g 25858t rset 25859:rset 25860s/^[ ]*#[ ]*define[ ][ ]*/ / 25861t def 25862d 25863:def 25864s/\\$// 25865t bsnl 25866s/["\\]/\\&/g 25867s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25868D["\1"]=" \3"/p 25869s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25870d 25871:bsnl 25872s/["\\]/\\&/g 25873s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25874D["\1"]=" \3\\\\\\n"\\/p 25875t cont 25876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25877t cont 25878d 25879:cont 25880n 25881s/.\{148\}/&'"$ac_delim"'/g 25882t clear 25883:clear 25884s/\\$// 25885t bsnlc 25886s/["\\]/\\&/g; s/^/"/; s/$/"/p 25887d 25888:bsnlc 25889s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25890b cont 25891' <confdefs.h | sed ' 25892s/'"$ac_delim"'/"\\\ 25893"/g' >>$CONFIG_STATUS || ac_write_fail=1 25894 25895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25896 for (key in D) D_is_set[key] = 1 25897 FS = "" 25898} 25899/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25900 line = \$ 0 25901 split(line, arg, " ") 25902 if (arg[1] == "#") { 25903 defundef = arg[2] 25904 mac1 = arg[3] 25905 } else { 25906 defundef = substr(arg[1], 2) 25907 mac1 = arg[2] 25908 } 25909 split(mac1, mac2, "(") #) 25910 macro = mac2[1] 25911 prefix = substr(line, 1, index(line, defundef) - 1) 25912 if (D_is_set[macro]) { 25913 # Preserve the white space surrounding the "#". 25914 print prefix "define", macro P[macro] D[macro] 25915 next 25916 } else { 25917 # Replace #undef with comments. This is necessary, for example, 25918 # in the case of _POSIX_SOURCE, which is predefined and required 25919 # on some systems where configure will not decide to define it. 25920 if (defundef == "undef") { 25921 print "/*", prefix defundef, macro, "*/" 25922 next 25923 } 25924 } 25925} 25926{ print } 25927_ACAWK 25928_ACEOF 25929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25930 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25931fi # test -n "$CONFIG_HEADERS" 25932 25933 25934eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25935shift 25936for ac_tag 25937do 25938 case $ac_tag in 25939 :[FHLC]) ac_mode=$ac_tag; continue;; 25940 esac 25941 case $ac_mode$ac_tag in 25942 :[FHL]*:*);; 25943 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 25944 :[FH]-) ac_tag=-:-;; 25945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25946 esac 25947 ac_save_IFS=$IFS 25948 IFS=: 25949 set x $ac_tag 25950 IFS=$ac_save_IFS 25951 shift 25952 ac_file=$1 25953 shift 25954 25955 case $ac_mode in 25956 :L) ac_source=$1;; 25957 :[FH]) 25958 ac_file_inputs= 25959 for ac_f 25960 do 25961 case $ac_f in 25962 -) ac_f="$ac_tmp/stdin";; 25963 *) # Look for the file first in the build tree, then in the source tree 25964 # (if the path is not absolute). The absolute path cannot be DOS-style, 25965 # because $ac_f cannot contain ':'. 25966 test -f "$ac_f" || 25967 case $ac_f in 25968 [\\/$]*) false;; 25969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25970 esac || 25971 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 25972 esac 25973 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25974 as_fn_append ac_file_inputs " '$ac_f'" 25975 done 25976 25977 # Let's still pretend it is 'configure' which instantiates (i.e., don't 25978 # use $as_me), people would be surprised to read: 25979 # /* config.h. Generated by config.status. */ 25980 configure_input='Generated from '` 25981 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25982 `' by configure.' 25983 if test x"$ac_file" != x-; then 25984 configure_input="$ac_file. $configure_input" 25985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25986printf "%s\n" "$as_me: creating $ac_file" >&6;} 25987 fi 25988 # Neutralize special characters interpreted by sed in replacement strings. 25989 case $configure_input in #( 25990 *\&* | *\|* | *\\* ) 25991 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 25992 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25993 *) ac_sed_conf_input=$configure_input;; 25994 esac 25995 25996 case $ac_tag in 25997 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25999 esac 26000 ;; 26001 esac 26002 26003 ac_dir=`$as_dirname -- "$ac_file" || 26004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26005 X"$ac_file" : 'X\(//\)[^/]' \| \ 26006 X"$ac_file" : 'X\(//\)$' \| \ 26007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26008printf "%s\n" X"$ac_file" | 26009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26010 s//\1/ 26011 q 26012 } 26013 /^X\(\/\/\)[^/].*/{ 26014 s//\1/ 26015 q 26016 } 26017 /^X\(\/\/\)$/{ 26018 s//\1/ 26019 q 26020 } 26021 /^X\(\/\).*/{ 26022 s//\1/ 26023 q 26024 } 26025 s/.*/./; q'` 26026 as_dir="$ac_dir"; as_fn_mkdir_p 26027 ac_builddir=. 26028 26029case "$ac_dir" in 26030.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26031*) 26032 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 26033 # A ".." for each directory in $ac_dir_suffix. 26034 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26035 case $ac_top_builddir_sub in 26036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26038 esac ;; 26039esac 26040ac_abs_top_builddir=$ac_pwd 26041ac_abs_builddir=$ac_pwd$ac_dir_suffix 26042# for backward compatibility: 26043ac_top_builddir=$ac_top_build_prefix 26044 26045case $srcdir in 26046 .) # We are building in place. 26047 ac_srcdir=. 26048 ac_top_srcdir=$ac_top_builddir_sub 26049 ac_abs_top_srcdir=$ac_pwd ;; 26050 [\\/]* | ?:[\\/]* ) # Absolute name. 26051 ac_srcdir=$srcdir$ac_dir_suffix; 26052 ac_top_srcdir=$srcdir 26053 ac_abs_top_srcdir=$srcdir ;; 26054 *) # Relative name. 26055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26056 ac_top_srcdir=$ac_top_build_prefix$srcdir 26057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26058esac 26059ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26060 26061 26062 case $ac_mode in 26063 :F) 26064 # 26065 # CONFIG_FILE 26066 # 26067 26068 case $INSTALL in 26069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26071 esac 26072 ac_MKDIR_P=$MKDIR_P 26073 case $MKDIR_P in 26074 [\\/$]* | ?:[\\/]* ) ;; 26075 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26076 esac 26077_ACEOF 26078 26079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26080# If the template does not know about datarootdir, expand it. 26081# FIXME: This hack should be removed a few years after 2.60. 26082ac_datarootdir_hack=; ac_datarootdir_seen= 26083ac_sed_dataroot=' 26084/datarootdir/ { 26085 p 26086 q 26087} 26088/@datadir@/p 26089/@docdir@/p 26090/@infodir@/p 26091/@localedir@/p 26092/@mandir@/p' 26093case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26094*datarootdir*) ac_datarootdir_seen=yes;; 26095*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26097printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26098_ACEOF 26099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26100 ac_datarootdir_hack=' 26101 s&@datadir@&$datadir&g 26102 s&@docdir@&$docdir&g 26103 s&@infodir@&$infodir&g 26104 s&@localedir@&$localedir&g 26105 s&@mandir@&$mandir&g 26106 s&\\\${datarootdir}&$datarootdir&g' ;; 26107esac 26108_ACEOF 26109 26110# Neutralize VPATH when '$srcdir' = '.'. 26111# Shell code in configure.ac might set extrasub. 26112# FIXME: do we really want to maintain this feature? 26113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26114ac_sed_extra="$ac_vpsub 26115$extrasub 26116_ACEOF 26117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26118:t 26119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26120s|@configure_input@|$ac_sed_conf_input|;t t 26121s&@top_builddir@&$ac_top_builddir_sub&;t t 26122s&@top_build_prefix@&$ac_top_build_prefix&;t t 26123s&@srcdir@&$ac_srcdir&;t t 26124s&@abs_srcdir@&$ac_abs_srcdir&;t t 26125s&@top_srcdir@&$ac_top_srcdir&;t t 26126s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26127s&@builddir@&$ac_builddir&;t t 26128s&@abs_builddir@&$ac_abs_builddir&;t t 26129s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26130s&@INSTALL@&$ac_INSTALL&;t t 26131s&@MKDIR_P@&$ac_MKDIR_P&;t t 26132$ac_datarootdir_hack 26133" 26134eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26135 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26136 26137test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26140 "$ac_tmp/out"`; test -z "$ac_out"; } && 26141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 26142which seems to be undefined. Please make sure it is defined" >&5 26143printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 26144which seems to be undefined. Please make sure it is defined" >&2;} 26145 26146 rm -f "$ac_tmp/stdin" 26147 case $ac_file in 26148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26150 esac \ 26151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26152 ;; 26153 :H) 26154 # 26155 # CONFIG_HEADER 26156 # 26157 if test x"$ac_file" != x-; then 26158 { 26159 printf "%s\n" "/* $configure_input */" >&1 \ 26160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26161 } >"$ac_tmp/config.h" \ 26162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26165printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 26166 else 26167 rm -f "$ac_file" 26168 mv "$ac_tmp/config.h" "$ac_file" \ 26169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26170 fi 26171 else 26172 printf "%s\n" "/* $configure_input */" >&1 \ 26173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26174 || as_fn_error $? "could not create -" "$LINENO" 5 26175 fi 26176# Compute "$ac_file"'s index in $config_headers. 26177_am_arg="$ac_file" 26178_am_stamp_count=1 26179for _am_header in $config_headers :; do 26180 case $_am_header in 26181 $_am_arg | $_am_arg:* ) 26182 break ;; 26183 * ) 26184 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26185 esac 26186done 26187echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26188$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26189 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26190 X"$_am_arg" : 'X\(//\)$' \| \ 26191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26192printf "%s\n" X"$_am_arg" | 26193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26194 s//\1/ 26195 q 26196 } 26197 /^X\(\/\/\)[^/].*/{ 26198 s//\1/ 26199 q 26200 } 26201 /^X\(\/\/\)$/{ 26202 s//\1/ 26203 q 26204 } 26205 /^X\(\/\).*/{ 26206 s//\1/ 26207 q 26208 } 26209 s/.*/./; q'`/stamp-h$_am_stamp_count 26210 ;; 26211 26212 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26213printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 26214 ;; 26215 esac 26216 26217 26218 case $ac_file$ac_mode in 26219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26220 # Older Autoconf quotes --file arguments for eval, but not when files 26221 # are listed without --file. Let's play safe and only enable the eval 26222 # if we detect the quoting. 26223 # TODO: see whether this extra hack can be removed once we start 26224 # requiring Autoconf 2.70 or later. 26225 case $CONFIG_FILES in #( 26226 *\'*) : 26227 eval set x "$CONFIG_FILES" ;; #( 26228 *) : 26229 set x $CONFIG_FILES ;; #( 26230 *) : 26231 ;; 26232esac 26233 shift 26234 # Used to flag and report bootstrapping failures. 26235 am_rc=0 26236 for am_mf 26237 do 26238 # Strip MF so we end up with the name of the file. 26239 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 26240 # Check whether this is an Automake generated Makefile which includes 26241 # dependency-tracking related rules and includes. 26242 # Grep'ing the whole file directly is not great: AIX grep has a line 26243 # limit of 2048, but all sed's we know have understand at least 4000. 26244 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 26245 || continue 26246 am_dirpart=`$as_dirname -- "$am_mf" || 26247$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26248 X"$am_mf" : 'X\(//\)[^/]' \| \ 26249 X"$am_mf" : 'X\(//\)$' \| \ 26250 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 26251printf "%s\n" X"$am_mf" | 26252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26253 s//\1/ 26254 q 26255 } 26256 /^X\(\/\/\)[^/].*/{ 26257 s//\1/ 26258 q 26259 } 26260 /^X\(\/\/\)$/{ 26261 s//\1/ 26262 q 26263 } 26264 /^X\(\/\).*/{ 26265 s//\1/ 26266 q 26267 } 26268 s/.*/./; q'` 26269 am_filepart=`$as_basename -- "$am_mf" || 26270$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 26271 X"$am_mf" : 'X\(//\)$' \| \ 26272 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 26273printf "%s\n" X/"$am_mf" | 26274 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26275 s//\1/ 26276 q 26277 } 26278 /^X\/\(\/\/\)$/{ 26279 s//\1/ 26280 q 26281 } 26282 /^X\/\(\/\).*/{ 26283 s//\1/ 26284 q 26285 } 26286 s/.*/./; q'` 26287 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 26288 && sed -e '/# am--include-marker/d' "$am_filepart" \ 26289 | $MAKE -f - am--depfiles" >&5 26290 (cd "$am_dirpart" \ 26291 && sed -e '/# am--include-marker/d' "$am_filepart" \ 26292 | $MAKE -f - am--depfiles) >&5 2>&5 26293 ac_status=$? 26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26295 (exit $ac_status); } || am_rc=$? 26296 done 26297 if test $am_rc -ne 0; then 26298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26299printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26300as_fn_error $? "Something went wrong bootstrapping makefile fragments 26301 for automatic dependency tracking. If GNU make was not used, consider 26302 re-running the configure script with MAKE=\"gmake\" (or whatever is 26303 necessary). You can also try re-running configure with the 26304 '--disable-dependency-tracking' option to at least be able to build 26305 the package (albeit without support for automatic dependency tracking). 26306See 'config.log' for more details" "$LINENO" 5; } 26307 fi 26308 { am_dirpart=; unset am_dirpart;} 26309 { am_filepart=; unset am_filepart;} 26310 { am_mf=; unset am_mf;} 26311 { am_rc=; unset am_rc;} 26312 rm -f conftest-deps.mk 26313} 26314 ;; 26315 "libtool":C) 26316 26317 # See if we are running on zsh, and set the options that allow our 26318 # commands through without removal of \ escapes. 26319 if test -n "${ZSH_VERSION+set}"; then 26320 setopt NO_GLOB_SUBST 26321 fi 26322 26323 cfgfile=${ofile}T 26324 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26325 $RM "$cfgfile" 26326 26327 cat <<_LT_EOF >> "$cfgfile" 26328#! $SHELL 26329# Generated automatically by $as_me ($PACKAGE) $VERSION 26330# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26331# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26332 26333# Provide generalized library-building support services. 26334# Written by Gordon Matzigkeit, 1996 26335 26336# Copyright (C) 2014 Free Software Foundation, Inc. 26337# This is free software; see the source for copying conditions. There is NO 26338# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 26339 26340# GNU Libtool is free software; you can redistribute it and/or modify 26341# it under the terms of the GNU General Public License as published by 26342# the Free Software Foundation; either version 2 of of the License, or 26343# (at your option) any later version. 26344# 26345# As a special exception to the GNU General Public License, if you 26346# distribute this file as part of a program or library that is built 26347# using GNU Libtool, you may include this file under the same 26348# distribution terms that you use for the rest of that program. 26349# 26350# GNU Libtool is distributed in the hope that it will be useful, but 26351# WITHOUT ANY WARRANTY; without even the implied warranty of 26352# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26353# GNU General Public License for more details. 26354# 26355# You should have received a copy of the GNU General Public License 26356# along with this program. If not, see <http://www.gnu.org/licenses/>. 26357 26358 26359# The names of the tagged configurations supported by this script. 26360available_tags='' 26361 26362# Configured defaults for sys_lib_dlsearch_path munging. 26363: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 26364 26365# ### BEGIN LIBTOOL CONFIG 26366 26367# Which release of libtool.m4 was used? 26368macro_version=$macro_version 26369macro_revision=$macro_revision 26370 26371# Whether or not to build static libraries. 26372build_old_libs=$enable_static 26373 26374# Whether or not to build shared libraries. 26375build_libtool_libs=$enable_shared 26376 26377# What type of objects to build. 26378pic_mode=$pic_mode 26379 26380# Whether or not to optimize for fast installation. 26381fast_install=$enable_fast_install 26382 26383# Shared archive member basename,for filename based shared library versioning on AIX. 26384shared_archive_member_spec=$shared_archive_member_spec 26385 26386# Shell to use when invoking shell scripts. 26387SHELL=$lt_SHELL 26388 26389# An echo program that protects backslashes. 26390ECHO=$lt_ECHO 26391 26392# The PATH separator for the build system. 26393PATH_SEPARATOR=$lt_PATH_SEPARATOR 26394 26395# The host system. 26396host_alias=$host_alias 26397host=$host 26398host_os=$host_os 26399 26400# The build system. 26401build_alias=$build_alias 26402build=$build 26403build_os=$build_os 26404 26405# A sed program that does not truncate output. 26406SED=$lt_SED 26407 26408# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26409Xsed="\$SED -e 1s/^X//" 26410 26411# A grep program that handles long lines. 26412GREP=$lt_GREP 26413 26414# An ERE matcher. 26415EGREP=$lt_EGREP 26416 26417# A literal string matcher. 26418FGREP=$lt_FGREP 26419 26420# A BSD- or MS-compatible name lister. 26421NM=$lt_NM 26422 26423# Whether we need soft or hard links. 26424LN_S=$lt_LN_S 26425 26426# What is the maximum length of a command? 26427max_cmd_len=$max_cmd_len 26428 26429# Object file suffix (normally "o"). 26430objext=$ac_objext 26431 26432# Executable file suffix (normally ""). 26433exeext=$exeext 26434 26435# whether the shell understands "unset". 26436lt_unset=$lt_unset 26437 26438# turn spaces into newlines. 26439SP2NL=$lt_lt_SP2NL 26440 26441# turn newlines into spaces. 26442NL2SP=$lt_lt_NL2SP 26443 26444# convert \$build file names to \$host format. 26445to_host_file_cmd=$lt_cv_to_host_file_cmd 26446 26447# convert \$build files to toolchain format. 26448to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26449 26450# A file(cmd) program that detects file types. 26451FILECMD=$lt_FILECMD 26452 26453# An object symbol dumper. 26454OBJDUMP=$lt_OBJDUMP 26455 26456# Method to check whether dependent libraries are shared objects. 26457deplibs_check_method=$lt_deplibs_check_method 26458 26459# Command to use when deplibs_check_method = "file_magic". 26460file_magic_cmd=$lt_file_magic_cmd 26461 26462# How to find potential files when deplibs_check_method = "file_magic". 26463file_magic_glob=$lt_file_magic_glob 26464 26465# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26466want_nocaseglob=$lt_want_nocaseglob 26467 26468# DLL creation program. 26469DLLTOOL=$lt_DLLTOOL 26470 26471# Command to associate shared and link libraries. 26472sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26473 26474# The archiver. 26475AR=$lt_AR 26476 26477# Flags to create an archive (by configure). 26478lt_ar_flags=$lt_ar_flags 26479 26480# Flags to create an archive. 26481AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 26482 26483# How to feed a file listing to the archiver. 26484archiver_list_spec=$lt_archiver_list_spec 26485 26486# A symbol stripping program. 26487STRIP=$lt_STRIP 26488 26489# Commands used to install an old-style archive. 26490RANLIB=$lt_RANLIB 26491old_postinstall_cmds=$lt_old_postinstall_cmds 26492old_postuninstall_cmds=$lt_old_postuninstall_cmds 26493 26494# Whether to use a lock for old archive extraction. 26495lock_old_archive_extraction=$lock_old_archive_extraction 26496 26497# A C compiler. 26498LTCC=$lt_CC 26499 26500# LTCC compiler flags. 26501LTCFLAGS=$lt_CFLAGS 26502 26503# Take the output of nm and produce a listing of raw symbols and C names. 26504global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26505 26506# Transform the output of nm in a proper C declaration. 26507global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26508 26509# Transform the output of nm into a list of symbols to manually relocate. 26510global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 26511 26512# Transform the output of nm in a C name address pair. 26513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26514 26515# Transform the output of nm in a C name address pair when lib prefix is needed. 26516global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26517 26518# The name lister interface. 26519nm_interface=$lt_lt_cv_nm_interface 26520 26521# Specify filename containing input files for \$NM. 26522nm_file_list_spec=$lt_nm_file_list_spec 26523 26524# The root where to search for dependent libraries,and where our libraries should be installed. 26525lt_sysroot=$lt_sysroot 26526 26527# Command to truncate a binary pipe. 26528lt_truncate_bin=$lt_lt_cv_truncate_bin 26529 26530# The name of the directory that contains temporary libtool files. 26531objdir=$objdir 26532 26533# Used to examine libraries when file_magic_cmd begins with "file". 26534MAGIC_CMD=$MAGIC_CMD 26535 26536# Must we lock files when doing compilation? 26537need_locks=$lt_need_locks 26538 26539# Manifest tool. 26540MANIFEST_TOOL=$lt_MANIFEST_TOOL 26541 26542# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26543DSYMUTIL=$lt_DSYMUTIL 26544 26545# Tool to change global to local symbols on Mac OS X. 26546NMEDIT=$lt_NMEDIT 26547 26548# Tool to manipulate fat objects and archives on Mac OS X. 26549LIPO=$lt_LIPO 26550 26551# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26552OTOOL=$lt_OTOOL 26553 26554# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26555OTOOL64=$lt_OTOOL64 26556 26557# Old archive suffix (normally "a"). 26558libext=$libext 26559 26560# Shared library suffix (normally ".so"). 26561shrext_cmds=$lt_shrext_cmds 26562 26563# The commands to extract the exported symbol list from a shared archive. 26564extract_expsyms_cmds=$lt_extract_expsyms_cmds 26565 26566# Variables whose values should be saved in libtool wrapper scripts and 26567# restored at link time. 26568variables_saved_for_relink=$lt_variables_saved_for_relink 26569 26570# Do we need the "lib" prefix for modules? 26571need_lib_prefix=$need_lib_prefix 26572 26573# Do we need a version for libraries? 26574need_version=$need_version 26575 26576# Library versioning type. 26577version_type=$version_type 26578 26579# Shared library runtime path variable. 26580runpath_var=$runpath_var 26581 26582# Shared library path variable. 26583shlibpath_var=$shlibpath_var 26584 26585# Is shlibpath searched before the hard-coded library search path? 26586shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26587 26588# Format of library name prefix. 26589libname_spec=$lt_libname_spec 26590 26591# List of archive names. First name is the real one, the rest are links. 26592# The last name is the one that the linker finds with -lNAME 26593library_names_spec=$lt_library_names_spec 26594 26595# The coded name of the library, if different from the real name. 26596soname_spec=$lt_soname_spec 26597 26598# Permission mode override for installation of shared libraries. 26599install_override_mode=$lt_install_override_mode 26600 26601# Command to use after installation of a shared archive. 26602postinstall_cmds=$lt_postinstall_cmds 26603 26604# Command to use after uninstallation of a shared archive. 26605postuninstall_cmds=$lt_postuninstall_cmds 26606 26607# Commands used to finish a libtool library installation in a directory. 26608finish_cmds=$lt_finish_cmds 26609 26610# As "finish_cmds", except a single script fragment to be evaled but 26611# not shown. 26612finish_eval=$lt_finish_eval 26613 26614# Whether we should hardcode library paths into libraries. 26615hardcode_into_libs=$hardcode_into_libs 26616 26617# Compile-time system search path for libraries. 26618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26619 26620# Detected run-time system search path for libraries. 26621sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 26622 26623# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 26624configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 26625 26626# Whether dlopen is supported. 26627dlopen_support=$enable_dlopen 26628 26629# Whether dlopen of programs is supported. 26630dlopen_self=$enable_dlopen_self 26631 26632# Whether dlopen of statically linked programs is supported. 26633dlopen_self_static=$enable_dlopen_self_static 26634 26635# Commands to strip libraries. 26636old_striplib=$lt_old_striplib 26637striplib=$lt_striplib 26638 26639 26640# The linker used to build libraries. 26641LD=$lt_LD 26642 26643# How to create reloadable object files. 26644reload_flag=$lt_reload_flag 26645reload_cmds=$lt_reload_cmds 26646 26647# Commands used to build an old-style archive. 26648old_archive_cmds=$lt_old_archive_cmds 26649 26650# A language specific compiler. 26651CC=$lt_compiler 26652 26653# Is the compiler the GNU compiler? 26654with_gcc=$GCC 26655 26656# Compiler flag to turn off builtin functions. 26657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26658 26659# Additional compiler flags for building library objects. 26660pic_flag=$lt_lt_prog_compiler_pic 26661 26662# How to pass a linker flag through the compiler. 26663wl=$lt_lt_prog_compiler_wl 26664 26665# Compiler flag to prevent dynamic linking. 26666link_static_flag=$lt_lt_prog_compiler_static 26667 26668# Does compiler simultaneously support -c and -o options? 26669compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26670 26671# Whether or not to add -lc for building shared libraries. 26672build_libtool_need_lc=$archive_cmds_need_lc 26673 26674# Whether or not to disallow shared libs when runtime libs are static. 26675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26676 26677# Compiler flag to allow reflexive dlopens. 26678export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26679 26680# Compiler flag to generate shared objects directly from archives. 26681whole_archive_flag_spec=$lt_whole_archive_flag_spec 26682 26683# Whether the compiler copes with passing no objects directly. 26684compiler_needs_object=$lt_compiler_needs_object 26685 26686# Create an old-style archive from a shared archive. 26687old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26688 26689# Create a temporary old-style archive to link instead of a shared archive. 26690old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26691 26692# Commands used to build a shared archive. 26693archive_cmds=$lt_archive_cmds 26694archive_expsym_cmds=$lt_archive_expsym_cmds 26695 26696# Commands used to build a loadable module if different from building 26697# a shared archive. 26698module_cmds=$lt_module_cmds 26699module_expsym_cmds=$lt_module_expsym_cmds 26700 26701# Whether we are building with GNU ld or not. 26702with_gnu_ld=$lt_with_gnu_ld 26703 26704# Flag that allows shared libraries with undefined symbols to be built. 26705allow_undefined_flag=$lt_allow_undefined_flag 26706 26707# Flag that enforces no undefined symbols. 26708no_undefined_flag=$lt_no_undefined_flag 26709 26710# Flag to hardcode \$libdir into a binary during linking. 26711# This must work even if \$libdir does not exist 26712hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26713 26714# Whether we need a single "-rpath" flag with a separated argument. 26715hardcode_libdir_separator=$lt_hardcode_libdir_separator 26716 26717# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26718# DIR into the resulting binary. 26719hardcode_direct=$hardcode_direct 26720 26721# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26722# DIR into the resulting binary and the resulting library dependency is 26723# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26724# library is relocated. 26725hardcode_direct_absolute=$hardcode_direct_absolute 26726 26727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26728# into the resulting binary. 26729hardcode_minus_L=$hardcode_minus_L 26730 26731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26732# into the resulting binary. 26733hardcode_shlibpath_var=$hardcode_shlibpath_var 26734 26735# Set to "yes" if building a shared library automatically hardcodes DIR 26736# into the library and all subsequent libraries and executables linked 26737# against it. 26738hardcode_automatic=$hardcode_automatic 26739 26740# Set to yes if linker adds runtime paths of dependent libraries 26741# to runtime path list. 26742inherit_rpath=$inherit_rpath 26743 26744# Whether libtool must link a program against all its dependency libraries. 26745link_all_deplibs=$link_all_deplibs 26746 26747# Set to "yes" if exported symbols are required. 26748always_export_symbols=$always_export_symbols 26749 26750# The commands to list exported symbols. 26751export_symbols_cmds=$lt_export_symbols_cmds 26752 26753# Symbols that should not be listed in the preloaded symbols. 26754exclude_expsyms=$lt_exclude_expsyms 26755 26756# Symbols that must always be exported. 26757include_expsyms=$lt_include_expsyms 26758 26759# Commands necessary for linking programs (against libraries) with templates. 26760prelink_cmds=$lt_prelink_cmds 26761 26762# Commands necessary for finishing linking programs. 26763postlink_cmds=$lt_postlink_cmds 26764 26765# Specify filename containing input files. 26766file_list_spec=$lt_file_list_spec 26767 26768# How to hardcode a shared library path into an executable. 26769hardcode_action=$hardcode_action 26770 26771# ### END LIBTOOL CONFIG 26772 26773_LT_EOF 26774 26775 cat <<'_LT_EOF' >> "$cfgfile" 26776 26777# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 26778 26779# func_munge_path_list VARIABLE PATH 26780# ----------------------------------- 26781# VARIABLE is name of variable containing _space_ separated list of 26782# directories to be munged by the contents of PATH, which is string 26783# having a format: 26784# "DIR[:DIR]:" 26785# string "DIR[ DIR]" will be prepended to VARIABLE 26786# ":DIR[:DIR]" 26787# string "DIR[ DIR]" will be appended to VARIABLE 26788# "DIRP[:DIRP]::[DIRA:]DIRA" 26789# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 26790# "DIRA[ DIRA]" will be appended to VARIABLE 26791# "DIR[:DIR]" 26792# VARIABLE will be replaced by "DIR[ DIR]" 26793func_munge_path_list () 26794{ 26795 case x$2 in 26796 x) 26797 ;; 26798 *:) 26799 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 26800 ;; 26801 x:*) 26802 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 26803 ;; 26804 *::*) 26805 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 26806 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 26807 ;; 26808 *) 26809 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 26810 ;; 26811 esac 26812} 26813 26814 26815# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 26816func_cc_basename () 26817{ 26818 for cc_temp in $*""; do 26819 case $cc_temp in 26820 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26821 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26822 \-*) ;; 26823 *) break;; 26824 esac 26825 done 26826 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26827} 26828 26829 26830# ### END FUNCTIONS SHARED WITH CONFIGURE 26831 26832_LT_EOF 26833 26834 case $host_os in 26835 aix3*) 26836 cat <<\_LT_EOF >> "$cfgfile" 26837# AIX sometimes has problems with the GCC collect2 program. For some 26838# reason, if we set the COLLECT_NAMES environment variable, the problems 26839# vanish in a puff of smoke. 26840if test set != "${COLLECT_NAMES+set}"; then 26841 COLLECT_NAMES= 26842 export COLLECT_NAMES 26843fi 26844_LT_EOF 26845 ;; 26846 esac 26847 26848 26849 26850ltmain=$ac_aux_dir/ltmain.sh 26851 26852 26853 # We use sed instead of cat because bash on DJGPP gets confused if 26854 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26855 # text mode, it properly converts lines to CR/LF. This bash problem 26856 # is reportedly fixed, but why not run on old versions too? 26857 $SED '$q' "$ltmain" >> "$cfgfile" \ 26858 || (rm -f "$cfgfile"; exit 1) 26859 26860 mv -f "$cfgfile" "$ofile" || 26861 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26862 chmod +x "$ofile" 26863 26864 ;; 26865 26866 esac 26867done # for ac_tag 26868 26869 26870as_fn_exit 0 26871_ACEOF 26872ac_clean_files=$ac_clean_files_save 26873 26874test $ac_write_fail = 0 || 26875 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26876 26877 26878# configure is writing to config.log, and then calls config.status. 26879# config.status does its own redirection, appending to config.log. 26880# Unfortunately, on DOS this fails, as config.log is still kept open 26881# by configure, so config.status won't be able to write to it; its 26882# output is simply discarded. So we exec the FD to /dev/null, 26883# effectively closing config.log, so it can be properly (re)opened and 26884# appended to by config.status. When coming back to configure, we 26885# need to make the FD available again. 26886if test "$no_create" != yes; then 26887 ac_cs_success=: 26888 ac_config_status_args= 26889 test "$silent" = yes && 26890 ac_config_status_args="$ac_config_status_args --quiet" 26891 exec 5>/dev/null 26892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26893 exec 5>>config.log 26894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26895 # would make configure fail if this is the last instruction. 26896 $ac_cs_success || as_fn_exit 1 26897fi 26898if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26900printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26901fi 26902 26903 26904