configure revision 5c8a776c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xf86-video-savage 2.4.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/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 187test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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/driver/xf86-video-savage/-/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='xf86-video-savage' 617PACKAGE_TARNAME='xf86-video-savage' 618PACKAGE_VERSION='2.4.1' 619PACKAGE_STRING='xf86-video-savage 2.4.1' 620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues' 621PACKAGE_URL='' 622 623ac_unique_file="Makefile.am" 624# Factoring default headers for most tests. 625ac_includes_default="\ 626#include <stddef.h> 627#ifdef HAVE_STDIO_H 628# include <stdio.h> 629#endif 630#ifdef HAVE_STDLIB_H 631# include <stdlib.h> 632#endif 633#ifdef HAVE_STRING_H 634# include <string.h> 635#endif 636#ifdef HAVE_INTTYPES_H 637# include <inttypes.h> 638#endif 639#ifdef HAVE_STDINT_H 640# include <stdint.h> 641#endif 642#ifdef HAVE_STRINGS_H 643# include <strings.h> 644#endif 645#ifdef HAVE_SYS_TYPES_H 646# include <sys/types.h> 647#endif 648#ifdef HAVE_SYS_STAT_H 649# include <sys/stat.h> 650#endif 651#ifdef HAVE_UNISTD_H 652# include <unistd.h> 653#endif" 654 655ac_header_c_list= 656ac_subst_vars='am__EXEEXT_FALSE 657am__EXEEXT_TRUE 658LTLIBOBJS 659LIBOBJS 660DRIVER_NAME 661moduledir 662XSERVER_LIBPCIACCESS_FALSE 663XSERVER_LIBPCIACCESS_TRUE 664PCIACCESS_LIBS 665PCIACCESS_CFLAGS 666XAA_FALSE 667XAA_TRUE 668DRI_LIBS 669DRI_CFLAGS 670DRI_FALSE 671DRI_TRUE 672HAVE_XEXTPROTO_71_FALSE 673HAVE_XEXTPROTO_71_TRUE 674XEXT_LIBS 675XEXT_CFLAGS 676XORG_LIBS 677XORG_CFLAGS 678LT_SYS_LIBRARY_PATH 679OTOOL64 680OTOOL 681LIPO 682NMEDIT 683DSYMUTIL 684MANIFEST_TOOL 685RANLIB 686ac_ct_AR 687AR 688DLLTOOL 689OBJDUMP 690FILECMD 691LN_S 692NM 693ac_ct_DUMPBIN 694DUMPBIN 695LD 696FGREP 697EGREP 698GREP 699LIBTOOL 700MAN_SUBSTS 701XORG_MAN_PAGE 702ADMIN_MAN_DIR 703DRIVER_MAN_DIR 704MISC_MAN_DIR 705FILE_MAN_DIR 706LIB_MAN_DIR 707APP_MAN_DIR 708ADMIN_MAN_SUFFIX 709DRIVER_MAN_SUFFIX 710MISC_MAN_SUFFIX 711FILE_MAN_SUFFIX 712LIB_MAN_SUFFIX 713APP_MAN_SUFFIX 714SED 715host_os 716host_vendor 717host_cpu 718host 719build_os 720build_vendor 721build_cpu 722build 723INSTALL_CMD 724PKG_CONFIG_LIBDIR 725PKG_CONFIG_PATH 726PKG_CONFIG 727CHANGELOG_CMD 728STRICT_CFLAGS 729CWARNFLAGS 730BASE_CFLAGS 731am__fastdepCC_FALSE 732am__fastdepCC_TRUE 733CCDEPMODE 734am__nodep 735AMDEPBACKSLASH 736AMDEP_FALSE 737AMDEP_TRUE 738am__include 739DEPDIR 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747AM_BACKSLASH 748AM_DEFAULT_VERBOSITY 749AM_DEFAULT_V 750AM_V 751CSCOPE 752ETAGS 753CTAGS 754am__untar 755am__tar 756AMTAR 757am__leading_dot 758SET_MAKE 759AWK 760mkdir_p 761MKDIR_P 762INSTALL_STRIP_PROGRAM 763STRIP 764install_sh 765MAKEINFO 766AUTOHEADER 767AUTOMAKE 768AUTOCONF 769ACLOCAL 770VERSION 771PACKAGE 772CYGPATH_W 773am__isrc 774INSTALL_DATA 775INSTALL_SCRIPT 776INSTALL_PROGRAM 777target_alias 778host_alias 779build_alias 780LIBS 781ECHO_T 782ECHO_N 783ECHO_C 784DEFS 785mandir 786localedir 787libdir 788psdir 789pdfdir 790dvidir 791htmldir 792infodir 793docdir 794oldincludedir 795includedir 796runstatedir 797localstatedir 798sharedstatedir 799sysconfdir 800datadir 801datarootdir 802libexecdir 803sbindir 804bindir 805program_transform_name 806prefix 807exec_prefix 808PACKAGE_URL 809PACKAGE_BUGREPORT 810PACKAGE_STRING 811PACKAGE_VERSION 812PACKAGE_TARNAME 813PACKAGE_NAME 814PATH_SEPARATOR 815SHELL 816am__quote' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_silent_rules 821enable_dependency_tracking 822enable_selective_werror 823enable_strict_compilation 824enable_static 825enable_shared 826with_pic 827enable_fast_install 828with_aix_soname 829with_gnu_ld 830with_sysroot 831enable_libtool_lock 832with_xorg_module_dir 833enable_dri 834enable_xaa 835' 836 ac_precious_vars='build_alias 837host_alias 838target_alias 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844PKG_CONFIG 845PKG_CONFIG_PATH 846PKG_CONFIG_LIBDIR 847LT_SYS_LIBRARY_PATH 848XORG_CFLAGS 849XORG_LIBS 850XEXT_CFLAGS 851XEXT_LIBS 852DRI_CFLAGS 853DRI_LIBS 854PCIACCESS_CFLAGS 855PCIACCESS_LIBS' 856 857 858# Initialize some variables set by options. 859ac_init_help= 860ac_init_version=false 861ac_unrecognized_opts= 862ac_unrecognized_sep= 863# The variables have the same names as the options, with 864# dashes changed to underlines. 865cache_file=/dev/null 866exec_prefix=NONE 867no_create= 868no_recursion= 869prefix=NONE 870program_prefix=NONE 871program_suffix=NONE 872program_transform_name=s,x,x, 873silent= 874site= 875srcdir= 876verbose= 877x_includes=NONE 878x_libraries=NONE 879 880# Installation directory options. 881# These are left unexpanded so users can "make install exec_prefix=/foo" 882# and all the variables that are supposed to be based on exec_prefix 883# by default will actually change. 884# Use braces instead of parens because sh, perl, etc. also accept them. 885# (The list follows the same order as the GNU Coding Standards.) 886bindir='${exec_prefix}/bin' 887sbindir='${exec_prefix}/sbin' 888libexecdir='${exec_prefix}/libexec' 889datarootdir='${prefix}/share' 890datadir='${datarootdir}' 891sysconfdir='${prefix}/etc' 892sharedstatedir='${prefix}/com' 893localstatedir='${prefix}/var' 894runstatedir='${localstatedir}/run' 895includedir='${prefix}/include' 896oldincludedir='/usr/include' 897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 898infodir='${datarootdir}/info' 899htmldir='${docdir}' 900dvidir='${docdir}' 901pdfdir='${docdir}' 902psdir='${docdir}' 903libdir='${exec_prefix}/lib' 904localedir='${datarootdir}/locale' 905mandir='${datarootdir}/man' 906 907ac_prev= 908ac_dashdash= 909for ac_option 910do 911 # If the previous option needs an argument, assign it. 912 if test -n "$ac_prev"; then 913 eval $ac_prev=\$ac_option 914 ac_prev= 915 continue 916 fi 917 918 case $ac_option in 919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 920 *=) ac_optarg= ;; 921 *) ac_optarg=yes ;; 922 esac 923 924 case $ac_dashdash$ac_option in 925 --) 926 ac_dashdash=yes ;; 927 928 -bindir | --bindir | --bindi | --bind | --bin | --bi) 929 ac_prev=bindir ;; 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 931 bindir=$ac_optarg ;; 932 933 -build | --build | --buil | --bui | --bu) 934 ac_prev=build_alias ;; 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 936 build_alias=$ac_optarg ;; 937 938 -cache-file | --cache-file | --cache-fil | --cache-fi \ 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 940 ac_prev=cache_file ;; 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 943 cache_file=$ac_optarg ;; 944 945 --config-cache | -C) 946 cache_file=config.cache ;; 947 948 -datadir | --datadir | --datadi | --datad) 949 ac_prev=datadir ;; 950 -datadir=* | --datadir=* | --datadi=* | --datad=*) 951 datadir=$ac_optarg ;; 952 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 954 | --dataroo | --dataro | --datar) 955 ac_prev=datarootdir ;; 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 958 datarootdir=$ac_optarg ;; 959 960 -disable-* | --disable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: '$ac_useropt'" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969"enable_$ac_useropt" 970"*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=no ;; 975 976 -docdir | --docdir | --docdi | --doc | --do) 977 ac_prev=docdir ;; 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 979 docdir=$ac_optarg ;; 980 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 982 ac_prev=dvidir ;; 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 984 dvidir=$ac_optarg ;; 985 986 -enable-* | --enable-*) 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 988 # Reject names that are not valid shell variable names. 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 990 as_fn_error $? "invalid feature name: '$ac_useropt'" 991 ac_useropt_orig=$ac_useropt 992 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 993 case $ac_user_opts in 994 *" 995"enable_$ac_useropt" 996"*) ;; 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 998 ac_unrecognized_sep=', ';; 999 esac 1000 eval enable_$ac_useropt=\$ac_optarg ;; 1001 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1004 | --exec | --exe | --ex) 1005 ac_prev=exec_prefix ;; 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1008 | --exec=* | --exe=* | --ex=*) 1009 exec_prefix=$ac_optarg ;; 1010 1011 -gas | --gas | --ga | --g) 1012 # Obsolete; use --with-gas. 1013 with_gas=yes ;; 1014 1015 -help | --help | --hel | --he | -h) 1016 ac_init_help=long ;; 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1018 ac_init_help=recursive ;; 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1020 ac_init_help=short ;; 1021 1022 -host | --host | --hos | --ho) 1023 ac_prev=host_alias ;; 1024 -host=* | --host=* | --hos=* | --ho=*) 1025 host_alias=$ac_optarg ;; 1026 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1028 ac_prev=htmldir ;; 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1030 | --ht=*) 1031 htmldir=$ac_optarg ;; 1032 1033 -includedir | --includedir | --includedi | --included | --include \ 1034 | --includ | --inclu | --incl | --inc) 1035 ac_prev=includedir ;; 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1037 | --includ=* | --inclu=* | --incl=* | --inc=*) 1038 includedir=$ac_optarg ;; 1039 1040 -infodir | --infodir | --infodi | --infod | --info | --inf) 1041 ac_prev=infodir ;; 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1043 infodir=$ac_optarg ;; 1044 1045 -libdir | --libdir | --libdi | --libd) 1046 ac_prev=libdir ;; 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1048 libdir=$ac_optarg ;; 1049 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1051 | --libexe | --libex | --libe) 1052 ac_prev=libexecdir ;; 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1054 | --libexe=* | --libex=* | --libe=*) 1055 libexecdir=$ac_optarg ;; 1056 1057 -localedir | --localedir | --localedi | --localed | --locale) 1058 ac_prev=localedir ;; 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1060 localedir=$ac_optarg ;; 1061 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1063 | --localstate | --localstat | --localsta | --localst | --locals) 1064 ac_prev=localstatedir ;; 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1067 localstatedir=$ac_optarg ;; 1068 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1070 ac_prev=mandir ;; 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1072 mandir=$ac_optarg ;; 1073 1074 -nfp | --nfp | --nf) 1075 # Obsolete; use --without-fp. 1076 with_fp=no ;; 1077 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1079 | --no-cr | --no-c | -n) 1080 no_create=yes ;; 1081 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1084 no_recursion=yes ;; 1085 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1088 | --oldin | --oldi | --old | --ol | --o) 1089 ac_prev=oldincludedir ;; 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1093 oldincludedir=$ac_optarg ;; 1094 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1096 ac_prev=prefix ;; 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1098 prefix=$ac_optarg ;; 1099 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1101 | --program-pre | --program-pr | --program-p) 1102 ac_prev=program_prefix ;; 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1105 program_prefix=$ac_optarg ;; 1106 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1108 | --program-suf | --program-su | --program-s) 1109 ac_prev=program_suffix ;; 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1112 program_suffix=$ac_optarg ;; 1113 1114 -program-transform-name | --program-transform-name \ 1115 | --program-transform-nam | --program-transform-na \ 1116 | --program-transform-n | --program-transform- \ 1117 | --program-transform | --program-transfor \ 1118 | --program-transfo | --program-transf \ 1119 | --program-trans | --program-tran \ 1120 | --progr-tra | --program-tr | --program-t) 1121 ac_prev=program_transform_name ;; 1122 -program-transform-name=* | --program-transform-name=* \ 1123 | --program-transform-nam=* | --program-transform-na=* \ 1124 | --program-transform-n=* | --program-transform-=* \ 1125 | --program-transform=* | --program-transfor=* \ 1126 | --program-transfo=* | --program-transf=* \ 1127 | --program-trans=* | --program-tran=* \ 1128 | --progr-tra=* | --program-tr=* | --program-t=*) 1129 program_transform_name=$ac_optarg ;; 1130 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1132 ac_prev=pdfdir ;; 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1134 pdfdir=$ac_optarg ;; 1135 1136 -psdir | --psdir | --psdi | --psd | --ps) 1137 ac_prev=psdir ;; 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1139 psdir=$ac_optarg ;; 1140 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1142 | -silent | --silent | --silen | --sile | --sil) 1143 silent=yes ;; 1144 1145 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1146 | --runstate | --runstat | --runsta | --runst | --runs \ 1147 | --run | --ru | --r) 1148 ac_prev=runstatedir ;; 1149 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1150 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1151 | --run=* | --ru=* | --r=*) 1152 runstatedir=$ac_optarg ;; 1153 1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1155 ac_prev=sbindir ;; 1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1157 | --sbi=* | --sb=*) 1158 sbindir=$ac_optarg ;; 1159 1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1162 | --sharedst | --shareds | --shared | --share | --shar \ 1163 | --sha | --sh) 1164 ac_prev=sharedstatedir ;; 1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1168 | --sha=* | --sh=*) 1169 sharedstatedir=$ac_optarg ;; 1170 1171 -site | --site | --sit) 1172 ac_prev=site ;; 1173 -site=* | --site=* | --sit=*) 1174 site=$ac_optarg ;; 1175 1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1177 ac_prev=srcdir ;; 1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1179 srcdir=$ac_optarg ;; 1180 1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1182 | --syscon | --sysco | --sysc | --sys | --sy) 1183 ac_prev=sysconfdir ;; 1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1186 sysconfdir=$ac_optarg ;; 1187 1188 -target | --target | --targe | --targ | --tar | --ta | --t) 1189 ac_prev=target_alias ;; 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1191 target_alias=$ac_optarg ;; 1192 1193 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1194 verbose=yes ;; 1195 1196 -version | --version | --versio | --versi | --vers | -V) 1197 ac_init_version=: ;; 1198 1199 -with-* | --with-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: '$ac_useropt'" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=\$ac_optarg ;; 1214 1215 -without-* | --without-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: '$ac_useropt'" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) as_fn_error $? "unrecognized option: '$ac_option' 1250Try '$0 --help' for more information" 1251 ;; 1252 1253 *=*) 1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1255 # Reject names that are not valid shell variable names. 1256 case $ac_envvar in #( 1257 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1258 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1259 esac 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 as_fn_error $? "missing argument to $ac_option" 1277fi 1278 1279if test -n "$ac_unrecognized_opts"; then 1280 case $enable_option_checking in 1281 no) ;; 1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1283 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1284 esac 1285fi 1286 1287# Check all directory arguments for consistency. 1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1289 datadir sysconfdir sharedstatedir localstatedir includedir \ 1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1291 libdir localedir mandir runstatedir 1292do 1293 eval ac_val=\$$ac_var 1294 # Remove trailing slashes. 1295 case $ac_val in 1296 */ ) 1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1298 eval $ac_var=\$ac_val;; 1299 esac 1300 # Be sure to have absolute directory names. 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1306done 1307 1308# There might be people who depend on the old broken behavior: '$host' 1309# used to hold the argument of --host etc. 1310# FIXME: To remove some day. 1311build=$build_alias 1312host=$host_alias 1313target=$target_alias 1314 1315# FIXME: To remove some day. 1316if test "x$host_alias" != x; then 1317 if test "x$build_alias" = x; then 1318 cross_compiling=maybe 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322fi 1323 1324ac_tool_prefix= 1325test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327test "$silent" = yes && exec 6>/dev/null 1328 1329 1330ac_pwd=`pwd` && test -n "$ac_pwd" && 1331ac_ls_di=`ls -di .` && 1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 as_fn_error $? "working directory cannot be determined" 1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1335 as_fn_error $? "pwd does not report name of working directory" 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$as_myself" || 1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$as_myself" : 'X\(//\)[^/]' \| \ 1345 X"$as_myself" : 'X\(//\)$' \| \ 1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1347printf "%s\n" X"$as_myself" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1375fi 1376ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1377ac_abs_confdir=`( 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1379 pwd)` 1380# When building in place, set srcdir=. 1381if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383fi 1384# Remove unnecessary trailing slashes from srcdir. 1385# Double slashes in file names in object file debugging info 1386# mess up M-x gdb in Emacs. 1387case $srcdir in 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389esac 1390for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395done 1396 1397# 1398# Report the --help message. 1399# 1400if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404'configure' configures xf86-video-savage 2.4.1 to adapt to many kinds of systems. 1405 1406Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411Defaults for the options are specified in brackets. 1412 1413Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print 'checking ...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for '--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1423 1424Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430By default, 'make install' will install all the files in 1431'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1432an installation prefix other than '$ac_default_prefix' using '--prefix', 1433for instance '--prefix=\$HOME'. 1434 1435For better control, use the options below. 1436 1437Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1445 --libdir=DIR object code libraries [EPREFIX/lib] 1446 --includedir=DIR C header files [PREFIX/include] 1447 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1450 --infodir=DIR info documentation [DATAROOTDIR/info] 1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1452 --mandir=DIR man documentation [DATAROOTDIR/man] 1453 --docdir=DIR documentation root 1454 [DATAROOTDIR/doc/xf86-video-savage] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of xf86-video-savage 2.4.1:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-option-checking ignore unrecognized --enable/--with options 1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --disable-selective-werror 1491 Turn off selective compiler errors. (default: 1492 enabled) 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --enable-static[=PKGS] build static libraries [default=no] 1497 --enable-shared[=PKGS] build shared libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --disable-dri Disable DRI support [[default=auto]] 1502 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1503 [default=auto] 1504 1505Optional Packages: 1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1509 both] 1510 --with-aix-soname=aix|svr4|both 1511 shared library versioning (aka "SONAME") variant to 1512 provide on AIX, [default=aix]. 1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1515 compiler's sysroot if not specified). 1516 --with-xorg-module-dir=DIR 1517 Default xorg module directory 1518 [[default=$libdir/xorg/modules]] 1519 1520Some influential environment variables: 1521 CC C compiler command 1522 CFLAGS C compiler flags 1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1524 nonstandard directory <lib dir> 1525 LIBS libraries to pass to the linker, e.g. -l<library> 1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1527 you have headers in a nonstandard directory <include dir> 1528 PKG_CONFIG path to pkg-config utility 1529 PKG_CONFIG_PATH 1530 directories to add to pkg-config's search path 1531 PKG_CONFIG_LIBDIR 1532 path overriding pkg-config's built-in search path 1533 LT_SYS_LIBRARY_PATH 1534 User-defined run-time library search path. 1535 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1536 XORG_LIBS linker flags for XORG, overriding pkg-config 1537 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1538 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1539 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1540 DRI_LIBS linker flags for DRI, overriding pkg-config 1541 PCIACCESS_CFLAGS 1542 C compiler flags for PCIACCESS, overriding pkg-config 1543 PCIACCESS_LIBS 1544 linker flags for PCIACCESS, overriding pkg-config 1545 1546Use these variables to override the choices made by 'configure' or to help 1547it to find libraries and programs with nonstandard names/locations. 1548 1549Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>. 1550_ACEOF 1551ac_status=$? 1552fi 1553 1554if test "$ac_init_help" = "recursive"; then 1555 # If there are subdirs, report their specific --help. 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1557 test -d "$ac_dir" || 1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1559 continue 1560 ac_builddir=. 1561 1562case "$ac_dir" in 1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564*) 1565 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1566 # A ".." for each directory in $ac_dir_suffix. 1567 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1568 case $ac_top_builddir_sub in 1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1571 esac ;; 1572esac 1573ac_abs_top_builddir=$ac_pwd 1574ac_abs_builddir=$ac_pwd$ac_dir_suffix 1575# for backward compatibility: 1576ac_top_builddir=$ac_top_build_prefix 1577 1578case $srcdir in 1579 .) # We are building in place. 1580 ac_srcdir=. 1581 ac_top_srcdir=$ac_top_builddir_sub 1582 ac_abs_top_srcdir=$ac_pwd ;; 1583 [\\/]* | ?:[\\/]* ) # Absolute name. 1584 ac_srcdir=$srcdir$ac_dir_suffix; 1585 ac_top_srcdir=$srcdir 1586 ac_abs_top_srcdir=$srcdir ;; 1587 *) # Relative name. 1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1589 ac_top_srcdir=$ac_top_build_prefix$srcdir 1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1591esac 1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1593 1594 cd "$ac_dir" || { ac_status=$?; continue; } 1595 # Check for configure.gnu first; this name is used for a wrapper for 1596 # Metaconfig's "Configure" on case-insensitive file systems. 1597 if test -f "$ac_srcdir/configure.gnu"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1600 elif test -f "$ac_srcdir/configure"; then 1601 echo && 1602 $SHELL "$ac_srcdir/configure" --help=recursive 1603 else 1604 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1605 fi || ac_status=$? 1606 cd "$ac_pwd" || { ac_status=$?; break; } 1607 done 1608fi 1609 1610test -n "$ac_init_help" && exit $ac_status 1611if $ac_init_version; then 1612 cat <<\_ACEOF 1613xf86-video-savage configure 2.4.1 1614generated by GNU Autoconf 2.72 1615 1616Copyright (C) 2023 Free Software Foundation, Inc. 1617This configure script is free software; the Free Software Foundation 1618gives unlimited permission to copy, distribute and modify it. 1619_ACEOF 1620 exit 1621fi 1622 1623## ------------------------ ## 1624## Autoconf initialization. ## 1625## ------------------------ ## 1626 1627# ac_fn_c_try_compile LINENO 1628# -------------------------- 1629# Try to compile conftest.$ac_ext, and return whether this succeeded. 1630ac_fn_c_try_compile () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 rm -f conftest.$ac_objext conftest.beam 1634 if { { ac_try="$ac_compile" 1635case "(($ac_try" in 1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637 *) ac_try_echo=$ac_try;; 1638esac 1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640printf "%s\n" "$ac_try_echo"; } >&5 1641 (eval "$ac_compile") 2>conftest.err 1642 ac_status=$? 1643 if test -s conftest.err; then 1644 grep -v '^ *+' conftest.err >conftest.er1 1645 cat conftest.er1 >&5 1646 mv -f conftest.er1 conftest.err 1647 fi 1648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649 test $ac_status = 0; } && { 1650 test -z "$ac_c_werror_flag" || 1651 test ! -s conftest.err 1652 } && test -s conftest.$ac_objext 1653then : 1654 ac_retval=0 1655else case e in #( 1656 e) printf "%s\n" "$as_me: failed program was:" >&5 1657sed 's/^/| /' conftest.$ac_ext >&5 1658 1659 ac_retval=1 ;; 1660esac 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_compile 1666 1667# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1668# ------------------------------------------------------------------ 1669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1670# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1671ac_fn_check_decl () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 as_decl_name=`echo $2|sed 's/ *(.*//'` 1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1676printf %s "checking whether $as_decl_name is declared... " >&6; } 1677if eval test \${$3+y} 1678then : 1679 printf %s "(cached) " >&6 1680else case e in #( 1681 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1682 eval ac_save_FLAGS=\$$6 1683 as_fn_append $6 " $5" 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685/* end confdefs.h. */ 1686$4 1687int 1688main (void) 1689{ 1690#ifndef $as_decl_name 1691#ifdef __cplusplus 1692 (void) $as_decl_use; 1693#else 1694 (void) $as_decl_name; 1695#endif 1696#endif 1697 1698 ; 1699 return 0; 1700} 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO" 1703then : 1704 eval "$3=yes" 1705else case e in #( 1706 e) eval "$3=no" ;; 1707esac 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1710 eval $6=\$ac_save_FLAGS 1711 ;; 1712esac 1713fi 1714eval ac_res=\$$3 1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1716printf "%s\n" "$ac_res" >&6; } 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 1719} # ac_fn_check_decl 1720 1721# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1722# ------------------------------------------------------- 1723# Tests whether HEADER exists and can be compiled using the include files in 1724# INCLUDES, setting the cache variable VAR accordingly. 1725ac_fn_c_check_header_compile () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729printf %s "checking for $2... " >&6; } 1730if eval test \${$3+y} 1731then : 1732 printf %s "(cached) " >&6 1733else case e in #( 1734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO" 1740then : 1741 eval "$3=yes" 1742else case e in #( 1743 e) eval "$3=no" ;; 1744esac 1745fi 1746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1747esac 1748fi 1749eval ac_res=\$$3 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751printf "%s\n" "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769printf "%s\n" "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 } 1785then : 1786 ac_retval=0 1787else case e in #( 1788 e) printf "%s\n" "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 ;; 1792esac 1793fi 1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1796 # interfere with the next link command; also delete a directory that is 1797 # left behind by Apple's compiler. We do this before executing the actions. 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_link 1803 1804# ac_fn_c_check_func LINENO FUNC VAR 1805# ---------------------------------- 1806# Tests whether FUNC exists, setting the cache variable VAR accordingly 1807ac_fn_c_check_func () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811printf %s "checking for $2... " >&6; } 1812if eval test \${$3+y} 1813then : 1814 printf %s "(cached) " >&6 1815else case e in #( 1816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1820#define $2 innocuous_$2 1821 1822/* System header to define __stub macros and hopefully few prototypes, 1823 which can conflict with char $2 (void); below. */ 1824 1825#include <limits.h> 1826#undef $2 1827 1828/* Override any GCC internal prototype to avoid an error. 1829 Use char because int might match the return type of a GCC 1830 builtin and then its argument prototype would still apply. */ 1831#ifdef __cplusplus 1832extern "C" 1833#endif 1834char $2 (void); 1835/* The GNU C library defines this for functions which it implements 1836 to always fail with ENOSYS. Some functions are actually named 1837 something starting with __ and the normal name is an alias. */ 1838#if defined __stub_$2 || defined __stub___$2 1839choke me 1840#endif 1841 1842int 1843main (void) 1844{ 1845return $2 (); 1846 ; 1847 return 0; 1848} 1849_ACEOF 1850if ac_fn_c_try_link "$LINENO" 1851then : 1852 eval "$3=yes" 1853else case e in #( 1854 e) eval "$3=no" ;; 1855esac 1856fi 1857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1858 conftest$ac_exeext conftest.$ac_ext ;; 1859esac 1860fi 1861eval ac_res=\$$3 1862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1863printf "%s\n" "$ac_res" >&6; } 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 1866} # ac_fn_c_check_func 1867ac_configure_args_raw= 1868for ac_arg 1869do 1870 case $ac_arg in 1871 *\'*) 1872 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1873 esac 1874 as_fn_append ac_configure_args_raw " '$ac_arg'" 1875done 1876 1877case $ac_configure_args_raw in 1878 *$as_nl*) 1879 ac_safe_unquote= ;; 1880 *) 1881 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1882 ac_unsafe_a="$ac_unsafe_z#~" 1883 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1884 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1885esac 1886 1887cat >config.log <<_ACEOF 1888This file contains any messages produced by compilers while 1889running configure, to aid debugging if configure makes a mistake. 1890 1891It was created by xf86-video-savage $as_me 2.4.1, which was 1892generated by GNU Autoconf 2.72. Invocation command line was 1893 1894 $ $0$ac_configure_args_raw 1895 1896_ACEOF 1897exec 5>>config.log 1898{ 1899cat <<_ASUNAME 1900## --------- ## 1901## Platform. ## 1902## --------- ## 1903 1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1905uname -m = `(uname -m) 2>/dev/null || echo unknown` 1906uname -r = `(uname -r) 2>/dev/null || echo unknown` 1907uname -s = `(uname -s) 2>/dev/null || echo unknown` 1908uname -v = `(uname -v) 2>/dev/null || echo unknown` 1909 1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1912 1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1920 1921_ASUNAME 1922 1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1924for as_dir in $PATH 1925do 1926 IFS=$as_save_IFS 1927 case $as_dir in #((( 1928 '') as_dir=./ ;; 1929 */) ;; 1930 *) as_dir=$as_dir/ ;; 1931 esac 1932 printf "%s\n" "PATH: $as_dir" 1933 done 1934IFS=$as_save_IFS 1935 1936} >&5 1937 1938cat >&5 <<_ACEOF 1939 1940 1941## ----------- ## 1942## Core tests. ## 1943## ----------- ## 1944 1945_ACEOF 1946 1947 1948# Keep a trace of the command line. 1949# Strip out --no-create and --no-recursion so they do not pile up. 1950# Strip out --silent because we don't want to record it for future runs. 1951# Also quote any args containing shell meta-characters. 1952# Make two passes to allow for proper duplicate-argument suppression. 1953ac_configure_args= 1954ac_configure_args0= 1955ac_configure_args1= 1956ac_must_keep_next=false 1957for ac_pass in 1 2 1958do 1959 for ac_arg 1960 do 1961 case $ac_arg in 1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1964 | -silent | --silent | --silen | --sile | --sil) 1965 continue ;; 1966 *\'*) 1967 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1968 esac 1969 case $ac_pass in 1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1971 2) 1972 as_fn_append ac_configure_args1 " '$ac_arg'" 1973 if test $ac_must_keep_next = true; then 1974 ac_must_keep_next=false # Got value, back to normal. 1975 else 1976 case $ac_arg in 1977 *=* | --config-cache | -C | -disable-* | --disable-* \ 1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1980 | -with-* | --with-* | -without-* | --without-* | --x) 1981 case "$ac_configure_args0 " in 1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1983 esac 1984 ;; 1985 -* ) ac_must_keep_next=true ;; 1986 esac 1987 fi 1988 as_fn_append ac_configure_args " '$ac_arg'" 1989 ;; 1990 esac 1991 done 1992done 1993{ ac_configure_args0=; unset ac_configure_args0;} 1994{ ac_configure_args1=; unset ac_configure_args1;} 1995 1996# When interrupted or exit'd, cleanup temporary files, and complete 1997# config.log. We remove comments because anyway the quotes in there 1998# would cause problems or look ugly. 1999# WARNING: Use '\'' to represent an apostrophe within the trap. 2000# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2001trap 'exit_status=$? 2002 # Sanitize IFS. 2003 IFS=" "" $as_nl" 2004 # Save into config.log some information that might help in debugging. 2005 { 2006 echo 2007 2008 printf "%s\n" "## ---------------- ## 2009## Cache variables. ## 2010## ---------------- ##" 2011 echo 2012 # The following way of writing the cache mishandles newlines in values, 2013( 2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2015 eval ac_val=\$$ac_var 2016 case $ac_val in #( 2017 *${as_nl}*) 2018 case $ac_var in #( 2019 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2020printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2021 esac 2022 case $ac_var in #( 2023 _ | IFS | as_nl) ;; #( 2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2025 *) { eval $ac_var=; unset $ac_var;} ;; 2026 esac ;; 2027 esac 2028 done 2029 (set) 2>&1 | 2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2031 *${as_nl}ac_space=\ *) 2032 sed -n \ 2033 "s/'\''/'\''\\\\'\'''\''/g; 2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2035 ;; #( 2036 *) 2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2038 ;; 2039 esac | 2040 sort 2041) 2042 echo 2043 2044 printf "%s\n" "## ----------------- ## 2045## Output variables. ## 2046## ----------------- ##" 2047 echo 2048 for ac_var in $ac_subst_vars 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 printf "%s\n" "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 2058 if test -n "$ac_subst_files"; then 2059 printf "%s\n" "## ------------------- ## 2060## File substitutions. ## 2061## ------------------- ##" 2062 echo 2063 for ac_var in $ac_subst_files 2064 do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in 2067 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2068 esac 2069 printf "%s\n" "$ac_var='\''$ac_val'\''" 2070 done | sort 2071 echo 2072 fi 2073 2074 if test -s confdefs.h; then 2075 printf "%s\n" "## ----------- ## 2076## confdefs.h. ## 2077## ----------- ##" 2078 echo 2079 cat confdefs.h 2080 echo 2081 fi 2082 test "$ac_signal" != 0 && 2083 printf "%s\n" "$as_me: caught signal $ac_signal" 2084 printf "%s\n" "$as_me: exit $exit_status" 2085 } >&5 2086 rm -f core *.core core.conftest.* && 2087 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2088 exit $exit_status 2089' 0 2090for ac_signal in 1 2 13 15; do 2091 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2092done 2093ac_signal=0 2094 2095# confdefs.h avoids OS command line length limits that DEFS can exceed. 2096rm -f -r conftest* confdefs.h 2097 2098printf "%s\n" "/* confdefs.h */" > confdefs.h 2099 2100# Predefined preprocessor variables. 2101 2102printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2103 2104printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2105 2106printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2107 2108printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2109 2110printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2111 2112printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2113 2114 2115# Let the site file select an alternate cache file if it wants to. 2116# Prefer an explicitly selected file to automatically selected ones. 2117if test -n "$CONFIG_SITE"; then 2118 ac_site_files="$CONFIG_SITE" 2119elif test "x$prefix" != xNONE; then 2120 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2121else 2122 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2123fi 2124 2125for ac_site_file in $ac_site_files 2126do 2127 case $ac_site_file in #( 2128 */*) : 2129 ;; #( 2130 *) : 2131 ac_site_file=./$ac_site_file ;; 2132esac 2133 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2135printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2136 sed 's/^/| /' "$ac_site_file" >&5 2137 . "$ac_site_file" \ 2138 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2139printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2140as_fn_error $? "failed to load site script $ac_site_file 2141See 'config.log' for more details" "$LINENO" 5; } 2142 fi 2143done 2144 2145if test -r "$cache_file"; then 2146 # Some versions of bash will fail to source /dev/null (special files 2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2150printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2151 case $cache_file in 2152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2153 *) . "./$cache_file";; 2154 esac 2155 fi 2156else 2157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2158printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2159 >$cache_file 2160fi 2161 2162# Test code for whether the C compiler supports C89 (global declarations) 2163ac_c_conftest_c89_globals=' 2164/* Does the compiler advertise C89 conformance? 2165 Do not test the value of __STDC__, because some compilers set it to 0 2166 while being otherwise adequately conformant. */ 2167#if !defined __STDC__ 2168# error "Compiler does not advertise C89 conformance" 2169#endif 2170 2171#include <stddef.h> 2172#include <stdarg.h> 2173struct stat; 2174/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2175struct buf { int x; }; 2176struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2177static char *e (char **p, int i) 2178{ 2179 return p[i]; 2180} 2181static char *f (char * (*g) (char **, int), char **p, ...) 2182{ 2183 char *s; 2184 va_list v; 2185 va_start (v,p); 2186 s = g (p, va_arg (v,int)); 2187 va_end (v); 2188 return s; 2189} 2190 2191/* C89 style stringification. */ 2192#define noexpand_stringify(a) #a 2193const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2194 2195/* C89 style token pasting. Exercises some of the corner cases that 2196 e.g. old MSVC gets wrong, but not very hard. */ 2197#define noexpand_concat(a,b) a##b 2198#define expand_concat(a,b) noexpand_concat(a,b) 2199extern int vA; 2200extern int vbee; 2201#define aye A 2202#define bee B 2203int *pvA = &expand_concat(v,aye); 2204int *pvbee = &noexpand_concat(v,bee); 2205 2206/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2207 function prototypes and stuff, but not \xHH hex character constants. 2208 These do not provoke an error unfortunately, instead are silently treated 2209 as an "x". The following induces an error, until -std is added to get 2210 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2211 array size at least. It is necessary to write \x00 == 0 to get something 2212 that is true only with -std. */ 2213int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2214 2215/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2216 inside strings and character constants. */ 2217#define FOO(x) '\''x'\'' 2218int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2219 2220int test (int i, double x); 2221struct s1 {int (*f) (int a);}; 2222struct s2 {int (*f) (double a);}; 2223int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2224 int, int);' 2225 2226# Test code for whether the C compiler supports C89 (body of main). 2227ac_c_conftest_c89_main=' 2228ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2229' 2230 2231# Test code for whether the C compiler supports C99 (global declarations) 2232ac_c_conftest_c99_globals=' 2233/* Does the compiler advertise C99 conformance? */ 2234#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2235# error "Compiler does not advertise C99 conformance" 2236#endif 2237 2238// See if C++-style comments work. 2239 2240#include <stdbool.h> 2241extern int puts (const char *); 2242extern int printf (const char *, ...); 2243extern int dprintf (int, const char *, ...); 2244extern void *malloc (size_t); 2245extern void free (void *); 2246 2247// Check varargs macros. These examples are taken from C99 6.10.3.5. 2248// dprintf is used instead of fprintf to avoid needing to declare 2249// FILE and stderr. 2250#define debug(...) dprintf (2, __VA_ARGS__) 2251#define showlist(...) puts (#__VA_ARGS__) 2252#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2253static void 2254test_varargs_macros (void) 2255{ 2256 int x = 1234; 2257 int y = 5678; 2258 debug ("Flag"); 2259 debug ("X = %d\n", x); 2260 showlist (The first, second, and third items.); 2261 report (x>y, "x is %d but y is %d", x, y); 2262} 2263 2264// Check long long types. 2265#define BIG64 18446744073709551615ull 2266#define BIG32 4294967295ul 2267#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2268#if !BIG_OK 2269 #error "your preprocessor is broken" 2270#endif 2271#if BIG_OK 2272#else 2273 #error "your preprocessor is broken" 2274#endif 2275static long long int bignum = -9223372036854775807LL; 2276static unsigned long long int ubignum = BIG64; 2277 2278struct incomplete_array 2279{ 2280 int datasize; 2281 double data[]; 2282}; 2283 2284struct named_init { 2285 int number; 2286 const wchar_t *name; 2287 double average; 2288}; 2289 2290typedef const char *ccp; 2291 2292static inline int 2293test_restrict (ccp restrict text) 2294{ 2295 // Iterate through items via the restricted pointer. 2296 // Also check for declarations in for loops. 2297 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2298 continue; 2299 return 0; 2300} 2301 2302// Check varargs and va_copy. 2303static bool 2304test_varargs (const char *format, ...) 2305{ 2306 va_list args; 2307 va_start (args, format); 2308 va_list args_copy; 2309 va_copy (args_copy, args); 2310 2311 const char *str = ""; 2312 int number = 0; 2313 float fnumber = 0; 2314 2315 while (*format) 2316 { 2317 switch (*format++) 2318 { 2319 case '\''s'\'': // string 2320 str = va_arg (args_copy, const char *); 2321 break; 2322 case '\''d'\'': // int 2323 number = va_arg (args_copy, int); 2324 break; 2325 case '\''f'\'': // float 2326 fnumber = va_arg (args_copy, double); 2327 break; 2328 default: 2329 break; 2330 } 2331 } 2332 va_end (args_copy); 2333 va_end (args); 2334 2335 return *str && number && fnumber; 2336} 2337' 2338 2339# Test code for whether the C compiler supports C99 (body of main). 2340ac_c_conftest_c99_main=' 2341 // Check bool. 2342 _Bool success = false; 2343 success |= (argc != 0); 2344 2345 // Check restrict. 2346 if (test_restrict ("String literal") == 0) 2347 success = true; 2348 char *restrict newvar = "Another string"; 2349 2350 // Check varargs. 2351 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2352 test_varargs_macros (); 2353 2354 // Check flexible array members. 2355 struct incomplete_array *ia = 2356 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2357 ia->datasize = 10; 2358 for (int i = 0; i < ia->datasize; ++i) 2359 ia->data[i] = i * 1.234; 2360 // Work around memory leak warnings. 2361 free (ia); 2362 2363 // Check named initializers. 2364 struct named_init ni = { 2365 .number = 34, 2366 .name = L"Test wide string", 2367 .average = 543.34343, 2368 }; 2369 2370 ni.number = 58; 2371 2372 int dynamic_array[ni.number]; 2373 dynamic_array[0] = argv[0][0]; 2374 dynamic_array[ni.number - 1] = 543; 2375 2376 // work around unused variable warnings 2377 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2378 || dynamic_array[ni.number - 1] != 543); 2379' 2380 2381# Test code for whether the C compiler supports C11 (global declarations) 2382ac_c_conftest_c11_globals=' 2383/* Does the compiler advertise C11 conformance? */ 2384#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2385# error "Compiler does not advertise C11 conformance" 2386#endif 2387 2388// Check _Alignas. 2389char _Alignas (double) aligned_as_double; 2390char _Alignas (0) no_special_alignment; 2391extern char aligned_as_int; 2392char _Alignas (0) _Alignas (int) aligned_as_int; 2393 2394// Check _Alignof. 2395enum 2396{ 2397 int_alignment = _Alignof (int), 2398 int_array_alignment = _Alignof (int[100]), 2399 char_alignment = _Alignof (char) 2400}; 2401_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2402 2403// Check _Noreturn. 2404int _Noreturn does_not_return (void) { for (;;) continue; } 2405 2406// Check _Static_assert. 2407struct test_static_assert 2408{ 2409 int x; 2410 _Static_assert (sizeof (int) <= sizeof (long int), 2411 "_Static_assert does not work in struct"); 2412 long int y; 2413}; 2414 2415// Check UTF-8 literals. 2416#define u8 syntax error! 2417char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2418 2419// Check duplicate typedefs. 2420typedef long *long_ptr; 2421typedef long int *long_ptr; 2422typedef long_ptr long_ptr; 2423 2424// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2425struct anonymous 2426{ 2427 union { 2428 struct { int i; int j; }; 2429 struct { int k; long int l; } w; 2430 }; 2431 int m; 2432} v1; 2433' 2434 2435# Test code for whether the C compiler supports C11 (body of main). 2436ac_c_conftest_c11_main=' 2437 _Static_assert ((offsetof (struct anonymous, i) 2438 == offsetof (struct anonymous, w.k)), 2439 "Anonymous union alignment botch"); 2440 v1.i = 2; 2441 v1.w.k = 5; 2442 ok |= v1.i != 5; 2443' 2444 2445# Test code for whether the C compiler supports C11 (complete). 2446ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2447${ac_c_conftest_c99_globals} 2448${ac_c_conftest_c11_globals} 2449 2450int 2451main (int argc, char **argv) 2452{ 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 ${ac_c_conftest_c99_main} 2456 ${ac_c_conftest_c11_main} 2457 return ok; 2458} 2459" 2460 2461# Test code for whether the C compiler supports C99 (complete). 2462ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2463${ac_c_conftest_c99_globals} 2464 2465int 2466main (int argc, char **argv) 2467{ 2468 int ok = 0; 2469 ${ac_c_conftest_c89_main} 2470 ${ac_c_conftest_c99_main} 2471 return ok; 2472} 2473" 2474 2475# Test code for whether the C compiler supports C89 (complete). 2476ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2477 2478int 2479main (int argc, char **argv) 2480{ 2481 int ok = 0; 2482 ${ac_c_conftest_c89_main} 2483 return ok; 2484} 2485" 2486 2487as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2488as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2489as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2490as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2491as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2492as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2493as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2494as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2495as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2496 2497# Auxiliary files required by this configure script. 2498ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2499 2500# Locations in which to look for auxiliary files. 2501ac_aux_dir_candidates="${srcdir}/." 2502 2503# Search for a directory containing all of the required auxiliary files, 2504# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2505# If we don't find one directory that contains all the files we need, 2506# we report the set of missing files from the *first* directory in 2507# $ac_aux_dir_candidates and give up. 2508ac_missing_aux_files="" 2509ac_first_candidate=: 2510printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2512as_found=false 2513for as_dir in $ac_aux_dir_candidates 2514do 2515 IFS=$as_save_IFS 2516 case $as_dir in #((( 2517 '') as_dir=./ ;; 2518 */) ;; 2519 *) as_dir=$as_dir/ ;; 2520 esac 2521 as_found=: 2522 2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2524 ac_aux_dir_found=yes 2525 ac_install_sh= 2526 for ac_aux in $ac_aux_files 2527 do 2528 # As a special case, if "install-sh" is required, that requirement 2529 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2530 # and $ac_install_sh is set appropriately for whichever one is found. 2531 if test x"$ac_aux" = x"install-sh" 2532 then 2533 if test -f "${as_dir}install-sh"; then 2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2535 ac_install_sh="${as_dir}install-sh -c" 2536 elif test -f "${as_dir}install.sh"; then 2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2538 ac_install_sh="${as_dir}install.sh -c" 2539 elif test -f "${as_dir}shtool"; then 2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2541 ac_install_sh="${as_dir}shtool install -c" 2542 else 2543 ac_aux_dir_found=no 2544 if $ac_first_candidate; then 2545 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2546 else 2547 break 2548 fi 2549 fi 2550 else 2551 if test -f "${as_dir}${ac_aux}"; then 2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2553 else 2554 ac_aux_dir_found=no 2555 if $ac_first_candidate; then 2556 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2557 else 2558 break 2559 fi 2560 fi 2561 fi 2562 done 2563 if test "$ac_aux_dir_found" = yes; then 2564 ac_aux_dir="$as_dir" 2565 break 2566 fi 2567 ac_first_candidate=false 2568 2569 as_found=false 2570done 2571IFS=$as_save_IFS 2572if $as_found 2573then : 2574 2575else case e in #( 2576 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2577esac 2578fi 2579 2580 2581# These three variables are undocumented and unsupported, 2582# and are intended to be withdrawn in a future Autoconf release. 2583# They can cause serious problems if a builder's source tree is in a directory 2584# whose full name contains unusual characters. 2585if test -f "${ac_aux_dir}config.guess"; then 2586 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2587fi 2588if test -f "${ac_aux_dir}config.sub"; then 2589 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2590fi 2591if test -f "$ac_aux_dir/configure"; then 2592 ac_configure="$SHELL ${ac_aux_dir}configure" 2593fi 2594 2595# Check that the precious variables saved in the cache have kept the same 2596# value. 2597ac_cache_corrupted=false 2598for ac_var in $ac_precious_vars; do 2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2600 eval ac_new_set=\$ac_env_${ac_var}_set 2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2602 eval ac_new_val=\$ac_env_${ac_var}_value 2603 case $ac_old_set,$ac_new_set in 2604 set,) 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2606printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2607 ac_cache_corrupted=: ;; 2608 ,set) 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2610printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2611 ac_cache_corrupted=: ;; 2612 ,);; 2613 *) 2614 if test "x$ac_old_val" != "x$ac_new_val"; then 2615 # differences in whitespace do not lead to failure. 2616 ac_old_val_w=`echo x $ac_old_val` 2617 ac_new_val_w=`echo x $ac_new_val` 2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2620printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2621 ac_cache_corrupted=: 2622 else 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2624printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2625 eval $ac_var=\$ac_old_val 2626 fi 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2628printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2630printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2631 fi;; 2632 esac 2633 # Pass precious variables to config.status. 2634 if test "$ac_new_set" = set; then 2635 case $ac_new_val in 2636 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2637 *) ac_arg=$ac_var=$ac_new_val ;; 2638 esac 2639 case " $ac_configure_args " in 2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2642 esac 2643 fi 2644done 2645if $ac_cache_corrupted; then 2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2647printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2649printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2650 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2651 and start over" "$LINENO" 5 2652fi 2653## -------------------- ## 2654## Main body of script. ## 2655## -------------------- ## 2656 2657ac_ext=c 2658ac_cpp='$CPP $CPPFLAGS' 2659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2661ac_compiler_gnu=$ac_cv_c_compiler_gnu 2662 2663 2664 2665ac_config_headers="$ac_config_headers config.h" 2666 2667 2668 2669# Initialize Automake 2670am__api_version='1.16' 2671 2672 2673 2674 # Find a good install program. We prefer a C program (faster), 2675# so one script is as good as another. But avoid the broken or 2676# incompatible versions: 2677# SysV /etc/install, /usr/sbin/install 2678# SunOS /usr/etc/install 2679# IRIX /sbin/install 2680# AIX /bin/install 2681# AmigaOS /C/install, which installs bootblocks on floppy discs 2682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2683# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2685# OS/2's system install, which has a completely different semantic 2686# ./install, which can be erroneously created by make from ./install.sh. 2687# Reject install programs that cannot install multiple files. 2688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2689printf %s "checking for a BSD-compatible install... " >&6; } 2690if test -z "$INSTALL"; then 2691if test ${ac_cv_path_install+y} 2692then : 2693 printf %s "(cached) " >&6 2694else case e in #( 2695 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 case $as_dir in #((( 2700 '') as_dir=./ ;; 2701 */) ;; 2702 *) as_dir=$as_dir/ ;; 2703 esac 2704 # Account for fact that we put trailing slashes in our PATH walk. 2705case $as_dir in #(( 2706 ./ | /[cC]/* | \ 2707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2708 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2709 /usr/ucb/* ) ;; 2710 *) 2711 # OSF1 and SCO ODT 3.0 have their own names for install. 2712 # Don't use installbsd from OSF since it installs stuff as root 2713 # by default. 2714 for ac_prog in ginstall scoinst install; do 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2717 if test $ac_prog = install && 2718 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2719 # AIX install. It has an incompatible calling convention. 2720 : 2721 elif test $ac_prog = install && 2722 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2723 # program-specific install script used by HP pwplus--don't use. 2724 : 2725 else 2726 rm -rf conftest.one conftest.two conftest.dir 2727 echo one > conftest.one 2728 echo two > conftest.two 2729 mkdir conftest.dir 2730 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2731 test -s conftest.one && test -s conftest.two && 2732 test -s conftest.dir/conftest.one && 2733 test -s conftest.dir/conftest.two 2734 then 2735 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2736 break 3 2737 fi 2738 fi 2739 fi 2740 done 2741 done 2742 ;; 2743esac 2744 2745 done 2746IFS=$as_save_IFS 2747 2748rm -rf conftest.one conftest.two conftest.dir 2749 ;; 2750esac 2751fi 2752 if test ${ac_cv_path_install+y}; then 2753 INSTALL=$ac_cv_path_install 2754 else 2755 # As a last resort, use the slow shell script. Don't cache a 2756 # value for INSTALL within a source directory, because that will 2757 # break other packages using the cache if that directory is 2758 # removed, or if the value is a relative name. 2759 INSTALL=$ac_install_sh 2760 fi 2761fi 2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2763printf "%s\n" "$INSTALL" >&6; } 2764 2765# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2766# It thinks the first close brace ends the variable substitution. 2767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2768 2769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2770 2771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2772 2773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2774printf %s "checking whether build environment is sane... " >&6; } 2775# Reject unsafe characters in $srcdir or the absolute working directory 2776# name. Accept space and tab only in the latter. 2777am_lf=' 2778' 2779case `pwd` in 2780 *[\\\"\#\$\&\'\`$am_lf]*) 2781 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2782esac 2783case $srcdir in 2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2785 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2786esac 2787 2788# Do 'set' in a subshell so we don't clobber the current shell's 2789# arguments. Must try -L first in case configure is actually a 2790# symlink; some systems play weird games with the mod time of symlinks 2791# (eg FreeBSD returns the mod time of the symlink's containing 2792# directory). 2793if ( 2794 am_has_slept=no 2795 for am_try in 1 2; do 2796 echo "timestamp, slept: $am_has_slept" > conftest.file 2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2798 if test "$*" = "X"; then 2799 # -L didn't work. 2800 set X `ls -t "$srcdir/configure" conftest.file` 2801 fi 2802 if test "$*" != "X $srcdir/configure conftest.file" \ 2803 && test "$*" != "X conftest.file $srcdir/configure"; then 2804 2805 # If neither matched, then we have a broken ls. This can happen 2806 # if, for instance, CONFIG_SHELL is bash and it inherits a 2807 # broken ls alias from the environment. This has actually 2808 # happened. Such a system could not be considered "sane". 2809 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2810 alias in your environment" "$LINENO" 5 2811 fi 2812 if test "$2" = conftest.file || test $am_try -eq 2; then 2813 break 2814 fi 2815 # Just in case. 2816 sleep 1 2817 am_has_slept=yes 2818 done 2819 test "$2" = conftest.file 2820 ) 2821then 2822 # Ok. 2823 : 2824else 2825 as_fn_error $? "newly created file is older than distributed files! 2826Check your system clock" "$LINENO" 5 2827fi 2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2829printf "%s\n" "yes" >&6; } 2830# If we didn't sleep, we still need to ensure time stamps of config.status and 2831# generated files are strictly newer. 2832am_sleep_pid= 2833if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2834 ( sleep 1 ) & 2835 am_sleep_pid=$! 2836fi 2837 2838rm -f conftest.file 2839 2840test "$program_prefix" != NONE && 2841 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2842# Use a double $ so make ignores it. 2843test "$program_suffix" != NONE && 2844 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2845# Double any \ or $. 2846# By default was 's,x,x', remove it if useless. 2847ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2848program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2849 2850 2851# Expand $ac_aux_dir to an absolute path. 2852am_aux_dir=`cd "$ac_aux_dir" && pwd` 2853 2854 2855 if test x"${MISSING+set}" != xset; then 2856 MISSING="\${SHELL} '$am_aux_dir/missing'" 2857fi 2858# Use eval to expand $SHELL 2859if eval "$MISSING --is-lightweight"; then 2860 am_missing_run="$MISSING " 2861else 2862 am_missing_run= 2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2864printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2865fi 2866 2867if test x"${install_sh+set}" != xset; then 2868 case $am_aux_dir in 2869 *\ * | *\ *) 2870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2871 *) 2872 install_sh="\${SHELL} $am_aux_dir/install-sh" 2873 esac 2874fi 2875 2876# Installed binaries are usually stripped using 'strip' when the user 2877# run "make install-strip". However 'strip' might not be the right 2878# tool to use in cross-compilation environments, therefore Automake 2879# will honor the 'STRIP' environment variable to overrule this program. 2880if test "$cross_compiling" != no; then 2881 if test -n "$ac_tool_prefix"; then 2882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2883set dummy ${ac_tool_prefix}strip; ac_word=$2 2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885printf %s "checking for $ac_word... " >&6; } 2886if test ${ac_cv_prog_STRIP+y} 2887then : 2888 printf %s "(cached) " >&6 2889else case e in #( 2890 e) if test -n "$STRIP"; then 2891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 case $as_dir in #((( 2898 '') as_dir=./ ;; 2899 */) ;; 2900 *) as_dir=$as_dir/ ;; 2901 esac 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2904 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909 done 2910IFS=$as_save_IFS 2911 2912fi ;; 2913esac 2914fi 2915STRIP=$ac_cv_prog_STRIP 2916if test -n "$STRIP"; then 2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2918printf "%s\n" "$STRIP" >&6; } 2919else 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921printf "%s\n" "no" >&6; } 2922fi 2923 2924 2925fi 2926if test -z "$ac_cv_prog_STRIP"; then 2927 ac_ct_STRIP=$STRIP 2928 # Extract the first word of "strip", so it can be a program name with args. 2929set dummy strip; ac_word=$2 2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931printf %s "checking for $ac_word... " >&6; } 2932if test ${ac_cv_prog_ac_ct_STRIP+y} 2933then : 2934 printf %s "(cached) " >&6 2935else case e in #( 2936 e) if test -n "$ac_ct_STRIP"; then 2937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2938else 2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940for as_dir in $PATH 2941do 2942 IFS=$as_save_IFS 2943 case $as_dir in #((( 2944 '') as_dir=./ ;; 2945 */) ;; 2946 *) as_dir=$as_dir/ ;; 2947 esac 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2950 ac_cv_prog_ac_ct_STRIP="strip" 2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2952 break 2 2953 fi 2954done 2955 done 2956IFS=$as_save_IFS 2957 2958fi ;; 2959esac 2960fi 2961ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2962if test -n "$ac_ct_STRIP"; then 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2964printf "%s\n" "$ac_ct_STRIP" >&6; } 2965else 2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967printf "%s\n" "no" >&6; } 2968fi 2969 2970 if test "x$ac_ct_STRIP" = x; then 2971 STRIP=":" 2972 else 2973 case $cross_compiling:$ac_tool_warned in 2974yes:) 2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2976printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2977ac_tool_warned=yes ;; 2978esac 2979 STRIP=$ac_ct_STRIP 2980 fi 2981else 2982 STRIP="$ac_cv_prog_STRIP" 2983fi 2984 2985fi 2986INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2987 2988 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2990printf %s "checking for a race-free mkdir -p... " >&6; } 2991if test -z "$MKDIR_P"; then 2992 if test ${ac_cv_path_mkdir+y} 2993then : 2994 printf %s "(cached) " >&6 2995else case e in #( 2996 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2998do 2999 IFS=$as_save_IFS 3000 case $as_dir in #((( 3001 '') as_dir=./ ;; 3002 */) ;; 3003 *) as_dir=$as_dir/ ;; 3004 esac 3005 for ac_prog in mkdir gmkdir; do 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3008 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3009 'mkdir ('*'coreutils) '* | \ 3010 *'BusyBox '* | \ 3011 'mkdir (fileutils) '4.1*) 3012 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3013 break 3;; 3014 esac 3015 done 3016 done 3017 done 3018IFS=$as_save_IFS 3019 ;; 3020esac 3021fi 3022 3023 test -d ./--version && rmdir ./--version 3024 if test ${ac_cv_path_mkdir+y}; then 3025 MKDIR_P="$ac_cv_path_mkdir -p" 3026 else 3027 # As a last resort, use plain mkdir -p, 3028 # in the hope it doesn't have the bugs of ancient mkdir. 3029 MKDIR_P='mkdir -p' 3030 fi 3031fi 3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3033printf "%s\n" "$MKDIR_P" >&6; } 3034 3035for ac_prog in gawk mawk nawk awk 3036do 3037 # Extract the first word of "$ac_prog", so it can be a program name with args. 3038set dummy $ac_prog; ac_word=$2 3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3040printf %s "checking for $ac_word... " >&6; } 3041if test ${ac_cv_prog_AWK+y} 3042then : 3043 printf %s "(cached) " >&6 3044else case e in #( 3045 e) if test -n "$AWK"; then 3046 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 case $as_dir in #((( 3053 '') as_dir=./ ;; 3054 */) ;; 3055 *) as_dir=$as_dir/ ;; 3056 esac 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3059 ac_cv_prog_AWK="$ac_prog" 3060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi ;; 3068esac 3069fi 3070AWK=$ac_cv_prog_AWK 3071if test -n "$AWK"; then 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3073printf "%s\n" "$AWK" >&6; } 3074else 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076printf "%s\n" "no" >&6; } 3077fi 3078 3079 3080 test -n "$AWK" && break 3081done 3082 3083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3084printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3085set x ${MAKE-make} 3086ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3087if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3088then : 3089 printf %s "(cached) " >&6 3090else case e in #( 3091 e) cat >conftest.make <<\_ACEOF 3092SHELL = /bin/sh 3093all: 3094 @echo '@@@%%%=$(MAKE)=@@@%%%' 3095_ACEOF 3096# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3097case `${MAKE-make} -f conftest.make 2>/dev/null` in 3098 *@@@%%%=?*=@@@%%%*) 3099 eval ac_cv_prog_make_${ac_make}_set=yes;; 3100 *) 3101 eval ac_cv_prog_make_${ac_make}_set=no;; 3102esac 3103rm -f conftest.make ;; 3104esac 3105fi 3106if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3108printf "%s\n" "yes" >&6; } 3109 SET_MAKE= 3110else 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112printf "%s\n" "no" >&6; } 3113 SET_MAKE="MAKE=${MAKE-make}" 3114fi 3115 3116rm -rf .tst 2>/dev/null 3117mkdir .tst 2>/dev/null 3118if test -d .tst; then 3119 am__leading_dot=. 3120else 3121 am__leading_dot=_ 3122fi 3123rmdir .tst 2>/dev/null 3124 3125# Check whether --enable-silent-rules was given. 3126if test ${enable_silent_rules+y} 3127then : 3128 enableval=$enable_silent_rules; 3129fi 3130 3131case $enable_silent_rules in # ((( 3132 yes) AM_DEFAULT_VERBOSITY=0;; 3133 no) AM_DEFAULT_VERBOSITY=1;; 3134 *) AM_DEFAULT_VERBOSITY=1;; 3135esac 3136am_make=${MAKE-make} 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3138printf %s "checking whether $am_make supports nested variables... " >&6; } 3139if test ${am_cv_make_support_nested_variables+y} 3140then : 3141 printf %s "(cached) " >&6 3142else case e in #( 3143 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3144BAR0=false 3145BAR1=true 3146V=1 3147am__doit: 3148 @$(TRUE) 3149.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3150 am_cv_make_support_nested_variables=yes 3151else 3152 am_cv_make_support_nested_variables=no 3153fi ;; 3154esac 3155fi 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3157printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3158if test $am_cv_make_support_nested_variables = yes; then 3159 AM_V='$(V)' 3160 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3161else 3162 AM_V=$AM_DEFAULT_VERBOSITY 3163 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3164fi 3165AM_BACKSLASH='\' 3166 3167if test "`cd $srcdir && pwd`" != "`pwd`"; then 3168 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3169 # is not polluted with repeated "-I." 3170 am__isrc=' -I$(srcdir)' 3171 # test to see if srcdir already configured 3172 if test -f $srcdir/config.status; then 3173 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3174 fi 3175fi 3176 3177# test whether we have cygpath 3178if test -z "$CYGPATH_W"; then 3179 if (cygpath --version) >/dev/null 2>/dev/null; then 3180 CYGPATH_W='cygpath -w' 3181 else 3182 CYGPATH_W=echo 3183 fi 3184fi 3185 3186 3187# Define the identity of the package. 3188 PACKAGE='xf86-video-savage' 3189 VERSION='2.4.1' 3190 3191 3192printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3193 3194 3195printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3196 3197# Some tools Automake needs. 3198 3199ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3200 3201 3202AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3203 3204 3205AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3206 3207 3208AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3209 3210 3211MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3212 3213# For better backward compatibility. To be removed once Automake 1.9.x 3214# dies out for good. For more background, see: 3215# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3216# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3217mkdir_p='$(MKDIR_P)' 3218 3219# We need awk for the "check" target (and possibly the TAP driver). The 3220# system "awk" is bad on some platforms. 3221# Always define AMTAR for backward compatibility. Yes, it's still used 3222# in the wild :-( We should find a proper way to deprecate it ... 3223AMTAR='$${TAR-tar}' 3224 3225 3226# We'll loop over all known methods to create a tar archive until one works. 3227_am_tools='gnutar pax cpio none' 3228 3229am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3230 3231 3232 3233 3234 3235# Variables for tags utilities; see am/tags.am 3236if test -z "$CTAGS"; then 3237 CTAGS=ctags 3238fi 3239 3240if test -z "$ETAGS"; then 3241 ETAGS=etags 3242fi 3243 3244if test -z "$CSCOPE"; then 3245 CSCOPE=cscope 3246fi 3247 3248 3249 3250# POSIX will say in a future version that running "rm -f" with no argument 3251# is OK; and we want to be able to make that assumption in our Makefile 3252# recipes. So use an aggressive probe to check that the usage we want is 3253# actually supported "in the wild" to an acceptable degree. 3254# See automake bug#10828. 3255# To make any issue more visible, cause the running configure to be aborted 3256# by default if the 'rm' program in use doesn't match our expectations; the 3257# user can still override this though. 3258if rm -f && rm -fr && rm -rf; then : OK; else 3259 cat >&2 <<'END' 3260Oops! 3261 3262Your 'rm' program seems unable to run without file operands specified 3263on the command line, even when the '-f' option is present. This is contrary 3264to the behaviour of most rm programs out there, and not conforming with 3265the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3266 3267Please tell bug-automake@gnu.org about your system, including the value 3268of your $PATH and any error possibly output before this message. This 3269can help us improve future automake versions. 3270 3271END 3272 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3273 echo 'Configuration will proceed anyway, since you have set the' >&2 3274 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3275 echo >&2 3276 else 3277 cat >&2 <<'END' 3278Aborting the configuration process, to ensure you take notice of the issue. 3279 3280You can download and install GNU coreutils to get an 'rm' implementation 3281that behaves properly: <https://www.gnu.org/software/coreutils/>. 3282 3283If you want to complete the configuration process using your problematic 3284'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3285to "yes", and re-run configure. 3286 3287END 3288 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3289 fi 3290fi 3291 3292 3293# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314DEPDIR="${am__leading_dot}deps" 3315 3316ac_config_commands="$ac_config_commands depfiles" 3317 3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3319printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3320cat > confinc.mk << 'END' 3321am__doit: 3322 @echo this is the am__doit target >confinc.out 3323.PHONY: am__doit 3324END 3325am__include="#" 3326am__quote= 3327# BSD make does it like this. 3328echo '.include "confinc.mk" # ignored' > confmf.BSD 3329# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3330echo 'include confinc.mk # ignored' > confmf.GNU 3331_am_result=no 3332for s in GNU BSD; do 3333 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3334 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3335 ac_status=$? 3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 (exit $ac_status); } 3338 case $?:`cat confinc.out 2>/dev/null` in #( 3339 '0:this is the am__doit target') : 3340 case $s in #( 3341 BSD) : 3342 am__include='.include' am__quote='"' ;; #( 3343 *) : 3344 am__include='include' am__quote='' ;; 3345esac ;; #( 3346 *) : 3347 ;; 3348esac 3349 if test "$am__include" != "#"; then 3350 _am_result="yes ($s style)" 3351 break 3352 fi 3353done 3354rm -f confinc.* confmf.* 3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3356printf "%s\n" "${_am_result}" >&6; } 3357 3358# Check whether --enable-dependency-tracking was given. 3359if test ${enable_dependency_tracking+y} 3360then : 3361 enableval=$enable_dependency_tracking; 3362fi 3363 3364if test "x$enable_dependency_tracking" != xno; then 3365 am_depcomp="$ac_aux_dir/depcomp" 3366 AMDEPBACKSLASH='\' 3367 am__nodep='_no' 3368fi 3369 if test "x$enable_dependency_tracking" != xno; then 3370 AMDEP_TRUE= 3371 AMDEP_FALSE='#' 3372else 3373 AMDEP_TRUE='#' 3374 AMDEP_FALSE= 3375fi 3376 3377 3378ac_ext=c 3379ac_cpp='$CPP $CPPFLAGS' 3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3382ac_compiler_gnu=$ac_cv_c_compiler_gnu 3383if test -n "$ac_tool_prefix"; then 3384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3385set dummy ${ac_tool_prefix}gcc; ac_word=$2 3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3387printf %s "checking for $ac_word... " >&6; } 3388if test ${ac_cv_prog_CC+y} 3389then : 3390 printf %s "(cached) " >&6 3391else case e in #( 3392 e) if test -n "$CC"; then 3393 ac_cv_prog_CC="$CC" # Let the user override the test. 3394else 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 case $as_dir in #((( 3400 '') as_dir=./ ;; 3401 */) ;; 3402 *) as_dir=$as_dir/ ;; 3403 esac 3404 for ac_exec_ext in '' $ac_executable_extensions; do 3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3406 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3408 break 2 3409 fi 3410done 3411 done 3412IFS=$as_save_IFS 3413 3414fi ;; 3415esac 3416fi 3417CC=$ac_cv_prog_CC 3418if test -n "$CC"; then 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3420printf "%s\n" "$CC" >&6; } 3421else 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3423printf "%s\n" "no" >&6; } 3424fi 3425 3426 3427fi 3428if test -z "$ac_cv_prog_CC"; then 3429 ac_ct_CC=$CC 3430 # Extract the first word of "gcc", so it can be a program name with args. 3431set dummy gcc; ac_word=$2 3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3433printf %s "checking for $ac_word... " >&6; } 3434if test ${ac_cv_prog_ac_ct_CC+y} 3435then : 3436 printf %s "(cached) " >&6 3437else case e in #( 3438 e) if test -n "$ac_ct_CC"; then 3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 case $as_dir in #((( 3446 '') as_dir=./ ;; 3447 */) ;; 3448 *) as_dir=$as_dir/ ;; 3449 esac 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_ac_ct_CC="gcc" 3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi ;; 3461esac 3462fi 3463ac_ct_CC=$ac_cv_prog_ac_ct_CC 3464if test -n "$ac_ct_CC"; then 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3466printf "%s\n" "$ac_ct_CC" >&6; } 3467else 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3469printf "%s\n" "no" >&6; } 3470fi 3471 3472 if test "x$ac_ct_CC" = x; then 3473 CC="" 3474 else 3475 case $cross_compiling:$ac_tool_warned in 3476yes:) 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3478printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3479ac_tool_warned=yes ;; 3480esac 3481 CC=$ac_ct_CC 3482 fi 3483else 3484 CC="$ac_cv_prog_CC" 3485fi 3486 3487if test -z "$CC"; then 3488 if test -n "$ac_tool_prefix"; then 3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3490set dummy ${ac_tool_prefix}cc; ac_word=$2 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492printf %s "checking for $ac_word... " >&6; } 3493if test ${ac_cv_prog_CC+y} 3494then : 3495 printf %s "(cached) " >&6 3496else case e in #( 3497 e) if test -n "$CC"; then 3498 ac_cv_prog_CC="$CC" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 case $as_dir in #((( 3505 '') as_dir=./ ;; 3506 */) ;; 3507 *) as_dir=$as_dir/ ;; 3508 esac 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3511 ac_cv_prog_CC="${ac_tool_prefix}cc" 3512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519fi ;; 3520esac 3521fi 3522CC=$ac_cv_prog_CC 3523if test -n "$CC"; then 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525printf "%s\n" "$CC" >&6; } 3526else 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528printf "%s\n" "no" >&6; } 3529fi 3530 3531 3532 fi 3533fi 3534if test -z "$CC"; then 3535 # Extract the first word of "cc", so it can be a program name with args. 3536set dummy cc; ac_word=$2 3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3538printf %s "checking for $ac_word... " >&6; } 3539if test ${ac_cv_prog_CC+y} 3540then : 3541 printf %s "(cached) " >&6 3542else case e in #( 3543 e) if test -n "$CC"; then 3544 ac_cv_prog_CC="$CC" # Let the user override the test. 3545else 3546 ac_prog_rejected=no 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 case $as_dir in #((( 3552 '') as_dir=./ ;; 3553 */) ;; 3554 *) as_dir=$as_dir/ ;; 3555 esac 3556 for ac_exec_ext in '' $ac_executable_extensions; do 3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3558 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3559 ac_prog_rejected=yes 3560 continue 3561 fi 3562 ac_cv_prog_CC="cc" 3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566done 3567 done 3568IFS=$as_save_IFS 3569 3570if test $ac_prog_rejected = yes; then 3571 # We found a bogon in the path, so make sure we never use it. 3572 set dummy $ac_cv_prog_CC 3573 shift 3574 if test $# != 0; then 3575 # We chose a different compiler from the bogus one. 3576 # However, it has the same basename, so the bogon will be chosen 3577 # first if we set CC to just the basename; use the full file name. 3578 shift 3579 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3580 fi 3581fi 3582fi ;; 3583esac 3584fi 3585CC=$ac_cv_prog_CC 3586if test -n "$CC"; then 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3588printf "%s\n" "$CC" >&6; } 3589else 3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3591printf "%s\n" "no" >&6; } 3592fi 3593 3594 3595fi 3596if test -z "$CC"; then 3597 if test -n "$ac_tool_prefix"; then 3598 for ac_prog in cl.exe 3599 do 3600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3601set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3603printf %s "checking for $ac_word... " >&6; } 3604if test ${ac_cv_prog_CC+y} 3605then : 3606 printf %s "(cached) " >&6 3607else case e in #( 3608 e) if test -n "$CC"; then 3609 ac_cv_prog_CC="$CC" # Let the user override the test. 3610else 3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612for as_dir in $PATH 3613do 3614 IFS=$as_save_IFS 3615 case $as_dir in #((( 3616 '') as_dir=./ ;; 3617 */) ;; 3618 *) as_dir=$as_dir/ ;; 3619 esac 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3624 break 2 3625 fi 3626done 3627 done 3628IFS=$as_save_IFS 3629 3630fi ;; 3631esac 3632fi 3633CC=$ac_cv_prog_CC 3634if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636printf "%s\n" "$CC" >&6; } 3637else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639printf "%s\n" "no" >&6; } 3640fi 3641 3642 3643 test -n "$CC" && break 3644 done 3645fi 3646if test -z "$CC"; then 3647 ac_ct_CC=$CC 3648 for ac_prog in cl.exe 3649do 3650 # Extract the first word of "$ac_prog", so it can be a program name with args. 3651set dummy $ac_prog; ac_word=$2 3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3653printf %s "checking for $ac_word... " >&6; } 3654if test ${ac_cv_prog_ac_ct_CC+y} 3655then : 3656 printf %s "(cached) " >&6 3657else case e in #( 3658 e) if test -n "$ac_ct_CC"; then 3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3660else 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 case $as_dir in #((( 3666 '') as_dir=./ ;; 3667 */) ;; 3668 *) as_dir=$as_dir/ ;; 3669 esac 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3672 ac_cv_prog_ac_ct_CC="$ac_prog" 3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676done 3677 done 3678IFS=$as_save_IFS 3679 3680fi ;; 3681esac 3682fi 3683ac_ct_CC=$ac_cv_prog_ac_ct_CC 3684if test -n "$ac_ct_CC"; then 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3686printf "%s\n" "$ac_ct_CC" >&6; } 3687else 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3689printf "%s\n" "no" >&6; } 3690fi 3691 3692 3693 test -n "$ac_ct_CC" && break 3694done 3695 3696 if test "x$ac_ct_CC" = x; then 3697 CC="" 3698 else 3699 case $cross_compiling:$ac_tool_warned in 3700yes:) 3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3703ac_tool_warned=yes ;; 3704esac 3705 CC=$ac_ct_CC 3706 fi 3707fi 3708 3709fi 3710if test -z "$CC"; then 3711 if test -n "$ac_tool_prefix"; then 3712 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3713set dummy ${ac_tool_prefix}clang; ac_word=$2 3714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3715printf %s "checking for $ac_word... " >&6; } 3716if test ${ac_cv_prog_CC+y} 3717then : 3718 printf %s "(cached) " >&6 3719else case e in #( 3720 e) if test -n "$CC"; then 3721 ac_cv_prog_CC="$CC" # Let the user override the test. 3722else 3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH 3725do 3726 IFS=$as_save_IFS 3727 case $as_dir in #((( 3728 '') as_dir=./ ;; 3729 */) ;; 3730 *) as_dir=$as_dir/ ;; 3731 esac 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3734 ac_cv_prog_CC="${ac_tool_prefix}clang" 3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3736 break 2 3737 fi 3738done 3739 done 3740IFS=$as_save_IFS 3741 3742fi ;; 3743esac 3744fi 3745CC=$ac_cv_prog_CC 3746if test -n "$CC"; then 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3748printf "%s\n" "$CC" >&6; } 3749else 3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751printf "%s\n" "no" >&6; } 3752fi 3753 3754 3755fi 3756if test -z "$ac_cv_prog_CC"; then 3757 ac_ct_CC=$CC 3758 # Extract the first word of "clang", so it can be a program name with args. 3759set dummy clang; ac_word=$2 3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3761printf %s "checking for $ac_word... " >&6; } 3762if test ${ac_cv_prog_ac_ct_CC+y} 3763then : 3764 printf %s "(cached) " >&6 3765else case e in #( 3766 e) if test -n "$ac_ct_CC"; then 3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3768else 3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770for as_dir in $PATH 3771do 3772 IFS=$as_save_IFS 3773 case $as_dir in #((( 3774 '') as_dir=./ ;; 3775 */) ;; 3776 *) as_dir=$as_dir/ ;; 3777 esac 3778 for ac_exec_ext in '' $ac_executable_extensions; do 3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3780 ac_cv_prog_ac_ct_CC="clang" 3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3782 break 2 3783 fi 3784done 3785 done 3786IFS=$as_save_IFS 3787 3788fi ;; 3789esac 3790fi 3791ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792if test -n "$ac_ct_CC"; then 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794printf "%s\n" "$ac_ct_CC" >&6; } 3795else 3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797printf "%s\n" "no" >&6; } 3798fi 3799 3800 if test "x$ac_ct_CC" = x; then 3801 CC="" 3802 else 3803 case $cross_compiling:$ac_tool_warned in 3804yes:) 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3806printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3807ac_tool_warned=yes ;; 3808esac 3809 CC=$ac_ct_CC 3810 fi 3811else 3812 CC="$ac_cv_prog_CC" 3813fi 3814 3815fi 3816 3817 3818test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3819printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3820as_fn_error $? "no acceptable C compiler found in \$PATH 3821See 'config.log' for more details" "$LINENO" 5; } 3822 3823# Provide some information about the compiler. 3824printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3825set X $ac_compile 3826ac_compiler=$2 3827for ac_option in --version -v -V -qversion -version; do 3828 { { ac_try="$ac_compiler $ac_option >&5" 3829case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834printf "%s\n" "$ac_try_echo"; } >&5 3835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3836 ac_status=$? 3837 if test -s conftest.err; then 3838 sed '10a\ 3839... rest of stderr output deleted ... 3840 10q' conftest.err >conftest.er1 3841 cat conftest.er1 >&5 3842 fi 3843 rm -f conftest.er1 conftest.err 3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3845 test $ac_status = 0; } 3846done 3847 3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850 3851int 3852main (void) 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859ac_clean_files_save=$ac_clean_files 3860ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3861# Try to create an executable without -o first, disregard a.out. 3862# It will help us diagnose broken compilers, and finding out an intuition 3863# of exeext. 3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3865printf %s "checking whether the C compiler works... " >&6; } 3866ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3867 3868# The possible output files: 3869ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3870 3871ac_rmfiles= 3872for ac_file in $ac_files 3873do 3874 case $ac_file in 3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3876 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3877 esac 3878done 3879rm -f $ac_rmfiles 3880 3881if { { ac_try="$ac_link_default" 3882case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887printf "%s\n" "$ac_try_echo"; } >&5 3888 (eval "$ac_link_default") 2>&5 3889 ac_status=$? 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3891 test $ac_status = 0; } 3892then : 3893 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3894# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3895# in a Makefile. We should not override ac_cv_exeext if it was cached, 3896# so that the user can short-circuit this test for compilers unknown to 3897# Autoconf. 3898for ac_file in $ac_files '' 3899do 3900 test -f "$ac_file" || continue 3901 case $ac_file in 3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3903 ;; 3904 [ab].out ) 3905 # We found the default executable, but exeext='' is most 3906 # certainly right. 3907 break;; 3908 *.* ) 3909 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3910 then :; else 3911 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3912 fi 3913 # We set ac_cv_exeext here because the later test for it is not 3914 # safe: cross compilers may not add the suffix if given an '-o' 3915 # argument, so we may need to know it at that point already. 3916 # Even if this section looks crufty: it has the advantage of 3917 # actually working. 3918 break;; 3919 * ) 3920 break;; 3921 esac 3922done 3923test "$ac_cv_exeext" = no && ac_cv_exeext= 3924 3925else case e in #( 3926 e) ac_file='' ;; 3927esac 3928fi 3929if test -z "$ac_file" 3930then : 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3932printf "%s\n" "no" >&6; } 3933printf "%s\n" "$as_me: failed program was:" >&5 3934sed 's/^/| /' conftest.$ac_ext >&5 3935 3936{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3937printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3938as_fn_error 77 "C compiler cannot create executables 3939See 'config.log' for more details" "$LINENO" 5; } 3940else case e in #( 3941 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3942printf "%s\n" "yes" >&6; } ;; 3943esac 3944fi 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3946printf %s "checking for C compiler default output file name... " >&6; } 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3948printf "%s\n" "$ac_file" >&6; } 3949ac_exeext=$ac_cv_exeext 3950 3951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3952ac_clean_files=$ac_clean_files_save 3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3954printf %s "checking for suffix of executables... " >&6; } 3955if { { ac_try="$ac_link" 3956case "(($ac_try" in 3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3958 *) ac_try_echo=$ac_try;; 3959esac 3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3961printf "%s\n" "$ac_try_echo"; } >&5 3962 (eval "$ac_link") 2>&5 3963 ac_status=$? 3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3965 test $ac_status = 0; } 3966then : 3967 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3968# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3969# work properly (i.e., refer to 'conftest.exe'), while it won't with 3970# 'rm'. 3971for ac_file in conftest.exe conftest conftest.*; do 3972 test -f "$ac_file" || continue 3973 case $ac_file in 3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3976 break;; 3977 * ) break;; 3978 esac 3979done 3980else case e in #( 3981 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3982printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3983as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3984See 'config.log' for more details" "$LINENO" 5; } ;; 3985esac 3986fi 3987rm -f conftest conftest$ac_cv_exeext 3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3989printf "%s\n" "$ac_cv_exeext" >&6; } 3990 3991rm -f conftest.$ac_ext 3992EXEEXT=$ac_cv_exeext 3993ac_exeext=$EXEEXT 3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996#include <stdio.h> 3997int 3998main (void) 3999{ 4000FILE *f = fopen ("conftest.out", "w"); 4001 if (!f) 4002 return 1; 4003 return ferror (f) || fclose (f) != 0; 4004 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009ac_clean_files="$ac_clean_files conftest.out" 4010# Check that the compiler produces executables we can run. If not, either 4011# the compiler is broken, or we cross compile. 4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4013printf %s "checking whether we are cross compiling... " >&6; } 4014if test "$cross_compiling" != yes; then 4015 { { ac_try="$ac_link" 4016case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019esac 4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021printf "%s\n" "$ac_try_echo"; } >&5 4022 (eval "$ac_link") 2>&5 4023 ac_status=$? 4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; } 4026 if { ac_try='./conftest$ac_cv_exeext' 4027 { { case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030esac 4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032printf "%s\n" "$ac_try_echo"; } >&5 4033 (eval "$ac_try") 2>&5 4034 ac_status=$? 4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4036 test $ac_status = 0; }; }; then 4037 cross_compiling=no 4038 else 4039 if test "$cross_compiling" = maybe; then 4040 cross_compiling=yes 4041 else 4042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4043printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4044as_fn_error 77 "cannot run C compiled programs. 4045If you meant to cross compile, use '--host'. 4046See 'config.log' for more details" "$LINENO" 5; } 4047 fi 4048 fi 4049fi 4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4051printf "%s\n" "$cross_compiling" >&6; } 4052 4053rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4054 conftest.o conftest.obj conftest.out 4055ac_clean_files=$ac_clean_files_save 4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4057printf %s "checking for suffix of object files... " >&6; } 4058if test ${ac_cv_objext+y} 4059then : 4060 printf %s "(cached) " >&6 4061else case e in #( 4062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063/* end confdefs.h. */ 4064 4065int 4066main (void) 4067{ 4068 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073rm -f conftest.o conftest.obj 4074if { { ac_try="$ac_compile" 4075case "(($ac_try" in 4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4077 *) ac_try_echo=$ac_try;; 4078esac 4079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4080printf "%s\n" "$ac_try_echo"; } >&5 4081 (eval "$ac_compile") 2>&5 4082 ac_status=$? 4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4084 test $ac_status = 0; } 4085then : 4086 for ac_file in conftest.o conftest.obj conftest.*; do 4087 test -f "$ac_file" || continue; 4088 case $ac_file in 4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4091 break;; 4092 esac 4093done 4094else case e in #( 4095 e) printf "%s\n" "$as_me: failed program was:" >&5 4096sed 's/^/| /' conftest.$ac_ext >&5 4097 4098{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4099printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4100as_fn_error $? "cannot compute suffix of object files: cannot compile 4101See 'config.log' for more details" "$LINENO" 5; } ;; 4102esac 4103fi 4104rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4105esac 4106fi 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4108printf "%s\n" "$ac_cv_objext" >&6; } 4109OBJEXT=$ac_cv_objext 4110ac_objext=$OBJEXT 4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4112printf %s "checking whether the compiler supports GNU C... " >&6; } 4113if test ${ac_cv_c_compiler_gnu+y} 4114then : 4115 printf %s "(cached) " >&6 4116else case e in #( 4117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119 4120int 4121main (void) 4122{ 4123#ifndef __GNUC__ 4124 choke me 4125#endif 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO" 4132then : 4133 ac_compiler_gnu=yes 4134else case e in #( 4135 e) ac_compiler_gnu=no ;; 4136esac 4137fi 4138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4139ac_cv_c_compiler_gnu=$ac_compiler_gnu 4140 ;; 4141esac 4142fi 4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4144printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4145ac_compiler_gnu=$ac_cv_c_compiler_gnu 4146 4147if test $ac_compiler_gnu = yes; then 4148 GCC=yes 4149else 4150 GCC= 4151fi 4152ac_test_CFLAGS=${CFLAGS+y} 4153ac_save_CFLAGS=$CFLAGS 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4155printf %s "checking whether $CC accepts -g... " >&6; } 4156if test ${ac_cv_prog_cc_g+y} 4157then : 4158 printf %s "(cached) " >&6 4159else case e in #( 4160 e) ac_save_c_werror_flag=$ac_c_werror_flag 4161 ac_c_werror_flag=yes 4162 ac_cv_prog_cc_g=no 4163 CFLAGS="-g" 4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4165/* end confdefs.h. */ 4166 4167int 4168main (void) 4169{ 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175if ac_fn_c_try_compile "$LINENO" 4176then : 4177 ac_cv_prog_cc_g=yes 4178else case e in #( 4179 e) CFLAGS="" 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182 4183int 4184main (void) 4185{ 4186 4187 ; 4188 return 0; 4189} 4190_ACEOF 4191if ac_fn_c_try_compile "$LINENO" 4192then : 4193 4194else case e in #( 4195 e) ac_c_werror_flag=$ac_save_c_werror_flag 4196 CFLAGS="-g" 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199 4200int 4201main (void) 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_c_try_compile "$LINENO" 4209then : 4210 ac_cv_prog_cc_g=yes 4211fi 4212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4213esac 4214fi 4215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4216esac 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4219 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4220esac 4221fi 4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4223printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4224if test $ac_test_CFLAGS; then 4225 CFLAGS=$ac_save_CFLAGS 4226elif test $ac_cv_prog_cc_g = yes; then 4227 if test "$GCC" = yes; then 4228 CFLAGS="-g -O2" 4229 else 4230 CFLAGS="-g" 4231 fi 4232else 4233 if test "$GCC" = yes; then 4234 CFLAGS="-O2" 4235 else 4236 CFLAGS= 4237 fi 4238fi 4239ac_prog_cc_stdc=no 4240if test x$ac_prog_cc_stdc = xno 4241then : 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4243printf %s "checking for $CC option to enable C11 features... " >&6; } 4244if test ${ac_cv_prog_cc_c11+y} 4245then : 4246 printf %s "(cached) " >&6 4247else case e in #( 4248 e) ac_cv_prog_cc_c11=no 4249ac_save_CC=$CC 4250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252$ac_c_conftest_c11_program 4253_ACEOF 4254for ac_arg in '' -std=gnu11 4255do 4256 CC="$ac_save_CC $ac_arg" 4257 if ac_fn_c_try_compile "$LINENO" 4258then : 4259 ac_cv_prog_cc_c11=$ac_arg 4260fi 4261rm -f core conftest.err conftest.$ac_objext conftest.beam 4262 test "x$ac_cv_prog_cc_c11" != "xno" && break 4263done 4264rm -f conftest.$ac_ext 4265CC=$ac_save_CC ;; 4266esac 4267fi 4268 4269if test "x$ac_cv_prog_cc_c11" = xno 4270then : 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4272printf "%s\n" "unsupported" >&6; } 4273else case e in #( 4274 e) if test "x$ac_cv_prog_cc_c11" = x 4275then : 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4277printf "%s\n" "none needed" >&6; } 4278else case e in #( 4279 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4280printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4281 CC="$CC $ac_cv_prog_cc_c11" ;; 4282esac 4283fi 4284 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4285 ac_prog_cc_stdc=c11 ;; 4286esac 4287fi 4288fi 4289if test x$ac_prog_cc_stdc = xno 4290then : 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4292printf %s "checking for $CC option to enable C99 features... " >&6; } 4293if test ${ac_cv_prog_cc_c99+y} 4294then : 4295 printf %s "(cached) " >&6 4296else case e in #( 4297 e) ac_cv_prog_cc_c99=no 4298ac_save_CC=$CC 4299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301$ac_c_conftest_c99_program 4302_ACEOF 4303for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4304do 4305 CC="$ac_save_CC $ac_arg" 4306 if ac_fn_c_try_compile "$LINENO" 4307then : 4308 ac_cv_prog_cc_c99=$ac_arg 4309fi 4310rm -f core conftest.err conftest.$ac_objext conftest.beam 4311 test "x$ac_cv_prog_cc_c99" != "xno" && break 4312done 4313rm -f conftest.$ac_ext 4314CC=$ac_save_CC ;; 4315esac 4316fi 4317 4318if test "x$ac_cv_prog_cc_c99" = xno 4319then : 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4321printf "%s\n" "unsupported" >&6; } 4322else case e in #( 4323 e) if test "x$ac_cv_prog_cc_c99" = x 4324then : 4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4326printf "%s\n" "none needed" >&6; } 4327else case e in #( 4328 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4329printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4330 CC="$CC $ac_cv_prog_cc_c99" ;; 4331esac 4332fi 4333 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4334 ac_prog_cc_stdc=c99 ;; 4335esac 4336fi 4337fi 4338if test x$ac_prog_cc_stdc = xno 4339then : 4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4341printf %s "checking for $CC option to enable C89 features... " >&6; } 4342if test ${ac_cv_prog_cc_c89+y} 4343then : 4344 printf %s "(cached) " >&6 4345else case e in #( 4346 e) ac_cv_prog_cc_c89=no 4347ac_save_CC=$CC 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350$ac_c_conftest_c89_program 4351_ACEOF 4352for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4353do 4354 CC="$ac_save_CC $ac_arg" 4355 if ac_fn_c_try_compile "$LINENO" 4356then : 4357 ac_cv_prog_cc_c89=$ac_arg 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.beam 4360 test "x$ac_cv_prog_cc_c89" != "xno" && break 4361done 4362rm -f conftest.$ac_ext 4363CC=$ac_save_CC ;; 4364esac 4365fi 4366 4367if test "x$ac_cv_prog_cc_c89" = xno 4368then : 4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4370printf "%s\n" "unsupported" >&6; } 4371else case e in #( 4372 e) if test "x$ac_cv_prog_cc_c89" = x 4373then : 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4375printf "%s\n" "none needed" >&6; } 4376else case e in #( 4377 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4378printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4379 CC="$CC $ac_cv_prog_cc_c89" ;; 4380esac 4381fi 4382 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4383 ac_prog_cc_stdc=c89 ;; 4384esac 4385fi 4386fi 4387 4388ac_ext=c 4389ac_cpp='$CPP $CPPFLAGS' 4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4392ac_compiler_gnu=$ac_cv_c_compiler_gnu 4393 4394 4395 ac_ext=c 4396ac_cpp='$CPP $CPPFLAGS' 4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4399ac_compiler_gnu=$ac_cv_c_compiler_gnu 4400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4401printf %s "checking whether $CC understands -c and -o together... " >&6; } 4402if test ${am_cv_prog_cc_c_o+y} 4403then : 4404 printf %s "(cached) " >&6 4405else case e in #( 4406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4407/* end confdefs.h. */ 4408 4409int 4410main (void) 4411{ 4412 4413 ; 4414 return 0; 4415} 4416_ACEOF 4417 # Make sure it works both with $CC and with simple cc. 4418 # Following AC_PROG_CC_C_O, we do the test twice because some 4419 # compilers refuse to overwrite an existing .o file with -o, 4420 # though they will create one. 4421 am_cv_prog_cc_c_o=yes 4422 for am_i in 1 2; do 4423 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4424 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4425 ac_status=$? 4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4427 (exit $ac_status); } \ 4428 && test -f conftest2.$ac_objext; then 4429 : OK 4430 else 4431 am_cv_prog_cc_c_o=no 4432 break 4433 fi 4434 done 4435 rm -f core conftest* 4436 unset am_i ;; 4437esac 4438fi 4439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4440printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4441if test "$am_cv_prog_cc_c_o" != yes; then 4442 # Losing compiler, so override with the script. 4443 # FIXME: It is wrong to rewrite CC. 4444 # But if we don't then we get into trouble of one sort or another. 4445 # A longer-term fix would be to have automake use am__CC in this case, 4446 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4447 CC="$am_aux_dir/compile $CC" 4448fi 4449ac_ext=c 4450ac_cpp='$CPP $CPPFLAGS' 4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4453ac_compiler_gnu=$ac_cv_c_compiler_gnu 4454 4455 4456depcc="$CC" am_compiler_list= 4457 4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4459printf %s "checking dependency style of $depcc... " >&6; } 4460if test ${am_cv_CC_dependencies_compiler_type+y} 4461then : 4462 printf %s "(cached) " >&6 4463else case e in #( 4464 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4465 # We make a subdir and do the tests there. Otherwise we can end up 4466 # making bogus files that we don't know about and never remove. For 4467 # instance it was reported that on HP-UX the gcc test will end up 4468 # making a dummy file named 'D' -- because '-MD' means "put the output 4469 # in D". 4470 rm -rf conftest.dir 4471 mkdir conftest.dir 4472 # Copy depcomp to subdir because otherwise we won't find it if we're 4473 # using a relative directory. 4474 cp "$am_depcomp" conftest.dir 4475 cd conftest.dir 4476 # We will build objects and dependencies in a subdirectory because 4477 # it helps to detect inapplicable dependency modes. For instance 4478 # both Tru64's cc and ICC support -MD to output dependencies as a 4479 # side effect of compilation, but ICC will put the dependencies in 4480 # the current directory while Tru64 will put them in the object 4481 # directory. 4482 mkdir sub 4483 4484 am_cv_CC_dependencies_compiler_type=none 4485 if test "$am_compiler_list" = ""; then 4486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4487 fi 4488 am__universal=false 4489 case " $depcc " in #( 4490 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4491 esac 4492 4493 for depmode in $am_compiler_list; do 4494 # Setup a source with many dependencies, because some compilers 4495 # like to wrap large dependency lists on column 80 (with \), and 4496 # we should not choose a depcomp mode which is confused by this. 4497 # 4498 # We need to recreate these files for each test, as the compiler may 4499 # overwrite some of them when testing with obscure command lines. 4500 # This happens at least with the AIX C compiler. 4501 : > sub/conftest.c 4502 for i in 1 2 3 4 5 6; do 4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4505 # Solaris 10 /bin/sh. 4506 echo '/* dummy */' > sub/conftst$i.h 4507 done 4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4509 4510 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4511 # mode. It turns out that the SunPro C++ compiler does not properly 4512 # handle '-M -o', and we need to detect this. Also, some Intel 4513 # versions had trouble with output in subdirs. 4514 am__obj=sub/conftest.${OBJEXT-o} 4515 am__minus_obj="-o $am__obj" 4516 case $depmode in 4517 gcc) 4518 # This depmode causes a compiler race in universal mode. 4519 test "$am__universal" = false || continue 4520 ;; 4521 nosideeffect) 4522 # After this tag, mechanisms are not by side-effect, so they'll 4523 # only be used when explicitly requested. 4524 if test "x$enable_dependency_tracking" = xyes; then 4525 continue 4526 else 4527 break 4528 fi 4529 ;; 4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4531 # This compiler won't grok '-c -o', but also, the minuso test has 4532 # not run yet. These depmodes are late enough in the game, and 4533 # so weak that their functioning should not be impacted. 4534 am__obj=conftest.${OBJEXT-o} 4535 am__minus_obj= 4536 ;; 4537 none) break ;; 4538 esac 4539 if depmode=$depmode \ 4540 source=sub/conftest.c object=$am__obj \ 4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4543 >/dev/null 2>conftest.err && 4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4548 # icc doesn't choke on unknown options, it will just issue warnings 4549 # or remarks (even with -Werror). So we grep stderr for any message 4550 # that says an option was ignored or not supported. 4551 # When given -MP, icc 7.0 and 7.1 complain thusly: 4552 # icc: Command line warning: ignoring option '-M'; no argument required 4553 # The diagnosis changed in icc 8.0: 4554 # icc: Command line remark: option '-MP' not supported 4555 if (grep 'ignoring option' conftest.err || 4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4557 am_cv_CC_dependencies_compiler_type=$depmode 4558 break 4559 fi 4560 fi 4561 done 4562 4563 cd .. 4564 rm -rf conftest.dir 4565else 4566 am_cv_CC_dependencies_compiler_type=none 4567fi 4568 ;; 4569esac 4570fi 4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4572printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4574 4575 if 4576 test "x$enable_dependency_tracking" != xno \ 4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4578 am__fastdepCC_TRUE= 4579 am__fastdepCC_FALSE='#' 4580else 4581 am__fastdepCC_TRUE='#' 4582 am__fastdepCC_FALSE= 4583fi 4584 4585 4586 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4588printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4589if test ${ac_cv_c_undeclared_builtin_options+y} 4590then : 4591 printf %s "(cached) " >&6 4592else case e in #( 4593 e) ac_save_CFLAGS=$CFLAGS 4594 ac_cv_c_undeclared_builtin_options='cannot detect' 4595 for ac_arg in '' -fno-builtin; do 4596 CFLAGS="$ac_save_CFLAGS $ac_arg" 4597 # This test program should *not* compile successfully. 4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4599/* end confdefs.h. */ 4600 4601int 4602main (void) 4603{ 4604(void) strchr; 4605 ; 4606 return 0; 4607} 4608_ACEOF 4609if ac_fn_c_try_compile "$LINENO" 4610then : 4611 4612else case e in #( 4613 e) # This test program should compile successfully. 4614 # No library function is consistently available on 4615 # freestanding implementations, so test against a dummy 4616 # declaration. Include always-available headers on the 4617 # off chance that they somehow elicit warnings. 4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4619/* end confdefs.h. */ 4620#include <float.h> 4621#include <limits.h> 4622#include <stdarg.h> 4623#include <stddef.h> 4624extern void ac_decl (int, char *); 4625 4626int 4627main (void) 4628{ 4629(void) ac_decl (0, (char *) 0); 4630 (void) ac_decl; 4631 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636if ac_fn_c_try_compile "$LINENO" 4637then : 4638 if test x"$ac_arg" = x 4639then : 4640 ac_cv_c_undeclared_builtin_options='none needed' 4641else case e in #( 4642 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4643esac 4644fi 4645 break 4646fi 4647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4648esac 4649fi 4650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4651 done 4652 CFLAGS=$ac_save_CFLAGS 4653 ;; 4654esac 4655fi 4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4657printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4658 case $ac_cv_c_undeclared_builtin_options in #( 4659 'cannot detect') : 4660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4661printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4662as_fn_error $? "cannot make $CC report undeclared builtins 4663See 'config.log' for more details" "$LINENO" 5; } ;; #( 4664 'none needed') : 4665 ac_c_undeclared_builtin_options='' ;; #( 4666 *) : 4667 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4668esac 4669 4670ac_header= ac_cache= 4671for ac_item in $ac_header_c_list 4672do 4673 if test $ac_cache; then 4674 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4675 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4676 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4677 fi 4678 ac_header= ac_cache= 4679 elif test $ac_header; then 4680 ac_cache=$ac_item 4681 else 4682 ac_header=$ac_item 4683 fi 4684done 4685 4686 4687 4688 4689 4690 4691 4692 4693if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4694then : 4695 4696printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4697 4698fi 4699 4700 4701 4702 4703ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4704if test "x$ac_cv_have_decl___clang__" = xyes 4705then : 4706 CLANGCC="yes" 4707else case e in #( 4708 e) CLANGCC="no" ;; 4709esac 4710fi 4711ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4712if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4713then : 4714 INTELCC="yes" 4715else case e in #( 4716 e) INTELCC="no" ;; 4717esac 4718fi 4719ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4720if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4721then : 4722 SUNCC="yes" 4723else case e in #( 4724 e) SUNCC="no" ;; 4725esac 4726fi 4727 4728 4729 4730 4731 4732 4733 4734 4735if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4736 if test -n "$ac_tool_prefix"; then 4737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4740printf %s "checking for $ac_word... " >&6; } 4741if test ${ac_cv_path_PKG_CONFIG+y} 4742then : 4743 printf %s "(cached) " >&6 4744else case e in #( 4745 e) case $PKG_CONFIG in 4746 [\\/]* | ?:[\\/]*) 4747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4748 ;; 4749 *) 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH 4752do 4753 IFS=$as_save_IFS 4754 case $as_dir in #((( 4755 '') as_dir=./ ;; 4756 */) ;; 4757 *) as_dir=$as_dir/ ;; 4758 esac 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4761 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765done 4766 done 4767IFS=$as_save_IFS 4768 4769 ;; 4770esac ;; 4771esac 4772fi 4773PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4774if test -n "$PKG_CONFIG"; then 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4776printf "%s\n" "$PKG_CONFIG" >&6; } 4777else 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4779printf "%s\n" "no" >&6; } 4780fi 4781 4782 4783fi 4784if test -z "$ac_cv_path_PKG_CONFIG"; then 4785 ac_pt_PKG_CONFIG=$PKG_CONFIG 4786 # Extract the first word of "pkg-config", so it can be a program name with args. 4787set dummy pkg-config; ac_word=$2 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4789printf %s "checking for $ac_word... " >&6; } 4790if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4791then : 4792 printf %s "(cached) " >&6 4793else case e in #( 4794 e) case $ac_pt_PKG_CONFIG in 4795 [\\/]* | ?:[\\/]*) 4796 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4797 ;; 4798 *) 4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 case $as_dir in #((( 4804 '') as_dir=./ ;; 4805 */) ;; 4806 *) as_dir=$as_dir/ ;; 4807 esac 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4810 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4812 break 2 4813 fi 4814done 4815 done 4816IFS=$as_save_IFS 4817 4818 ;; 4819esac ;; 4820esac 4821fi 4822ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4823if test -n "$ac_pt_PKG_CONFIG"; then 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4825printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4826else 4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4828printf "%s\n" "no" >&6; } 4829fi 4830 4831 if test "x$ac_pt_PKG_CONFIG" = x; then 4832 PKG_CONFIG="" 4833 else 4834 case $cross_compiling:$ac_tool_warned in 4835yes:) 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4838ac_tool_warned=yes ;; 4839esac 4840 PKG_CONFIG=$ac_pt_PKG_CONFIG 4841 fi 4842else 4843 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4844fi 4845 4846fi 4847if test -n "$PKG_CONFIG"; then 4848 _pkg_min_version=0.9.0 4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4850printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4851 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4853printf "%s\n" "yes" >&6; } 4854 else 4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4856printf "%s\n" "no" >&6; } 4857 PKG_CONFIG="" 4858 fi 4859fi 4860 4861 4862 # Make sure we can run config.sub. 4863$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4864 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4865 4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4867printf %s "checking build system type... " >&6; } 4868if test ${ac_cv_build+y} 4869then : 4870 printf %s "(cached) " >&6 4871else case e in #( 4872 e) ac_build_alias=$build_alias 4873test "x$ac_build_alias" = x && 4874 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4875test "x$ac_build_alias" = x && 4876 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4877ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4878 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4879 ;; 4880esac 4881fi 4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4883printf "%s\n" "$ac_cv_build" >&6; } 4884case $ac_cv_build in 4885*-*-*) ;; 4886*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4887esac 4888build=$ac_cv_build 4889ac_save_IFS=$IFS; IFS='-' 4890set x $ac_cv_build 4891shift 4892build_cpu=$1 4893build_vendor=$2 4894shift; shift 4895# Remember, the first character of IFS is used to create $*, 4896# except with old shells: 4897build_os=$* 4898IFS=$ac_save_IFS 4899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4900 4901 4902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4903printf %s "checking host system type... " >&6; } 4904if test ${ac_cv_host+y} 4905then : 4906 printf %s "(cached) " >&6 4907else case e in #( 4908 e) if test "x$host_alias" = x; then 4909 ac_cv_host=$ac_cv_build 4910else 4911 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4912 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4913fi 4914 ;; 4915esac 4916fi 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4918printf "%s\n" "$ac_cv_host" >&6; } 4919case $ac_cv_host in 4920*-*-*) ;; 4921*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4922esac 4923host=$ac_cv_host 4924ac_save_IFS=$IFS; IFS='-' 4925set x $ac_cv_host 4926shift 4927host_cpu=$1 4928host_vendor=$2 4929shift; shift 4930# Remember, the first character of IFS is used to create $*, 4931# except with old shells: 4932host_os=$* 4933IFS=$ac_save_IFS 4934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4935 4936 4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4938printf %s "checking for a sed that does not truncate output... " >&6; } 4939if test ${ac_cv_path_SED+y} 4940then : 4941 printf %s "(cached) " >&6 4942else case e in #( 4943 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4944 for ac_i in 1 2 3 4 5 6 7; do 4945 ac_script="$ac_script$as_nl$ac_script" 4946 done 4947 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4948 { ac_script=; unset ac_script;} 4949 if test -z "$SED"; then 4950 ac_path_SED_found=false 4951 # Loop through the user's path and test for each of PROGNAME-LIST 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953for as_dir in $PATH 4954do 4955 IFS=$as_save_IFS 4956 case $as_dir in #((( 4957 '') as_dir=./ ;; 4958 */) ;; 4959 *) as_dir=$as_dir/ ;; 4960 esac 4961 for ac_prog in sed gsed 4962 do 4963 for ac_exec_ext in '' $ac_executable_extensions; do 4964 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4965 as_fn_executable_p "$ac_path_SED" || continue 4966# Check for GNU ac_path_SED and select it if it is found. 4967 # Check for GNU $ac_path_SED 4968case `"$ac_path_SED" --version 2>&1` in #( 4969*GNU*) 4970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4971#( 4972*) 4973 ac_count=0 4974 printf %s 0123456789 >"conftest.in" 4975 while : 4976 do 4977 cat "conftest.in" "conftest.in" >"conftest.tmp" 4978 mv "conftest.tmp" "conftest.in" 4979 cp "conftest.in" "conftest.nl" 4980 printf "%s\n" '' >> "conftest.nl" 4981 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4983 as_fn_arith $ac_count + 1 && ac_count=$as_val 4984 if test $ac_count -gt ${ac_path_SED_max-0}; then 4985 # Best one so far, save it but keep looking for a better one 4986 ac_cv_path_SED="$ac_path_SED" 4987 ac_path_SED_max=$ac_count 4988 fi 4989 # 10*(2^10) chars as input seems more than enough 4990 test $ac_count -gt 10 && break 4991 done 4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4993esac 4994 4995 $ac_path_SED_found && break 3 4996 done 4997 done 4998 done 4999IFS=$as_save_IFS 5000 if test -z "$ac_cv_path_SED"; then 5001 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5002 fi 5003else 5004 ac_cv_path_SED=$SED 5005fi 5006 ;; 5007esac 5008fi 5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5010printf "%s\n" "$ac_cv_path_SED" >&6; } 5011 SED="$ac_cv_path_SED" 5012 rm -f conftest.sed 5013 5014 5015 5016 5017 5018 5019# Check whether --enable-selective-werror was given. 5020if test ${enable_selective_werror+y} 5021then : 5022 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5023else case e in #( 5024 e) SELECTIVE_WERROR=yes ;; 5025esac 5026fi 5027 5028 5029 5030 5031 5032# -v is too short to test reliably with XORG_TESTSET_CFLAG 5033if test "x$SUNCC" = "xyes"; then 5034 BASE_CFLAGS="-v" 5035else 5036 BASE_CFLAGS="" 5037fi 5038 5039# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053xorg_testset_save_CFLAGS="$CFLAGS" 5054 5055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5059if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5060then : 5061 printf %s "(cached) " >&6 5062else case e in #( 5063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064/* end confdefs.h. */ 5065int i; 5066_ACEOF 5067if ac_fn_c_try_compile "$LINENO" 5068then : 5069 xorg_cv_cc_flag_unknown_warning_option=yes 5070else case e in #( 5071 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5072esac 5073fi 5074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5075esac 5076fi 5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5080 CFLAGS="$xorg_testset_save_CFLAGS" 5081fi 5082 5083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 fi 5087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5090if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5091then : 5092 printf %s "(cached) " >&6 5093else case e in #( 5094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096int i; 5097_ACEOF 5098if ac_fn_c_try_compile "$LINENO" 5099then : 5100 xorg_cv_cc_flag_unused_command_line_argument=yes 5101else case e in #( 5102 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5103esac 5104fi 5105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5106esac 5107fi 5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112fi 5113 5114found="no" 5115 5116 if test $found = "no" ; then 5117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 fi 5120 5121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5123 fi 5124 5125 CFLAGS="$CFLAGS -Wall" 5126 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5128printf %s "checking if $CC supports -Wall... " >&6; } 5129 cacheid=xorg_cv_cc_flag__Wall 5130 if eval test \${$cacheid+y} 5131then : 5132 printf %s "(cached) " >&6 5133else case e in #( 5134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137int 5138main (void) 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_c_try_link "$LINENO" 5146then : 5147 eval $cacheid=yes 5148else case e in #( 5149 e) eval $cacheid=no ;; 5150esac 5151fi 5152rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5153 conftest$ac_exeext conftest.$ac_ext ;; 5154esac 5155fi 5156 5157 5158 CFLAGS="$xorg_testset_save_CFLAGS" 5159 5160 eval supported=\$$cacheid 5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5162printf "%s\n" "$supported" >&6; } 5163 if test "$supported" = "yes" ; then 5164 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5165 found="yes" 5166 fi 5167 fi 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183xorg_testset_save_CFLAGS="$CFLAGS" 5184 5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5189if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5190then : 5191 printf %s "(cached) " >&6 5192else case e in #( 5193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196_ACEOF 5197if ac_fn_c_try_compile "$LINENO" 5198then : 5199 xorg_cv_cc_flag_unknown_warning_option=yes 5200else case e in #( 5201 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5202esac 5203fi 5204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5205esac 5206fi 5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5216 fi 5217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5220if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5221then : 5222 printf %s "(cached) " >&6 5223else case e in #( 5224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226int i; 5227_ACEOF 5228if ac_fn_c_try_compile "$LINENO" 5229then : 5230 xorg_cv_cc_flag_unused_command_line_argument=yes 5231else case e in #( 5232 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5233esac 5234fi 5235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5236esac 5237fi 5238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5241 CFLAGS="$xorg_testset_save_CFLAGS" 5242fi 5243 5244found="no" 5245 5246 if test $found = "no" ; then 5247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 fi 5250 5251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5253 fi 5254 5255 CFLAGS="$CFLAGS -Wpointer-arith" 5256 5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5258printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5259 cacheid=xorg_cv_cc_flag__Wpointer_arith 5260 if eval test \${$cacheid+y} 5261then : 5262 printf %s "(cached) " >&6 5263else case e in #( 5264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266int i; 5267int 5268main (void) 5269{ 5270 5271 ; 5272 return 0; 5273} 5274_ACEOF 5275if ac_fn_c_try_link "$LINENO" 5276then : 5277 eval $cacheid=yes 5278else case e in #( 5279 e) eval $cacheid=no ;; 5280esac 5281fi 5282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5283 conftest$ac_exeext conftest.$ac_ext ;; 5284esac 5285fi 5286 5287 5288 CFLAGS="$xorg_testset_save_CFLAGS" 5289 5290 eval supported=\$$cacheid 5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5292printf "%s\n" "$supported" >&6; } 5293 if test "$supported" = "yes" ; then 5294 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5295 found="yes" 5296 fi 5297 fi 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313xorg_testset_save_CFLAGS="$CFLAGS" 5314 5315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5319if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5320then : 5321 printf %s "(cached) " >&6 5322else case e in #( 5323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO" 5328then : 5329 xorg_cv_cc_flag_unknown_warning_option=yes 5330else case e in #( 5331 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5332esac 5333fi 5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5335esac 5336fi 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5340 CFLAGS="$xorg_testset_save_CFLAGS" 5341fi 5342 5343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5346 fi 5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5350if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5351then : 5352 printf %s "(cached) " >&6 5353else case e in #( 5354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357_ACEOF 5358if ac_fn_c_try_compile "$LINENO" 5359then : 5360 xorg_cv_cc_flag_unused_command_line_argument=yes 5361else case e in #( 5362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5363esac 5364fi 5365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5366esac 5367fi 5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5371 CFLAGS="$xorg_testset_save_CFLAGS" 5372fi 5373 5374found="no" 5375 5376 if test $found = "no" ; then 5377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5379 fi 5380 5381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5383 fi 5384 5385 CFLAGS="$CFLAGS -Wmissing-declarations" 5386 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5388printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5389 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5390 if eval test \${$cacheid+y} 5391then : 5392 printf %s "(cached) " >&6 5393else case e in #( 5394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396int i; 5397int 5398main (void) 5399{ 5400 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405if ac_fn_c_try_link "$LINENO" 5406then : 5407 eval $cacheid=yes 5408else case e in #( 5409 e) eval $cacheid=no ;; 5410esac 5411fi 5412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5413 conftest$ac_exeext conftest.$ac_ext ;; 5414esac 5415fi 5416 5417 5418 CFLAGS="$xorg_testset_save_CFLAGS" 5419 5420 eval supported=\$$cacheid 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5422printf "%s\n" "$supported" >&6; } 5423 if test "$supported" = "yes" ; then 5424 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5425 found="yes" 5426 fi 5427 fi 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443xorg_testset_save_CFLAGS="$CFLAGS" 5444 5445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5449if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5450then : 5451 printf %s "(cached) " >&6 5452else case e in #( 5453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455int i; 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO" 5458then : 5459 xorg_cv_cc_flag_unknown_warning_option=yes 5460else case e in #( 5461 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5462esac 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5465esac 5466fi 5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5481then : 5482 printf %s "(cached) " >&6 5483else case e in #( 5484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487_ACEOF 5488if ac_fn_c_try_compile "$LINENO" 5489then : 5490 xorg_cv_cc_flag_unused_command_line_argument=yes 5491else case e in #( 5492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5493esac 5494fi 5495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5496esac 5497fi 5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5501 CFLAGS="$xorg_testset_save_CFLAGS" 5502fi 5503 5504found="no" 5505 5506 if test $found = "no" ; then 5507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5509 fi 5510 5511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5513 fi 5514 5515 CFLAGS="$CFLAGS -Wformat=2" 5516 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5518printf %s "checking if $CC supports -Wformat=2... " >&6; } 5519 cacheid=xorg_cv_cc_flag__Wformat_2 5520 if eval test \${$cacheid+y} 5521then : 5522 printf %s "(cached) " >&6 5523else case e in #( 5524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525/* end confdefs.h. */ 5526int i; 5527int 5528main (void) 5529{ 5530 5531 ; 5532 return 0; 5533} 5534_ACEOF 5535if ac_fn_c_try_link "$LINENO" 5536then : 5537 eval $cacheid=yes 5538else case e in #( 5539 e) eval $cacheid=no ;; 5540esac 5541fi 5542rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5543 conftest$ac_exeext conftest.$ac_ext ;; 5544esac 5545fi 5546 5547 5548 CFLAGS="$xorg_testset_save_CFLAGS" 5549 5550 eval supported=\$$cacheid 5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5552printf "%s\n" "$supported" >&6; } 5553 if test "$supported" = "yes" ; then 5554 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5555 found="yes" 5556 fi 5557 fi 5558 5559 if test $found = "no" ; then 5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5562 fi 5563 5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5566 fi 5567 5568 CFLAGS="$CFLAGS -Wformat" 5569 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5571printf %s "checking if $CC supports -Wformat... " >&6; } 5572 cacheid=xorg_cv_cc_flag__Wformat 5573 if eval test \${$cacheid+y} 5574then : 5575 printf %s "(cached) " >&6 5576else case e in #( 5577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579int i; 5580int 5581main (void) 5582{ 5583 5584 ; 5585 return 0; 5586} 5587_ACEOF 5588if ac_fn_c_try_link "$LINENO" 5589then : 5590 eval $cacheid=yes 5591else case e in #( 5592 e) eval $cacheid=no ;; 5593esac 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596 conftest$ac_exeext conftest.$ac_ext ;; 5597esac 5598fi 5599 5600 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602 5603 eval supported=\$$cacheid 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5605printf "%s\n" "$supported" >&6; } 5606 if test "$supported" = "yes" ; then 5607 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5608 found="yes" 5609 fi 5610 fi 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628xorg_testset_save_CFLAGS="$CFLAGS" 5629 5630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5635then : 5636 printf %s "(cached) " >&6 5637else case e in #( 5638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640int i; 5641_ACEOF 5642if ac_fn_c_try_compile "$LINENO" 5643then : 5644 xorg_cv_cc_flag_unknown_warning_option=yes 5645else case e in #( 5646 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5647esac 5648fi 5649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5650esac 5651fi 5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656fi 5657 5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5661 fi 5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5666then : 5667 printf %s "(cached) " >&6 5668else case e in #( 5669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5670/* end confdefs.h. */ 5671int i; 5672_ACEOF 5673if ac_fn_c_try_compile "$LINENO" 5674then : 5675 xorg_cv_cc_flag_unused_command_line_argument=yes 5676else case e in #( 5677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5678esac 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5681esac 5682fi 5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5686 CFLAGS="$xorg_testset_save_CFLAGS" 5687fi 5688 5689found="no" 5690 5691 if test $found = "no" ; then 5692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 fi 5695 5696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5698 fi 5699 5700 CFLAGS="$CFLAGS -Wstrict-prototypes" 5701 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5703printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5704 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5705 if eval test \${$cacheid+y} 5706then : 5707 printf %s "(cached) " >&6 5708else case e in #( 5709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5710/* end confdefs.h. */ 5711int i; 5712int 5713main (void) 5714{ 5715 5716 ; 5717 return 0; 5718} 5719_ACEOF 5720if ac_fn_c_try_link "$LINENO" 5721then : 5722 eval $cacheid=yes 5723else case e in #( 5724 e) eval $cacheid=no ;; 5725esac 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5728 conftest$ac_exeext conftest.$ac_ext ;; 5729esac 5730fi 5731 5732 5733 CFLAGS="$xorg_testset_save_CFLAGS" 5734 5735 eval supported=\$$cacheid 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5737printf "%s\n" "$supported" >&6; } 5738 if test "$supported" = "yes" ; then 5739 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5740 found="yes" 5741 fi 5742 fi 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758xorg_testset_save_CFLAGS="$CFLAGS" 5759 5760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5764if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5765then : 5766 printf %s "(cached) " >&6 5767else case e in #( 5768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO" 5773then : 5774 xorg_cv_cc_flag_unknown_warning_option=yes 5775else case e in #( 5776 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5777esac 5778fi 5779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5780esac 5781fi 5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786fi 5787 5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5796then : 5797 printf %s "(cached) " >&6 5798else case e in #( 5799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801int i; 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO" 5804then : 5805 xorg_cv_cc_flag_unused_command_line_argument=yes 5806else case e in #( 5807 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5808esac 5809fi 5810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5811esac 5812fi 5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5816 CFLAGS="$xorg_testset_save_CFLAGS" 5817fi 5818 5819found="no" 5820 5821 if test $found = "no" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5828 fi 5829 5830 CFLAGS="$CFLAGS -Wmissing-prototypes" 5831 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5833printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5834 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5835 if eval test \${$cacheid+y} 5836then : 5837 printf %s "(cached) " >&6 5838else case e in #( 5839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841int i; 5842int 5843main (void) 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_link "$LINENO" 5851then : 5852 eval $cacheid=yes 5853else case e in #( 5854 e) eval $cacheid=no ;; 5855esac 5856fi 5857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5858 conftest$ac_exeext conftest.$ac_ext ;; 5859esac 5860fi 5861 5862 5863 CFLAGS="$xorg_testset_save_CFLAGS" 5864 5865 eval supported=\$$cacheid 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5867printf "%s\n" "$supported" >&6; } 5868 if test "$supported" = "yes" ; then 5869 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5870 found="yes" 5871 fi 5872 fi 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888xorg_testset_save_CFLAGS="$CFLAGS" 5889 5890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5894if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5895then : 5896 printf %s "(cached) " >&6 5897else case e in #( 5898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900int i; 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO" 5903then : 5904 xorg_cv_cc_flag_unknown_warning_option=yes 5905else case e in #( 5906 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5907esac 5908fi 5909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5910esac 5911fi 5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916fi 5917 5918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 fi 5922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5925if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5926then : 5927 printf %s "(cached) " >&6 5928else case e in #( 5929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930/* end confdefs.h. */ 5931int i; 5932_ACEOF 5933if ac_fn_c_try_compile "$LINENO" 5934then : 5935 xorg_cv_cc_flag_unused_command_line_argument=yes 5936else case e in #( 5937 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5938esac 5939fi 5940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5941esac 5942fi 5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947fi 5948 5949found="no" 5950 5951 if test $found = "no" ; then 5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954 fi 5955 5956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5958 fi 5959 5960 CFLAGS="$CFLAGS -Wnested-externs" 5961 5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5963printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5964 cacheid=xorg_cv_cc_flag__Wnested_externs 5965 if eval test \${$cacheid+y} 5966then : 5967 printf %s "(cached) " >&6 5968else case e in #( 5969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972int 5973main (void) 5974{ 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_link "$LINENO" 5981then : 5982 eval $cacheid=yes 5983else case e in #( 5984 e) eval $cacheid=no ;; 5985esac 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5988 conftest$ac_exeext conftest.$ac_ext ;; 5989esac 5990fi 5991 5992 5993 CFLAGS="$xorg_testset_save_CFLAGS" 5994 5995 eval supported=\$$cacheid 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5997printf "%s\n" "$supported" >&6; } 5998 if test "$supported" = "yes" ; then 5999 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6000 found="yes" 6001 fi 6002 fi 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018xorg_testset_save_CFLAGS="$CFLAGS" 6019 6020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6024if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6025then : 6026 printf %s "(cached) " >&6 6027else case e in #( 6028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO" 6033then : 6034 xorg_cv_cc_flag_unknown_warning_option=yes 6035else case e in #( 6036 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6037esac 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6040esac 6041fi 6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046fi 6047 6048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 fi 6052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6056then : 6057 printf %s "(cached) " >&6 6058else case e in #( 6059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO" 6064then : 6065 xorg_cv_cc_flag_unused_command_line_argument=yes 6066else case e in #( 6067 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6068esac 6069fi 6070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6071esac 6072fi 6073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6076 CFLAGS="$xorg_testset_save_CFLAGS" 6077fi 6078 6079found="no" 6080 6081 if test $found = "no" ; then 6082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 fi 6085 6086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6088 fi 6089 6090 CFLAGS="$CFLAGS -Wbad-function-cast" 6091 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6093printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6094 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6095 if eval test \${$cacheid+y} 6096then : 6097 printf %s "(cached) " >&6 6098else case e in #( 6099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6100/* end confdefs.h. */ 6101int i; 6102int 6103main (void) 6104{ 6105 6106 ; 6107 return 0; 6108} 6109_ACEOF 6110if ac_fn_c_try_link "$LINENO" 6111then : 6112 eval $cacheid=yes 6113else case e in #( 6114 e) eval $cacheid=no ;; 6115esac 6116fi 6117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6118 conftest$ac_exeext conftest.$ac_ext ;; 6119esac 6120fi 6121 6122 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124 6125 eval supported=\$$cacheid 6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6127printf "%s\n" "$supported" >&6; } 6128 if test "$supported" = "yes" ; then 6129 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6130 found="yes" 6131 fi 6132 fi 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148xorg_testset_save_CFLAGS="$CFLAGS" 6149 6150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6153printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6154if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6155then : 6156 printf %s "(cached) " >&6 6157else case e in #( 6158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160int i; 6161_ACEOF 6162if ac_fn_c_try_compile "$LINENO" 6163then : 6164 xorg_cv_cc_flag_unknown_warning_option=yes 6165else case e in #( 6166 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6167esac 6168fi 6169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6170esac 6171fi 6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6175 CFLAGS="$xorg_testset_save_CFLAGS" 6176fi 6177 6178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6181 fi 6182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6185if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6186then : 6187 printf %s "(cached) " >&6 6188else case e in #( 6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192_ACEOF 6193if ac_fn_c_try_compile "$LINENO" 6194then : 6195 xorg_cv_cc_flag_unused_command_line_argument=yes 6196else case e in #( 6197 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6198esac 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6201esac 6202fi 6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6204printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207fi 6208 6209found="no" 6210 6211 if test $found = "no" ; then 6212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6214 fi 6215 6216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6218 fi 6219 6220 CFLAGS="$CFLAGS -Wold-style-definition" 6221 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6223printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6224 cacheid=xorg_cv_cc_flag__Wold_style_definition 6225 if eval test \${$cacheid+y} 6226then : 6227 printf %s "(cached) " >&6 6228else case e in #( 6229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6230/* end confdefs.h. */ 6231int i; 6232int 6233main (void) 6234{ 6235 6236 ; 6237 return 0; 6238} 6239_ACEOF 6240if ac_fn_c_try_link "$LINENO" 6241then : 6242 eval $cacheid=yes 6243else case e in #( 6244 e) eval $cacheid=no ;; 6245esac 6246fi 6247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6248 conftest$ac_exeext conftest.$ac_ext ;; 6249esac 6250fi 6251 6252 6253 CFLAGS="$xorg_testset_save_CFLAGS" 6254 6255 eval supported=\$$cacheid 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6257printf "%s\n" "$supported" >&6; } 6258 if test "$supported" = "yes" ; then 6259 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6260 found="yes" 6261 fi 6262 fi 6263 6264 if test $found = "no" ; then 6265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6267 fi 6268 6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6271 fi 6272 6273 CFLAGS="$CFLAGS -fd" 6274 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6276printf %s "checking if $CC supports -fd... " >&6; } 6277 cacheid=xorg_cv_cc_flag__fd 6278 if eval test \${$cacheid+y} 6279then : 6280 printf %s "(cached) " >&6 6281else case e in #( 6282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283/* end confdefs.h. */ 6284int i; 6285int 6286main (void) 6287{ 6288 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293if ac_fn_c_try_link "$LINENO" 6294then : 6295 eval $cacheid=yes 6296else case e in #( 6297 e) eval $cacheid=no ;; 6298esac 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6301 conftest$ac_exeext conftest.$ac_ext ;; 6302esac 6303fi 6304 6305 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307 6308 eval supported=\$$cacheid 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6310printf "%s\n" "$supported" >&6; } 6311 if test "$supported" = "yes" ; then 6312 BASE_CFLAGS="$BASE_CFLAGS -fd" 6313 found="yes" 6314 fi 6315 fi 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331xorg_testset_save_CFLAGS="$CFLAGS" 6332 6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6338then : 6339 printf %s "(cached) " >&6 6340else case e in #( 6341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343int i; 6344_ACEOF 6345if ac_fn_c_try_compile "$LINENO" 6346then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348else case e in #( 6349 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6350esac 6351fi 6352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6353esac 6354fi 6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6358 CFLAGS="$xorg_testset_save_CFLAGS" 6359fi 6360 6361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 fi 6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6369then : 6370 printf %s "(cached) " >&6 6371else case e in #( 6372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO" 6377then : 6378 xorg_cv_cc_flag_unused_command_line_argument=yes 6379else case e in #( 6380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6381esac 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6384esac 6385fi 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390fi 6391 6392found="no" 6393 6394 if test $found = "no" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6401 fi 6402 6403 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6404 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6406printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6407 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6408 if eval test \${$cacheid+y} 6409then : 6410 printf %s "(cached) " >&6 6411else case e in #( 6412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415int 6416main (void) 6417{ 6418 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_link "$LINENO" 6424then : 6425 eval $cacheid=yes 6426else case e in #( 6427 e) eval $cacheid=no ;; 6428esac 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6431 conftest$ac_exeext conftest.$ac_ext ;; 6432esac 6433fi 6434 6435 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437 6438 eval supported=\$$cacheid 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6440printf "%s\n" "$supported" >&6; } 6441 if test "$supported" = "yes" ; then 6442 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6443 found="yes" 6444 fi 6445 fi 6446 6447 6448 6449 6450 6451# This chunk adds additional warnings that could catch undesired effects. 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465xorg_testset_save_CFLAGS="$CFLAGS" 6466 6467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6472then : 6473 printf %s "(cached) " >&6 6474else case e in #( 6475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477int i; 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO" 6480then : 6481 xorg_cv_cc_flag_unknown_warning_option=yes 6482else case e in #( 6483 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6484esac 6485fi 6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6487esac 6488fi 6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493fi 6494 6495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6498 fi 6499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6502if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6503then : 6504 printf %s "(cached) " >&6 6505else case e in #( 6506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6507/* end confdefs.h. */ 6508int i; 6509_ACEOF 6510if ac_fn_c_try_compile "$LINENO" 6511then : 6512 xorg_cv_cc_flag_unused_command_line_argument=yes 6513else case e in #( 6514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6515esac 6516fi 6517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6518esac 6519fi 6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524fi 6525 6526found="no" 6527 6528 if test $found = "no" ; then 6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 fi 6532 6533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6535 fi 6536 6537 CFLAGS="$CFLAGS -Wunused" 6538 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6540printf %s "checking if $CC supports -Wunused... " >&6; } 6541 cacheid=xorg_cv_cc_flag__Wunused 6542 if eval test \${$cacheid+y} 6543then : 6544 printf %s "(cached) " >&6 6545else case e in #( 6546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6547/* end confdefs.h. */ 6548int i; 6549int 6550main (void) 6551{ 6552 6553 ; 6554 return 0; 6555} 6556_ACEOF 6557if ac_fn_c_try_link "$LINENO" 6558then : 6559 eval $cacheid=yes 6560else case e in #( 6561 e) eval $cacheid=no ;; 6562esac 6563fi 6564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6565 conftest$ac_exeext conftest.$ac_ext ;; 6566esac 6567fi 6568 6569 6570 CFLAGS="$xorg_testset_save_CFLAGS" 6571 6572 eval supported=\$$cacheid 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6574printf "%s\n" "$supported" >&6; } 6575 if test "$supported" = "yes" ; then 6576 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6577 found="yes" 6578 fi 6579 fi 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595xorg_testset_save_CFLAGS="$CFLAGS" 6596 6597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6601if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6602then : 6603 printf %s "(cached) " >&6 6604else case e in #( 6605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO" 6610then : 6611 xorg_cv_cc_flag_unknown_warning_option=yes 6612else case e in #( 6613 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6614esac 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6617esac 6618fi 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 fi 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6632if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6633then : 6634 printf %s "(cached) " >&6 6635else case e in #( 6636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638int i; 6639_ACEOF 6640if ac_fn_c_try_compile "$LINENO" 6641then : 6642 xorg_cv_cc_flag_unused_command_line_argument=yes 6643else case e in #( 6644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6645esac 6646fi 6647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6648esac 6649fi 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6653 CFLAGS="$xorg_testset_save_CFLAGS" 6654fi 6655 6656found="no" 6657 6658 if test $found = "no" ; then 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 fi 6662 6663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 fi 6666 6667 CFLAGS="$CFLAGS -Wuninitialized" 6668 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6670printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6671 cacheid=xorg_cv_cc_flag__Wuninitialized 6672 if eval test \${$cacheid+y} 6673then : 6674 printf %s "(cached) " >&6 6675else case e in #( 6676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679int 6680main (void) 6681{ 6682 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_link "$LINENO" 6688then : 6689 eval $cacheid=yes 6690else case e in #( 6691 e) eval $cacheid=no ;; 6692esac 6693fi 6694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6695 conftest$ac_exeext conftest.$ac_ext ;; 6696esac 6697fi 6698 6699 6700 CFLAGS="$xorg_testset_save_CFLAGS" 6701 6702 eval supported=\$$cacheid 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6704printf "%s\n" "$supported" >&6; } 6705 if test "$supported" = "yes" ; then 6706 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6707 found="yes" 6708 fi 6709 fi 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725xorg_testset_save_CFLAGS="$CFLAGS" 6726 6727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6731if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6732then : 6733 printf %s "(cached) " >&6 6734else case e in #( 6735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO" 6740then : 6741 xorg_cv_cc_flag_unknown_warning_option=yes 6742else case e in #( 6743 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6744esac 6745fi 6746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6747esac 6748fi 6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753fi 6754 6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6758 fi 6759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6763then : 6764 printf %s "(cached) " >&6 6765else case e in #( 6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO" 6771then : 6772 xorg_cv_cc_flag_unused_command_line_argument=yes 6773else case e in #( 6774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6775esac 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6778esac 6779fi 6780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6783 CFLAGS="$xorg_testset_save_CFLAGS" 6784fi 6785 6786found="no" 6787 6788 if test $found = "no" ; then 6789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6791 fi 6792 6793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6795 fi 6796 6797 CFLAGS="$CFLAGS -Wshadow" 6798 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6800printf %s "checking if $CC supports -Wshadow... " >&6; } 6801 cacheid=xorg_cv_cc_flag__Wshadow 6802 if eval test \${$cacheid+y} 6803then : 6804 printf %s "(cached) " >&6 6805else case e in #( 6806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808int i; 6809int 6810main (void) 6811{ 6812 6813 ; 6814 return 0; 6815} 6816_ACEOF 6817if ac_fn_c_try_link "$LINENO" 6818then : 6819 eval $cacheid=yes 6820else case e in #( 6821 e) eval $cacheid=no ;; 6822esac 6823fi 6824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6825 conftest$ac_exeext conftest.$ac_ext ;; 6826esac 6827fi 6828 6829 6830 CFLAGS="$xorg_testset_save_CFLAGS" 6831 6832 eval supported=\$$cacheid 6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6834printf "%s\n" "$supported" >&6; } 6835 if test "$supported" = "yes" ; then 6836 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6837 found="yes" 6838 fi 6839 fi 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855xorg_testset_save_CFLAGS="$CFLAGS" 6856 6857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6861if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6862then : 6863 printf %s "(cached) " >&6 6864else case e in #( 6865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866/* end confdefs.h. */ 6867int i; 6868_ACEOF 6869if ac_fn_c_try_compile "$LINENO" 6870then : 6871 xorg_cv_cc_flag_unknown_warning_option=yes 6872else case e in #( 6873 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6874esac 6875fi 6876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6877esac 6878fi 6879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883fi 6884 6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6888 fi 6889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6892if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6893then : 6894 printf %s "(cached) " >&6 6895else case e in #( 6896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899_ACEOF 6900if ac_fn_c_try_compile "$LINENO" 6901then : 6902 xorg_cv_cc_flag_unused_command_line_argument=yes 6903else case e in #( 6904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6905esac 6906fi 6907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6908esac 6909fi 6910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6913 CFLAGS="$xorg_testset_save_CFLAGS" 6914fi 6915 6916found="no" 6917 6918 if test $found = "no" ; then 6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 fi 6922 6923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6925 fi 6926 6927 CFLAGS="$CFLAGS -Wmissing-noreturn" 6928 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6930printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6931 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6932 if eval test \${$cacheid+y} 6933then : 6934 printf %s "(cached) " >&6 6935else case e in #( 6936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938int i; 6939int 6940main (void) 6941{ 6942 6943 ; 6944 return 0; 6945} 6946_ACEOF 6947if ac_fn_c_try_link "$LINENO" 6948then : 6949 eval $cacheid=yes 6950else case e in #( 6951 e) eval $cacheid=no ;; 6952esac 6953fi 6954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6955 conftest$ac_exeext conftest.$ac_ext ;; 6956esac 6957fi 6958 6959 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 6962 eval supported=\$$cacheid 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6964printf "%s\n" "$supported" >&6; } 6965 if test "$supported" = "yes" ; then 6966 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6967 found="yes" 6968 fi 6969 fi 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985xorg_testset_save_CFLAGS="$CFLAGS" 6986 6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6992then : 6993 printf %s "(cached) " >&6 6994else case e in #( 6995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO" 7000then : 7001 xorg_cv_cc_flag_unknown_warning_option=yes 7002else case e in #( 7003 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7004esac 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7007esac 7008fi 7009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7012 CFLAGS="$xorg_testset_save_CFLAGS" 7013fi 7014 7015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 fi 7019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7022if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7023then : 7024 printf %s "(cached) " >&6 7025else case e in #( 7026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028int i; 7029_ACEOF 7030if ac_fn_c_try_compile "$LINENO" 7031then : 7032 xorg_cv_cc_flag_unused_command_line_argument=yes 7033else case e in #( 7034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7035esac 7036fi 7037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7038esac 7039fi 7040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044fi 7045 7046found="no" 7047 7048 if test $found = "no" ; then 7049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7051 fi 7052 7053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7055 fi 7056 7057 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7058 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7060printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7061 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7062 if eval test \${$cacheid+y} 7063then : 7064 printf %s "(cached) " >&6 7065else case e in #( 7066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068int i; 7069int 7070main (void) 7071{ 7072 7073 ; 7074 return 0; 7075} 7076_ACEOF 7077if ac_fn_c_try_link "$LINENO" 7078then : 7079 eval $cacheid=yes 7080else case e in #( 7081 e) eval $cacheid=no ;; 7082esac 7083fi 7084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7085 conftest$ac_exeext conftest.$ac_ext ;; 7086esac 7087fi 7088 7089 7090 CFLAGS="$xorg_testset_save_CFLAGS" 7091 7092 eval supported=\$$cacheid 7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7094printf "%s\n" "$supported" >&6; } 7095 if test "$supported" = "yes" ; then 7096 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7097 found="yes" 7098 fi 7099 fi 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115xorg_testset_save_CFLAGS="$CFLAGS" 7116 7117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7121if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7122then : 7123 printf %s "(cached) " >&6 7124else case e in #( 7125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126/* end confdefs.h. */ 7127int i; 7128_ACEOF 7129if ac_fn_c_try_compile "$LINENO" 7130then : 7131 xorg_cv_cc_flag_unknown_warning_option=yes 7132else case e in #( 7133 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7134esac 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7137esac 7138fi 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143fi 7144 7145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7148 fi 7149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7152if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7153then : 7154 printf %s "(cached) " >&6 7155else case e in #( 7156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157/* end confdefs.h. */ 7158int i; 7159_ACEOF 7160if ac_fn_c_try_compile "$LINENO" 7161then : 7162 xorg_cv_cc_flag_unused_command_line_argument=yes 7163else case e in #( 7164 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7165esac 7166fi 7167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7168esac 7169fi 7170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7173 CFLAGS="$xorg_testset_save_CFLAGS" 7174fi 7175 7176found="no" 7177 7178 if test $found = "no" ; then 7179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 fi 7182 7183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7185 fi 7186 7187 CFLAGS="$CFLAGS -Wredundant-decls" 7188 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7190printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7191 cacheid=xorg_cv_cc_flag__Wredundant_decls 7192 if eval test \${$cacheid+y} 7193then : 7194 printf %s "(cached) " >&6 7195else case e in #( 7196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198int i; 7199int 7200main (void) 7201{ 7202 7203 ; 7204 return 0; 7205} 7206_ACEOF 7207if ac_fn_c_try_link "$LINENO" 7208then : 7209 eval $cacheid=yes 7210else case e in #( 7211 e) eval $cacheid=no ;; 7212esac 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7215 conftest$ac_exeext conftest.$ac_ext ;; 7216esac 7217fi 7218 7219 7220 CFLAGS="$xorg_testset_save_CFLAGS" 7221 7222 eval supported=\$$cacheid 7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7224printf "%s\n" "$supported" >&6; } 7225 if test "$supported" = "yes" ; then 7226 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7227 found="yes" 7228 fi 7229 fi 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245xorg_testset_save_CFLAGS="$CFLAGS" 7246 7247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7252then : 7253 printf %s "(cached) " >&6 7254else case e in #( 7255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256/* end confdefs.h. */ 7257int i; 7258_ACEOF 7259if ac_fn_c_try_compile "$LINENO" 7260then : 7261 xorg_cv_cc_flag_unknown_warning_option=yes 7262else case e in #( 7263 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7264esac 7265fi 7266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7267esac 7268fi 7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7272 CFLAGS="$xorg_testset_save_CFLAGS" 7273fi 7274 7275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7282if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7283then : 7284 printf %s "(cached) " >&6 7285else case e in #( 7286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289_ACEOF 7290if ac_fn_c_try_compile "$LINENO" 7291then : 7292 xorg_cv_cc_flag_unused_command_line_argument=yes 7293else case e in #( 7294 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7295esac 7296fi 7297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7298esac 7299fi 7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7303 CFLAGS="$xorg_testset_save_CFLAGS" 7304fi 7305 7306found="no" 7307 7308 if test $found = "no" ; then 7309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 fi 7312 7313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7315 fi 7316 7317 CFLAGS="$CFLAGS -Wlogical-op" 7318 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7320printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7321 cacheid=xorg_cv_cc_flag__Wlogical_op 7322 if eval test \${$cacheid+y} 7323then : 7324 printf %s "(cached) " >&6 7325else case e in #( 7326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328int i; 7329int 7330main (void) 7331{ 7332 7333 ; 7334 return 0; 7335} 7336_ACEOF 7337if ac_fn_c_try_link "$LINENO" 7338then : 7339 eval $cacheid=yes 7340else case e in #( 7341 e) eval $cacheid=no ;; 7342esac 7343fi 7344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7345 conftest$ac_exeext conftest.$ac_ext ;; 7346esac 7347fi 7348 7349 7350 CFLAGS="$xorg_testset_save_CFLAGS" 7351 7352 eval supported=\$$cacheid 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7354printf "%s\n" "$supported" >&6; } 7355 if test "$supported" = "yes" ; then 7356 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7357 found="yes" 7358 fi 7359 fi 7360 7361 7362 7363# These are currently disabled because they are noisy. They will be enabled 7364# in the future once the codebase is sufficiently modernized to silence 7365# them. For now, I don't want them to drown out the other warnings. 7366# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7367# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7368# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7369 7370# Turn some warnings into errors, so we don't accidentally get successful builds 7371# when there are problems that should be fixed. 7372 7373if test "x$SELECTIVE_WERROR" = "xyes" ; then 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387xorg_testset_save_CFLAGS="$CFLAGS" 7388 7389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7393if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7394then : 7395 printf %s "(cached) " >&6 7396else case e in #( 7397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398/* end confdefs.h. */ 7399int i; 7400_ACEOF 7401if ac_fn_c_try_compile "$LINENO" 7402then : 7403 xorg_cv_cc_flag_unknown_warning_option=yes 7404else case e in #( 7405 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7406esac 7407fi 7408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7409esac 7410fi 7411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7414 CFLAGS="$xorg_testset_save_CFLAGS" 7415fi 7416 7417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7420 fi 7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7424if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7425then : 7426 printf %s "(cached) " >&6 7427else case e in #( 7428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430int i; 7431_ACEOF 7432if ac_fn_c_try_compile "$LINENO" 7433then : 7434 xorg_cv_cc_flag_unused_command_line_argument=yes 7435else case e in #( 7436 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7437esac 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7440esac 7441fi 7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7443printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448found="no" 7449 7450 if test $found = "no" ; then 7451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 fi 7454 7455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7457 fi 7458 7459 CFLAGS="$CFLAGS -Werror=implicit" 7460 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7462printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7463 cacheid=xorg_cv_cc_flag__Werror_implicit 7464 if eval test \${$cacheid+y} 7465then : 7466 printf %s "(cached) " >&6 7467else case e in #( 7468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470int i; 7471int 7472main (void) 7473{ 7474 7475 ; 7476 return 0; 7477} 7478_ACEOF 7479if ac_fn_c_try_link "$LINENO" 7480then : 7481 eval $cacheid=yes 7482else case e in #( 7483 e) eval $cacheid=no ;; 7484esac 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7487 conftest$ac_exeext conftest.$ac_ext ;; 7488esac 7489fi 7490 7491 7492 CFLAGS="$xorg_testset_save_CFLAGS" 7493 7494 eval supported=\$$cacheid 7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7496printf "%s\n" "$supported" >&6; } 7497 if test "$supported" = "yes" ; then 7498 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7499 found="yes" 7500 fi 7501 fi 7502 7503 if test $found = "no" ; then 7504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7506 fi 7507 7508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7510 fi 7511 7512 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7513 7514 { 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 7515printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7516 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7517 if eval test \${$cacheid+y} 7518then : 7519 printf %s "(cached) " >&6 7520else case e in #( 7521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522/* end confdefs.h. */ 7523int i; 7524int 7525main (void) 7526{ 7527 7528 ; 7529 return 0; 7530} 7531_ACEOF 7532if ac_fn_c_try_link "$LINENO" 7533then : 7534 eval $cacheid=yes 7535else case e in #( 7536 e) eval $cacheid=no ;; 7537esac 7538fi 7539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7540 conftest$ac_exeext conftest.$ac_ext ;; 7541esac 7542fi 7543 7544 7545 CFLAGS="$xorg_testset_save_CFLAGS" 7546 7547 eval supported=\$$cacheid 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7549printf "%s\n" "$supported" >&6; } 7550 if test "$supported" = "yes" ; then 7551 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7552 found="yes" 7553 fi 7554 fi 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570xorg_testset_save_CFLAGS="$CFLAGS" 7571 7572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7576if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7577then : 7578 printf %s "(cached) " >&6 7579else case e in #( 7580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582int i; 7583_ACEOF 7584if ac_fn_c_try_compile "$LINENO" 7585then : 7586 xorg_cv_cc_flag_unknown_warning_option=yes 7587else case e in #( 7588 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7589esac 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7592esac 7593fi 7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7597 CFLAGS="$xorg_testset_save_CFLAGS" 7598fi 7599 7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 fi 7604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7607if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7608then : 7609 printf %s "(cached) " >&6 7610else case e in #( 7611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613int i; 7614_ACEOF 7615if ac_fn_c_try_compile "$LINENO" 7616then : 7617 xorg_cv_cc_flag_unused_command_line_argument=yes 7618else case e in #( 7619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7620esac 7621fi 7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7623esac 7624fi 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631found="no" 7632 7633 if test $found = "no" ; then 7634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7636 fi 7637 7638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7640 fi 7641 7642 CFLAGS="$CFLAGS -Werror=nonnull" 7643 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7645printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7646 cacheid=xorg_cv_cc_flag__Werror_nonnull 7647 if eval test \${$cacheid+y} 7648then : 7649 printf %s "(cached) " >&6 7650else case e in #( 7651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653int i; 7654int 7655main (void) 7656{ 7657 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO" 7663then : 7664 eval $cacheid=yes 7665else case e in #( 7666 e) eval $cacheid=no ;; 7667esac 7668fi 7669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7670 conftest$ac_exeext conftest.$ac_ext ;; 7671esac 7672fi 7673 7674 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676 7677 eval supported=\$$cacheid 7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7679printf "%s\n" "$supported" >&6; } 7680 if test "$supported" = "yes" ; then 7681 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7682 found="yes" 7683 fi 7684 fi 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700xorg_testset_save_CFLAGS="$CFLAGS" 7701 7702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7706if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7707then : 7708 printf %s "(cached) " >&6 7709else case e in #( 7710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713_ACEOF 7714if ac_fn_c_try_compile "$LINENO" 7715then : 7716 xorg_cv_cc_flag_unknown_warning_option=yes 7717else case e in #( 7718 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7719esac 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7722esac 7723fi 7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7727 CFLAGS="$xorg_testset_save_CFLAGS" 7728fi 7729 7730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7733 fi 7734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7738then : 7739 printf %s "(cached) " >&6 7740else case e in #( 7741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743int i; 7744_ACEOF 7745if ac_fn_c_try_compile "$LINENO" 7746then : 7747 xorg_cv_cc_flag_unused_command_line_argument=yes 7748else case e in #( 7749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7750esac 7751fi 7752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7753esac 7754fi 7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7758 CFLAGS="$xorg_testset_save_CFLAGS" 7759fi 7760 7761found="no" 7762 7763 if test $found = "no" ; then 7764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 fi 7767 7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7770 fi 7771 7772 CFLAGS="$CFLAGS -Werror=init-self" 7773 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7775printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7776 cacheid=xorg_cv_cc_flag__Werror_init_self 7777 if eval test \${$cacheid+y} 7778then : 7779 printf %s "(cached) " >&6 7780else case e in #( 7781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784int 7785main (void) 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO" 7793then : 7794 eval $cacheid=yes 7795else case e in #( 7796 e) eval $cacheid=no ;; 7797esac 7798fi 7799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7800 conftest$ac_exeext conftest.$ac_ext ;; 7801esac 7802fi 7803 7804 7805 CFLAGS="$xorg_testset_save_CFLAGS" 7806 7807 eval supported=\$$cacheid 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7809printf "%s\n" "$supported" >&6; } 7810 if test "$supported" = "yes" ; then 7811 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7812 found="yes" 7813 fi 7814 fi 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830xorg_testset_save_CFLAGS="$CFLAGS" 7831 7832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7837then : 7838 printf %s "(cached) " >&6 7839else case e in #( 7840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842int i; 7843_ACEOF 7844if ac_fn_c_try_compile "$LINENO" 7845then : 7846 xorg_cv_cc_flag_unknown_warning_option=yes 7847else case e in #( 7848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7849esac 7850fi 7851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7852esac 7853fi 7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858fi 7859 7860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7863 fi 7864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7867if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7868then : 7869 printf %s "(cached) " >&6 7870else case e in #( 7871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872/* end confdefs.h. */ 7873int i; 7874_ACEOF 7875if ac_fn_c_try_compile "$LINENO" 7876then : 7877 xorg_cv_cc_flag_unused_command_line_argument=yes 7878else case e in #( 7879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7880esac 7881fi 7882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7883esac 7884fi 7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889fi 7890 7891found="no" 7892 7893 if test $found = "no" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 fi 7901 7902 CFLAGS="$CFLAGS -Werror=main" 7903 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7905printf %s "checking if $CC supports -Werror=main... " >&6; } 7906 cacheid=xorg_cv_cc_flag__Werror_main 7907 if eval test \${$cacheid+y} 7908then : 7909 printf %s "(cached) " >&6 7910else case e in #( 7911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912/* end confdefs.h. */ 7913int i; 7914int 7915main (void) 7916{ 7917 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922if ac_fn_c_try_link "$LINENO" 7923then : 7924 eval $cacheid=yes 7925else case e in #( 7926 e) eval $cacheid=no ;; 7927esac 7928fi 7929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7930 conftest$ac_exeext conftest.$ac_ext ;; 7931esac 7932fi 7933 7934 7935 CFLAGS="$xorg_testset_save_CFLAGS" 7936 7937 eval supported=\$$cacheid 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7939printf "%s\n" "$supported" >&6; } 7940 if test "$supported" = "yes" ; then 7941 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7942 found="yes" 7943 fi 7944 fi 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960xorg_testset_save_CFLAGS="$CFLAGS" 7961 7962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7967then : 7968 printf %s "(cached) " >&6 7969else case e in #( 7970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO" 7975then : 7976 xorg_cv_cc_flag_unknown_warning_option=yes 7977else case e in #( 7978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7979esac 7980fi 7981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7982esac 7983fi 7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7998then : 7999 printf %s "(cached) " >&6 8000else case e in #( 8001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004_ACEOF 8005if ac_fn_c_try_compile "$LINENO" 8006then : 8007 xorg_cv_cc_flag_unused_command_line_argument=yes 8008else case e in #( 8009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8010esac 8011fi 8012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8013esac 8014fi 8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019fi 8020 8021found="no" 8022 8023 if test $found = "no" ; then 8024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 fi 8027 8028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8030 fi 8031 8032 CFLAGS="$CFLAGS -Werror=missing-braces" 8033 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8035printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8036 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8037 if eval test \${$cacheid+y} 8038then : 8039 printf %s "(cached) " >&6 8040else case e in #( 8041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043int i; 8044int 8045main (void) 8046{ 8047 8048 ; 8049 return 0; 8050} 8051_ACEOF 8052if ac_fn_c_try_link "$LINENO" 8053then : 8054 eval $cacheid=yes 8055else case e in #( 8056 e) eval $cacheid=no ;; 8057esac 8058fi 8059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8060 conftest$ac_exeext conftest.$ac_ext ;; 8061esac 8062fi 8063 8064 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066 8067 eval supported=\$$cacheid 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8069printf "%s\n" "$supported" >&6; } 8070 if test "$supported" = "yes" ; then 8071 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8072 found="yes" 8073 fi 8074 fi 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090xorg_testset_save_CFLAGS="$CFLAGS" 8091 8092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8097then : 8098 printf %s "(cached) " >&6 8099else case e in #( 8100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101/* end confdefs.h. */ 8102int i; 8103_ACEOF 8104if ac_fn_c_try_compile "$LINENO" 8105then : 8106 xorg_cv_cc_flag_unknown_warning_option=yes 8107else case e in #( 8108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8109esac 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8112esac 8113fi 8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118fi 8119 8120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8123 fi 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8128then : 8129 printf %s "(cached) " >&6 8130else case e in #( 8131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134_ACEOF 8135if ac_fn_c_try_compile "$LINENO" 8136then : 8137 xorg_cv_cc_flag_unused_command_line_argument=yes 8138else case e in #( 8139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8140esac 8141fi 8142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8143esac 8144fi 8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149fi 8150 8151found="no" 8152 8153 if test $found = "no" ; then 8154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8156 fi 8157 8158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8160 fi 8161 8162 CFLAGS="$CFLAGS -Werror=sequence-point" 8163 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8165printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8166 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8167 if eval test \${$cacheid+y} 8168then : 8169 printf %s "(cached) " >&6 8170else case e in #( 8171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174int 8175main (void) 8176{ 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_link "$LINENO" 8183then : 8184 eval $cacheid=yes 8185else case e in #( 8186 e) eval $cacheid=no ;; 8187esac 8188fi 8189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8190 conftest$ac_exeext conftest.$ac_ext ;; 8191esac 8192fi 8193 8194 8195 CFLAGS="$xorg_testset_save_CFLAGS" 8196 8197 eval supported=\$$cacheid 8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8199printf "%s\n" "$supported" >&6; } 8200 if test "$supported" = "yes" ; then 8201 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8202 found="yes" 8203 fi 8204 fi 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220xorg_testset_save_CFLAGS="$CFLAGS" 8221 8222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8227then : 8228 printf %s "(cached) " >&6 8229else case e in #( 8230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8231/* end confdefs.h. */ 8232int i; 8233_ACEOF 8234if ac_fn_c_try_compile "$LINENO" 8235then : 8236 xorg_cv_cc_flag_unknown_warning_option=yes 8237else case e in #( 8238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8239esac 8240fi 8241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8242esac 8243fi 8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8247 CFLAGS="$xorg_testset_save_CFLAGS" 8248fi 8249 8250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8253 fi 8254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8258then : 8259 printf %s "(cached) " >&6 8260else case e in #( 8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262/* end confdefs.h. */ 8263int i; 8264_ACEOF 8265if ac_fn_c_try_compile "$LINENO" 8266then : 8267 xorg_cv_cc_flag_unused_command_line_argument=yes 8268else case e in #( 8269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8270esac 8271fi 8272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8273esac 8274fi 8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279fi 8280 8281found="no" 8282 8283 if test $found = "no" ; then 8284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 fi 8287 8288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 fi 8291 8292 CFLAGS="$CFLAGS -Werror=return-type" 8293 8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8295printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8296 cacheid=xorg_cv_cc_flag__Werror_return_type 8297 if eval test \${$cacheid+y} 8298then : 8299 printf %s "(cached) " >&6 8300else case e in #( 8301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8302/* end confdefs.h. */ 8303int i; 8304int 8305main (void) 8306{ 8307 8308 ; 8309 return 0; 8310} 8311_ACEOF 8312if ac_fn_c_try_link "$LINENO" 8313then : 8314 eval $cacheid=yes 8315else case e in #( 8316 e) eval $cacheid=no ;; 8317esac 8318fi 8319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8320 conftest$ac_exeext conftest.$ac_ext ;; 8321esac 8322fi 8323 8324 8325 CFLAGS="$xorg_testset_save_CFLAGS" 8326 8327 eval supported=\$$cacheid 8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8329printf "%s\n" "$supported" >&6; } 8330 if test "$supported" = "yes" ; then 8331 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8332 found="yes" 8333 fi 8334 fi 8335 8336 if test $found = "no" ; then 8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 fi 8340 8341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8343 fi 8344 8345 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8346 8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8348printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8349 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8350 if eval test \${$cacheid+y} 8351then : 8352 printf %s "(cached) " >&6 8353else case e in #( 8354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355/* end confdefs.h. */ 8356int i; 8357int 8358main (void) 8359{ 8360 8361 ; 8362 return 0; 8363} 8364_ACEOF 8365if ac_fn_c_try_link "$LINENO" 8366then : 8367 eval $cacheid=yes 8368else case e in #( 8369 e) eval $cacheid=no ;; 8370esac 8371fi 8372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8373 conftest$ac_exeext conftest.$ac_ext ;; 8374esac 8375fi 8376 8377 8378 CFLAGS="$xorg_testset_save_CFLAGS" 8379 8380 eval supported=\$$cacheid 8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8382printf "%s\n" "$supported" >&6; } 8383 if test "$supported" = "yes" ; then 8384 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8385 found="yes" 8386 fi 8387 fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403xorg_testset_save_CFLAGS="$CFLAGS" 8404 8405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8408printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8409if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8410then : 8411 printf %s "(cached) " >&6 8412else case e in #( 8413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415int i; 8416_ACEOF 8417if ac_fn_c_try_compile "$LINENO" 8418then : 8419 xorg_cv_cc_flag_unknown_warning_option=yes 8420else case e in #( 8421 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8422esac 8423fi 8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8425esac 8426fi 8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431fi 8432 8433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8436 fi 8437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8440if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8441then : 8442 printf %s "(cached) " >&6 8443else case e in #( 8444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446int i; 8447_ACEOF 8448if ac_fn_c_try_compile "$LINENO" 8449then : 8450 xorg_cv_cc_flag_unused_command_line_argument=yes 8451else case e in #( 8452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8453esac 8454fi 8455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8456esac 8457fi 8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8461 CFLAGS="$xorg_testset_save_CFLAGS" 8462fi 8463 8464found="no" 8465 8466 if test $found = "no" ; then 8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 fi 8470 8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473 fi 8474 8475 CFLAGS="$CFLAGS -Werror=trigraphs" 8476 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8478printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8479 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8480 if eval test \${$cacheid+y} 8481then : 8482 printf %s "(cached) " >&6 8483else case e in #( 8484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8485/* end confdefs.h. */ 8486int i; 8487int 8488main (void) 8489{ 8490 8491 ; 8492 return 0; 8493} 8494_ACEOF 8495if ac_fn_c_try_link "$LINENO" 8496then : 8497 eval $cacheid=yes 8498else case e in #( 8499 e) eval $cacheid=no ;; 8500esac 8501fi 8502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8503 conftest$ac_exeext conftest.$ac_ext ;; 8504esac 8505fi 8506 8507 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509 8510 eval supported=\$$cacheid 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8512printf "%s\n" "$supported" >&6; } 8513 if test "$supported" = "yes" ; then 8514 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8515 found="yes" 8516 fi 8517 fi 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533xorg_testset_save_CFLAGS="$CFLAGS" 8534 8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8539if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8540then : 8541 printf %s "(cached) " >&6 8542else case e in #( 8543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO" 8548then : 8549 xorg_cv_cc_flag_unknown_warning_option=yes 8550else case e in #( 8551 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8552esac 8553fi 8554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8555esac 8556fi 8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561fi 8562 8563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8566 fi 8567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8570if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8571then : 8572 printf %s "(cached) " >&6 8573else case e in #( 8574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8575/* end confdefs.h. */ 8576int i; 8577_ACEOF 8578if ac_fn_c_try_compile "$LINENO" 8579then : 8580 xorg_cv_cc_flag_unused_command_line_argument=yes 8581else case e in #( 8582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8583esac 8584fi 8585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8586esac 8587fi 8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592fi 8593 8594found="no" 8595 8596 if test $found = "no" ; then 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 fi 8600 8601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8603 fi 8604 8605 CFLAGS="$CFLAGS -Werror=array-bounds" 8606 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8608printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8609 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8610 if eval test \${$cacheid+y} 8611then : 8612 printf %s "(cached) " >&6 8613else case e in #( 8614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616int i; 8617int 8618main (void) 8619{ 8620 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625if ac_fn_c_try_link "$LINENO" 8626then : 8627 eval $cacheid=yes 8628else case e in #( 8629 e) eval $cacheid=no ;; 8630esac 8631fi 8632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8633 conftest$ac_exeext conftest.$ac_ext ;; 8634esac 8635fi 8636 8637 8638 CFLAGS="$xorg_testset_save_CFLAGS" 8639 8640 eval supported=\$$cacheid 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8642printf "%s\n" "$supported" >&6; } 8643 if test "$supported" = "yes" ; then 8644 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8645 found="yes" 8646 fi 8647 fi 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663xorg_testset_save_CFLAGS="$CFLAGS" 8664 8665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8669if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8670then : 8671 printf %s "(cached) " >&6 8672else case e in #( 8673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676_ACEOF 8677if ac_fn_c_try_compile "$LINENO" 8678then : 8679 xorg_cv_cc_flag_unknown_warning_option=yes 8680else case e in #( 8681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8682esac 8683fi 8684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8685esac 8686fi 8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691fi 8692 8693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8696 fi 8697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8700if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8701then : 8702 printf %s "(cached) " >&6 8703else case e in #( 8704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706int i; 8707_ACEOF 8708if ac_fn_c_try_compile "$LINENO" 8709then : 8710 xorg_cv_cc_flag_unused_command_line_argument=yes 8711else case e in #( 8712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8713esac 8714fi 8715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8716esac 8717fi 8718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8721 CFLAGS="$xorg_testset_save_CFLAGS" 8722fi 8723 8724found="no" 8725 8726 if test $found = "no" ; then 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 fi 8730 8731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 fi 8734 8735 CFLAGS="$CFLAGS -Werror=write-strings" 8736 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8738printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8739 cacheid=xorg_cv_cc_flag__Werror_write_strings 8740 if eval test \${$cacheid+y} 8741then : 8742 printf %s "(cached) " >&6 8743else case e in #( 8744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8745/* end confdefs.h. */ 8746int i; 8747int 8748main (void) 8749{ 8750 8751 ; 8752 return 0; 8753} 8754_ACEOF 8755if ac_fn_c_try_link "$LINENO" 8756then : 8757 eval $cacheid=yes 8758else case e in #( 8759 e) eval $cacheid=no ;; 8760esac 8761fi 8762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8763 conftest$ac_exeext conftest.$ac_ext ;; 8764esac 8765fi 8766 8767 8768 CFLAGS="$xorg_testset_save_CFLAGS" 8769 8770 eval supported=\$$cacheid 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8772printf "%s\n" "$supported" >&6; } 8773 if test "$supported" = "yes" ; then 8774 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8775 found="yes" 8776 fi 8777 fi 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793xorg_testset_save_CFLAGS="$CFLAGS" 8794 8795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8800then : 8801 printf %s "(cached) " >&6 8802else case e in #( 8803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805int i; 8806_ACEOF 8807if ac_fn_c_try_compile "$LINENO" 8808then : 8809 xorg_cv_cc_flag_unknown_warning_option=yes 8810else case e in #( 8811 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8812esac 8813fi 8814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8815esac 8816fi 8817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821fi 8822 8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 fi 8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8831then : 8832 printf %s "(cached) " >&6 8833else case e in #( 8834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8835/* end confdefs.h. */ 8836int i; 8837_ACEOF 8838if ac_fn_c_try_compile "$LINENO" 8839then : 8840 xorg_cv_cc_flag_unused_command_line_argument=yes 8841else case e in #( 8842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8843esac 8844fi 8845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8846esac 8847fi 8848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8851 CFLAGS="$xorg_testset_save_CFLAGS" 8852fi 8853 8854found="no" 8855 8856 if test $found = "no" ; then 8857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8859 fi 8860 8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8863 fi 8864 8865 CFLAGS="$CFLAGS -Werror=address" 8866 8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8868printf %s "checking if $CC supports -Werror=address... " >&6; } 8869 cacheid=xorg_cv_cc_flag__Werror_address 8870 if eval test \${$cacheid+y} 8871then : 8872 printf %s "(cached) " >&6 8873else case e in #( 8874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877int 8878main (void) 8879{ 8880 8881 ; 8882 return 0; 8883} 8884_ACEOF 8885if ac_fn_c_try_link "$LINENO" 8886then : 8887 eval $cacheid=yes 8888else case e in #( 8889 e) eval $cacheid=no ;; 8890esac 8891fi 8892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8893 conftest$ac_exeext conftest.$ac_ext ;; 8894esac 8895fi 8896 8897 8898 CFLAGS="$xorg_testset_save_CFLAGS" 8899 8900 eval supported=\$$cacheid 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8902printf "%s\n" "$supported" >&6; } 8903 if test "$supported" = "yes" ; then 8904 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8905 found="yes" 8906 fi 8907 fi 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923xorg_testset_save_CFLAGS="$CFLAGS" 8924 8925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8928printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8929if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8930then : 8931 printf %s "(cached) " >&6 8932else case e in #( 8933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8934/* end confdefs.h. */ 8935int i; 8936_ACEOF 8937if ac_fn_c_try_compile "$LINENO" 8938then : 8939 xorg_cv_cc_flag_unknown_warning_option=yes 8940else case e in #( 8941 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8942esac 8943fi 8944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8945esac 8946fi 8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951fi 8952 8953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 fi 8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8960if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8961then : 8962 printf %s "(cached) " >&6 8963else case e in #( 8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO" 8969then : 8970 xorg_cv_cc_flag_unused_command_line_argument=yes 8971else case e in #( 8972 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8973esac 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8976esac 8977fi 8978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982fi 8983 8984found="no" 8985 8986 if test $found = "no" ; then 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 fi 8990 8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8993 fi 8994 8995 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8996 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8998printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8999 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9000 if eval test \${$cacheid+y} 9001then : 9002 printf %s "(cached) " >&6 9003else case e in #( 9004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006int i; 9007int 9008main (void) 9009{ 9010 9011 ; 9012 return 0; 9013} 9014_ACEOF 9015if ac_fn_c_try_link "$LINENO" 9016then : 9017 eval $cacheid=yes 9018else case e in #( 9019 e) eval $cacheid=no ;; 9020esac 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9023 conftest$ac_exeext conftest.$ac_ext ;; 9024esac 9025fi 9026 9027 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029 9030 eval supported=\$$cacheid 9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9032printf "%s\n" "$supported" >&6; } 9033 if test "$supported" = "yes" ; then 9034 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9035 found="yes" 9036 fi 9037 fi 9038 9039 if test $found = "no" ; then 9040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9042 fi 9043 9044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9046 fi 9047 9048 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9049 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9051printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9052 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9053 if eval test \${$cacheid+y} 9054then : 9055 printf %s "(cached) " >&6 9056else case e in #( 9057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059int i; 9060int 9061main (void) 9062{ 9063 9064 ; 9065 return 0; 9066} 9067_ACEOF 9068if ac_fn_c_try_link "$LINENO" 9069then : 9070 eval $cacheid=yes 9071else case e in #( 9072 e) eval $cacheid=no ;; 9073esac 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9076 conftest$ac_exeext conftest.$ac_ext ;; 9077esac 9078fi 9079 9080 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082 9083 eval supported=\$$cacheid 9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9085printf "%s\n" "$supported" >&6; } 9086 if test "$supported" = "yes" ; then 9087 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9088 found="yes" 9089 fi 9090 fi 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106xorg_testset_save_CFLAGS="$CFLAGS" 9107 9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9113then : 9114 printf %s "(cached) " >&6 9115else case e in #( 9116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117/* end confdefs.h. */ 9118int i; 9119_ACEOF 9120if ac_fn_c_try_compile "$LINENO" 9121then : 9122 xorg_cv_cc_flag_unknown_warning_option=yes 9123else case e in #( 9124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9125esac 9126fi 9127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9128esac 9129fi 9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9133 CFLAGS="$xorg_testset_save_CFLAGS" 9134fi 9135 9136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9139 fi 9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9144then : 9145 printf %s "(cached) " >&6 9146else case e in #( 9147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148/* end confdefs.h. */ 9149int i; 9150_ACEOF 9151if ac_fn_c_try_compile "$LINENO" 9152then : 9153 xorg_cv_cc_flag_unused_command_line_argument=yes 9154else case e in #( 9155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9156esac 9157fi 9158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9159esac 9160fi 9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9164 CFLAGS="$xorg_testset_save_CFLAGS" 9165fi 9166 9167found="no" 9168 9169 if test $found = "no" ; then 9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9172 fi 9173 9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9176 fi 9177 9178 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9179 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9181printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9182 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9183 if eval test \${$cacheid+y} 9184then : 9185 printf %s "(cached) " >&6 9186else case e in #( 9187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188/* end confdefs.h. */ 9189int i; 9190int 9191main (void) 9192{ 9193 9194 ; 9195 return 0; 9196} 9197_ACEOF 9198if ac_fn_c_try_link "$LINENO" 9199then : 9200 eval $cacheid=yes 9201else case e in #( 9202 e) eval $cacheid=no ;; 9203esac 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9206 conftest$ac_exeext conftest.$ac_ext ;; 9207esac 9208fi 9209 9210 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212 9213 eval supported=\$$cacheid 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9215printf "%s\n" "$supported" >&6; } 9216 if test "$supported" = "yes" ; then 9217 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9218 found="yes" 9219 fi 9220 fi 9221 9222 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9223else 9224{ 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 9225printf "%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;} 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239xorg_testset_save_CFLAGS="$CFLAGS" 9240 9241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9245if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9246then : 9247 printf %s "(cached) " >&6 9248else case e in #( 9249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO" 9254then : 9255 xorg_cv_cc_flag_unknown_warning_option=yes 9256else case e in #( 9257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9258esac 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9261esac 9262fi 9263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267fi 9268 9269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9277then : 9278 printf %s "(cached) " >&6 9279else case e in #( 9280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282int i; 9283_ACEOF 9284if ac_fn_c_try_compile "$LINENO" 9285then : 9286 xorg_cv_cc_flag_unused_command_line_argument=yes 9287else case e in #( 9288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9289esac 9290fi 9291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9292esac 9293fi 9294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9297 CFLAGS="$xorg_testset_save_CFLAGS" 9298fi 9299 9300found="no" 9301 9302 if test $found = "no" ; then 9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9305 fi 9306 9307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9309 fi 9310 9311 CFLAGS="$CFLAGS -Wimplicit" 9312 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9314printf %s "checking if $CC supports -Wimplicit... " >&6; } 9315 cacheid=xorg_cv_cc_flag__Wimplicit 9316 if eval test \${$cacheid+y} 9317then : 9318 printf %s "(cached) " >&6 9319else case e in #( 9320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323int 9324main (void) 9325{ 9326 9327 ; 9328 return 0; 9329} 9330_ACEOF 9331if ac_fn_c_try_link "$LINENO" 9332then : 9333 eval $cacheid=yes 9334else case e in #( 9335 e) eval $cacheid=no ;; 9336esac 9337fi 9338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9339 conftest$ac_exeext conftest.$ac_ext ;; 9340esac 9341fi 9342 9343 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345 9346 eval supported=\$$cacheid 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9348printf "%s\n" "$supported" >&6; } 9349 if test "$supported" = "yes" ; then 9350 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9351 found="yes" 9352 fi 9353 fi 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369xorg_testset_save_CFLAGS="$CFLAGS" 9370 9371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9376then : 9377 printf %s "(cached) " >&6 9378else case e in #( 9379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381int i; 9382_ACEOF 9383if ac_fn_c_try_compile "$LINENO" 9384then : 9385 xorg_cv_cc_flag_unknown_warning_option=yes 9386else case e in #( 9387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9388esac 9389fi 9390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9391esac 9392fi 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397fi 9398 9399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 fi 9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9406if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9407then : 9408 printf %s "(cached) " >&6 9409else case e in #( 9410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412int i; 9413_ACEOF 9414if ac_fn_c_try_compile "$LINENO" 9415then : 9416 xorg_cv_cc_flag_unused_command_line_argument=yes 9417else case e in #( 9418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9419esac 9420fi 9421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9422esac 9423fi 9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9427 CFLAGS="$xorg_testset_save_CFLAGS" 9428fi 9429 9430found="no" 9431 9432 if test $found = "no" ; then 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 fi 9436 9437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9439 fi 9440 9441 CFLAGS="$CFLAGS -Wnonnull" 9442 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9444printf %s "checking if $CC supports -Wnonnull... " >&6; } 9445 cacheid=xorg_cv_cc_flag__Wnonnull 9446 if eval test \${$cacheid+y} 9447then : 9448 printf %s "(cached) " >&6 9449else case e in #( 9450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451/* end confdefs.h. */ 9452int i; 9453int 9454main (void) 9455{ 9456 9457 ; 9458 return 0; 9459} 9460_ACEOF 9461if ac_fn_c_try_link "$LINENO" 9462then : 9463 eval $cacheid=yes 9464else case e in #( 9465 e) eval $cacheid=no ;; 9466esac 9467fi 9468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9469 conftest$ac_exeext conftest.$ac_ext ;; 9470esac 9471fi 9472 9473 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475 9476 eval supported=\$$cacheid 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9478printf "%s\n" "$supported" >&6; } 9479 if test "$supported" = "yes" ; then 9480 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9481 found="yes" 9482 fi 9483 fi 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499xorg_testset_save_CFLAGS="$CFLAGS" 9500 9501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9506then : 9507 printf %s "(cached) " >&6 9508else case e in #( 9509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO" 9514then : 9515 xorg_cv_cc_flag_unknown_warning_option=yes 9516else case e in #( 9517 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9518esac 9519fi 9520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9521esac 9522fi 9523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527fi 9528 9529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 fi 9533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9537then : 9538 printf %s "(cached) " >&6 9539else case e in #( 9540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542int i; 9543_ACEOF 9544if ac_fn_c_try_compile "$LINENO" 9545then : 9546 xorg_cv_cc_flag_unused_command_line_argument=yes 9547else case e in #( 9548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9549esac 9550fi 9551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9552esac 9553fi 9554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9557 CFLAGS="$xorg_testset_save_CFLAGS" 9558fi 9559 9560found="no" 9561 9562 if test $found = "no" ; then 9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9565 fi 9566 9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9569 fi 9570 9571 CFLAGS="$CFLAGS -Winit-self" 9572 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9574printf %s "checking if $CC supports -Winit-self... " >&6; } 9575 cacheid=xorg_cv_cc_flag__Winit_self 9576 if eval test \${$cacheid+y} 9577then : 9578 printf %s "(cached) " >&6 9579else case e in #( 9580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582int i; 9583int 9584main (void) 9585{ 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_link "$LINENO" 9592then : 9593 eval $cacheid=yes 9594else case e in #( 9595 e) eval $cacheid=no ;; 9596esac 9597fi 9598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9599 conftest$ac_exeext conftest.$ac_ext ;; 9600esac 9601fi 9602 9603 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605 9606 eval supported=\$$cacheid 9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9608printf "%s\n" "$supported" >&6; } 9609 if test "$supported" = "yes" ; then 9610 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9611 found="yes" 9612 fi 9613 fi 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629xorg_testset_save_CFLAGS="$CFLAGS" 9630 9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9636then : 9637 printf %s "(cached) " >&6 9638else case e in #( 9639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641int i; 9642_ACEOF 9643if ac_fn_c_try_compile "$LINENO" 9644then : 9645 xorg_cv_cc_flag_unknown_warning_option=yes 9646else case e in #( 9647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9648esac 9649fi 9650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9651esac 9652fi 9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657fi 9658 9659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9662 fi 9663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9667then : 9668 printf %s "(cached) " >&6 9669else case e in #( 9670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673_ACEOF 9674if ac_fn_c_try_compile "$LINENO" 9675then : 9676 xorg_cv_cc_flag_unused_command_line_argument=yes 9677else case e in #( 9678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9679esac 9680fi 9681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9682esac 9683fi 9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688fi 9689 9690found="no" 9691 9692 if test $found = "no" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 9697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 fi 9700 9701 CFLAGS="$CFLAGS -Wmain" 9702 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9704printf %s "checking if $CC supports -Wmain... " >&6; } 9705 cacheid=xorg_cv_cc_flag__Wmain 9706 if eval test \${$cacheid+y} 9707then : 9708 printf %s "(cached) " >&6 9709else case e in #( 9710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main (void) 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO" 9722then : 9723 eval $cacheid=yes 9724else case e in #( 9725 e) eval $cacheid=no ;; 9726esac 9727fi 9728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9729 conftest$ac_exeext conftest.$ac_ext ;; 9730esac 9731fi 9732 9733 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735 9736 eval supported=\$$cacheid 9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9738printf "%s\n" "$supported" >&6; } 9739 if test "$supported" = "yes" ; then 9740 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9741 found="yes" 9742 fi 9743 fi 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759xorg_testset_save_CFLAGS="$CFLAGS" 9760 9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9765if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9766then : 9767 printf %s "(cached) " >&6 9768else case e in #( 9769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772_ACEOF 9773if ac_fn_c_try_compile "$LINENO" 9774then : 9775 xorg_cv_cc_flag_unknown_warning_option=yes 9776else case e in #( 9777 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9778esac 9779fi 9780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9781esac 9782fi 9783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787fi 9788 9789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9792 fi 9793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9796if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9797then : 9798 printf %s "(cached) " >&6 9799else case e in #( 9800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802int i; 9803_ACEOF 9804if ac_fn_c_try_compile "$LINENO" 9805then : 9806 xorg_cv_cc_flag_unused_command_line_argument=yes 9807else case e in #( 9808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9809esac 9810fi 9811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9812esac 9813fi 9814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9817 CFLAGS="$xorg_testset_save_CFLAGS" 9818fi 9819 9820found="no" 9821 9822 if test $found = "no" ; then 9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 fi 9826 9827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 fi 9830 9831 CFLAGS="$CFLAGS -Wmissing-braces" 9832 9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9834printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9835 cacheid=xorg_cv_cc_flag__Wmissing_braces 9836 if eval test \${$cacheid+y} 9837then : 9838 printf %s "(cached) " >&6 9839else case e in #( 9840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843int 9844main (void) 9845{ 9846 9847 ; 9848 return 0; 9849} 9850_ACEOF 9851if ac_fn_c_try_link "$LINENO" 9852then : 9853 eval $cacheid=yes 9854else case e in #( 9855 e) eval $cacheid=no ;; 9856esac 9857fi 9858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9859 conftest$ac_exeext conftest.$ac_ext ;; 9860esac 9861fi 9862 9863 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865 9866 eval supported=\$$cacheid 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9868printf "%s\n" "$supported" >&6; } 9869 if test "$supported" = "yes" ; then 9870 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9871 found="yes" 9872 fi 9873 fi 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889xorg_testset_save_CFLAGS="$CFLAGS" 9890 9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9895if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9896then : 9897 printf %s "(cached) " >&6 9898else case e in #( 9899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902_ACEOF 9903if ac_fn_c_try_compile "$LINENO" 9904then : 9905 xorg_cv_cc_flag_unknown_warning_option=yes 9906else case e in #( 9907 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9908esac 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9911esac 9912fi 9913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917fi 9918 9919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 fi 9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9926if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9927then : 9928 printf %s "(cached) " >&6 9929else case e in #( 9930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933_ACEOF 9934if ac_fn_c_try_compile "$LINENO" 9935then : 9936 xorg_cv_cc_flag_unused_command_line_argument=yes 9937else case e in #( 9938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9939esac 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9942esac 9943fi 9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948fi 9949 9950found="no" 9951 9952 if test $found = "no" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9959 fi 9960 9961 CFLAGS="$CFLAGS -Wsequence-point" 9962 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9964printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9965 cacheid=xorg_cv_cc_flag__Wsequence_point 9966 if eval test \${$cacheid+y} 9967then : 9968 printf %s "(cached) " >&6 9969else case e in #( 9970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971/* end confdefs.h. */ 9972int i; 9973int 9974main (void) 9975{ 9976 9977 ; 9978 return 0; 9979} 9980_ACEOF 9981if ac_fn_c_try_link "$LINENO" 9982then : 9983 eval $cacheid=yes 9984else case e in #( 9985 e) eval $cacheid=no ;; 9986esac 9987fi 9988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9989 conftest$ac_exeext conftest.$ac_ext ;; 9990esac 9991fi 9992 9993 9994 CFLAGS="$xorg_testset_save_CFLAGS" 9995 9996 eval supported=\$$cacheid 9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9998printf "%s\n" "$supported" >&6; } 9999 if test "$supported" = "yes" ; then 10000 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10001 found="yes" 10002 fi 10003 fi 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019xorg_testset_save_CFLAGS="$CFLAGS" 10020 10021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10025if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10026then : 10027 printf %s "(cached) " >&6 10028else case e in #( 10029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031int i; 10032_ACEOF 10033if ac_fn_c_try_compile "$LINENO" 10034then : 10035 xorg_cv_cc_flag_unknown_warning_option=yes 10036else case e in #( 10037 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10038esac 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10041esac 10042fi 10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047fi 10048 10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10052 fi 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10057then : 10058 printf %s "(cached) " >&6 10059else case e in #( 10060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062int i; 10063_ACEOF 10064if ac_fn_c_try_compile "$LINENO" 10065then : 10066 xorg_cv_cc_flag_unused_command_line_argument=yes 10067else case e in #( 10068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10069esac 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10072esac 10073fi 10074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10077 CFLAGS="$xorg_testset_save_CFLAGS" 10078fi 10079 10080found="no" 10081 10082 if test $found = "no" ; then 10083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10085 fi 10086 10087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10089 fi 10090 10091 CFLAGS="$CFLAGS -Wreturn-type" 10092 10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10094printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10095 cacheid=xorg_cv_cc_flag__Wreturn_type 10096 if eval test \${$cacheid+y} 10097then : 10098 printf %s "(cached) " >&6 10099else case e in #( 10100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101/* end confdefs.h. */ 10102int i; 10103int 10104main (void) 10105{ 10106 10107 ; 10108 return 0; 10109} 10110_ACEOF 10111if ac_fn_c_try_link "$LINENO" 10112then : 10113 eval $cacheid=yes 10114else case e in #( 10115 e) eval $cacheid=no ;; 10116esac 10117fi 10118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10119 conftest$ac_exeext conftest.$ac_ext ;; 10120esac 10121fi 10122 10123 10124 CFLAGS="$xorg_testset_save_CFLAGS" 10125 10126 eval supported=\$$cacheid 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10128printf "%s\n" "$supported" >&6; } 10129 if test "$supported" = "yes" ; then 10130 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10131 found="yes" 10132 fi 10133 fi 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149xorg_testset_save_CFLAGS="$CFLAGS" 10150 10151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10156then : 10157 printf %s "(cached) " >&6 10158else case e in #( 10159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161int i; 10162_ACEOF 10163if ac_fn_c_try_compile "$LINENO" 10164then : 10165 xorg_cv_cc_flag_unknown_warning_option=yes 10166else case e in #( 10167 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10168esac 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10171esac 10172fi 10173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177fi 10178 10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10182 fi 10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10186if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10187then : 10188 printf %s "(cached) " >&6 10189else case e in #( 10190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193_ACEOF 10194if ac_fn_c_try_compile "$LINENO" 10195then : 10196 xorg_cv_cc_flag_unused_command_line_argument=yes 10197else case e in #( 10198 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10199esac 10200fi 10201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10202esac 10203fi 10204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10207 CFLAGS="$xorg_testset_save_CFLAGS" 10208fi 10209 10210found="no" 10211 10212 if test $found = "no" ; then 10213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10215 fi 10216 10217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10219 fi 10220 10221 CFLAGS="$CFLAGS -Wtrigraphs" 10222 10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10224printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10225 cacheid=xorg_cv_cc_flag__Wtrigraphs 10226 if eval test \${$cacheid+y} 10227then : 10228 printf %s "(cached) " >&6 10229else case e in #( 10230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232int i; 10233int 10234main (void) 10235{ 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241if ac_fn_c_try_link "$LINENO" 10242then : 10243 eval $cacheid=yes 10244else case e in #( 10245 e) eval $cacheid=no ;; 10246esac 10247fi 10248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10249 conftest$ac_exeext conftest.$ac_ext ;; 10250esac 10251fi 10252 10253 10254 CFLAGS="$xorg_testset_save_CFLAGS" 10255 10256 eval supported=\$$cacheid 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10258printf "%s\n" "$supported" >&6; } 10259 if test "$supported" = "yes" ; then 10260 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10261 found="yes" 10262 fi 10263 fi 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279xorg_testset_save_CFLAGS="$CFLAGS" 10280 10281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10284printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10285if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10286then : 10287 printf %s "(cached) " >&6 10288else case e in #( 10289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291int i; 10292_ACEOF 10293if ac_fn_c_try_compile "$LINENO" 10294then : 10295 xorg_cv_cc_flag_unknown_warning_option=yes 10296else case e in #( 10297 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10298esac 10299fi 10300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10301esac 10302fi 10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307fi 10308 10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 fi 10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10316if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10317then : 10318 printf %s "(cached) " >&6 10319else case e in #( 10320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323_ACEOF 10324if ac_fn_c_try_compile "$LINENO" 10325then : 10326 xorg_cv_cc_flag_unused_command_line_argument=yes 10327else case e in #( 10328 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10329esac 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10332esac 10333fi 10334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338fi 10339 10340found="no" 10341 10342 if test $found = "no" ; then 10343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 fi 10346 10347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10349 fi 10350 10351 CFLAGS="$CFLAGS -Warray-bounds" 10352 10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10354printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10355 cacheid=xorg_cv_cc_flag__Warray_bounds 10356 if eval test \${$cacheid+y} 10357then : 10358 printf %s "(cached) " >&6 10359else case e in #( 10360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10361/* end confdefs.h. */ 10362int i; 10363int 10364main (void) 10365{ 10366 10367 ; 10368 return 0; 10369} 10370_ACEOF 10371if ac_fn_c_try_link "$LINENO" 10372then : 10373 eval $cacheid=yes 10374else case e in #( 10375 e) eval $cacheid=no ;; 10376esac 10377fi 10378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10379 conftest$ac_exeext conftest.$ac_ext ;; 10380esac 10381fi 10382 10383 10384 CFLAGS="$xorg_testset_save_CFLAGS" 10385 10386 eval supported=\$$cacheid 10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10388printf "%s\n" "$supported" >&6; } 10389 if test "$supported" = "yes" ; then 10390 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10391 found="yes" 10392 fi 10393 fi 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409xorg_testset_save_CFLAGS="$CFLAGS" 10410 10411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10416then : 10417 printf %s "(cached) " >&6 10418else case e in #( 10419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420/* end confdefs.h. */ 10421int i; 10422_ACEOF 10423if ac_fn_c_try_compile "$LINENO" 10424then : 10425 xorg_cv_cc_flag_unknown_warning_option=yes 10426else case e in #( 10427 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10428esac 10429fi 10430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10431esac 10432fi 10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10436 CFLAGS="$xorg_testset_save_CFLAGS" 10437fi 10438 10439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10442 fi 10443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10446if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10447then : 10448 printf %s "(cached) " >&6 10449else case e in #( 10450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452int i; 10453_ACEOF 10454if ac_fn_c_try_compile "$LINENO" 10455then : 10456 xorg_cv_cc_flag_unused_command_line_argument=yes 10457else case e in #( 10458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10459esac 10460fi 10461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10462esac 10463fi 10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10467 CFLAGS="$xorg_testset_save_CFLAGS" 10468fi 10469 10470found="no" 10471 10472 if test $found = "no" ; then 10473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10475 fi 10476 10477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10479 fi 10480 10481 CFLAGS="$CFLAGS -Wwrite-strings" 10482 10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10484printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10485 cacheid=xorg_cv_cc_flag__Wwrite_strings 10486 if eval test \${$cacheid+y} 10487then : 10488 printf %s "(cached) " >&6 10489else case e in #( 10490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492int i; 10493int 10494main (void) 10495{ 10496 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501if ac_fn_c_try_link "$LINENO" 10502then : 10503 eval $cacheid=yes 10504else case e in #( 10505 e) eval $cacheid=no ;; 10506esac 10507fi 10508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10509 conftest$ac_exeext conftest.$ac_ext ;; 10510esac 10511fi 10512 10513 10514 CFLAGS="$xorg_testset_save_CFLAGS" 10515 10516 eval supported=\$$cacheid 10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10518printf "%s\n" "$supported" >&6; } 10519 if test "$supported" = "yes" ; then 10520 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10521 found="yes" 10522 fi 10523 fi 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539xorg_testset_save_CFLAGS="$CFLAGS" 10540 10541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10545if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10546then : 10547 printf %s "(cached) " >&6 10548else case e in #( 10549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551int i; 10552_ACEOF 10553if ac_fn_c_try_compile "$LINENO" 10554then : 10555 xorg_cv_cc_flag_unknown_warning_option=yes 10556else case e in #( 10557 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10558esac 10559fi 10560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10561esac 10562fi 10563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10566 CFLAGS="$xorg_testset_save_CFLAGS" 10567fi 10568 10569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10572 fi 10573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10576if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10577then : 10578 printf %s "(cached) " >&6 10579else case e in #( 10580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10581/* end confdefs.h. */ 10582int i; 10583_ACEOF 10584if ac_fn_c_try_compile "$LINENO" 10585then : 10586 xorg_cv_cc_flag_unused_command_line_argument=yes 10587else case e in #( 10588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10589esac 10590fi 10591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10592esac 10593fi 10594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598fi 10599 10600found="no" 10601 10602 if test $found = "no" ; then 10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10605 fi 10606 10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10609 fi 10610 10611 CFLAGS="$CFLAGS -Waddress" 10612 10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10614printf %s "checking if $CC supports -Waddress... " >&6; } 10615 cacheid=xorg_cv_cc_flag__Waddress 10616 if eval test \${$cacheid+y} 10617then : 10618 printf %s "(cached) " >&6 10619else case e in #( 10620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622int i; 10623int 10624main (void) 10625{ 10626 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631if ac_fn_c_try_link "$LINENO" 10632then : 10633 eval $cacheid=yes 10634else case e in #( 10635 e) eval $cacheid=no ;; 10636esac 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10639 conftest$ac_exeext conftest.$ac_ext ;; 10640esac 10641fi 10642 10643 10644 CFLAGS="$xorg_testset_save_CFLAGS" 10645 10646 eval supported=\$$cacheid 10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10648printf "%s\n" "$supported" >&6; } 10649 if test "$supported" = "yes" ; then 10650 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10651 found="yes" 10652 fi 10653 fi 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669xorg_testset_save_CFLAGS="$CFLAGS" 10670 10671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10676then : 10677 printf %s "(cached) " >&6 10678else case e in #( 10679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680/* end confdefs.h. */ 10681int i; 10682_ACEOF 10683if ac_fn_c_try_compile "$LINENO" 10684then : 10685 xorg_cv_cc_flag_unknown_warning_option=yes 10686else case e in #( 10687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10688esac 10689fi 10690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10691esac 10692fi 10693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697fi 10698 10699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10702 fi 10703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10707then : 10708 printf %s "(cached) " >&6 10709else case e in #( 10710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10711/* end confdefs.h. */ 10712int i; 10713_ACEOF 10714if ac_fn_c_try_compile "$LINENO" 10715then : 10716 xorg_cv_cc_flag_unused_command_line_argument=yes 10717else case e in #( 10718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10719esac 10720fi 10721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10722esac 10723fi 10724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10727 CFLAGS="$xorg_testset_save_CFLAGS" 10728fi 10729 10730found="no" 10731 10732 if test $found = "no" ; then 10733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10735 fi 10736 10737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10739 fi 10740 10741 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10742 10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10744printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10745 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10746 if eval test \${$cacheid+y} 10747then : 10748 printf %s "(cached) " >&6 10749else case e in #( 10750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10751/* end confdefs.h. */ 10752int i; 10753int 10754main (void) 10755{ 10756 10757 ; 10758 return 0; 10759} 10760_ACEOF 10761if ac_fn_c_try_link "$LINENO" 10762then : 10763 eval $cacheid=yes 10764else case e in #( 10765 e) eval $cacheid=no ;; 10766esac 10767fi 10768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10769 conftest$ac_exeext conftest.$ac_ext ;; 10770esac 10771fi 10772 10773 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775 10776 eval supported=\$$cacheid 10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10778printf "%s\n" "$supported" >&6; } 10779 if test "$supported" = "yes" ; then 10780 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10781 found="yes" 10782 fi 10783 fi 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799xorg_testset_save_CFLAGS="$CFLAGS" 10800 10801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10805if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10806then : 10807 printf %s "(cached) " >&6 10808else case e in #( 10809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10810/* end confdefs.h. */ 10811int i; 10812_ACEOF 10813if ac_fn_c_try_compile "$LINENO" 10814then : 10815 xorg_cv_cc_flag_unknown_warning_option=yes 10816else case e in #( 10817 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10818esac 10819fi 10820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10821esac 10822fi 10823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10826 CFLAGS="$xorg_testset_save_CFLAGS" 10827fi 10828 10829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10832 fi 10833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10836if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10837then : 10838 printf %s "(cached) " >&6 10839else case e in #( 10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841/* end confdefs.h. */ 10842int i; 10843_ACEOF 10844if ac_fn_c_try_compile "$LINENO" 10845then : 10846 xorg_cv_cc_flag_unused_command_line_argument=yes 10847else case e in #( 10848 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10849esac 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10852esac 10853fi 10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858fi 10859 10860found="no" 10861 10862 if test $found = "no" ; then 10863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10865 fi 10866 10867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10869 fi 10870 10871 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10872 10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10874printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10875 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10876 if eval test \${$cacheid+y} 10877then : 10878 printf %s "(cached) " >&6 10879else case e in #( 10880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881/* end confdefs.h. */ 10882int i; 10883int 10884main (void) 10885{ 10886 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_c_try_link "$LINENO" 10892then : 10893 eval $cacheid=yes 10894else case e in #( 10895 e) eval $cacheid=no ;; 10896esac 10897fi 10898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10899 conftest$ac_exeext conftest.$ac_ext ;; 10900esac 10901fi 10902 10903 10904 CFLAGS="$xorg_testset_save_CFLAGS" 10905 10906 eval supported=\$$cacheid 10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10908printf "%s\n" "$supported" >&6; } 10909 if test "$supported" = "yes" ; then 10910 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10911 found="yes" 10912 fi 10913 fi 10914 10915 10916fi 10917 10918 10919 10920 10921 10922 10923 10924 CWARNFLAGS="$BASE_CFLAGS" 10925 if test "x$GCC" = xyes ; then 10926 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10927 fi 10928 10929 10930 10931 10932 10933 10934 10935 10936# Check whether --enable-strict-compilation was given. 10937if test ${enable_strict_compilation+y} 10938then : 10939 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10940else case e in #( 10941 e) STRICT_COMPILE=no ;; 10942esac 10943fi 10944 10945 10946 10947 10948 10949 10950STRICT_CFLAGS="" 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964xorg_testset_save_CFLAGS="$CFLAGS" 10965 10966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10970if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10971then : 10972 printf %s "(cached) " >&6 10973else case e in #( 10974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975/* end confdefs.h. */ 10976int i; 10977_ACEOF 10978if ac_fn_c_try_compile "$LINENO" 10979then : 10980 xorg_cv_cc_flag_unknown_warning_option=yes 10981else case e in #( 10982 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10983esac 10984fi 10985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10986esac 10987fi 10988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10991 CFLAGS="$xorg_testset_save_CFLAGS" 10992fi 10993 10994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10997 fi 10998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11002then : 11003 printf %s "(cached) " >&6 11004else case e in #( 11005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11006/* end confdefs.h. */ 11007int i; 11008_ACEOF 11009if ac_fn_c_try_compile "$LINENO" 11010then : 11011 xorg_cv_cc_flag_unused_command_line_argument=yes 11012else case e in #( 11013 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11014esac 11015fi 11016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11017esac 11018fi 11019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11022 CFLAGS="$xorg_testset_save_CFLAGS" 11023fi 11024 11025found="no" 11026 11027 if test $found = "no" ; then 11028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11030 fi 11031 11032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11034 fi 11035 11036 CFLAGS="$CFLAGS -pedantic" 11037 11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11039printf %s "checking if $CC supports -pedantic... " >&6; } 11040 cacheid=xorg_cv_cc_flag__pedantic 11041 if eval test \${$cacheid+y} 11042then : 11043 printf %s "(cached) " >&6 11044else case e in #( 11045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046/* end confdefs.h. */ 11047int i; 11048int 11049main (void) 11050{ 11051 11052 ; 11053 return 0; 11054} 11055_ACEOF 11056if ac_fn_c_try_link "$LINENO" 11057then : 11058 eval $cacheid=yes 11059else case e in #( 11060 e) eval $cacheid=no ;; 11061esac 11062fi 11063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11064 conftest$ac_exeext conftest.$ac_ext ;; 11065esac 11066fi 11067 11068 11069 CFLAGS="$xorg_testset_save_CFLAGS" 11070 11071 eval supported=\$$cacheid 11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11073printf "%s\n" "$supported" >&6; } 11074 if test "$supported" = "yes" ; then 11075 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11076 found="yes" 11077 fi 11078 fi 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094xorg_testset_save_CFLAGS="$CFLAGS" 11095 11096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11101then : 11102 printf %s "(cached) " >&6 11103else case e in #( 11104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11105/* end confdefs.h. */ 11106int i; 11107_ACEOF 11108if ac_fn_c_try_compile "$LINENO" 11109then : 11110 xorg_cv_cc_flag_unknown_warning_option=yes 11111else case e in #( 11112 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11113esac 11114fi 11115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11116esac 11117fi 11118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11121 CFLAGS="$xorg_testset_save_CFLAGS" 11122fi 11123 11124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11127 fi 11128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11131if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11132then : 11133 printf %s "(cached) " >&6 11134else case e in #( 11135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11136/* end confdefs.h. */ 11137int i; 11138_ACEOF 11139if ac_fn_c_try_compile "$LINENO" 11140then : 11141 xorg_cv_cc_flag_unused_command_line_argument=yes 11142else case e in #( 11143 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11144esac 11145fi 11146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11147esac 11148fi 11149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11152 CFLAGS="$xorg_testset_save_CFLAGS" 11153fi 11154 11155found="no" 11156 11157 if test $found = "no" ; then 11158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11160 fi 11161 11162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11164 fi 11165 11166 CFLAGS="$CFLAGS -Werror" 11167 11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11169printf %s "checking if $CC supports -Werror... " >&6; } 11170 cacheid=xorg_cv_cc_flag__Werror 11171 if eval test \${$cacheid+y} 11172then : 11173 printf %s "(cached) " >&6 11174else case e in #( 11175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11176/* end confdefs.h. */ 11177int i; 11178int 11179main (void) 11180{ 11181 11182 ; 11183 return 0; 11184} 11185_ACEOF 11186if ac_fn_c_try_link "$LINENO" 11187then : 11188 eval $cacheid=yes 11189else case e in #( 11190 e) eval $cacheid=no ;; 11191esac 11192fi 11193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11194 conftest$ac_exeext conftest.$ac_ext ;; 11195esac 11196fi 11197 11198 11199 CFLAGS="$xorg_testset_save_CFLAGS" 11200 11201 eval supported=\$$cacheid 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11203printf "%s\n" "$supported" >&6; } 11204 if test "$supported" = "yes" ; then 11205 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11206 found="yes" 11207 fi 11208 fi 11209 11210 if test $found = "no" ; then 11211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11213 fi 11214 11215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11217 fi 11218 11219 CFLAGS="$CFLAGS -errwarn" 11220 11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11222printf %s "checking if $CC supports -errwarn... " >&6; } 11223 cacheid=xorg_cv_cc_flag__errwarn 11224 if eval test \${$cacheid+y} 11225then : 11226 printf %s "(cached) " >&6 11227else case e in #( 11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230int i; 11231int 11232main (void) 11233{ 11234 11235 ; 11236 return 0; 11237} 11238_ACEOF 11239if ac_fn_c_try_link "$LINENO" 11240then : 11241 eval $cacheid=yes 11242else case e in #( 11243 e) eval $cacheid=no ;; 11244esac 11245fi 11246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11247 conftest$ac_exeext conftest.$ac_ext ;; 11248esac 11249fi 11250 11251 11252 CFLAGS="$xorg_testset_save_CFLAGS" 11253 11254 eval supported=\$$cacheid 11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11256printf "%s\n" "$supported" >&6; } 11257 if test "$supported" = "yes" ; then 11258 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11259 found="yes" 11260 fi 11261 fi 11262 11263 11264 11265# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11266# activate it with -Werror, so we add it here explicitly. 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280xorg_testset_save_CFLAGS="$CFLAGS" 11281 11282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11286if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11287then : 11288 printf %s "(cached) " >&6 11289else case e in #( 11290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11291/* end confdefs.h. */ 11292int i; 11293_ACEOF 11294if ac_fn_c_try_compile "$LINENO" 11295then : 11296 xorg_cv_cc_flag_unknown_warning_option=yes 11297else case e in #( 11298 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11299esac 11300fi 11301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11302esac 11303fi 11304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11307 CFLAGS="$xorg_testset_save_CFLAGS" 11308fi 11309 11310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11313 fi 11314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11317if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11318then : 11319 printf %s "(cached) " >&6 11320else case e in #( 11321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323int i; 11324_ACEOF 11325if ac_fn_c_try_compile "$LINENO" 11326then : 11327 xorg_cv_cc_flag_unused_command_line_argument=yes 11328else case e in #( 11329 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11330esac 11331fi 11332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11333esac 11334fi 11335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11338 CFLAGS="$xorg_testset_save_CFLAGS" 11339fi 11340 11341found="no" 11342 11343 if test $found = "no" ; then 11344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11346 fi 11347 11348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11350 fi 11351 11352 CFLAGS="$CFLAGS -Werror=attributes" 11353 11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11355printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11356 cacheid=xorg_cv_cc_flag__Werror_attributes 11357 if eval test \${$cacheid+y} 11358then : 11359 printf %s "(cached) " >&6 11360else case e in #( 11361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11362/* end confdefs.h. */ 11363int i; 11364int 11365main (void) 11366{ 11367 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372if ac_fn_c_try_link "$LINENO" 11373then : 11374 eval $cacheid=yes 11375else case e in #( 11376 e) eval $cacheid=no ;; 11377esac 11378fi 11379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11380 conftest$ac_exeext conftest.$ac_ext ;; 11381esac 11382fi 11383 11384 11385 CFLAGS="$xorg_testset_save_CFLAGS" 11386 11387 eval supported=\$$cacheid 11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11389printf "%s\n" "$supported" >&6; } 11390 if test "$supported" = "yes" ; then 11391 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11392 found="yes" 11393 fi 11394 fi 11395 11396 11397 11398if test "x$STRICT_COMPILE" = "xyes"; then 11399 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11400 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11401fi 11402 11403 11404 11405 11406 11407 11408 11409 11410cat >>confdefs.h <<_ACEOF 11411#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11412_ACEOF 11413 11414 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11415 if test "x$PVM" = "x"; then 11416 PVM="0" 11417 fi 11418 11419printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11420 11421 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11422 if test "x$PVP" = "x"; then 11423 PVP="0" 11424 fi 11425 11426printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11427 11428 11429 11430CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11431mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11432|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11433touch \$(top_srcdir)/ChangeLog; \ 11434echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11435 11436 11437 11438 11439macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11440INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11441mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11442|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11443touch \$(top_srcdir)/INSTALL; \ 11444echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11445 11446 11447 11448 11449 11450 11451case $host_os in 11452 solaris*) 11453 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11454 # check for a man page file found in later versions that use 11455 # traditional section numbers instead 11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11457printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11458if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11459then : 11460 printf %s "(cached) " >&6 11461else case e in #( 11462 e) test "$cross_compiling" = yes && 11463 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11464if test -r "/usr/share/man/man7/attributes.7"; then 11465 ac_cv_file__usr_share_man_man7_attributes_7=yes 11466else 11467 ac_cv_file__usr_share_man_man7_attributes_7=no 11468fi ;; 11469esac 11470fi 11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11472printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11473if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11474then : 11475 SYSV_MAN_SECTIONS=false 11476else case e in #( 11477 e) SYSV_MAN_SECTIONS=true ;; 11478esac 11479fi 11480 11481 ;; 11482 *) SYSV_MAN_SECTIONS=false ;; 11483esac 11484 11485if test x$APP_MAN_SUFFIX = x ; then 11486 APP_MAN_SUFFIX=1 11487fi 11488if test x$APP_MAN_DIR = x ; then 11489 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11490fi 11491 11492if test x$LIB_MAN_SUFFIX = x ; then 11493 LIB_MAN_SUFFIX=3 11494fi 11495if test x$LIB_MAN_DIR = x ; then 11496 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11497fi 11498 11499if test x$FILE_MAN_SUFFIX = x ; then 11500 case $SYSV_MAN_SECTIONS in 11501 true) FILE_MAN_SUFFIX=4 ;; 11502 *) FILE_MAN_SUFFIX=5 ;; 11503 esac 11504fi 11505if test x$FILE_MAN_DIR = x ; then 11506 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11507fi 11508 11509if test x$MISC_MAN_SUFFIX = x ; then 11510 case $SYSV_MAN_SECTIONS in 11511 true) MISC_MAN_SUFFIX=5 ;; 11512 *) MISC_MAN_SUFFIX=7 ;; 11513 esac 11514fi 11515if test x$MISC_MAN_DIR = x ; then 11516 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11517fi 11518 11519if test x$DRIVER_MAN_SUFFIX = x ; then 11520 case $SYSV_MAN_SECTIONS in 11521 true) DRIVER_MAN_SUFFIX=7 ;; 11522 *) DRIVER_MAN_SUFFIX=4 ;; 11523 esac 11524fi 11525if test x$DRIVER_MAN_DIR = x ; then 11526 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11527fi 11528 11529if test x$ADMIN_MAN_SUFFIX = x ; then 11530 case $SYSV_MAN_SECTIONS in 11531 true) ADMIN_MAN_SUFFIX=1m ;; 11532 *) ADMIN_MAN_SUFFIX=8 ;; 11533 esac 11534fi 11535if test x$ADMIN_MAN_DIR = x ; then 11536 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11537fi 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553XORG_MAN_PAGE="X Version 11" 11554 11555MAN_SUBSTS="\ 11556 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11557 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11558 -e 's|__xservername__|Xorg|g' \ 11559 -e 's|__xconfigfile__|xorg.conf|g' \ 11560 -e 's|__projectroot__|\$(prefix)|g' \ 11561 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11562 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11563 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11564 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11565 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11566 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11567 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11568 11569 11570 11571# Check whether --enable-silent-rules was given. 11572if test ${enable_silent_rules+y} 11573then : 11574 enableval=$enable_silent_rules; 11575fi 11576 11577case $enable_silent_rules in # ((( 11578 yes) AM_DEFAULT_VERBOSITY=0;; 11579 no) AM_DEFAULT_VERBOSITY=1;; 11580 *) AM_DEFAULT_VERBOSITY=0;; 11581esac 11582am_make=${MAKE-make} 11583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11584printf %s "checking whether $am_make supports nested variables... " >&6; } 11585if test ${am_cv_make_support_nested_variables+y} 11586then : 11587 printf %s "(cached) " >&6 11588else case e in #( 11589 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11590BAR0=false 11591BAR1=true 11592V=1 11593am__doit: 11594 @$(TRUE) 11595.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11596 am_cv_make_support_nested_variables=yes 11597else 11598 am_cv_make_support_nested_variables=no 11599fi ;; 11600esac 11601fi 11602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11603printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11604if test $am_cv_make_support_nested_variables = yes; then 11605 AM_V='$(V)' 11606 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11607else 11608 AM_V=$AM_DEFAULT_VERBOSITY 11609 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11610fi 11611AM_BACKSLASH='\' 11612 11613 11614 11615 11616# Initialize libtool 11617case `pwd` in 11618 *\ * | *\ *) 11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11620printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11621esac 11622 11623 11624 11625macro_version='2.4.7' 11626macro_revision='2.4.7' 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641ltmain=$ac_aux_dir/ltmain.sh 11642 11643# Backslashify metacharacters that are still active within 11644# double-quoted strings. 11645sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11646 11647# Same as above, but do not quote variable references. 11648double_quote_subst='s/\(["`\\]\)/\\\1/g' 11649 11650# Sed substitution to delay expansion of an escaped shell variable in a 11651# double_quote_subst'ed string. 11652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11653 11654# Sed substitution to delay expansion of an escaped single quote. 11655delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11656 11657# Sed substitution to avoid accidental globbing in evaled expressions 11658no_glob_subst='s/\*/\\\*/g' 11659 11660ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11663 11664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11665printf %s "checking how to print strings... " >&6; } 11666# Test print first, because it will be a builtin if present. 11667if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11669 ECHO='print -r --' 11670elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11671 ECHO='printf %s\n' 11672else 11673 # Use this function as a fallback that always works. 11674 func_fallback_echo () 11675 { 11676 eval 'cat <<_LTECHO_EOF 11677$1 11678_LTECHO_EOF' 11679 } 11680 ECHO='func_fallback_echo' 11681fi 11682 11683# func_echo_all arg... 11684# Invoke $ECHO with all args, space-separated. 11685func_echo_all () 11686{ 11687 $ECHO "" 11688} 11689 11690case $ECHO in 11691 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11692printf "%s\n" "printf" >&6; } ;; 11693 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11694printf "%s\n" "print -r" >&6; } ;; 11695 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11696printf "%s\n" "cat" >&6; } ;; 11697esac 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11713printf %s "checking for a sed that does not truncate output... " >&6; } 11714if test ${ac_cv_path_SED+y} 11715then : 11716 printf %s "(cached) " >&6 11717else case e in #( 11718 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11719 for ac_i in 1 2 3 4 5 6 7; do 11720 ac_script="$ac_script$as_nl$ac_script" 11721 done 11722 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11723 { ac_script=; unset ac_script;} 11724 if test -z "$SED"; then 11725 ac_path_SED_found=false 11726 # Loop through the user's path and test for each of PROGNAME-LIST 11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11728for as_dir in $PATH 11729do 11730 IFS=$as_save_IFS 11731 case $as_dir in #((( 11732 '') as_dir=./ ;; 11733 */) ;; 11734 *) as_dir=$as_dir/ ;; 11735 esac 11736 for ac_prog in sed gsed 11737 do 11738 for ac_exec_ext in '' $ac_executable_extensions; do 11739 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11740 as_fn_executable_p "$ac_path_SED" || continue 11741# Check for GNU ac_path_SED and select it if it is found. 11742 # Check for GNU $ac_path_SED 11743case `"$ac_path_SED" --version 2>&1` in #( 11744*GNU*) 11745 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11746#( 11747*) 11748 ac_count=0 11749 printf %s 0123456789 >"conftest.in" 11750 while : 11751 do 11752 cat "conftest.in" "conftest.in" >"conftest.tmp" 11753 mv "conftest.tmp" "conftest.in" 11754 cp "conftest.in" "conftest.nl" 11755 printf "%s\n" '' >> "conftest.nl" 11756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11758 as_fn_arith $ac_count + 1 && ac_count=$as_val 11759 if test $ac_count -gt ${ac_path_SED_max-0}; then 11760 # Best one so far, save it but keep looking for a better one 11761 ac_cv_path_SED="$ac_path_SED" 11762 ac_path_SED_max=$ac_count 11763 fi 11764 # 10*(2^10) chars as input seems more than enough 11765 test $ac_count -gt 10 && break 11766 done 11767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11768esac 11769 11770 $ac_path_SED_found && break 3 11771 done 11772 done 11773 done 11774IFS=$as_save_IFS 11775 if test -z "$ac_cv_path_SED"; then 11776 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11777 fi 11778else 11779 ac_cv_path_SED=$SED 11780fi 11781 ;; 11782esac 11783fi 11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11785printf "%s\n" "$ac_cv_path_SED" >&6; } 11786 SED="$ac_cv_path_SED" 11787 rm -f conftest.sed 11788 11789test -z "$SED" && SED=sed 11790Xsed="$SED -e 1s/^X//" 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11803printf %s "checking for grep that handles long lines and -e... " >&6; } 11804if test ${ac_cv_path_GREP+y} 11805then : 11806 printf %s "(cached) " >&6 11807else case e in #( 11808 e) if test -z "$GREP"; then 11809 ac_path_GREP_found=false 11810 # Loop through the user's path and test for each of PROGNAME-LIST 11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11813do 11814 IFS=$as_save_IFS 11815 case $as_dir in #((( 11816 '') as_dir=./ ;; 11817 */) ;; 11818 *) as_dir=$as_dir/ ;; 11819 esac 11820 for ac_prog in grep ggrep 11821 do 11822 for ac_exec_ext in '' $ac_executable_extensions; do 11823 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11824 as_fn_executable_p "$ac_path_GREP" || continue 11825# Check for GNU ac_path_GREP and select it if it is found. 11826 # Check for GNU $ac_path_GREP 11827case `"$ac_path_GREP" --version 2>&1` in #( 11828*GNU*) 11829 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11830#( 11831*) 11832 ac_count=0 11833 printf %s 0123456789 >"conftest.in" 11834 while : 11835 do 11836 cat "conftest.in" "conftest.in" >"conftest.tmp" 11837 mv "conftest.tmp" "conftest.in" 11838 cp "conftest.in" "conftest.nl" 11839 printf "%s\n" 'GREP' >> "conftest.nl" 11840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11842 as_fn_arith $ac_count + 1 && ac_count=$as_val 11843 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11844 # Best one so far, save it but keep looking for a better one 11845 ac_cv_path_GREP="$ac_path_GREP" 11846 ac_path_GREP_max=$ac_count 11847 fi 11848 # 10*(2^10) chars as input seems more than enough 11849 test $ac_count -gt 10 && break 11850 done 11851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11852esac 11853 11854 $ac_path_GREP_found && break 3 11855 done 11856 done 11857 done 11858IFS=$as_save_IFS 11859 if test -z "$ac_cv_path_GREP"; then 11860 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11861 fi 11862else 11863 ac_cv_path_GREP=$GREP 11864fi 11865 ;; 11866esac 11867fi 11868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11869printf "%s\n" "$ac_cv_path_GREP" >&6; } 11870 GREP="$ac_cv_path_GREP" 11871 11872 11873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11874printf %s "checking for egrep... " >&6; } 11875if test ${ac_cv_path_EGREP+y} 11876then : 11877 printf %s "(cached) " >&6 11878else case e in #( 11879 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11880 then ac_cv_path_EGREP="$GREP -E" 11881 else 11882 if test -z "$EGREP"; then 11883 ac_path_EGREP_found=false 11884 # Loop through the user's path and test for each of PROGNAME-LIST 11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11887do 11888 IFS=$as_save_IFS 11889 case $as_dir in #((( 11890 '') as_dir=./ ;; 11891 */) ;; 11892 *) as_dir=$as_dir/ ;; 11893 esac 11894 for ac_prog in egrep 11895 do 11896 for ac_exec_ext in '' $ac_executable_extensions; do 11897 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11898 as_fn_executable_p "$ac_path_EGREP" || continue 11899# Check for GNU ac_path_EGREP and select it if it is found. 11900 # Check for GNU $ac_path_EGREP 11901case `"$ac_path_EGREP" --version 2>&1` in #( 11902*GNU*) 11903 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11904#( 11905*) 11906 ac_count=0 11907 printf %s 0123456789 >"conftest.in" 11908 while : 11909 do 11910 cat "conftest.in" "conftest.in" >"conftest.tmp" 11911 mv "conftest.tmp" "conftest.in" 11912 cp "conftest.in" "conftest.nl" 11913 printf "%s\n" 'EGREP' >> "conftest.nl" 11914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11916 as_fn_arith $ac_count + 1 && ac_count=$as_val 11917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11918 # Best one so far, save it but keep looking for a better one 11919 ac_cv_path_EGREP="$ac_path_EGREP" 11920 ac_path_EGREP_max=$ac_count 11921 fi 11922 # 10*(2^10) chars as input seems more than enough 11923 test $ac_count -gt 10 && break 11924 done 11925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11926esac 11927 11928 $ac_path_EGREP_found && break 3 11929 done 11930 done 11931 done 11932IFS=$as_save_IFS 11933 if test -z "$ac_cv_path_EGREP"; then 11934 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11935 fi 11936else 11937 ac_cv_path_EGREP=$EGREP 11938fi 11939 11940 fi ;; 11941esac 11942fi 11943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11944printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11945 EGREP="$ac_cv_path_EGREP" 11946 11947 EGREP_TRADITIONAL=$EGREP 11948 ac_cv_path_EGREP_TRADITIONAL=$EGREP 11949 11950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11951printf %s "checking for fgrep... " >&6; } 11952if test ${ac_cv_path_FGREP+y} 11953then : 11954 printf %s "(cached) " >&6 11955else case e in #( 11956 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11957 then ac_cv_path_FGREP="$GREP -F" 11958 else 11959 if test -z "$FGREP"; then 11960 ac_path_FGREP_found=false 11961 # Loop through the user's path and test for each of PROGNAME-LIST 11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11964do 11965 IFS=$as_save_IFS 11966 case $as_dir in #((( 11967 '') as_dir=./ ;; 11968 */) ;; 11969 *) as_dir=$as_dir/ ;; 11970 esac 11971 for ac_prog in fgrep 11972 do 11973 for ac_exec_ext in '' $ac_executable_extensions; do 11974 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11975 as_fn_executable_p "$ac_path_FGREP" || continue 11976# Check for GNU ac_path_FGREP and select it if it is found. 11977 # Check for GNU $ac_path_FGREP 11978case `"$ac_path_FGREP" --version 2>&1` in #( 11979*GNU*) 11980 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11981#( 11982*) 11983 ac_count=0 11984 printf %s 0123456789 >"conftest.in" 11985 while : 11986 do 11987 cat "conftest.in" "conftest.in" >"conftest.tmp" 11988 mv "conftest.tmp" "conftest.in" 11989 cp "conftest.in" "conftest.nl" 11990 printf "%s\n" 'FGREP' >> "conftest.nl" 11991 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11993 as_fn_arith $ac_count + 1 && ac_count=$as_val 11994 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11995 # Best one so far, save it but keep looking for a better one 11996 ac_cv_path_FGREP="$ac_path_FGREP" 11997 ac_path_FGREP_max=$ac_count 11998 fi 11999 # 10*(2^10) chars as input seems more than enough 12000 test $ac_count -gt 10 && break 12001 done 12002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12003esac 12004 12005 $ac_path_FGREP_found && break 3 12006 done 12007 done 12008 done 12009IFS=$as_save_IFS 12010 if test -z "$ac_cv_path_FGREP"; then 12011 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12012 fi 12013else 12014 ac_cv_path_FGREP=$FGREP 12015fi 12016 12017 fi ;; 12018esac 12019fi 12020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12021printf "%s\n" "$ac_cv_path_FGREP" >&6; } 12022 FGREP="$ac_cv_path_FGREP" 12023 12024 12025test -z "$GREP" && GREP=grep 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045# Check whether --with-gnu-ld was given. 12046if test ${with_gnu_ld+y} 12047then : 12048 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12049else case e in #( 12050 e) with_gnu_ld=no ;; 12051esac 12052fi 12053 12054ac_prog=ld 12055if test yes = "$GCC"; then 12056 # Check if gcc -print-prog-name=ld gives a path. 12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12058printf %s "checking for ld used by $CC... " >&6; } 12059 case $host in 12060 *-*-mingw*) 12061 # gcc leaves a trailing carriage return, which upsets mingw 12062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12063 *) 12064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12065 esac 12066 case $ac_prog in 12067 # Accept absolute paths. 12068 [\\/]* | ?:[\\/]*) 12069 re_direlt='/[^/][^/]*/\.\./' 12070 # Canonicalize the pathname of ld 12071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12074 done 12075 test -z "$LD" && LD=$ac_prog 12076 ;; 12077 "") 12078 # If it fails, then pretend we aren't using GCC. 12079 ac_prog=ld 12080 ;; 12081 *) 12082 # If it is relative, then search for the first ld in PATH. 12083 with_gnu_ld=unknown 12084 ;; 12085 esac 12086elif test yes = "$with_gnu_ld"; then 12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12088printf %s "checking for GNU ld... " >&6; } 12089else 12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12091printf %s "checking for non-GNU ld... " >&6; } 12092fi 12093if test ${lt_cv_path_LD+y} 12094then : 12095 printf %s "(cached) " >&6 12096else case e in #( 12097 e) if test -z "$LD"; then 12098 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12099 for ac_dir in $PATH; do 12100 IFS=$lt_save_ifs 12101 test -z "$ac_dir" && ac_dir=. 12102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12103 lt_cv_path_LD=$ac_dir/$ac_prog 12104 # Check to see if the program is GNU ld. I'd rather use --version, 12105 # but apparently some variants of GNU ld only accept -v. 12106 # Break only if it was the GNU/non-GNU ld that we prefer. 12107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12108 *GNU* | *'with BFD'*) 12109 test no != "$with_gnu_ld" && break 12110 ;; 12111 *) 12112 test yes != "$with_gnu_ld" && break 12113 ;; 12114 esac 12115 fi 12116 done 12117 IFS=$lt_save_ifs 12118else 12119 lt_cv_path_LD=$LD # Let the user override the test with a path. 12120fi ;; 12121esac 12122fi 12123 12124LD=$lt_cv_path_LD 12125if test -n "$LD"; then 12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12127printf "%s\n" "$LD" >&6; } 12128else 12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12130printf "%s\n" "no" >&6; } 12131fi 12132test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12134printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12135if test ${lt_cv_prog_gnu_ld+y} 12136then : 12137 printf %s "(cached) " >&6 12138else case e in #( 12139 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 12140case `$LD -v 2>&1 </dev/null` in 12141*GNU* | *'with BFD'*) 12142 lt_cv_prog_gnu_ld=yes 12143 ;; 12144*) 12145 lt_cv_prog_gnu_ld=no 12146 ;; 12147esac ;; 12148esac 12149fi 12150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12151printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12152with_gnu_ld=$lt_cv_prog_gnu_ld 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12163printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12164if test ${lt_cv_path_NM+y} 12165then : 12166 printf %s "(cached) " >&6 12167else case e in #( 12168 e) if test -n "$NM"; then 12169 # Let the user override the test. 12170 lt_cv_path_NM=$NM 12171else 12172 lt_nm_to_check=${ac_tool_prefix}nm 12173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12174 lt_nm_to_check="$lt_nm_to_check nm" 12175 fi 12176 for lt_tmp_nm in $lt_nm_to_check; do 12177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12179 IFS=$lt_save_ifs 12180 test -z "$ac_dir" && ac_dir=. 12181 tmp_nm=$ac_dir/$lt_tmp_nm 12182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12183 # Check to see if the nm accepts a BSD-compat flag. 12184 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12185 # nm: unknown option "B" ignored 12186 # Tru64's nm complains that /dev/null is an invalid object file 12187 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12188 case $build_os in 12189 mingw*) lt_bad_file=conftest.nm/nofile ;; 12190 *) lt_bad_file=/dev/null ;; 12191 esac 12192 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12193 *$lt_bad_file* | *'Invalid file or object type'*) 12194 lt_cv_path_NM="$tmp_nm -B" 12195 break 2 12196 ;; 12197 *) 12198 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12199 */dev/null*) 12200 lt_cv_path_NM="$tmp_nm -p" 12201 break 2 12202 ;; 12203 *) 12204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12205 continue # so that we can try to find one that supports BSD flags 12206 ;; 12207 esac 12208 ;; 12209 esac 12210 fi 12211 done 12212 IFS=$lt_save_ifs 12213 done 12214 : ${lt_cv_path_NM=no} 12215fi ;; 12216esac 12217fi 12218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12219printf "%s\n" "$lt_cv_path_NM" >&6; } 12220if test no != "$lt_cv_path_NM"; then 12221 NM=$lt_cv_path_NM 12222else 12223 # Didn't find any BSD compatible name lister, look for dumpbin. 12224 if test -n "$DUMPBIN"; then : 12225 # Let the user override the test. 12226 else 12227 if test -n "$ac_tool_prefix"; then 12228 for ac_prog in dumpbin "link -dump" 12229 do 12230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12231set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12233printf %s "checking for $ac_word... " >&6; } 12234if test ${ac_cv_prog_DUMPBIN+y} 12235then : 12236 printf %s "(cached) " >&6 12237else case e in #( 12238 e) if test -n "$DUMPBIN"; then 12239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12240else 12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12242for as_dir in $PATH 12243do 12244 IFS=$as_save_IFS 12245 case $as_dir in #((( 12246 '') as_dir=./ ;; 12247 */) ;; 12248 *) as_dir=$as_dir/ ;; 12249 esac 12250 for ac_exec_ext in '' $ac_executable_extensions; do 12251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12252 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12254 break 2 12255 fi 12256done 12257 done 12258IFS=$as_save_IFS 12259 12260fi ;; 12261esac 12262fi 12263DUMPBIN=$ac_cv_prog_DUMPBIN 12264if test -n "$DUMPBIN"; then 12265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12266printf "%s\n" "$DUMPBIN" >&6; } 12267else 12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12269printf "%s\n" "no" >&6; } 12270fi 12271 12272 12273 test -n "$DUMPBIN" && break 12274 done 12275fi 12276if test -z "$DUMPBIN"; then 12277 ac_ct_DUMPBIN=$DUMPBIN 12278 for ac_prog in dumpbin "link -dump" 12279do 12280 # Extract the first word of "$ac_prog", so it can be a program name with args. 12281set dummy $ac_prog; ac_word=$2 12282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12283printf %s "checking for $ac_word... " >&6; } 12284if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12285then : 12286 printf %s "(cached) " >&6 12287else case e in #( 12288 e) if test -n "$ac_ct_DUMPBIN"; then 12289 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12290else 12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12292for as_dir in $PATH 12293do 12294 IFS=$as_save_IFS 12295 case $as_dir in #((( 12296 '') as_dir=./ ;; 12297 */) ;; 12298 *) as_dir=$as_dir/ ;; 12299 esac 12300 for ac_exec_ext in '' $ac_executable_extensions; do 12301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12302 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12304 break 2 12305 fi 12306done 12307 done 12308IFS=$as_save_IFS 12309 12310fi ;; 12311esac 12312fi 12313ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12314if test -n "$ac_ct_DUMPBIN"; then 12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12316printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12317else 12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12319printf "%s\n" "no" >&6; } 12320fi 12321 12322 12323 test -n "$ac_ct_DUMPBIN" && break 12324done 12325 12326 if test "x$ac_ct_DUMPBIN" = x; then 12327 DUMPBIN=":" 12328 else 12329 case $cross_compiling:$ac_tool_warned in 12330yes:) 12331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12333ac_tool_warned=yes ;; 12334esac 12335 DUMPBIN=$ac_ct_DUMPBIN 12336 fi 12337fi 12338 12339 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12340 *COFF*) 12341 DUMPBIN="$DUMPBIN -symbols -headers" 12342 ;; 12343 *) 12344 DUMPBIN=: 12345 ;; 12346 esac 12347 fi 12348 12349 if test : != "$DUMPBIN"; then 12350 NM=$DUMPBIN 12351 fi 12352fi 12353test -z "$NM" && NM=nm 12354 12355 12356 12357 12358 12359 12360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12361printf %s "checking the name lister ($NM) interface... " >&6; } 12362if test ${lt_cv_nm_interface+y} 12363then : 12364 printf %s "(cached) " >&6 12365else case e in #( 12366 e) lt_cv_nm_interface="BSD nm" 12367 echo "int some_variable = 0;" > conftest.$ac_ext 12368 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12369 (eval "$ac_compile" 2>conftest.err) 12370 cat conftest.err >&5 12371 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12372 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12373 cat conftest.err >&5 12374 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12375 cat conftest.out >&5 12376 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12377 lt_cv_nm_interface="MS dumpbin" 12378 fi 12379 rm -f conftest* ;; 12380esac 12381fi 12382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12383printf "%s\n" "$lt_cv_nm_interface" >&6; } 12384 12385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12386printf %s "checking whether ln -s works... " >&6; } 12387LN_S=$as_ln_s 12388if test "$LN_S" = "ln -s"; then 12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12390printf "%s\n" "yes" >&6; } 12391else 12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12393printf "%s\n" "no, using $LN_S" >&6; } 12394fi 12395 12396# find the maximum length of command line arguments 12397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12398printf %s "checking the maximum length of command line arguments... " >&6; } 12399if test ${lt_cv_sys_max_cmd_len+y} 12400then : 12401 printf %s "(cached) " >&6 12402else case e in #( 12403 e) i=0 12404 teststring=ABCD 12405 12406 case $build_os in 12407 msdosdjgpp*) 12408 # On DJGPP, this test can blow up pretty badly due to problems in libc 12409 # (any single argument exceeding 2000 bytes causes a buffer overrun 12410 # during glob expansion). Even if it were fixed, the result of this 12411 # check would be larger than it should be. 12412 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12413 ;; 12414 12415 gnu*) 12416 # Under GNU Hurd, this test is not required because there is 12417 # no limit to the length of command line arguments. 12418 # Libtool will interpret -1 as no limit whatsoever 12419 lt_cv_sys_max_cmd_len=-1; 12420 ;; 12421 12422 cygwin* | mingw* | cegcc*) 12423 # On Win9x/ME, this test blows up -- it succeeds, but takes 12424 # about 5 minutes as the teststring grows exponentially. 12425 # Worse, since 9x/ME are not pre-emptively multitasking, 12426 # you end up with a "frozen" computer, even though with patience 12427 # the test eventually succeeds (with a max line length of 256k). 12428 # Instead, let's just punt: use the minimum linelength reported by 12429 # all of the supported platforms: 8192 (on NT/2K/XP). 12430 lt_cv_sys_max_cmd_len=8192; 12431 ;; 12432 12433 mint*) 12434 # On MiNT this can take a long time and run out of memory. 12435 lt_cv_sys_max_cmd_len=8192; 12436 ;; 12437 12438 amigaos*) 12439 # On AmigaOS with pdksh, this test takes hours, literally. 12440 # So we just punt and use a minimum line length of 8192. 12441 lt_cv_sys_max_cmd_len=8192; 12442 ;; 12443 12444 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12445 # This has been around since 386BSD, at least. Likely further. 12446 if test -x /sbin/sysctl; then 12447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12448 elif test -x /usr/sbin/sysctl; then 12449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12450 else 12451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12452 fi 12453 # And add a safety zone 12454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12456 ;; 12457 12458 interix*) 12459 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12460 lt_cv_sys_max_cmd_len=196608 12461 ;; 12462 12463 os2*) 12464 # The test takes a long time on OS/2. 12465 lt_cv_sys_max_cmd_len=8192 12466 ;; 12467 12468 osf*) 12469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12471 # nice to cause kernel panics so lets avoid the loop below. 12472 # First set a reasonable default. 12473 lt_cv_sys_max_cmd_len=16384 12474 # 12475 if test -x /sbin/sysconfig; then 12476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12477 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12478 esac 12479 fi 12480 ;; 12481 sco3.2v5*) 12482 lt_cv_sys_max_cmd_len=102400 12483 ;; 12484 sysv5* | sco5v6* | sysv4.2uw2*) 12485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12486 if test -n "$kargmax"; then 12487 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12488 else 12489 lt_cv_sys_max_cmd_len=32768 12490 fi 12491 ;; 12492 *) 12493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12494 if test -n "$lt_cv_sys_max_cmd_len" && \ 12495 test undefined != "$lt_cv_sys_max_cmd_len"; then 12496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12498 else 12499 # Make teststring a little bigger before we do anything with it. 12500 # a 1K string should be a reasonable start. 12501 for i in 1 2 3 4 5 6 7 8; do 12502 teststring=$teststring$teststring 12503 done 12504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12505 # If test is not a shell built-in, we'll probably end up computing a 12506 # maximum length that is only half of the actual maximum length, but 12507 # we can't tell. 12508 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12509 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12510 test 17 != "$i" # 1/2 MB should be enough 12511 do 12512 i=`expr $i + 1` 12513 teststring=$teststring$teststring 12514 done 12515 # Only check the string length outside the loop. 12516 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12517 teststring= 12518 # Add a significant safety factor because C++ compilers can tack on 12519 # massive amounts of additional arguments before passing them to the 12520 # linker. It appears as though 1/2 is a usable value. 12521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12522 fi 12523 ;; 12524 esac 12525 ;; 12526esac 12527fi 12528 12529if test -n "$lt_cv_sys_max_cmd_len"; then 12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12531printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12532else 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12534printf "%s\n" "none" >&6; } 12535fi 12536max_cmd_len=$lt_cv_sys_max_cmd_len 12537 12538 12539 12540 12541 12542 12543: ${CP="cp -f"} 12544: ${MV="mv -f"} 12545: ${RM="rm -f"} 12546 12547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12548 lt_unset=unset 12549else 12550 lt_unset=false 12551fi 12552 12553 12554 12555 12556 12557# test EBCDIC or ASCII 12558case `echo X|tr X '\101'` in 12559 A) # ASCII based system 12560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12561 lt_SP2NL='tr \040 \012' 12562 lt_NL2SP='tr \015\012 \040\040' 12563 ;; 12564 *) # EBCDIC based system 12565 lt_SP2NL='tr \100 \n' 12566 lt_NL2SP='tr \r\n \100\100' 12567 ;; 12568esac 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12579printf %s "checking how to convert $build file names to $host format... " >&6; } 12580if test ${lt_cv_to_host_file_cmd+y} 12581then : 12582 printf %s "(cached) " >&6 12583else case e in #( 12584 e) case $host in 12585 *-*-mingw* ) 12586 case $build in 12587 *-*-mingw* ) # actually msys 12588 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12589 ;; 12590 *-*-cygwin* ) 12591 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12592 ;; 12593 * ) # otherwise, assume *nix 12594 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12595 ;; 12596 esac 12597 ;; 12598 *-*-cygwin* ) 12599 case $build in 12600 *-*-mingw* ) # actually msys 12601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12602 ;; 12603 *-*-cygwin* ) 12604 lt_cv_to_host_file_cmd=func_convert_file_noop 12605 ;; 12606 * ) # otherwise, assume *nix 12607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12608 ;; 12609 esac 12610 ;; 12611 * ) # unhandled hosts (and "normal" native builds) 12612 lt_cv_to_host_file_cmd=func_convert_file_noop 12613 ;; 12614esac 12615 ;; 12616esac 12617fi 12618 12619to_host_file_cmd=$lt_cv_to_host_file_cmd 12620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12621printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12622 12623 12624 12625 12626 12627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12628printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12629if test ${lt_cv_to_tool_file_cmd+y} 12630then : 12631 printf %s "(cached) " >&6 12632else case e in #( 12633 e) #assume ordinary cross tools, or native build. 12634lt_cv_to_tool_file_cmd=func_convert_file_noop 12635case $host in 12636 *-*-mingw* ) 12637 case $build in 12638 *-*-mingw* ) # actually msys 12639 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12640 ;; 12641 esac 12642 ;; 12643esac 12644 ;; 12645esac 12646fi 12647 12648to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12650printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12651 12652 12653 12654 12655 12656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12657printf %s "checking for $LD option to reload object files... " >&6; } 12658if test ${lt_cv_ld_reload_flag+y} 12659then : 12660 printf %s "(cached) " >&6 12661else case e in #( 12662 e) lt_cv_ld_reload_flag='-r' ;; 12663esac 12664fi 12665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12666printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12667reload_flag=$lt_cv_ld_reload_flag 12668case $reload_flag in 12669"" | " "*) ;; 12670*) reload_flag=" $reload_flag" ;; 12671esac 12672reload_cmds='$LD$reload_flag -o $output$reload_objs' 12673case $host_os in 12674 cygwin* | mingw* | pw32* | cegcc*) 12675 if test yes != "$GCC"; then 12676 reload_cmds=false 12677 fi 12678 ;; 12679 darwin*) 12680 if test yes = "$GCC"; then 12681 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12682 else 12683 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12684 fi 12685 ;; 12686esac 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696if test -n "$ac_tool_prefix"; then 12697 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12698set dummy ${ac_tool_prefix}file; ac_word=$2 12699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12700printf %s "checking for $ac_word... " >&6; } 12701if test ${ac_cv_prog_FILECMD+y} 12702then : 12703 printf %s "(cached) " >&6 12704else case e in #( 12705 e) if test -n "$FILECMD"; then 12706 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12707else 12708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12709for as_dir in $PATH 12710do 12711 IFS=$as_save_IFS 12712 case $as_dir in #((( 12713 '') as_dir=./ ;; 12714 */) ;; 12715 *) as_dir=$as_dir/ ;; 12716 esac 12717 for ac_exec_ext in '' $ac_executable_extensions; do 12718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12719 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12721 break 2 12722 fi 12723done 12724 done 12725IFS=$as_save_IFS 12726 12727fi ;; 12728esac 12729fi 12730FILECMD=$ac_cv_prog_FILECMD 12731if test -n "$FILECMD"; then 12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12733printf "%s\n" "$FILECMD" >&6; } 12734else 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736printf "%s\n" "no" >&6; } 12737fi 12738 12739 12740fi 12741if test -z "$ac_cv_prog_FILECMD"; then 12742 ac_ct_FILECMD=$FILECMD 12743 # Extract the first word of "file", so it can be a program name with args. 12744set dummy file; ac_word=$2 12745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12746printf %s "checking for $ac_word... " >&6; } 12747if test ${ac_cv_prog_ac_ct_FILECMD+y} 12748then : 12749 printf %s "(cached) " >&6 12750else case e in #( 12751 e) if test -n "$ac_ct_FILECMD"; then 12752 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12753else 12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12755for as_dir in $PATH 12756do 12757 IFS=$as_save_IFS 12758 case $as_dir in #((( 12759 '') as_dir=./ ;; 12760 */) ;; 12761 *) as_dir=$as_dir/ ;; 12762 esac 12763 for ac_exec_ext in '' $ac_executable_extensions; do 12764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12765 ac_cv_prog_ac_ct_FILECMD="file" 12766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12767 break 2 12768 fi 12769done 12770 done 12771IFS=$as_save_IFS 12772 12773fi ;; 12774esac 12775fi 12776ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12777if test -n "$ac_ct_FILECMD"; then 12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12779printf "%s\n" "$ac_ct_FILECMD" >&6; } 12780else 12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12782printf "%s\n" "no" >&6; } 12783fi 12784 12785 if test "x$ac_ct_FILECMD" = x; then 12786 FILECMD=":" 12787 else 12788 case $cross_compiling:$ac_tool_warned in 12789yes:) 12790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12791printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12792ac_tool_warned=yes ;; 12793esac 12794 FILECMD=$ac_ct_FILECMD 12795 fi 12796else 12797 FILECMD="$ac_cv_prog_FILECMD" 12798fi 12799 12800 12801 12802 12803 12804 12805 12806if test -n "$ac_tool_prefix"; then 12807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12808set dummy ${ac_tool_prefix}objdump; ac_word=$2 12809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12810printf %s "checking for $ac_word... " >&6; } 12811if test ${ac_cv_prog_OBJDUMP+y} 12812then : 12813 printf %s "(cached) " >&6 12814else case e in #( 12815 e) if test -n "$OBJDUMP"; then 12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12817else 12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12819for as_dir in $PATH 12820do 12821 IFS=$as_save_IFS 12822 case $as_dir in #((( 12823 '') as_dir=./ ;; 12824 */) ;; 12825 *) as_dir=$as_dir/ ;; 12826 esac 12827 for ac_exec_ext in '' $ac_executable_extensions; do 12828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12829 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12831 break 2 12832 fi 12833done 12834 done 12835IFS=$as_save_IFS 12836 12837fi ;; 12838esac 12839fi 12840OBJDUMP=$ac_cv_prog_OBJDUMP 12841if test -n "$OBJDUMP"; then 12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12843printf "%s\n" "$OBJDUMP" >&6; } 12844else 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846printf "%s\n" "no" >&6; } 12847fi 12848 12849 12850fi 12851if test -z "$ac_cv_prog_OBJDUMP"; then 12852 ac_ct_OBJDUMP=$OBJDUMP 12853 # Extract the first word of "objdump", so it can be a program name with args. 12854set dummy objdump; ac_word=$2 12855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12856printf %s "checking for $ac_word... " >&6; } 12857if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12858then : 12859 printf %s "(cached) " >&6 12860else case e in #( 12861 e) if test -n "$ac_ct_OBJDUMP"; then 12862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12863else 12864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12865for as_dir in $PATH 12866do 12867 IFS=$as_save_IFS 12868 case $as_dir in #((( 12869 '') as_dir=./ ;; 12870 */) ;; 12871 *) as_dir=$as_dir/ ;; 12872 esac 12873 for ac_exec_ext in '' $ac_executable_extensions; do 12874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12875 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12877 break 2 12878 fi 12879done 12880 done 12881IFS=$as_save_IFS 12882 12883fi ;; 12884esac 12885fi 12886ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12887if test -n "$ac_ct_OBJDUMP"; then 12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12889printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12890else 12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12892printf "%s\n" "no" >&6; } 12893fi 12894 12895 if test "x$ac_ct_OBJDUMP" = x; then 12896 OBJDUMP="false" 12897 else 12898 case $cross_compiling:$ac_tool_warned in 12899yes:) 12900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12902ac_tool_warned=yes ;; 12903esac 12904 OBJDUMP=$ac_ct_OBJDUMP 12905 fi 12906else 12907 OBJDUMP="$ac_cv_prog_OBJDUMP" 12908fi 12909 12910test -z "$OBJDUMP" && OBJDUMP=objdump 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12921printf %s "checking how to recognize dependent libraries... " >&6; } 12922if test ${lt_cv_deplibs_check_method+y} 12923then : 12924 printf %s "(cached) " >&6 12925else case e in #( 12926 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 12927lt_cv_file_magic_test_file= 12928lt_cv_deplibs_check_method='unknown' 12929# Need to set the preceding variable on all platforms that support 12930# interlibrary dependencies. 12931# 'none' -- dependencies not supported. 12932# 'unknown' -- same as none, but documents that we really don't know. 12933# 'pass_all' -- all dependencies passed with no checks. 12934# 'test_compile' -- check by making test program. 12935# 'file_magic [[regex]]' -- check by looking for files in library path 12936# that responds to the $file_magic_cmd with a given extended regex. 12937# If you have 'file' or equivalent on your system and you're not sure 12938# whether 'pass_all' will *always* work, you probably want this one. 12939 12940case $host_os in 12941aix[4-9]*) 12942 lt_cv_deplibs_check_method=pass_all 12943 ;; 12944 12945beos*) 12946 lt_cv_deplibs_check_method=pass_all 12947 ;; 12948 12949bsdi[45]*) 12950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12951 lt_cv_file_magic_cmd='$FILECMD -L' 12952 lt_cv_file_magic_test_file=/shlib/libc.so 12953 ;; 12954 12955cygwin*) 12956 # func_win32_libid is a shell function defined in ltmain.sh 12957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12958 lt_cv_file_magic_cmd='func_win32_libid' 12959 ;; 12960 12961mingw* | pw32*) 12962 # Base MSYS/MinGW do not provide the 'file' command needed by 12963 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12964 # unless we find 'file', for example because we are cross-compiling. 12965 if ( file / ) >/dev/null 2>&1; then 12966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12967 lt_cv_file_magic_cmd='func_win32_libid' 12968 else 12969 # Keep this pattern in sync with the one in func_win32_libid. 12970 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12971 lt_cv_file_magic_cmd='$OBJDUMP -f' 12972 fi 12973 ;; 12974 12975cegcc*) 12976 # use the weaker test based on 'objdump'. See mingw*. 12977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12978 lt_cv_file_magic_cmd='$OBJDUMP -f' 12979 ;; 12980 12981darwin* | rhapsody*) 12982 lt_cv_deplibs_check_method=pass_all 12983 ;; 12984 12985freebsd* | dragonfly* | midnightbsd*) 12986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12987 case $host_cpu in 12988 i*86 ) 12989 # Not sure whether the presence of OpenBSD here was a mistake. 12990 # Let's accept both of them until this is cleared up. 12991 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12992 lt_cv_file_magic_cmd=$FILECMD 12993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12994 ;; 12995 esac 12996 else 12997 lt_cv_deplibs_check_method=pass_all 12998 fi 12999 ;; 13000 13001haiku*) 13002 lt_cv_deplibs_check_method=pass_all 13003 ;; 13004 13005hpux10.20* | hpux11*) 13006 lt_cv_file_magic_cmd=$FILECMD 13007 case $host_cpu in 13008 ia64*) 13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13011 ;; 13012 hppa*64*) 13013 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]' 13014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13015 ;; 13016 *) 13017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13018 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13019 ;; 13020 esac 13021 ;; 13022 13023interix[3-9]*) 13024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13026 ;; 13027 13028irix5* | irix6* | nonstopux*) 13029 case $LD in 13030 *-32|*"-32 ") libmagic=32-bit;; 13031 *-n32|*"-n32 ") libmagic=N32;; 13032 *-64|*"-64 ") libmagic=64-bit;; 13033 *) libmagic=never-match;; 13034 esac 13035 lt_cv_deplibs_check_method=pass_all 13036 ;; 13037 13038# This must be glibc/ELF. 13039linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13040 lt_cv_deplibs_check_method=pass_all 13041 ;; 13042 13043netbsd*) 13044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13046 else 13047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13048 fi 13049 ;; 13050 13051newos6*) 13052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13053 lt_cv_file_magic_cmd=$FILECMD 13054 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13055 ;; 13056 13057*nto* | *qnx*) 13058 lt_cv_deplibs_check_method=pass_all 13059 ;; 13060 13061openbsd* | bitrig*) 13062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13064 else 13065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13066 fi 13067 ;; 13068 13069osf3* | osf4* | osf5*) 13070 lt_cv_deplibs_check_method=pass_all 13071 ;; 13072 13073rdos*) 13074 lt_cv_deplibs_check_method=pass_all 13075 ;; 13076 13077solaris*) 13078 lt_cv_deplibs_check_method=pass_all 13079 ;; 13080 13081sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13082 lt_cv_deplibs_check_method=pass_all 13083 ;; 13084 13085sysv4 | sysv4.3*) 13086 case $host_vendor in 13087 motorola) 13088 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]' 13089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13090 ;; 13091 ncr) 13092 lt_cv_deplibs_check_method=pass_all 13093 ;; 13094 sequent) 13095 lt_cv_file_magic_cmd='/bin/file' 13096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13097 ;; 13098 sni) 13099 lt_cv_file_magic_cmd='/bin/file' 13100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13101 lt_cv_file_magic_test_file=/lib/libc.so 13102 ;; 13103 siemens) 13104 lt_cv_deplibs_check_method=pass_all 13105 ;; 13106 pc) 13107 lt_cv_deplibs_check_method=pass_all 13108 ;; 13109 esac 13110 ;; 13111 13112tpf*) 13113 lt_cv_deplibs_check_method=pass_all 13114 ;; 13115os2*) 13116 lt_cv_deplibs_check_method=pass_all 13117 ;; 13118esac 13119 ;; 13120esac 13121fi 13122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13123printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13124 13125file_magic_glob= 13126want_nocaseglob=no 13127if test "$build" = "$host"; then 13128 case $host_os in 13129 mingw* | pw32*) 13130 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13131 want_nocaseglob=yes 13132 else 13133 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13134 fi 13135 ;; 13136 esac 13137fi 13138 13139file_magic_cmd=$lt_cv_file_magic_cmd 13140deplibs_check_method=$lt_cv_deplibs_check_method 13141test -z "$deplibs_check_method" && deplibs_check_method=unknown 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164if test -n "$ac_tool_prefix"; then 13165 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13166set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13168printf %s "checking for $ac_word... " >&6; } 13169if test ${ac_cv_prog_DLLTOOL+y} 13170then : 13171 printf %s "(cached) " >&6 13172else case e in #( 13173 e) if test -n "$DLLTOOL"; then 13174 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13175else 13176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13177for as_dir in $PATH 13178do 13179 IFS=$as_save_IFS 13180 case $as_dir in #((( 13181 '') as_dir=./ ;; 13182 */) ;; 13183 *) as_dir=$as_dir/ ;; 13184 esac 13185 for ac_exec_ext in '' $ac_executable_extensions; do 13186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13189 break 2 13190 fi 13191done 13192 done 13193IFS=$as_save_IFS 13194 13195fi ;; 13196esac 13197fi 13198DLLTOOL=$ac_cv_prog_DLLTOOL 13199if test -n "$DLLTOOL"; then 13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13201printf "%s\n" "$DLLTOOL" >&6; } 13202else 13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13204printf "%s\n" "no" >&6; } 13205fi 13206 13207 13208fi 13209if test -z "$ac_cv_prog_DLLTOOL"; then 13210 ac_ct_DLLTOOL=$DLLTOOL 13211 # Extract the first word of "dlltool", so it can be a program name with args. 13212set dummy dlltool; ac_word=$2 13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13214printf %s "checking for $ac_word... " >&6; } 13215if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13216then : 13217 printf %s "(cached) " >&6 13218else case e in #( 13219 e) if test -n "$ac_ct_DLLTOOL"; then 13220 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13221else 13222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13223for as_dir in $PATH 13224do 13225 IFS=$as_save_IFS 13226 case $as_dir in #((( 13227 '') as_dir=./ ;; 13228 */) ;; 13229 *) as_dir=$as_dir/ ;; 13230 esac 13231 for ac_exec_ext in '' $ac_executable_extensions; do 13232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13233 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13235 break 2 13236 fi 13237done 13238 done 13239IFS=$as_save_IFS 13240 13241fi ;; 13242esac 13243fi 13244ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13245if test -n "$ac_ct_DLLTOOL"; then 13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13247printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13248else 13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13250printf "%s\n" "no" >&6; } 13251fi 13252 13253 if test "x$ac_ct_DLLTOOL" = x; then 13254 DLLTOOL="false" 13255 else 13256 case $cross_compiling:$ac_tool_warned in 13257yes:) 13258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13259printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13260ac_tool_warned=yes ;; 13261esac 13262 DLLTOOL=$ac_ct_DLLTOOL 13263 fi 13264else 13265 DLLTOOL="$ac_cv_prog_DLLTOOL" 13266fi 13267 13268test -z "$DLLTOOL" && DLLTOOL=dlltool 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13280printf %s "checking how to associate runtime and link libraries... " >&6; } 13281if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13282then : 13283 printf %s "(cached) " >&6 13284else case e in #( 13285 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 13286 13287case $host_os in 13288cygwin* | mingw* | pw32* | cegcc*) 13289 # two different shell functions defined in ltmain.sh; 13290 # decide which one to use based on capabilities of $DLLTOOL 13291 case `$DLLTOOL --help 2>&1` in 13292 *--identify-strict*) 13293 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13294 ;; 13295 *) 13296 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13297 ;; 13298 esac 13299 ;; 13300*) 13301 # fallback: assume linklib IS sharedlib 13302 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13303 ;; 13304esac 13305 ;; 13306esac 13307fi 13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13309printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13310sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13311test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13312 13313 13314 13315 13316 13317 13318 13319if test -n "$ac_tool_prefix"; then 13320 for ac_prog in ar 13321 do 13322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13323set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13325printf %s "checking for $ac_word... " >&6; } 13326if test ${ac_cv_prog_AR+y} 13327then : 13328 printf %s "(cached) " >&6 13329else case e in #( 13330 e) if test -n "$AR"; then 13331 ac_cv_prog_AR="$AR" # Let the user override the test. 13332else 13333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13334for as_dir in $PATH 13335do 13336 IFS=$as_save_IFS 13337 case $as_dir in #((( 13338 '') as_dir=./ ;; 13339 */) ;; 13340 *) as_dir=$as_dir/ ;; 13341 esac 13342 for ac_exec_ext in '' $ac_executable_extensions; do 13343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13344 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13346 break 2 13347 fi 13348done 13349 done 13350IFS=$as_save_IFS 13351 13352fi ;; 13353esac 13354fi 13355AR=$ac_cv_prog_AR 13356if test -n "$AR"; then 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13358printf "%s\n" "$AR" >&6; } 13359else 13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13361printf "%s\n" "no" >&6; } 13362fi 13363 13364 13365 test -n "$AR" && break 13366 done 13367fi 13368if test -z "$AR"; then 13369 ac_ct_AR=$AR 13370 for ac_prog in ar 13371do 13372 # Extract the first word of "$ac_prog", so it can be a program name with args. 13373set dummy $ac_prog; ac_word=$2 13374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13375printf %s "checking for $ac_word... " >&6; } 13376if test ${ac_cv_prog_ac_ct_AR+y} 13377then : 13378 printf %s "(cached) " >&6 13379else case e in #( 13380 e) if test -n "$ac_ct_AR"; then 13381 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13382else 13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13384for as_dir in $PATH 13385do 13386 IFS=$as_save_IFS 13387 case $as_dir in #((( 13388 '') as_dir=./ ;; 13389 */) ;; 13390 *) as_dir=$as_dir/ ;; 13391 esac 13392 for ac_exec_ext in '' $ac_executable_extensions; do 13393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13394 ac_cv_prog_ac_ct_AR="$ac_prog" 13395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13396 break 2 13397 fi 13398done 13399 done 13400IFS=$as_save_IFS 13401 13402fi ;; 13403esac 13404fi 13405ac_ct_AR=$ac_cv_prog_ac_ct_AR 13406if test -n "$ac_ct_AR"; then 13407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13408printf "%s\n" "$ac_ct_AR" >&6; } 13409else 13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13411printf "%s\n" "no" >&6; } 13412fi 13413 13414 13415 test -n "$ac_ct_AR" && break 13416done 13417 13418 if test "x$ac_ct_AR" = x; then 13419 AR="false" 13420 else 13421 case $cross_compiling:$ac_tool_warned in 13422yes:) 13423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13425ac_tool_warned=yes ;; 13426esac 13427 AR=$ac_ct_AR 13428 fi 13429fi 13430 13431: ${AR=ar} 13432 13433 13434 13435 13436 13437 13438# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13439# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13440# higher priority because thats what people were doing historically (setting 13441# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13442# variable obsoleted/removed. 13443 13444test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13445lt_ar_flags=$AR_FLAGS 13446 13447 13448 13449 13450 13451 13452# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13453# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13454 13455 13456 13457 13458 13459 13460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13461printf %s "checking for archiver @FILE support... " >&6; } 13462if test ${lt_cv_ar_at_file+y} 13463then : 13464 printf %s "(cached) " >&6 13465else case e in #( 13466 e) lt_cv_ar_at_file=no 13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13468/* end confdefs.h. */ 13469 13470int 13471main (void) 13472{ 13473 13474 ; 13475 return 0; 13476} 13477_ACEOF 13478if ac_fn_c_try_compile "$LINENO" 13479then : 13480 echo conftest.$ac_objext > conftest.lst 13481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13483 (eval $lt_ar_try) 2>&5 13484 ac_status=$? 13485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13486 test $ac_status = 0; } 13487 if test 0 -eq "$ac_status"; then 13488 # Ensure the archiver fails upon bogus file names. 13489 rm -f conftest.$ac_objext libconftest.a 13490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13491 (eval $lt_ar_try) 2>&5 13492 ac_status=$? 13493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13494 test $ac_status = 0; } 13495 if test 0 -ne "$ac_status"; then 13496 lt_cv_ar_at_file=@ 13497 fi 13498 fi 13499 rm -f conftest.* libconftest.a 13500 13501fi 13502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13503 ;; 13504esac 13505fi 13506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13507printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13508 13509if test no = "$lt_cv_ar_at_file"; then 13510 archiver_list_spec= 13511else 13512 archiver_list_spec=$lt_cv_ar_at_file 13513fi 13514 13515 13516 13517 13518 13519 13520 13521if test -n "$ac_tool_prefix"; then 13522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13523set dummy ${ac_tool_prefix}strip; ac_word=$2 13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13525printf %s "checking for $ac_word... " >&6; } 13526if test ${ac_cv_prog_STRIP+y} 13527then : 13528 printf %s "(cached) " >&6 13529else case e in #( 13530 e) if test -n "$STRIP"; then 13531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13532else 13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13534for as_dir in $PATH 13535do 13536 IFS=$as_save_IFS 13537 case $as_dir in #((( 13538 '') as_dir=./ ;; 13539 */) ;; 13540 *) as_dir=$as_dir/ ;; 13541 esac 13542 for ac_exec_ext in '' $ac_executable_extensions; do 13543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13544 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13546 break 2 13547 fi 13548done 13549 done 13550IFS=$as_save_IFS 13551 13552fi ;; 13553esac 13554fi 13555STRIP=$ac_cv_prog_STRIP 13556if test -n "$STRIP"; then 13557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13558printf "%s\n" "$STRIP" >&6; } 13559else 13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13561printf "%s\n" "no" >&6; } 13562fi 13563 13564 13565fi 13566if test -z "$ac_cv_prog_STRIP"; then 13567 ac_ct_STRIP=$STRIP 13568 # Extract the first word of "strip", so it can be a program name with args. 13569set dummy strip; ac_word=$2 13570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13571printf %s "checking for $ac_word... " >&6; } 13572if test ${ac_cv_prog_ac_ct_STRIP+y} 13573then : 13574 printf %s "(cached) " >&6 13575else case e in #( 13576 e) if test -n "$ac_ct_STRIP"; then 13577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13578else 13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13580for as_dir in $PATH 13581do 13582 IFS=$as_save_IFS 13583 case $as_dir in #((( 13584 '') as_dir=./ ;; 13585 */) ;; 13586 *) as_dir=$as_dir/ ;; 13587 esac 13588 for ac_exec_ext in '' $ac_executable_extensions; do 13589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13590 ac_cv_prog_ac_ct_STRIP="strip" 13591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13592 break 2 13593 fi 13594done 13595 done 13596IFS=$as_save_IFS 13597 13598fi ;; 13599esac 13600fi 13601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13602if test -n "$ac_ct_STRIP"; then 13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13604printf "%s\n" "$ac_ct_STRIP" >&6; } 13605else 13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13607printf "%s\n" "no" >&6; } 13608fi 13609 13610 if test "x$ac_ct_STRIP" = x; then 13611 STRIP=":" 13612 else 13613 case $cross_compiling:$ac_tool_warned in 13614yes:) 13615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13616printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13617ac_tool_warned=yes ;; 13618esac 13619 STRIP=$ac_ct_STRIP 13620 fi 13621else 13622 STRIP="$ac_cv_prog_STRIP" 13623fi 13624 13625test -z "$STRIP" && STRIP=: 13626 13627 13628 13629 13630 13631 13632if test -n "$ac_tool_prefix"; then 13633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13634set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13636printf %s "checking for $ac_word... " >&6; } 13637if test ${ac_cv_prog_RANLIB+y} 13638then : 13639 printf %s "(cached) " >&6 13640else case e in #( 13641 e) if test -n "$RANLIB"; then 13642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13643else 13644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13645for as_dir in $PATH 13646do 13647 IFS=$as_save_IFS 13648 case $as_dir in #((( 13649 '') as_dir=./ ;; 13650 */) ;; 13651 *) as_dir=$as_dir/ ;; 13652 esac 13653 for ac_exec_ext in '' $ac_executable_extensions; do 13654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13655 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13657 break 2 13658 fi 13659done 13660 done 13661IFS=$as_save_IFS 13662 13663fi ;; 13664esac 13665fi 13666RANLIB=$ac_cv_prog_RANLIB 13667if test -n "$RANLIB"; then 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13669printf "%s\n" "$RANLIB" >&6; } 13670else 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13672printf "%s\n" "no" >&6; } 13673fi 13674 13675 13676fi 13677if test -z "$ac_cv_prog_RANLIB"; then 13678 ac_ct_RANLIB=$RANLIB 13679 # Extract the first word of "ranlib", so it can be a program name with args. 13680set dummy ranlib; ac_word=$2 13681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13682printf %s "checking for $ac_word... " >&6; } 13683if test ${ac_cv_prog_ac_ct_RANLIB+y} 13684then : 13685 printf %s "(cached) " >&6 13686else case e in #( 13687 e) if test -n "$ac_ct_RANLIB"; then 13688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13689else 13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13691for as_dir in $PATH 13692do 13693 IFS=$as_save_IFS 13694 case $as_dir in #((( 13695 '') as_dir=./ ;; 13696 */) ;; 13697 *) as_dir=$as_dir/ ;; 13698 esac 13699 for ac_exec_ext in '' $ac_executable_extensions; do 13700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13701 ac_cv_prog_ac_ct_RANLIB="ranlib" 13702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13703 break 2 13704 fi 13705done 13706 done 13707IFS=$as_save_IFS 13708 13709fi ;; 13710esac 13711fi 13712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13713if test -n "$ac_ct_RANLIB"; then 13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13715printf "%s\n" "$ac_ct_RANLIB" >&6; } 13716else 13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13718printf "%s\n" "no" >&6; } 13719fi 13720 13721 if test "x$ac_ct_RANLIB" = x; then 13722 RANLIB=":" 13723 else 13724 case $cross_compiling:$ac_tool_warned in 13725yes:) 13726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13728ac_tool_warned=yes ;; 13729esac 13730 RANLIB=$ac_ct_RANLIB 13731 fi 13732else 13733 RANLIB="$ac_cv_prog_RANLIB" 13734fi 13735 13736test -z "$RANLIB" && RANLIB=: 13737 13738 13739 13740 13741 13742 13743# Determine commands to create old-style static archives. 13744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13745old_postinstall_cmds='chmod 644 $oldlib' 13746old_postuninstall_cmds= 13747 13748if test -n "$RANLIB"; then 13749 case $host_os in 13750 bitrig* | openbsd*) 13751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13752 ;; 13753 *) 13754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13755 ;; 13756 esac 13757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13758fi 13759 13760case $host_os in 13761 darwin*) 13762 lock_old_archive_extraction=yes ;; 13763 *) 13764 lock_old_archive_extraction=no ;; 13765esac 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805# If no C compiler was specified, use CC. 13806LTCC=${LTCC-"$CC"} 13807 13808# If no C compiler flags were specified, use CFLAGS. 13809LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13810 13811# Allow CC to be a program name with arguments. 13812compiler=$CC 13813 13814 13815# Check for command to grab the raw symbol name followed by C symbol from nm. 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13817printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13818if test ${lt_cv_sys_global_symbol_pipe+y} 13819then : 13820 printf %s "(cached) " >&6 13821else case e in #( 13822 e) 13823# These are sane defaults that work on at least a few old systems. 13824# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13825 13826# Character class describing NM global symbol codes. 13827symcode='[BCDEGRST]' 13828 13829# Regexp to match symbols that can be accessed directly from C. 13830sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13831 13832# Define system-specific variables. 13833case $host_os in 13834aix*) 13835 symcode='[BCDT]' 13836 ;; 13837cygwin* | mingw* | pw32* | cegcc*) 13838 symcode='[ABCDGISTW]' 13839 ;; 13840hpux*) 13841 if test ia64 = "$host_cpu"; then 13842 symcode='[ABCDEGRST]' 13843 fi 13844 ;; 13845irix* | nonstopux*) 13846 symcode='[BCDEGRST]' 13847 ;; 13848osf*) 13849 symcode='[BCDEGQRST]' 13850 ;; 13851solaris*) 13852 symcode='[BDRT]' 13853 ;; 13854sco3.2v5*) 13855 symcode='[DT]' 13856 ;; 13857sysv4.2uw2*) 13858 symcode='[DT]' 13859 ;; 13860sysv5* | sco5v6* | unixware* | OpenUNIX*) 13861 symcode='[ABDT]' 13862 ;; 13863sysv4) 13864 symcode='[DFNSTU]' 13865 ;; 13866esac 13867 13868# If we're using GNU nm, then use its standard symbol codes. 13869case `$NM -V 2>&1` in 13870*GNU* | *'with BFD'*) 13871 symcode='[ABCDGIRSTW]' ;; 13872esac 13873 13874if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13875 # Gets list of data symbols to import. 13876 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13877 # Adjust the below global symbol transforms to fixup imported variables. 13878 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13879 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13880 lt_c_name_lib_hook="\ 13881 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13882 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13883else 13884 # Disable hooks by default. 13885 lt_cv_sys_global_symbol_to_import= 13886 lt_cdecl_hook= 13887 lt_c_name_hook= 13888 lt_c_name_lib_hook= 13889fi 13890 13891# Transform an extracted symbol line into a proper C declaration. 13892# Some systems (esp. on ia64) link data and code symbols differently, 13893# so use this general approach. 13894lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13895$lt_cdecl_hook\ 13896" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13897" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13898 13899# Transform an extracted symbol line into symbol name and symbol address 13900lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13901$lt_c_name_hook\ 13902" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13903" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13904 13905# Transform an extracted symbol line into symbol name with lib prefix and 13906# symbol address. 13907lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13908$lt_c_name_lib_hook\ 13909" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13910" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13911" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13912 13913# Handle CRLF in mingw tool chain 13914opt_cr= 13915case $build_os in 13916mingw*) 13917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13918 ;; 13919esac 13920 13921# Try without a prefix underscore, then with it. 13922for ac_symprfx in "" "_"; do 13923 13924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13925 symxfrm="\\1 $ac_symprfx\\2 \\2" 13926 13927 # Write the raw and C identifiers. 13928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13929 # Fake it for dumpbin and say T for any non-static function, 13930 # D for any global variable and I for any imported variable. 13931 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13932 # which start with @ or ?. 13933 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13934" {last_section=section; section=\$ 3};"\ 13935" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13936" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13937" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13938" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13939" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13940" \$ 0!~/External *\|/{next};"\ 13941" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13942" {if(hide[section]) next};"\ 13943" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13944" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13945" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13946" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13947" ' prfx=^$ac_symprfx" 13948 else 13949 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13950 fi 13951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13952 13953 # Check to see that the pipe works correctly. 13954 pipe_works=no 13955 13956 rm -f conftest* 13957 cat > conftest.$ac_ext <<_LT_EOF 13958#ifdef __cplusplus 13959extern "C" { 13960#endif 13961char nm_test_var; 13962void nm_test_func(void); 13963void nm_test_func(void){} 13964#ifdef __cplusplus 13965} 13966#endif 13967int main(){nm_test_var='a';nm_test_func();return(0);} 13968_LT_EOF 13969 13970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13971 (eval $ac_compile) 2>&5 13972 ac_status=$? 13973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13974 test $ac_status = 0; }; then 13975 # Now try to grab the symbols. 13976 nlist=conftest.nm 13977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13979 ac_status=$? 13980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13981 test $ac_status = 0; } && test -s "$nlist"; then 13982 # Try sorting and uniquifying the output. 13983 if sort "$nlist" | uniq > "$nlist"T; then 13984 mv -f "$nlist"T "$nlist" 13985 else 13986 rm -f "$nlist"T 13987 fi 13988 13989 # Make sure that we snagged all the symbols we need. 13990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13992 cat <<_LT_EOF > conftest.$ac_ext 13993/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13994#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13995/* DATA imports from DLLs on WIN32 can't be const, because runtime 13996 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13997# define LT_DLSYM_CONST 13998#elif defined __osf__ 13999/* This system does not cope well with relocations in const data. */ 14000# define LT_DLSYM_CONST 14001#else 14002# define LT_DLSYM_CONST const 14003#endif 14004 14005#ifdef __cplusplus 14006extern "C" { 14007#endif 14008 14009_LT_EOF 14010 # Now generate the symbol file. 14011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14012 14013 cat <<_LT_EOF >> conftest.$ac_ext 14014 14015/* The mapping between symbol names and symbols. */ 14016LT_DLSYM_CONST struct { 14017 const char *name; 14018 void *address; 14019} 14020lt__PROGRAM__LTX_preloaded_symbols[] = 14021{ 14022 { "@PROGRAM@", (void *) 0 }, 14023_LT_EOF 14024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14025 cat <<\_LT_EOF >> conftest.$ac_ext 14026 {0, (void *) 0} 14027}; 14028 14029/* This works around a problem in FreeBSD linker */ 14030#ifdef FREEBSD_WORKAROUND 14031static const void *lt_preloaded_setup() { 14032 return lt__PROGRAM__LTX_preloaded_symbols; 14033} 14034#endif 14035 14036#ifdef __cplusplus 14037} 14038#endif 14039_LT_EOF 14040 # Now try linking the two files. 14041 mv conftest.$ac_objext conftstm.$ac_objext 14042 lt_globsym_save_LIBS=$LIBS 14043 lt_globsym_save_CFLAGS=$CFLAGS 14044 LIBS=conftstm.$ac_objext 14045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14047 (eval $ac_link) 2>&5 14048 ac_status=$? 14049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14050 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14051 pipe_works=yes 14052 fi 14053 LIBS=$lt_globsym_save_LIBS 14054 CFLAGS=$lt_globsym_save_CFLAGS 14055 else 14056 echo "cannot find nm_test_func in $nlist" >&5 14057 fi 14058 else 14059 echo "cannot find nm_test_var in $nlist" >&5 14060 fi 14061 else 14062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14063 fi 14064 else 14065 echo "$progname: failed program was:" >&5 14066 cat conftest.$ac_ext >&5 14067 fi 14068 rm -rf conftest* conftst* 14069 14070 # Do not use the global_symbol_pipe unless it works. 14071 if test yes = "$pipe_works"; then 14072 break 14073 else 14074 lt_cv_sys_global_symbol_pipe= 14075 fi 14076done 14077 ;; 14078esac 14079fi 14080 14081if test -z "$lt_cv_sys_global_symbol_pipe"; then 14082 lt_cv_sys_global_symbol_to_cdecl= 14083fi 14084if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14086printf "%s\n" "failed" >&6; } 14087else 14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14089printf "%s\n" "ok" >&6; } 14090fi 14091 14092# Response file support. 14093if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14094 nm_file_list_spec='@' 14095elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14096 nm_file_list_spec='@' 14097fi 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14136printf %s "checking for sysroot... " >&6; } 14137 14138# Check whether --with-sysroot was given. 14139if test ${with_sysroot+y} 14140then : 14141 withval=$with_sysroot; 14142else case e in #( 14143 e) with_sysroot=no ;; 14144esac 14145fi 14146 14147 14148lt_sysroot= 14149case $with_sysroot in #( 14150 yes) 14151 if test yes = "$GCC"; then 14152 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14153 fi 14154 ;; #( 14155 /*) 14156 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14157 ;; #( 14158 no|'') 14159 ;; #( 14160 *) 14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14162printf "%s\n" "$with_sysroot" >&6; } 14163 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14164 ;; 14165esac 14166 14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14168printf "%s\n" "${lt_sysroot:-no}" >&6; } 14169 14170 14171 14172 14173 14174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14175printf %s "checking for a working dd... " >&6; } 14176if test ${ac_cv_path_lt_DD+y} 14177then : 14178 printf %s "(cached) " >&6 14179else case e in #( 14180 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14181cat conftest.i conftest.i >conftest2.i 14182: ${lt_DD:=$DD} 14183if test -z "$lt_DD"; then 14184 ac_path_lt_DD_found=false 14185 # Loop through the user's path and test for each of PROGNAME-LIST 14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14187for as_dir in $PATH 14188do 14189 IFS=$as_save_IFS 14190 case $as_dir in #((( 14191 '') as_dir=./ ;; 14192 */) ;; 14193 *) as_dir=$as_dir/ ;; 14194 esac 14195 for ac_prog in dd 14196 do 14197 for ac_exec_ext in '' $ac_executable_extensions; do 14198 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14199 as_fn_executable_p "$ac_path_lt_DD" || continue 14200if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14201 cmp -s conftest.i conftest.out \ 14202 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14203fi 14204 $ac_path_lt_DD_found && break 3 14205 done 14206 done 14207 done 14208IFS=$as_save_IFS 14209 if test -z "$ac_cv_path_lt_DD"; then 14210 : 14211 fi 14212else 14213 ac_cv_path_lt_DD=$lt_DD 14214fi 14215 14216rm -f conftest.i conftest2.i conftest.out ;; 14217esac 14218fi 14219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14220printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14221 14222 14223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14224printf %s "checking how to truncate binary pipes... " >&6; } 14225if test ${lt_cv_truncate_bin+y} 14226then : 14227 printf %s "(cached) " >&6 14228else case e in #( 14229 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14230cat conftest.i conftest.i >conftest2.i 14231lt_cv_truncate_bin= 14232if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14233 cmp -s conftest.i conftest.out \ 14234 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14235fi 14236rm -f conftest.i conftest2.i conftest.out 14237test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 14238esac 14239fi 14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14241printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14242 14243 14244 14245 14246 14247 14248 14249# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14250func_cc_basename () 14251{ 14252 for cc_temp in $*""; do 14253 case $cc_temp in 14254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14256 \-*) ;; 14257 *) break;; 14258 esac 14259 done 14260 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14261} 14262 14263# Check whether --enable-libtool-lock was given. 14264if test ${enable_libtool_lock+y} 14265then : 14266 enableval=$enable_libtool_lock; 14267fi 14268 14269test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14270 14271# Some flags need to be propagated to the compiler or linker for good 14272# libtool support. 14273case $host in 14274ia64-*-hpux*) 14275 # Find out what ABI is being produced by ac_compile, and set mode 14276 # options accordingly. 14277 echo 'int i;' > conftest.$ac_ext 14278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14279 (eval $ac_compile) 2>&5 14280 ac_status=$? 14281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14282 test $ac_status = 0; }; then 14283 case `$FILECMD conftest.$ac_objext` in 14284 *ELF-32*) 14285 HPUX_IA64_MODE=32 14286 ;; 14287 *ELF-64*) 14288 HPUX_IA64_MODE=64 14289 ;; 14290 esac 14291 fi 14292 rm -rf conftest* 14293 ;; 14294*-*-irix6*) 14295 # Find out what ABI is being produced by ac_compile, and set linker 14296 # options accordingly. 14297 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14299 (eval $ac_compile) 2>&5 14300 ac_status=$? 14301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14302 test $ac_status = 0; }; then 14303 if test yes = "$lt_cv_prog_gnu_ld"; then 14304 case `$FILECMD conftest.$ac_objext` in 14305 *32-bit*) 14306 LD="${LD-ld} -melf32bsmip" 14307 ;; 14308 *N32*) 14309 LD="${LD-ld} -melf32bmipn32" 14310 ;; 14311 *64-bit*) 14312 LD="${LD-ld} -melf64bmip" 14313 ;; 14314 esac 14315 else 14316 case `$FILECMD conftest.$ac_objext` in 14317 *32-bit*) 14318 LD="${LD-ld} -32" 14319 ;; 14320 *N32*) 14321 LD="${LD-ld} -n32" 14322 ;; 14323 *64-bit*) 14324 LD="${LD-ld} -64" 14325 ;; 14326 esac 14327 fi 14328 fi 14329 rm -rf conftest* 14330 ;; 14331 14332mips64*-*linux*) 14333 # Find out what ABI is being produced by ac_compile, and set linker 14334 # options accordingly. 14335 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14337 (eval $ac_compile) 2>&5 14338 ac_status=$? 14339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14340 test $ac_status = 0; }; then 14341 emul=elf 14342 case `$FILECMD conftest.$ac_objext` in 14343 *32-bit*) 14344 emul="${emul}32" 14345 ;; 14346 *64-bit*) 14347 emul="${emul}64" 14348 ;; 14349 esac 14350 case `$FILECMD conftest.$ac_objext` in 14351 *MSB*) 14352 emul="${emul}btsmip" 14353 ;; 14354 *LSB*) 14355 emul="${emul}ltsmip" 14356 ;; 14357 esac 14358 case `$FILECMD conftest.$ac_objext` in 14359 *N32*) 14360 emul="${emul}n32" 14361 ;; 14362 esac 14363 LD="${LD-ld} -m $emul" 14364 fi 14365 rm -rf conftest* 14366 ;; 14367 14368x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14369s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14370 # Find out what ABI is being produced by ac_compile, and set linker 14371 # options accordingly. Note that the listed cases only cover the 14372 # situations where additional linker options are needed (such as when 14373 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14374 # vice versa); the common cases where no linker options are needed do 14375 # not appear in the list. 14376 echo 'int i;' > conftest.$ac_ext 14377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14378 (eval $ac_compile) 2>&5 14379 ac_status=$? 14380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14381 test $ac_status = 0; }; then 14382 case `$FILECMD conftest.o` in 14383 *32-bit*) 14384 case $host in 14385 x86_64-*kfreebsd*-gnu) 14386 LD="${LD-ld} -m elf_i386_fbsd" 14387 ;; 14388 x86_64-*linux*) 14389 case `$FILECMD conftest.o` in 14390 *x86-64*) 14391 LD="${LD-ld} -m elf32_x86_64" 14392 ;; 14393 *) 14394 LD="${LD-ld} -m elf_i386" 14395 ;; 14396 esac 14397 ;; 14398 powerpc64le-*linux*) 14399 LD="${LD-ld} -m elf32lppclinux" 14400 ;; 14401 powerpc64-*linux*) 14402 LD="${LD-ld} -m elf32ppclinux" 14403 ;; 14404 s390x-*linux*) 14405 LD="${LD-ld} -m elf_s390" 14406 ;; 14407 sparc64-*linux*) 14408 LD="${LD-ld} -m elf32_sparc" 14409 ;; 14410 esac 14411 ;; 14412 *64-bit*) 14413 case $host in 14414 x86_64-*kfreebsd*-gnu) 14415 LD="${LD-ld} -m elf_x86_64_fbsd" 14416 ;; 14417 x86_64-*linux*) 14418 LD="${LD-ld} -m elf_x86_64" 14419 ;; 14420 powerpcle-*linux*) 14421 LD="${LD-ld} -m elf64lppc" 14422 ;; 14423 powerpc-*linux*) 14424 LD="${LD-ld} -m elf64ppc" 14425 ;; 14426 s390*-*linux*|s390*-*tpf*) 14427 LD="${LD-ld} -m elf64_s390" 14428 ;; 14429 sparc*-*linux*) 14430 LD="${LD-ld} -m elf64_sparc" 14431 ;; 14432 esac 14433 ;; 14434 esac 14435 fi 14436 rm -rf conftest* 14437 ;; 14438 14439*-*-sco3.2v5*) 14440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14441 SAVE_CFLAGS=$CFLAGS 14442 CFLAGS="$CFLAGS -belf" 14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14444printf %s "checking whether the C compiler needs -belf... " >&6; } 14445if test ${lt_cv_cc_needs_belf+y} 14446then : 14447 printf %s "(cached) " >&6 14448else case e in #( 14449 e) ac_ext=c 14450ac_cpp='$CPP $CPPFLAGS' 14451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14453ac_compiler_gnu=$ac_cv_c_compiler_gnu 14454 14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14456/* end confdefs.h. */ 14457 14458int 14459main (void) 14460{ 14461 14462 ; 14463 return 0; 14464} 14465_ACEOF 14466if ac_fn_c_try_link "$LINENO" 14467then : 14468 lt_cv_cc_needs_belf=yes 14469else case e in #( 14470 e) lt_cv_cc_needs_belf=no ;; 14471esac 14472fi 14473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14474 conftest$ac_exeext conftest.$ac_ext 14475 ac_ext=c 14476ac_cpp='$CPP $CPPFLAGS' 14477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14479ac_compiler_gnu=$ac_cv_c_compiler_gnu 14480 ;; 14481esac 14482fi 14483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14484printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14485 if test yes != "$lt_cv_cc_needs_belf"; then 14486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14487 CFLAGS=$SAVE_CFLAGS 14488 fi 14489 ;; 14490*-*solaris*) 14491 # Find out what ABI is being produced by ac_compile, and set linker 14492 # options accordingly. 14493 echo 'int i;' > conftest.$ac_ext 14494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14495 (eval $ac_compile) 2>&5 14496 ac_status=$? 14497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14498 test $ac_status = 0; }; then 14499 case `$FILECMD conftest.o` in 14500 *64-bit*) 14501 case $lt_cv_prog_gnu_ld in 14502 yes*) 14503 case $host in 14504 i?86-*-solaris*|x86_64-*-solaris*) 14505 LD="${LD-ld} -m elf_x86_64" 14506 ;; 14507 sparc*-*-solaris*) 14508 LD="${LD-ld} -m elf64_sparc" 14509 ;; 14510 esac 14511 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14512 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14513 LD=${LD-ld}_sol2 14514 fi 14515 ;; 14516 *) 14517 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14518 LD="${LD-ld} -64" 14519 fi 14520 ;; 14521 esac 14522 ;; 14523 esac 14524 fi 14525 rm -rf conftest* 14526 ;; 14527esac 14528 14529need_locks=$enable_libtool_lock 14530 14531if test -n "$ac_tool_prefix"; then 14532 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14533set dummy ${ac_tool_prefix}mt; ac_word=$2 14534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14535printf %s "checking for $ac_word... " >&6; } 14536if test ${ac_cv_prog_MANIFEST_TOOL+y} 14537then : 14538 printf %s "(cached) " >&6 14539else case e in #( 14540 e) if test -n "$MANIFEST_TOOL"; then 14541 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14542else 14543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14544for as_dir in $PATH 14545do 14546 IFS=$as_save_IFS 14547 case $as_dir in #((( 14548 '') as_dir=./ ;; 14549 */) ;; 14550 *) as_dir=$as_dir/ ;; 14551 esac 14552 for ac_exec_ext in '' $ac_executable_extensions; do 14553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14554 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14556 break 2 14557 fi 14558done 14559 done 14560IFS=$as_save_IFS 14561 14562fi ;; 14563esac 14564fi 14565MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14566if test -n "$MANIFEST_TOOL"; then 14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14568printf "%s\n" "$MANIFEST_TOOL" >&6; } 14569else 14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14571printf "%s\n" "no" >&6; } 14572fi 14573 14574 14575fi 14576if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14577 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14578 # Extract the first word of "mt", so it can be a program name with args. 14579set dummy mt; ac_word=$2 14580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14581printf %s "checking for $ac_word... " >&6; } 14582if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14583then : 14584 printf %s "(cached) " >&6 14585else case e in #( 14586 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 14587 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14588else 14589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14590for as_dir in $PATH 14591do 14592 IFS=$as_save_IFS 14593 case $as_dir in #((( 14594 '') as_dir=./ ;; 14595 */) ;; 14596 *) as_dir=$as_dir/ ;; 14597 esac 14598 for ac_exec_ext in '' $ac_executable_extensions; do 14599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14600 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14602 break 2 14603 fi 14604done 14605 done 14606IFS=$as_save_IFS 14607 14608fi ;; 14609esac 14610fi 14611ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14612if test -n "$ac_ct_MANIFEST_TOOL"; then 14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14614printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14615else 14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14617printf "%s\n" "no" >&6; } 14618fi 14619 14620 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14621 MANIFEST_TOOL=":" 14622 else 14623 case $cross_compiling:$ac_tool_warned in 14624yes:) 14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14626printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14627ac_tool_warned=yes ;; 14628esac 14629 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14630 fi 14631else 14632 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14633fi 14634 14635test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14637printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14638if test ${lt_cv_path_mainfest_tool+y} 14639then : 14640 printf %s "(cached) " >&6 14641else case e in #( 14642 e) lt_cv_path_mainfest_tool=no 14643 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14644 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14645 cat conftest.err >&5 14646 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14647 lt_cv_path_mainfest_tool=yes 14648 fi 14649 rm -f conftest* ;; 14650esac 14651fi 14652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14653printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14654if test yes != "$lt_cv_path_mainfest_tool"; then 14655 MANIFEST_TOOL=: 14656fi 14657 14658 14659 14660 14661 14662 14663 case $host_os in 14664 rhapsody* | darwin*) 14665 if test -n "$ac_tool_prefix"; then 14666 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14667set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14669printf %s "checking for $ac_word... " >&6; } 14670if test ${ac_cv_prog_DSYMUTIL+y} 14671then : 14672 printf %s "(cached) " >&6 14673else case e in #( 14674 e) if test -n "$DSYMUTIL"; then 14675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14676else 14677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14678for as_dir in $PATH 14679do 14680 IFS=$as_save_IFS 14681 case $as_dir in #((( 14682 '') as_dir=./ ;; 14683 */) ;; 14684 *) as_dir=$as_dir/ ;; 14685 esac 14686 for ac_exec_ext in '' $ac_executable_extensions; do 14687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14688 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14690 break 2 14691 fi 14692done 14693 done 14694IFS=$as_save_IFS 14695 14696fi ;; 14697esac 14698fi 14699DSYMUTIL=$ac_cv_prog_DSYMUTIL 14700if test -n "$DSYMUTIL"; then 14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14702printf "%s\n" "$DSYMUTIL" >&6; } 14703else 14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14705printf "%s\n" "no" >&6; } 14706fi 14707 14708 14709fi 14710if test -z "$ac_cv_prog_DSYMUTIL"; then 14711 ac_ct_DSYMUTIL=$DSYMUTIL 14712 # Extract the first word of "dsymutil", so it can be a program name with args. 14713set dummy dsymutil; ac_word=$2 14714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14715printf %s "checking for $ac_word... " >&6; } 14716if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14717then : 14718 printf %s "(cached) " >&6 14719else case e in #( 14720 e) if test -n "$ac_ct_DSYMUTIL"; then 14721 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14722else 14723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14724for as_dir in $PATH 14725do 14726 IFS=$as_save_IFS 14727 case $as_dir in #((( 14728 '') as_dir=./ ;; 14729 */) ;; 14730 *) as_dir=$as_dir/ ;; 14731 esac 14732 for ac_exec_ext in '' $ac_executable_extensions; do 14733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14736 break 2 14737 fi 14738done 14739 done 14740IFS=$as_save_IFS 14741 14742fi ;; 14743esac 14744fi 14745ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14746if test -n "$ac_ct_DSYMUTIL"; then 14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14748printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14749else 14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14751printf "%s\n" "no" >&6; } 14752fi 14753 14754 if test "x$ac_ct_DSYMUTIL" = x; then 14755 DSYMUTIL=":" 14756 else 14757 case $cross_compiling:$ac_tool_warned in 14758yes:) 14759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14760printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14761ac_tool_warned=yes ;; 14762esac 14763 DSYMUTIL=$ac_ct_DSYMUTIL 14764 fi 14765else 14766 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14767fi 14768 14769 if test -n "$ac_tool_prefix"; then 14770 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14771set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14773printf %s "checking for $ac_word... " >&6; } 14774if test ${ac_cv_prog_NMEDIT+y} 14775then : 14776 printf %s "(cached) " >&6 14777else case e in #( 14778 e) if test -n "$NMEDIT"; then 14779 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14780else 14781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14782for as_dir in $PATH 14783do 14784 IFS=$as_save_IFS 14785 case $as_dir in #((( 14786 '') as_dir=./ ;; 14787 */) ;; 14788 *) as_dir=$as_dir/ ;; 14789 esac 14790 for ac_exec_ext in '' $ac_executable_extensions; do 14791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14792 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14794 break 2 14795 fi 14796done 14797 done 14798IFS=$as_save_IFS 14799 14800fi ;; 14801esac 14802fi 14803NMEDIT=$ac_cv_prog_NMEDIT 14804if test -n "$NMEDIT"; then 14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14806printf "%s\n" "$NMEDIT" >&6; } 14807else 14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14809printf "%s\n" "no" >&6; } 14810fi 14811 14812 14813fi 14814if test -z "$ac_cv_prog_NMEDIT"; then 14815 ac_ct_NMEDIT=$NMEDIT 14816 # Extract the first word of "nmedit", so it can be a program name with args. 14817set dummy nmedit; ac_word=$2 14818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14819printf %s "checking for $ac_word... " >&6; } 14820if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14821then : 14822 printf %s "(cached) " >&6 14823else case e in #( 14824 e) if test -n "$ac_ct_NMEDIT"; then 14825 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14826else 14827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14828for as_dir in $PATH 14829do 14830 IFS=$as_save_IFS 14831 case $as_dir in #((( 14832 '') as_dir=./ ;; 14833 */) ;; 14834 *) as_dir=$as_dir/ ;; 14835 esac 14836 for ac_exec_ext in '' $ac_executable_extensions; do 14837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14838 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14840 break 2 14841 fi 14842done 14843 done 14844IFS=$as_save_IFS 14845 14846fi ;; 14847esac 14848fi 14849ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14850if test -n "$ac_ct_NMEDIT"; then 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14852printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14853else 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14855printf "%s\n" "no" >&6; } 14856fi 14857 14858 if test "x$ac_ct_NMEDIT" = x; then 14859 NMEDIT=":" 14860 else 14861 case $cross_compiling:$ac_tool_warned in 14862yes:) 14863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14864printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14865ac_tool_warned=yes ;; 14866esac 14867 NMEDIT=$ac_ct_NMEDIT 14868 fi 14869else 14870 NMEDIT="$ac_cv_prog_NMEDIT" 14871fi 14872 14873 if test -n "$ac_tool_prefix"; then 14874 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14875set dummy ${ac_tool_prefix}lipo; ac_word=$2 14876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14877printf %s "checking for $ac_word... " >&6; } 14878if test ${ac_cv_prog_LIPO+y} 14879then : 14880 printf %s "(cached) " >&6 14881else case e in #( 14882 e) if test -n "$LIPO"; then 14883 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14884else 14885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14886for as_dir in $PATH 14887do 14888 IFS=$as_save_IFS 14889 case $as_dir in #((( 14890 '') as_dir=./ ;; 14891 */) ;; 14892 *) as_dir=$as_dir/ ;; 14893 esac 14894 for ac_exec_ext in '' $ac_executable_extensions; do 14895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14896 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14898 break 2 14899 fi 14900done 14901 done 14902IFS=$as_save_IFS 14903 14904fi ;; 14905esac 14906fi 14907LIPO=$ac_cv_prog_LIPO 14908if test -n "$LIPO"; then 14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14910printf "%s\n" "$LIPO" >&6; } 14911else 14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14913printf "%s\n" "no" >&6; } 14914fi 14915 14916 14917fi 14918if test -z "$ac_cv_prog_LIPO"; then 14919 ac_ct_LIPO=$LIPO 14920 # Extract the first word of "lipo", so it can be a program name with args. 14921set dummy lipo; ac_word=$2 14922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14923printf %s "checking for $ac_word... " >&6; } 14924if test ${ac_cv_prog_ac_ct_LIPO+y} 14925then : 14926 printf %s "(cached) " >&6 14927else case e in #( 14928 e) if test -n "$ac_ct_LIPO"; then 14929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14930else 14931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14932for as_dir in $PATH 14933do 14934 IFS=$as_save_IFS 14935 case $as_dir in #((( 14936 '') as_dir=./ ;; 14937 */) ;; 14938 *) as_dir=$as_dir/ ;; 14939 esac 14940 for ac_exec_ext in '' $ac_executable_extensions; do 14941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14942 ac_cv_prog_ac_ct_LIPO="lipo" 14943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14944 break 2 14945 fi 14946done 14947 done 14948IFS=$as_save_IFS 14949 14950fi ;; 14951esac 14952fi 14953ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14954if test -n "$ac_ct_LIPO"; then 14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14956printf "%s\n" "$ac_ct_LIPO" >&6; } 14957else 14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14959printf "%s\n" "no" >&6; } 14960fi 14961 14962 if test "x$ac_ct_LIPO" = x; then 14963 LIPO=":" 14964 else 14965 case $cross_compiling:$ac_tool_warned in 14966yes:) 14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14969ac_tool_warned=yes ;; 14970esac 14971 LIPO=$ac_ct_LIPO 14972 fi 14973else 14974 LIPO="$ac_cv_prog_LIPO" 14975fi 14976 14977 if test -n "$ac_tool_prefix"; then 14978 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14979set dummy ${ac_tool_prefix}otool; ac_word=$2 14980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14981printf %s "checking for $ac_word... " >&6; } 14982if test ${ac_cv_prog_OTOOL+y} 14983then : 14984 printf %s "(cached) " >&6 14985else case e in #( 14986 e) if test -n "$OTOOL"; then 14987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14988else 14989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14990for as_dir in $PATH 14991do 14992 IFS=$as_save_IFS 14993 case $as_dir in #((( 14994 '') as_dir=./ ;; 14995 */) ;; 14996 *) as_dir=$as_dir/ ;; 14997 esac 14998 for ac_exec_ext in '' $ac_executable_extensions; do 14999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15000 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15002 break 2 15003 fi 15004done 15005 done 15006IFS=$as_save_IFS 15007 15008fi ;; 15009esac 15010fi 15011OTOOL=$ac_cv_prog_OTOOL 15012if test -n "$OTOOL"; then 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15014printf "%s\n" "$OTOOL" >&6; } 15015else 15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15017printf "%s\n" "no" >&6; } 15018fi 15019 15020 15021fi 15022if test -z "$ac_cv_prog_OTOOL"; then 15023 ac_ct_OTOOL=$OTOOL 15024 # Extract the first word of "otool", so it can be a program name with args. 15025set dummy otool; ac_word=$2 15026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15027printf %s "checking for $ac_word... " >&6; } 15028if test ${ac_cv_prog_ac_ct_OTOOL+y} 15029then : 15030 printf %s "(cached) " >&6 15031else case e in #( 15032 e) if test -n "$ac_ct_OTOOL"; then 15033 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15034else 15035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15036for as_dir in $PATH 15037do 15038 IFS=$as_save_IFS 15039 case $as_dir in #((( 15040 '') as_dir=./ ;; 15041 */) ;; 15042 *) as_dir=$as_dir/ ;; 15043 esac 15044 for ac_exec_ext in '' $ac_executable_extensions; do 15045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15046 ac_cv_prog_ac_ct_OTOOL="otool" 15047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15048 break 2 15049 fi 15050done 15051 done 15052IFS=$as_save_IFS 15053 15054fi ;; 15055esac 15056fi 15057ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15058if test -n "$ac_ct_OTOOL"; then 15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15060printf "%s\n" "$ac_ct_OTOOL" >&6; } 15061else 15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15063printf "%s\n" "no" >&6; } 15064fi 15065 15066 if test "x$ac_ct_OTOOL" = x; then 15067 OTOOL=":" 15068 else 15069 case $cross_compiling:$ac_tool_warned in 15070yes:) 15071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15073ac_tool_warned=yes ;; 15074esac 15075 OTOOL=$ac_ct_OTOOL 15076 fi 15077else 15078 OTOOL="$ac_cv_prog_OTOOL" 15079fi 15080 15081 if test -n "$ac_tool_prefix"; then 15082 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15083set dummy ${ac_tool_prefix}otool64; ac_word=$2 15084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15085printf %s "checking for $ac_word... " >&6; } 15086if test ${ac_cv_prog_OTOOL64+y} 15087then : 15088 printf %s "(cached) " >&6 15089else case e in #( 15090 e) if test -n "$OTOOL64"; then 15091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15092else 15093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15094for as_dir in $PATH 15095do 15096 IFS=$as_save_IFS 15097 case $as_dir in #((( 15098 '') as_dir=./ ;; 15099 */) ;; 15100 *) as_dir=$as_dir/ ;; 15101 esac 15102 for ac_exec_ext in '' $ac_executable_extensions; do 15103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15104 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15106 break 2 15107 fi 15108done 15109 done 15110IFS=$as_save_IFS 15111 15112fi ;; 15113esac 15114fi 15115OTOOL64=$ac_cv_prog_OTOOL64 15116if test -n "$OTOOL64"; then 15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15118printf "%s\n" "$OTOOL64" >&6; } 15119else 15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15121printf "%s\n" "no" >&6; } 15122fi 15123 15124 15125fi 15126if test -z "$ac_cv_prog_OTOOL64"; then 15127 ac_ct_OTOOL64=$OTOOL64 15128 # Extract the first word of "otool64", so it can be a program name with args. 15129set dummy otool64; ac_word=$2 15130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15131printf %s "checking for $ac_word... " >&6; } 15132if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15133then : 15134 printf %s "(cached) " >&6 15135else case e in #( 15136 e) if test -n "$ac_ct_OTOOL64"; then 15137 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15138else 15139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15140for as_dir in $PATH 15141do 15142 IFS=$as_save_IFS 15143 case $as_dir in #((( 15144 '') as_dir=./ ;; 15145 */) ;; 15146 *) as_dir=$as_dir/ ;; 15147 esac 15148 for ac_exec_ext in '' $ac_executable_extensions; do 15149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15150 ac_cv_prog_ac_ct_OTOOL64="otool64" 15151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15152 break 2 15153 fi 15154done 15155 done 15156IFS=$as_save_IFS 15157 15158fi ;; 15159esac 15160fi 15161ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15162if test -n "$ac_ct_OTOOL64"; then 15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15164printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15165else 15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15167printf "%s\n" "no" >&6; } 15168fi 15169 15170 if test "x$ac_ct_OTOOL64" = x; then 15171 OTOOL64=":" 15172 else 15173 case $cross_compiling:$ac_tool_warned in 15174yes:) 15175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15177ac_tool_warned=yes ;; 15178esac 15179 OTOOL64=$ac_ct_OTOOL64 15180 fi 15181else 15182 OTOOL64="$ac_cv_prog_OTOOL64" 15183fi 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15212printf %s "checking for -single_module linker flag... " >&6; } 15213if test ${lt_cv_apple_cc_single_mod+y} 15214then : 15215 printf %s "(cached) " >&6 15216else case e in #( 15217 e) lt_cv_apple_cc_single_mod=no 15218 if test -z "$LT_MULTI_MODULE"; then 15219 # By default we will add the -single_module flag. You can override 15220 # by either setting the environment variable LT_MULTI_MODULE 15221 # non-empty at configure time, or by adding -multi_module to the 15222 # link flags. 15223 rm -rf libconftest.dylib* 15224 echo "int foo(void){return 1;}" > conftest.c 15225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15226-dynamiclib -Wl,-single_module conftest.c" >&5 15227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15229 _lt_result=$? 15230 # If there is a non-empty error log, and "single_module" 15231 # appears in it, assume the flag caused a linker warning 15232 if test -s conftest.err && $GREP single_module conftest.err; then 15233 cat conftest.err >&5 15234 # Otherwise, if the output was created with a 0 exit code from 15235 # the compiler, it worked. 15236 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15237 lt_cv_apple_cc_single_mod=yes 15238 else 15239 cat conftest.err >&5 15240 fi 15241 rm -rf libconftest.dylib* 15242 rm -f conftest.* 15243 fi ;; 15244esac 15245fi 15246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15247printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15248 15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15250printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15251if test ${lt_cv_ld_exported_symbols_list+y} 15252then : 15253 printf %s "(cached) " >&6 15254else case e in #( 15255 e) lt_cv_ld_exported_symbols_list=no 15256 save_LDFLAGS=$LDFLAGS 15257 echo "_main" > conftest.sym 15258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260/* end confdefs.h. */ 15261 15262int 15263main (void) 15264{ 15265 15266 ; 15267 return 0; 15268} 15269_ACEOF 15270if ac_fn_c_try_link "$LINENO" 15271then : 15272 lt_cv_ld_exported_symbols_list=yes 15273else case e in #( 15274 e) lt_cv_ld_exported_symbols_list=no ;; 15275esac 15276fi 15277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15278 conftest$ac_exeext conftest.$ac_ext 15279 LDFLAGS=$save_LDFLAGS 15280 ;; 15281esac 15282fi 15283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15284printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15285 15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15287printf %s "checking for -force_load linker flag... " >&6; } 15288if test ${lt_cv_ld_force_load+y} 15289then : 15290 printf %s "(cached) " >&6 15291else case e in #( 15292 e) lt_cv_ld_force_load=no 15293 cat > conftest.c << _LT_EOF 15294int forced_loaded() { return 2;} 15295_LT_EOF 15296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15298 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15299 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15300 echo "$RANLIB libconftest.a" >&5 15301 $RANLIB libconftest.a 2>&5 15302 cat > conftest.c << _LT_EOF 15303int main() { return 0;} 15304_LT_EOF 15305 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15306 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15307 _lt_result=$? 15308 if test -s conftest.err && $GREP force_load conftest.err; then 15309 cat conftest.err >&5 15310 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15311 lt_cv_ld_force_load=yes 15312 else 15313 cat conftest.err >&5 15314 fi 15315 rm -f conftest.err libconftest.a conftest conftest.c 15316 rm -rf conftest.dSYM 15317 ;; 15318esac 15319fi 15320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15321printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15322 case $host_os in 15323 rhapsody* | darwin1.[012]) 15324 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15325 darwin1.*) 15326 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15327 darwin*) 15328 case $MACOSX_DEPLOYMENT_TARGET,$host in 15329 10.[012],*|,*powerpc*-darwin[5-8]*) 15330 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15331 *) 15332 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15333 esac 15334 ;; 15335 esac 15336 if test yes = "$lt_cv_apple_cc_single_mod"; then 15337 _lt_dar_single_mod='$single_module' 15338 fi 15339 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15340 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15341 else 15342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15343 fi 15344 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15345 _lt_dsymutil='~$DSYMUTIL $lib || :' 15346 else 15347 _lt_dsymutil= 15348 fi 15349 ;; 15350 esac 15351 15352# func_munge_path_list VARIABLE PATH 15353# ----------------------------------- 15354# VARIABLE is name of variable containing _space_ separated list of 15355# directories to be munged by the contents of PATH, which is string 15356# having a format: 15357# "DIR[:DIR]:" 15358# string "DIR[ DIR]" will be prepended to VARIABLE 15359# ":DIR[:DIR]" 15360# string "DIR[ DIR]" will be appended to VARIABLE 15361# "DIRP[:DIRP]::[DIRA:]DIRA" 15362# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15363# "DIRA[ DIRA]" will be appended to VARIABLE 15364# "DIR[:DIR]" 15365# VARIABLE will be replaced by "DIR[ DIR]" 15366func_munge_path_list () 15367{ 15368 case x$2 in 15369 x) 15370 ;; 15371 *:) 15372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15373 ;; 15374 x:*) 15375 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15376 ;; 15377 *::*) 15378 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15379 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15380 ;; 15381 *) 15382 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15383 ;; 15384 esac 15385} 15386 15387ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15388" 15389if test "x$ac_cv_header_dlfcn_h" = xyes 15390then : 15391 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15392 15393fi 15394 15395 15396 15397 15398 15399# Set options 15400# Check whether --enable-static was given. 15401if test ${enable_static+y} 15402then : 15403 enableval=$enable_static; p=${PACKAGE-default} 15404 case $enableval in 15405 yes) enable_static=yes ;; 15406 no) enable_static=no ;; 15407 *) 15408 enable_static=no 15409 # Look at the argument we got. We use all the common list separators. 15410 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15411 for pkg in $enableval; do 15412 IFS=$lt_save_ifs 15413 if test "X$pkg" = "X$p"; then 15414 enable_static=yes 15415 fi 15416 done 15417 IFS=$lt_save_ifs 15418 ;; 15419 esac 15420else case e in #( 15421 e) enable_static=no ;; 15422esac 15423fi 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 enable_dlopen=no 15435 15436 15437 enable_win32_dll=no 15438 15439 15440 # Check whether --enable-shared was given. 15441if test ${enable_shared+y} 15442then : 15443 enableval=$enable_shared; p=${PACKAGE-default} 15444 case $enableval in 15445 yes) enable_shared=yes ;; 15446 no) enable_shared=no ;; 15447 *) 15448 enable_shared=no 15449 # Look at the argument we got. We use all the common list separators. 15450 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15451 for pkg in $enableval; do 15452 IFS=$lt_save_ifs 15453 if test "X$pkg" = "X$p"; then 15454 enable_shared=yes 15455 fi 15456 done 15457 IFS=$lt_save_ifs 15458 ;; 15459 esac 15460else case e in #( 15461 e) enable_shared=yes ;; 15462esac 15463fi 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475# Check whether --with-pic was given. 15476if test ${with_pic+y} 15477then : 15478 withval=$with_pic; lt_p=${PACKAGE-default} 15479 case $withval in 15480 yes|no) pic_mode=$withval ;; 15481 *) 15482 pic_mode=default 15483 # Look at the argument we got. We use all the common list separators. 15484 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15485 for lt_pkg in $withval; do 15486 IFS=$lt_save_ifs 15487 if test "X$lt_pkg" = "X$lt_p"; then 15488 pic_mode=yes 15489 fi 15490 done 15491 IFS=$lt_save_ifs 15492 ;; 15493 esac 15494else case e in #( 15495 e) pic_mode=default ;; 15496esac 15497fi 15498 15499 15500 15501 15502 15503 15504 15505 15506 # Check whether --enable-fast-install was given. 15507if test ${enable_fast_install+y} 15508then : 15509 enableval=$enable_fast_install; p=${PACKAGE-default} 15510 case $enableval in 15511 yes) enable_fast_install=yes ;; 15512 no) enable_fast_install=no ;; 15513 *) 15514 enable_fast_install=no 15515 # Look at the argument we got. We use all the common list separators. 15516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15517 for pkg in $enableval; do 15518 IFS=$lt_save_ifs 15519 if test "X$pkg" = "X$p"; then 15520 enable_fast_install=yes 15521 fi 15522 done 15523 IFS=$lt_save_ifs 15524 ;; 15525 esac 15526else case e in #( 15527 e) enable_fast_install=yes ;; 15528esac 15529fi 15530 15531 15532 15533 15534 15535 15536 15537 15538 shared_archive_member_spec= 15539case $host,$enable_shared in 15540power*-*-aix[5-9]*,yes) 15541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15542printf %s "checking which variant of shared library versioning to provide... " >&6; } 15543 15544# Check whether --with-aix-soname was given. 15545if test ${with_aix_soname+y} 15546then : 15547 withval=$with_aix_soname; case $withval in 15548 aix|svr4|both) 15549 ;; 15550 *) 15551 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15552 ;; 15553 esac 15554 lt_cv_with_aix_soname=$with_aix_soname 15555else case e in #( 15556 e) if test ${lt_cv_with_aix_soname+y} 15557then : 15558 printf %s "(cached) " >&6 15559else case e in #( 15560 e) lt_cv_with_aix_soname=aix ;; 15561esac 15562fi 15563 15564 with_aix_soname=$lt_cv_with_aix_soname ;; 15565esac 15566fi 15567 15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15569printf "%s\n" "$with_aix_soname" >&6; } 15570 if test aix != "$with_aix_soname"; then 15571 # For the AIX way of multilib, we name the shared archive member 15572 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15573 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15574 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15575 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15576 if test 64 = "${OBJECT_MODE-32}"; then 15577 shared_archive_member_spec=shr_64 15578 else 15579 shared_archive_member_spec=shr 15580 fi 15581 fi 15582 ;; 15583*) 15584 with_aix_soname=aix 15585 ;; 15586esac 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597# This can be used to rebuild libtool when needed 15598LIBTOOL_DEPS=$ltmain 15599 15600# Always use our own libtool. 15601LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632test -z "$LN_S" && LN_S="ln -s" 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647if test -n "${ZSH_VERSION+set}"; then 15648 setopt NO_GLOB_SUBST 15649fi 15650 15651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15652printf %s "checking for objdir... " >&6; } 15653if test ${lt_cv_objdir+y} 15654then : 15655 printf %s "(cached) " >&6 15656else case e in #( 15657 e) rm -f .libs 2>/dev/null 15658mkdir .libs 2>/dev/null 15659if test -d .libs; then 15660 lt_cv_objdir=.libs 15661else 15662 # MS-DOS does not allow filenames that begin with a dot. 15663 lt_cv_objdir=_libs 15664fi 15665rmdir .libs 2>/dev/null ;; 15666esac 15667fi 15668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15669printf "%s\n" "$lt_cv_objdir" >&6; } 15670objdir=$lt_cv_objdir 15671 15672 15673 15674 15675 15676printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15677 15678 15679 15680 15681case $host_os in 15682aix3*) 15683 # AIX sometimes has problems with the GCC collect2 program. For some 15684 # reason, if we set the COLLECT_NAMES environment variable, the problems 15685 # vanish in a puff of smoke. 15686 if test set != "${COLLECT_NAMES+set}"; then 15687 COLLECT_NAMES= 15688 export COLLECT_NAMES 15689 fi 15690 ;; 15691esac 15692 15693# Global variables: 15694ofile=libtool 15695can_build_shared=yes 15696 15697# All known linkers require a '.a' archive for static linking (except MSVC and 15698# ICC, which need '.lib'). 15699libext=a 15700 15701with_gnu_ld=$lt_cv_prog_gnu_ld 15702 15703old_CC=$CC 15704old_CFLAGS=$CFLAGS 15705 15706# Set sane defaults for various variables 15707test -z "$CC" && CC=cc 15708test -z "$LTCC" && LTCC=$CC 15709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15710test -z "$LD" && LD=ld 15711test -z "$ac_objext" && ac_objext=o 15712 15713func_cc_basename $compiler 15714cc_basename=$func_cc_basename_result 15715 15716 15717# Only perform the check for file, if the check method requires it 15718test -z "$MAGIC_CMD" && MAGIC_CMD=file 15719case $deplibs_check_method in 15720file_magic*) 15721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15723printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15724if test ${lt_cv_path_MAGIC_CMD+y} 15725then : 15726 printf %s "(cached) " >&6 15727else case e in #( 15728 e) case $MAGIC_CMD in 15729[\\/*] | ?:[\\/]*) 15730 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15731 ;; 15732*) 15733 lt_save_MAGIC_CMD=$MAGIC_CMD 15734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15736 for ac_dir in $ac_dummy; do 15737 IFS=$lt_save_ifs 15738 test -z "$ac_dir" && ac_dir=. 15739 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15740 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15741 if test -n "$file_magic_test_file"; then 15742 case $deplibs_check_method in 15743 "file_magic "*) 15744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15745 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15747 $EGREP "$file_magic_regex" > /dev/null; then 15748 : 15749 else 15750 cat <<_LT_EOF 1>&2 15751 15752*** Warning: the command libtool uses to detect shared libraries, 15753*** $file_magic_cmd, produces output that libtool cannot recognize. 15754*** The result is that libtool may fail to recognize shared libraries 15755*** as such. This will affect the creation of libtool libraries that 15756*** depend on shared libraries, but programs linked with such libtool 15757*** libraries will work regardless of this problem. Nevertheless, you 15758*** may want to report the problem to your system manager and/or to 15759*** bug-libtool@gnu.org 15760 15761_LT_EOF 15762 fi ;; 15763 esac 15764 fi 15765 break 15766 fi 15767 done 15768 IFS=$lt_save_ifs 15769 MAGIC_CMD=$lt_save_MAGIC_CMD 15770 ;; 15771esac ;; 15772esac 15773fi 15774 15775MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15776if test -n "$MAGIC_CMD"; then 15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15778printf "%s\n" "$MAGIC_CMD" >&6; } 15779else 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15781printf "%s\n" "no" >&6; } 15782fi 15783 15784 15785 15786 15787 15788if test -z "$lt_cv_path_MAGIC_CMD"; then 15789 if test -n "$ac_tool_prefix"; then 15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15791printf %s "checking for file... " >&6; } 15792if test ${lt_cv_path_MAGIC_CMD+y} 15793then : 15794 printf %s "(cached) " >&6 15795else case e in #( 15796 e) case $MAGIC_CMD in 15797[\\/*] | ?:[\\/]*) 15798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15799 ;; 15800*) 15801 lt_save_MAGIC_CMD=$MAGIC_CMD 15802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15804 for ac_dir in $ac_dummy; do 15805 IFS=$lt_save_ifs 15806 test -z "$ac_dir" && ac_dir=. 15807 if test -f "$ac_dir/file"; then 15808 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15809 if test -n "$file_magic_test_file"; then 15810 case $deplibs_check_method in 15811 "file_magic "*) 15812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15815 $EGREP "$file_magic_regex" > /dev/null; then 15816 : 15817 else 15818 cat <<_LT_EOF 1>&2 15819 15820*** Warning: the command libtool uses to detect shared libraries, 15821*** $file_magic_cmd, produces output that libtool cannot recognize. 15822*** The result is that libtool may fail to recognize shared libraries 15823*** as such. This will affect the creation of libtool libraries that 15824*** depend on shared libraries, but programs linked with such libtool 15825*** libraries will work regardless of this problem. Nevertheless, you 15826*** may want to report the problem to your system manager and/or to 15827*** bug-libtool@gnu.org 15828 15829_LT_EOF 15830 fi ;; 15831 esac 15832 fi 15833 break 15834 fi 15835 done 15836 IFS=$lt_save_ifs 15837 MAGIC_CMD=$lt_save_MAGIC_CMD 15838 ;; 15839esac ;; 15840esac 15841fi 15842 15843MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15844if test -n "$MAGIC_CMD"; then 15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15846printf "%s\n" "$MAGIC_CMD" >&6; } 15847else 15848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15849printf "%s\n" "no" >&6; } 15850fi 15851 15852 15853 else 15854 MAGIC_CMD=: 15855 fi 15856fi 15857 15858 fi 15859 ;; 15860esac 15861 15862# Use C for the default configuration in the libtool script 15863 15864lt_save_CC=$CC 15865ac_ext=c 15866ac_cpp='$CPP $CPPFLAGS' 15867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15869ac_compiler_gnu=$ac_cv_c_compiler_gnu 15870 15871 15872# Source file extension for C test sources. 15873ac_ext=c 15874 15875# Object file extension for compiled C test sources. 15876objext=o 15877objext=$objext 15878 15879# Code to be used in simple compile tests 15880lt_simple_compile_test_code="int some_variable = 0;" 15881 15882# Code to be used in simple link tests 15883lt_simple_link_test_code='int main(){return(0);}' 15884 15885 15886 15887 15888 15889 15890 15891# If no C compiler was specified, use CC. 15892LTCC=${LTCC-"$CC"} 15893 15894# If no C compiler flags were specified, use CFLAGS. 15895LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15896 15897# Allow CC to be a program name with arguments. 15898compiler=$CC 15899 15900# Save the default compiler, since it gets overwritten when the other 15901# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15902compiler_DEFAULT=$CC 15903 15904# save warnings/boilerplate of simple test code 15905ac_outfile=conftest.$ac_objext 15906echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15908_lt_compiler_boilerplate=`cat conftest.err` 15909$RM conftest* 15910 15911ac_outfile=conftest.$ac_objext 15912echo "$lt_simple_link_test_code" >conftest.$ac_ext 15913eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15914_lt_linker_boilerplate=`cat conftest.err` 15915$RM -r conftest* 15916 15917 15918if test -n "$compiler"; then 15919 15920lt_prog_compiler_no_builtin_flag= 15921 15922if test yes = "$GCC"; then 15923 case $cc_basename in 15924 nvcc*) 15925 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15926 *) 15927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15928 esac 15929 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15931printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15932if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15933then : 15934 printf %s "(cached) " >&6 15935else case e in #( 15936 e) lt_cv_prog_compiler_rtti_exceptions=no 15937 ac_outfile=conftest.$ac_objext 15938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15939 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15940 # Insert the option either (1) after the last *FLAGS variable, or 15941 # (2) before a word containing "conftest.", or (3) at the end. 15942 # Note that $ac_compile itself does not contain backslashes and begins 15943 # with a dollar sign (not a hyphen), so the echo should work correctly. 15944 # The option is referenced via a variable to avoid confusing sed. 15945 lt_compile=`echo "$ac_compile" | $SED \ 15946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15948 -e 's:$: $lt_compiler_flag:'` 15949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15950 (eval "$lt_compile" 2>conftest.err) 15951 ac_status=$? 15952 cat conftest.err >&5 15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15954 if (exit $ac_status) && test -s "$ac_outfile"; then 15955 # The compiler can only warn and ignore the option if not recognized 15956 # So say no if there are warnings other than the usual output. 15957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15960 lt_cv_prog_compiler_rtti_exceptions=yes 15961 fi 15962 fi 15963 $RM conftest* 15964 ;; 15965esac 15966fi 15967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15968printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15969 15970if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15972else 15973 : 15974fi 15975 15976fi 15977 15978 15979 15980 15981 15982 15983 lt_prog_compiler_wl= 15984lt_prog_compiler_pic= 15985lt_prog_compiler_static= 15986 15987 15988 if test yes = "$GCC"; then 15989 lt_prog_compiler_wl='-Wl,' 15990 lt_prog_compiler_static='-static' 15991 15992 case $host_os in 15993 aix*) 15994 # All AIX code is PIC. 15995 if test ia64 = "$host_cpu"; then 15996 # AIX 5 now supports IA64 processor 15997 lt_prog_compiler_static='-Bstatic' 15998 fi 15999 lt_prog_compiler_pic='-fPIC' 16000 ;; 16001 16002 amigaos*) 16003 case $host_cpu in 16004 powerpc) 16005 # see comment about AmigaOS4 .so support 16006 lt_prog_compiler_pic='-fPIC' 16007 ;; 16008 m68k) 16009 # FIXME: we need at least 68020 code to build shared libraries, but 16010 # adding the '-m68020' flag to GCC prevents building anything better, 16011 # like '-m68040'. 16012 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16013 ;; 16014 esac 16015 ;; 16016 16017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16018 # PIC is the default for these OSes. 16019 ;; 16020 16021 mingw* | cygwin* | pw32* | os2* | cegcc*) 16022 # This hack is so that the source file can tell whether it is being 16023 # built for inclusion in a dll (and should export symbols for example). 16024 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16025 # (--disable-auto-import) libraries 16026 lt_prog_compiler_pic='-DDLL_EXPORT' 16027 case $host_os in 16028 os2*) 16029 lt_prog_compiler_static='$wl-static' 16030 ;; 16031 esac 16032 ;; 16033 16034 darwin* | rhapsody*) 16035 # PIC is the default on this platform 16036 # Common symbols not allowed in MH_DYLIB files 16037 lt_prog_compiler_pic='-fno-common' 16038 ;; 16039 16040 haiku*) 16041 # PIC is the default for Haiku. 16042 # The "-static" flag exists, but is broken. 16043 lt_prog_compiler_static= 16044 ;; 16045 16046 hpux*) 16047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16049 # sets the default TLS model and affects inlining. 16050 case $host_cpu in 16051 hppa*64*) 16052 # +Z the default 16053 ;; 16054 *) 16055 lt_prog_compiler_pic='-fPIC' 16056 ;; 16057 esac 16058 ;; 16059 16060 interix[3-9]*) 16061 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16062 # Instead, we relocate shared libraries at runtime. 16063 ;; 16064 16065 msdosdjgpp*) 16066 # Just because we use GCC doesn't mean we suddenly get shared libraries 16067 # on systems that don't support them. 16068 lt_prog_compiler_can_build_shared=no 16069 enable_shared=no 16070 ;; 16071 16072 *nto* | *qnx*) 16073 # QNX uses GNU C++, but need to define -shared option too, otherwise 16074 # it will coredump. 16075 lt_prog_compiler_pic='-fPIC -shared' 16076 ;; 16077 16078 sysv4*MP*) 16079 if test -d /usr/nec; then 16080 lt_prog_compiler_pic=-Kconform_pic 16081 fi 16082 ;; 16083 16084 *) 16085 lt_prog_compiler_pic='-fPIC' 16086 ;; 16087 esac 16088 16089 case $cc_basename in 16090 nvcc*) # Cuda Compiler Driver 2.2 16091 lt_prog_compiler_wl='-Xlinker ' 16092 if test -n "$lt_prog_compiler_pic"; then 16093 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16094 fi 16095 ;; 16096 esac 16097 else 16098 # PORTME Check for flag to pass linker flags through the system compiler. 16099 case $host_os in 16100 aix*) 16101 lt_prog_compiler_wl='-Wl,' 16102 if test ia64 = "$host_cpu"; then 16103 # AIX 5 now supports IA64 processor 16104 lt_prog_compiler_static='-Bstatic' 16105 else 16106 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16107 fi 16108 ;; 16109 16110 darwin* | rhapsody*) 16111 # PIC is the default on this platform 16112 # Common symbols not allowed in MH_DYLIB files 16113 lt_prog_compiler_pic='-fno-common' 16114 case $cc_basename in 16115 nagfor*) 16116 # NAG Fortran compiler 16117 lt_prog_compiler_wl='-Wl,-Wl,,' 16118 lt_prog_compiler_pic='-PIC' 16119 lt_prog_compiler_static='-Bstatic' 16120 ;; 16121 esac 16122 ;; 16123 16124 mingw* | cygwin* | pw32* | os2* | cegcc*) 16125 # This hack is so that the source file can tell whether it is being 16126 # built for inclusion in a dll (and should export symbols for example). 16127 lt_prog_compiler_pic='-DDLL_EXPORT' 16128 case $host_os in 16129 os2*) 16130 lt_prog_compiler_static='$wl-static' 16131 ;; 16132 esac 16133 ;; 16134 16135 hpux9* | hpux10* | hpux11*) 16136 lt_prog_compiler_wl='-Wl,' 16137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16138 # not for PA HP-UX. 16139 case $host_cpu in 16140 hppa*64*|ia64*) 16141 # +Z the default 16142 ;; 16143 *) 16144 lt_prog_compiler_pic='+Z' 16145 ;; 16146 esac 16147 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16148 lt_prog_compiler_static='$wl-a ${wl}archive' 16149 ;; 16150 16151 irix5* | irix6* | nonstopux*) 16152 lt_prog_compiler_wl='-Wl,' 16153 # PIC (with -KPIC) is the default. 16154 lt_prog_compiler_static='-non_shared' 16155 ;; 16156 16157 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16158 case $cc_basename in 16159 # old Intel for x86_64, which still supported -KPIC. 16160 ecc*) 16161 lt_prog_compiler_wl='-Wl,' 16162 lt_prog_compiler_pic='-KPIC' 16163 lt_prog_compiler_static='-static' 16164 ;; 16165 # icc used to be incompatible with GCC. 16166 # ICC 10 doesn't accept -KPIC any more. 16167 icc* | ifort*) 16168 lt_prog_compiler_wl='-Wl,' 16169 lt_prog_compiler_pic='-fPIC' 16170 lt_prog_compiler_static='-static' 16171 ;; 16172 # Lahey Fortran 8.1. 16173 lf95*) 16174 lt_prog_compiler_wl='-Wl,' 16175 lt_prog_compiler_pic='--shared' 16176 lt_prog_compiler_static='--static' 16177 ;; 16178 nagfor*) 16179 # NAG Fortran compiler 16180 lt_prog_compiler_wl='-Wl,-Wl,,' 16181 lt_prog_compiler_pic='-PIC' 16182 lt_prog_compiler_static='-Bstatic' 16183 ;; 16184 tcc*) 16185 # Fabrice Bellard et al's Tiny C Compiler 16186 lt_prog_compiler_wl='-Wl,' 16187 lt_prog_compiler_pic='-fPIC' 16188 lt_prog_compiler_static='-static' 16189 ;; 16190 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16191 # Portland Group compilers (*not* the Pentium gcc compiler, 16192 # which looks to be a dead project) 16193 lt_prog_compiler_wl='-Wl,' 16194 lt_prog_compiler_pic='-fpic' 16195 lt_prog_compiler_static='-Bstatic' 16196 ;; 16197 ccc*) 16198 lt_prog_compiler_wl='-Wl,' 16199 # All Alpha code is PIC. 16200 lt_prog_compiler_static='-non_shared' 16201 ;; 16202 xl* | bgxl* | bgf* | mpixl*) 16203 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16204 lt_prog_compiler_wl='-Wl,' 16205 lt_prog_compiler_pic='-qpic' 16206 lt_prog_compiler_static='-qstaticlink' 16207 ;; 16208 *) 16209 case `$CC -V 2>&1 | $SED 5q` in 16210 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16211 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16212 lt_prog_compiler_pic='-KPIC' 16213 lt_prog_compiler_static='-Bstatic' 16214 lt_prog_compiler_wl='' 16215 ;; 16216 *Sun\ F* | *Sun*Fortran*) 16217 lt_prog_compiler_pic='-KPIC' 16218 lt_prog_compiler_static='-Bstatic' 16219 lt_prog_compiler_wl='-Qoption ld ' 16220 ;; 16221 *Sun\ C*) 16222 # Sun C 5.9 16223 lt_prog_compiler_pic='-KPIC' 16224 lt_prog_compiler_static='-Bstatic' 16225 lt_prog_compiler_wl='-Wl,' 16226 ;; 16227 *Intel*\ [CF]*Compiler*) 16228 lt_prog_compiler_wl='-Wl,' 16229 lt_prog_compiler_pic='-fPIC' 16230 lt_prog_compiler_static='-static' 16231 ;; 16232 *Portland\ Group*) 16233 lt_prog_compiler_wl='-Wl,' 16234 lt_prog_compiler_pic='-fpic' 16235 lt_prog_compiler_static='-Bstatic' 16236 ;; 16237 esac 16238 ;; 16239 esac 16240 ;; 16241 16242 newsos6) 16243 lt_prog_compiler_pic='-KPIC' 16244 lt_prog_compiler_static='-Bstatic' 16245 ;; 16246 16247 *nto* | *qnx*) 16248 # QNX uses GNU C++, but need to define -shared option too, otherwise 16249 # it will coredump. 16250 lt_prog_compiler_pic='-fPIC -shared' 16251 ;; 16252 16253 osf3* | osf4* | osf5*) 16254 lt_prog_compiler_wl='-Wl,' 16255 # All OSF/1 code is PIC. 16256 lt_prog_compiler_static='-non_shared' 16257 ;; 16258 16259 rdos*) 16260 lt_prog_compiler_static='-non_shared' 16261 ;; 16262 16263 solaris*) 16264 lt_prog_compiler_pic='-KPIC' 16265 lt_prog_compiler_static='-Bstatic' 16266 case $cc_basename in 16267 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16268 lt_prog_compiler_wl='-Qoption ld ';; 16269 *) 16270 lt_prog_compiler_wl='-Wl,';; 16271 esac 16272 ;; 16273 16274 sunos4*) 16275 lt_prog_compiler_wl='-Qoption ld ' 16276 lt_prog_compiler_pic='-PIC' 16277 lt_prog_compiler_static='-Bstatic' 16278 ;; 16279 16280 sysv4 | sysv4.2uw2* | sysv4.3*) 16281 lt_prog_compiler_wl='-Wl,' 16282 lt_prog_compiler_pic='-KPIC' 16283 lt_prog_compiler_static='-Bstatic' 16284 ;; 16285 16286 sysv4*MP*) 16287 if test -d /usr/nec; then 16288 lt_prog_compiler_pic='-Kconform_pic' 16289 lt_prog_compiler_static='-Bstatic' 16290 fi 16291 ;; 16292 16293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16294 lt_prog_compiler_wl='-Wl,' 16295 lt_prog_compiler_pic='-KPIC' 16296 lt_prog_compiler_static='-Bstatic' 16297 ;; 16298 16299 unicos*) 16300 lt_prog_compiler_wl='-Wl,' 16301 lt_prog_compiler_can_build_shared=no 16302 ;; 16303 16304 uts4*) 16305 lt_prog_compiler_pic='-pic' 16306 lt_prog_compiler_static='-Bstatic' 16307 ;; 16308 16309 *) 16310 lt_prog_compiler_can_build_shared=no 16311 ;; 16312 esac 16313 fi 16314 16315case $host_os in 16316 # For platforms that do not support PIC, -DPIC is meaningless: 16317 *djgpp*) 16318 lt_prog_compiler_pic= 16319 ;; 16320 *) 16321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16322 ;; 16323esac 16324 16325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16326printf %s "checking for $compiler option to produce PIC... " >&6; } 16327if test ${lt_cv_prog_compiler_pic+y} 16328then : 16329 printf %s "(cached) " >&6 16330else case e in #( 16331 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16332esac 16333fi 16334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16335printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16336lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16337 16338# 16339# Check to make sure the PIC flag actually works. 16340# 16341if test -n "$lt_prog_compiler_pic"; then 16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16343printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16344if test ${lt_cv_prog_compiler_pic_works+y} 16345then : 16346 printf %s "(cached) " >&6 16347else case e in #( 16348 e) lt_cv_prog_compiler_pic_works=no 16349 ac_outfile=conftest.$ac_objext 16350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16352 # Insert the option either (1) after the last *FLAGS variable, or 16353 # (2) before a word containing "conftest.", or (3) at the end. 16354 # Note that $ac_compile itself does not contain backslashes and begins 16355 # with a dollar sign (not a hyphen), so the echo should work correctly. 16356 # The option is referenced via a variable to avoid confusing sed. 16357 lt_compile=`echo "$ac_compile" | $SED \ 16358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16360 -e 's:$: $lt_compiler_flag:'` 16361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16362 (eval "$lt_compile" 2>conftest.err) 16363 ac_status=$? 16364 cat conftest.err >&5 16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16366 if (exit $ac_status) && test -s "$ac_outfile"; then 16367 # The compiler can only warn and ignore the option if not recognized 16368 # So say no if there are warnings other than the usual output. 16369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16372 lt_cv_prog_compiler_pic_works=yes 16373 fi 16374 fi 16375 $RM conftest* 16376 ;; 16377esac 16378fi 16379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16380printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16381 16382if test yes = "$lt_cv_prog_compiler_pic_works"; then 16383 case $lt_prog_compiler_pic in 16384 "" | " "*) ;; 16385 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16386 esac 16387else 16388 lt_prog_compiler_pic= 16389 lt_prog_compiler_can_build_shared=no 16390fi 16391 16392fi 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404# 16405# Check to make sure the static flag actually works. 16406# 16407wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16409printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16410if test ${lt_cv_prog_compiler_static_works+y} 16411then : 16412 printf %s "(cached) " >&6 16413else case e in #( 16414 e) lt_cv_prog_compiler_static_works=no 16415 save_LDFLAGS=$LDFLAGS 16416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16417 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16419 # The linker can only warn and ignore the option if not recognized 16420 # So say no if there are warnings 16421 if test -s conftest.err; then 16422 # Append any errors to the config.log. 16423 cat conftest.err 1>&5 16424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16426 if diff conftest.exp conftest.er2 >/dev/null; then 16427 lt_cv_prog_compiler_static_works=yes 16428 fi 16429 else 16430 lt_cv_prog_compiler_static_works=yes 16431 fi 16432 fi 16433 $RM -r conftest* 16434 LDFLAGS=$save_LDFLAGS 16435 ;; 16436esac 16437fi 16438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16439printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16440 16441if test yes = "$lt_cv_prog_compiler_static_works"; then 16442 : 16443else 16444 lt_prog_compiler_static= 16445fi 16446 16447 16448 16449 16450 16451 16452 16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16454printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16455if test ${lt_cv_prog_compiler_c_o+y} 16456then : 16457 printf %s "(cached) " >&6 16458else case e in #( 16459 e) lt_cv_prog_compiler_c_o=no 16460 $RM -r conftest 2>/dev/null 16461 mkdir conftest 16462 cd conftest 16463 mkdir out 16464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16465 16466 lt_compiler_flag="-o out/conftest2.$ac_objext" 16467 # Insert the option either (1) after the last *FLAGS variable, or 16468 # (2) before a word containing "conftest.", or (3) at the end. 16469 # Note that $ac_compile itself does not contain backslashes and begins 16470 # with a dollar sign (not a hyphen), so the echo should work correctly. 16471 lt_compile=`echo "$ac_compile" | $SED \ 16472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16474 -e 's:$: $lt_compiler_flag:'` 16475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16476 (eval "$lt_compile" 2>out/conftest.err) 16477 ac_status=$? 16478 cat out/conftest.err >&5 16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16480 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16481 then 16482 # The compiler can only warn and ignore the option if not recognized 16483 # So say no if there are warnings 16484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16487 lt_cv_prog_compiler_c_o=yes 16488 fi 16489 fi 16490 chmod u+w . 2>&5 16491 $RM conftest* 16492 # SGI C++ compiler will create directory out/ii_files/ for 16493 # template instantiation 16494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16495 $RM out/* && rmdir out 16496 cd .. 16497 $RM -r conftest 16498 $RM conftest* 16499 ;; 16500esac 16501fi 16502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16503printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16504 16505 16506 16507 16508 16509 16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16511printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16512if test ${lt_cv_prog_compiler_c_o+y} 16513then : 16514 printf %s "(cached) " >&6 16515else case e in #( 16516 e) lt_cv_prog_compiler_c_o=no 16517 $RM -r conftest 2>/dev/null 16518 mkdir conftest 16519 cd conftest 16520 mkdir out 16521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16522 16523 lt_compiler_flag="-o out/conftest2.$ac_objext" 16524 # Insert the option either (1) after the last *FLAGS variable, or 16525 # (2) before a word containing "conftest.", or (3) at the end. 16526 # Note that $ac_compile itself does not contain backslashes and begins 16527 # with a dollar sign (not a hyphen), so the echo should work correctly. 16528 lt_compile=`echo "$ac_compile" | $SED \ 16529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16531 -e 's:$: $lt_compiler_flag:'` 16532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16533 (eval "$lt_compile" 2>out/conftest.err) 16534 ac_status=$? 16535 cat out/conftest.err >&5 16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16537 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16538 then 16539 # The compiler can only warn and ignore the option if not recognized 16540 # So say no if there are warnings 16541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16544 lt_cv_prog_compiler_c_o=yes 16545 fi 16546 fi 16547 chmod u+w . 2>&5 16548 $RM conftest* 16549 # SGI C++ compiler will create directory out/ii_files/ for 16550 # template instantiation 16551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16552 $RM out/* && rmdir out 16553 cd .. 16554 $RM -r conftest 16555 $RM conftest* 16556 ;; 16557esac 16558fi 16559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16560printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16561 16562 16563 16564 16565hard_links=nottested 16566if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16567 # do not overwrite the value of need_locks provided by the user 16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16569printf %s "checking if we can lock with hard links... " >&6; } 16570 hard_links=yes 16571 $RM conftest* 16572 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16573 touch conftest.a 16574 ln conftest.a conftest.b 2>&5 || hard_links=no 16575 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16577printf "%s\n" "$hard_links" >&6; } 16578 if test no = "$hard_links"; then 16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16580printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16581 need_locks=warn 16582 fi 16583else 16584 need_locks=no 16585fi 16586 16587 16588 16589 16590 16591 16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16593printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16594 16595 runpath_var= 16596 allow_undefined_flag= 16597 always_export_symbols=no 16598 archive_cmds= 16599 archive_expsym_cmds= 16600 compiler_needs_object=no 16601 enable_shared_with_static_runtimes=no 16602 export_dynamic_flag_spec= 16603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16604 hardcode_automatic=no 16605 hardcode_direct=no 16606 hardcode_direct_absolute=no 16607 hardcode_libdir_flag_spec= 16608 hardcode_libdir_separator= 16609 hardcode_minus_L=no 16610 hardcode_shlibpath_var=unsupported 16611 inherit_rpath=no 16612 link_all_deplibs=unknown 16613 module_cmds= 16614 module_expsym_cmds= 16615 old_archive_from_new_cmds= 16616 old_archive_from_expsyms_cmds= 16617 thread_safe_flag_spec= 16618 whole_archive_flag_spec= 16619 # include_expsyms should be a list of space-separated symbols to be *always* 16620 # included in the symbol list 16621 include_expsyms= 16622 # exclude_expsyms can be an extended regexp of symbols to exclude 16623 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16624 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16625 # as well as any symbol that contains 'd'. 16626 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16628 # platforms (ab)use it in PIC code, but their linkers get confused if 16629 # the symbol is explicitly referenced. Since portable code cannot 16630 # rely on this symbol name, it's probably fine to never include it in 16631 # preloaded symbol tables. 16632 # Exclude shared library initialization/finalization symbols. 16633 extract_expsyms_cmds= 16634 16635 case $host_os in 16636 cygwin* | mingw* | pw32* | cegcc*) 16637 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16638 # When not using gcc, we currently assume that we are using 16639 # Microsoft Visual C++ or Intel C++ Compiler. 16640 if test yes != "$GCC"; then 16641 with_gnu_ld=no 16642 fi 16643 ;; 16644 interix*) 16645 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16646 with_gnu_ld=yes 16647 ;; 16648 openbsd* | bitrig*) 16649 with_gnu_ld=no 16650 ;; 16651 esac 16652 16653 ld_shlibs=yes 16654 16655 # On some targets, GNU ld is compatible enough with the native linker 16656 # that we're better off using the native interface for both. 16657 lt_use_gnu_ld_interface=no 16658 if test yes = "$with_gnu_ld"; then 16659 case $host_os in 16660 aix*) 16661 # The AIX port of GNU ld has always aspired to compatibility 16662 # with the native linker. However, as the warning in the GNU ld 16663 # block says, versions before 2.19.5* couldn't really create working 16664 # shared libraries, regardless of the interface used. 16665 case `$LD -v 2>&1` in 16666 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16667 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16668 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16669 *) 16670 lt_use_gnu_ld_interface=yes 16671 ;; 16672 esac 16673 ;; 16674 *) 16675 lt_use_gnu_ld_interface=yes 16676 ;; 16677 esac 16678 fi 16679 16680 if test yes = "$lt_use_gnu_ld_interface"; then 16681 # If archive_cmds runs LD, not CC, wlarc should be empty 16682 wlarc='$wl' 16683 16684 # Set some defaults for GNU ld with shared library support. These 16685 # are reset later if shared libraries are not supported. Putting them 16686 # here allows them to be overridden if necessary. 16687 runpath_var=LD_RUN_PATH 16688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16689 export_dynamic_flag_spec='$wl--export-dynamic' 16690 # ancient GNU ld didn't support --whole-archive et. al. 16691 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16692 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16693 else 16694 whole_archive_flag_spec= 16695 fi 16696 supports_anon_versioning=no 16697 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16698 *GNU\ gold*) supports_anon_versioning=yes ;; 16699 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16702 *\ 2.11.*) ;; # other 2.11 versions 16703 *) supports_anon_versioning=yes ;; 16704 esac 16705 16706 # See if GNU ld supports shared libraries. 16707 case $host_os in 16708 aix[3-9]*) 16709 # On AIX/PPC, the GNU linker is very broken 16710 if test ia64 != "$host_cpu"; then 16711 ld_shlibs=no 16712 cat <<_LT_EOF 1>&2 16713 16714*** Warning: the GNU linker, at least up to release 2.19, is reported 16715*** to be unable to reliably create shared libraries on AIX. 16716*** Therefore, libtool is disabling shared libraries support. If you 16717*** really care for shared libraries, you may want to install binutils 16718*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16719*** You will then need to restart the configuration process. 16720 16721_LT_EOF 16722 fi 16723 ;; 16724 16725 amigaos*) 16726 case $host_cpu in 16727 powerpc) 16728 # see comment about AmigaOS4 .so support 16729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16730 archive_expsym_cmds='' 16731 ;; 16732 m68k) 16733 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)' 16734 hardcode_libdir_flag_spec='-L$libdir' 16735 hardcode_minus_L=yes 16736 ;; 16737 esac 16738 ;; 16739 16740 beos*) 16741 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16742 allow_undefined_flag=unsupported 16743 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16744 # support --undefined. This deserves some investigation. FIXME 16745 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16746 else 16747 ld_shlibs=no 16748 fi 16749 ;; 16750 16751 cygwin* | mingw* | pw32* | cegcc*) 16752 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16753 # as there is no search path for DLLs. 16754 hardcode_libdir_flag_spec='-L$libdir' 16755 export_dynamic_flag_spec='$wl--export-all-symbols' 16756 allow_undefined_flag=unsupported 16757 always_export_symbols=no 16758 enable_shared_with_static_runtimes=yes 16759 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' 16760 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16761 16762 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16764 # If the export-symbols file already is a .def file, use it as 16765 # is; otherwise, prepend EXPORTS... 16766 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16767 cp $export_symbols $output_objdir/$soname.def; 16768 else 16769 echo EXPORTS > $output_objdir/$soname.def; 16770 cat $export_symbols >> $output_objdir/$soname.def; 16771 fi~ 16772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16773 else 16774 ld_shlibs=no 16775 fi 16776 ;; 16777 16778 haiku*) 16779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16780 link_all_deplibs=yes 16781 ;; 16782 16783 os2*) 16784 hardcode_libdir_flag_spec='-L$libdir' 16785 hardcode_minus_L=yes 16786 allow_undefined_flag=unsupported 16787 shrext_cmds=.dll 16788 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16791 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16792 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16793 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16794 emximp -o $lib $output_objdir/$libname.def' 16795 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16796 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16797 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16798 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16799 prefix_cmds="$SED"~ 16800 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16801 prefix_cmds="$prefix_cmds -e 1d"; 16802 fi~ 16803 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16804 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16805 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16806 emximp -o $lib $output_objdir/$libname.def' 16807 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16808 enable_shared_with_static_runtimes=yes 16809 file_list_spec='@' 16810 ;; 16811 16812 interix[3-9]*) 16813 hardcode_direct=no 16814 hardcode_shlibpath_var=no 16815 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16816 export_dynamic_flag_spec='$wl-E' 16817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16818 # Instead, shared libraries are loaded at an image base (0x10000000 by 16819 # default) and relocated if they conflict, which is a slow very memory 16820 # consuming and fragmenting process. To avoid this, we pick a random, 16821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16822 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16824 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' 16825 ;; 16826 16827 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16828 tmp_diet=no 16829 if test linux-dietlibc = "$host_os"; then 16830 case $cc_basename in 16831 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16832 esac 16833 fi 16834 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16835 && test no = "$tmp_diet" 16836 then 16837 tmp_addflag=' $pic_flag' 16838 tmp_sharedflag='-shared' 16839 case $cc_basename,$host_cpu in 16840 pgcc*) # Portland Group C compiler 16841 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' 16842 tmp_addflag=' $pic_flag' 16843 ;; 16844 pgf77* | pgf90* | pgf95* | pgfortran*) 16845 # Portland Group f77 and f90 compilers 16846 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' 16847 tmp_addflag=' $pic_flag -Mnomain' ;; 16848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16849 tmp_addflag=' -i_dynamic' ;; 16850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16851 tmp_addflag=' -i_dynamic -nofor_main' ;; 16852 ifc* | ifort*) # Intel Fortran compiler 16853 tmp_addflag=' -nofor_main' ;; 16854 lf95*) # Lahey Fortran 8.1 16855 whole_archive_flag_spec= 16856 tmp_sharedflag='--shared' ;; 16857 nagfor*) # NAGFOR 5.3 16858 tmp_sharedflag='-Wl,-shared' ;; 16859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16860 tmp_sharedflag='-qmkshrobj' 16861 tmp_addflag= ;; 16862 nvcc*) # Cuda Compiler Driver 2.2 16863 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' 16864 compiler_needs_object=yes 16865 ;; 16866 esac 16867 case `$CC -V 2>&1 | $SED 5q` in 16868 *Sun\ C*) # Sun C 5.9 16869 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' 16870 compiler_needs_object=yes 16871 tmp_sharedflag='-G' ;; 16872 *Sun\ F*) # Sun Fortran 8.3 16873 tmp_sharedflag='-G' ;; 16874 esac 16875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16876 16877 if test yes = "$supports_anon_versioning"; then 16878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16879 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16880 echo "local: *; };" >> $output_objdir/$libname.ver~ 16881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16882 fi 16883 16884 case $cc_basename in 16885 tcc*) 16886 export_dynamic_flag_spec='-rdynamic' 16887 ;; 16888 xlf* | bgf* | bgxlf* | mpixlf*) 16889 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16890 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16892 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16893 if test yes = "$supports_anon_versioning"; then 16894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16895 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16896 echo "local: *; };" >> $output_objdir/$libname.ver~ 16897 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16898 fi 16899 ;; 16900 esac 16901 else 16902 ld_shlibs=no 16903 fi 16904 ;; 16905 16906 netbsd*) 16907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16909 wlarc= 16910 else 16911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16912 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16913 fi 16914 ;; 16915 16916 solaris*) 16917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16918 ld_shlibs=no 16919 cat <<_LT_EOF 1>&2 16920 16921*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16922*** create shared libraries on Solaris systems. Therefore, libtool 16923*** is disabling shared libraries support. We urge you to upgrade GNU 16924*** binutils to release 2.9.1 or newer. Another option is to modify 16925*** your PATH or compiler configuration so that the native linker is 16926*** used, and then restart. 16927 16928_LT_EOF 16929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16931 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16932 else 16933 ld_shlibs=no 16934 fi 16935 ;; 16936 16937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16938 case `$LD -v 2>&1` in 16939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16940 ld_shlibs=no 16941 cat <<_LT_EOF 1>&2 16942 16943*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16944*** reliably create shared libraries on SCO systems. Therefore, libtool 16945*** is disabling shared libraries support. We urge you to upgrade GNU 16946*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16947*** your PATH or compiler configuration so that the native linker is 16948*** used, and then restart. 16949 16950_LT_EOF 16951 ;; 16952 *) 16953 # For security reasons, it is highly recommended that you always 16954 # use absolute paths for naming shared libraries, and exclude the 16955 # DT_RUNPATH tag from executables and libraries. But doing so 16956 # requires that you compile everything twice, which is a pain. 16957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16961 else 16962 ld_shlibs=no 16963 fi 16964 ;; 16965 esac 16966 ;; 16967 16968 sunos4*) 16969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16970 wlarc= 16971 hardcode_direct=yes 16972 hardcode_shlibpath_var=no 16973 ;; 16974 16975 *) 16976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16977 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16978 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16979 else 16980 ld_shlibs=no 16981 fi 16982 ;; 16983 esac 16984 16985 if test no = "$ld_shlibs"; then 16986 runpath_var= 16987 hardcode_libdir_flag_spec= 16988 export_dynamic_flag_spec= 16989 whole_archive_flag_spec= 16990 fi 16991 else 16992 # PORTME fill in a description of your system's linker (not GNU ld) 16993 case $host_os in 16994 aix3*) 16995 allow_undefined_flag=unsupported 16996 always_export_symbols=yes 16997 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' 16998 # Note: this linker hardcodes the directories in LIBPATH if there 16999 # are no directories specified by -L. 17000 hardcode_minus_L=yes 17001 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17002 # Neither direct hardcoding nor static linking is supported with a 17003 # broken collect2. 17004 hardcode_direct=unsupported 17005 fi 17006 ;; 17007 17008 aix[4-9]*) 17009 if test ia64 = "$host_cpu"; then 17010 # On IA64, the linker does run time linking by default, so we don't 17011 # have to do anything special. 17012 aix_use_runtimelinking=no 17013 exp_sym_flag='-Bexport' 17014 no_entry_flag= 17015 else 17016 # If we're using GNU nm, then we don't want the "-C" option. 17017 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17018 # Without the "-l" option, or with the "-B" option, AIX nm treats 17019 # weak defined symbols like other global defined symbols, whereas 17020 # GNU nm marks them as "W". 17021 # While the 'weak' keyword is ignored in the Export File, we need 17022 # it in the Import File for the 'aix-soname' feature, so we have 17023 # to replace the "-B" option with "-P" for AIX nm. 17024 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17025 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' 17026 else 17027 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' 17028 fi 17029 aix_use_runtimelinking=no 17030 17031 # Test if we are trying to use run time linking or normal 17032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17033 # have runtime linking enabled, and use it for executables. 17034 # For shared libraries, we enable/disable runtime linking 17035 # depending on the kind of the shared library created - 17036 # when "with_aix_soname,aix_use_runtimelinking" is: 17037 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17038 # "aix,yes" lib.so shared, rtl:yes, for executables 17039 # lib.a static archive 17040 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17041 # lib.a(lib.so.V) shared, rtl:no, for executables 17042 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17043 # lib.a(lib.so.V) shared, rtl:no 17044 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17045 # lib.a static archive 17046 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17047 for ld_flag in $LDFLAGS; do 17048 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17049 aix_use_runtimelinking=yes 17050 break 17051 fi 17052 done 17053 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17054 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17055 # so we don't have lib.a shared libs to link our executables. 17056 # We have to force runtime linking in this case. 17057 aix_use_runtimelinking=yes 17058 LDFLAGS="$LDFLAGS -Wl,-brtl" 17059 fi 17060 ;; 17061 esac 17062 17063 exp_sym_flag='-bexport' 17064 no_entry_flag='-bnoentry' 17065 fi 17066 17067 # When large executables or shared objects are built, AIX ld can 17068 # have problems creating the table of contents. If linking a library 17069 # or program results in "error TOC overflow" add -mminimal-toc to 17070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17072 17073 archive_cmds='' 17074 hardcode_direct=yes 17075 hardcode_direct_absolute=yes 17076 hardcode_libdir_separator=':' 17077 link_all_deplibs=yes 17078 file_list_spec='$wl-f,' 17079 case $with_aix_soname,$aix_use_runtimelinking in 17080 aix,*) ;; # traditional, no import file 17081 svr4,* | *,yes) # use import file 17082 # The Import File defines what to hardcode. 17083 hardcode_direct=no 17084 hardcode_direct_absolute=no 17085 ;; 17086 esac 17087 17088 if test yes = "$GCC"; then 17089 case $host_os in aix4.[012]|aix4.[012].*) 17090 # We only want to do this on AIX 4.2 and lower, the check 17091 # below for broken collect2 doesn't work under 4.3+ 17092 collect2name=`$CC -print-prog-name=collect2` 17093 if test -f "$collect2name" && 17094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17095 then 17096 # We have reworked collect2 17097 : 17098 else 17099 # We have old collect2 17100 hardcode_direct=unsupported 17101 # It fails to find uninstalled libraries when the uninstalled 17102 # path is not listed in the libpath. Setting hardcode_minus_L 17103 # to unsupported forces relinking 17104 hardcode_minus_L=yes 17105 hardcode_libdir_flag_spec='-L$libdir' 17106 hardcode_libdir_separator= 17107 fi 17108 ;; 17109 esac 17110 shared_flag='-shared' 17111 if test yes = "$aix_use_runtimelinking"; then 17112 shared_flag="$shared_flag "'$wl-G' 17113 fi 17114 # Need to ensure runtime linking is disabled for the traditional 17115 # shared library, or the linker may eventually find shared libraries 17116 # /with/ Import File - we do not want to mix them. 17117 shared_flag_aix='-shared' 17118 shared_flag_svr4='-shared $wl-G' 17119 else 17120 # not using gcc 17121 if test ia64 = "$host_cpu"; then 17122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17123 # chokes on -Wl,-G. The following line is correct: 17124 shared_flag='-G' 17125 else 17126 if test yes = "$aix_use_runtimelinking"; then 17127 shared_flag='$wl-G' 17128 else 17129 shared_flag='$wl-bM:SRE' 17130 fi 17131 shared_flag_aix='$wl-bM:SRE' 17132 shared_flag_svr4='$wl-G' 17133 fi 17134 fi 17135 17136 export_dynamic_flag_spec='$wl-bexpall' 17137 # It seems that -bexpall does not export symbols beginning with 17138 # underscore (_), so it is better to generate a list of symbols to export. 17139 always_export_symbols=yes 17140 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17141 # Warning - without using the other runtime loading flags (-brtl), 17142 # -berok will link without error, but may produce a broken library. 17143 allow_undefined_flag='-berok' 17144 # Determine the default libpath from the value encoded in an 17145 # empty executable. 17146 if test set = "${lt_cv_aix_libpath+set}"; then 17147 aix_libpath=$lt_cv_aix_libpath 17148else 17149 if test ${lt_cv_aix_libpath_+y} 17150then : 17151 printf %s "(cached) " >&6 17152else case e in #( 17153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155 17156int 17157main (void) 17158{ 17159 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164if ac_fn_c_try_link "$LINENO" 17165then : 17166 17167 lt_aix_libpath_sed=' 17168 /Import File Strings/,/^$/ { 17169 /^0/ { 17170 s/^0 *\([^ ]*\) *$/\1/ 17171 p 17172 } 17173 }' 17174 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17175 # Check for a 64-bit object if we didn't find anything. 17176 if test -z "$lt_cv_aix_libpath_"; then 17177 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17178 fi 17179fi 17180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17181 conftest$ac_exeext conftest.$ac_ext 17182 if test -z "$lt_cv_aix_libpath_"; then 17183 lt_cv_aix_libpath_=/usr/lib:/lib 17184 fi 17185 ;; 17186esac 17187fi 17188 17189 aix_libpath=$lt_cv_aix_libpath_ 17190fi 17191 17192 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17193 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 17194 else 17195 if test ia64 = "$host_cpu"; then 17196 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17197 allow_undefined_flag="-z nodefs" 17198 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" 17199 else 17200 # Determine the default libpath from the value encoded in an 17201 # empty executable. 17202 if test set = "${lt_cv_aix_libpath+set}"; then 17203 aix_libpath=$lt_cv_aix_libpath 17204else 17205 if test ${lt_cv_aix_libpath_+y} 17206then : 17207 printf %s "(cached) " >&6 17208else case e in #( 17209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211 17212int 17213main (void) 17214{ 17215 17216 ; 17217 return 0; 17218} 17219_ACEOF 17220if ac_fn_c_try_link "$LINENO" 17221then : 17222 17223 lt_aix_libpath_sed=' 17224 /Import File Strings/,/^$/ { 17225 /^0/ { 17226 s/^0 *\([^ ]*\) *$/\1/ 17227 p 17228 } 17229 }' 17230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17231 # Check for a 64-bit object if we didn't find anything. 17232 if test -z "$lt_cv_aix_libpath_"; then 17233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17234 fi 17235fi 17236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17237 conftest$ac_exeext conftest.$ac_ext 17238 if test -z "$lt_cv_aix_libpath_"; then 17239 lt_cv_aix_libpath_=/usr/lib:/lib 17240 fi 17241 ;; 17242esac 17243fi 17244 17245 aix_libpath=$lt_cv_aix_libpath_ 17246fi 17247 17248 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17249 # Warning - without using the other run time loading flags, 17250 # -berok will link without error, but may produce a broken library. 17251 no_undefined_flag=' $wl-bernotok' 17252 allow_undefined_flag=' $wl-berok' 17253 if test yes = "$with_gnu_ld"; then 17254 # We only use this code for GNU lds that support --whole-archive. 17255 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17256 else 17257 # Exported symbols can be pulled into shared objects from archives 17258 whole_archive_flag_spec='$convenience' 17259 fi 17260 archive_cmds_need_lc=yes 17261 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17262 # -brtl affects multiple linker settings, -berok does not and is overridden later 17263 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17264 if test svr4 != "$with_aix_soname"; then 17265 # This is similar to how AIX traditionally builds its shared libraries. 17266 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' 17267 fi 17268 if test aix != "$with_aix_soname"; then 17269 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' 17270 else 17271 # used by -dlpreopen to get the symbols 17272 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17273 fi 17274 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17275 fi 17276 fi 17277 ;; 17278 17279 amigaos*) 17280 case $host_cpu in 17281 powerpc) 17282 # see comment about AmigaOS4 .so support 17283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17284 archive_expsym_cmds='' 17285 ;; 17286 m68k) 17287 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)' 17288 hardcode_libdir_flag_spec='-L$libdir' 17289 hardcode_minus_L=yes 17290 ;; 17291 esac 17292 ;; 17293 17294 bsdi[45]*) 17295 export_dynamic_flag_spec=-rdynamic 17296 ;; 17297 17298 cygwin* | mingw* | pw32* | cegcc*) 17299 # When not using gcc, we currently assume that we are using 17300 # Microsoft Visual C++ or Intel C++ Compiler. 17301 # hardcode_libdir_flag_spec is actually meaningless, as there is 17302 # no search path for DLLs. 17303 case $cc_basename in 17304 cl* | icl*) 17305 # Native MSVC or ICC 17306 hardcode_libdir_flag_spec=' ' 17307 allow_undefined_flag=unsupported 17308 always_export_symbols=yes 17309 file_list_spec='@' 17310 # Tell ltmain to make .lib files, not .a files. 17311 libext=lib 17312 # Tell ltmain to make .dll files, not .so files. 17313 shrext_cmds=.dll 17314 # FIXME: Setting linknames here is a bad hack. 17315 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17316 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17317 cp "$export_symbols" "$output_objdir/$soname.def"; 17318 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17319 else 17320 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17321 fi~ 17322 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17323 linknames=' 17324 # The linker will not automatically build a static lib if we build a DLL. 17325 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17326 enable_shared_with_static_runtimes=yes 17327 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17329 # Don't use ranlib 17330 old_postinstall_cmds='chmod 644 $oldlib' 17331 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17332 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17333 case $lt_outputfile in 17334 *.exe|*.EXE) ;; 17335 *) 17336 lt_outputfile=$lt_outputfile.exe 17337 lt_tool_outputfile=$lt_tool_outputfile.exe 17338 ;; 17339 esac~ 17340 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17341 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17342 $RM "$lt_outputfile.manifest"; 17343 fi' 17344 ;; 17345 *) 17346 # Assume MSVC and ICC wrapper 17347 hardcode_libdir_flag_spec=' ' 17348 allow_undefined_flag=unsupported 17349 # Tell ltmain to make .lib files, not .a files. 17350 libext=lib 17351 # Tell ltmain to make .dll files, not .so files. 17352 shrext_cmds=.dll 17353 # FIXME: Setting linknames here is a bad hack. 17354 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17355 # The linker will automatically build a .lib file if we build a DLL. 17356 old_archive_from_new_cmds='true' 17357 # FIXME: Should let the user specify the lib program. 17358 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17359 enable_shared_with_static_runtimes=yes 17360 ;; 17361 esac 17362 ;; 17363 17364 darwin* | rhapsody*) 17365 17366 17367 archive_cmds_need_lc=no 17368 hardcode_direct=no 17369 hardcode_automatic=yes 17370 hardcode_shlibpath_var=unsupported 17371 if test yes = "$lt_cv_ld_force_load"; then 17372 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\"`' 17373 17374 else 17375 whole_archive_flag_spec='' 17376 fi 17377 link_all_deplibs=yes 17378 allow_undefined_flag=$_lt_dar_allow_undefined 17379 case $cc_basename in 17380 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17381 *) _lt_dar_can_shared=$GCC ;; 17382 esac 17383 if test yes = "$_lt_dar_can_shared"; then 17384 output_verbose_link_cmd=func_echo_all 17385 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17386 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17387 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" 17388 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" 17389 17390 else 17391 ld_shlibs=no 17392 fi 17393 17394 ;; 17395 17396 dgux*) 17397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17398 hardcode_libdir_flag_spec='-L$libdir' 17399 hardcode_shlibpath_var=no 17400 ;; 17401 17402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17403 # support. Future versions do this automatically, but an explicit c++rt0.o 17404 # does not break anything, and helps significantly (at the cost of a little 17405 # extra space). 17406 freebsd2.2*) 17407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17408 hardcode_libdir_flag_spec='-R$libdir' 17409 hardcode_direct=yes 17410 hardcode_shlibpath_var=no 17411 ;; 17412 17413 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17414 freebsd2.*) 17415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17416 hardcode_direct=yes 17417 hardcode_minus_L=yes 17418 hardcode_shlibpath_var=no 17419 ;; 17420 17421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17422 freebsd* | dragonfly* | midnightbsd*) 17423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17424 hardcode_libdir_flag_spec='-R$libdir' 17425 hardcode_direct=yes 17426 hardcode_shlibpath_var=no 17427 ;; 17428 17429 hpux9*) 17430 if test yes = "$GCC"; then 17431 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' 17432 else 17433 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' 17434 fi 17435 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17436 hardcode_libdir_separator=: 17437 hardcode_direct=yes 17438 17439 # hardcode_minus_L: Not really in the search PATH, 17440 # but as the default location of the library. 17441 hardcode_minus_L=yes 17442 export_dynamic_flag_spec='$wl-E' 17443 ;; 17444 17445 hpux10*) 17446 if test yes,no = "$GCC,$with_gnu_ld"; then 17447 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17448 else 17449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17450 fi 17451 if test no = "$with_gnu_ld"; then 17452 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17453 hardcode_libdir_separator=: 17454 hardcode_direct=yes 17455 hardcode_direct_absolute=yes 17456 export_dynamic_flag_spec='$wl-E' 17457 # hardcode_minus_L: Not really in the search PATH, 17458 # but as the default location of the library. 17459 hardcode_minus_L=yes 17460 fi 17461 ;; 17462 17463 hpux11*) 17464 if test yes,no = "$GCC,$with_gnu_ld"; then 17465 case $host_cpu in 17466 hppa*64*) 17467 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17468 ;; 17469 ia64*) 17470 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17471 ;; 17472 *) 17473 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17474 ;; 17475 esac 17476 else 17477 case $host_cpu in 17478 hppa*64*) 17479 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17480 ;; 17481 ia64*) 17482 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17483 ;; 17484 *) 17485 17486 # Older versions of the 11.00 compiler do not understand -b yet 17487 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17489printf %s "checking if $CC understands -b... " >&6; } 17490if test ${lt_cv_prog_compiler__b+y} 17491then : 17492 printf %s "(cached) " >&6 17493else case e in #( 17494 e) lt_cv_prog_compiler__b=no 17495 save_LDFLAGS=$LDFLAGS 17496 LDFLAGS="$LDFLAGS -b" 17497 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17499 # The linker can only warn and ignore the option if not recognized 17500 # So say no if there are warnings 17501 if test -s conftest.err; then 17502 # Append any errors to the config.log. 17503 cat conftest.err 1>&5 17504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17506 if diff conftest.exp conftest.er2 >/dev/null; then 17507 lt_cv_prog_compiler__b=yes 17508 fi 17509 else 17510 lt_cv_prog_compiler__b=yes 17511 fi 17512 fi 17513 $RM -r conftest* 17514 LDFLAGS=$save_LDFLAGS 17515 ;; 17516esac 17517fi 17518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17519printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17520 17521if test yes = "$lt_cv_prog_compiler__b"; then 17522 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17523else 17524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17525fi 17526 17527 ;; 17528 esac 17529 fi 17530 if test no = "$with_gnu_ld"; then 17531 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17532 hardcode_libdir_separator=: 17533 17534 case $host_cpu in 17535 hppa*64*|ia64*) 17536 hardcode_direct=no 17537 hardcode_shlibpath_var=no 17538 ;; 17539 *) 17540 hardcode_direct=yes 17541 hardcode_direct_absolute=yes 17542 export_dynamic_flag_spec='$wl-E' 17543 17544 # hardcode_minus_L: Not really in the search PATH, 17545 # but as the default location of the library. 17546 hardcode_minus_L=yes 17547 ;; 17548 esac 17549 fi 17550 ;; 17551 17552 irix5* | irix6* | nonstopux*) 17553 if test yes = "$GCC"; then 17554 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' 17555 # Try to use the -exported_symbol ld option, if it does not 17556 # work, assume that -exports_file does not work either and 17557 # implicitly export all symbols. 17558 # This should be the same for all languages, so no per-tag cache variable. 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17560printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17561if test ${lt_cv_irix_exported_symbol+y} 17562then : 17563 printf %s "(cached) " >&6 17564else case e in #( 17565 e) save_LDFLAGS=$LDFLAGS 17566 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569int foo (void) { return 0; } 17570_ACEOF 17571if ac_fn_c_try_link "$LINENO" 17572then : 17573 lt_cv_irix_exported_symbol=yes 17574else case e in #( 17575 e) lt_cv_irix_exported_symbol=no ;; 17576esac 17577fi 17578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17579 conftest$ac_exeext conftest.$ac_ext 17580 LDFLAGS=$save_LDFLAGS ;; 17581esac 17582fi 17583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17584printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17585 if test yes = "$lt_cv_irix_exported_symbol"; then 17586 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' 17587 fi 17588 else 17589 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' 17590 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' 17591 fi 17592 archive_cmds_need_lc='no' 17593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17594 hardcode_libdir_separator=: 17595 inherit_rpath=yes 17596 link_all_deplibs=yes 17597 ;; 17598 17599 linux*) 17600 case $cc_basename in 17601 tcc*) 17602 # Fabrice Bellard et al's Tiny C Compiler 17603 ld_shlibs=yes 17604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17605 ;; 17606 esac 17607 ;; 17608 17609 netbsd*) 17610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17612 else 17613 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17614 fi 17615 hardcode_libdir_flag_spec='-R$libdir' 17616 hardcode_direct=yes 17617 hardcode_shlibpath_var=no 17618 ;; 17619 17620 newsos6) 17621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17622 hardcode_direct=yes 17623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17624 hardcode_libdir_separator=: 17625 hardcode_shlibpath_var=no 17626 ;; 17627 17628 *nto* | *qnx*) 17629 ;; 17630 17631 openbsd* | bitrig*) 17632 if test -f /usr/libexec/ld.so; then 17633 hardcode_direct=yes 17634 hardcode_shlibpath_var=no 17635 hardcode_direct_absolute=yes 17636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17638 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17639 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17640 export_dynamic_flag_spec='$wl-E' 17641 else 17642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17643 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17644 fi 17645 else 17646 ld_shlibs=no 17647 fi 17648 ;; 17649 17650 os2*) 17651 hardcode_libdir_flag_spec='-L$libdir' 17652 hardcode_minus_L=yes 17653 allow_undefined_flag=unsupported 17654 shrext_cmds=.dll 17655 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17658 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17659 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17661 emximp -o $lib $output_objdir/$libname.def' 17662 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17663 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17664 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17665 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17666 prefix_cmds="$SED"~ 17667 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17668 prefix_cmds="$prefix_cmds -e 1d"; 17669 fi~ 17670 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17671 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17673 emximp -o $lib $output_objdir/$libname.def' 17674 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17675 enable_shared_with_static_runtimes=yes 17676 file_list_spec='@' 17677 ;; 17678 17679 osf3*) 17680 if test yes = "$GCC"; then 17681 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17682 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' 17683 else 17684 allow_undefined_flag=' -expect_unresolved \*' 17685 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' 17686 fi 17687 archive_cmds_need_lc='no' 17688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17689 hardcode_libdir_separator=: 17690 ;; 17691 17692 osf4* | osf5*) # as osf3* with the addition of -msym flag 17693 if test yes = "$GCC"; then 17694 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17695 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' 17696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17697 else 17698 allow_undefined_flag=' -expect_unresolved \*' 17699 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' 17700 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~ 17701 $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' 17702 17703 # Both c and cxx compiler support -rpath directly 17704 hardcode_libdir_flag_spec='-rpath $libdir' 17705 fi 17706 archive_cmds_need_lc='no' 17707 hardcode_libdir_separator=: 17708 ;; 17709 17710 solaris*) 17711 no_undefined_flag=' -z defs' 17712 if test yes = "$GCC"; then 17713 wlarc='$wl' 17714 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17716 $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' 17717 else 17718 case `$CC -V 2>&1` in 17719 *"Compilers 5.0"*) 17720 wlarc='' 17721 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17723 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17724 ;; 17725 *) 17726 wlarc='$wl' 17727 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17729 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17730 ;; 17731 esac 17732 fi 17733 hardcode_libdir_flag_spec='-R$libdir' 17734 hardcode_shlibpath_var=no 17735 case $host_os in 17736 solaris2.[0-5] | solaris2.[0-5].*) ;; 17737 *) 17738 # The compiler driver will combine and reorder linker options, 17739 # but understands '-z linker_flag'. GCC discards it without '$wl', 17740 # but is careful enough not to reorder. 17741 # Supported since Solaris 2.6 (maybe 2.5.1?) 17742 if test yes = "$GCC"; then 17743 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17744 else 17745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17746 fi 17747 ;; 17748 esac 17749 link_all_deplibs=yes 17750 ;; 17751 17752 sunos4*) 17753 if test sequent = "$host_vendor"; then 17754 # Use $CC to link under sequent, because it throws in some extra .o 17755 # files that make .init and .fini sections work. 17756 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17757 else 17758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17759 fi 17760 hardcode_libdir_flag_spec='-L$libdir' 17761 hardcode_direct=yes 17762 hardcode_minus_L=yes 17763 hardcode_shlibpath_var=no 17764 ;; 17765 17766 sysv4) 17767 case $host_vendor in 17768 sni) 17769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17770 hardcode_direct=yes # is this really true??? 17771 ;; 17772 siemens) 17773 ## LD is ld it makes a PLAMLIB 17774 ## CC just makes a GrossModule. 17775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17776 reload_cmds='$CC -r -o $output$reload_objs' 17777 hardcode_direct=no 17778 ;; 17779 motorola) 17780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17782 ;; 17783 esac 17784 runpath_var='LD_RUN_PATH' 17785 hardcode_shlibpath_var=no 17786 ;; 17787 17788 sysv4.3*) 17789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17790 hardcode_shlibpath_var=no 17791 export_dynamic_flag_spec='-Bexport' 17792 ;; 17793 17794 sysv4*MP*) 17795 if test -d /usr/nec; then 17796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17797 hardcode_shlibpath_var=no 17798 runpath_var=LD_RUN_PATH 17799 hardcode_runpath_var=yes 17800 ld_shlibs=yes 17801 fi 17802 ;; 17803 17804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17805 no_undefined_flag='$wl-z,text' 17806 archive_cmds_need_lc=no 17807 hardcode_shlibpath_var=no 17808 runpath_var='LD_RUN_PATH' 17809 17810 if test yes = "$GCC"; then 17811 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17812 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17813 else 17814 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17815 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17816 fi 17817 ;; 17818 17819 sysv5* | sco3.2v5* | sco5v6*) 17820 # Note: We CANNOT use -z defs as we might desire, because we do not 17821 # link with -lc, and that would cause any symbols used from libc to 17822 # always be unresolved, which means just about no library would 17823 # ever link correctly. If we're not using GNU ld we use -z text 17824 # though, which does catch some bad symbols but isn't as heavy-handed 17825 # as -z defs. 17826 no_undefined_flag='$wl-z,text' 17827 allow_undefined_flag='$wl-z,nodefs' 17828 archive_cmds_need_lc=no 17829 hardcode_shlibpath_var=no 17830 hardcode_libdir_flag_spec='$wl-R,$libdir' 17831 hardcode_libdir_separator=':' 17832 link_all_deplibs=yes 17833 export_dynamic_flag_spec='$wl-Bexport' 17834 runpath_var='LD_RUN_PATH' 17835 17836 if test yes = "$GCC"; then 17837 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17838 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17839 else 17840 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17841 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17842 fi 17843 ;; 17844 17845 uts4*) 17846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17847 hardcode_libdir_flag_spec='-L$libdir' 17848 hardcode_shlibpath_var=no 17849 ;; 17850 17851 *) 17852 ld_shlibs=no 17853 ;; 17854 esac 17855 17856 if test sni = "$host_vendor"; then 17857 case $host in 17858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17859 export_dynamic_flag_spec='$wl-Blargedynsym' 17860 ;; 17861 esac 17862 fi 17863 fi 17864 17865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17866printf "%s\n" "$ld_shlibs" >&6; } 17867test no = "$ld_shlibs" && can_build_shared=no 17868 17869with_gnu_ld=$with_gnu_ld 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885# 17886# Do we need to explicitly link libc? 17887# 17888case "x$archive_cmds_need_lc" in 17889x|xyes) 17890 # Assume -lc should be added 17891 archive_cmds_need_lc=yes 17892 17893 if test yes,yes = "$GCC,$enable_shared"; then 17894 case $archive_cmds in 17895 *'~'*) 17896 # FIXME: we may have to deal with multi-command sequences. 17897 ;; 17898 '$CC '*) 17899 # Test whether the compiler implicitly links with -lc since on some 17900 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17901 # to ld, don't add -lc before -lgcc. 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17903printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17904if test ${lt_cv_archive_cmds_need_lc+y} 17905then : 17906 printf %s "(cached) " >&6 17907else case e in #( 17908 e) $RM conftest* 17909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17910 17911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17912 (eval $ac_compile) 2>&5 17913 ac_status=$? 17914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17915 test $ac_status = 0; } 2>conftest.err; then 17916 soname=conftest 17917 lib=conftest 17918 libobjs=conftest.$ac_objext 17919 deplibs= 17920 wl=$lt_prog_compiler_wl 17921 pic_flag=$lt_prog_compiler_pic 17922 compiler_flags=-v 17923 linker_flags=-v 17924 verstring= 17925 output_objdir=. 17926 libname=conftest 17927 lt_save_allow_undefined_flag=$allow_undefined_flag 17928 allow_undefined_flag= 17929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17930 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17931 ac_status=$? 17932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17933 test $ac_status = 0; } 17934 then 17935 lt_cv_archive_cmds_need_lc=no 17936 else 17937 lt_cv_archive_cmds_need_lc=yes 17938 fi 17939 allow_undefined_flag=$lt_save_allow_undefined_flag 17940 else 17941 cat conftest.err 1>&5 17942 fi 17943 $RM conftest* 17944 ;; 17945esac 17946fi 17947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17948printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17949 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17950 ;; 17951 esac 17952 fi 17953 ;; 17954esac 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18108printf %s "checking dynamic linker characteristics... " >&6; } 18109 18110if test yes = "$GCC"; then 18111 case $host_os in 18112 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18113 *) lt_awk_arg='/^libraries:/' ;; 18114 esac 18115 case $host_os in 18116 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18117 *) lt_sed_strip_eq='s|=/|/|g' ;; 18118 esac 18119 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18120 case $lt_search_path_spec in 18121 *\;*) 18122 # if the path contains ";" then we assume it to be the separator 18123 # otherwise default to the standard path separator (i.e. ":") - it is 18124 # assumed that no part of a normal pathname contains ";" but that should 18125 # okay in the real world where ";" in dirpaths is itself problematic. 18126 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18127 ;; 18128 *) 18129 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18130 ;; 18131 esac 18132 # Ok, now we have the path, separated by spaces, we can step through it 18133 # and add multilib dir if necessary... 18134 lt_tmp_lt_search_path_spec= 18135 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18136 # ...but if some path component already ends with the multilib dir we assume 18137 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18138 case "$lt_multi_os_dir; $lt_search_path_spec " in 18139 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18140 lt_multi_os_dir= 18141 ;; 18142 esac 18143 for lt_sys_path in $lt_search_path_spec; do 18144 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18145 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18146 elif test -n "$lt_multi_os_dir"; then 18147 test -d "$lt_sys_path" && \ 18148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18149 fi 18150 done 18151 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18152BEGIN {RS = " "; FS = "/|\n";} { 18153 lt_foo = ""; 18154 lt_count = 0; 18155 for (lt_i = NF; lt_i > 0; lt_i--) { 18156 if ($lt_i != "" && $lt_i != ".") { 18157 if ($lt_i == "..") { 18158 lt_count++; 18159 } else { 18160 if (lt_count == 0) { 18161 lt_foo = "/" $lt_i lt_foo; 18162 } else { 18163 lt_count--; 18164 } 18165 } 18166 } 18167 } 18168 if (lt_foo != "") { lt_freq[lt_foo]++; } 18169 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18170}'` 18171 # AWK program above erroneously prepends '/' to C:/dos/paths 18172 # for these hosts. 18173 case $host_os in 18174 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18175 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18176 esac 18177 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18178else 18179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18180fi 18181library_names_spec= 18182libname_spec='lib$name' 18183soname_spec= 18184shrext_cmds=.so 18185postinstall_cmds= 18186postuninstall_cmds= 18187finish_cmds= 18188finish_eval= 18189shlibpath_var= 18190shlibpath_overrides_runpath=unknown 18191version_type=none 18192dynamic_linker="$host_os ld.so" 18193sys_lib_dlsearch_path_spec="/lib /usr/lib" 18194need_lib_prefix=unknown 18195hardcode_into_libs=no 18196 18197# when you set need_version to no, make sure it does not cause -set_version 18198# flags to be left without arguments 18199need_version=unknown 18200 18201 18202 18203case $host_os in 18204aix3*) 18205 version_type=linux # correct to gnu/linux during the next big refactor 18206 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18207 shlibpath_var=LIBPATH 18208 18209 # AIX 3 has no versioning support, so we append a major version to the name. 18210 soname_spec='$libname$release$shared_ext$major' 18211 ;; 18212 18213aix[4-9]*) 18214 version_type=linux # correct to gnu/linux during the next big refactor 18215 need_lib_prefix=no 18216 need_version=no 18217 hardcode_into_libs=yes 18218 if test ia64 = "$host_cpu"; then 18219 # AIX 5 supports IA64 18220 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18221 shlibpath_var=LD_LIBRARY_PATH 18222 else 18223 # With GCC up to 2.95.x, collect2 would create an import file 18224 # for dependence libraries. The import file would start with 18225 # the line '#! .'. This would cause the generated library to 18226 # depend on '.', always an invalid library. This was fixed in 18227 # development snapshots of GCC prior to 3.0. 18228 case $host_os in 18229 aix4 | aix4.[01] | aix4.[01].*) 18230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18231 echo ' yes ' 18232 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18233 : 18234 else 18235 can_build_shared=no 18236 fi 18237 ;; 18238 esac 18239 # Using Import Files as archive members, it is possible to support 18240 # filename-based versioning of shared library archives on AIX. While 18241 # this would work for both with and without runtime linking, it will 18242 # prevent static linking of such archives. So we do filename-based 18243 # shared library versioning with .so extension only, which is used 18244 # when both runtime linking and shared linking is enabled. 18245 # Unfortunately, runtime linking may impact performance, so we do 18246 # not want this to be the default eventually. Also, we use the 18247 # versioned .so libs for executables only if there is the -brtl 18248 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18249 # To allow for filename-based versioning support, we need to create 18250 # libNAME.so.V as an archive file, containing: 18251 # *) an Import File, referring to the versioned filename of the 18252 # archive as well as the shared archive member, telling the 18253 # bitwidth (32 or 64) of that shared object, and providing the 18254 # list of exported symbols of that shared object, eventually 18255 # decorated with the 'weak' keyword 18256 # *) the shared object with the F_LOADONLY flag set, to really avoid 18257 # it being seen by the linker. 18258 # At run time we better use the real file rather than another symlink, 18259 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18260 18261 case $with_aix_soname,$aix_use_runtimelinking in 18262 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18263 # soname into executable. Probably we can add versioning support to 18264 # collect2, so additional links can be useful in future. 18265 aix,yes) # traditional libtool 18266 dynamic_linker='AIX unversionable lib.so' 18267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18268 # instead of lib<name>.a to let people know that these are not 18269 # typical AIX shared libraries. 18270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18271 ;; 18272 aix,no) # traditional AIX only 18273 dynamic_linker='AIX lib.a(lib.so.V)' 18274 # We preserve .a as extension for shared libraries through AIX4.2 18275 # and later when we are not doing run time linking. 18276 library_names_spec='$libname$release.a $libname.a' 18277 soname_spec='$libname$release$shared_ext$major' 18278 ;; 18279 svr4,*) # full svr4 only 18280 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18281 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18282 # We do not specify a path in Import Files, so LIBPATH fires. 18283 shlibpath_overrides_runpath=yes 18284 ;; 18285 *,yes) # both, prefer svr4 18286 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18287 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18288 # unpreferred sharedlib libNAME.a needs extra handling 18289 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"' 18290 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"' 18291 # We do not specify a path in Import Files, so LIBPATH fires. 18292 shlibpath_overrides_runpath=yes 18293 ;; 18294 *,no) # both, prefer aix 18295 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18296 library_names_spec='$libname$release.a $libname.a' 18297 soname_spec='$libname$release$shared_ext$major' 18298 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18299 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)' 18300 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"' 18301 ;; 18302 esac 18303 shlibpath_var=LIBPATH 18304 fi 18305 ;; 18306 18307amigaos*) 18308 case $host_cpu in 18309 powerpc) 18310 # Since July 2007 AmigaOS4 officially supports .so libraries. 18311 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18313 ;; 18314 m68k) 18315 library_names_spec='$libname.ixlibrary $libname.a' 18316 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18317 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' 18318 ;; 18319 esac 18320 ;; 18321 18322beos*) 18323 library_names_spec='$libname$shared_ext' 18324 dynamic_linker="$host_os ld.so" 18325 shlibpath_var=LIBRARY_PATH 18326 ;; 18327 18328bsdi[45]*) 18329 version_type=linux # correct to gnu/linux during the next big refactor 18330 need_version=no 18331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18332 soname_spec='$libname$release$shared_ext$major' 18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18334 shlibpath_var=LD_LIBRARY_PATH 18335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18337 # the default ld.so.conf also contains /usr/contrib/lib and 18338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18339 # libtool to hard-code these into programs 18340 ;; 18341 18342cygwin* | mingw* | pw32* | cegcc*) 18343 version_type=windows 18344 shrext_cmds=.dll 18345 need_version=no 18346 need_lib_prefix=no 18347 18348 case $GCC,$cc_basename in 18349 yes,*) 18350 # gcc 18351 library_names_spec='$libname.dll.a' 18352 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18353 postinstall_cmds='base_file=`basename \$file`~ 18354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18355 dldir=$destdir/`dirname \$dlpath`~ 18356 test -d \$dldir || mkdir -p \$dldir~ 18357 $install_prog $dir/$dlname \$dldir/$dlname~ 18358 chmod a+x \$dldir/$dlname~ 18359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18361 fi' 18362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18363 dlpath=$dir/\$dldll~ 18364 $RM \$dlpath' 18365 shlibpath_overrides_runpath=yes 18366 18367 case $host_os in 18368 cygwin*) 18369 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18370 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18371 18372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18373 ;; 18374 mingw* | cegcc*) 18375 # MinGW DLLs use traditional 'lib' prefix 18376 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18377 ;; 18378 pw32*) 18379 # pw32 DLLs use 'pw' prefix rather than 'lib' 18380 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18381 ;; 18382 esac 18383 dynamic_linker='Win32 ld.exe' 18384 ;; 18385 18386 *,cl* | *,icl*) 18387 # Native MSVC or ICC 18388 libname_spec='$name' 18389 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18390 library_names_spec='$libname.dll.lib' 18391 18392 case $build_os in 18393 mingw*) 18394 sys_lib_search_path_spec= 18395 lt_save_ifs=$IFS 18396 IFS=';' 18397 for lt_path in $LIB 18398 do 18399 IFS=$lt_save_ifs 18400 # Let DOS variable expansion print the short 8.3 style file name. 18401 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18402 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18403 done 18404 IFS=$lt_save_ifs 18405 # Convert to MSYS style. 18406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18407 ;; 18408 cygwin*) 18409 # Convert to unix form, then to dos form, then back to unix form 18410 # but this time dos style (no spaces!) so that the unix form looks 18411 # like /cygdrive/c/PROGRA~1:/cygdr... 18412 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18413 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18414 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18415 ;; 18416 *) 18417 sys_lib_search_path_spec=$LIB 18418 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18419 # It is most probably a Windows format PATH. 18420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18421 else 18422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18423 fi 18424 # FIXME: find the short name or the path components, as spaces are 18425 # common. (e.g. "Program Files" -> "PROGRA~1") 18426 ;; 18427 esac 18428 18429 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18430 postinstall_cmds='base_file=`basename \$file`~ 18431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18432 dldir=$destdir/`dirname \$dlpath`~ 18433 test -d \$dldir || mkdir -p \$dldir~ 18434 $install_prog $dir/$dlname \$dldir/$dlname' 18435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18436 dlpath=$dir/\$dldll~ 18437 $RM \$dlpath' 18438 shlibpath_overrides_runpath=yes 18439 dynamic_linker='Win32 link.exe' 18440 ;; 18441 18442 *) 18443 # Assume MSVC and ICC wrapper 18444 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18445 dynamic_linker='Win32 ld.exe' 18446 ;; 18447 esac 18448 # FIXME: first we should search . and the directory the executable is in 18449 shlibpath_var=PATH 18450 ;; 18451 18452darwin* | rhapsody*) 18453 dynamic_linker="$host_os dyld" 18454 version_type=darwin 18455 need_lib_prefix=no 18456 need_version=no 18457 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18458 soname_spec='$libname$release$major$shared_ext' 18459 shlibpath_overrides_runpath=yes 18460 shlibpath_var=DYLD_LIBRARY_PATH 18461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18462 18463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18465 ;; 18466 18467dgux*) 18468 version_type=linux # correct to gnu/linux during the next big refactor 18469 need_lib_prefix=no 18470 need_version=no 18471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18472 soname_spec='$libname$release$shared_ext$major' 18473 shlibpath_var=LD_LIBRARY_PATH 18474 ;; 18475 18476freebsd* | dragonfly* | midnightbsd*) 18477 # DragonFly does not have aout. When/if they implement a new 18478 # versioning mechanism, adjust this. 18479 if test -x /usr/bin/objformat; then 18480 objformat=`/usr/bin/objformat` 18481 else 18482 case $host_os in 18483 freebsd[23].*) objformat=aout ;; 18484 *) objformat=elf ;; 18485 esac 18486 fi 18487 version_type=freebsd-$objformat 18488 case $version_type in 18489 freebsd-elf*) 18490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18491 soname_spec='$libname$release$shared_ext$major' 18492 need_version=no 18493 need_lib_prefix=no 18494 ;; 18495 freebsd-*) 18496 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18497 need_version=yes 18498 ;; 18499 esac 18500 shlibpath_var=LD_LIBRARY_PATH 18501 case $host_os in 18502 freebsd2.*) 18503 shlibpath_overrides_runpath=yes 18504 ;; 18505 freebsd3.[01]* | freebsdelf3.[01]*) 18506 shlibpath_overrides_runpath=yes 18507 hardcode_into_libs=yes 18508 ;; 18509 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18510 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18511 shlibpath_overrides_runpath=no 18512 hardcode_into_libs=yes 18513 ;; 18514 *) # from 4.6 on, and DragonFly 18515 shlibpath_overrides_runpath=yes 18516 hardcode_into_libs=yes 18517 ;; 18518 esac 18519 ;; 18520 18521haiku*) 18522 version_type=linux # correct to gnu/linux during the next big refactor 18523 need_lib_prefix=no 18524 need_version=no 18525 dynamic_linker="$host_os runtime_loader" 18526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18527 soname_spec='$libname$release$shared_ext$major' 18528 shlibpath_var=LIBRARY_PATH 18529 shlibpath_overrides_runpath=no 18530 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18531 hardcode_into_libs=yes 18532 ;; 18533 18534hpux9* | hpux10* | hpux11*) 18535 # Give a soname corresponding to the major version so that dld.sl refuses to 18536 # link against other versions. 18537 version_type=sunos 18538 need_lib_prefix=no 18539 need_version=no 18540 case $host_cpu in 18541 ia64*) 18542 shrext_cmds='.so' 18543 hardcode_into_libs=yes 18544 dynamic_linker="$host_os dld.so" 18545 shlibpath_var=LD_LIBRARY_PATH 18546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18548 soname_spec='$libname$release$shared_ext$major' 18549 if test 32 = "$HPUX_IA64_MODE"; then 18550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18551 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18552 else 18553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18554 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18555 fi 18556 ;; 18557 hppa*64*) 18558 shrext_cmds='.sl' 18559 hardcode_into_libs=yes 18560 dynamic_linker="$host_os dld.sl" 18561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18564 soname_spec='$libname$release$shared_ext$major' 18565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18567 ;; 18568 *) 18569 shrext_cmds='.sl' 18570 dynamic_linker="$host_os dld.sl" 18571 shlibpath_var=SHLIB_PATH 18572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18574 soname_spec='$libname$release$shared_ext$major' 18575 ;; 18576 esac 18577 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18578 postinstall_cmds='chmod 555 $lib' 18579 # or fails outright, so override atomically: 18580 install_override_mode=555 18581 ;; 18582 18583interix[3-9]*) 18584 version_type=linux # correct to gnu/linux during the next big refactor 18585 need_lib_prefix=no 18586 need_version=no 18587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18588 soname_spec='$libname$release$shared_ext$major' 18589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18590 shlibpath_var=LD_LIBRARY_PATH 18591 shlibpath_overrides_runpath=no 18592 hardcode_into_libs=yes 18593 ;; 18594 18595irix5* | irix6* | nonstopux*) 18596 case $host_os in 18597 nonstopux*) version_type=nonstopux ;; 18598 *) 18599 if test yes = "$lt_cv_prog_gnu_ld"; then 18600 version_type=linux # correct to gnu/linux during the next big refactor 18601 else 18602 version_type=irix 18603 fi ;; 18604 esac 18605 need_lib_prefix=no 18606 need_version=no 18607 soname_spec='$libname$release$shared_ext$major' 18608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18609 case $host_os in 18610 irix5* | nonstopux*) 18611 libsuff= shlibsuff= 18612 ;; 18613 *) 18614 case $LD in # libtool.m4 will add one of these switches to LD 18615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18616 libsuff= shlibsuff= libmagic=32-bit;; 18617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18618 libsuff=32 shlibsuff=N32 libmagic=N32;; 18619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18620 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18621 *) libsuff= shlibsuff= libmagic=never-match;; 18622 esac 18623 ;; 18624 esac 18625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18626 shlibpath_overrides_runpath=no 18627 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18628 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18629 hardcode_into_libs=yes 18630 ;; 18631 18632# No shared lib support for Linux oldld, aout, or coff. 18633linux*oldld* | linux*aout* | linux*coff*) 18634 dynamic_linker=no 18635 ;; 18636 18637linux*android*) 18638 version_type=none # Android doesn't support versioned libraries. 18639 need_lib_prefix=no 18640 need_version=no 18641 library_names_spec='$libname$release$shared_ext' 18642 soname_spec='$libname$release$shared_ext' 18643 finish_cmds= 18644 shlibpath_var=LD_LIBRARY_PATH 18645 shlibpath_overrides_runpath=yes 18646 18647 # This implies no fast_install, which is unacceptable. 18648 # Some rework will be needed to allow for fast_install 18649 # before this can be enabled. 18650 hardcode_into_libs=yes 18651 18652 dynamic_linker='Android linker' 18653 # Don't embed -rpath directories since the linker doesn't support them. 18654 hardcode_libdir_flag_spec='-L$libdir' 18655 ;; 18656 18657# This must be glibc/ELF. 18658linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18659 version_type=linux # correct to gnu/linux during the next big refactor 18660 need_lib_prefix=no 18661 need_version=no 18662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18663 soname_spec='$libname$release$shared_ext$major' 18664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18665 shlibpath_var=LD_LIBRARY_PATH 18666 shlibpath_overrides_runpath=no 18667 18668 # Some binutils ld are patched to set DT_RUNPATH 18669 if test ${lt_cv_shlibpath_overrides_runpath+y} 18670then : 18671 printf %s "(cached) " >&6 18672else case e in #( 18673 e) lt_cv_shlibpath_overrides_runpath=no 18674 save_LDFLAGS=$LDFLAGS 18675 save_libdir=$libdir 18676 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18677 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681int 18682main (void) 18683{ 18684 18685 ; 18686 return 0; 18687} 18688_ACEOF 18689if ac_fn_c_try_link "$LINENO" 18690then : 18691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18692then : 18693 lt_cv_shlibpath_overrides_runpath=yes 18694fi 18695fi 18696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18697 conftest$ac_exeext conftest.$ac_ext 18698 LDFLAGS=$save_LDFLAGS 18699 libdir=$save_libdir 18700 ;; 18701esac 18702fi 18703 18704 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18705 18706 # This implies no fast_install, which is unacceptable. 18707 # Some rework will be needed to allow for fast_install 18708 # before this can be enabled. 18709 hardcode_into_libs=yes 18710 18711 # Ideally, we could use ldconfig to report *all* directores which are 18712 # searched for libraries, however this is still not possible. Aside from not 18713 # being certain /sbin/ldconfig is available, command 18714 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18715 # even though it is searched at run-time. Try to do the best guess by 18716 # appending ld.so.conf contents (and includes) to the search path. 18717 if test -f /etc/ld.so.conf; then 18718 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' ' '` 18719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18720 fi 18721 18722 # We used to test for /lib/ld.so.1 and disable shared libraries on 18723 # powerpc, because MkLinux only supported shared libraries with the 18724 # GNU dynamic linker. Since this was broken with cross compilers, 18725 # most powerpc-linux boxes support dynamic linking these days and 18726 # people can always --disable-shared, the test was removed, and we 18727 # assume the GNU/Linux dynamic linker is in use. 18728 dynamic_linker='GNU/Linux ld.so' 18729 ;; 18730 18731netbsd*) 18732 version_type=sunos 18733 need_lib_prefix=no 18734 need_version=no 18735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18738 dynamic_linker='NetBSD (a.out) ld.so' 18739 else 18740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18741 soname_spec='$libname$release$shared_ext$major' 18742 dynamic_linker='NetBSD ld.elf_so' 18743 fi 18744 shlibpath_var=LD_LIBRARY_PATH 18745 shlibpath_overrides_runpath=yes 18746 hardcode_into_libs=yes 18747 ;; 18748 18749newsos6) 18750 version_type=linux # correct to gnu/linux during the next big refactor 18751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18752 shlibpath_var=LD_LIBRARY_PATH 18753 shlibpath_overrides_runpath=yes 18754 ;; 18755 18756*nto* | *qnx*) 18757 version_type=qnx 18758 need_lib_prefix=no 18759 need_version=no 18760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18761 soname_spec='$libname$release$shared_ext$major' 18762 shlibpath_var=LD_LIBRARY_PATH 18763 shlibpath_overrides_runpath=no 18764 hardcode_into_libs=yes 18765 dynamic_linker='ldqnx.so' 18766 ;; 18767 18768openbsd* | bitrig*) 18769 version_type=sunos 18770 sys_lib_dlsearch_path_spec=/usr/lib 18771 need_lib_prefix=no 18772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18773 need_version=no 18774 else 18775 need_version=yes 18776 fi 18777 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18779 shlibpath_var=LD_LIBRARY_PATH 18780 shlibpath_overrides_runpath=yes 18781 ;; 18782 18783os2*) 18784 libname_spec='$name' 18785 version_type=windows 18786 shrext_cmds=.dll 18787 need_version=no 18788 need_lib_prefix=no 18789 # OS/2 can only load a DLL with a base name of 8 characters or less. 18790 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18791 v=$($ECHO $release$versuffix | tr -d .-); 18792 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18793 $ECHO $n$v`$shared_ext' 18794 library_names_spec='${libname}_dll.$libext' 18795 dynamic_linker='OS/2 ld.exe' 18796 shlibpath_var=BEGINLIBPATH 18797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18799 postinstall_cmds='base_file=`basename \$file`~ 18800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18801 dldir=$destdir/`dirname \$dlpath`~ 18802 test -d \$dldir || mkdir -p \$dldir~ 18803 $install_prog $dir/$dlname \$dldir/$dlname~ 18804 chmod a+x \$dldir/$dlname~ 18805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18807 fi' 18808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18809 dlpath=$dir/\$dldll~ 18810 $RM \$dlpath' 18811 ;; 18812 18813osf3* | osf4* | osf5*) 18814 version_type=osf 18815 need_lib_prefix=no 18816 need_version=no 18817 soname_spec='$libname$release$shared_ext$major' 18818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18819 shlibpath_var=LD_LIBRARY_PATH 18820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18822 ;; 18823 18824rdos*) 18825 dynamic_linker=no 18826 ;; 18827 18828solaris*) 18829 version_type=linux # correct to gnu/linux during the next big refactor 18830 need_lib_prefix=no 18831 need_version=no 18832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18833 soname_spec='$libname$release$shared_ext$major' 18834 shlibpath_var=LD_LIBRARY_PATH 18835 shlibpath_overrides_runpath=yes 18836 hardcode_into_libs=yes 18837 # ldd complains unless libraries are executable 18838 postinstall_cmds='chmod +x $lib' 18839 ;; 18840 18841sunos4*) 18842 version_type=sunos 18843 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18845 shlibpath_var=LD_LIBRARY_PATH 18846 shlibpath_overrides_runpath=yes 18847 if test yes = "$with_gnu_ld"; then 18848 need_lib_prefix=no 18849 fi 18850 need_version=yes 18851 ;; 18852 18853sysv4 | sysv4.3*) 18854 version_type=linux # correct to gnu/linux during the next big refactor 18855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18856 soname_spec='$libname$release$shared_ext$major' 18857 shlibpath_var=LD_LIBRARY_PATH 18858 case $host_vendor in 18859 sni) 18860 shlibpath_overrides_runpath=no 18861 need_lib_prefix=no 18862 runpath_var=LD_RUN_PATH 18863 ;; 18864 siemens) 18865 need_lib_prefix=no 18866 ;; 18867 motorola) 18868 need_lib_prefix=no 18869 need_version=no 18870 shlibpath_overrides_runpath=no 18871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18872 ;; 18873 esac 18874 ;; 18875 18876sysv4*MP*) 18877 if test -d /usr/nec; then 18878 version_type=linux # correct to gnu/linux during the next big refactor 18879 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18880 soname_spec='$libname$shared_ext.$major' 18881 shlibpath_var=LD_LIBRARY_PATH 18882 fi 18883 ;; 18884 18885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18886 version_type=sco 18887 need_lib_prefix=no 18888 need_version=no 18889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18890 soname_spec='$libname$release$shared_ext$major' 18891 shlibpath_var=LD_LIBRARY_PATH 18892 shlibpath_overrides_runpath=yes 18893 hardcode_into_libs=yes 18894 if test yes = "$with_gnu_ld"; then 18895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18896 else 18897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18898 case $host_os in 18899 sco3.2v5*) 18900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18901 ;; 18902 esac 18903 fi 18904 sys_lib_dlsearch_path_spec='/usr/lib' 18905 ;; 18906 18907tpf*) 18908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18909 version_type=linux # correct to gnu/linux during the next big refactor 18910 need_lib_prefix=no 18911 need_version=no 18912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18913 shlibpath_var=LD_LIBRARY_PATH 18914 shlibpath_overrides_runpath=no 18915 hardcode_into_libs=yes 18916 ;; 18917 18918uts4*) 18919 version_type=linux # correct to gnu/linux during the next big refactor 18920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18921 soname_spec='$libname$release$shared_ext$major' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 ;; 18924 18925*) 18926 dynamic_linker=no 18927 ;; 18928esac 18929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18930printf "%s\n" "$dynamic_linker" >&6; } 18931test no = "$dynamic_linker" && can_build_shared=no 18932 18933variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18934if test yes = "$GCC"; then 18935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18936fi 18937 18938if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18939 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18940fi 18941 18942if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18943 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18944fi 18945 18946# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18947configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18948 18949# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18950func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18951 18952# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18953configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19052printf %s "checking how to hardcode library paths into programs... " >&6; } 19053hardcode_action= 19054if test -n "$hardcode_libdir_flag_spec" || 19055 test -n "$runpath_var" || 19056 test yes = "$hardcode_automatic"; then 19057 19058 # We can hardcode non-existent directories. 19059 if test no != "$hardcode_direct" && 19060 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19061 # have to relink, otherwise we might link with an installed library 19062 # when we should be linking with a yet-to-be-installed one 19063 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19064 test no != "$hardcode_minus_L"; then 19065 # Linking always hardcodes the temporary library directory. 19066 hardcode_action=relink 19067 else 19068 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19069 hardcode_action=immediate 19070 fi 19071else 19072 # We cannot hardcode anything, or else we can only hardcode existing 19073 # directories. 19074 hardcode_action=unsupported 19075fi 19076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19077printf "%s\n" "$hardcode_action" >&6; } 19078 19079if test relink = "$hardcode_action" || 19080 test yes = "$inherit_rpath"; then 19081 # Fast installation is not supported 19082 enable_fast_install=no 19083elif test yes = "$shlibpath_overrides_runpath" || 19084 test no = "$enable_shared"; then 19085 # Fast installation is not necessary 19086 enable_fast_install=needless 19087fi 19088 19089 19090 19091 19092 19093 19094 if test yes != "$enable_dlopen"; then 19095 enable_dlopen=unknown 19096 enable_dlopen_self=unknown 19097 enable_dlopen_self_static=unknown 19098else 19099 lt_cv_dlopen=no 19100 lt_cv_dlopen_libs= 19101 19102 case $host_os in 19103 beos*) 19104 lt_cv_dlopen=load_add_on 19105 lt_cv_dlopen_libs= 19106 lt_cv_dlopen_self=yes 19107 ;; 19108 19109 mingw* | pw32* | cegcc*) 19110 lt_cv_dlopen=LoadLibrary 19111 lt_cv_dlopen_libs= 19112 ;; 19113 19114 cygwin*) 19115 lt_cv_dlopen=dlopen 19116 lt_cv_dlopen_libs= 19117 ;; 19118 19119 darwin*) 19120 # if libdl is installed we need to link against it 19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19122printf %s "checking for dlopen in -ldl... " >&6; } 19123if test ${ac_cv_lib_dl_dlopen+y} 19124then : 19125 printf %s "(cached) " >&6 19126else case e in #( 19127 e) ac_check_lib_save_LIBS=$LIBS 19128LIBS="-ldl $LIBS" 19129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19130/* end confdefs.h. */ 19131 19132/* Override any GCC internal prototype to avoid an error. 19133 Use char because int might match the return type of a GCC 19134 builtin and then its argument prototype would still apply. 19135 The 'extern "C"' is for builds by C++ compilers; 19136 although this is not generally supported in C code supporting it here 19137 has little cost and some practical benefit (sr 110532). */ 19138#ifdef __cplusplus 19139extern "C" 19140#endif 19141char dlopen (void); 19142int 19143main (void) 19144{ 19145return dlopen (); 19146 ; 19147 return 0; 19148} 19149_ACEOF 19150if ac_fn_c_try_link "$LINENO" 19151then : 19152 ac_cv_lib_dl_dlopen=yes 19153else case e in #( 19154 e) ac_cv_lib_dl_dlopen=no ;; 19155esac 19156fi 19157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19158 conftest$ac_exeext conftest.$ac_ext 19159LIBS=$ac_check_lib_save_LIBS ;; 19160esac 19161fi 19162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19163printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19164if test "x$ac_cv_lib_dl_dlopen" = xyes 19165then : 19166 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19167else case e in #( 19168 e) 19169 lt_cv_dlopen=dyld 19170 lt_cv_dlopen_libs= 19171 lt_cv_dlopen_self=yes 19172 ;; 19173esac 19174fi 19175 19176 ;; 19177 19178 tpf*) 19179 # Don't try to run any link tests for TPF. We know it's impossible 19180 # because TPF is a cross-compiler, and we know how we open DSOs. 19181 lt_cv_dlopen=dlopen 19182 lt_cv_dlopen_libs= 19183 lt_cv_dlopen_self=no 19184 ;; 19185 19186 *) 19187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19188if test "x$ac_cv_func_shl_load" = xyes 19189then : 19190 lt_cv_dlopen=shl_load 19191else case e in #( 19192 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19193printf %s "checking for shl_load in -ldld... " >&6; } 19194if test ${ac_cv_lib_dld_shl_load+y} 19195then : 19196 printf %s "(cached) " >&6 19197else case e in #( 19198 e) ac_check_lib_save_LIBS=$LIBS 19199LIBS="-ldld $LIBS" 19200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19201/* end confdefs.h. */ 19202 19203/* Override any GCC internal prototype to avoid an error. 19204 Use char because int might match the return type of a GCC 19205 builtin and then its argument prototype would still apply. 19206 The 'extern "C"' is for builds by C++ compilers; 19207 although this is not generally supported in C code supporting it here 19208 has little cost and some practical benefit (sr 110532). */ 19209#ifdef __cplusplus 19210extern "C" 19211#endif 19212char shl_load (void); 19213int 19214main (void) 19215{ 19216return shl_load (); 19217 ; 19218 return 0; 19219} 19220_ACEOF 19221if ac_fn_c_try_link "$LINENO" 19222then : 19223 ac_cv_lib_dld_shl_load=yes 19224else case e in #( 19225 e) ac_cv_lib_dld_shl_load=no ;; 19226esac 19227fi 19228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19229 conftest$ac_exeext conftest.$ac_ext 19230LIBS=$ac_check_lib_save_LIBS ;; 19231esac 19232fi 19233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19234printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19235if test "x$ac_cv_lib_dld_shl_load" = xyes 19236then : 19237 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19238else case e in #( 19239 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19240if test "x$ac_cv_func_dlopen" = xyes 19241then : 19242 lt_cv_dlopen=dlopen 19243else case e in #( 19244 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19245printf %s "checking for dlopen in -ldl... " >&6; } 19246if test ${ac_cv_lib_dl_dlopen+y} 19247then : 19248 printf %s "(cached) " >&6 19249else case e in #( 19250 e) ac_check_lib_save_LIBS=$LIBS 19251LIBS="-ldl $LIBS" 19252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19253/* end confdefs.h. */ 19254 19255/* Override any GCC internal prototype to avoid an error. 19256 Use char because int might match the return type of a GCC 19257 builtin and then its argument prototype would still apply. 19258 The 'extern "C"' is for builds by C++ compilers; 19259 although this is not generally supported in C code supporting it here 19260 has little cost and some practical benefit (sr 110532). */ 19261#ifdef __cplusplus 19262extern "C" 19263#endif 19264char dlopen (void); 19265int 19266main (void) 19267{ 19268return dlopen (); 19269 ; 19270 return 0; 19271} 19272_ACEOF 19273if ac_fn_c_try_link "$LINENO" 19274then : 19275 ac_cv_lib_dl_dlopen=yes 19276else case e in #( 19277 e) ac_cv_lib_dl_dlopen=no ;; 19278esac 19279fi 19280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19281 conftest$ac_exeext conftest.$ac_ext 19282LIBS=$ac_check_lib_save_LIBS ;; 19283esac 19284fi 19285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19286printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19287if test "x$ac_cv_lib_dl_dlopen" = xyes 19288then : 19289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19290else case e in #( 19291 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19292printf %s "checking for dlopen in -lsvld... " >&6; } 19293if test ${ac_cv_lib_svld_dlopen+y} 19294then : 19295 printf %s "(cached) " >&6 19296else case e in #( 19297 e) ac_check_lib_save_LIBS=$LIBS 19298LIBS="-lsvld $LIBS" 19299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19300/* end confdefs.h. */ 19301 19302/* Override any GCC internal prototype to avoid an error. 19303 Use char because int might match the return type of a GCC 19304 builtin and then its argument prototype would still apply. 19305 The 'extern "C"' is for builds by C++ compilers; 19306 although this is not generally supported in C code supporting it here 19307 has little cost and some practical benefit (sr 110532). */ 19308#ifdef __cplusplus 19309extern "C" 19310#endif 19311char dlopen (void); 19312int 19313main (void) 19314{ 19315return dlopen (); 19316 ; 19317 return 0; 19318} 19319_ACEOF 19320if ac_fn_c_try_link "$LINENO" 19321then : 19322 ac_cv_lib_svld_dlopen=yes 19323else case e in #( 19324 e) ac_cv_lib_svld_dlopen=no ;; 19325esac 19326fi 19327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19328 conftest$ac_exeext conftest.$ac_ext 19329LIBS=$ac_check_lib_save_LIBS ;; 19330esac 19331fi 19332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19333printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19334if test "x$ac_cv_lib_svld_dlopen" = xyes 19335then : 19336 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19337else case e in #( 19338 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19339printf %s "checking for dld_link in -ldld... " >&6; } 19340if test ${ac_cv_lib_dld_dld_link+y} 19341then : 19342 printf %s "(cached) " >&6 19343else case e in #( 19344 e) ac_check_lib_save_LIBS=$LIBS 19345LIBS="-ldld $LIBS" 19346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19347/* end confdefs.h. */ 19348 19349/* Override any GCC internal prototype to avoid an error. 19350 Use char because int might match the return type of a GCC 19351 builtin and then its argument prototype would still apply. 19352 The 'extern "C"' is for builds by C++ compilers; 19353 although this is not generally supported in C code supporting it here 19354 has little cost and some practical benefit (sr 110532). */ 19355#ifdef __cplusplus 19356extern "C" 19357#endif 19358char dld_link (void); 19359int 19360main (void) 19361{ 19362return dld_link (); 19363 ; 19364 return 0; 19365} 19366_ACEOF 19367if ac_fn_c_try_link "$LINENO" 19368then : 19369 ac_cv_lib_dld_dld_link=yes 19370else case e in #( 19371 e) ac_cv_lib_dld_dld_link=no ;; 19372esac 19373fi 19374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19375 conftest$ac_exeext conftest.$ac_ext 19376LIBS=$ac_check_lib_save_LIBS ;; 19377esac 19378fi 19379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19380printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19381if test "x$ac_cv_lib_dld_dld_link" = xyes 19382then : 19383 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19384fi 19385 19386 ;; 19387esac 19388fi 19389 19390 ;; 19391esac 19392fi 19393 19394 ;; 19395esac 19396fi 19397 19398 ;; 19399esac 19400fi 19401 19402 ;; 19403esac 19404fi 19405 19406 ;; 19407 esac 19408 19409 if test no = "$lt_cv_dlopen"; then 19410 enable_dlopen=no 19411 else 19412 enable_dlopen=yes 19413 fi 19414 19415 case $lt_cv_dlopen in 19416 dlopen) 19417 save_CPPFLAGS=$CPPFLAGS 19418 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19419 19420 save_LDFLAGS=$LDFLAGS 19421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19422 19423 save_LIBS=$LIBS 19424 LIBS="$lt_cv_dlopen_libs $LIBS" 19425 19426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19427printf %s "checking whether a program can dlopen itself... " >&6; } 19428if test ${lt_cv_dlopen_self+y} 19429then : 19430 printf %s "(cached) " >&6 19431else case e in #( 19432 e) if test yes = "$cross_compiling"; then : 19433 lt_cv_dlopen_self=cross 19434else 19435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19436 lt_status=$lt_dlunknown 19437 cat > conftest.$ac_ext <<_LT_EOF 19438#line $LINENO "configure" 19439#include "confdefs.h" 19440 19441#if HAVE_DLFCN_H 19442#include <dlfcn.h> 19443#endif 19444 19445#include <stdio.h> 19446 19447#ifdef RTLD_GLOBAL 19448# define LT_DLGLOBAL RTLD_GLOBAL 19449#else 19450# ifdef DL_GLOBAL 19451# define LT_DLGLOBAL DL_GLOBAL 19452# else 19453# define LT_DLGLOBAL 0 19454# endif 19455#endif 19456 19457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19458 find out it does not work in some platform. */ 19459#ifndef LT_DLLAZY_OR_NOW 19460# ifdef RTLD_LAZY 19461# define LT_DLLAZY_OR_NOW RTLD_LAZY 19462# else 19463# ifdef DL_LAZY 19464# define LT_DLLAZY_OR_NOW DL_LAZY 19465# else 19466# ifdef RTLD_NOW 19467# define LT_DLLAZY_OR_NOW RTLD_NOW 19468# else 19469# ifdef DL_NOW 19470# define LT_DLLAZY_OR_NOW DL_NOW 19471# else 19472# define LT_DLLAZY_OR_NOW 0 19473# endif 19474# endif 19475# endif 19476# endif 19477#endif 19478 19479/* When -fvisibility=hidden is used, assume the code has been annotated 19480 correspondingly for the symbols needed. */ 19481#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19482int fnord () __attribute__((visibility("default"))); 19483#endif 19484 19485int fnord () { return 42; } 19486int main () 19487{ 19488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19489 int status = $lt_dlunknown; 19490 19491 if (self) 19492 { 19493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19494 else 19495 { 19496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19497 else puts (dlerror ()); 19498 } 19499 /* dlclose (self); */ 19500 } 19501 else 19502 puts (dlerror ()); 19503 19504 return status; 19505} 19506_LT_EOF 19507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19508 (eval $ac_link) 2>&5 19509 ac_status=$? 19510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19512 (./conftest; exit; ) >&5 2>/dev/null 19513 lt_status=$? 19514 case x$lt_status in 19515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19518 esac 19519 else : 19520 # compilation failed 19521 lt_cv_dlopen_self=no 19522 fi 19523fi 19524rm -fr conftest* 19525 19526 ;; 19527esac 19528fi 19529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19530printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19531 19532 if test yes = "$lt_cv_dlopen_self"; then 19533 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19535printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19536if test ${lt_cv_dlopen_self_static+y} 19537then : 19538 printf %s "(cached) " >&6 19539else case e in #( 19540 e) if test yes = "$cross_compiling"; then : 19541 lt_cv_dlopen_self_static=cross 19542else 19543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19544 lt_status=$lt_dlunknown 19545 cat > conftest.$ac_ext <<_LT_EOF 19546#line $LINENO "configure" 19547#include "confdefs.h" 19548 19549#if HAVE_DLFCN_H 19550#include <dlfcn.h> 19551#endif 19552 19553#include <stdio.h> 19554 19555#ifdef RTLD_GLOBAL 19556# define LT_DLGLOBAL RTLD_GLOBAL 19557#else 19558# ifdef DL_GLOBAL 19559# define LT_DLGLOBAL DL_GLOBAL 19560# else 19561# define LT_DLGLOBAL 0 19562# endif 19563#endif 19564 19565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19566 find out it does not work in some platform. */ 19567#ifndef LT_DLLAZY_OR_NOW 19568# ifdef RTLD_LAZY 19569# define LT_DLLAZY_OR_NOW RTLD_LAZY 19570# else 19571# ifdef DL_LAZY 19572# define LT_DLLAZY_OR_NOW DL_LAZY 19573# else 19574# ifdef RTLD_NOW 19575# define LT_DLLAZY_OR_NOW RTLD_NOW 19576# else 19577# ifdef DL_NOW 19578# define LT_DLLAZY_OR_NOW DL_NOW 19579# else 19580# define LT_DLLAZY_OR_NOW 0 19581# endif 19582# endif 19583# endif 19584# endif 19585#endif 19586 19587/* When -fvisibility=hidden is used, assume the code has been annotated 19588 correspondingly for the symbols needed. */ 19589#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19590int fnord () __attribute__((visibility("default"))); 19591#endif 19592 19593int fnord () { return 42; } 19594int main () 19595{ 19596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19597 int status = $lt_dlunknown; 19598 19599 if (self) 19600 { 19601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19602 else 19603 { 19604 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19605 else puts (dlerror ()); 19606 } 19607 /* dlclose (self); */ 19608 } 19609 else 19610 puts (dlerror ()); 19611 19612 return status; 19613} 19614_LT_EOF 19615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19616 (eval $ac_link) 2>&5 19617 ac_status=$? 19618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19619 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19620 (./conftest; exit; ) >&5 2>/dev/null 19621 lt_status=$? 19622 case x$lt_status in 19623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19626 esac 19627 else : 19628 # compilation failed 19629 lt_cv_dlopen_self_static=no 19630 fi 19631fi 19632rm -fr conftest* 19633 19634 ;; 19635esac 19636fi 19637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19638printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19639 fi 19640 19641 CPPFLAGS=$save_CPPFLAGS 19642 LDFLAGS=$save_LDFLAGS 19643 LIBS=$save_LIBS 19644 ;; 19645 esac 19646 19647 case $lt_cv_dlopen_self in 19648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19649 *) enable_dlopen_self=unknown ;; 19650 esac 19651 19652 case $lt_cv_dlopen_self_static in 19653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19654 *) enable_dlopen_self_static=unknown ;; 19655 esac 19656fi 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674striplib= 19675old_striplib= 19676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19677printf %s "checking whether stripping libraries is possible... " >&6; } 19678if test -z "$STRIP"; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19680printf "%s\n" "no" >&6; } 19681else 19682 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19683 old_striplib="$STRIP --strip-debug" 19684 striplib="$STRIP --strip-unneeded" 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19686printf "%s\n" "yes" >&6; } 19687 else 19688 case $host_os in 19689 darwin*) 19690 # FIXME - insert some real tests, host_os isn't really good enough 19691 striplib="$STRIP -x" 19692 old_striplib="$STRIP -S" 19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19694printf "%s\n" "yes" >&6; } 19695 ;; 19696 freebsd*) 19697 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19698 old_striplib="$STRIP --strip-debug" 19699 striplib="$STRIP --strip-unneeded" 19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19701printf "%s\n" "yes" >&6; } 19702 else 19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19704printf "%s\n" "no" >&6; } 19705 fi 19706 ;; 19707 *) 19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19709printf "%s\n" "no" >&6; } 19710 ;; 19711 esac 19712 fi 19713fi 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 # Report what library types will actually be built 19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19728printf %s "checking if libtool supports shared libraries... " >&6; } 19729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19730printf "%s\n" "$can_build_shared" >&6; } 19731 19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19733printf %s "checking whether to build shared libraries... " >&6; } 19734 test no = "$can_build_shared" && enable_shared=no 19735 19736 # On AIX, shared libraries and static libraries use the same namespace, and 19737 # are all built from PIC. 19738 case $host_os in 19739 aix3*) 19740 test yes = "$enable_shared" && enable_static=no 19741 if test -n "$RANLIB"; then 19742 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19743 postinstall_cmds='$RANLIB $lib' 19744 fi 19745 ;; 19746 19747 aix[4-9]*) 19748 if test ia64 != "$host_cpu"; then 19749 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19750 yes,aix,yes) ;; # shared object as lib.so file only 19751 yes,svr4,*) ;; # shared object as lib.so archive member only 19752 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19753 esac 19754 fi 19755 ;; 19756 esac 19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19758printf "%s\n" "$enable_shared" >&6; } 19759 19760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19761printf %s "checking whether to build static libraries... " >&6; } 19762 # Make sure either enable_shared or enable_static is yes. 19763 test yes = "$enable_shared" || enable_static=yes 19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19765printf "%s\n" "$enable_static" >&6; } 19766 19767 19768 19769 19770fi 19771ac_ext=c 19772ac_cpp='$CPP $CPPFLAGS' 19773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19775ac_compiler_gnu=$ac_cv_c_compiler_gnu 19776 19777CC=$lt_save_CC 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 ac_config_commands="$ac_config_commands libtool" 19794 19795 19796 19797 19798# Only expand once: 19799 19800 19801 19802 19803 19804# Define a configure option for an alternate module directory 19805 19806# Check whether --with-xorg-module-dir was given. 19807if test ${with_xorg_module_dir+y} 19808then : 19809 withval=$with_xorg_module_dir; moduledir="$withval" 19810else case e in #( 19811 e) moduledir="$libdir/xorg/modules" ;; 19812esac 19813fi 19814 19815 19816# Check whether --enable-dri was given. 19817if test ${enable_dri+y} 19818then : 19819 enableval=$enable_dri; DRI="$enableval" 19820else case e in #( 19821 e) DRI=auto ;; 19822esac 19823fi 19824 19825 19826# Store the list of server defined optional extensions in REQUIRED_MODULES 19827 19828 19829 SAVE_CFLAGS="$CFLAGS" 19830 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19832/* end confdefs.h. */ 19833 19834#include "xorg-server.h" 19835#if !defined RANDR 19836#error RANDR not defined 19837#endif 19838 19839int 19840main (void) 19841{ 19842 19843 ; 19844 return 0; 19845} 19846_ACEOF 19847if ac_fn_c_try_compile "$LINENO" 19848then : 19849 _EXT_CHECK=yes 19850else case e in #( 19851 e) _EXT_CHECK=no ;; 19852esac 19853fi 19854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19855 CFLAGS="$SAVE_CFLAGS" 19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19857printf %s "checking if RANDR is defined... " >&6; } 19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19859printf "%s\n" "$_EXT_CHECK" >&6; } 19860 if test "$_EXT_CHECK" != no; then 19861 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19862 fi 19863 19864 19865 19866 SAVE_CFLAGS="$CFLAGS" 19867 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19869/* end confdefs.h. */ 19870 19871#include "xorg-server.h" 19872#if !defined RENDER 19873#error RENDER not defined 19874#endif 19875 19876int 19877main (void) 19878{ 19879 19880 ; 19881 return 0; 19882} 19883_ACEOF 19884if ac_fn_c_try_compile "$LINENO" 19885then : 19886 _EXT_CHECK=yes 19887else case e in #( 19888 e) _EXT_CHECK=no ;; 19889esac 19890fi 19891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19892 CFLAGS="$SAVE_CFLAGS" 19893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19894printf %s "checking if RENDER is defined... " >&6; } 19895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19896printf "%s\n" "$_EXT_CHECK" >&6; } 19897 if test "$_EXT_CHECK" != no; then 19898 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19899 fi 19900 19901 19902 19903 SAVE_CFLAGS="$CFLAGS" 19904 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19906/* end confdefs.h. */ 19907 19908#include "xorg-server.h" 19909#if !defined XV 19910#error XV not defined 19911#endif 19912 19913int 19914main (void) 19915{ 19916 19917 ; 19918 return 0; 19919} 19920_ACEOF 19921if ac_fn_c_try_compile "$LINENO" 19922then : 19923 _EXT_CHECK=yes 19924else case e in #( 19925 e) _EXT_CHECK=no ;; 19926esac 19927fi 19928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19929 CFLAGS="$SAVE_CFLAGS" 19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19931printf %s "checking if XV is defined... " >&6; } 19932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19933printf "%s\n" "$_EXT_CHECK" >&6; } 19934 if test "$_EXT_CHECK" != no; then 19935 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19936 fi 19937 19938 19939 19940 SAVE_CFLAGS="$CFLAGS" 19941 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19943/* end confdefs.h. */ 19944 19945#include "xorg-server.h" 19946#if !defined DPMSExtension 19947#error DPMSExtension not defined 19948#endif 19949 19950int 19951main (void) 19952{ 19953 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958if ac_fn_c_try_compile "$LINENO" 19959then : 19960 _EXT_CHECK=yes 19961else case e in #( 19962 e) _EXT_CHECK=no ;; 19963esac 19964fi 19965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19966 CFLAGS="$SAVE_CFLAGS" 19967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19968printf %s "checking if DPMSExtension is defined... " >&6; } 19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19970printf "%s\n" "$_EXT_CHECK" >&6; } 19971 if test "$_EXT_CHECK" != no; then 19972 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19973 fi 19974 19975 19976# Obtain compiler/linker options for the driver dependencies 19977 19978pkg_failed=no 19979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19980printf %s "checking for XORG... " >&6; } 19981 19982if test -n "$XORG_CFLAGS"; then 19983 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19984 elif test -n "$PKG_CONFIG"; then 19985 if test -n "$PKG_CONFIG" && \ 19986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19987 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 19988 ac_status=$? 19989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19990 test $ac_status = 0; }; then 19991 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19992 test "x$?" != "x0" && pkg_failed=yes 19993else 19994 pkg_failed=yes 19995fi 19996 else 19997 pkg_failed=untried 19998fi 19999if test -n "$XORG_LIBS"; then 20000 pkg_cv_XORG_LIBS="$XORG_LIBS" 20001 elif test -n "$PKG_CONFIG"; then 20002 if test -n "$PKG_CONFIG" && \ 20003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 20004 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 20005 ac_status=$? 20006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20007 test $ac_status = 0; }; then 20008 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20009 test "x$?" != "x0" && pkg_failed=yes 20010else 20011 pkg_failed=yes 20012fi 20013 else 20014 pkg_failed=untried 20015fi 20016 20017 20018 20019if test $pkg_failed = yes; then 20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20021printf "%s\n" "no" >&6; } 20022 20023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20024 _pkg_short_errors_supported=yes 20025else 20026 _pkg_short_errors_supported=no 20027fi 20028 if test $_pkg_short_errors_supported = yes; then 20029 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20030 else 20031 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20032 fi 20033 # Put the nasty error message in config.log where it belongs 20034 echo "$XORG_PKG_ERRORS" >&5 20035 20036 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 20037 20038$XORG_PKG_ERRORS 20039 20040Consider adjusting the PKG_CONFIG_PATH environment variable if you 20041installed software in a non-standard prefix. 20042 20043Alternatively, you may set the environment variables XORG_CFLAGS 20044and XORG_LIBS to avoid the need to call pkg-config. 20045See the pkg-config man page for more details." "$LINENO" 5 20046elif test $pkg_failed = untried; then 20047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20048printf "%s\n" "no" >&6; } 20049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20051as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20052is in your PATH or set the PKG_CONFIG environment variable to the full 20053path to pkg-config. 20054 20055Alternatively, you may set the environment variables XORG_CFLAGS 20056and XORG_LIBS to avoid the need to call pkg-config. 20057See the pkg-config man page for more details. 20058 20059To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20060See 'config.log' for more details" "$LINENO" 5; } 20061else 20062 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20063 XORG_LIBS=$pkg_cv_XORG_LIBS 20064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20065printf "%s\n" "yes" >&6; } 20066 20067fi 20068 20069pkg_failed=no 20070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 20071printf %s "checking for XEXT... " >&6; } 20072 20073if test -n "$XEXT_CFLAGS"; then 20074 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 20075 elif test -n "$PKG_CONFIG"; then 20076 if test -n "$PKG_CONFIG" && \ 20077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20078 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20079 ac_status=$? 20080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20081 test $ac_status = 0; }; then 20082 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 20083 test "x$?" != "x0" && pkg_failed=yes 20084else 20085 pkg_failed=yes 20086fi 20087 else 20088 pkg_failed=untried 20089fi 20090if test -n "$XEXT_LIBS"; then 20091 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 20092 elif test -n "$PKG_CONFIG"; then 20093 if test -n "$PKG_CONFIG" && \ 20094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20095 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20096 ac_status=$? 20097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20098 test $ac_status = 0; }; then 20099 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 20100 test "x$?" != "x0" && pkg_failed=yes 20101else 20102 pkg_failed=yes 20103fi 20104 else 20105 pkg_failed=untried 20106fi 20107 20108 20109 20110if test $pkg_failed = yes; then 20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20112printf "%s\n" "no" >&6; } 20113 20114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20115 _pkg_short_errors_supported=yes 20116else 20117 _pkg_short_errors_supported=no 20118fi 20119 if test $_pkg_short_errors_supported = yes; then 20120 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20121 else 20122 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20123 fi 20124 # Put the nasty error message in config.log where it belongs 20125 echo "$XEXT_PKG_ERRORS" >&5 20126 20127 HAVE_XEXTPROTO_71="no" 20128elif test $pkg_failed = untried; then 20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20130printf "%s\n" "no" >&6; } 20131 HAVE_XEXTPROTO_71="no" 20132else 20133 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 20134 XEXT_LIBS=$pkg_cv_XEXT_LIBS 20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20136printf "%s\n" "yes" >&6; } 20137 HAVE_XEXTPROTO_71="yes"; 20138printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 20139 20140fi 20141 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 20142 HAVE_XEXTPROTO_71_TRUE= 20143 HAVE_XEXTPROTO_71_FALSE='#' 20144else 20145 HAVE_XEXTPROTO_71_TRUE='#' 20146 HAVE_XEXTPROTO_71_FALSE= 20147fi 20148 20149sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 20150 20151# Checks for libraries. 20152 20153 20154if test "$DRI" != no; then 20155 if test "$cross_compiling" = "no" ; then 20156 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | sed "$as_sed_sh"` 20157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 20158printf %s "checking for ${sdkdir}/dri.h... " >&6; } 20159if eval test \${$as_ac_File+y} 20160then : 20161 printf %s "(cached) " >&6 20162else case e in #( 20163 e) test "$cross_compiling" = yes && 20164 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20165if test -r "${sdkdir}/dri.h"; then 20166 eval "$as_ac_File=yes" 20167else 20168 eval "$as_ac_File=no" 20169fi ;; 20170esac 20171fi 20172eval ac_res=\$$as_ac_File 20173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20174printf "%s\n" "$ac_res" >&6; } 20175if eval test \"x\$"$as_ac_File"\" = x"yes" 20176then : 20177 have_dri_h="yes" 20178else case e in #( 20179 e) have_dri_h="no" ;; 20180esac 20181fi 20182 20183 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | sed "$as_sed_sh"` 20184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 20185printf %s "checking for ${sdkdir}/sarea.h... " >&6; } 20186if eval test \${$as_ac_File+y} 20187then : 20188 printf %s "(cached) " >&6 20189else case e in #( 20190 e) test "$cross_compiling" = yes && 20191 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20192if test -r "${sdkdir}/sarea.h"; then 20193 eval "$as_ac_File=yes" 20194else 20195 eval "$as_ac_File=no" 20196fi ;; 20197esac 20198fi 20199eval ac_res=\$$as_ac_File 20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20201printf "%s\n" "$ac_res" >&6; } 20202if eval test \"x\$"$as_ac_File"\" = x"yes" 20203then : 20204 have_sarea_h="yes" 20205else case e in #( 20206 e) have_sarea_h="no" ;; 20207esac 20208fi 20209 20210 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | sed "$as_sed_sh"` 20211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 20212printf %s "checking for ${sdkdir}/dristruct.h... " >&6; } 20213if eval test \${$as_ac_File+y} 20214then : 20215 printf %s "(cached) " >&6 20216else case e in #( 20217 e) test "$cross_compiling" = yes && 20218 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20219if test -r "${sdkdir}/dristruct.h"; then 20220 eval "$as_ac_File=yes" 20221else 20222 eval "$as_ac_File=no" 20223fi ;; 20224esac 20225fi 20226eval ac_res=\$$as_ac_File 20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20228printf "%s\n" "$ac_res" >&6; } 20229if eval test \"x\$"$as_ac_File"\" = x"yes" 20230then : 20231 have_dristruct_h="yes" 20232else case e in #( 20233 e) have_dristruct_h="no" ;; 20234esac 20235fi 20236 20237 else 20238 have_dri_h="yes" 20239 have_sarea_h="yes" 20240 have_dristruct_h="yes" 20241 fi 20242fi 20243 20244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 20245printf %s "checking whether to include DRI support... " >&6; } 20246if test x$DRI = xauto; then 20247 if test "$have_dri_h" = yes -a \ 20248 "$have_sarea_h" = yes -a \ 20249 "$have_dristruct_h" = yes; then 20250 DRI="yes" 20251 else 20252 DRI="no" 20253 fi 20254fi 20255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 20256printf "%s\n" "$DRI" >&6; } 20257 20258 if test x$DRI = xyes; then 20259 DRI_TRUE= 20260 DRI_FALSE='#' 20261else 20262 DRI_TRUE='#' 20263 DRI_FALSE= 20264fi 20265 20266if test "$DRI" = yes; then 20267 20268pkg_failed=no 20269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 20270printf %s "checking for DRI... " >&6; } 20271 20272if test -n "$DRI_CFLAGS"; then 20273 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 20274 elif test -n "$PKG_CONFIG"; then 20275 if test -n "$PKG_CONFIG" && \ 20276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 20277 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 20278 ac_status=$? 20279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20280 test $ac_status = 0; }; then 20281 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 20282 test "x$?" != "x0" && pkg_failed=yes 20283else 20284 pkg_failed=yes 20285fi 20286 else 20287 pkg_failed=untried 20288fi 20289if test -n "$DRI_LIBS"; then 20290 pkg_cv_DRI_LIBS="$DRI_LIBS" 20291 elif test -n "$PKG_CONFIG"; then 20292 if test -n "$PKG_CONFIG" && \ 20293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 20294 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 20295 ac_status=$? 20296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20297 test $ac_status = 0; }; then 20298 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 20299 test "x$?" != "x0" && pkg_failed=yes 20300else 20301 pkg_failed=yes 20302fi 20303 else 20304 pkg_failed=untried 20305fi 20306 20307 20308 20309if test $pkg_failed = yes; then 20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20311printf "%s\n" "no" >&6; } 20312 20313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20314 _pkg_short_errors_supported=yes 20315else 20316 _pkg_short_errors_supported=no 20317fi 20318 if test $_pkg_short_errors_supported = yes; then 20319 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 20320 else 20321 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 20322 fi 20323 # Put the nasty error message in config.log where it belongs 20324 echo "$DRI_PKG_ERRORS" >&5 20325 20326 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 20327 20328$DRI_PKG_ERRORS 20329 20330Consider adjusting the PKG_CONFIG_PATH environment variable if you 20331installed software in a non-standard prefix. 20332 20333Alternatively, you may set the environment variables DRI_CFLAGS 20334and DRI_LIBS to avoid the need to call pkg-config. 20335See the pkg-config man page for more details." "$LINENO" 5 20336elif test $pkg_failed = untried; then 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20338printf "%s\n" "no" >&6; } 20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20340printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20341as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20342is in your PATH or set the PKG_CONFIG environment variable to the full 20343path to pkg-config. 20344 20345Alternatively, you may set the environment variables DRI_CFLAGS 20346and DRI_LIBS to avoid the need to call pkg-config. 20347See the pkg-config man page for more details. 20348 20349To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20350See 'config.log' for more details" "$LINENO" 5; } 20351else 20352 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 20353 DRI_LIBS=$pkg_cv_DRI_LIBS 20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20355printf "%s\n" "yes" >&6; } 20356 20357fi 20358 20359printf "%s\n" "#define SAVAGEDRI 1" >>confdefs.h 20360 20361 20362printf "%s\n" "#define SAVAGEDRI_DEVEL 1" >>confdefs.h 20363 20364fi 20365 20366# Check whether --enable-xaa was given. 20367if test ${enable_xaa+y} 20368then : 20369 enableval=$enable_xaa; XAA="$enableval" 20370else case e in #( 20371 e) XAA=auto ;; 20372esac 20373fi 20374 20375if test "x$XAA" != xno; then 20376 save_CFLAGS=$CFLAGS 20377 save_CPPFLAGS=$CPPFLAGS 20378 CFLAGS=$XORG_CFLAGS 20379 CPPFLAGS="$XORG_CFLAGS" 20380 for ac_header in xaa.h 20381do : 20382 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20383if test "x$ac_cv_header_xaa_h" = xyes 20384then : 20385 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 20386 XAA=yes 20387else case e in #( 20388 e) XAA=no ;; 20389esac 20390fi 20391 20392done 20393 CFLAGS=$save_CFLAGS 20394 CPPFLAGS=$save_CPPFLAGS 20395fi 20396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20397printf %s "checking whether to include XAA support... " >&6; } 20398 if test "x$XAA" = xyes; then 20399 XAA_TRUE= 20400 XAA_FALSE='#' 20401else 20402 XAA_TRUE='#' 20403 XAA_FALSE= 20404fi 20405 20406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20407printf "%s\n" "$XAA" >&6; } 20408 20409save_CFLAGS="$CFLAGS" 20410CFLAGS="$XORG_CFLAGS" 20411ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20412" "$ac_c_undeclared_builtin_options" "CFLAGS" 20413if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20414then : 20415 XSERVER_LIBPCIACCESS=yes 20416else case e in #( 20417 e) XSERVER_LIBPCIACCESS=no ;; 20418esac 20419fi 20420ac_fn_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\" 20421" "$ac_c_undeclared_builtin_options" "CFLAGS" 20422if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes 20423then : 20424 20425printf "%s\n" "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h 20426 20427fi 20428CFLAGS="$save_CFLAGS" 20429 20430if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20431 20432pkg_failed=no 20433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20434printf %s "checking for PCIACCESS... " >&6; } 20435 20436if test -n "$PCIACCESS_CFLAGS"; then 20437 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20438 elif test -n "$PKG_CONFIG"; then 20439 if test -n "$PKG_CONFIG" && \ 20440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20441 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20442 ac_status=$? 20443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20444 test $ac_status = 0; }; then 20445 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 20446 test "x$?" != "x0" && pkg_failed=yes 20447else 20448 pkg_failed=yes 20449fi 20450 else 20451 pkg_failed=untried 20452fi 20453if test -n "$PCIACCESS_LIBS"; then 20454 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20455 elif test -n "$PKG_CONFIG"; then 20456 if test -n "$PKG_CONFIG" && \ 20457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20458 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20459 ac_status=$? 20460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20461 test $ac_status = 0; }; then 20462 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 20463 test "x$?" != "x0" && pkg_failed=yes 20464else 20465 pkg_failed=yes 20466fi 20467 else 20468 pkg_failed=untried 20469fi 20470 20471 20472 20473if test $pkg_failed = yes; then 20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20475printf "%s\n" "no" >&6; } 20476 20477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20478 _pkg_short_errors_supported=yes 20479else 20480 _pkg_short_errors_supported=no 20481fi 20482 if test $_pkg_short_errors_supported = yes; then 20483 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20484 else 20485 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20486 fi 20487 # Put the nasty error message in config.log where it belongs 20488 echo "$PCIACCESS_PKG_ERRORS" >&5 20489 20490 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20491 20492$PCIACCESS_PKG_ERRORS 20493 20494Consider adjusting the PKG_CONFIG_PATH environment variable if you 20495installed software in a non-standard prefix. 20496 20497Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20498and PCIACCESS_LIBS to avoid the need to call pkg-config. 20499See the pkg-config man page for more details." "$LINENO" 5 20500elif test $pkg_failed = untried; then 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20502printf "%s\n" "no" >&6; } 20503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20504printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20505as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20506is in your PATH or set the PKG_CONFIG environment variable to the full 20507path to pkg-config. 20508 20509Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20510and PCIACCESS_LIBS to avoid the need to call pkg-config. 20511See the pkg-config man page for more details. 20512 20513To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20514See 'config.log' for more details" "$LINENO" 5; } 20515else 20516 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20517 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20519printf "%s\n" "yes" >&6; } 20520 20521fi 20522fi 20523 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20524 XSERVER_LIBPCIACCESS_TRUE= 20525 XSERVER_LIBPCIACCESS_FALSE='#' 20526else 20527 XSERVER_LIBPCIACCESS_TRUE='#' 20528 XSERVER_LIBPCIACCESS_FALSE= 20529fi 20530 20531 20532# Checks for library functions 20533# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet 20534# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. 20535ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20536if test "x$ac_cv_func_strlcat" = xyes 20537then : 20538 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20539 20540fi 20541ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20542if test "x$ac_cv_func_strlcpy" = xyes 20543then : 20544 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20545 20546fi 20547ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 20548if test "x$ac_cv_func_timingsafe_memcmp" = xyes 20549then : 20550 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 20551 20552fi 20553 20554 20555 20556 20557DRIVER_NAME=savage 20558 20559 20560ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20561 20562cat >confcache <<\_ACEOF 20563# This file is a shell script that caches the results of configure 20564# tests run on this system so they can be shared between configure 20565# scripts and configure runs, see configure's option --config-cache. 20566# It is not useful on other systems. If it contains results you don't 20567# want to keep, you may remove or edit it. 20568# 20569# config.status only pays attention to the cache file if you give it 20570# the --recheck option to rerun configure. 20571# 20572# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20573# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20574# following values. 20575 20576_ACEOF 20577 20578# The following way of writing the cache mishandles newlines in values, 20579# but we know of no workaround that is simple, portable, and efficient. 20580# So, we kill variables containing newlines. 20581# Ultrix sh set writes to stderr and can't be redirected directly, 20582# and sets the high bit in the cache file unless we assign to the vars. 20583( 20584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20585 eval ac_val=\$$ac_var 20586 case $ac_val in #( 20587 *${as_nl}*) 20588 case $ac_var in #( 20589 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20590printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20591 esac 20592 case $ac_var in #( 20593 _ | IFS | as_nl) ;; #( 20594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20595 *) { eval $ac_var=; unset $ac_var;} ;; 20596 esac ;; 20597 esac 20598 done 20599 20600 (set) 2>&1 | 20601 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20602 *${as_nl}ac_space=\ *) 20603 # 'set' does not quote correctly, so add quotes: double-quote 20604 # substitution turns \\\\ into \\, and sed turns \\ into \. 20605 sed -n \ 20606 "s/'/'\\\\''/g; 20607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20608 ;; #( 20609 *) 20610 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20612 ;; 20613 esac | 20614 sort 20615) | 20616 sed ' 20617 /^ac_cv_env_/b end 20618 t clear 20619 :clear 20620 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20621 t end 20622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20623 :end' >>confcache 20624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20625 if test -w "$cache_file"; then 20626 if test "x$cache_file" != "x/dev/null"; then 20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20628printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20629 if test ! -f "$cache_file" || test -h "$cache_file"; then 20630 cat confcache >"$cache_file" 20631 else 20632 case $cache_file in #( 20633 */* | ?:*) 20634 mv -f confcache "$cache_file"$$ && 20635 mv -f "$cache_file"$$ "$cache_file" ;; #( 20636 *) 20637 mv -f confcache "$cache_file" ;; 20638 esac 20639 fi 20640 fi 20641 else 20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20643printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20644 fi 20645fi 20646rm -f confcache 20647 20648test "x$prefix" = xNONE && prefix=$ac_default_prefix 20649# Let make expand exec_prefix. 20650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20651 20652DEFS=-DHAVE_CONFIG_H 20653 20654ac_libobjs= 20655ac_ltlibobjs= 20656U= 20657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20658 # 1. Remove the extension, and $U if already installed. 20659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20660 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20662 # will be set to the directory where LIBOBJS objects are built. 20663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20665done 20666LIBOBJS=$ac_libobjs 20667 20668LTLIBOBJS=$ac_ltlibobjs 20669 20670 20671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20672printf %s "checking that generated files are newer than configure... " >&6; } 20673 if test -n "$am_sleep_pid"; then 20674 # Hide warnings about reused PIDs. 20675 wait $am_sleep_pid 2>/dev/null 20676 fi 20677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20678printf "%s\n" "done" >&6; } 20679 if test -n "$EXEEXT"; then 20680 am__EXEEXT_TRUE= 20681 am__EXEEXT_FALSE='#' 20682else 20683 am__EXEEXT_TRUE='#' 20684 am__EXEEXT_FALSE= 20685fi 20686 20687if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20688 as_fn_error $? "conditional \"AMDEP\" was never defined. 20689Usually this means the macro was only invoked conditionally." "$LINENO" 5 20690fi 20691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20693Usually this means the macro was only invoked conditionally." "$LINENO" 5 20694fi 20695if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20696 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20697Usually this means the macro was only invoked conditionally." "$LINENO" 5 20698fi 20699if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20700 as_fn_error $? "conditional \"DRI\" was never defined. 20701Usually this means the macro was only invoked conditionally." "$LINENO" 5 20702fi 20703if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20704 as_fn_error $? "conditional \"XAA\" was never defined. 20705Usually this means the macro was only invoked conditionally." "$LINENO" 5 20706fi 20707if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20708 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20709Usually this means the macro was only invoked conditionally." "$LINENO" 5 20710fi 20711 20712: "${CONFIG_STATUS=./config.status}" 20713ac_write_fail=0 20714ac_clean_files_save=$ac_clean_files 20715ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20717printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20718as_write_fail=0 20719cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20720#! $SHELL 20721# Generated by $as_me. 20722# Run this file to recreate the current configuration. 20723# Compiler output produced by configure, useful for debugging 20724# configure, is in config.log if it exists. 20725 20726debug=false 20727ac_cs_recheck=false 20728ac_cs_silent=false 20729 20730SHELL=\${CONFIG_SHELL-$SHELL} 20731export SHELL 20732_ASEOF 20733cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20734## -------------------- ## 20735## M4sh Initialization. ## 20736## -------------------- ## 20737 20738# Be more Bourne compatible 20739DUALCASE=1; export DUALCASE # for MKS sh 20740if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20741then : 20742 emulate sh 20743 NULLCMD=: 20744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20745 # is contrary to our usage. Disable this feature. 20746 alias -g '${1+"$@"}'='"$@"' 20747 setopt NO_GLOB_SUBST 20748else case e in #( 20749 e) case `(set -o) 2>/dev/null` in #( 20750 *posix*) : 20751 set -o posix ;; #( 20752 *) : 20753 ;; 20754esac ;; 20755esac 20756fi 20757 20758 20759 20760# Reset variables that may have inherited troublesome values from 20761# the environment. 20762 20763# IFS needs to be set, to space, tab, and newline, in precisely that order. 20764# (If _AS_PATH_WALK were called with IFS unset, it would have the 20765# side effect of setting IFS to empty, thus disabling word splitting.) 20766# Quoting is to prevent editors from complaining about space-tab. 20767as_nl=' 20768' 20769export as_nl 20770IFS=" "" $as_nl" 20771 20772PS1='$ ' 20773PS2='> ' 20774PS4='+ ' 20775 20776# Ensure predictable behavior from utilities with locale-dependent output. 20777LC_ALL=C 20778export LC_ALL 20779LANGUAGE=C 20780export LANGUAGE 20781 20782# We cannot yet rely on "unset" to work, but we need these variables 20783# to be unset--not just set to an empty or harmless value--now, to 20784# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20785# also avoids known problems related to "unset" and subshell syntax 20786# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20787for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20788do eval test \${$as_var+y} \ 20789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20790done 20791 20792# Ensure that fds 0, 1, and 2 are open. 20793if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20794if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20795if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20796 20797# The user is always right. 20798if ${PATH_SEPARATOR+false} :; then 20799 PATH_SEPARATOR=: 20800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20802 PATH_SEPARATOR=';' 20803 } 20804fi 20805 20806 20807# Find who we are. Look in the path if we contain no directory separator. 20808as_myself= 20809case $0 in #(( 20810 *[\\/]* ) as_myself=$0 ;; 20811 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20812for as_dir in $PATH 20813do 20814 IFS=$as_save_IFS 20815 case $as_dir in #((( 20816 '') as_dir=./ ;; 20817 */) ;; 20818 *) as_dir=$as_dir/ ;; 20819 esac 20820 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20821 done 20822IFS=$as_save_IFS 20823 20824 ;; 20825esac 20826# We did not find ourselves, most probably we were run as 'sh COMMAND' 20827# in which case we are not to be found in the path. 20828if test "x$as_myself" = x; then 20829 as_myself=$0 20830fi 20831if test ! -f "$as_myself"; then 20832 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20833 exit 1 20834fi 20835 20836 20837 20838# as_fn_error STATUS ERROR [LINENO LOG_FD] 20839# ---------------------------------------- 20840# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20841# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20842# script with STATUS, using 1 if that was 0. 20843as_fn_error () 20844{ 20845 as_status=$1; test $as_status -eq 0 && as_status=1 20846 if test "$4"; then 20847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20849 fi 20850 printf "%s\n" "$as_me: error: $2" >&2 20851 as_fn_exit $as_status 20852} # as_fn_error 20853 20854 20855# as_fn_set_status STATUS 20856# ----------------------- 20857# Set $? to STATUS, without forking. 20858as_fn_set_status () 20859{ 20860 return $1 20861} # as_fn_set_status 20862 20863# as_fn_exit STATUS 20864# ----------------- 20865# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20866as_fn_exit () 20867{ 20868 set +e 20869 as_fn_set_status $1 20870 exit $1 20871} # as_fn_exit 20872 20873# as_fn_unset VAR 20874# --------------- 20875# Portably unset VAR. 20876as_fn_unset () 20877{ 20878 { eval $1=; unset $1;} 20879} 20880as_unset=as_fn_unset 20881 20882# as_fn_append VAR VALUE 20883# ---------------------- 20884# Append the text in VALUE to the end of the definition contained in VAR. Take 20885# advantage of any shell optimizations that allow amortized linear growth over 20886# repeated appends, instead of the typical quadratic growth present in naive 20887# implementations. 20888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20889then : 20890 eval 'as_fn_append () 20891 { 20892 eval $1+=\$2 20893 }' 20894else case e in #( 20895 e) as_fn_append () 20896 { 20897 eval $1=\$$1\$2 20898 } ;; 20899esac 20900fi # as_fn_append 20901 20902# as_fn_arith ARG... 20903# ------------------ 20904# Perform arithmetic evaluation on the ARGs, and store the result in the 20905# global $as_val. Take advantage of shells that can avoid forks. The arguments 20906# must be portable across $(()) and expr. 20907if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20908then : 20909 eval 'as_fn_arith () 20910 { 20911 as_val=$(( $* )) 20912 }' 20913else case e in #( 20914 e) as_fn_arith () 20915 { 20916 as_val=`expr "$@" || test $? -eq 1` 20917 } ;; 20918esac 20919fi # as_fn_arith 20920 20921 20922if expr a : '\(a\)' >/dev/null 2>&1 && 20923 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20924 as_expr=expr 20925else 20926 as_expr=false 20927fi 20928 20929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20930 as_basename=basename 20931else 20932 as_basename=false 20933fi 20934 20935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20936 as_dirname=dirname 20937else 20938 as_dirname=false 20939fi 20940 20941as_me=`$as_basename -- "$0" || 20942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20943 X"$0" : 'X\(//\)$' \| \ 20944 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20945printf "%s\n" X/"$0" | 20946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20947 s//\1/ 20948 q 20949 } 20950 /^X\/\(\/\/\)$/{ 20951 s//\1/ 20952 q 20953 } 20954 /^X\/\(\/\).*/{ 20955 s//\1/ 20956 q 20957 } 20958 s/.*/./; q'` 20959 20960# Avoid depending upon Character Ranges. 20961as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20963as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20964as_cr_digits='0123456789' 20965as_cr_alnum=$as_cr_Letters$as_cr_digits 20966 20967 20968# Determine whether it's possible to make 'echo' print without a newline. 20969# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20970# for compatibility with existing Makefiles. 20971ECHO_C= ECHO_N= ECHO_T= 20972case `echo -n x` in #((((( 20973-n*) 20974 case `echo 'xy\c'` in 20975 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20976 xy) ECHO_C='\c';; 20977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20978 ECHO_T=' ';; 20979 esac;; 20980*) 20981 ECHO_N='-n';; 20982esac 20983 20984# For backward compatibility with old third-party macros, we provide 20985# the shell variables $as_echo and $as_echo_n. New code should use 20986# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20987as_echo='printf %s\n' 20988as_echo_n='printf %s' 20989 20990rm -f conf$$ conf$$.exe conf$$.file 20991if test -d conf$$.dir; then 20992 rm -f conf$$.dir/conf$$.file 20993else 20994 rm -f conf$$.dir 20995 mkdir conf$$.dir 2>/dev/null 20996fi 20997if (echo >conf$$.file) 2>/dev/null; then 20998 if ln -s conf$$.file conf$$ 2>/dev/null; then 20999 as_ln_s='ln -s' 21000 # ... but there are two gotchas: 21001 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21002 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21003 # In both cases, we have to default to 'cp -pR'. 21004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21005 as_ln_s='cp -pR' 21006 elif ln conf$$.file conf$$ 2>/dev/null; then 21007 as_ln_s=ln 21008 else 21009 as_ln_s='cp -pR' 21010 fi 21011else 21012 as_ln_s='cp -pR' 21013fi 21014rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21015rmdir conf$$.dir 2>/dev/null 21016 21017 21018# as_fn_mkdir_p 21019# ------------- 21020# Create "$as_dir" as a directory, including parents if necessary. 21021as_fn_mkdir_p () 21022{ 21023 21024 case $as_dir in #( 21025 -*) as_dir=./$as_dir;; 21026 esac 21027 test -d "$as_dir" || eval $as_mkdir_p || { 21028 as_dirs= 21029 while :; do 21030 case $as_dir in #( 21031 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21032 *) as_qdir=$as_dir;; 21033 esac 21034 as_dirs="'$as_qdir' $as_dirs" 21035 as_dir=`$as_dirname -- "$as_dir" || 21036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21037 X"$as_dir" : 'X\(//\)[^/]' \| \ 21038 X"$as_dir" : 'X\(//\)$' \| \ 21039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21040printf "%s\n" X"$as_dir" | 21041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21042 s//\1/ 21043 q 21044 } 21045 /^X\(\/\/\)[^/].*/{ 21046 s//\1/ 21047 q 21048 } 21049 /^X\(\/\/\)$/{ 21050 s//\1/ 21051 q 21052 } 21053 /^X\(\/\).*/{ 21054 s//\1/ 21055 q 21056 } 21057 s/.*/./; q'` 21058 test -d "$as_dir" && break 21059 done 21060 test -z "$as_dirs" || eval "mkdir $as_dirs" 21061 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21062 21063 21064} # as_fn_mkdir_p 21065if mkdir -p . 2>/dev/null; then 21066 as_mkdir_p='mkdir -p "$as_dir"' 21067else 21068 test -d ./-p && rmdir ./-p 21069 as_mkdir_p=false 21070fi 21071 21072 21073# as_fn_executable_p FILE 21074# ----------------------- 21075# Test if FILE is an executable regular file. 21076as_fn_executable_p () 21077{ 21078 test -f "$1" && test -x "$1" 21079} # as_fn_executable_p 21080as_test_x='test -x' 21081as_executable_p=as_fn_executable_p 21082 21083# Sed expression to map a string onto a valid CPP name. 21084as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21085as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21086 21087# Sed expression to map a string onto a valid variable name. 21088as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21089as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21090 21091 21092exec 6>&1 21093## ----------------------------------- ## 21094## Main body of $CONFIG_STATUS script. ## 21095## ----------------------------------- ## 21096_ASEOF 21097test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21098 21099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21100# Save the log message, to keep $0 and so on meaningful, and to 21101# report actual input values of CONFIG_FILES etc. instead of their 21102# values after options handling. 21103ac_log=" 21104This file was extended by xf86-video-savage $as_me 2.4.1, which was 21105generated by GNU Autoconf 2.72. Invocation command line was 21106 21107 CONFIG_FILES = $CONFIG_FILES 21108 CONFIG_HEADERS = $CONFIG_HEADERS 21109 CONFIG_LINKS = $CONFIG_LINKS 21110 CONFIG_COMMANDS = $CONFIG_COMMANDS 21111 $ $0 $@ 21112 21113on `(hostname || uname -n) 2>/dev/null | sed 1q` 21114" 21115 21116_ACEOF 21117 21118case $ac_config_files in *" 21119"*) set x $ac_config_files; shift; ac_config_files=$*;; 21120esac 21121 21122case $ac_config_headers in *" 21123"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21124esac 21125 21126 21127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21128# Files that config.status was made for. 21129config_files="$ac_config_files" 21130config_headers="$ac_config_headers" 21131config_commands="$ac_config_commands" 21132 21133_ACEOF 21134 21135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21136ac_cs_usage="\ 21137'$as_me' instantiates files and other configuration actions 21138from templates according to the current configuration. Unless the files 21139and actions are specified as TAGs, all are instantiated by default. 21140 21141Usage: $0 [OPTION]... [TAG]... 21142 21143 -h, --help print this help, then exit 21144 -V, --version print version number and configuration settings, then exit 21145 --config print configuration, then exit 21146 -q, --quiet, --silent 21147 do not print progress messages 21148 -d, --debug don't remove temporary files 21149 --recheck update $as_me by reconfiguring in the same conditions 21150 --file=FILE[:TEMPLATE] 21151 instantiate the configuration file FILE 21152 --header=FILE[:TEMPLATE] 21153 instantiate the configuration header FILE 21154 21155Configuration files: 21156$config_files 21157 21158Configuration headers: 21159$config_headers 21160 21161Configuration commands: 21162$config_commands 21163 21164Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>." 21165 21166_ACEOF 21167ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21168ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21170ac_cs_config='$ac_cs_config_escaped' 21171ac_cs_version="\\ 21172xf86-video-savage config.status 2.4.1 21173configured by $0, generated by GNU Autoconf 2.72, 21174 with options \\"\$ac_cs_config\\" 21175 21176Copyright (C) 2023 Free Software Foundation, Inc. 21177This config.status script is free software; the Free Software Foundation 21178gives unlimited permission to copy, distribute and modify it." 21179 21180ac_pwd='$ac_pwd' 21181srcdir='$srcdir' 21182INSTALL='$INSTALL' 21183MKDIR_P='$MKDIR_P' 21184AWK='$AWK' 21185test -n "\$AWK" || AWK=awk 21186_ACEOF 21187 21188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21189# The default lists apply if the user does not specify any file. 21190ac_need_defaults=: 21191while test $# != 0 21192do 21193 case $1 in 21194 --*=?*) 21195 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21197 ac_shift=: 21198 ;; 21199 --*=) 21200 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21201 ac_optarg= 21202 ac_shift=: 21203 ;; 21204 *) 21205 ac_option=$1 21206 ac_optarg=$2 21207 ac_shift=shift 21208 ;; 21209 esac 21210 21211 case $ac_option in 21212 # Handling of the options. 21213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21214 ac_cs_recheck=: ;; 21215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21216 printf "%s\n" "$ac_cs_version"; exit ;; 21217 --config | --confi | --conf | --con | --co | --c ) 21218 printf "%s\n" "$ac_cs_config"; exit ;; 21219 --debug | --debu | --deb | --de | --d | -d ) 21220 debug=: ;; 21221 --file | --fil | --fi | --f ) 21222 $ac_shift 21223 case $ac_optarg in 21224 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21225 '') as_fn_error $? "missing file argument" ;; 21226 esac 21227 as_fn_append CONFIG_FILES " '$ac_optarg'" 21228 ac_need_defaults=false;; 21229 --header | --heade | --head | --hea ) 21230 $ac_shift 21231 case $ac_optarg in 21232 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21233 esac 21234 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21235 ac_need_defaults=false;; 21236 --he | --h) 21237 # Conflict between --help and --header 21238 as_fn_error $? "ambiguous option: '$1' 21239Try '$0 --help' for more information.";; 21240 --help | --hel | -h ) 21241 printf "%s\n" "$ac_cs_usage"; exit ;; 21242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21243 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21244 ac_cs_silent=: ;; 21245 21246 # This is an error. 21247 -*) as_fn_error $? "unrecognized option: '$1' 21248Try '$0 --help' for more information." ;; 21249 21250 *) as_fn_append ac_config_targets " $1" 21251 ac_need_defaults=false ;; 21252 21253 esac 21254 shift 21255done 21256 21257ac_configure_extra_args= 21258 21259if $ac_cs_silent; then 21260 exec 6>/dev/null 21261 ac_configure_extra_args="$ac_configure_extra_args --silent" 21262fi 21263 21264_ACEOF 21265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21266if \$ac_cs_recheck; then 21267 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21268 shift 21269 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21270 CONFIG_SHELL='$SHELL' 21271 export CONFIG_SHELL 21272 exec "\$@" 21273fi 21274 21275_ACEOF 21276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21277exec 5>>config.log 21278{ 21279 echo 21280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21281## Running $as_me. ## 21282_ASBOX 21283 printf "%s\n" "$ac_log" 21284} >&5 21285 21286_ACEOF 21287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21288# 21289# INIT-COMMANDS 21290# 21291AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21292 21293 21294# The HP-UX ksh and POSIX shell print the target directory to stdout 21295# if CDPATH is set. 21296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21297 21298sed_quote_subst='$sed_quote_subst' 21299double_quote_subst='$double_quote_subst' 21300delay_variable_subst='$delay_variable_subst' 21301macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21302macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21303enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21304enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21305pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21306enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21307shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21308SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21309ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21310PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21311host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21312host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21313host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21314build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21315build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21316build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21317SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21318Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21319GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21320EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21321FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21322LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21323NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21324LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21325max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21326ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21327exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21328lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21329lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21330lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21331lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21332lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21333reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21334reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21335FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21336OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21337deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21338file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21339file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21340want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21341DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21342sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21343AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21344lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21345AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21346archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21347STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21348RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21349old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21350old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21351old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21352lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21353CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21354CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21355compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21356GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21357lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21358lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21359lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21360lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21361lt_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"`' 21362lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21363nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21364lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21365lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21366objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21367MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21368lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21369lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21370lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21371lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21372lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21373need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21374MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21375DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21376NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21377LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21378OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21379OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21380libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21381shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21382extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21383archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21384enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21385export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21386whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21387compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21388old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21389old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21390archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21391archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21392module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21393module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21394with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21395allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21396no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21397hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21398hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21399hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21400hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21401hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21402hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21403hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21404inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21405link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21406always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21407export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21408exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21409include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21410prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21411postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21412file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21413variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21414need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21415need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21416version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21417runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21418shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21419shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21420libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21421library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21422soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21423install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21424postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21425postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21426finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21427finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21428hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21429sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21430configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21431configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21432hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21433enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21434enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21435enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21436old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21437striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21438 21439LTCC='$LTCC' 21440LTCFLAGS='$LTCFLAGS' 21441compiler='$compiler_DEFAULT' 21442 21443# A function that is used when there is no print builtin or printf. 21444func_fallback_echo () 21445{ 21446 eval 'cat <<_LTECHO_EOF 21447\$1 21448_LTECHO_EOF' 21449} 21450 21451# Quote evaled strings. 21452for var in SHELL \ 21453ECHO \ 21454PATH_SEPARATOR \ 21455SED \ 21456GREP \ 21457EGREP \ 21458FGREP \ 21459LD \ 21460NM \ 21461LN_S \ 21462lt_SP2NL \ 21463lt_NL2SP \ 21464reload_flag \ 21465FILECMD \ 21466OBJDUMP \ 21467deplibs_check_method \ 21468file_magic_cmd \ 21469file_magic_glob \ 21470want_nocaseglob \ 21471DLLTOOL \ 21472sharedlib_from_linklib_cmd \ 21473AR \ 21474archiver_list_spec \ 21475STRIP \ 21476RANLIB \ 21477CC \ 21478CFLAGS \ 21479compiler \ 21480lt_cv_sys_global_symbol_pipe \ 21481lt_cv_sys_global_symbol_to_cdecl \ 21482lt_cv_sys_global_symbol_to_import \ 21483lt_cv_sys_global_symbol_to_c_name_address \ 21484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21485lt_cv_nm_interface \ 21486nm_file_list_spec \ 21487lt_cv_truncate_bin \ 21488lt_prog_compiler_no_builtin_flag \ 21489lt_prog_compiler_pic \ 21490lt_prog_compiler_wl \ 21491lt_prog_compiler_static \ 21492lt_cv_prog_compiler_c_o \ 21493need_locks \ 21494MANIFEST_TOOL \ 21495DSYMUTIL \ 21496NMEDIT \ 21497LIPO \ 21498OTOOL \ 21499OTOOL64 \ 21500shrext_cmds \ 21501export_dynamic_flag_spec \ 21502whole_archive_flag_spec \ 21503compiler_needs_object \ 21504with_gnu_ld \ 21505allow_undefined_flag \ 21506no_undefined_flag \ 21507hardcode_libdir_flag_spec \ 21508hardcode_libdir_separator \ 21509exclude_expsyms \ 21510include_expsyms \ 21511file_list_spec \ 21512variables_saved_for_relink \ 21513libname_spec \ 21514library_names_spec \ 21515soname_spec \ 21516install_override_mode \ 21517finish_eval \ 21518old_striplib \ 21519striplib; do 21520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21521 *[\\\\\\\`\\"\\\$]*) 21522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21523 ;; 21524 *) 21525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21526 ;; 21527 esac 21528done 21529 21530# Double-quote double-evaled strings. 21531for var in reload_cmds \ 21532old_postinstall_cmds \ 21533old_postuninstall_cmds \ 21534old_archive_cmds \ 21535extract_expsyms_cmds \ 21536old_archive_from_new_cmds \ 21537old_archive_from_expsyms_cmds \ 21538archive_cmds \ 21539archive_expsym_cmds \ 21540module_cmds \ 21541module_expsym_cmds \ 21542export_symbols_cmds \ 21543prelink_cmds \ 21544postlink_cmds \ 21545postinstall_cmds \ 21546postuninstall_cmds \ 21547finish_cmds \ 21548sys_lib_search_path_spec \ 21549configure_time_dlsearch_path \ 21550configure_time_lt_sys_library_path; do 21551 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21552 *[\\\\\\\`\\"\\\$]*) 21553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21554 ;; 21555 *) 21556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21557 ;; 21558 esac 21559done 21560 21561ac_aux_dir='$ac_aux_dir' 21562 21563# See if we are running on zsh, and set the options that allow our 21564# commands through without removal of \ escapes INIT. 21565if test -n "\${ZSH_VERSION+set}"; then 21566 setopt NO_GLOB_SUBST 21567fi 21568 21569 21570 PACKAGE='$PACKAGE' 21571 VERSION='$VERSION' 21572 RM='$RM' 21573 ofile='$ofile' 21574 21575 21576 21577 21578_ACEOF 21579 21580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21581 21582# Handling of arguments. 21583for ac_config_target in $ac_config_targets 21584do 21585 case $ac_config_target in 21586 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21587 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21588 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21589 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21590 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21591 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21592 21593 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21594 esac 21595done 21596 21597 21598# If the user did not use the arguments to specify the items to instantiate, 21599# then the envvar interface is used. Set only those that are not. 21600# We use the long form for the default assignment because of an extremely 21601# bizarre bug on SunOS 4.1.3. 21602if $ac_need_defaults; then 21603 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21604 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21605 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21606fi 21607 21608# Have a temporary directory for convenience. Make it in the build tree 21609# simply because there is no reason against having it here, and in addition, 21610# creating and moving files from /tmp can sometimes cause problems. 21611# Hook for its removal unless debugging. 21612# Note that there is a small window in which the directory will not be cleaned: 21613# after its creation but before its name has been assigned to '$tmp'. 21614$debug || 21615{ 21616 tmp= ac_tmp= 21617 trap 'exit_status=$? 21618 : "${ac_tmp:=$tmp}" 21619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21620' 0 21621 trap 'as_fn_exit 1' 1 2 13 15 21622} 21623# Create a (secure) tmp directory for tmp files. 21624 21625{ 21626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21627 test -d "$tmp" 21628} || 21629{ 21630 tmp=./conf$$-$RANDOM 21631 (umask 077 && mkdir "$tmp") 21632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21633ac_tmp=$tmp 21634 21635# Set up the scripts for CONFIG_FILES section. 21636# No need to generate them if there are no CONFIG_FILES. 21637# This happens for instance with './config.status config.h'. 21638if test -n "$CONFIG_FILES"; then 21639 21640 21641ac_cr=`echo X | tr X '\015'` 21642# On cygwin, bash can eat \r inside `` if the user requested igncr. 21643# But we know of no other shell where ac_cr would be empty at this 21644# point, so we can use a bashism as a fallback. 21645if test "x$ac_cr" = x; then 21646 eval ac_cr=\$\'\\r\' 21647fi 21648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21650 ac_cs_awk_cr='\\r' 21651else 21652 ac_cs_awk_cr=$ac_cr 21653fi 21654 21655echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21656_ACEOF 21657 21658 21659{ 21660 echo "cat >conf$$subs.awk <<_ACEOF" && 21661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21662 echo "_ACEOF" 21663} >conf$$subs.sh || 21664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21665ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21666ac_delim='%!_!# ' 21667for ac_last_try in false false false false false :; do 21668 . ./conf$$subs.sh || 21669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21670 21671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21672 if test $ac_delim_n = $ac_delim_num; then 21673 break 21674 elif $ac_last_try; then 21675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21676 else 21677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21678 fi 21679done 21680rm -f conf$$subs.sh 21681 21682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21683cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21684_ACEOF 21685sed -n ' 21686h 21687s/^/S["/; s/!.*/"]=/ 21688p 21689g 21690s/^[^!]*!// 21691:repl 21692t repl 21693s/'"$ac_delim"'$// 21694t delim 21695:nl 21696h 21697s/\(.\{148\}\)..*/\1/ 21698t more1 21699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21700p 21701n 21702b repl 21703:more1 21704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21705p 21706g 21707s/.\{148\}// 21708t nl 21709:delim 21710h 21711s/\(.\{148\}\)..*/\1/ 21712t more2 21713s/["\\]/\\&/g; s/^/"/; s/$/"/ 21714p 21715b 21716:more2 21717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21718p 21719g 21720s/.\{148\}// 21721t delim 21722' <conf$$subs.awk | sed ' 21723/^[^""]/{ 21724 N 21725 s/\n// 21726} 21727' >>$CONFIG_STATUS || ac_write_fail=1 21728rm -f conf$$subs.awk 21729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21730_ACAWK 21731cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21732 for (key in S) S_is_set[key] = 1 21733 FS = "" 21734 21735} 21736{ 21737 line = $ 0 21738 nfields = split(line, field, "@") 21739 substed = 0 21740 len = length(field[1]) 21741 for (i = 2; i < nfields; i++) { 21742 key = field[i] 21743 keylen = length(key) 21744 if (S_is_set[key]) { 21745 value = S[key] 21746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21747 len += length(value) + length(field[++i]) 21748 substed = 1 21749 } else 21750 len += 1 + keylen 21751 } 21752 21753 print line 21754} 21755 21756_ACAWK 21757_ACEOF 21758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21761else 21762 cat 21763fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21765_ACEOF 21766 21767# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21768# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21769# trailing colons and then remove the whole line if VPATH becomes empty 21770# (actually we leave an empty line to preserve line numbers). 21771if test "x$srcdir" = x.; then 21772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21773h 21774s/// 21775s/^/:/ 21776s/[ ]*$/:/ 21777s/:\$(srcdir):/:/g 21778s/:\${srcdir}:/:/g 21779s/:@srcdir@:/:/g 21780s/^:*// 21781s/:*$// 21782x 21783s/\(=[ ]*\).*/\1/ 21784G 21785s/\n// 21786s/^[^=]*=[ ]*$// 21787}' 21788fi 21789 21790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21791fi # test -n "$CONFIG_FILES" 21792 21793# Set up the scripts for CONFIG_HEADERS section. 21794# No need to generate them if there are no CONFIG_HEADERS. 21795# This happens for instance with './config.status Makefile'. 21796if test -n "$CONFIG_HEADERS"; then 21797cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21798BEGIN { 21799_ACEOF 21800 21801# Transform confdefs.h into an awk script 'defines.awk', embedded as 21802# here-document in config.status, that substitutes the proper values into 21803# config.h.in to produce config.h. 21804 21805# Create a delimiter string that does not exist in confdefs.h, to ease 21806# handling of long lines. 21807ac_delim='%!_!# ' 21808for ac_last_try in false false :; do 21809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21810 if test -z "$ac_tt"; then 21811 break 21812 elif $ac_last_try; then 21813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21814 else 21815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21816 fi 21817done 21818 21819# For the awk script, D is an array of macro values keyed by name, 21820# likewise P contains macro parameters if any. Preserve backslash 21821# newline sequences. 21822 21823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21824sed -n ' 21825s/.\{148\}/&'"$ac_delim"'/g 21826t rset 21827:rset 21828s/^[ ]*#[ ]*define[ ][ ]*/ / 21829t def 21830d 21831:def 21832s/\\$// 21833t bsnl 21834s/["\\]/\\&/g 21835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21836D["\1"]=" \3"/p 21837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21838d 21839:bsnl 21840s/["\\]/\\&/g 21841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21842D["\1"]=" \3\\\\\\n"\\/p 21843t cont 21844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21845t cont 21846d 21847:cont 21848n 21849s/.\{148\}/&'"$ac_delim"'/g 21850t clear 21851:clear 21852s/\\$// 21853t bsnlc 21854s/["\\]/\\&/g; s/^/"/; s/$/"/p 21855d 21856:bsnlc 21857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21858b cont 21859' <confdefs.h | sed ' 21860s/'"$ac_delim"'/"\\\ 21861"/g' >>$CONFIG_STATUS || ac_write_fail=1 21862 21863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21864 for (key in D) D_is_set[key] = 1 21865 FS = "" 21866} 21867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21868 line = \$ 0 21869 split(line, arg, " ") 21870 if (arg[1] == "#") { 21871 defundef = arg[2] 21872 mac1 = arg[3] 21873 } else { 21874 defundef = substr(arg[1], 2) 21875 mac1 = arg[2] 21876 } 21877 split(mac1, mac2, "(") #) 21878 macro = mac2[1] 21879 prefix = substr(line, 1, index(line, defundef) - 1) 21880 if (D_is_set[macro]) { 21881 # Preserve the white space surrounding the "#". 21882 print prefix "define", macro P[macro] D[macro] 21883 next 21884 } else { 21885 # Replace #undef with comments. This is necessary, for example, 21886 # in the case of _POSIX_SOURCE, which is predefined and required 21887 # on some systems where configure will not decide to define it. 21888 if (defundef == "undef") { 21889 print "/*", prefix defundef, macro, "*/" 21890 next 21891 } 21892 } 21893} 21894{ print } 21895_ACAWK 21896_ACEOF 21897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21899fi # test -n "$CONFIG_HEADERS" 21900 21901 21902eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21903shift 21904for ac_tag 21905do 21906 case $ac_tag in 21907 :[FHLC]) ac_mode=$ac_tag; continue;; 21908 esac 21909 case $ac_mode$ac_tag in 21910 :[FHL]*:*);; 21911 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21912 :[FH]-) ac_tag=-:-;; 21913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21914 esac 21915 ac_save_IFS=$IFS 21916 IFS=: 21917 set x $ac_tag 21918 IFS=$ac_save_IFS 21919 shift 21920 ac_file=$1 21921 shift 21922 21923 case $ac_mode in 21924 :L) ac_source=$1;; 21925 :[FH]) 21926 ac_file_inputs= 21927 for ac_f 21928 do 21929 case $ac_f in 21930 -) ac_f="$ac_tmp/stdin";; 21931 *) # Look for the file first in the build tree, then in the source tree 21932 # (if the path is not absolute). The absolute path cannot be DOS-style, 21933 # because $ac_f cannot contain ':'. 21934 test -f "$ac_f" || 21935 case $ac_f in 21936 [\\/$]*) false;; 21937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21938 esac || 21939 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21940 esac 21941 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21942 as_fn_append ac_file_inputs " '$ac_f'" 21943 done 21944 21945 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21946 # use $as_me), people would be surprised to read: 21947 # /* config.h. Generated by config.status. */ 21948 configure_input='Generated from '` 21949 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21950 `' by configure.' 21951 if test x"$ac_file" != x-; then 21952 configure_input="$ac_file. $configure_input" 21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21954printf "%s\n" "$as_me: creating $ac_file" >&6;} 21955 fi 21956 # Neutralize special characters interpreted by sed in replacement strings. 21957 case $configure_input in #( 21958 *\&* | *\|* | *\\* ) 21959 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21960 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21961 *) ac_sed_conf_input=$configure_input;; 21962 esac 21963 21964 case $ac_tag in 21965 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21967 esac 21968 ;; 21969 esac 21970 21971 ac_dir=`$as_dirname -- "$ac_file" || 21972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21973 X"$ac_file" : 'X\(//\)[^/]' \| \ 21974 X"$ac_file" : 'X\(//\)$' \| \ 21975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21976printf "%s\n" X"$ac_file" | 21977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21978 s//\1/ 21979 q 21980 } 21981 /^X\(\/\/\)[^/].*/{ 21982 s//\1/ 21983 q 21984 } 21985 /^X\(\/\/\)$/{ 21986 s//\1/ 21987 q 21988 } 21989 /^X\(\/\).*/{ 21990 s//\1/ 21991 q 21992 } 21993 s/.*/./; q'` 21994 as_dir="$ac_dir"; as_fn_mkdir_p 21995 ac_builddir=. 21996 21997case "$ac_dir" in 21998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21999*) 22000 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22001 # A ".." for each directory in $ac_dir_suffix. 22002 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22003 case $ac_top_builddir_sub in 22004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22006 esac ;; 22007esac 22008ac_abs_top_builddir=$ac_pwd 22009ac_abs_builddir=$ac_pwd$ac_dir_suffix 22010# for backward compatibility: 22011ac_top_builddir=$ac_top_build_prefix 22012 22013case $srcdir in 22014 .) # We are building in place. 22015 ac_srcdir=. 22016 ac_top_srcdir=$ac_top_builddir_sub 22017 ac_abs_top_srcdir=$ac_pwd ;; 22018 [\\/]* | ?:[\\/]* ) # Absolute name. 22019 ac_srcdir=$srcdir$ac_dir_suffix; 22020 ac_top_srcdir=$srcdir 22021 ac_abs_top_srcdir=$srcdir ;; 22022 *) # Relative name. 22023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22024 ac_top_srcdir=$ac_top_build_prefix$srcdir 22025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22026esac 22027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22028 22029 22030 case $ac_mode in 22031 :F) 22032 # 22033 # CONFIG_FILE 22034 # 22035 22036 case $INSTALL in 22037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22039 esac 22040 ac_MKDIR_P=$MKDIR_P 22041 case $MKDIR_P in 22042 [\\/$]* | ?:[\\/]* ) ;; 22043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22044 esac 22045_ACEOF 22046 22047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22048# If the template does not know about datarootdir, expand it. 22049# FIXME: This hack should be removed a few years after 2.60. 22050ac_datarootdir_hack=; ac_datarootdir_seen= 22051ac_sed_dataroot=' 22052/datarootdir/ { 22053 p 22054 q 22055} 22056/@datadir@/p 22057/@docdir@/p 22058/@infodir@/p 22059/@localedir@/p 22060/@mandir@/p' 22061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22062*datarootdir*) ac_datarootdir_seen=yes;; 22063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22065printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22066_ACEOF 22067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22068 ac_datarootdir_hack=' 22069 s&@datadir@&$datadir&g 22070 s&@docdir@&$docdir&g 22071 s&@infodir@&$infodir&g 22072 s&@localedir@&$localedir&g 22073 s&@mandir@&$mandir&g 22074 s&\\\${datarootdir}&$datarootdir&g' ;; 22075esac 22076_ACEOF 22077 22078# Neutralize VPATH when '$srcdir' = '.'. 22079# Shell code in configure.ac might set extrasub. 22080# FIXME: do we really want to maintain this feature? 22081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22082ac_sed_extra="$ac_vpsub 22083$extrasub 22084_ACEOF 22085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22086:t 22087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22088s|@configure_input@|$ac_sed_conf_input|;t t 22089s&@top_builddir@&$ac_top_builddir_sub&;t t 22090s&@top_build_prefix@&$ac_top_build_prefix&;t t 22091s&@srcdir@&$ac_srcdir&;t t 22092s&@abs_srcdir@&$ac_abs_srcdir&;t t 22093s&@top_srcdir@&$ac_top_srcdir&;t t 22094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22095s&@builddir@&$ac_builddir&;t t 22096s&@abs_builddir@&$ac_abs_builddir&;t t 22097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22098s&@INSTALL@&$ac_INSTALL&;t t 22099s&@MKDIR_P@&$ac_MKDIR_P&;t t 22100$ac_datarootdir_hack 22101" 22102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22104 22105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22108 "$ac_tmp/out"`; test -z "$ac_out"; } && 22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22110which seems to be undefined. Please make sure it is defined" >&5 22111printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22112which seems to be undefined. Please make sure it is defined" >&2;} 22113 22114 rm -f "$ac_tmp/stdin" 22115 case $ac_file in 22116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22118 esac \ 22119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22120 ;; 22121 :H) 22122 # 22123 # CONFIG_HEADER 22124 # 22125 if test x"$ac_file" != x-; then 22126 { 22127 printf "%s\n" "/* $configure_input */" >&1 \ 22128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22129 } >"$ac_tmp/config.h" \ 22130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22133printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22134 else 22135 rm -f "$ac_file" 22136 mv "$ac_tmp/config.h" "$ac_file" \ 22137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22138 fi 22139 else 22140 printf "%s\n" "/* $configure_input */" >&1 \ 22141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22142 || as_fn_error $? "could not create -" "$LINENO" 5 22143 fi 22144# Compute "$ac_file"'s index in $config_headers. 22145_am_arg="$ac_file" 22146_am_stamp_count=1 22147for _am_header in $config_headers :; do 22148 case $_am_header in 22149 $_am_arg | $_am_arg:* ) 22150 break ;; 22151 * ) 22152 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22153 esac 22154done 22155echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22156$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22157 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22158 X"$_am_arg" : 'X\(//\)$' \| \ 22159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22160printf "%s\n" X"$_am_arg" | 22161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22162 s//\1/ 22163 q 22164 } 22165 /^X\(\/\/\)[^/].*/{ 22166 s//\1/ 22167 q 22168 } 22169 /^X\(\/\/\)$/{ 22170 s//\1/ 22171 q 22172 } 22173 /^X\(\/\).*/{ 22174 s//\1/ 22175 q 22176 } 22177 s/.*/./; q'`/stamp-h$_am_stamp_count 22178 ;; 22179 22180 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22181printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22182 ;; 22183 esac 22184 22185 22186 case $ac_file$ac_mode in 22187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22188 # Older Autoconf quotes --file arguments for eval, but not when files 22189 # are listed without --file. Let's play safe and only enable the eval 22190 # if we detect the quoting. 22191 # TODO: see whether this extra hack can be removed once we start 22192 # requiring Autoconf 2.70 or later. 22193 case $CONFIG_FILES in #( 22194 *\'*) : 22195 eval set x "$CONFIG_FILES" ;; #( 22196 *) : 22197 set x $CONFIG_FILES ;; #( 22198 *) : 22199 ;; 22200esac 22201 shift 22202 # Used to flag and report bootstrapping failures. 22203 am_rc=0 22204 for am_mf 22205 do 22206 # Strip MF so we end up with the name of the file. 22207 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22208 # Check whether this is an Automake generated Makefile which includes 22209 # dependency-tracking related rules and includes. 22210 # Grep'ing the whole file directly is not great: AIX grep has a line 22211 # limit of 2048, but all sed's we know have understand at least 4000. 22212 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22213 || continue 22214 am_dirpart=`$as_dirname -- "$am_mf" || 22215$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22216 X"$am_mf" : 'X\(//\)[^/]' \| \ 22217 X"$am_mf" : 'X\(//\)$' \| \ 22218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22219printf "%s\n" X"$am_mf" | 22220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\(\/\/\)[^/].*/{ 22225 s//\1/ 22226 q 22227 } 22228 /^X\(\/\/\)$/{ 22229 s//\1/ 22230 q 22231 } 22232 /^X\(\/\).*/{ 22233 s//\1/ 22234 q 22235 } 22236 s/.*/./; q'` 22237 am_filepart=`$as_basename -- "$am_mf" || 22238$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22239 X"$am_mf" : 'X\(//\)$' \| \ 22240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22241printf "%s\n" X/"$am_mf" | 22242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22243 s//\1/ 22244 q 22245 } 22246 /^X\/\(\/\/\)$/{ 22247 s//\1/ 22248 q 22249 } 22250 /^X\/\(\/\).*/{ 22251 s//\1/ 22252 q 22253 } 22254 s/.*/./; q'` 22255 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22256 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22257 | $MAKE -f - am--depfiles" >&5 22258 (cd "$am_dirpart" \ 22259 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22260 | $MAKE -f - am--depfiles) >&5 2>&5 22261 ac_status=$? 22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22263 (exit $ac_status); } || am_rc=$? 22264 done 22265 if test $am_rc -ne 0; then 22266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22267printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22268as_fn_error $? "Something went wrong bootstrapping makefile fragments 22269 for automatic dependency tracking. If GNU make was not used, consider 22270 re-running the configure script with MAKE=\"gmake\" (or whatever is 22271 necessary). You can also try re-running configure with the 22272 '--disable-dependency-tracking' option to at least be able to build 22273 the package (albeit without support for automatic dependency tracking). 22274See 'config.log' for more details" "$LINENO" 5; } 22275 fi 22276 { am_dirpart=; unset am_dirpart;} 22277 { am_filepart=; unset am_filepart;} 22278 { am_mf=; unset am_mf;} 22279 { am_rc=; unset am_rc;} 22280 rm -f conftest-deps.mk 22281} 22282 ;; 22283 "libtool":C) 22284 22285 # See if we are running on zsh, and set the options that allow our 22286 # commands through without removal of \ escapes. 22287 if test -n "${ZSH_VERSION+set}"; then 22288 setopt NO_GLOB_SUBST 22289 fi 22290 22291 cfgfile=${ofile}T 22292 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22293 $RM "$cfgfile" 22294 22295 cat <<_LT_EOF >> "$cfgfile" 22296#! $SHELL 22297# Generated automatically by $as_me ($PACKAGE) $VERSION 22298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22299# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22300 22301# Provide generalized library-building support services. 22302# Written by Gordon Matzigkeit, 1996 22303 22304# Copyright (C) 2014 Free Software Foundation, Inc. 22305# This is free software; see the source for copying conditions. There is NO 22306# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22307 22308# GNU Libtool is free software; you can redistribute it and/or modify 22309# it under the terms of the GNU General Public License as published by 22310# the Free Software Foundation; either version 2 of of the License, or 22311# (at your option) any later version. 22312# 22313# As a special exception to the GNU General Public License, if you 22314# distribute this file as part of a program or library that is built 22315# using GNU Libtool, you may include this file under the same 22316# distribution terms that you use for the rest of that program. 22317# 22318# GNU Libtool is distributed in the hope that it will be useful, but 22319# WITHOUT ANY WARRANTY; without even the implied warranty of 22320# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22321# GNU General Public License for more details. 22322# 22323# You should have received a copy of the GNU General Public License 22324# along with this program. If not, see <http://www.gnu.org/licenses/>. 22325 22326 22327# The names of the tagged configurations supported by this script. 22328available_tags='' 22329 22330# Configured defaults for sys_lib_dlsearch_path munging. 22331: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22332 22333# ### BEGIN LIBTOOL CONFIG 22334 22335# Which release of libtool.m4 was used? 22336macro_version=$macro_version 22337macro_revision=$macro_revision 22338 22339# Whether or not to build static libraries. 22340build_old_libs=$enable_static 22341 22342# Whether or not to build shared libraries. 22343build_libtool_libs=$enable_shared 22344 22345# What type of objects to build. 22346pic_mode=$pic_mode 22347 22348# Whether or not to optimize for fast installation. 22349fast_install=$enable_fast_install 22350 22351# Shared archive member basename,for filename based shared library versioning on AIX. 22352shared_archive_member_spec=$shared_archive_member_spec 22353 22354# Shell to use when invoking shell scripts. 22355SHELL=$lt_SHELL 22356 22357# An echo program that protects backslashes. 22358ECHO=$lt_ECHO 22359 22360# The PATH separator for the build system. 22361PATH_SEPARATOR=$lt_PATH_SEPARATOR 22362 22363# The host system. 22364host_alias=$host_alias 22365host=$host 22366host_os=$host_os 22367 22368# The build system. 22369build_alias=$build_alias 22370build=$build 22371build_os=$build_os 22372 22373# A sed program that does not truncate output. 22374SED=$lt_SED 22375 22376# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22377Xsed="\$SED -e 1s/^X//" 22378 22379# A grep program that handles long lines. 22380GREP=$lt_GREP 22381 22382# An ERE matcher. 22383EGREP=$lt_EGREP 22384 22385# A literal string matcher. 22386FGREP=$lt_FGREP 22387 22388# A BSD- or MS-compatible name lister. 22389NM=$lt_NM 22390 22391# Whether we need soft or hard links. 22392LN_S=$lt_LN_S 22393 22394# What is the maximum length of a command? 22395max_cmd_len=$max_cmd_len 22396 22397# Object file suffix (normally "o"). 22398objext=$ac_objext 22399 22400# Executable file suffix (normally ""). 22401exeext=$exeext 22402 22403# whether the shell understands "unset". 22404lt_unset=$lt_unset 22405 22406# turn spaces into newlines. 22407SP2NL=$lt_lt_SP2NL 22408 22409# turn newlines into spaces. 22410NL2SP=$lt_lt_NL2SP 22411 22412# convert \$build file names to \$host format. 22413to_host_file_cmd=$lt_cv_to_host_file_cmd 22414 22415# convert \$build files to toolchain format. 22416to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22417 22418# A file(cmd) program that detects file types. 22419FILECMD=$lt_FILECMD 22420 22421# An object symbol dumper. 22422OBJDUMP=$lt_OBJDUMP 22423 22424# Method to check whether dependent libraries are shared objects. 22425deplibs_check_method=$lt_deplibs_check_method 22426 22427# Command to use when deplibs_check_method = "file_magic". 22428file_magic_cmd=$lt_file_magic_cmd 22429 22430# How to find potential files when deplibs_check_method = "file_magic". 22431file_magic_glob=$lt_file_magic_glob 22432 22433# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22434want_nocaseglob=$lt_want_nocaseglob 22435 22436# DLL creation program. 22437DLLTOOL=$lt_DLLTOOL 22438 22439# Command to associate shared and link libraries. 22440sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22441 22442# The archiver. 22443AR=$lt_AR 22444 22445# Flags to create an archive (by configure). 22446lt_ar_flags=$lt_ar_flags 22447 22448# Flags to create an archive. 22449AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22450 22451# How to feed a file listing to the archiver. 22452archiver_list_spec=$lt_archiver_list_spec 22453 22454# A symbol stripping program. 22455STRIP=$lt_STRIP 22456 22457# Commands used to install an old-style archive. 22458RANLIB=$lt_RANLIB 22459old_postinstall_cmds=$lt_old_postinstall_cmds 22460old_postuninstall_cmds=$lt_old_postuninstall_cmds 22461 22462# Whether to use a lock for old archive extraction. 22463lock_old_archive_extraction=$lock_old_archive_extraction 22464 22465# A C compiler. 22466LTCC=$lt_CC 22467 22468# LTCC compiler flags. 22469LTCFLAGS=$lt_CFLAGS 22470 22471# Take the output of nm and produce a listing of raw symbols and C names. 22472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22473 22474# Transform the output of nm in a proper C declaration. 22475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22476 22477# Transform the output of nm into a list of symbols to manually relocate. 22478global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22479 22480# Transform the output of nm in a C name address pair. 22481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22482 22483# Transform the output of nm in a C name address pair when lib prefix is needed. 22484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22485 22486# The name lister interface. 22487nm_interface=$lt_lt_cv_nm_interface 22488 22489# Specify filename containing input files for \$NM. 22490nm_file_list_spec=$lt_nm_file_list_spec 22491 22492# The root where to search for dependent libraries,and where our libraries should be installed. 22493lt_sysroot=$lt_sysroot 22494 22495# Command to truncate a binary pipe. 22496lt_truncate_bin=$lt_lt_cv_truncate_bin 22497 22498# The name of the directory that contains temporary libtool files. 22499objdir=$objdir 22500 22501# Used to examine libraries when file_magic_cmd begins with "file". 22502MAGIC_CMD=$MAGIC_CMD 22503 22504# Must we lock files when doing compilation? 22505need_locks=$lt_need_locks 22506 22507# Manifest tool. 22508MANIFEST_TOOL=$lt_MANIFEST_TOOL 22509 22510# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22511DSYMUTIL=$lt_DSYMUTIL 22512 22513# Tool to change global to local symbols on Mac OS X. 22514NMEDIT=$lt_NMEDIT 22515 22516# Tool to manipulate fat objects and archives on Mac OS X. 22517LIPO=$lt_LIPO 22518 22519# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22520OTOOL=$lt_OTOOL 22521 22522# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22523OTOOL64=$lt_OTOOL64 22524 22525# Old archive suffix (normally "a"). 22526libext=$libext 22527 22528# Shared library suffix (normally ".so"). 22529shrext_cmds=$lt_shrext_cmds 22530 22531# The commands to extract the exported symbol list from a shared archive. 22532extract_expsyms_cmds=$lt_extract_expsyms_cmds 22533 22534# Variables whose values should be saved in libtool wrapper scripts and 22535# restored at link time. 22536variables_saved_for_relink=$lt_variables_saved_for_relink 22537 22538# Do we need the "lib" prefix for modules? 22539need_lib_prefix=$need_lib_prefix 22540 22541# Do we need a version for libraries? 22542need_version=$need_version 22543 22544# Library versioning type. 22545version_type=$version_type 22546 22547# Shared library runtime path variable. 22548runpath_var=$runpath_var 22549 22550# Shared library path variable. 22551shlibpath_var=$shlibpath_var 22552 22553# Is shlibpath searched before the hard-coded library search path? 22554shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22555 22556# Format of library name prefix. 22557libname_spec=$lt_libname_spec 22558 22559# List of archive names. First name is the real one, the rest are links. 22560# The last name is the one that the linker finds with -lNAME 22561library_names_spec=$lt_library_names_spec 22562 22563# The coded name of the library, if different from the real name. 22564soname_spec=$lt_soname_spec 22565 22566# Permission mode override for installation of shared libraries. 22567install_override_mode=$lt_install_override_mode 22568 22569# Command to use after installation of a shared archive. 22570postinstall_cmds=$lt_postinstall_cmds 22571 22572# Command to use after uninstallation of a shared archive. 22573postuninstall_cmds=$lt_postuninstall_cmds 22574 22575# Commands used to finish a libtool library installation in a directory. 22576finish_cmds=$lt_finish_cmds 22577 22578# As "finish_cmds", except a single script fragment to be evaled but 22579# not shown. 22580finish_eval=$lt_finish_eval 22581 22582# Whether we should hardcode library paths into libraries. 22583hardcode_into_libs=$hardcode_into_libs 22584 22585# Compile-time system search path for libraries. 22586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22587 22588# Detected run-time system search path for libraries. 22589sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22590 22591# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22592configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22593 22594# Whether dlopen is supported. 22595dlopen_support=$enable_dlopen 22596 22597# Whether dlopen of programs is supported. 22598dlopen_self=$enable_dlopen_self 22599 22600# Whether dlopen of statically linked programs is supported. 22601dlopen_self_static=$enable_dlopen_self_static 22602 22603# Commands to strip libraries. 22604old_striplib=$lt_old_striplib 22605striplib=$lt_striplib 22606 22607 22608# The linker used to build libraries. 22609LD=$lt_LD 22610 22611# How to create reloadable object files. 22612reload_flag=$lt_reload_flag 22613reload_cmds=$lt_reload_cmds 22614 22615# Commands used to build an old-style archive. 22616old_archive_cmds=$lt_old_archive_cmds 22617 22618# A language specific compiler. 22619CC=$lt_compiler 22620 22621# Is the compiler the GNU compiler? 22622with_gcc=$GCC 22623 22624# Compiler flag to turn off builtin functions. 22625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22626 22627# Additional compiler flags for building library objects. 22628pic_flag=$lt_lt_prog_compiler_pic 22629 22630# How to pass a linker flag through the compiler. 22631wl=$lt_lt_prog_compiler_wl 22632 22633# Compiler flag to prevent dynamic linking. 22634link_static_flag=$lt_lt_prog_compiler_static 22635 22636# Does compiler simultaneously support -c and -o options? 22637compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22638 22639# Whether or not to add -lc for building shared libraries. 22640build_libtool_need_lc=$archive_cmds_need_lc 22641 22642# Whether or not to disallow shared libs when runtime libs are static. 22643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22644 22645# Compiler flag to allow reflexive dlopens. 22646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22647 22648# Compiler flag to generate shared objects directly from archives. 22649whole_archive_flag_spec=$lt_whole_archive_flag_spec 22650 22651# Whether the compiler copes with passing no objects directly. 22652compiler_needs_object=$lt_compiler_needs_object 22653 22654# Create an old-style archive from a shared archive. 22655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22656 22657# Create a temporary old-style archive to link instead of a shared archive. 22658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22659 22660# Commands used to build a shared archive. 22661archive_cmds=$lt_archive_cmds 22662archive_expsym_cmds=$lt_archive_expsym_cmds 22663 22664# Commands used to build a loadable module if different from building 22665# a shared archive. 22666module_cmds=$lt_module_cmds 22667module_expsym_cmds=$lt_module_expsym_cmds 22668 22669# Whether we are building with GNU ld or not. 22670with_gnu_ld=$lt_with_gnu_ld 22671 22672# Flag that allows shared libraries with undefined symbols to be built. 22673allow_undefined_flag=$lt_allow_undefined_flag 22674 22675# Flag that enforces no undefined symbols. 22676no_undefined_flag=$lt_no_undefined_flag 22677 22678# Flag to hardcode \$libdir into a binary during linking. 22679# This must work even if \$libdir does not exist 22680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22681 22682# Whether we need a single "-rpath" flag with a separated argument. 22683hardcode_libdir_separator=$lt_hardcode_libdir_separator 22684 22685# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22686# DIR into the resulting binary. 22687hardcode_direct=$hardcode_direct 22688 22689# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22690# DIR into the resulting binary and the resulting library dependency is 22691# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22692# library is relocated. 22693hardcode_direct_absolute=$hardcode_direct_absolute 22694 22695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22696# into the resulting binary. 22697hardcode_minus_L=$hardcode_minus_L 22698 22699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22700# into the resulting binary. 22701hardcode_shlibpath_var=$hardcode_shlibpath_var 22702 22703# Set to "yes" if building a shared library automatically hardcodes DIR 22704# into the library and all subsequent libraries and executables linked 22705# against it. 22706hardcode_automatic=$hardcode_automatic 22707 22708# Set to yes if linker adds runtime paths of dependent libraries 22709# to runtime path list. 22710inherit_rpath=$inherit_rpath 22711 22712# Whether libtool must link a program against all its dependency libraries. 22713link_all_deplibs=$link_all_deplibs 22714 22715# Set to "yes" if exported symbols are required. 22716always_export_symbols=$always_export_symbols 22717 22718# The commands to list exported symbols. 22719export_symbols_cmds=$lt_export_symbols_cmds 22720 22721# Symbols that should not be listed in the preloaded symbols. 22722exclude_expsyms=$lt_exclude_expsyms 22723 22724# Symbols that must always be exported. 22725include_expsyms=$lt_include_expsyms 22726 22727# Commands necessary for linking programs (against libraries) with templates. 22728prelink_cmds=$lt_prelink_cmds 22729 22730# Commands necessary for finishing linking programs. 22731postlink_cmds=$lt_postlink_cmds 22732 22733# Specify filename containing input files. 22734file_list_spec=$lt_file_list_spec 22735 22736# How to hardcode a shared library path into an executable. 22737hardcode_action=$hardcode_action 22738 22739# ### END LIBTOOL CONFIG 22740 22741_LT_EOF 22742 22743 cat <<'_LT_EOF' >> "$cfgfile" 22744 22745# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22746 22747# func_munge_path_list VARIABLE PATH 22748# ----------------------------------- 22749# VARIABLE is name of variable containing _space_ separated list of 22750# directories to be munged by the contents of PATH, which is string 22751# having a format: 22752# "DIR[:DIR]:" 22753# string "DIR[ DIR]" will be prepended to VARIABLE 22754# ":DIR[:DIR]" 22755# string "DIR[ DIR]" will be appended to VARIABLE 22756# "DIRP[:DIRP]::[DIRA:]DIRA" 22757# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22758# "DIRA[ DIRA]" will be appended to VARIABLE 22759# "DIR[:DIR]" 22760# VARIABLE will be replaced by "DIR[ DIR]" 22761func_munge_path_list () 22762{ 22763 case x$2 in 22764 x) 22765 ;; 22766 *:) 22767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22768 ;; 22769 x:*) 22770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22771 ;; 22772 *::*) 22773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22775 ;; 22776 *) 22777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22778 ;; 22779 esac 22780} 22781 22782 22783# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22784func_cc_basename () 22785{ 22786 for cc_temp in $*""; do 22787 case $cc_temp in 22788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22790 \-*) ;; 22791 *) break;; 22792 esac 22793 done 22794 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22795} 22796 22797 22798# ### END FUNCTIONS SHARED WITH CONFIGURE 22799 22800_LT_EOF 22801 22802 case $host_os in 22803 aix3*) 22804 cat <<\_LT_EOF >> "$cfgfile" 22805# AIX sometimes has problems with the GCC collect2 program. For some 22806# reason, if we set the COLLECT_NAMES environment variable, the problems 22807# vanish in a puff of smoke. 22808if test set != "${COLLECT_NAMES+set}"; then 22809 COLLECT_NAMES= 22810 export COLLECT_NAMES 22811fi 22812_LT_EOF 22813 ;; 22814 esac 22815 22816 22817 22818ltmain=$ac_aux_dir/ltmain.sh 22819 22820 22821 # We use sed instead of cat because bash on DJGPP gets confused if 22822 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22823 # text mode, it properly converts lines to CR/LF. This bash problem 22824 # is reportedly fixed, but why not run on old versions too? 22825 $SED '$q' "$ltmain" >> "$cfgfile" \ 22826 || (rm -f "$cfgfile"; exit 1) 22827 22828 mv -f "$cfgfile" "$ofile" || 22829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22830 chmod +x "$ofile" 22831 22832 ;; 22833 22834 esac 22835done # for ac_tag 22836 22837 22838as_fn_exit 0 22839_ACEOF 22840ac_clean_files=$ac_clean_files_save 22841 22842test $ac_write_fail = 0 || 22843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22844 22845 22846# configure is writing to config.log, and then calls config.status. 22847# config.status does its own redirection, appending to config.log. 22848# Unfortunately, on DOS this fails, as config.log is still kept open 22849# by configure, so config.status won't be able to write to it; its 22850# output is simply discarded. So we exec the FD to /dev/null, 22851# effectively closing config.log, so it can be properly (re)opened and 22852# appended to by config.status. When coming back to configure, we 22853# need to make the FD available again. 22854if test "$no_create" != yes; then 22855 ac_cs_success=: 22856 ac_config_status_args= 22857 test "$silent" = yes && 22858 ac_config_status_args="$ac_config_status_args --quiet" 22859 exec 5>/dev/null 22860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22861 exec 5>>config.log 22862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22863 # would make configure fail if this is the last instruction. 22864 $ac_cs_success || as_fn_exit 1 22865fi 22866if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22868printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22869fi 22870 22871 22872