configure revision 11bf0794
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-amdgpu 1.3.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-amdgpu' 593PACKAGE_TARNAME='xf86-video-amdgpu' 594PACKAGE_VERSION='1.3.0' 595PACKAGE_STRING='xf86-video-amdgpu 1.3.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642GLAMOR_FALSE 643GLAMOR_TRUE 644LIBGLAMOR_EGL_LIBS 645LIBGLAMOR_EGL_CFLAGS 646LIBGLAMOR_LIBS 647LIBGLAMOR_CFLAGS 648LIBGL_LIBS 649LIBGL_CFLAGS 650LIBUDEV_FALSE 651LIBUDEV_TRUE 652LIBUDEV_LIBS 653LIBUDEV_CFLAGS 654configdir 655HAS_XORG_CONF_DIR_FALSE 656HAS_XORG_CONF_DIR_TRUE 657HAVE_XEXTPROTO_71_FALSE 658HAVE_XEXTPROTO_71_TRUE 659XEXT_LIBS 660XEXT_CFLAGS 661XORG_LIBS 662XORG_CFLAGS 663GBM_LIBS 664GBM_CFLAGS 665LIBDRM_AMDGPU_LIBS 666LIBDRM_AMDGPU_CFLAGS 667LIBDRM_LIBS 668LIBDRM_CFLAGS 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687LIBTOOL 688MAN_SUBSTS 689XORG_MAN_PAGE 690ADMIN_MAN_DIR 691DRIVER_MAN_DIR 692MISC_MAN_DIR 693FILE_MAN_DIR 694LIB_MAN_DIR 695APP_MAN_DIR 696ADMIN_MAN_SUFFIX 697DRIVER_MAN_SUFFIX 698MISC_MAN_SUFFIX 699FILE_MAN_SUFFIX 700LIB_MAN_SUFFIX 701APP_MAN_SUFFIX 702SED 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711INSTALL_CMD 712PKG_CONFIG_LIBDIR 713PKG_CONFIG_PATH 714PKG_CONFIG 715CHANGELOG_CMD 716STRICT_CFLAGS 717CWARNFLAGS 718BASE_CFLAGS 719EGREP 720GREP 721CPP 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__quote 730am__include 731DEPDIR 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739AM_BACKSLASH 740AM_DEFAULT_VERBOSITY 741AM_DEFAULT_V 742AM_V 743am__untar 744am__tar 745AMTAR 746am__leading_dot 747SET_MAKE 748AWK 749mkdir_p 750MKDIR_P 751INSTALL_STRIP_PROGRAM 752STRIP 753install_sh 754MAKEINFO 755AUTOHEADER 756AUTOMAKE 757AUTOCONF 758ACLOCAL 759VERSION 760PACKAGE 761CYGPATH_W 762am__isrc 763INSTALL_DATA 764INSTALL_SCRIPT 765INSTALL_PROGRAM 766target_alias 767host_alias 768build_alias 769LIBS 770ECHO_T 771ECHO_N 772ECHO_C 773DEFS 774mandir 775localedir 776libdir 777psdir 778pdfdir 779dvidir 780htmldir 781infodir 782docdir 783oldincludedir 784includedir 785runstatedir 786localstatedir 787sharedstatedir 788sysconfdir 789datadir 790datarootdir 791libexecdir 792sbindir 793bindir 794program_transform_name 795prefix 796exec_prefix 797PACKAGE_URL 798PACKAGE_BUGREPORT 799PACKAGE_STRING 800PACKAGE_VERSION 801PACKAGE_TARNAME 802PACKAGE_NAME 803PATH_SEPARATOR 804SHELL' 805ac_subst_files='' 806ac_user_opts=' 807enable_option_checking 808enable_silent_rules 809enable_largefile 810enable_dependency_tracking 811enable_selective_werror 812enable_strict_compilation 813enable_static 814enable_shared 815with_pic 816enable_fast_install 817with_aix_soname 818with_gnu_ld 819with_sysroot 820enable_libtool_lock 821with_xorg_module_dir 822with_xorg_conf_dir 823enable_udev 824enable_glamor 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834CPP 835PKG_CONFIG 836PKG_CONFIG_PATH 837PKG_CONFIG_LIBDIR 838LT_SYS_LIBRARY_PATH 839LIBDRM_CFLAGS 840LIBDRM_LIBS 841LIBDRM_AMDGPU_CFLAGS 842LIBDRM_AMDGPU_LIBS 843GBM_CFLAGS 844GBM_LIBS 845XORG_CFLAGS 846XORG_LIBS 847XEXT_CFLAGS 848XEXT_LIBS 849LIBUDEV_CFLAGS 850LIBUDEV_LIBS 851LIBGL_CFLAGS 852LIBGL_LIBS 853LIBGLAMOR_CFLAGS 854LIBGLAMOR_LIBS 855LIBGLAMOR_EGL_CFLAGS 856LIBGLAMOR_EGL_LIBS' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 # Accept the important Cygnus configure options, so we can diagnose typos. 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures xf86-video-amdgpu 1.3.0 to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root 1457 [DATAROOTDIR/doc/xf86-video-amdgpu] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of xf86-video-amdgpu 1.3.0:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-option-checking ignore unrecognized --enable/--with options 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --enable-silent-rules less verbose build output (undo: "make V=1") 1488 --disable-silent-rules verbose build output (undo: "make V=0") 1489 --disable-largefile omit support for large files 1490 --enable-dependency-tracking 1491 do not reject slow dependency extractors 1492 --disable-dependency-tracking 1493 speeds up one-time build 1494 --disable-selective-werror 1495 Turn off selective compiler errors. (default: 1496 enabled) 1497 --enable-strict-compilation 1498 Enable all warnings from compiler and make them 1499 errors (default: disabled) 1500 --enable-static[=PKGS] build static libraries [default=no] 1501 --enable-shared[=PKGS] build shared libraries [default=yes] 1502 --enable-fast-install[=PKGS] 1503 optimize for fast installation [default=yes] 1504 --disable-libtool-lock avoid locking (might break parallel builds) 1505 --disable-udev Disable libudev support [default=auto] 1506 --disable-glamor Disable glamor, a new GL-based acceleration 1507 [default=enabled] 1508 1509Optional Packages: 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1512 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-aix-soname=aix|svr4|both 1515 shared library versioning (aka "SONAME") variant to 1516 provide on AIX, [default=aix]. 1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1518 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1519 compiler's sysroot if not specified). 1520 --with-xorg-module-dir=DIR 1521 Default xorg module directory 1522 [[default=$libdir/xorg/modules]] 1523 --with-xorg-conf-dir=DIR 1524 Default xorg.conf.d directory 1525 [[default=${prefix}/share/X11/xorg.conf.d]] 1526 1527Some influential environment variables: 1528 CC C compiler command 1529 CFLAGS C compiler flags 1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1531 nonstandard directory <lib dir> 1532 LIBS libraries to pass to the linker, e.g. -l<library> 1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1534 you have headers in a nonstandard directory <include dir> 1535 CPP C preprocessor 1536 PKG_CONFIG path to pkg-config utility 1537 PKG_CONFIG_PATH 1538 directories to add to pkg-config's search path 1539 PKG_CONFIG_LIBDIR 1540 path overriding pkg-config's built-in search path 1541 LT_SYS_LIBRARY_PATH 1542 User-defined run-time library search path. 1543 LIBDRM_CFLAGS 1544 C compiler flags for LIBDRM, overriding pkg-config 1545 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1546 LIBDRM_AMDGPU_CFLAGS 1547 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config 1548 LIBDRM_AMDGPU_LIBS 1549 linker flags for LIBDRM_AMDGPU, overriding pkg-config 1550 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1551 GBM_LIBS linker flags for GBM, overriding pkg-config 1552 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1553 XORG_LIBS linker flags for XORG, overriding pkg-config 1554 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1555 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1556 LIBUDEV_CFLAGS 1557 C compiler flags for LIBUDEV, overriding pkg-config 1558 LIBUDEV_LIBS 1559 linker flags for LIBUDEV, overriding pkg-config 1560 LIBGL_CFLAGS 1561 C compiler flags for LIBGL, overriding pkg-config 1562 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config 1563 LIBGLAMOR_CFLAGS 1564 C compiler flags for LIBGLAMOR, overriding pkg-config 1565 LIBGLAMOR_LIBS 1566 linker flags for LIBGLAMOR, overriding pkg-config 1567 LIBGLAMOR_EGL_CFLAGS 1568 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1569 LIBGLAMOR_EGL_LIBS 1570 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1571 1572Use these variables to override the choices made by `configure' or to help 1573it to find libraries and programs with nonstandard names/locations. 1574 1575Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1576_ACEOF 1577ac_status=$? 1578fi 1579 1580if test "$ac_init_help" = "recursive"; then 1581 # If there are subdirs, report their specific --help. 1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1583 test -d "$ac_dir" || 1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1585 continue 1586 ac_builddir=. 1587 1588case "$ac_dir" in 1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590*) 1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1592 # A ".." for each directory in $ac_dir_suffix. 1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1594 case $ac_top_builddir_sub in 1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1597 esac ;; 1598esac 1599ac_abs_top_builddir=$ac_pwd 1600ac_abs_builddir=$ac_pwd$ac_dir_suffix 1601# for backward compatibility: 1602ac_top_builddir=$ac_top_build_prefix 1603 1604case $srcdir in 1605 .) # We are building in place. 1606 ac_srcdir=. 1607 ac_top_srcdir=$ac_top_builddir_sub 1608 ac_abs_top_srcdir=$ac_pwd ;; 1609 [\\/]* | ?:[\\/]* ) # Absolute name. 1610 ac_srcdir=$srcdir$ac_dir_suffix; 1611 ac_top_srcdir=$srcdir 1612 ac_abs_top_srcdir=$srcdir ;; 1613 *) # Relative name. 1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1615 ac_top_srcdir=$ac_top_build_prefix$srcdir 1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1617esac 1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1619 1620 cd "$ac_dir" || { ac_status=$?; continue; } 1621 # Check for guested configure. 1622 if test -f "$ac_srcdir/configure.gnu"; then 1623 echo && 1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1625 elif test -f "$ac_srcdir/configure"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure" --help=recursive 1628 else 1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1630 fi || ac_status=$? 1631 cd "$ac_pwd" || { ac_status=$?; break; } 1632 done 1633fi 1634 1635test -n "$ac_init_help" && exit $ac_status 1636if $ac_init_version; then 1637 cat <<\_ACEOF 1638xf86-video-amdgpu configure 1.3.0 1639generated by GNU Autoconf 2.69 1640 1641Copyright (C) 2012 Free Software Foundation, Inc. 1642This configure script is free software; the Free Software Foundation 1643gives unlimited permission to copy, distribute and modify it. 1644_ACEOF 1645 exit 1646fi 1647 1648## ------------------------ ## 1649## Autoconf initialization. ## 1650## ------------------------ ## 1651 1652# ac_fn_c_try_compile LINENO 1653# -------------------------- 1654# Try to compile conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_compile () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext 1659 if { { ac_try="$ac_compile" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_compile") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest.$ac_objext; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_compile 1689 1690# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1691# --------------------------------------------- 1692# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1693# accordingly. 1694ac_fn_c_check_decl () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 as_decl_name=`echo $2|sed 's/ *(.*//'` 1698 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1700$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1701if eval \${$3+:} false; then : 1702 $as_echo_n "(cached) " >&6 1703else 1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705/* end confdefs.h. */ 1706$4 1707int 1708main () 1709{ 1710#ifndef $as_decl_name 1711#ifdef __cplusplus 1712 (void) $as_decl_use; 1713#else 1714 (void) $as_decl_name; 1715#endif 1716#endif 1717 1718 ; 1719 return 0; 1720} 1721_ACEOF 1722if ac_fn_c_try_compile "$LINENO"; then : 1723 eval "$3=yes" 1724else 1725 eval "$3=no" 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1728fi 1729eval ac_res=\$$3 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731$as_echo "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_decl 1735 1736# ac_fn_c_try_cpp LINENO 1737# ---------------------- 1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1739ac_fn_c_try_cpp () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { { ac_try="$ac_cpp conftest.$ac_ext" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1750 ac_status=$? 1751 if test -s conftest.err; then 1752 grep -v '^ *+' conftest.err >conftest.er1 1753 cat conftest.er1 >&5 1754 mv -f conftest.er1 conftest.err 1755 fi 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } > conftest.i && { 1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1759 test ! -s conftest.err 1760 }; then : 1761 ac_retval=0 1762else 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=1 1767fi 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771} # ac_fn_c_try_cpp 1772 1773# ac_fn_c_try_run LINENO 1774# ---------------------- 1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1776# that executables *can* be run. 1777ac_fn_c_try_run () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 if { { ac_try="$ac_link" 1781case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_link") 2>&5 1788 ac_status=$? 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1791 { { case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_try") 2>&5 1798 ac_status=$? 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; }; }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: program exited with status $ac_status" >&5 1804 $as_echo "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=$ac_status 1808fi 1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 as_fn_set_status $ac_retval 1812 1813} # ac_fn_c_try_run 1814 1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1816# ------------------------------------------------------- 1817# Tests whether HEADER exists and can be compiled using the include files in 1818# INCLUDES, setting the cache variable VAR accordingly. 1819ac_fn_c_check_header_compile () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823$as_echo_n "checking for $2... " >&6; } 1824if eval \${$3+:} false; then : 1825 $as_echo_n "(cached) " >&6 1826else 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 eval "$3=yes" 1834else 1835 eval "$3=no" 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838fi 1839eval ac_res=\$$3 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841$as_echo "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844} # ac_fn_c_check_header_compile 1845 1846# ac_fn_c_try_link LINENO 1847# ----------------------- 1848# Try to link conftest.$ac_ext, and return whether this succeeded. 1849ac_fn_c_try_link () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 rm -f conftest.$ac_objext conftest$ac_exeext 1853 if { { ac_try="$ac_link" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_link") 2>conftest.err 1861 ac_status=$? 1862 if test -s conftest.err; then 1863 grep -v '^ *+' conftest.err >conftest.er1 1864 cat conftest.er1 >&5 1865 mv -f conftest.er1 conftest.err 1866 fi 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { 1869 test -z "$ac_c_werror_flag" || 1870 test ! -s conftest.err 1871 } && test -s conftest$ac_exeext && { 1872 test "$cross_compiling" = yes || 1873 test -x conftest$ac_exeext 1874 }; then : 1875 ac_retval=0 1876else 1877 $as_echo "$as_me: failed program was:" >&5 1878sed 's/^/| /' conftest.$ac_ext >&5 1879 1880 ac_retval=1 1881fi 1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1884 # interfere with the next link command; also delete a directory that is 1885 # left behind by Apple's compiler. We do this before executing the actions. 1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 as_fn_set_status $ac_retval 1889 1890} # ac_fn_c_try_link 1891 1892# ac_fn_c_check_func LINENO FUNC VAR 1893# ---------------------------------- 1894# Tests whether FUNC exists, setting the cache variable VAR accordingly 1895ac_fn_c_check_func () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1907#define $2 innocuous_$2 1908 1909/* System header to define __stub macros and hopefully few prototypes, 1910 which can conflict with char $2 (); below. 1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1912 <limits.h> exists even on freestanding compilers. */ 1913 1914#ifdef __STDC__ 1915# include <limits.h> 1916#else 1917# include <assert.h> 1918#endif 1919 1920#undef $2 1921 1922/* Override any GCC internal prototype to avoid an error. 1923 Use char because int might match the return type of a GCC 1924 builtin and then its argument prototype would still apply. */ 1925#ifdef __cplusplus 1926extern "C" 1927#endif 1928char $2 (); 1929/* The GNU C library defines this for functions which it implements 1930 to always fail with ENOSYS. Some functions are actually named 1931 something starting with __ and the normal name is an alias. */ 1932#if defined __stub_$2 || defined __stub___$2 1933choke me 1934#endif 1935 1936int 1937main () 1938{ 1939return $2 (); 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_link "$LINENO"; then : 1945 eval "$3=yes" 1946else 1947 eval "$3=no" 1948fi 1949rm -f core conftest.err conftest.$ac_objext \ 1950 conftest$ac_exeext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 1957} # ac_fn_c_check_func 1958 1959# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1960# ------------------------------------------------------- 1961# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1962# the include files in INCLUDES and setting the cache variable VAR 1963# accordingly. 1964ac_fn_c_check_header_mongrel () 1965{ 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 if eval \${$3+:} false; then : 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969$as_echo_n "checking for $2... " >&6; } 1970if eval \${$3+:} false; then : 1971 $as_echo_n "(cached) " >&6 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976else 1977 # Is the header compilable? 1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1979$as_echo_n "checking $2 usability... " >&6; } 1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1981/* end confdefs.h. */ 1982$4 1983#include <$2> 1984_ACEOF 1985if ac_fn_c_try_compile "$LINENO"; then : 1986 ac_header_compiler=yes 1987else 1988 ac_header_compiler=no 1989fi 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1992$as_echo "$ac_header_compiler" >&6; } 1993 1994# Is the header present? 1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1996$as_echo_n "checking $2 presence... " >&6; } 1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999#include <$2> 2000_ACEOF 2001if ac_fn_c_try_cpp "$LINENO"; then : 2002 ac_header_preproc=yes 2003else 2004 ac_header_preproc=no 2005fi 2006rm -f conftest.err conftest.i conftest.$ac_ext 2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2008$as_echo "$ac_header_preproc" >&6; } 2009 2010# So? What about this header? 2011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2012 yes:no: ) 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2014$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2017 ;; 2018 no:yes:* ) 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2020$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2022$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2024$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2026$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2028$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2029( $as_echo "## ---------------------------------------------------------------------- ## 2030## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2031## ---------------------------------------------------------------------- ##" 2032 ) | sed "s/^/$as_me: WARNING: /" >&2 2033 ;; 2034esac 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 eval "$3=\$ac_header_compiler" 2041fi 2042eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044$as_echo "$ac_res" >&6; } 2045fi 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_c_check_header_mongrel 2049cat >config.log <<_ACEOF 2050This file contains any messages produced by compilers while 2051running configure, to aid debugging if configure makes a mistake. 2052 2053It was created by xf86-video-amdgpu $as_me 1.3.0, which was 2054generated by GNU Autoconf 2.69. Invocation command line was 2055 2056 $ $0 $@ 2057 2058_ACEOF 2059exec 5>>config.log 2060{ 2061cat <<_ASUNAME 2062## --------- ## 2063## Platform. ## 2064## --------- ## 2065 2066hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2067uname -m = `(uname -m) 2>/dev/null || echo unknown` 2068uname -r = `(uname -r) 2>/dev/null || echo unknown` 2069uname -s = `(uname -s) 2>/dev/null || echo unknown` 2070uname -v = `(uname -v) 2>/dev/null || echo unknown` 2071 2072/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2073/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2074 2075/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2076/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2077/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2078/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2079/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2080/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2081/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2082 2083_ASUNAME 2084 2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2086for as_dir in $PATH 2087do 2088 IFS=$as_save_IFS 2089 test -z "$as_dir" && as_dir=. 2090 $as_echo "PATH: $as_dir" 2091 done 2092IFS=$as_save_IFS 2093 2094} >&5 2095 2096cat >&5 <<_ACEOF 2097 2098 2099## ----------- ## 2100## Core tests. ## 2101## ----------- ## 2102 2103_ACEOF 2104 2105 2106# Keep a trace of the command line. 2107# Strip out --no-create and --no-recursion so they do not pile up. 2108# Strip out --silent because we don't want to record it for future runs. 2109# Also quote any args containing shell meta-characters. 2110# Make two passes to allow for proper duplicate-argument suppression. 2111ac_configure_args= 2112ac_configure_args0= 2113ac_configure_args1= 2114ac_must_keep_next=false 2115for ac_pass in 1 2 2116do 2117 for ac_arg 2118 do 2119 case $ac_arg in 2120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2122 | -silent | --silent | --silen | --sile | --sil) 2123 continue ;; 2124 *\'*) 2125 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2126 esac 2127 case $ac_pass in 2128 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2129 2) 2130 as_fn_append ac_configure_args1 " '$ac_arg'" 2131 if test $ac_must_keep_next = true; then 2132 ac_must_keep_next=false # Got value, back to normal. 2133 else 2134 case $ac_arg in 2135 *=* | --config-cache | -C | -disable-* | --disable-* \ 2136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2138 | -with-* | --with-* | -without-* | --without-* | --x) 2139 case "$ac_configure_args0 " in 2140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2141 esac 2142 ;; 2143 -* ) ac_must_keep_next=true ;; 2144 esac 2145 fi 2146 as_fn_append ac_configure_args " '$ac_arg'" 2147 ;; 2148 esac 2149 done 2150done 2151{ ac_configure_args0=; unset ac_configure_args0;} 2152{ ac_configure_args1=; unset ac_configure_args1;} 2153 2154# When interrupted or exit'd, cleanup temporary files, and complete 2155# config.log. We remove comments because anyway the quotes in there 2156# would cause problems or look ugly. 2157# WARNING: Use '\'' to represent an apostrophe within the trap. 2158# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2159trap 'exit_status=$? 2160 # Save into config.log some information that might help in debugging. 2161 { 2162 echo 2163 2164 $as_echo "## ---------------- ## 2165## Cache variables. ## 2166## ---------------- ##" 2167 echo 2168 # The following way of writing the cache mishandles newlines in values, 2169( 2170 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2171 eval ac_val=\$$ac_var 2172 case $ac_val in #( 2173 *${as_nl}*) 2174 case $ac_var in #( 2175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2176$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2177 esac 2178 case $ac_var in #( 2179 _ | IFS | as_nl) ;; #( 2180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2181 *) { eval $ac_var=; unset $ac_var;} ;; 2182 esac ;; 2183 esac 2184 done 2185 (set) 2>&1 | 2186 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2187 *${as_nl}ac_space=\ *) 2188 sed -n \ 2189 "s/'\''/'\''\\\\'\'''\''/g; 2190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2191 ;; #( 2192 *) 2193 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2194 ;; 2195 esac | 2196 sort 2197) 2198 echo 2199 2200 $as_echo "## ----------------- ## 2201## Output variables. ## 2202## ----------------- ##" 2203 echo 2204 for ac_var in $ac_subst_vars 2205 do 2206 eval ac_val=\$$ac_var 2207 case $ac_val in 2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2209 esac 2210 $as_echo "$ac_var='\''$ac_val'\''" 2211 done | sort 2212 echo 2213 2214 if test -n "$ac_subst_files"; then 2215 $as_echo "## ------------------- ## 2216## File substitutions. ## 2217## ------------------- ##" 2218 echo 2219 for ac_var in $ac_subst_files 2220 do 2221 eval ac_val=\$$ac_var 2222 case $ac_val in 2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2224 esac 2225 $as_echo "$ac_var='\''$ac_val'\''" 2226 done | sort 2227 echo 2228 fi 2229 2230 if test -s confdefs.h; then 2231 $as_echo "## ----------- ## 2232## confdefs.h. ## 2233## ----------- ##" 2234 echo 2235 cat confdefs.h 2236 echo 2237 fi 2238 test "$ac_signal" != 0 && 2239 $as_echo "$as_me: caught signal $ac_signal" 2240 $as_echo "$as_me: exit $exit_status" 2241 } >&5 2242 rm -f core *.core core.conftest.* && 2243 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2244 exit $exit_status 2245' 0 2246for ac_signal in 1 2 13 15; do 2247 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2248done 2249ac_signal=0 2250 2251# confdefs.h avoids OS command line length limits that DEFS can exceed. 2252rm -f -r conftest* confdefs.h 2253 2254$as_echo "/* confdefs.h */" > confdefs.h 2255 2256# Predefined preprocessor variables. 2257 2258cat >>confdefs.h <<_ACEOF 2259#define PACKAGE_NAME "$PACKAGE_NAME" 2260_ACEOF 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2264_ACEOF 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_VERSION "$PACKAGE_VERSION" 2268_ACEOF 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE_STRING "$PACKAGE_STRING" 2272_ACEOF 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_URL "$PACKAGE_URL" 2280_ACEOF 2281 2282 2283# Let the site file select an alternate cache file if it wants to. 2284# Prefer an explicitly selected file to automatically selected ones. 2285ac_site_file1=NONE 2286ac_site_file2=NONE 2287if test -n "$CONFIG_SITE"; then 2288 # We do not want a PATH search for config.site. 2289 case $CONFIG_SITE in #(( 2290 -*) ac_site_file1=./$CONFIG_SITE;; 2291 */*) ac_site_file1=$CONFIG_SITE;; 2292 *) ac_site_file1=./$CONFIG_SITE;; 2293 esac 2294elif test "x$prefix" != xNONE; then 2295 ac_site_file1=$prefix/share/config.site 2296 ac_site_file2=$prefix/etc/config.site 2297else 2298 ac_site_file1=$ac_default_prefix/share/config.site 2299 ac_site_file2=$ac_default_prefix/etc/config.site 2300fi 2301for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2302do 2303 test "x$ac_site_file" = xNONE && continue 2304 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2306$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2307 sed 's/^/| /' "$ac_site_file" >&5 2308 . "$ac_site_file" \ 2309 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2311as_fn_error $? "failed to load site script $ac_site_file 2312See \`config.log' for more details" "$LINENO" 5; } 2313 fi 2314done 2315 2316if test -r "$cache_file"; then 2317 # Some versions of bash will fail to source /dev/null (special files 2318 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2319 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2321$as_echo "$as_me: loading cache $cache_file" >&6;} 2322 case $cache_file in 2323 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2324 *) . "./$cache_file";; 2325 esac 2326 fi 2327else 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2329$as_echo "$as_me: creating cache $cache_file" >&6;} 2330 >$cache_file 2331fi 2332 2333# Check that the precious variables saved in the cache have kept the same 2334# value. 2335ac_cache_corrupted=false 2336for ac_var in $ac_precious_vars; do 2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2338 eval ac_new_set=\$ac_env_${ac_var}_set 2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2340 eval ac_new_val=\$ac_env_${ac_var}_value 2341 case $ac_old_set,$ac_new_set in 2342 set,) 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2344$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2345 ac_cache_corrupted=: ;; 2346 ,set) 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2348$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2349 ac_cache_corrupted=: ;; 2350 ,);; 2351 *) 2352 if test "x$ac_old_val" != "x$ac_new_val"; then 2353 # differences in whitespace do not lead to failure. 2354 ac_old_val_w=`echo x $ac_old_val` 2355 ac_new_val_w=`echo x $ac_new_val` 2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2358$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2359 ac_cache_corrupted=: 2360 else 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2362$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2363 eval $ac_var=\$ac_old_val 2364 fi 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2366$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2368$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2369 fi;; 2370 esac 2371 # Pass precious variables to config.status. 2372 if test "$ac_new_set" = set; then 2373 case $ac_new_val in 2374 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2375 *) ac_arg=$ac_var=$ac_new_val ;; 2376 esac 2377 case " $ac_configure_args " in 2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2380 esac 2381 fi 2382done 2383if $ac_cache_corrupted; then 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2387$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2388 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2389fi 2390## -------------------- ## 2391## Main body of script. ## 2392## -------------------- ## 2393 2394ac_ext=c 2395ac_cpp='$CPP $CPPFLAGS' 2396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2398ac_compiler_gnu=$ac_cv_c_compiler_gnu 2399 2400 2401 2402 2403ac_config_headers="$ac_config_headers config.h" 2404 2405 2406ac_aux_dir= 2407for ac_dir in . "$srcdir"/.; do 2408 if test -f "$ac_dir/install-sh"; then 2409 ac_aux_dir=$ac_dir 2410 ac_install_sh="$ac_aux_dir/install-sh -c" 2411 break 2412 elif test -f "$ac_dir/install.sh"; then 2413 ac_aux_dir=$ac_dir 2414 ac_install_sh="$ac_aux_dir/install.sh -c" 2415 break 2416 elif test -f "$ac_dir/shtool"; then 2417 ac_aux_dir=$ac_dir 2418 ac_install_sh="$ac_aux_dir/shtool install -c" 2419 break 2420 fi 2421done 2422if test -z "$ac_aux_dir"; then 2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2424fi 2425 2426# These three variables are undocumented and unsupported, 2427# and are intended to be withdrawn in a future Autoconf release. 2428# They can cause serious problems if a builder's source tree is in a directory 2429# whose full name contains unusual characters. 2430ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2431ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2432ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2433 2434 2435 2436# Initialize Automake 2437am__api_version='1.15' 2438 2439# Find a good install program. We prefer a C program (faster), 2440# so one script is as good as another. But avoid the broken or 2441# incompatible versions: 2442# SysV /etc/install, /usr/sbin/install 2443# SunOS /usr/etc/install 2444# IRIX /sbin/install 2445# AIX /bin/install 2446# AmigaOS /C/install, which installs bootblocks on floppy discs 2447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2448# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2450# OS/2's system install, which has a completely different semantic 2451# ./install, which can be erroneously created by make from ./install.sh. 2452# Reject install programs that cannot install multiple files. 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2454$as_echo_n "checking for a BSD-compatible install... " >&6; } 2455if test -z "$INSTALL"; then 2456if ${ac_cv_path_install+:} false; then : 2457 $as_echo_n "(cached) " >&6 2458else 2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 # Account for people who put trailing slashes in PATH elements. 2465case $as_dir/ in #(( 2466 ./ | .// | /[cC]/* | \ 2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2469 /usr/ucb/* ) ;; 2470 *) 2471 # OSF1 and SCO ODT 3.0 have their own names for install. 2472 # Don't use installbsd from OSF since it installs stuff as root 2473 # by default. 2474 for ac_prog in ginstall scoinst install; do 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2477 if test $ac_prog = install && 2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2479 # AIX install. It has an incompatible calling convention. 2480 : 2481 elif test $ac_prog = install && 2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2483 # program-specific install script used by HP pwplus--don't use. 2484 : 2485 else 2486 rm -rf conftest.one conftest.two conftest.dir 2487 echo one > conftest.one 2488 echo two > conftest.two 2489 mkdir conftest.dir 2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2491 test -s conftest.one && test -s conftest.two && 2492 test -s conftest.dir/conftest.one && 2493 test -s conftest.dir/conftest.two 2494 then 2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2496 break 3 2497 fi 2498 fi 2499 fi 2500 done 2501 done 2502 ;; 2503esac 2504 2505 done 2506IFS=$as_save_IFS 2507 2508rm -rf conftest.one conftest.two conftest.dir 2509 2510fi 2511 if test "${ac_cv_path_install+set}" = set; then 2512 INSTALL=$ac_cv_path_install 2513 else 2514 # As a last resort, use the slow shell script. Don't cache a 2515 # value for INSTALL within a source directory, because that will 2516 # break other packages using the cache if that directory is 2517 # removed, or if the value is a relative name. 2518 INSTALL=$ac_install_sh 2519 fi 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2522$as_echo "$INSTALL" >&6; } 2523 2524# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2525# It thinks the first close brace ends the variable substitution. 2526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2527 2528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2529 2530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2531 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2533$as_echo_n "checking whether build environment is sane... " >&6; } 2534# Reject unsafe characters in $srcdir or the absolute working directory 2535# name. Accept space and tab only in the latter. 2536am_lf=' 2537' 2538case `pwd` in 2539 *[\\\"\#\$\&\'\`$am_lf]*) 2540 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2541esac 2542case $srcdir in 2543 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2544 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2545esac 2546 2547# Do 'set' in a subshell so we don't clobber the current shell's 2548# arguments. Must try -L first in case configure is actually a 2549# symlink; some systems play weird games with the mod time of symlinks 2550# (eg FreeBSD returns the mod time of the symlink's containing 2551# directory). 2552if ( 2553 am_has_slept=no 2554 for am_try in 1 2; do 2555 echo "timestamp, slept: $am_has_slept" > conftest.file 2556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2557 if test "$*" = "X"; then 2558 # -L didn't work. 2559 set X `ls -t "$srcdir/configure" conftest.file` 2560 fi 2561 if test "$*" != "X $srcdir/configure conftest.file" \ 2562 && test "$*" != "X conftest.file $srcdir/configure"; then 2563 2564 # If neither matched, then we have a broken ls. This can happen 2565 # if, for instance, CONFIG_SHELL is bash and it inherits a 2566 # broken ls alias from the environment. This has actually 2567 # happened. Such a system could not be considered "sane". 2568 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2569 alias in your environment" "$LINENO" 5 2570 fi 2571 if test "$2" = conftest.file || test $am_try -eq 2; then 2572 break 2573 fi 2574 # Just in case. 2575 sleep 1 2576 am_has_slept=yes 2577 done 2578 test "$2" = conftest.file 2579 ) 2580then 2581 # Ok. 2582 : 2583else 2584 as_fn_error $? "newly created file is older than distributed files! 2585Check your system clock" "$LINENO" 5 2586fi 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2588$as_echo "yes" >&6; } 2589# If we didn't sleep, we still need to ensure time stamps of config.status and 2590# generated files are strictly newer. 2591am_sleep_pid= 2592if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2593 ( sleep 1 ) & 2594 am_sleep_pid=$! 2595fi 2596 2597rm -f conftest.file 2598 2599test "$program_prefix" != NONE && 2600 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2601# Use a double $ so make ignores it. 2602test "$program_suffix" != NONE && 2603 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2604# Double any \ or $. 2605# By default was `s,x,x', remove it if useless. 2606ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2607program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2608 2609# Expand $ac_aux_dir to an absolute path. 2610am_aux_dir=`cd "$ac_aux_dir" && pwd` 2611 2612if test x"${MISSING+set}" != xset; then 2613 case $am_aux_dir in 2614 *\ * | *\ *) 2615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2616 *) 2617 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2618 esac 2619fi 2620# Use eval to expand $SHELL 2621if eval "$MISSING --is-lightweight"; then 2622 am_missing_run="$MISSING " 2623else 2624 am_missing_run= 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2626$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2627fi 2628 2629if test x"${install_sh+set}" != xset; then 2630 case $am_aux_dir in 2631 *\ * | *\ *) 2632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2633 *) 2634 install_sh="\${SHELL} $am_aux_dir/install-sh" 2635 esac 2636fi 2637 2638# Installed binaries are usually stripped using 'strip' when the user 2639# run "make install-strip". However 'strip' might not be the right 2640# tool to use in cross-compilation environments, therefore Automake 2641# will honor the 'STRIP' environment variable to overrule this program. 2642if test "$cross_compiling" != no; then 2643 if test -n "$ac_tool_prefix"; then 2644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2645set dummy ${ac_tool_prefix}strip; ac_word=$2 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2647$as_echo_n "checking for $ac_word... " >&6; } 2648if ${ac_cv_prog_STRIP+:} false; then : 2649 $as_echo_n "(cached) " >&6 2650else 2651 if test -n "$STRIP"; then 2652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2653else 2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2661 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2663 break 2 2664 fi 2665done 2666 done 2667IFS=$as_save_IFS 2668 2669fi 2670fi 2671STRIP=$ac_cv_prog_STRIP 2672if test -n "$STRIP"; then 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2674$as_echo "$STRIP" >&6; } 2675else 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2677$as_echo "no" >&6; } 2678fi 2679 2680 2681fi 2682if test -z "$ac_cv_prog_STRIP"; then 2683 ac_ct_STRIP=$STRIP 2684 # Extract the first word of "strip", so it can be a program name with args. 2685set dummy strip; ac_word=$2 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2687$as_echo_n "checking for $ac_word... " >&6; } 2688if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2689 $as_echo_n "(cached) " >&6 2690else 2691 if test -n "$ac_ct_STRIP"; then 2692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2693else 2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 for ac_exec_ext in '' $ac_executable_extensions; do 2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2701 ac_cv_prog_ac_ct_STRIP="strip" 2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2703 break 2 2704 fi 2705done 2706 done 2707IFS=$as_save_IFS 2708 2709fi 2710fi 2711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2712if test -n "$ac_ct_STRIP"; then 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2714$as_echo "$ac_ct_STRIP" >&6; } 2715else 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2717$as_echo "no" >&6; } 2718fi 2719 2720 if test "x$ac_ct_STRIP" = x; then 2721 STRIP=":" 2722 else 2723 case $cross_compiling:$ac_tool_warned in 2724yes:) 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2727ac_tool_warned=yes ;; 2728esac 2729 STRIP=$ac_ct_STRIP 2730 fi 2731else 2732 STRIP="$ac_cv_prog_STRIP" 2733fi 2734 2735fi 2736INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2737 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2739$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2740if test -z "$MKDIR_P"; then 2741 if ${ac_cv_path_mkdir+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743else 2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2746do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_prog in mkdir gmkdir; do 2750 for ac_exec_ext in '' $ac_executable_extensions; do 2751 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2753 'mkdir (GNU coreutils) '* | \ 2754 'mkdir (coreutils) '* | \ 2755 'mkdir (fileutils) '4.1*) 2756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2757 break 3;; 2758 esac 2759 done 2760 done 2761 done 2762IFS=$as_save_IFS 2763 2764fi 2765 2766 test -d ./--version && rmdir ./--version 2767 if test "${ac_cv_path_mkdir+set}" = set; then 2768 MKDIR_P="$ac_cv_path_mkdir -p" 2769 else 2770 # As a last resort, use the slow shell script. Don't cache a 2771 # value for MKDIR_P within a source directory, because that will 2772 # break other packages using the cache if that directory is 2773 # removed, or if the value is a relative name. 2774 MKDIR_P="$ac_install_sh -d" 2775 fi 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2778$as_echo "$MKDIR_P" >&6; } 2779 2780for ac_prog in gawk mawk nawk awk 2781do 2782 # Extract the first word of "$ac_prog", so it can be a program name with args. 2783set dummy $ac_prog; ac_word=$2 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if ${ac_cv_prog_AWK+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$AWK"; then 2790 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2799 ac_cv_prog_AWK="$ac_prog" 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804 done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809AWK=$ac_cv_prog_AWK 2810if test -n "$AWK"; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2812$as_echo "$AWK" >&6; } 2813else 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 2819 test -n "$AWK" && break 2820done 2821 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2824set x ${MAKE-make} 2825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2826if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2827 $as_echo_n "(cached) " >&6 2828else 2829 cat >conftest.make <<\_ACEOF 2830SHELL = /bin/sh 2831all: 2832 @echo '@@@%%%=$(MAKE)=@@@%%%' 2833_ACEOF 2834# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2835case `${MAKE-make} -f conftest.make 2>/dev/null` in 2836 *@@@%%%=?*=@@@%%%*) 2837 eval ac_cv_prog_make_${ac_make}_set=yes;; 2838 *) 2839 eval ac_cv_prog_make_${ac_make}_set=no;; 2840esac 2841rm -f conftest.make 2842fi 2843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2845$as_echo "yes" >&6; } 2846 SET_MAKE= 2847else 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2849$as_echo "no" >&6; } 2850 SET_MAKE="MAKE=${MAKE-make}" 2851fi 2852 2853rm -rf .tst 2>/dev/null 2854mkdir .tst 2>/dev/null 2855if test -d .tst; then 2856 am__leading_dot=. 2857else 2858 am__leading_dot=_ 2859fi 2860rmdir .tst 2>/dev/null 2861 2862# Check whether --enable-silent-rules was given. 2863if test "${enable_silent_rules+set}" = set; then : 2864 enableval=$enable_silent_rules; 2865fi 2866 2867case $enable_silent_rules in # ((( 2868 yes) AM_DEFAULT_VERBOSITY=0;; 2869 no) AM_DEFAULT_VERBOSITY=1;; 2870 *) AM_DEFAULT_VERBOSITY=1;; 2871esac 2872am_make=${MAKE-make} 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2874$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2875if ${am_cv_make_support_nested_variables+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if $as_echo 'TRUE=$(BAR$(V)) 2879BAR0=false 2880BAR1=true 2881V=1 2882am__doit: 2883 @$(TRUE) 2884.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2885 am_cv_make_support_nested_variables=yes 2886else 2887 am_cv_make_support_nested_variables=no 2888fi 2889fi 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2891$as_echo "$am_cv_make_support_nested_variables" >&6; } 2892if test $am_cv_make_support_nested_variables = yes; then 2893 AM_V='$(V)' 2894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2895else 2896 AM_V=$AM_DEFAULT_VERBOSITY 2897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2898fi 2899AM_BACKSLASH='\' 2900 2901if test "`cd $srcdir && pwd`" != "`pwd`"; then 2902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2903 # is not polluted with repeated "-I." 2904 am__isrc=' -I$(srcdir)' 2905 # test to see if srcdir already configured 2906 if test -f $srcdir/config.status; then 2907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2908 fi 2909fi 2910 2911# test whether we have cygpath 2912if test -z "$CYGPATH_W"; then 2913 if (cygpath --version) >/dev/null 2>/dev/null; then 2914 CYGPATH_W='cygpath -w' 2915 else 2916 CYGPATH_W=echo 2917 fi 2918fi 2919 2920 2921# Define the identity of the package. 2922 PACKAGE='xf86-video-amdgpu' 2923 VERSION='1.3.0' 2924 2925 2926cat >>confdefs.h <<_ACEOF 2927#define PACKAGE "$PACKAGE" 2928_ACEOF 2929 2930 2931cat >>confdefs.h <<_ACEOF 2932#define VERSION "$VERSION" 2933_ACEOF 2934 2935# Some tools Automake needs. 2936 2937ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2938 2939 2940AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2941 2942 2943AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2944 2945 2946AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2947 2948 2949MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2950 2951# For better backward compatibility. To be removed once Automake 1.9.x 2952# dies out for good. For more background, see: 2953# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2954# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2955mkdir_p='$(MKDIR_P)' 2956 2957# We need awk for the "check" target (and possibly the TAP driver). The 2958# system "awk" is bad on some platforms. 2959# Always define AMTAR for backward compatibility. Yes, it's still used 2960# in the wild :-( We should find a proper way to deprecate it ... 2961AMTAR='$${TAR-tar}' 2962 2963 2964# We'll loop over all known methods to create a tar archive until one works. 2965_am_tools='gnutar pax cpio none' 2966 2967am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2968 2969 2970 2971 2972 2973 2974# POSIX will say in a future version that running "rm -f" with no argument 2975# is OK; and we want to be able to make that assumption in our Makefile 2976# recipes. So use an aggressive probe to check that the usage we want is 2977# actually supported "in the wild" to an acceptable degree. 2978# See automake bug#10828. 2979# To make any issue more visible, cause the running configure to be aborted 2980# by default if the 'rm' program in use doesn't match our expectations; the 2981# user can still override this though. 2982if rm -f && rm -fr && rm -rf; then : OK; else 2983 cat >&2 <<'END' 2984Oops! 2985 2986Your 'rm' program seems unable to run without file operands specified 2987on the command line, even when the '-f' option is present. This is contrary 2988to the behaviour of most rm programs out there, and not conforming with 2989the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2990 2991Please tell bug-automake@gnu.org about your system, including the value 2992of your $PATH and any error possibly output before this message. This 2993can help us improve future automake versions. 2994 2995END 2996 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2997 echo 'Configuration will proceed anyway, since you have set the' >&2 2998 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2999 echo >&2 3000 else 3001 cat >&2 <<'END' 3002Aborting the configuration process, to ensure you take notice of the issue. 3003 3004You can download and install GNU coreutils to get an 'rm' implementation 3005that behaves properly: <http://www.gnu.org/software/coreutils/>. 3006 3007If you want to complete the configuration process using your problematic 3008'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3009to "yes", and re-run configure. 3010 3011END 3012 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3013 fi 3014fi 3015 3016DEPDIR="${am__leading_dot}deps" 3017 3018ac_config_commands="$ac_config_commands depfiles" 3019 3020 3021am_make=${MAKE-make} 3022cat > confinc << 'END' 3023am__doit: 3024 @echo this is the am__doit target 3025.PHONY: am__doit 3026END 3027# If we don't find an include directive, just comment out the code. 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3029$as_echo_n "checking for style of include used by $am_make... " >&6; } 3030am__include="#" 3031am__quote= 3032_am_result=none 3033# First try GNU make style include. 3034echo "include confinc" > confmf 3035# Ignore all kinds of additional output from 'make'. 3036case `$am_make -s -f confmf 2> /dev/null` in #( 3037*the\ am__doit\ target*) 3038 am__include=include 3039 am__quote= 3040 _am_result=GNU 3041 ;; 3042esac 3043# Now try BSD make style include. 3044if test "$am__include" = "#"; then 3045 echo '.include "confinc"' > confmf 3046 case `$am_make -s -f confmf 2> /dev/null` in #( 3047 *the\ am__doit\ target*) 3048 am__include=.include 3049 am__quote="\"" 3050 _am_result=BSD 3051 ;; 3052 esac 3053fi 3054 3055 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3057$as_echo "$_am_result" >&6; } 3058rm -f confinc confmf 3059 3060# Check whether --enable-dependency-tracking was given. 3061if test "${enable_dependency_tracking+set}" = set; then : 3062 enableval=$enable_dependency_tracking; 3063fi 3064 3065if test "x$enable_dependency_tracking" != xno; then 3066 am_depcomp="$ac_aux_dir/depcomp" 3067 AMDEPBACKSLASH='\' 3068 am__nodep='_no' 3069fi 3070 if test "x$enable_dependency_tracking" != xno; then 3071 AMDEP_TRUE= 3072 AMDEP_FALSE='#' 3073else 3074 AMDEP_TRUE='#' 3075 AMDEP_FALSE= 3076fi 3077 3078 3079ac_ext=c 3080ac_cpp='$CPP $CPPFLAGS' 3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3083ac_compiler_gnu=$ac_cv_c_compiler_gnu 3084if test -n "$ac_tool_prefix"; then 3085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3086set dummy ${ac_tool_prefix}gcc; ac_word=$2 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3088$as_echo_n "checking for $ac_word... " >&6; } 3089if ${ac_cv_prog_CC+:} false; then : 3090 $as_echo_n "(cached) " >&6 3091else 3092 if test -n "$CC"; then 3093 ac_cv_prog_CC="$CC" # Let the user override the test. 3094else 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_exec_ext in '' $ac_executable_extensions; do 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3102 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3104 break 2 3105 fi 3106done 3107 done 3108IFS=$as_save_IFS 3109 3110fi 3111fi 3112CC=$ac_cv_prog_CC 3113if test -n "$CC"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3115$as_echo "$CC" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 3122fi 3123if test -z "$ac_cv_prog_CC"; then 3124 ac_ct_CC=$CC 3125 # Extract the first word of "gcc", so it can be a program name with args. 3126set dummy gcc; ac_word=$2 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128$as_echo_n "checking for $ac_word... " >&6; } 3129if ${ac_cv_prog_ac_ct_CC+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 if test -n "$ac_ct_CC"; then 3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3134else 3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH 3137do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3142 ac_cv_prog_ac_ct_CC="gcc" 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3144 break 2 3145 fi 3146done 3147 done 3148IFS=$as_save_IFS 3149 3150fi 3151fi 3152ac_ct_CC=$ac_cv_prog_ac_ct_CC 3153if test -n "$ac_ct_CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3155$as_echo "$ac_ct_CC" >&6; } 3156else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158$as_echo "no" >&6; } 3159fi 3160 3161 if test "x$ac_ct_CC" = x; then 3162 CC="" 3163 else 3164 case $cross_compiling:$ac_tool_warned in 3165yes:) 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3168ac_tool_warned=yes ;; 3169esac 3170 CC=$ac_ct_CC 3171 fi 3172else 3173 CC="$ac_cv_prog_CC" 3174fi 3175 3176if test -z "$CC"; then 3177 if test -n "$ac_tool_prefix"; then 3178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3179set dummy ${ac_tool_prefix}cc; ac_word=$2 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181$as_echo_n "checking for $ac_word... " >&6; } 3182if ${ac_cv_prog_CC+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -n "$CC"; then 3186 ac_cv_prog_CC="$CC" # Let the user override the test. 3187else 3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3189for as_dir in $PATH 3190do 3191 IFS=$as_save_IFS 3192 test -z "$as_dir" && as_dir=. 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3195 ac_cv_prog_CC="${ac_tool_prefix}cc" 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3197 break 2 3198 fi 3199done 3200 done 3201IFS=$as_save_IFS 3202 3203fi 3204fi 3205CC=$ac_cv_prog_CC 3206if test -n "$CC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3208$as_echo "$CC" >&6; } 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213 3214 3215 fi 3216fi 3217if test -z "$CC"; then 3218 # Extract the first word of "cc", so it can be a program name with args. 3219set dummy cc; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_CC+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$CC"; then 3226 ac_cv_prog_CC="$CC" # Let the user override the test. 3227else 3228 ac_prog_rejected=no 3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3237 ac_prog_rejected=yes 3238 continue 3239 fi 3240 ac_cv_prog_CC="cc" 3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3242 break 2 3243 fi 3244done 3245 done 3246IFS=$as_save_IFS 3247 3248if test $ac_prog_rejected = yes; then 3249 # We found a bogon in the path, so make sure we never use it. 3250 set dummy $ac_cv_prog_CC 3251 shift 3252 if test $# != 0; then 3253 # We chose a different compiler from the bogus one. 3254 # However, it has the same basename, so the bogon will be chosen 3255 # first if we set CC to just the basename; use the full file name. 3256 shift 3257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3258 fi 3259fi 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272fi 3273if test -z "$CC"; then 3274 if test -n "$ac_tool_prefix"; then 3275 for ac_prog in cl.exe 3276 do 3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3278set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3280$as_echo_n "checking for $ac_word... " >&6; } 3281if ${ac_cv_prog_CC+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 if test -n "$CC"; then 3285 ac_cv_prog_CC="$CC" # Let the user override the test. 3286else 3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3288for as_dir in $PATH 3289do 3290 IFS=$as_save_IFS 3291 test -z "$as_dir" && as_dir=. 3292 for ac_exec_ext in '' $ac_executable_extensions; do 3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3296 break 2 3297 fi 3298done 3299 done 3300IFS=$as_save_IFS 3301 3302fi 3303fi 3304CC=$ac_cv_prog_CC 3305if test -n "$CC"; then 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3307$as_echo "$CC" >&6; } 3308else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3310$as_echo "no" >&6; } 3311fi 3312 3313 3314 test -n "$CC" && break 3315 done 3316fi 3317if test -z "$CC"; then 3318 ac_ct_CC=$CC 3319 for ac_prog in cl.exe 3320do 3321 # Extract the first word of "$ac_prog", so it can be a program name with args. 3322set dummy $ac_prog; ac_word=$2 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324$as_echo_n "checking for $ac_word... " >&6; } 3325if ${ac_cv_prog_ac_ct_CC+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if test -n "$ac_ct_CC"; then 3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3330else 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 test -z "$as_dir" && as_dir=. 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3338 ac_cv_prog_ac_ct_CC="$ac_prog" 3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346fi 3347fi 3348ac_ct_CC=$ac_cv_prog_ac_ct_CC 3349if test -n "$ac_ct_CC"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3351$as_echo "$ac_ct_CC" >&6; } 3352else 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354$as_echo "no" >&6; } 3355fi 3356 3357 3358 test -n "$ac_ct_CC" && break 3359done 3360 3361 if test "x$ac_ct_CC" = x; then 3362 CC="" 3363 else 3364 case $cross_compiling:$ac_tool_warned in 3365yes:) 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3368ac_tool_warned=yes ;; 3369esac 3370 CC=$ac_ct_CC 3371 fi 3372fi 3373 3374fi 3375 3376 3377test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379as_fn_error $? "no acceptable C compiler found in \$PATH 3380See \`config.log' for more details" "$LINENO" 5; } 3381 3382# Provide some information about the compiler. 3383$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3384set X $ac_compile 3385ac_compiler=$2 3386for ac_option in --version -v -V -qversion; do 3387 { { ac_try="$ac_compiler $ac_option >&5" 3388case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391esac 3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3393$as_echo "$ac_try_echo"; } >&5 3394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3395 ac_status=$? 3396 if test -s conftest.err; then 3397 sed '10a\ 3398... rest of stderr output deleted ... 3399 10q' conftest.err >conftest.er1 3400 cat conftest.er1 >&5 3401 fi 3402 rm -f conftest.er1 conftest.err 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3404 test $ac_status = 0; } 3405done 3406 3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418ac_clean_files_save=$ac_clean_files 3419ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3420# Try to create an executable without -o first, disregard a.out. 3421# It will help us diagnose broken compilers, and finding out an intuition 3422# of exeext. 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3424$as_echo_n "checking whether the C compiler works... " >&6; } 3425ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3426 3427# The possible output files: 3428ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3429 3430ac_rmfiles= 3431for ac_file in $ac_files 3432do 3433 case $ac_file in 3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3435 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3436 esac 3437done 3438rm -f $ac_rmfiles 3439 3440if { { ac_try="$ac_link_default" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3446$as_echo "$ac_try_echo"; } >&5 3447 (eval "$ac_link_default") 2>&5 3448 ac_status=$? 3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3450 test $ac_status = 0; }; then : 3451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3452# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3453# in a Makefile. We should not override ac_cv_exeext if it was cached, 3454# so that the user can short-circuit this test for compilers unknown to 3455# Autoconf. 3456for ac_file in $ac_files '' 3457do 3458 test -f "$ac_file" || continue 3459 case $ac_file in 3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3461 ;; 3462 [ab].out ) 3463 # We found the default executable, but exeext='' is most 3464 # certainly right. 3465 break;; 3466 *.* ) 3467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3468 then :; else 3469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3470 fi 3471 # We set ac_cv_exeext here because the later test for it is not 3472 # safe: cross compilers may not add the suffix if given an `-o' 3473 # argument, so we may need to know it at that point already. 3474 # Even if this section looks crufty: it has the advantage of 3475 # actually working. 3476 break;; 3477 * ) 3478 break;; 3479 esac 3480done 3481test "$ac_cv_exeext" = no && ac_cv_exeext= 3482 3483else 3484 ac_file='' 3485fi 3486if test -z "$ac_file"; then : 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488$as_echo "no" >&6; } 3489$as_echo "$as_me: failed program was:" >&5 3490sed 's/^/| /' conftest.$ac_ext >&5 3491 3492{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3494as_fn_error 77 "C compiler cannot create executables 3495See \`config.log' for more details" "$LINENO" 5; } 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3498$as_echo "yes" >&6; } 3499fi 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3501$as_echo_n "checking for C compiler default output file name... " >&6; } 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3503$as_echo "$ac_file" >&6; } 3504ac_exeext=$ac_cv_exeext 3505 3506rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3507ac_clean_files=$ac_clean_files_save 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3509$as_echo_n "checking for suffix of executables... " >&6; } 3510if { { ac_try="$ac_link" 3511case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516$as_echo "$ac_try_echo"; } >&5 3517 (eval "$ac_link") 2>&5 3518 ac_status=$? 3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; }; then : 3521 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3522# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3523# work properly (i.e., refer to `conftest.exe'), while it won't with 3524# `rm'. 3525for ac_file in conftest.exe conftest conftest.*; do 3526 test -f "$ac_file" || continue 3527 case $ac_file in 3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3529 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3530 break;; 3531 * ) break;; 3532 esac 3533done 3534else 3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3538See \`config.log' for more details" "$LINENO" 5; } 3539fi 3540rm -f conftest conftest$ac_cv_exeext 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3542$as_echo "$ac_cv_exeext" >&6; } 3543 3544rm -f conftest.$ac_ext 3545EXEEXT=$ac_cv_exeext 3546ac_exeext=$EXEEXT 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549#include <stdio.h> 3550int 3551main () 3552{ 3553FILE *f = fopen ("conftest.out", "w"); 3554 return ferror (f) || fclose (f) != 0; 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560ac_clean_files="$ac_clean_files conftest.out" 3561# Check that the compiler produces executables we can run. If not, either 3562# the compiler is broken, or we cross compile. 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3564$as_echo_n "checking whether we are cross compiling... " >&6; } 3565if test "$cross_compiling" != yes; then 3566 { { ac_try="$ac_link" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_link") 2>&5 3574 ac_status=$? 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; } 3577 if { ac_try='./conftest$ac_cv_exeext' 3578 { { case "(($ac_try" in 3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3580 *) ac_try_echo=$ac_try;; 3581esac 3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3583$as_echo "$ac_try_echo"; } >&5 3584 (eval "$ac_try") 2>&5 3585 ac_status=$? 3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3587 test $ac_status = 0; }; }; then 3588 cross_compiling=no 3589 else 3590 if test "$cross_compiling" = maybe; then 3591 cross_compiling=yes 3592 else 3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3595as_fn_error $? "cannot run C compiled programs. 3596If you meant to cross compile, use \`--host'. 3597See \`config.log' for more details" "$LINENO" 5; } 3598 fi 3599 fi 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3602$as_echo "$cross_compiling" >&6; } 3603 3604rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3605ac_clean_files=$ac_clean_files_save 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3607$as_echo_n "checking for suffix of object files... " >&6; } 3608if ${ac_cv_objext+:} false; then : 3609 $as_echo_n "(cached) " >&6 3610else 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612/* end confdefs.h. */ 3613 3614int 3615main () 3616{ 3617 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622rm -f conftest.o conftest.obj 3623if { { ac_try="$ac_compile" 3624case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627esac 3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3629$as_echo "$ac_try_echo"; } >&5 3630 (eval "$ac_compile") 2>&5 3631 ac_status=$? 3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3633 test $ac_status = 0; }; then : 3634 for ac_file in conftest.o conftest.obj conftest.*; do 3635 test -f "$ac_file" || continue; 3636 case $ac_file in 3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3639 break;; 3640 esac 3641done 3642else 3643 $as_echo "$as_me: failed program was:" >&5 3644sed 's/^/| /' conftest.$ac_ext >&5 3645 3646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648as_fn_error $? "cannot compute suffix of object files: cannot compile 3649See \`config.log' for more details" "$LINENO" 5; } 3650fi 3651rm -f conftest.$ac_cv_objext conftest.$ac_ext 3652fi 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3654$as_echo "$ac_cv_objext" >&6; } 3655OBJEXT=$ac_cv_objext 3656ac_objext=$OBJEXT 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3658$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3659if ${ac_cv_c_compiler_gnu+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664 3665int 3666main () 3667{ 3668#ifndef __GNUC__ 3669 choke me 3670#endif 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 ac_compiler_gnu=yes 3678else 3679 ac_compiler_gnu=no 3680fi 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682ac_cv_c_compiler_gnu=$ac_compiler_gnu 3683 3684fi 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3686$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3687if test $ac_compiler_gnu = yes; then 3688 GCC=yes 3689else 3690 GCC= 3691fi 3692ac_test_CFLAGS=${CFLAGS+set} 3693ac_save_CFLAGS=$CFLAGS 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3695$as_echo_n "checking whether $CC accepts -g... " >&6; } 3696if ${ac_cv_prog_cc_g+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 ac_save_c_werror_flag=$ac_c_werror_flag 3700 ac_c_werror_flag=yes 3701 ac_cv_prog_cc_g=no 3702 CFLAGS="-g" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 ac_cv_prog_cc_g=yes 3716else 3717 CFLAGS="" 3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3719/* end confdefs.h. */ 3720 3721int 3722main () 3723{ 3724 3725 ; 3726 return 0; 3727} 3728_ACEOF 3729if ac_fn_c_try_compile "$LINENO"; then : 3730 3731else 3732 ac_c_werror_flag=$ac_save_c_werror_flag 3733 CFLAGS="-g" 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737int 3738main () 3739{ 3740 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_compile "$LINENO"; then : 3746 ac_cv_prog_cc_g=yes 3747fi 3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3749fi 3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3751fi 3752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3753 ac_c_werror_flag=$ac_save_c_werror_flag 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3756$as_echo "$ac_cv_prog_cc_g" >&6; } 3757if test "$ac_test_CFLAGS" = set; then 3758 CFLAGS=$ac_save_CFLAGS 3759elif test $ac_cv_prog_cc_g = yes; then 3760 if test "$GCC" = yes; then 3761 CFLAGS="-g -O2" 3762 else 3763 CFLAGS="-g" 3764 fi 3765else 3766 if test "$GCC" = yes; then 3767 CFLAGS="-O2" 3768 else 3769 CFLAGS= 3770 fi 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3773$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3774if ${ac_cv_prog_cc_c89+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 ac_cv_prog_cc_c89=no 3778ac_save_CC=$CC 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781#include <stdarg.h> 3782#include <stdio.h> 3783struct stat; 3784/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3785struct buf { int x; }; 3786FILE * (*rcsopen) (struct buf *, struct stat *, int); 3787static char *e (p, i) 3788 char **p; 3789 int i; 3790{ 3791 return p[i]; 3792} 3793static char *f (char * (*g) (char **, int), char **p, ...) 3794{ 3795 char *s; 3796 va_list v; 3797 va_start (v,p); 3798 s = g (p, va_arg (v,int)); 3799 va_end (v); 3800 return s; 3801} 3802 3803/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3804 function prototypes and stuff, but not '\xHH' hex character constants. 3805 These don't provoke an error unfortunately, instead are silently treated 3806 as 'x'. The following induces an error, until -std is added to get 3807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3808 array size at least. It's necessary to write '\x00'==0 to get something 3809 that's true only with -std. */ 3810int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3811 3812/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3813 inside strings and character constants. */ 3814#define FOO(x) 'x' 3815int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3816 3817int test (int i, double x); 3818struct s1 {int (*f) (int a);}; 3819struct s2 {int (*f) (double a);}; 3820int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3821int argc; 3822char **argv; 3823int 3824main () 3825{ 3826return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3833do 3834 CC="$ac_save_CC $ac_arg" 3835 if ac_fn_c_try_compile "$LINENO"; then : 3836 ac_cv_prog_cc_c89=$ac_arg 3837fi 3838rm -f core conftest.err conftest.$ac_objext 3839 test "x$ac_cv_prog_cc_c89" != "xno" && break 3840done 3841rm -f conftest.$ac_ext 3842CC=$ac_save_CC 3843 3844fi 3845# AC_CACHE_VAL 3846case "x$ac_cv_prog_cc_c89" in 3847 x) 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3849$as_echo "none needed" >&6; } ;; 3850 xno) 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3852$as_echo "unsupported" >&6; } ;; 3853 *) 3854 CC="$CC $ac_cv_prog_cc_c89" 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3856$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3857esac 3858if test "x$ac_cv_prog_cc_c89" != xno; then : 3859 3860fi 3861 3862ac_ext=c 3863ac_cpp='$CPP $CPPFLAGS' 3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3866ac_compiler_gnu=$ac_cv_c_compiler_gnu 3867 3868ac_ext=c 3869ac_cpp='$CPP $CPPFLAGS' 3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3872ac_compiler_gnu=$ac_cv_c_compiler_gnu 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3874$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3875if ${am_cv_prog_cc_c_o+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880 3881int 3882main () 3883{ 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889 # Make sure it works both with $CC and with simple cc. 3890 # Following AC_PROG_CC_C_O, we do the test twice because some 3891 # compilers refuse to overwrite an existing .o file with -o, 3892 # though they will create one. 3893 am_cv_prog_cc_c_o=yes 3894 for am_i in 1 2; do 3895 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3896 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3897 ac_status=$? 3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3899 (exit $ac_status); } \ 3900 && test -f conftest2.$ac_objext; then 3901 : OK 3902 else 3903 am_cv_prog_cc_c_o=no 3904 break 3905 fi 3906 done 3907 rm -f core conftest* 3908 unset am_i 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3911$as_echo "$am_cv_prog_cc_c_o" >&6; } 3912if test "$am_cv_prog_cc_c_o" != yes; then 3913 # Losing compiler, so override with the script. 3914 # FIXME: It is wrong to rewrite CC. 3915 # But if we don't then we get into trouble of one sort or another. 3916 # A longer-term fix would be to have automake use am__CC in this case, 3917 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3918 CC="$am_aux_dir/compile $CC" 3919fi 3920ac_ext=c 3921ac_cpp='$CPP $CPPFLAGS' 3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3924ac_compiler_gnu=$ac_cv_c_compiler_gnu 3925 3926 3927depcc="$CC" am_compiler_list= 3928 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3930$as_echo_n "checking dependency style of $depcc... " >&6; } 3931if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3932 $as_echo_n "(cached) " >&6 3933else 3934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3935 # We make a subdir and do the tests there. Otherwise we can end up 3936 # making bogus files that we don't know about and never remove. For 3937 # instance it was reported that on HP-UX the gcc test will end up 3938 # making a dummy file named 'D' -- because '-MD' means "put the output 3939 # in D". 3940 rm -rf conftest.dir 3941 mkdir conftest.dir 3942 # Copy depcomp to subdir because otherwise we won't find it if we're 3943 # using a relative directory. 3944 cp "$am_depcomp" conftest.dir 3945 cd conftest.dir 3946 # We will build objects and dependencies in a subdirectory because 3947 # it helps to detect inapplicable dependency modes. For instance 3948 # both Tru64's cc and ICC support -MD to output dependencies as a 3949 # side effect of compilation, but ICC will put the dependencies in 3950 # the current directory while Tru64 will put them in the object 3951 # directory. 3952 mkdir sub 3953 3954 am_cv_CC_dependencies_compiler_type=none 3955 if test "$am_compiler_list" = ""; then 3956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3957 fi 3958 am__universal=false 3959 case " $depcc " in #( 3960 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3961 esac 3962 3963 for depmode in $am_compiler_list; do 3964 # Setup a source with many dependencies, because some compilers 3965 # like to wrap large dependency lists on column 80 (with \), and 3966 # we should not choose a depcomp mode which is confused by this. 3967 # 3968 # We need to recreate these files for each test, as the compiler may 3969 # overwrite some of them when testing with obscure command lines. 3970 # This happens at least with the AIX C compiler. 3971 : > sub/conftest.c 3972 for i in 1 2 3 4 5 6; do 3973 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3974 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3975 # Solaris 10 /bin/sh. 3976 echo '/* dummy */' > sub/conftst$i.h 3977 done 3978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3979 3980 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3981 # mode. It turns out that the SunPro C++ compiler does not properly 3982 # handle '-M -o', and we need to detect this. Also, some Intel 3983 # versions had trouble with output in subdirs. 3984 am__obj=sub/conftest.${OBJEXT-o} 3985 am__minus_obj="-o $am__obj" 3986 case $depmode in 3987 gcc) 3988 # This depmode causes a compiler race in universal mode. 3989 test "$am__universal" = false || continue 3990 ;; 3991 nosideeffect) 3992 # After this tag, mechanisms are not by side-effect, so they'll 3993 # only be used when explicitly requested. 3994 if test "x$enable_dependency_tracking" = xyes; then 3995 continue 3996 else 3997 break 3998 fi 3999 ;; 4000 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4001 # This compiler won't grok '-c -o', but also, the minuso test has 4002 # not run yet. These depmodes are late enough in the game, and 4003 # so weak that their functioning should not be impacted. 4004 am__obj=conftest.${OBJEXT-o} 4005 am__minus_obj= 4006 ;; 4007 none) break ;; 4008 esac 4009 if depmode=$depmode \ 4010 source=sub/conftest.c object=$am__obj \ 4011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4013 >/dev/null 2>conftest.err && 4014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4018 # icc doesn't choke on unknown options, it will just issue warnings 4019 # or remarks (even with -Werror). So we grep stderr for any message 4020 # that says an option was ignored or not supported. 4021 # When given -MP, icc 7.0 and 7.1 complain thusly: 4022 # icc: Command line warning: ignoring option '-M'; no argument required 4023 # The diagnosis changed in icc 8.0: 4024 # icc: Command line remark: option '-MP' not supported 4025 if (grep 'ignoring option' conftest.err || 4026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4027 am_cv_CC_dependencies_compiler_type=$depmode 4028 break 4029 fi 4030 fi 4031 done 4032 4033 cd .. 4034 rm -rf conftest.dir 4035else 4036 am_cv_CC_dependencies_compiler_type=none 4037fi 4038 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4041$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4042CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4043 4044 if 4045 test "x$enable_dependency_tracking" != xno \ 4046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4047 am__fastdepCC_TRUE= 4048 am__fastdepCC_FALSE='#' 4049else 4050 am__fastdepCC_TRUE='#' 4051 am__fastdepCC_FALSE= 4052fi 4053 4054 4055 4056# Check whether --enable-largefile was given. 4057if test "${enable_largefile+set}" = set; then : 4058 enableval=$enable_largefile; 4059fi 4060 4061if test "$enable_largefile" != no; then 4062 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4064$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4065if ${ac_cv_sys_largefile_CC+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 ac_cv_sys_largefile_CC=no 4069 if test "$GCC" != yes; then 4070 ac_save_CC=$CC 4071 while :; do 4072 # IRIX 6.2 and later do not support large files by default, 4073 # so use the C compiler's -n32 option if that helps. 4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076#include <sys/types.h> 4077 /* Check that off_t can represent 2**63 - 1 correctly. 4078 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4079 since some C++ compilers masquerading as C compilers 4080 incorrectly reject 9223372036854775807. */ 4081#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4083 && LARGE_OFF_T % 2147483647 == 1) 4084 ? 1 : -1]; 4085int 4086main () 4087{ 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093 if ac_fn_c_try_compile "$LINENO"; then : 4094 break 4095fi 4096rm -f core conftest.err conftest.$ac_objext 4097 CC="$CC -n32" 4098 if ac_fn_c_try_compile "$LINENO"; then : 4099 ac_cv_sys_largefile_CC=' -n32'; break 4100fi 4101rm -f core conftest.err conftest.$ac_objext 4102 break 4103 done 4104 CC=$ac_save_CC 4105 rm -f conftest.$ac_ext 4106 fi 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4109$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4110 if test "$ac_cv_sys_largefile_CC" != no; then 4111 CC=$CC$ac_cv_sys_largefile_CC 4112 fi 4113 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4115$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4116if ${ac_cv_sys_file_offset_bits+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 while :; do 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <sys/types.h> 4123 /* Check that off_t can represent 2**63 - 1 correctly. 4124 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4125 since some C++ compilers masquerading as C compilers 4126 incorrectly reject 9223372036854775807. */ 4127#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4129 && LARGE_OFF_T % 2147483647 == 1) 4130 ? 1 : -1]; 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 ac_cv_sys_file_offset_bits=no; break 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145#define _FILE_OFFSET_BITS 64 4146#include <sys/types.h> 4147 /* Check that off_t can represent 2**63 - 1 correctly. 4148 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4149 since some C++ compilers masquerading as C compilers 4150 incorrectly reject 9223372036854775807. */ 4151#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4153 && LARGE_OFF_T % 2147483647 == 1) 4154 ? 1 : -1]; 4155int 4156main () 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163if ac_fn_c_try_compile "$LINENO"; then : 4164 ac_cv_sys_file_offset_bits=64; break 4165fi 4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4167 ac_cv_sys_file_offset_bits=unknown 4168 break 4169done 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4172$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4173case $ac_cv_sys_file_offset_bits in #( 4174 no | unknown) ;; 4175 *) 4176cat >>confdefs.h <<_ACEOF 4177#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4178_ACEOF 4179;; 4180esac 4181rm -rf conftest* 4182 if test $ac_cv_sys_file_offset_bits = unknown; then 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4184$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4185if ${ac_cv_sys_large_files+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 while :; do 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#include <sys/types.h> 4192 /* Check that off_t can represent 2**63 - 1 correctly. 4193 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4194 since some C++ compilers masquerading as C compilers 4195 incorrectly reject 9223372036854775807. */ 4196#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4198 && LARGE_OFF_T % 2147483647 == 1) 4199 ? 1 : -1]; 4200int 4201main () 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_c_try_compile "$LINENO"; then : 4209 ac_cv_sys_large_files=no; break 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214#define _LARGE_FILES 1 4215#include <sys/types.h> 4216 /* Check that off_t can represent 2**63 - 1 correctly. 4217 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4218 since some C++ compilers masquerading as C compilers 4219 incorrectly reject 9223372036854775807. */ 4220#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4222 && LARGE_OFF_T % 2147483647 == 1) 4223 ? 1 : -1]; 4224int 4225main () 4226{ 4227 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232if ac_fn_c_try_compile "$LINENO"; then : 4233 ac_cv_sys_large_files=1; break 4234fi 4235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4236 ac_cv_sys_large_files=unknown 4237 break 4238done 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4241$as_echo "$ac_cv_sys_large_files" >&6; } 4242case $ac_cv_sys_large_files in #( 4243 no | unknown) ;; 4244 *) 4245cat >>confdefs.h <<_ACEOF 4246#define _LARGE_FILES $ac_cv_sys_large_files 4247_ACEOF 4248;; 4249esac 4250rm -rf conftest* 4251 fi 4252 4253 4254fi 4255 4256 4257# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4270$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4271if ${ac_cv_prog_cc_c99+:} false; then : 4272 $as_echo_n "(cached) " >&6 4273else 4274 ac_cv_prog_cc_c99=no 4275ac_save_CC=$CC 4276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278#include <stdarg.h> 4279#include <stdbool.h> 4280#include <stdlib.h> 4281#include <wchar.h> 4282#include <stdio.h> 4283 4284// Check varargs macros. These examples are taken from C99 6.10.3.5. 4285#define debug(...) fprintf (stderr, __VA_ARGS__) 4286#define showlist(...) puts (#__VA_ARGS__) 4287#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4288static void 4289test_varargs_macros (void) 4290{ 4291 int x = 1234; 4292 int y = 5678; 4293 debug ("Flag"); 4294 debug ("X = %d\n", x); 4295 showlist (The first, second, and third items.); 4296 report (x>y, "x is %d but y is %d", x, y); 4297} 4298 4299// Check long long types. 4300#define BIG64 18446744073709551615ull 4301#define BIG32 4294967295ul 4302#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4303#if !BIG_OK 4304 your preprocessor is broken; 4305#endif 4306#if BIG_OK 4307#else 4308 your preprocessor is broken; 4309#endif 4310static long long int bignum = -9223372036854775807LL; 4311static unsigned long long int ubignum = BIG64; 4312 4313struct incomplete_array 4314{ 4315 int datasize; 4316 double data[]; 4317}; 4318 4319struct named_init { 4320 int number; 4321 const wchar_t *name; 4322 double average; 4323}; 4324 4325typedef const char *ccp; 4326 4327static inline int 4328test_restrict (ccp restrict text) 4329{ 4330 // See if C++-style comments work. 4331 // Iterate through items via the restricted pointer. 4332 // Also check for declarations in for loops. 4333 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4334 continue; 4335 return 0; 4336} 4337 4338// Check varargs and va_copy. 4339static void 4340test_varargs (const char *format, ...) 4341{ 4342 va_list args; 4343 va_start (args, format); 4344 va_list args_copy; 4345 va_copy (args_copy, args); 4346 4347 const char *str; 4348 int number; 4349 float fnumber; 4350 4351 while (*format) 4352 { 4353 switch (*format++) 4354 { 4355 case 's': // string 4356 str = va_arg (args_copy, const char *); 4357 break; 4358 case 'd': // int 4359 number = va_arg (args_copy, int); 4360 break; 4361 case 'f': // float 4362 fnumber = va_arg (args_copy, double); 4363 break; 4364 default: 4365 break; 4366 } 4367 } 4368 va_end (args_copy); 4369 va_end (args); 4370} 4371 4372int 4373main () 4374{ 4375 4376 // Check bool. 4377 _Bool success = false; 4378 4379 // Check restrict. 4380 if (test_restrict ("String literal") == 0) 4381 success = true; 4382 char *restrict newvar = "Another string"; 4383 4384 // Check varargs. 4385 test_varargs ("s, d' f .", "string", 65, 34.234); 4386 test_varargs_macros (); 4387 4388 // Check flexible array members. 4389 struct incomplete_array *ia = 4390 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4391 ia->datasize = 10; 4392 for (int i = 0; i < ia->datasize; ++i) 4393 ia->data[i] = i * 1.234; 4394 4395 // Check named initializers. 4396 struct named_init ni = { 4397 .number = 34, 4398 .name = L"Test wide string", 4399 .average = 543.34343, 4400 }; 4401 4402 ni.number = 58; 4403 4404 int dynamic_array[ni.number]; 4405 dynamic_array[ni.number - 1] = 543; 4406 4407 // work around unused variable warnings 4408 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4409 || dynamic_array[ni.number - 1] != 543); 4410 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4416do 4417 CC="$ac_save_CC $ac_arg" 4418 if ac_fn_c_try_compile "$LINENO"; then : 4419 ac_cv_prog_cc_c99=$ac_arg 4420fi 4421rm -f core conftest.err conftest.$ac_objext 4422 test "x$ac_cv_prog_cc_c99" != "xno" && break 4423done 4424rm -f conftest.$ac_ext 4425CC=$ac_save_CC 4426 4427fi 4428# AC_CACHE_VAL 4429case "x$ac_cv_prog_cc_c99" in 4430 x) 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4432$as_echo "none needed" >&6; } ;; 4433 xno) 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4435$as_echo "unsupported" >&6; } ;; 4436 *) 4437 CC="$CC $ac_cv_prog_cc_c99" 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4439$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4440esac 4441if test "x$ac_cv_prog_cc_c99" != xno; then : 4442 4443fi 4444 4445 4446ac_ext=c 4447ac_cpp='$CPP $CPPFLAGS' 4448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4450ac_compiler_gnu=$ac_cv_c_compiler_gnu 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4452$as_echo_n "checking how to run the C preprocessor... " >&6; } 4453# On Suns, sometimes $CPP names a directory. 4454if test -n "$CPP" && test -d "$CPP"; then 4455 CPP= 4456fi 4457if test -z "$CPP"; then 4458 if ${ac_cv_prog_CPP+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 # Double quotes because CPP needs to be expanded 4462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4463 do 4464 ac_preproc_ok=false 4465for ac_c_preproc_warn_flag in '' yes 4466do 4467 # Use a header file that comes with gcc, so configuring glibc 4468 # with a fresh cross-compiler works. 4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4470 # <limits.h> exists even on freestanding compilers. 4471 # On the NeXT, cc -E runs the code through the compiler's parser, 4472 # not just through cpp. "Syntax error" is here to catch this case. 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475#ifdef __STDC__ 4476# include <limits.h> 4477#else 4478# include <assert.h> 4479#endif 4480 Syntax error 4481_ACEOF 4482if ac_fn_c_try_cpp "$LINENO"; then : 4483 4484else 4485 # Broken: fails on valid input. 4486continue 4487fi 4488rm -f conftest.err conftest.i conftest.$ac_ext 4489 4490 # OK, works on sane cases. Now check whether nonexistent headers 4491 # can be detected and how. 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493/* end confdefs.h. */ 4494#include <ac_nonexistent.h> 4495_ACEOF 4496if ac_fn_c_try_cpp "$LINENO"; then : 4497 # Broken: success on invalid input. 4498continue 4499else 4500 # Passes both tests. 4501ac_preproc_ok=: 4502break 4503fi 4504rm -f conftest.err conftest.i conftest.$ac_ext 4505 4506done 4507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4508rm -f conftest.i conftest.err conftest.$ac_ext 4509if $ac_preproc_ok; then : 4510 break 4511fi 4512 4513 done 4514 ac_cv_prog_CPP=$CPP 4515 4516fi 4517 CPP=$ac_cv_prog_CPP 4518else 4519 ac_cv_prog_CPP=$CPP 4520fi 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4522$as_echo "$CPP" >&6; } 4523ac_preproc_ok=false 4524for ac_c_preproc_warn_flag in '' yes 4525do 4526 # Use a header file that comes with gcc, so configuring glibc 4527 # with a fresh cross-compiler works. 4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4529 # <limits.h> exists even on freestanding compilers. 4530 # On the NeXT, cc -E runs the code through the compiler's parser, 4531 # not just through cpp. "Syntax error" is here to catch this case. 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533/* end confdefs.h. */ 4534#ifdef __STDC__ 4535# include <limits.h> 4536#else 4537# include <assert.h> 4538#endif 4539 Syntax error 4540_ACEOF 4541if ac_fn_c_try_cpp "$LINENO"; then : 4542 4543else 4544 # Broken: fails on valid input. 4545continue 4546fi 4547rm -f conftest.err conftest.i conftest.$ac_ext 4548 4549 # OK, works on sane cases. Now check whether nonexistent headers 4550 # can be detected and how. 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552/* end confdefs.h. */ 4553#include <ac_nonexistent.h> 4554_ACEOF 4555if ac_fn_c_try_cpp "$LINENO"; then : 4556 # Broken: success on invalid input. 4557continue 4558else 4559 # Passes both tests. 4560ac_preproc_ok=: 4561break 4562fi 4563rm -f conftest.err conftest.i conftest.$ac_ext 4564 4565done 4566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4567rm -f conftest.i conftest.err conftest.$ac_ext 4568if $ac_preproc_ok; then : 4569 4570else 4571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4573as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4574See \`config.log' for more details" "$LINENO" 5; } 4575fi 4576 4577ac_ext=c 4578ac_cpp='$CPP $CPPFLAGS' 4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4581ac_compiler_gnu=$ac_cv_c_compiler_gnu 4582 4583 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4585$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4586if ${ac_cv_path_GREP+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588else 4589 if test -z "$GREP"; then 4590 ac_path_GREP_found=false 4591 # Loop through the user's path and test for each of PROGNAME-LIST 4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4593for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4594do 4595 IFS=$as_save_IFS 4596 test -z "$as_dir" && as_dir=. 4597 for ac_prog in grep ggrep; do 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4600 as_fn_executable_p "$ac_path_GREP" || continue 4601# Check for GNU ac_path_GREP and select it if it is found. 4602 # Check for GNU $ac_path_GREP 4603case `"$ac_path_GREP" --version 2>&1` in 4604*GNU*) 4605 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4606*) 4607 ac_count=0 4608 $as_echo_n 0123456789 >"conftest.in" 4609 while : 4610 do 4611 cat "conftest.in" "conftest.in" >"conftest.tmp" 4612 mv "conftest.tmp" "conftest.in" 4613 cp "conftest.in" "conftest.nl" 4614 $as_echo 'GREP' >> "conftest.nl" 4615 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4617 as_fn_arith $ac_count + 1 && ac_count=$as_val 4618 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4619 # Best one so far, save it but keep looking for a better one 4620 ac_cv_path_GREP="$ac_path_GREP" 4621 ac_path_GREP_max=$ac_count 4622 fi 4623 # 10*(2^10) chars as input seems more than enough 4624 test $ac_count -gt 10 && break 4625 done 4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4627esac 4628 4629 $ac_path_GREP_found && break 3 4630 done 4631 done 4632 done 4633IFS=$as_save_IFS 4634 if test -z "$ac_cv_path_GREP"; then 4635 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4636 fi 4637else 4638 ac_cv_path_GREP=$GREP 4639fi 4640 4641fi 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4643$as_echo "$ac_cv_path_GREP" >&6; } 4644 GREP="$ac_cv_path_GREP" 4645 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4648$as_echo_n "checking for egrep... " >&6; } 4649if ${ac_cv_path_EGREP+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4653 then ac_cv_path_EGREP="$GREP -E" 4654 else 4655 if test -z "$EGREP"; then 4656 ac_path_EGREP_found=false 4657 # Loop through the user's path and test for each of PROGNAME-LIST 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4660do 4661 IFS=$as_save_IFS 4662 test -z "$as_dir" && as_dir=. 4663 for ac_prog in egrep; do 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4666 as_fn_executable_p "$ac_path_EGREP" || continue 4667# Check for GNU ac_path_EGREP and select it if it is found. 4668 # Check for GNU $ac_path_EGREP 4669case `"$ac_path_EGREP" --version 2>&1` in 4670*GNU*) 4671 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4672*) 4673 ac_count=0 4674 $as_echo_n 0123456789 >"conftest.in" 4675 while : 4676 do 4677 cat "conftest.in" "conftest.in" >"conftest.tmp" 4678 mv "conftest.tmp" "conftest.in" 4679 cp "conftest.in" "conftest.nl" 4680 $as_echo 'EGREP' >> "conftest.nl" 4681 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4683 as_fn_arith $ac_count + 1 && ac_count=$as_val 4684 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4685 # Best one so far, save it but keep looking for a better one 4686 ac_cv_path_EGREP="$ac_path_EGREP" 4687 ac_path_EGREP_max=$ac_count 4688 fi 4689 # 10*(2^10) chars as input seems more than enough 4690 test $ac_count -gt 10 && break 4691 done 4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4693esac 4694 4695 $ac_path_EGREP_found && break 3 4696 done 4697 done 4698 done 4699IFS=$as_save_IFS 4700 if test -z "$ac_cv_path_EGREP"; then 4701 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4702 fi 4703else 4704 ac_cv_path_EGREP=$EGREP 4705fi 4706 4707 fi 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4710$as_echo "$ac_cv_path_EGREP" >&6; } 4711 EGREP="$ac_cv_path_EGREP" 4712 4713 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4715$as_echo_n "checking for ANSI C header files... " >&6; } 4716if ${ac_cv_header_stdc+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721#include <stdlib.h> 4722#include <stdarg.h> 4723#include <string.h> 4724#include <float.h> 4725 4726int 4727main () 4728{ 4729 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734if ac_fn_c_try_compile "$LINENO"; then : 4735 ac_cv_header_stdc=yes 4736else 4737 ac_cv_header_stdc=no 4738fi 4739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4740 4741if test $ac_cv_header_stdc = yes; then 4742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744/* end confdefs.h. */ 4745#include <string.h> 4746 4747_ACEOF 4748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4749 $EGREP "memchr" >/dev/null 2>&1; then : 4750 4751else 4752 ac_cv_header_stdc=no 4753fi 4754rm -f conftest* 4755 4756fi 4757 4758if test $ac_cv_header_stdc = yes; then 4759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4761/* end confdefs.h. */ 4762#include <stdlib.h> 4763 4764_ACEOF 4765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4766 $EGREP "free" >/dev/null 2>&1; then : 4767 4768else 4769 ac_cv_header_stdc=no 4770fi 4771rm -f conftest* 4772 4773fi 4774 4775if test $ac_cv_header_stdc = yes; then 4776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4777 if test "$cross_compiling" = yes; then : 4778 : 4779else 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781/* end confdefs.h. */ 4782#include <ctype.h> 4783#include <stdlib.h> 4784#if ((' ' & 0x0FF) == 0x020) 4785# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4786# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4787#else 4788# define ISLOWER(c) \ 4789 (('a' <= (c) && (c) <= 'i') \ 4790 || ('j' <= (c) && (c) <= 'r') \ 4791 || ('s' <= (c) && (c) <= 'z')) 4792# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4793#endif 4794 4795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4796int 4797main () 4798{ 4799 int i; 4800 for (i = 0; i < 256; i++) 4801 if (XOR (islower (i), ISLOWER (i)) 4802 || toupper (i) != TOUPPER (i)) 4803 return 2; 4804 return 0; 4805} 4806_ACEOF 4807if ac_fn_c_try_run "$LINENO"; then : 4808 4809else 4810 ac_cv_header_stdc=no 4811fi 4812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4813 conftest.$ac_objext conftest.beam conftest.$ac_ext 4814fi 4815 4816fi 4817fi 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4819$as_echo "$ac_cv_header_stdc" >&6; } 4820if test $ac_cv_header_stdc = yes; then 4821 4822$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4823 4824fi 4825 4826# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4827for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4828 inttypes.h stdint.h unistd.h 4829do : 4830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4831ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4832" 4833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4834 cat >>confdefs.h <<_ACEOF 4835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4836_ACEOF 4837 4838fi 4839 4840done 4841 4842 4843 4844 4845 4846 4847ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4848if test "x$ac_cv_have_decl___clang__" = xyes; then : 4849 CLANGCC="yes" 4850else 4851 CLANGCC="no" 4852fi 4853 4854ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4855if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4856 INTELCC="yes" 4857else 4858 INTELCC="no" 4859fi 4860 4861ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4862if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4863 SUNCC="yes" 4864else 4865 SUNCC="no" 4866fi 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4877 if test -n "$ac_tool_prefix"; then 4878 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4879set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4881$as_echo_n "checking for $ac_word... " >&6; } 4882if ${ac_cv_path_PKG_CONFIG+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 case $PKG_CONFIG in 4886 [\\/]* | ?:[\\/]*) 4887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4888 ;; 4889 *) 4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4891for as_dir in $PATH 4892do 4893 IFS=$as_save_IFS 4894 test -z "$as_dir" && as_dir=. 4895 for ac_exec_ext in '' $ac_executable_extensions; do 4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4899 break 2 4900 fi 4901done 4902 done 4903IFS=$as_save_IFS 4904 4905 ;; 4906esac 4907fi 4908PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4909if test -n "$PKG_CONFIG"; then 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4911$as_echo "$PKG_CONFIG" >&6; } 4912else 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4914$as_echo "no" >&6; } 4915fi 4916 4917 4918fi 4919if test -z "$ac_cv_path_PKG_CONFIG"; then 4920 ac_pt_PKG_CONFIG=$PKG_CONFIG 4921 # Extract the first word of "pkg-config", so it can be a program name with args. 4922set dummy pkg-config; ac_word=$2 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4924$as_echo_n "checking for $ac_word... " >&6; } 4925if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 case $ac_pt_PKG_CONFIG in 4929 [\\/]* | ?:[\\/]*) 4930 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4931 ;; 4932 *) 4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4934for as_dir in $PATH 4935do 4936 IFS=$as_save_IFS 4937 test -z "$as_dir" && as_dir=. 4938 for ac_exec_ext in '' $ac_executable_extensions; do 4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4940 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4942 break 2 4943 fi 4944done 4945 done 4946IFS=$as_save_IFS 4947 4948 ;; 4949esac 4950fi 4951ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4952if test -n "$ac_pt_PKG_CONFIG"; then 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4954$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4955else 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4957$as_echo "no" >&6; } 4958fi 4959 4960 if test "x$ac_pt_PKG_CONFIG" = x; then 4961 PKG_CONFIG="" 4962 else 4963 case $cross_compiling:$ac_tool_warned in 4964yes:) 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4967ac_tool_warned=yes ;; 4968esac 4969 PKG_CONFIG=$ac_pt_PKG_CONFIG 4970 fi 4971else 4972 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4973fi 4974 4975fi 4976if test -n "$PKG_CONFIG"; then 4977 _pkg_min_version=0.9.0 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4979$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4980 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4982$as_echo "yes" >&6; } 4983 else 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4985$as_echo "no" >&6; } 4986 PKG_CONFIG="" 4987 fi 4988fi 4989# Make sure we can run config.sub. 4990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4991 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4992 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4994$as_echo_n "checking build system type... " >&6; } 4995if ${ac_cv_build+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997else 4998 ac_build_alias=$build_alias 4999test "x$ac_build_alias" = x && 5000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5001test "x$ac_build_alias" = x && 5002 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5003ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5005 5006fi 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5008$as_echo "$ac_cv_build" >&6; } 5009case $ac_cv_build in 5010*-*-*) ;; 5011*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5012esac 5013build=$ac_cv_build 5014ac_save_IFS=$IFS; IFS='-' 5015set x $ac_cv_build 5016shift 5017build_cpu=$1 5018build_vendor=$2 5019shift; shift 5020# Remember, the first character of IFS is used to create $*, 5021# except with old shells: 5022build_os=$* 5023IFS=$ac_save_IFS 5024case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5025 5026 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5028$as_echo_n "checking host system type... " >&6; } 5029if ${ac_cv_host+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 if test "x$host_alias" = x; then 5033 ac_cv_host=$ac_cv_build 5034else 5035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5037fi 5038 5039fi 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5041$as_echo "$ac_cv_host" >&6; } 5042case $ac_cv_host in 5043*-*-*) ;; 5044*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5045esac 5046host=$ac_cv_host 5047ac_save_IFS=$IFS; IFS='-' 5048set x $ac_cv_host 5049shift 5050host_cpu=$1 5051host_vendor=$2 5052shift; shift 5053# Remember, the first character of IFS is used to create $*, 5054# except with old shells: 5055host_os=$* 5056IFS=$ac_save_IFS 5057case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5058 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5061$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5062if ${ac_cv_path_SED+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5066 for ac_i in 1 2 3 4 5 6 7; do 5067 ac_script="$ac_script$as_nl$ac_script" 5068 done 5069 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5070 { ac_script=; unset ac_script;} 5071 if test -z "$SED"; then 5072 ac_path_SED_found=false 5073 # Loop through the user's path and test for each of PROGNAME-LIST 5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5075for as_dir in $PATH 5076do 5077 IFS=$as_save_IFS 5078 test -z "$as_dir" && as_dir=. 5079 for ac_prog in sed gsed; do 5080 for ac_exec_ext in '' $ac_executable_extensions; do 5081 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5082 as_fn_executable_p "$ac_path_SED" || continue 5083# Check for GNU ac_path_SED and select it if it is found. 5084 # Check for GNU $ac_path_SED 5085case `"$ac_path_SED" --version 2>&1` in 5086*GNU*) 5087 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5088*) 5089 ac_count=0 5090 $as_echo_n 0123456789 >"conftest.in" 5091 while : 5092 do 5093 cat "conftest.in" "conftest.in" >"conftest.tmp" 5094 mv "conftest.tmp" "conftest.in" 5095 cp "conftest.in" "conftest.nl" 5096 $as_echo '' >> "conftest.nl" 5097 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5099 as_fn_arith $ac_count + 1 && ac_count=$as_val 5100 if test $ac_count -gt ${ac_path_SED_max-0}; then 5101 # Best one so far, save it but keep looking for a better one 5102 ac_cv_path_SED="$ac_path_SED" 5103 ac_path_SED_max=$ac_count 5104 fi 5105 # 10*(2^10) chars as input seems more than enough 5106 test $ac_count -gt 10 && break 5107 done 5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5109esac 5110 5111 $ac_path_SED_found && break 3 5112 done 5113 done 5114 done 5115IFS=$as_save_IFS 5116 if test -z "$ac_cv_path_SED"; then 5117 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5118 fi 5119else 5120 ac_cv_path_SED=$SED 5121fi 5122 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5125$as_echo "$ac_cv_path_SED" >&6; } 5126 SED="$ac_cv_path_SED" 5127 rm -f conftest.sed 5128 5129 5130 5131 5132 5133 5134# Check whether --enable-selective-werror was given. 5135if test "${enable_selective_werror+set}" = set; then : 5136 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5137else 5138 SELECTIVE_WERROR=yes 5139fi 5140 5141 5142 5143 5144 5145# -v is too short to test reliably with XORG_TESTSET_CFLAG 5146if test "x$SUNCC" = "xyes"; then 5147 BASE_CFLAGS="-v" 5148else 5149 BASE_CFLAGS="" 5150fi 5151 5152# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166xorg_testset_save_CFLAGS="$CFLAGS" 5167 5168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176/* end confdefs.h. */ 5177int i; 5178_ACEOF 5179if ac_fn_c_try_compile "$LINENO"; then : 5180 xorg_cv_cc_flag_unknown_warning_option=yes 5181else 5182 xorg_cv_cc_flag_unknown_warning_option=no 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5185fi 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5189 CFLAGS="$xorg_testset_save_CFLAGS" 5190fi 5191 5192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5195 fi 5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203/* end confdefs.h. */ 5204int i; 5205_ACEOF 5206if ac_fn_c_try_compile "$LINENO"; then : 5207 xorg_cv_cc_flag_unused_command_line_argument=yes 5208else 5209 xorg_cv_cc_flag_unused_command_line_argument=no 5210fi 5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5212fi 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5216 CFLAGS="$xorg_testset_save_CFLAGS" 5217fi 5218 5219found="no" 5220 5221 if test $found = "no" ; then 5222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 fi 5225 5226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 fi 5229 5230 CFLAGS="$CFLAGS -Wall" 5231 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5233$as_echo_n "checking if $CC supports -Wall... " >&6; } 5234 cacheid=xorg_cv_cc_flag__Wall 5235 if eval \${$cacheid+:} false; then : 5236 $as_echo_n "(cached) " >&6 5237else 5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5239/* end confdefs.h. */ 5240int i; 5241int 5242main () 5243{ 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249if ac_fn_c_try_link "$LINENO"; then : 5250 eval $cacheid=yes 5251else 5252 eval $cacheid=no 5253fi 5254rm -f core conftest.err conftest.$ac_objext \ 5255 conftest$ac_exeext conftest.$ac_ext 5256fi 5257 5258 5259 CFLAGS="$xorg_testset_save_CFLAGS" 5260 5261 eval supported=\$$cacheid 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5263$as_echo "$supported" >&6; } 5264 if test "$supported" = "yes" ; then 5265 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5266 found="yes" 5267 fi 5268 fi 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284xorg_testset_save_CFLAGS="$CFLAGS" 5285 5286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294/* end confdefs.h. */ 5295int i; 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO"; then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299else 5300 xorg_cv_cc_flag_unknown_warning_option=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323_ACEOF 5324if ac_fn_c_try_compile "$LINENO"; then : 5325 xorg_cv_cc_flag_unused_command_line_argument=yes 5326else 5327 xorg_cv_cc_flag_unused_command_line_argument=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5330fi 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335fi 5336 5337found="no" 5338 5339 if test $found = "no" ; then 5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 fi 5343 5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 fi 5347 5348 CFLAGS="$CFLAGS -Wpointer-arith" 5349 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5351$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5352 cacheid=xorg_cv_cc_flag__Wpointer_arith 5353 if eval \${$cacheid+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358int i; 5359int 5360main () 5361{ 5362 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_link "$LINENO"; then : 5368 eval $cacheid=yes 5369else 5370 eval $cacheid=no 5371fi 5372rm -f core conftest.err conftest.$ac_objext \ 5373 conftest$ac_exeext conftest.$ac_ext 5374fi 5375 5376 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378 5379 eval supported=\$$cacheid 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5381$as_echo "$supported" >&6; } 5382 if test "$supported" = "yes" ; then 5383 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5384 found="yes" 5385 fi 5386 fi 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402xorg_testset_save_CFLAGS="$CFLAGS" 5403 5404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414_ACEOF 5415if ac_fn_c_try_compile "$LINENO"; then : 5416 xorg_cv_cc_flag_unknown_warning_option=yes 5417else 5418 xorg_cv_cc_flag_unknown_warning_option=no 5419fi 5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5425 CFLAGS="$xorg_testset_save_CFLAGS" 5426fi 5427 5428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5431 fi 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440int i; 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 xorg_cv_cc_flag_unused_command_line_argument=yes 5444else 5445 xorg_cv_cc_flag_unused_command_line_argument=no 5446fi 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5452 CFLAGS="$xorg_testset_save_CFLAGS" 5453fi 5454 5455found="no" 5456 5457 if test $found = "no" ; then 5458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460 fi 5461 5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 fi 5465 5466 CFLAGS="$CFLAGS -Wmissing-declarations" 5467 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5469$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5470 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5471 if eval \${$cacheid+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477int 5478main () 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_link "$LINENO"; then : 5486 eval $cacheid=yes 5487else 5488 eval $cacheid=no 5489fi 5490rm -f core conftest.err conftest.$ac_objext \ 5491 conftest$ac_exeext conftest.$ac_ext 5492fi 5493 5494 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496 5497 eval supported=\$$cacheid 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5499$as_echo "$supported" >&6; } 5500 if test "$supported" = "yes" ; then 5501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5502 found="yes" 5503 fi 5504 fi 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520xorg_testset_save_CFLAGS="$CFLAGS" 5521 5522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO"; then : 5534 xorg_cv_cc_flag_unknown_warning_option=yes 5535else 5536 xorg_cv_cc_flag_unknown_warning_option=no 5537fi 5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539fi 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5543 CFLAGS="$xorg_testset_save_CFLAGS" 5544fi 5545 5546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5549 fi 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559_ACEOF 5560if ac_fn_c_try_compile "$LINENO"; then : 5561 xorg_cv_cc_flag_unused_command_line_argument=yes 5562else 5563 xorg_cv_cc_flag_unused_command_line_argument=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5566fi 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5570 CFLAGS="$xorg_testset_save_CFLAGS" 5571fi 5572 5573found="no" 5574 5575 if test $found = "no" ; then 5576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578 fi 5579 5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 fi 5583 5584 CFLAGS="$CFLAGS -Wformat=2" 5585 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5587$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5588 cacheid=xorg_cv_cc_flag__Wformat_2 5589 if eval \${$cacheid+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595int 5596main () 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_link "$LINENO"; then : 5604 eval $cacheid=yes 5605else 5606 eval $cacheid=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext \ 5609 conftest$ac_exeext conftest.$ac_ext 5610fi 5611 5612 5613 CFLAGS="$xorg_testset_save_CFLAGS" 5614 5615 eval supported=\$$cacheid 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5617$as_echo "$supported" >&6; } 5618 if test "$supported" = "yes" ; then 5619 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5620 found="yes" 5621 fi 5622 fi 5623 5624 if test $found = "no" ; then 5625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5627 fi 5628 5629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5631 fi 5632 5633 CFLAGS="$CFLAGS -Wformat" 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5636$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5637 cacheid=xorg_cv_cc_flag__Wformat 5638 if eval \${$cacheid+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643int i; 5644int 5645main () 5646{ 5647 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652if ac_fn_c_try_link "$LINENO"; then : 5653 eval $cacheid=yes 5654else 5655 eval $cacheid=no 5656fi 5657rm -f core conftest.err conftest.$ac_objext \ 5658 conftest$ac_exeext conftest.$ac_ext 5659fi 5660 5661 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663 5664 eval supported=\$$cacheid 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5666$as_echo "$supported" >&6; } 5667 if test "$supported" = "yes" ; then 5668 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5669 found="yes" 5670 fi 5671 fi 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689xorg_testset_save_CFLAGS="$CFLAGS" 5690 5691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO"; then : 5703 xorg_cv_cc_flag_unknown_warning_option=yes 5704else 5705 xorg_cv_cc_flag_unknown_warning_option=no 5706fi 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5712 CFLAGS="$xorg_testset_save_CFLAGS" 5713fi 5714 5715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5718 fi 5719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5726/* end confdefs.h. */ 5727int i; 5728_ACEOF 5729if ac_fn_c_try_compile "$LINENO"; then : 5730 xorg_cv_cc_flag_unused_command_line_argument=yes 5731else 5732 xorg_cv_cc_flag_unused_command_line_argument=no 5733fi 5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5735fi 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5739 CFLAGS="$xorg_testset_save_CFLAGS" 5740fi 5741 5742found="no" 5743 5744 if test $found = "no" ; then 5745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5747 fi 5748 5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5751 fi 5752 5753 CFLAGS="$CFLAGS -Wstrict-prototypes" 5754 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5756$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5757 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5758 if eval \${$cacheid+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763int i; 5764int 5765main () 5766{ 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_link "$LINENO"; then : 5773 eval $cacheid=yes 5774else 5775 eval $cacheid=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext \ 5778 conftest$ac_exeext conftest.$ac_ext 5779fi 5780 5781 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783 5784 eval supported=\$$cacheid 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5786$as_echo "$supported" >&6; } 5787 if test "$supported" = "yes" ; then 5788 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5789 found="yes" 5790 fi 5791 fi 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807xorg_testset_save_CFLAGS="$CFLAGS" 5808 5809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819_ACEOF 5820if ac_fn_c_try_compile "$LINENO"; then : 5821 xorg_cv_cc_flag_unknown_warning_option=yes 5822else 5823 xorg_cv_cc_flag_unknown_warning_option=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5826fi 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5830 CFLAGS="$xorg_testset_save_CFLAGS" 5831fi 5832 5833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5836 fi 5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842else 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845int i; 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO"; then : 5848 xorg_cv_cc_flag_unused_command_line_argument=yes 5849else 5850 xorg_cv_cc_flag_unused_command_line_argument=no 5851fi 5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5853fi 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5857 CFLAGS="$xorg_testset_save_CFLAGS" 5858fi 5859 5860found="no" 5861 5862 if test $found = "no" ; then 5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5865 fi 5866 5867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5869 fi 5870 5871 CFLAGS="$CFLAGS -Wmissing-prototypes" 5872 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5874$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5875 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5876 if eval \${$cacheid+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882int 5883main () 5884{ 5885 5886 ; 5887 return 0; 5888} 5889_ACEOF 5890if ac_fn_c_try_link "$LINENO"; then : 5891 eval $cacheid=yes 5892else 5893 eval $cacheid=no 5894fi 5895rm -f core conftest.err conftest.$ac_objext \ 5896 conftest$ac_exeext conftest.$ac_ext 5897fi 5898 5899 5900 CFLAGS="$xorg_testset_save_CFLAGS" 5901 5902 eval supported=\$$cacheid 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5904$as_echo "$supported" >&6; } 5905 if test "$supported" = "yes" ; then 5906 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5907 found="yes" 5908 fi 5909 fi 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925xorg_testset_save_CFLAGS="$CFLAGS" 5926 5927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935/* end confdefs.h. */ 5936int i; 5937_ACEOF 5938if ac_fn_c_try_compile "$LINENO"; then : 5939 xorg_cv_cc_flag_unknown_warning_option=yes 5940else 5941 xorg_cv_cc_flag_unknown_warning_option=no 5942fi 5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5944fi 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5948 CFLAGS="$xorg_testset_save_CFLAGS" 5949fi 5950 5951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954 fi 5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964_ACEOF 5965if ac_fn_c_try_compile "$LINENO"; then : 5966 xorg_cv_cc_flag_unused_command_line_argument=yes 5967else 5968 xorg_cv_cc_flag_unused_command_line_argument=no 5969fi 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971fi 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5975 CFLAGS="$xorg_testset_save_CFLAGS" 5976fi 5977 5978found="no" 5979 5980 if test $found = "no" ; then 5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 fi 5984 5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987 fi 5988 5989 CFLAGS="$CFLAGS -Wnested-externs" 5990 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5992$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5993 cacheid=xorg_cv_cc_flag__Wnested_externs 5994 if eval \${$cacheid+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000int 6001main () 6002{ 6003 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008if ac_fn_c_try_link "$LINENO"; then : 6009 eval $cacheid=yes 6010else 6011 eval $cacheid=no 6012fi 6013rm -f core conftest.err conftest.$ac_objext \ 6014 conftest$ac_exeext conftest.$ac_ext 6015fi 6016 6017 6018 CFLAGS="$xorg_testset_save_CFLAGS" 6019 6020 eval supported=\$$cacheid 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6022$as_echo "$supported" >&6; } 6023 if test "$supported" = "yes" ; then 6024 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6025 found="yes" 6026 fi 6027 fi 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043xorg_testset_save_CFLAGS="$CFLAGS" 6044 6045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054int i; 6055_ACEOF 6056if ac_fn_c_try_compile "$LINENO"; then : 6057 xorg_cv_cc_flag_unknown_warning_option=yes 6058else 6059 xorg_cv_cc_flag_unknown_warning_option=no 6060fi 6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6062fi 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067fi 6068 6069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6072 fi 6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080/* end confdefs.h. */ 6081int i; 6082_ACEOF 6083if ac_fn_c_try_compile "$LINENO"; then : 6084 xorg_cv_cc_flag_unused_command_line_argument=yes 6085else 6086 xorg_cv_cc_flag_unused_command_line_argument=no 6087fi 6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6089fi 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6093 CFLAGS="$xorg_testset_save_CFLAGS" 6094fi 6095 6096found="no" 6097 6098 if test $found = "no" ; then 6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6101 fi 6102 6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6105 fi 6106 6107 CFLAGS="$CFLAGS -Wbad-function-cast" 6108 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6110$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6111 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6112 if eval \${$cacheid+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117int i; 6118int 6119main () 6120{ 6121 6122 ; 6123 return 0; 6124} 6125_ACEOF 6126if ac_fn_c_try_link "$LINENO"; then : 6127 eval $cacheid=yes 6128else 6129 eval $cacheid=no 6130fi 6131rm -f core conftest.err conftest.$ac_objext \ 6132 conftest$ac_exeext conftest.$ac_ext 6133fi 6134 6135 6136 CFLAGS="$xorg_testset_save_CFLAGS" 6137 6138 eval supported=\$$cacheid 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6140$as_echo "$supported" >&6; } 6141 if test "$supported" = "yes" ; then 6142 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6143 found="yes" 6144 fi 6145 fi 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161xorg_testset_save_CFLAGS="$CFLAGS" 6162 6163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172int i; 6173_ACEOF 6174if ac_fn_c_try_compile "$LINENO"; then : 6175 xorg_cv_cc_flag_unknown_warning_option=yes 6176else 6177 xorg_cv_cc_flag_unknown_warning_option=no 6178fi 6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6180fi 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6184 CFLAGS="$xorg_testset_save_CFLAGS" 6185fi 6186 6187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 fi 6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198/* end confdefs.h. */ 6199int i; 6200_ACEOF 6201if ac_fn_c_try_compile "$LINENO"; then : 6202 xorg_cv_cc_flag_unused_command_line_argument=yes 6203else 6204 xorg_cv_cc_flag_unused_command_line_argument=no 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207fi 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212fi 6213 6214found="no" 6215 6216 if test $found = "no" ; then 6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 fi 6220 6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6223 fi 6224 6225 CFLAGS="$CFLAGS -Wold-style-definition" 6226 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6228$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6229 cacheid=xorg_cv_cc_flag__Wold_style_definition 6230 if eval \${$cacheid+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232else 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235int i; 6236int 6237main () 6238{ 6239 6240 ; 6241 return 0; 6242} 6243_ACEOF 6244if ac_fn_c_try_link "$LINENO"; then : 6245 eval $cacheid=yes 6246else 6247 eval $cacheid=no 6248fi 6249rm -f core conftest.err conftest.$ac_objext \ 6250 conftest$ac_exeext conftest.$ac_ext 6251fi 6252 6253 6254 CFLAGS="$xorg_testset_save_CFLAGS" 6255 6256 eval supported=\$$cacheid 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6258$as_echo "$supported" >&6; } 6259 if test "$supported" = "yes" ; then 6260 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6261 found="yes" 6262 fi 6263 fi 6264 6265 if test $found = "no" ; then 6266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6268 fi 6269 6270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6272 fi 6273 6274 CFLAGS="$CFLAGS -fd" 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6277$as_echo_n "checking if $CC supports -fd... " >&6; } 6278 cacheid=xorg_cv_cc_flag__fd 6279 if eval \${$cacheid+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283/* end confdefs.h. */ 6284int i; 6285int 6286main () 6287{ 6288 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293if ac_fn_c_try_link "$LINENO"; then : 6294 eval $cacheid=yes 6295else 6296 eval $cacheid=no 6297fi 6298rm -f core conftest.err conftest.$ac_objext \ 6299 conftest$ac_exeext conftest.$ac_ext 6300fi 6301 6302 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304 6305 eval supported=\$$cacheid 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6307$as_echo "$supported" >&6; } 6308 if test "$supported" = "yes" ; then 6309 BASE_CFLAGS="$BASE_CFLAGS -fd" 6310 found="yes" 6311 fi 6312 fi 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328xorg_testset_save_CFLAGS="$CFLAGS" 6329 6330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338/* end confdefs.h. */ 6339int i; 6340_ACEOF 6341if ac_fn_c_try_compile "$LINENO"; then : 6342 xorg_cv_cc_flag_unknown_warning_option=yes 6343else 6344 xorg_cv_cc_flag_unknown_warning_option=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6347fi 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352fi 6353 6354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6362 $as_echo_n "(cached) " >&6 6363else 6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6365/* end confdefs.h. */ 6366int i; 6367_ACEOF 6368if ac_fn_c_try_compile "$LINENO"; then : 6369 xorg_cv_cc_flag_unused_command_line_argument=yes 6370else 6371 xorg_cv_cc_flag_unused_command_line_argument=no 6372fi 6373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6374fi 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6378 CFLAGS="$xorg_testset_save_CFLAGS" 6379fi 6380 6381found="no" 6382 6383 if test $found = "no" ; then 6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 fi 6387 6388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6390 fi 6391 6392 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6393 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6395$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6396 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6397 if eval \${$cacheid+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402int i; 6403int 6404main () 6405{ 6406 6407 ; 6408 return 0; 6409} 6410_ACEOF 6411if ac_fn_c_try_link "$LINENO"; then : 6412 eval $cacheid=yes 6413else 6414 eval $cacheid=no 6415fi 6416rm -f core conftest.err conftest.$ac_objext \ 6417 conftest$ac_exeext conftest.$ac_ext 6418fi 6419 6420 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 6423 eval supported=\$$cacheid 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6425$as_echo "$supported" >&6; } 6426 if test "$supported" = "yes" ; then 6427 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6428 found="yes" 6429 fi 6430 fi 6431 6432 6433 6434 6435 6436# This chunk adds additional warnings that could catch undesired effects. 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450xorg_testset_save_CFLAGS="$CFLAGS" 6451 6452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461int i; 6462_ACEOF 6463if ac_fn_c_try_compile "$LINENO"; then : 6464 xorg_cv_cc_flag_unknown_warning_option=yes 6465else 6466 xorg_cv_cc_flag_unknown_warning_option=no 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6469fi 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6473 CFLAGS="$xorg_testset_save_CFLAGS" 6474fi 6475 6476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6479 fi 6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488int i; 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO"; then : 6491 xorg_cv_cc_flag_unused_command_line_argument=yes 6492else 6493 xorg_cv_cc_flag_unused_command_line_argument=no 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6496fi 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6500 CFLAGS="$xorg_testset_save_CFLAGS" 6501fi 6502 6503found="no" 6504 6505 if test $found = "no" ; then 6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 fi 6509 6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 fi 6513 6514 CFLAGS="$CFLAGS -Wunused" 6515 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6517$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6518 cacheid=xorg_cv_cc_flag__Wunused 6519 if eval \${$cacheid+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524int i; 6525int 6526main () 6527{ 6528 6529 ; 6530 return 0; 6531} 6532_ACEOF 6533if ac_fn_c_try_link "$LINENO"; then : 6534 eval $cacheid=yes 6535else 6536 eval $cacheid=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext \ 6539 conftest$ac_exeext conftest.$ac_ext 6540fi 6541 6542 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544 6545 eval supported=\$$cacheid 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6547$as_echo "$supported" >&6; } 6548 if test "$supported" = "yes" ; then 6549 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6550 found="yes" 6551 fi 6552 fi 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568xorg_testset_save_CFLAGS="$CFLAGS" 6569 6570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579int i; 6580_ACEOF 6581if ac_fn_c_try_compile "$LINENO"; then : 6582 xorg_cv_cc_flag_unknown_warning_option=yes 6583else 6584 xorg_cv_cc_flag_unknown_warning_option=no 6585fi 6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6587fi 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592fi 6593 6594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6605/* end confdefs.h. */ 6606int i; 6607_ACEOF 6608if ac_fn_c_try_compile "$LINENO"; then : 6609 xorg_cv_cc_flag_unused_command_line_argument=yes 6610else 6611 xorg_cv_cc_flag_unused_command_line_argument=no 6612fi 6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6614fi 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619fi 6620 6621found="no" 6622 6623 if test $found = "no" ; then 6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6626 fi 6627 6628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 fi 6631 6632 CFLAGS="$CFLAGS -Wuninitialized" 6633 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6635$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6636 cacheid=xorg_cv_cc_flag__Wuninitialized 6637 if eval \${$cacheid+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643int 6644main () 6645{ 6646 6647 ; 6648 return 0; 6649} 6650_ACEOF 6651if ac_fn_c_try_link "$LINENO"; then : 6652 eval $cacheid=yes 6653else 6654 eval $cacheid=no 6655fi 6656rm -f core conftest.err conftest.$ac_objext \ 6657 conftest$ac_exeext conftest.$ac_ext 6658fi 6659 6660 6661 CFLAGS="$xorg_testset_save_CFLAGS" 6662 6663 eval supported=\$$cacheid 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6665$as_echo "$supported" >&6; } 6666 if test "$supported" = "yes" ; then 6667 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6668 found="yes" 6669 fi 6670 fi 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686xorg_testset_save_CFLAGS="$CFLAGS" 6687 6688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697int i; 6698_ACEOF 6699if ac_fn_c_try_compile "$LINENO"; then : 6700 xorg_cv_cc_flag_unknown_warning_option=yes 6701else 6702 xorg_cv_cc_flag_unknown_warning_option=no 6703fi 6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6705fi 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6709 CFLAGS="$xorg_testset_save_CFLAGS" 6710fi 6711 6712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6715 fi 6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723/* end confdefs.h. */ 6724int i; 6725_ACEOF 6726if ac_fn_c_try_compile "$LINENO"; then : 6727 xorg_cv_cc_flag_unused_command_line_argument=yes 6728else 6729 xorg_cv_cc_flag_unused_command_line_argument=no 6730fi 6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6732fi 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6736 CFLAGS="$xorg_testset_save_CFLAGS" 6737fi 6738 6739found="no" 6740 6741 if test $found = "no" ; then 6742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6744 fi 6745 6746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 fi 6749 6750 CFLAGS="$CFLAGS -Wshadow" 6751 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6753$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6754 cacheid=xorg_cv_cc_flag__Wshadow 6755 if eval \${$cacheid+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759/* end confdefs.h. */ 6760int i; 6761int 6762main () 6763{ 6764 6765 ; 6766 return 0; 6767} 6768_ACEOF 6769if ac_fn_c_try_link "$LINENO"; then : 6770 eval $cacheid=yes 6771else 6772 eval $cacheid=no 6773fi 6774rm -f core conftest.err conftest.$ac_objext \ 6775 conftest$ac_exeext conftest.$ac_ext 6776fi 6777 6778 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780 6781 eval supported=\$$cacheid 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6783$as_echo "$supported" >&6; } 6784 if test "$supported" = "yes" ; then 6785 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6786 found="yes" 6787 fi 6788 fi 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804xorg_testset_save_CFLAGS="$CFLAGS" 6805 6806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815int i; 6816_ACEOF 6817if ac_fn_c_try_compile "$LINENO"; then : 6818 xorg_cv_cc_flag_unknown_warning_option=yes 6819else 6820 xorg_cv_cc_flag_unknown_warning_option=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828fi 6829 6830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6833 fi 6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842int i; 6843_ACEOF 6844if ac_fn_c_try_compile "$LINENO"; then : 6845 xorg_cv_cc_flag_unused_command_line_argument=yes 6846else 6847 xorg_cv_cc_flag_unused_command_line_argument=no 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850fi 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6854 CFLAGS="$xorg_testset_save_CFLAGS" 6855fi 6856 6857found="no" 6858 6859 if test $found = "no" ; then 6860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6862 fi 6863 6864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6866 fi 6867 6868 CFLAGS="$CFLAGS -Wmissing-noreturn" 6869 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6871$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6872 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6873 if eval \${$cacheid+:} false; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878int i; 6879int 6880main () 6881{ 6882 6883 ; 6884 return 0; 6885} 6886_ACEOF 6887if ac_fn_c_try_link "$LINENO"; then : 6888 eval $cacheid=yes 6889else 6890 eval $cacheid=no 6891fi 6892rm -f core conftest.err conftest.$ac_objext \ 6893 conftest$ac_exeext conftest.$ac_ext 6894fi 6895 6896 6897 CFLAGS="$xorg_testset_save_CFLAGS" 6898 6899 eval supported=\$$cacheid 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6901$as_echo "$supported" >&6; } 6902 if test "$supported" = "yes" ; then 6903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6904 found="yes" 6905 fi 6906 fi 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922xorg_testset_save_CFLAGS="$CFLAGS" 6923 6924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO"; then : 6936 xorg_cv_cc_flag_unknown_warning_option=yes 6937else 6938 xorg_cv_cc_flag_unknown_warning_option=no 6939fi 6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6941fi 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946fi 6947 6948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959/* end confdefs.h. */ 6960int i; 6961_ACEOF 6962if ac_fn_c_try_compile "$LINENO"; then : 6963 xorg_cv_cc_flag_unused_command_line_argument=yes 6964else 6965 xorg_cv_cc_flag_unused_command_line_argument=no 6966fi 6967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6968fi 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6972 CFLAGS="$xorg_testset_save_CFLAGS" 6973fi 6974 6975found="no" 6976 6977 if test $found = "no" ; then 6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6980 fi 6981 6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6984 fi 6985 6986 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6987 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6989$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6990 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6991 if eval \${$cacheid+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996int i; 6997int 6998main () 6999{ 7000 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005if ac_fn_c_try_link "$LINENO"; then : 7006 eval $cacheid=yes 7007else 7008 eval $cacheid=no 7009fi 7010rm -f core conftest.err conftest.$ac_objext \ 7011 conftest$ac_exeext conftest.$ac_ext 7012fi 7013 7014 7015 CFLAGS="$xorg_testset_save_CFLAGS" 7016 7017 eval supported=\$$cacheid 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7019$as_echo "$supported" >&6; } 7020 if test "$supported" = "yes" ; then 7021 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7022 found="yes" 7023 fi 7024 fi 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040xorg_testset_save_CFLAGS="$CFLAGS" 7041 7042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055else 7056 xorg_cv_cc_flag_unknown_warning_option=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078int i; 7079_ACEOF 7080if ac_fn_c_try_compile "$LINENO"; then : 7081 xorg_cv_cc_flag_unused_command_line_argument=yes 7082else 7083 xorg_cv_cc_flag_unused_command_line_argument=no 7084fi 7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7090 CFLAGS="$xorg_testset_save_CFLAGS" 7091fi 7092 7093found="no" 7094 7095 if test $found = "no" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 fi 7103 7104 CFLAGS="$CFLAGS -Wredundant-decls" 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7107$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7108 cacheid=xorg_cv_cc_flag__Wredundant_decls 7109 if eval \${$cacheid+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113/* end confdefs.h. */ 7114int i; 7115int 7116main () 7117{ 7118 7119 ; 7120 return 0; 7121} 7122_ACEOF 7123if ac_fn_c_try_link "$LINENO"; then : 7124 eval $cacheid=yes 7125else 7126 eval $cacheid=no 7127fi 7128rm -f core conftest.err conftest.$ac_objext \ 7129 conftest$ac_exeext conftest.$ac_ext 7130fi 7131 7132 7133 CFLAGS="$xorg_testset_save_CFLAGS" 7134 7135 eval supported=\$$cacheid 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7137$as_echo "$supported" >&6; } 7138 if test "$supported" = "yes" ; then 7139 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7140 found="yes" 7141 fi 7142 fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158xorg_testset_save_CFLAGS="$CFLAGS" 7159 7160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169int i; 7170_ACEOF 7171if ac_fn_c_try_compile "$LINENO"; then : 7172 xorg_cv_cc_flag_unknown_warning_option=yes 7173else 7174 xorg_cv_cc_flag_unknown_warning_option=no 7175fi 7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7177fi 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7181 CFLAGS="$xorg_testset_save_CFLAGS" 7182fi 7183 7184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196int i; 7197_ACEOF 7198if ac_fn_c_try_compile "$LINENO"; then : 7199 xorg_cv_cc_flag_unused_command_line_argument=yes 7200else 7201 xorg_cv_cc_flag_unused_command_line_argument=no 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209fi 7210 7211found="no" 7212 7213 if test $found = "no" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 fi 7221 7222 CFLAGS="$CFLAGS -Wlogical-op" 7223 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7225$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7226 cacheid=xorg_cv_cc_flag__Wlogical_op 7227 if eval \${$cacheid+:} false; then : 7228 $as_echo_n "(cached) " >&6 7229else 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232int i; 7233int 7234main () 7235{ 7236 7237 ; 7238 return 0; 7239} 7240_ACEOF 7241if ac_fn_c_try_link "$LINENO"; then : 7242 eval $cacheid=yes 7243else 7244 eval $cacheid=no 7245fi 7246rm -f core conftest.err conftest.$ac_objext \ 7247 conftest$ac_exeext conftest.$ac_ext 7248fi 7249 7250 7251 CFLAGS="$xorg_testset_save_CFLAGS" 7252 7253 eval supported=\$$cacheid 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7255$as_echo "$supported" >&6; } 7256 if test "$supported" = "yes" ; then 7257 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7258 found="yes" 7259 fi 7260 fi 7261 7262 7263 7264# These are currently disabled because they are noisy. They will be enabled 7265# in the future once the codebase is sufficiently modernized to silence 7266# them. For now, I don't want them to drown out the other warnings. 7267# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7268# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7269# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7270 7271# Turn some warnings into errors, so we don't accidently get successful builds 7272# when there are problems that should be fixed. 7273 7274if test "x$SELECTIVE_WERROR" = "xyes" ; then 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288xorg_testset_save_CFLAGS="$CFLAGS" 7289 7290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298/* end confdefs.h. */ 7299int i; 7300_ACEOF 7301if ac_fn_c_try_compile "$LINENO"; then : 7302 xorg_cv_cc_flag_unknown_warning_option=yes 7303else 7304 xorg_cv_cc_flag_unknown_warning_option=no 7305fi 7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7307fi 7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312fi 7313 7314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7317 fi 7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7325/* end confdefs.h. */ 7326int i; 7327_ACEOF 7328if ac_fn_c_try_compile "$LINENO"; then : 7329 xorg_cv_cc_flag_unused_command_line_argument=yes 7330else 7331 xorg_cv_cc_flag_unused_command_line_argument=no 7332fi 7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7334fi 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339fi 7340 7341found="no" 7342 7343 if test $found = "no" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7350 fi 7351 7352 CFLAGS="$CFLAGS -Werror=implicit" 7353 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7355$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7356 cacheid=xorg_cv_cc_flag__Werror_implicit 7357 if eval \${$cacheid+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361/* end confdefs.h. */ 7362int i; 7363int 7364main () 7365{ 7366 7367 ; 7368 return 0; 7369} 7370_ACEOF 7371if ac_fn_c_try_link "$LINENO"; then : 7372 eval $cacheid=yes 7373else 7374 eval $cacheid=no 7375fi 7376rm -f core conftest.err conftest.$ac_objext \ 7377 conftest$ac_exeext conftest.$ac_ext 7378fi 7379 7380 7381 CFLAGS="$xorg_testset_save_CFLAGS" 7382 7383 eval supported=\$$cacheid 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7385$as_echo "$supported" >&6; } 7386 if test "$supported" = "yes" ; then 7387 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7388 found="yes" 7389 fi 7390 fi 7391 7392 if test $found = "no" ; then 7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7395 fi 7396 7397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7399 fi 7400 7401 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7402 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7404$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7405 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7406 if eval \${$cacheid+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412int 7413main () 7414{ 7415 7416 ; 7417 return 0; 7418} 7419_ACEOF 7420if ac_fn_c_try_link "$LINENO"; then : 7421 eval $cacheid=yes 7422else 7423 eval $cacheid=no 7424fi 7425rm -f core conftest.err conftest.$ac_objext \ 7426 conftest$ac_exeext conftest.$ac_ext 7427fi 7428 7429 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431 7432 eval supported=\$$cacheid 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7434$as_echo "$supported" >&6; } 7435 if test "$supported" = "yes" ; then 7436 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7437 found="yes" 7438 fi 7439 fi 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455xorg_testset_save_CFLAGS="$CFLAGS" 7456 7457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7462 $as_echo_n "(cached) " >&6 7463else 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466int i; 7467_ACEOF 7468if ac_fn_c_try_compile "$LINENO"; then : 7469 xorg_cv_cc_flag_unknown_warning_option=yes 7470else 7471 xorg_cv_cc_flag_unknown_warning_option=no 7472fi 7473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7478 CFLAGS="$xorg_testset_save_CFLAGS" 7479fi 7480 7481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7484 fi 7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492/* end confdefs.h. */ 7493int i; 7494_ACEOF 7495if ac_fn_c_try_compile "$LINENO"; then : 7496 xorg_cv_cc_flag_unused_command_line_argument=yes 7497else 7498 xorg_cv_cc_flag_unused_command_line_argument=no 7499fi 7500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7505 CFLAGS="$xorg_testset_save_CFLAGS" 7506fi 7507 7508found="no" 7509 7510 if test $found = "no" ; then 7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7513 fi 7514 7515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7517 fi 7518 7519 CFLAGS="$CFLAGS -Werror=nonnull" 7520 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7522$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7523 cacheid=xorg_cv_cc_flag__Werror_nonnull 7524 if eval \${$cacheid+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529int i; 7530int 7531main () 7532{ 7533 7534 ; 7535 return 0; 7536} 7537_ACEOF 7538if ac_fn_c_try_link "$LINENO"; then : 7539 eval $cacheid=yes 7540else 7541 eval $cacheid=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext \ 7544 conftest$ac_exeext conftest.$ac_ext 7545fi 7546 7547 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549 7550 eval supported=\$$cacheid 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7552$as_echo "$supported" >&6; } 7553 if test "$supported" = "yes" ; then 7554 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7555 found="yes" 7556 fi 7557 fi 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573xorg_testset_save_CFLAGS="$CFLAGS" 7574 7575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7583/* end confdefs.h. */ 7584int i; 7585_ACEOF 7586if ac_fn_c_try_compile "$LINENO"; then : 7587 xorg_cv_cc_flag_unknown_warning_option=yes 7588else 7589 xorg_cv_cc_flag_unknown_warning_option=no 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7596 CFLAGS="$xorg_testset_save_CFLAGS" 7597fi 7598 7599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7602 fi 7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611int i; 7612_ACEOF 7613if ac_fn_c_try_compile "$LINENO"; then : 7614 xorg_cv_cc_flag_unused_command_line_argument=yes 7615else 7616 xorg_cv_cc_flag_unused_command_line_argument=no 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624fi 7625 7626found="no" 7627 7628 if test $found = "no" ; then 7629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7631 fi 7632 7633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7635 fi 7636 7637 CFLAGS="$CFLAGS -Werror=init-self" 7638 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7640$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7641 cacheid=xorg_cv_cc_flag__Werror_init_self 7642 if eval \${$cacheid+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646/* end confdefs.h. */ 7647int i; 7648int 7649main () 7650{ 7651 7652 ; 7653 return 0; 7654} 7655_ACEOF 7656if ac_fn_c_try_link "$LINENO"; then : 7657 eval $cacheid=yes 7658else 7659 eval $cacheid=no 7660fi 7661rm -f core conftest.err conftest.$ac_objext \ 7662 conftest$ac_exeext conftest.$ac_ext 7663fi 7664 7665 7666 CFLAGS="$xorg_testset_save_CFLAGS" 7667 7668 eval supported=\$$cacheid 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7670$as_echo "$supported" >&6; } 7671 if test "$supported" = "yes" ; then 7672 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7673 found="yes" 7674 fi 7675 fi 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691xorg_testset_save_CFLAGS="$CFLAGS" 7692 7693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702int i; 7703_ACEOF 7704if ac_fn_c_try_compile "$LINENO"; then : 7705 xorg_cv_cc_flag_unknown_warning_option=yes 7706else 7707 xorg_cv_cc_flag_unknown_warning_option=no 7708fi 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7710fi 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7714 CFLAGS="$xorg_testset_save_CFLAGS" 7715fi 7716 7717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7720 fi 7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7728/* end confdefs.h. */ 7729int i; 7730_ACEOF 7731if ac_fn_c_try_compile "$LINENO"; then : 7732 xorg_cv_cc_flag_unused_command_line_argument=yes 7733else 7734 xorg_cv_cc_flag_unused_command_line_argument=no 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7737fi 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742fi 7743 7744found="no" 7745 7746 if test $found = "no" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 fi 7754 7755 CFLAGS="$CFLAGS -Werror=main" 7756 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7758$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7759 cacheid=xorg_cv_cc_flag__Werror_main 7760 if eval \${$cacheid+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762else 7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7764/* end confdefs.h. */ 7765int i; 7766int 7767main () 7768{ 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774if ac_fn_c_try_link "$LINENO"; then : 7775 eval $cacheid=yes 7776else 7777 eval $cacheid=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext \ 7780 conftest$ac_exeext conftest.$ac_ext 7781fi 7782 7783 7784 CFLAGS="$xorg_testset_save_CFLAGS" 7785 7786 eval supported=\$$cacheid 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7788$as_echo "$supported" >&6; } 7789 if test "$supported" = "yes" ; then 7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7791 found="yes" 7792 fi 7793 fi 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809xorg_testset_save_CFLAGS="$CFLAGS" 7810 7811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO"; then : 7823 xorg_cv_cc_flag_unknown_warning_option=yes 7824else 7825 xorg_cv_cc_flag_unknown_warning_option=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7832 CFLAGS="$xorg_testset_save_CFLAGS" 7833fi 7834 7835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7838 fi 7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7843 $as_echo_n "(cached) " >&6 7844else 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846/* end confdefs.h. */ 7847int i; 7848_ACEOF 7849if ac_fn_c_try_compile "$LINENO"; then : 7850 xorg_cv_cc_flag_unused_command_line_argument=yes 7851else 7852 xorg_cv_cc_flag_unused_command_line_argument=no 7853fi 7854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7855fi 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7859 CFLAGS="$xorg_testset_save_CFLAGS" 7860fi 7861 7862found="no" 7863 7864 if test $found = "no" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7871 fi 7872 7873 CFLAGS="$CFLAGS -Werror=missing-braces" 7874 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7876$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7877 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7878 if eval \${$cacheid+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880else 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882/* end confdefs.h. */ 7883int i; 7884int 7885main () 7886{ 7887 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892if ac_fn_c_try_link "$LINENO"; then : 7893 eval $cacheid=yes 7894else 7895 eval $cacheid=no 7896fi 7897rm -f core conftest.err conftest.$ac_objext \ 7898 conftest$ac_exeext conftest.$ac_ext 7899fi 7900 7901 7902 CFLAGS="$xorg_testset_save_CFLAGS" 7903 7904 eval supported=\$$cacheid 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7906$as_echo "$supported" >&6; } 7907 if test "$supported" = "yes" ; then 7908 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7909 found="yes" 7910 fi 7911 fi 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927xorg_testset_save_CFLAGS="$CFLAGS" 7928 7929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938int i; 7939_ACEOF 7940if ac_fn_c_try_compile "$LINENO"; then : 7941 xorg_cv_cc_flag_unknown_warning_option=yes 7942else 7943 xorg_cv_cc_flag_unknown_warning_option=no 7944fi 7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7946fi 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951fi 7952 7953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7956 fi 7957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965int i; 7966_ACEOF 7967if ac_fn_c_try_compile "$LINENO"; then : 7968 xorg_cv_cc_flag_unused_command_line_argument=yes 7969else 7970 xorg_cv_cc_flag_unused_command_line_argument=no 7971fi 7972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7977 CFLAGS="$xorg_testset_save_CFLAGS" 7978fi 7979 7980found="no" 7981 7982 if test $found = "no" ; then 7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 fi 7986 7987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7989 fi 7990 7991 CFLAGS="$CFLAGS -Werror=sequence-point" 7992 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7994$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7995 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7996 if eval \${$cacheid+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000/* end confdefs.h. */ 8001int i; 8002int 8003main () 8004{ 8005 8006 ; 8007 return 0; 8008} 8009_ACEOF 8010if ac_fn_c_try_link "$LINENO"; then : 8011 eval $cacheid=yes 8012else 8013 eval $cacheid=no 8014fi 8015rm -f core conftest.err conftest.$ac_objext \ 8016 conftest$ac_exeext conftest.$ac_ext 8017fi 8018 8019 8020 CFLAGS="$xorg_testset_save_CFLAGS" 8021 8022 eval supported=\$$cacheid 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8024$as_echo "$supported" >&6; } 8025 if test "$supported" = "yes" ; then 8026 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8027 found="yes" 8028 fi 8029 fi 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045xorg_testset_save_CFLAGS="$CFLAGS" 8046 8047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057_ACEOF 8058if ac_fn_c_try_compile "$LINENO"; then : 8059 xorg_cv_cc_flag_unknown_warning_option=yes 8060else 8061 xorg_cv_cc_flag_unknown_warning_option=no 8062fi 8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8064fi 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8068 CFLAGS="$xorg_testset_save_CFLAGS" 8069fi 8070 8071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8074 fi 8075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8079 $as_echo_n "(cached) " >&6 8080else 8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082/* end confdefs.h. */ 8083int i; 8084_ACEOF 8085if ac_fn_c_try_compile "$LINENO"; then : 8086 xorg_cv_cc_flag_unused_command_line_argument=yes 8087else 8088 xorg_cv_cc_flag_unused_command_line_argument=no 8089fi 8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8091fi 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8095 CFLAGS="$xorg_testset_save_CFLAGS" 8096fi 8097 8098found="no" 8099 8100 if test $found = "no" ; then 8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 fi 8104 8105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8107 fi 8108 8109 CFLAGS="$CFLAGS -Werror=return-type" 8110 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8112$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8113 cacheid=xorg_cv_cc_flag__Werror_return_type 8114 if eval \${$cacheid+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118/* end confdefs.h. */ 8119int i; 8120int 8121main () 8122{ 8123 8124 ; 8125 return 0; 8126} 8127_ACEOF 8128if ac_fn_c_try_link "$LINENO"; then : 8129 eval $cacheid=yes 8130else 8131 eval $cacheid=no 8132fi 8133rm -f core conftest.err conftest.$ac_objext \ 8134 conftest$ac_exeext conftest.$ac_ext 8135fi 8136 8137 8138 CFLAGS="$xorg_testset_save_CFLAGS" 8139 8140 eval supported=\$$cacheid 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8142$as_echo "$supported" >&6; } 8143 if test "$supported" = "yes" ; then 8144 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8145 found="yes" 8146 fi 8147 fi 8148 8149 if test $found = "no" ; then 8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8156 fi 8157 8158 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8159 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8161$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8162 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8163 if eval \${$cacheid+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169int 8170main () 8171{ 8172 8173 ; 8174 return 0; 8175} 8176_ACEOF 8177if ac_fn_c_try_link "$LINENO"; then : 8178 eval $cacheid=yes 8179else 8180 eval $cacheid=no 8181fi 8182rm -f core conftest.err conftest.$ac_objext \ 8183 conftest$ac_exeext conftest.$ac_ext 8184fi 8185 8186 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188 8189 eval supported=\$$cacheid 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8191$as_echo "$supported" >&6; } 8192 if test "$supported" = "yes" ; then 8193 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8194 found="yes" 8195 fi 8196 fi 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212xorg_testset_save_CFLAGS="$CFLAGS" 8213 8214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int i; 8224_ACEOF 8225if ac_fn_c_try_compile "$LINENO"; then : 8226 xorg_cv_cc_flag_unknown_warning_option=yes 8227else 8228 xorg_cv_cc_flag_unknown_warning_option=no 8229fi 8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8235 CFLAGS="$xorg_testset_save_CFLAGS" 8236fi 8237 8238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8241 fi 8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8246 $as_echo_n "(cached) " >&6 8247else 8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8249/* end confdefs.h. */ 8250int i; 8251_ACEOF 8252if ac_fn_c_try_compile "$LINENO"; then : 8253 xorg_cv_cc_flag_unused_command_line_argument=yes 8254else 8255 xorg_cv_cc_flag_unused_command_line_argument=no 8256fi 8257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8258fi 8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8262 CFLAGS="$xorg_testset_save_CFLAGS" 8263fi 8264 8265found="no" 8266 8267 if test $found = "no" ; then 8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8270 fi 8271 8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 fi 8275 8276 CFLAGS="$CFLAGS -Werror=trigraphs" 8277 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8279$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8280 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8281 if eval \${$cacheid+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287int 8288main () 8289{ 8290 8291 ; 8292 return 0; 8293} 8294_ACEOF 8295if ac_fn_c_try_link "$LINENO"; then : 8296 eval $cacheid=yes 8297else 8298 eval $cacheid=no 8299fi 8300rm -f core conftest.err conftest.$ac_objext \ 8301 conftest$ac_exeext conftest.$ac_ext 8302fi 8303 8304 8305 CFLAGS="$xorg_testset_save_CFLAGS" 8306 8307 eval supported=\$$cacheid 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8309$as_echo "$supported" >&6; } 8310 if test "$supported" = "yes" ; then 8311 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8312 found="yes" 8313 fi 8314 fi 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330xorg_testset_save_CFLAGS="$CFLAGS" 8331 8332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342_ACEOF 8343if ac_fn_c_try_compile "$LINENO"; then : 8344 xorg_cv_cc_flag_unknown_warning_option=yes 8345else 8346 xorg_cv_cc_flag_unknown_warning_option=no 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349fi 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354fi 8355 8356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359 fi 8360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8364 $as_echo_n "(cached) " >&6 8365else 8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8367/* end confdefs.h. */ 8368int i; 8369_ACEOF 8370if ac_fn_c_try_compile "$LINENO"; then : 8371 xorg_cv_cc_flag_unused_command_line_argument=yes 8372else 8373 xorg_cv_cc_flag_unused_command_line_argument=no 8374fi 8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8376fi 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8380 CFLAGS="$xorg_testset_save_CFLAGS" 8381fi 8382 8383found="no" 8384 8385 if test $found = "no" ; then 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 fi 8389 8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8392 fi 8393 8394 CFLAGS="$CFLAGS -Werror=array-bounds" 8395 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8397$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8398 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8399 if eval \${$cacheid+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403/* end confdefs.h. */ 8404int i; 8405int 8406main () 8407{ 8408 8409 ; 8410 return 0; 8411} 8412_ACEOF 8413if ac_fn_c_try_link "$LINENO"; then : 8414 eval $cacheid=yes 8415else 8416 eval $cacheid=no 8417fi 8418rm -f core conftest.err conftest.$ac_objext \ 8419 conftest$ac_exeext conftest.$ac_ext 8420fi 8421 8422 8423 CFLAGS="$xorg_testset_save_CFLAGS" 8424 8425 eval supported=\$$cacheid 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8427$as_echo "$supported" >&6; } 8428 if test "$supported" = "yes" ; then 8429 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8430 found="yes" 8431 fi 8432 fi 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448xorg_testset_save_CFLAGS="$CFLAGS" 8449 8450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459int i; 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO"; then : 8462 xorg_cv_cc_flag_unknown_warning_option=yes 8463else 8464 xorg_cv_cc_flag_unknown_warning_option=no 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472fi 8473 8474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 fi 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8485/* end confdefs.h. */ 8486int i; 8487_ACEOF 8488if ac_fn_c_try_compile "$LINENO"; then : 8489 xorg_cv_cc_flag_unused_command_line_argument=yes 8490else 8491 xorg_cv_cc_flag_unused_command_line_argument=no 8492fi 8493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8494fi 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499fi 8500 8501found="no" 8502 8503 if test $found = "no" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 fi 8511 8512 CFLAGS="$CFLAGS -Werror=write-strings" 8513 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8515$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8516 cacheid=xorg_cv_cc_flag__Werror_write_strings 8517 if eval \${$cacheid+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522int i; 8523int 8524main () 8525{ 8526 8527 ; 8528 return 0; 8529} 8530_ACEOF 8531if ac_fn_c_try_link "$LINENO"; then : 8532 eval $cacheid=yes 8533else 8534 eval $cacheid=no 8535fi 8536rm -f core conftest.err conftest.$ac_objext \ 8537 conftest$ac_exeext conftest.$ac_ext 8538fi 8539 8540 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542 8543 eval supported=\$$cacheid 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8545$as_echo "$supported" >&6; } 8546 if test "$supported" = "yes" ; then 8547 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8548 found="yes" 8549 fi 8550 fi 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566xorg_testset_save_CFLAGS="$CFLAGS" 8567 8568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578_ACEOF 8579if ac_fn_c_try_compile "$LINENO"; then : 8580 xorg_cv_cc_flag_unknown_warning_option=yes 8581else 8582 xorg_cv_cc_flag_unknown_warning_option=no 8583fi 8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8585fi 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590fi 8591 8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604int i; 8605_ACEOF 8606if ac_fn_c_try_compile "$LINENO"; then : 8607 xorg_cv_cc_flag_unused_command_line_argument=yes 8608else 8609 xorg_cv_cc_flag_unused_command_line_argument=no 8610fi 8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8612fi 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8616 CFLAGS="$xorg_testset_save_CFLAGS" 8617fi 8618 8619found="no" 8620 8621 if test $found = "no" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 fi 8629 8630 CFLAGS="$CFLAGS -Werror=address" 8631 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8633$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8634 cacheid=xorg_cv_cc_flag__Werror_address 8635 if eval \${$cacheid+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639/* end confdefs.h. */ 8640int i; 8641int 8642main () 8643{ 8644 8645 ; 8646 return 0; 8647} 8648_ACEOF 8649if ac_fn_c_try_link "$LINENO"; then : 8650 eval $cacheid=yes 8651else 8652 eval $cacheid=no 8653fi 8654rm -f core conftest.err conftest.$ac_objext \ 8655 conftest$ac_exeext conftest.$ac_ext 8656fi 8657 8658 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 8661 eval supported=\$$cacheid 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8663$as_echo "$supported" >&6; } 8664 if test "$supported" = "yes" ; then 8665 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8666 found="yes" 8667 fi 8668 fi 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684xorg_testset_save_CFLAGS="$CFLAGS" 8685 8686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696_ACEOF 8697if ac_fn_c_try_compile "$LINENO"; then : 8698 xorg_cv_cc_flag_unknown_warning_option=yes 8699else 8700 xorg_cv_cc_flag_unknown_warning_option=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708fi 8709 8710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721/* end confdefs.h. */ 8722int i; 8723_ACEOF 8724if ac_fn_c_try_compile "$LINENO"; then : 8725 xorg_cv_cc_flag_unused_command_line_argument=yes 8726else 8727 xorg_cv_cc_flag_unused_command_line_argument=no 8728fi 8729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735fi 8736 8737found="no" 8738 8739 if test $found = "no" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 fi 8747 8748 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8751$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8752 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8753 if eval \${$cacheid+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757/* end confdefs.h. */ 8758int i; 8759int 8760main () 8761{ 8762 8763 ; 8764 return 0; 8765} 8766_ACEOF 8767if ac_fn_c_try_link "$LINENO"; then : 8768 eval $cacheid=yes 8769else 8770 eval $cacheid=no 8771fi 8772rm -f core conftest.err conftest.$ac_objext \ 8773 conftest$ac_exeext conftest.$ac_ext 8774fi 8775 8776 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778 8779 eval supported=\$$cacheid 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8781$as_echo "$supported" >&6; } 8782 if test "$supported" = "yes" ; then 8783 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8784 found="yes" 8785 fi 8786 fi 8787 8788 if test $found = "no" ; then 8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8791 fi 8792 8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8795 fi 8796 8797 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8798 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8800$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8801 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8802 if eval \${$cacheid+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807int i; 8808int 8809main () 8810{ 8811 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816if ac_fn_c_try_link "$LINENO"; then : 8817 eval $cacheid=yes 8818else 8819 eval $cacheid=no 8820fi 8821rm -f core conftest.err conftest.$ac_objext \ 8822 conftest$ac_exeext conftest.$ac_ext 8823fi 8824 8825 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827 8828 eval supported=\$$cacheid 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8830$as_echo "$supported" >&6; } 8831 if test "$supported" = "yes" ; then 8832 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8833 found="yes" 8834 fi 8835 fi 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851xorg_testset_save_CFLAGS="$CFLAGS" 8852 8853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8861/* end confdefs.h. */ 8862int i; 8863_ACEOF 8864if ac_fn_c_try_compile "$LINENO"; then : 8865 xorg_cv_cc_flag_unknown_warning_option=yes 8866else 8867 xorg_cv_cc_flag_unknown_warning_option=no 8868fi 8869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8870fi 8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8874 CFLAGS="$xorg_testset_save_CFLAGS" 8875fi 8876 8877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 fi 8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8885 $as_echo_n "(cached) " >&6 8886else 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888/* end confdefs.h. */ 8889int i; 8890_ACEOF 8891if ac_fn_c_try_compile "$LINENO"; then : 8892 xorg_cv_cc_flag_unused_command_line_argument=yes 8893else 8894 xorg_cv_cc_flag_unused_command_line_argument=no 8895fi 8896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8897fi 8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8901 CFLAGS="$xorg_testset_save_CFLAGS" 8902fi 8903 8904found="no" 8905 8906 if test $found = "no" ; then 8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 fi 8910 8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 fi 8914 8915 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8916 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8918$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8919 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8920 if eval \${$cacheid+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8924/* end confdefs.h. */ 8925int i; 8926int 8927main () 8928{ 8929 8930 ; 8931 return 0; 8932} 8933_ACEOF 8934if ac_fn_c_try_link "$LINENO"; then : 8935 eval $cacheid=yes 8936else 8937 eval $cacheid=no 8938fi 8939rm -f core conftest.err conftest.$ac_objext \ 8940 conftest$ac_exeext conftest.$ac_ext 8941fi 8942 8943 8944 CFLAGS="$xorg_testset_save_CFLAGS" 8945 8946 eval supported=\$$cacheid 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8948$as_echo "$supported" >&6; } 8949 if test "$supported" = "yes" ; then 8950 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8951 found="yes" 8952 fi 8953 fi 8954 8955 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8956else 8957{ $as_echo "$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 8958$as_echo "$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;} 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972xorg_testset_save_CFLAGS="$CFLAGS" 8973 8974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8979 $as_echo_n "(cached) " >&6 8980else 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983int i; 8984_ACEOF 8985if ac_fn_c_try_compile "$LINENO"; then : 8986 xorg_cv_cc_flag_unknown_warning_option=yes 8987else 8988 xorg_cv_cc_flag_unknown_warning_option=no 8989fi 8990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8991fi 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996fi 8997 8998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9001 fi 9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9006 $as_echo_n "(cached) " >&6 9007else 9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9009/* end confdefs.h. */ 9010int i; 9011_ACEOF 9012if ac_fn_c_try_compile "$LINENO"; then : 9013 xorg_cv_cc_flag_unused_command_line_argument=yes 9014else 9015 xorg_cv_cc_flag_unused_command_line_argument=no 9016fi 9017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9018fi 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9022 CFLAGS="$xorg_testset_save_CFLAGS" 9023fi 9024 9025found="no" 9026 9027 if test $found = "no" ; then 9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9030 fi 9031 9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9034 fi 9035 9036 CFLAGS="$CFLAGS -Wimplicit" 9037 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9039$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9040 cacheid=xorg_cv_cc_flag__Wimplicit 9041 if eval \${$cacheid+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045/* end confdefs.h. */ 9046int i; 9047int 9048main () 9049{ 9050 9051 ; 9052 return 0; 9053} 9054_ACEOF 9055if ac_fn_c_try_link "$LINENO"; then : 9056 eval $cacheid=yes 9057else 9058 eval $cacheid=no 9059fi 9060rm -f core conftest.err conftest.$ac_objext \ 9061 conftest$ac_exeext conftest.$ac_ext 9062fi 9063 9064 9065 CFLAGS="$xorg_testset_save_CFLAGS" 9066 9067 eval supported=\$$cacheid 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9069$as_echo "$supported" >&6; } 9070 if test "$supported" = "yes" ; then 9071 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9072 found="yes" 9073 fi 9074 fi 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090xorg_testset_save_CFLAGS="$CFLAGS" 9091 9092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100/* end confdefs.h. */ 9101int i; 9102_ACEOF 9103if ac_fn_c_try_compile "$LINENO"; then : 9104 xorg_cv_cc_flag_unknown_warning_option=yes 9105else 9106 xorg_cv_cc_flag_unknown_warning_option=no 9107fi 9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9109fi 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9113 CFLAGS="$xorg_testset_save_CFLAGS" 9114fi 9115 9116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9119 fi 9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125else 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128int i; 9129_ACEOF 9130if ac_fn_c_try_compile "$LINENO"; then : 9131 xorg_cv_cc_flag_unused_command_line_argument=yes 9132else 9133 xorg_cv_cc_flag_unused_command_line_argument=no 9134fi 9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9136fi 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9140 CFLAGS="$xorg_testset_save_CFLAGS" 9141fi 9142 9143found="no" 9144 9145 if test $found = "no" ; then 9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 fi 9149 9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 fi 9153 9154 CFLAGS="$CFLAGS -Wnonnull" 9155 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9157$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9158 cacheid=xorg_cv_cc_flag__Wnonnull 9159 if eval \${$cacheid+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164int i; 9165int 9166main () 9167{ 9168 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173if ac_fn_c_try_link "$LINENO"; then : 9174 eval $cacheid=yes 9175else 9176 eval $cacheid=no 9177fi 9178rm -f core conftest.err conftest.$ac_objext \ 9179 conftest$ac_exeext conftest.$ac_ext 9180fi 9181 9182 9183 CFLAGS="$xorg_testset_save_CFLAGS" 9184 9185 eval supported=\$$cacheid 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9187$as_echo "$supported" >&6; } 9188 if test "$supported" = "yes" ; then 9189 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9190 found="yes" 9191 fi 9192 fi 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208xorg_testset_save_CFLAGS="$CFLAGS" 9209 9210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220_ACEOF 9221if ac_fn_c_try_compile "$LINENO"; then : 9222 xorg_cv_cc_flag_unknown_warning_option=yes 9223else 9224 xorg_cv_cc_flag_unknown_warning_option=no 9225fi 9226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9227fi 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9231 CFLAGS="$xorg_testset_save_CFLAGS" 9232fi 9233 9234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9237 fi 9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9242 $as_echo_n "(cached) " >&6 9243else 9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9245/* end confdefs.h. */ 9246int i; 9247_ACEOF 9248if ac_fn_c_try_compile "$LINENO"; then : 9249 xorg_cv_cc_flag_unused_command_line_argument=yes 9250else 9251 xorg_cv_cc_flag_unused_command_line_argument=no 9252fi 9253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9254fi 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9258 CFLAGS="$xorg_testset_save_CFLAGS" 9259fi 9260 9261found="no" 9262 9263 if test $found = "no" ; then 9264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9266 fi 9267 9268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9270 fi 9271 9272 CFLAGS="$CFLAGS -Winit-self" 9273 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9275$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9276 cacheid=xorg_cv_cc_flag__Winit_self 9277 if eval \${$cacheid+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282int i; 9283int 9284main () 9285{ 9286 9287 ; 9288 return 0; 9289} 9290_ACEOF 9291if ac_fn_c_try_link "$LINENO"; then : 9292 eval $cacheid=yes 9293else 9294 eval $cacheid=no 9295fi 9296rm -f core conftest.err conftest.$ac_objext \ 9297 conftest$ac_exeext conftest.$ac_ext 9298fi 9299 9300 9301 CFLAGS="$xorg_testset_save_CFLAGS" 9302 9303 eval supported=\$$cacheid 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9305$as_echo "$supported" >&6; } 9306 if test "$supported" = "yes" ; then 9307 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9308 found="yes" 9309 fi 9310 fi 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326xorg_testset_save_CFLAGS="$CFLAGS" 9327 9328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9336/* end confdefs.h. */ 9337int i; 9338_ACEOF 9339if ac_fn_c_try_compile "$LINENO"; then : 9340 xorg_cv_cc_flag_unknown_warning_option=yes 9341else 9342 xorg_cv_cc_flag_unknown_warning_option=no 9343fi 9344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9345fi 9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9349 CFLAGS="$xorg_testset_save_CFLAGS" 9350fi 9351 9352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9355 fi 9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9360 $as_echo_n "(cached) " >&6 9361else 9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363/* end confdefs.h. */ 9364int i; 9365_ACEOF 9366if ac_fn_c_try_compile "$LINENO"; then : 9367 xorg_cv_cc_flag_unused_command_line_argument=yes 9368else 9369 xorg_cv_cc_flag_unused_command_line_argument=no 9370fi 9371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9372fi 9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9376 CFLAGS="$xorg_testset_save_CFLAGS" 9377fi 9378 9379found="no" 9380 9381 if test $found = "no" ; then 9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9384 fi 9385 9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9388 fi 9389 9390 CFLAGS="$CFLAGS -Wmain" 9391 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9393$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9394 cacheid=xorg_cv_cc_flag__Wmain 9395 if eval \${$cacheid+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400int i; 9401int 9402main () 9403{ 9404 9405 ; 9406 return 0; 9407} 9408_ACEOF 9409if ac_fn_c_try_link "$LINENO"; then : 9410 eval $cacheid=yes 9411else 9412 eval $cacheid=no 9413fi 9414rm -f core conftest.err conftest.$ac_objext \ 9415 conftest$ac_exeext conftest.$ac_ext 9416fi 9417 9418 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420 9421 eval supported=\$$cacheid 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9423$as_echo "$supported" >&6; } 9424 if test "$supported" = "yes" ; then 9425 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9426 found="yes" 9427 fi 9428 fi 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444xorg_testset_save_CFLAGS="$CFLAGS" 9445 9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9451 $as_echo_n "(cached) " >&6 9452else 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454/* end confdefs.h. */ 9455int i; 9456_ACEOF 9457if ac_fn_c_try_compile "$LINENO"; then : 9458 xorg_cv_cc_flag_unknown_warning_option=yes 9459else 9460 xorg_cv_cc_flag_unknown_warning_option=no 9461fi 9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9463fi 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9467 CFLAGS="$xorg_testset_save_CFLAGS" 9468fi 9469 9470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9473 fi 9474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9478 $as_echo_n "(cached) " >&6 9479else 9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9481/* end confdefs.h. */ 9482int i; 9483_ACEOF 9484if ac_fn_c_try_compile "$LINENO"; then : 9485 xorg_cv_cc_flag_unused_command_line_argument=yes 9486else 9487 xorg_cv_cc_flag_unused_command_line_argument=no 9488fi 9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9490fi 9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9494 CFLAGS="$xorg_testset_save_CFLAGS" 9495fi 9496 9497found="no" 9498 9499 if test $found = "no" ; then 9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 fi 9503 9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 fi 9507 9508 CFLAGS="$CFLAGS -Wmissing-braces" 9509 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9511$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9512 cacheid=xorg_cv_cc_flag__Wmissing_braces 9513 if eval \${$cacheid+:} false; then : 9514 $as_echo_n "(cached) " >&6 9515else 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518int i; 9519int 9520main () 9521{ 9522 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527if ac_fn_c_try_link "$LINENO"; then : 9528 eval $cacheid=yes 9529else 9530 eval $cacheid=no 9531fi 9532rm -f core conftest.err conftest.$ac_objext \ 9533 conftest$ac_exeext conftest.$ac_ext 9534fi 9535 9536 9537 CFLAGS="$xorg_testset_save_CFLAGS" 9538 9539 eval supported=\$$cacheid 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9541$as_echo "$supported" >&6; } 9542 if test "$supported" = "yes" ; then 9543 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9544 found="yes" 9545 fi 9546 fi 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562xorg_testset_save_CFLAGS="$CFLAGS" 9563 9564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9569 $as_echo_n "(cached) " >&6 9570else 9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9572/* end confdefs.h. */ 9573int i; 9574_ACEOF 9575if ac_fn_c_try_compile "$LINENO"; then : 9576 xorg_cv_cc_flag_unknown_warning_option=yes 9577else 9578 xorg_cv_cc_flag_unknown_warning_option=no 9579fi 9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9581fi 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9585 CFLAGS="$xorg_testset_save_CFLAGS" 9586fi 9587 9588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9591 fi 9592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597else 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600int i; 9601_ACEOF 9602if ac_fn_c_try_compile "$LINENO"; then : 9603 xorg_cv_cc_flag_unused_command_line_argument=yes 9604else 9605 xorg_cv_cc_flag_unused_command_line_argument=no 9606fi 9607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9608fi 9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9612 CFLAGS="$xorg_testset_save_CFLAGS" 9613fi 9614 9615found="no" 9616 9617 if test $found = "no" ; then 9618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9620 fi 9621 9622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9624 fi 9625 9626 CFLAGS="$CFLAGS -Wsequence-point" 9627 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9629$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9630 cacheid=xorg_cv_cc_flag__Wsequence_point 9631 if eval \${$cacheid+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636int i; 9637int 9638main () 9639{ 9640 9641 ; 9642 return 0; 9643} 9644_ACEOF 9645if ac_fn_c_try_link "$LINENO"; then : 9646 eval $cacheid=yes 9647else 9648 eval $cacheid=no 9649fi 9650rm -f core conftest.err conftest.$ac_objext \ 9651 conftest$ac_exeext conftest.$ac_ext 9652fi 9653 9654 9655 CFLAGS="$xorg_testset_save_CFLAGS" 9656 9657 eval supported=\$$cacheid 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9659$as_echo "$supported" >&6; } 9660 if test "$supported" = "yes" ; then 9661 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9662 found="yes" 9663 fi 9664 fi 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680xorg_testset_save_CFLAGS="$CFLAGS" 9681 9682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9687 $as_echo_n "(cached) " >&6 9688else 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691int i; 9692_ACEOF 9693if ac_fn_c_try_compile "$LINENO"; then : 9694 xorg_cv_cc_flag_unknown_warning_option=yes 9695else 9696 xorg_cv_cc_flag_unknown_warning_option=no 9697fi 9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9699fi 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704fi 9705 9706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9709 fi 9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9714 $as_echo_n "(cached) " >&6 9715else 9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9717/* end confdefs.h. */ 9718int i; 9719_ACEOF 9720if ac_fn_c_try_compile "$LINENO"; then : 9721 xorg_cv_cc_flag_unused_command_line_argument=yes 9722else 9723 xorg_cv_cc_flag_unused_command_line_argument=no 9724fi 9725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9726fi 9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9730 CFLAGS="$xorg_testset_save_CFLAGS" 9731fi 9732 9733found="no" 9734 9735 if test $found = "no" ; then 9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9738 fi 9739 9740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9742 fi 9743 9744 CFLAGS="$CFLAGS -Wreturn-type" 9745 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9747$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9748 cacheid=xorg_cv_cc_flag__Wreturn_type 9749 if eval \${$cacheid+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754int i; 9755int 9756main () 9757{ 9758 9759 ; 9760 return 0; 9761} 9762_ACEOF 9763if ac_fn_c_try_link "$LINENO"; then : 9764 eval $cacheid=yes 9765else 9766 eval $cacheid=no 9767fi 9768rm -f core conftest.err conftest.$ac_objext \ 9769 conftest$ac_exeext conftest.$ac_ext 9770fi 9771 9772 9773 CFLAGS="$xorg_testset_save_CFLAGS" 9774 9775 eval supported=\$$cacheid 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9777$as_echo "$supported" >&6; } 9778 if test "$supported" = "yes" ; then 9779 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9780 found="yes" 9781 fi 9782 fi 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798xorg_testset_save_CFLAGS="$CFLAGS" 9799 9800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9808/* end confdefs.h. */ 9809int i; 9810_ACEOF 9811if ac_fn_c_try_compile "$LINENO"; then : 9812 xorg_cv_cc_flag_unknown_warning_option=yes 9813else 9814 xorg_cv_cc_flag_unknown_warning_option=no 9815fi 9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9817fi 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9821 CFLAGS="$xorg_testset_save_CFLAGS" 9822fi 9823 9824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9827 fi 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836int i; 9837_ACEOF 9838if ac_fn_c_try_compile "$LINENO"; then : 9839 xorg_cv_cc_flag_unused_command_line_argument=yes 9840else 9841 xorg_cv_cc_flag_unused_command_line_argument=no 9842fi 9843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9844fi 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9848 CFLAGS="$xorg_testset_save_CFLAGS" 9849fi 9850 9851found="no" 9852 9853 if test $found = "no" ; then 9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9856 fi 9857 9858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 fi 9861 9862 CFLAGS="$CFLAGS -Wtrigraphs" 9863 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9865$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9866 cacheid=xorg_cv_cc_flag__Wtrigraphs 9867 if eval \${$cacheid+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873int 9874main () 9875{ 9876 9877 ; 9878 return 0; 9879} 9880_ACEOF 9881if ac_fn_c_try_link "$LINENO"; then : 9882 eval $cacheid=yes 9883else 9884 eval $cacheid=no 9885fi 9886rm -f core conftest.err conftest.$ac_objext \ 9887 conftest$ac_exeext conftest.$ac_ext 9888fi 9889 9890 9891 CFLAGS="$xorg_testset_save_CFLAGS" 9892 9893 eval supported=\$$cacheid 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9895$as_echo "$supported" >&6; } 9896 if test "$supported" = "yes" ; then 9897 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9898 found="yes" 9899 fi 9900 fi 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916xorg_testset_save_CFLAGS="$CFLAGS" 9917 9918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927int i; 9928_ACEOF 9929if ac_fn_c_try_compile "$LINENO"; then : 9930 xorg_cv_cc_flag_unknown_warning_option=yes 9931else 9932 xorg_cv_cc_flag_unknown_warning_option=no 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9945 fi 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953/* end confdefs.h. */ 9954int i; 9955_ACEOF 9956if ac_fn_c_try_compile "$LINENO"; then : 9957 xorg_cv_cc_flag_unused_command_line_argument=yes 9958else 9959 xorg_cv_cc_flag_unused_command_line_argument=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9962fi 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9966 CFLAGS="$xorg_testset_save_CFLAGS" 9967fi 9968 9969found="no" 9970 9971 if test $found = "no" ; then 9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9974 fi 9975 9976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 fi 9979 9980 CFLAGS="$CFLAGS -Warray-bounds" 9981 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9983$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9984 cacheid=xorg_cv_cc_flag__Warray_bounds 9985 if eval \${$cacheid+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990int i; 9991int 9992main () 9993{ 9994 9995 ; 9996 return 0; 9997} 9998_ACEOF 9999if ac_fn_c_try_link "$LINENO"; then : 10000 eval $cacheid=yes 10001else 10002 eval $cacheid=no 10003fi 10004rm -f core conftest.err conftest.$ac_objext \ 10005 conftest$ac_exeext conftest.$ac_ext 10006fi 10007 10008 10009 CFLAGS="$xorg_testset_save_CFLAGS" 10010 10011 eval supported=\$$cacheid 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10013$as_echo "$supported" >&6; } 10014 if test "$supported" = "yes" ; then 10015 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10016 found="yes" 10017 fi 10018 fi 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034xorg_testset_save_CFLAGS="$CFLAGS" 10035 10036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10041 $as_echo_n "(cached) " >&6 10042else 10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044/* end confdefs.h. */ 10045int i; 10046_ACEOF 10047if ac_fn_c_try_compile "$LINENO"; then : 10048 xorg_cv_cc_flag_unknown_warning_option=yes 10049else 10050 xorg_cv_cc_flag_unknown_warning_option=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058fi 10059 10060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10063 fi 10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069else 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072int i; 10073_ACEOF 10074if ac_fn_c_try_compile "$LINENO"; then : 10075 xorg_cv_cc_flag_unused_command_line_argument=yes 10076else 10077 xorg_cv_cc_flag_unused_command_line_argument=no 10078fi 10079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10080fi 10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085fi 10086 10087found="no" 10088 10089 if test $found = "no" ; then 10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10092 fi 10093 10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 fi 10097 10098 CFLAGS="$CFLAGS -Wwrite-strings" 10099 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10101$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10102 cacheid=xorg_cv_cc_flag__Wwrite_strings 10103 if eval \${$cacheid+:} false; then : 10104 $as_echo_n "(cached) " >&6 10105else 10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10107/* end confdefs.h. */ 10108int i; 10109int 10110main () 10111{ 10112 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117if ac_fn_c_try_link "$LINENO"; then : 10118 eval $cacheid=yes 10119else 10120 eval $cacheid=no 10121fi 10122rm -f core conftest.err conftest.$ac_objext \ 10123 conftest$ac_exeext conftest.$ac_ext 10124fi 10125 10126 10127 CFLAGS="$xorg_testset_save_CFLAGS" 10128 10129 eval supported=\$$cacheid 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10131$as_echo "$supported" >&6; } 10132 if test "$supported" = "yes" ; then 10133 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10134 found="yes" 10135 fi 10136 fi 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152xorg_testset_save_CFLAGS="$CFLAGS" 10153 10154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164_ACEOF 10165if ac_fn_c_try_compile "$LINENO"; then : 10166 xorg_cv_cc_flag_unknown_warning_option=yes 10167else 10168 xorg_cv_cc_flag_unknown_warning_option=no 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10171fi 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10175 CFLAGS="$xorg_testset_save_CFLAGS" 10176fi 10177 10178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189/* end confdefs.h. */ 10190int i; 10191_ACEOF 10192if ac_fn_c_try_compile "$LINENO"; then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194else 10195 xorg_cv_cc_flag_unused_command_line_argument=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10198fi 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203fi 10204 10205found="no" 10206 10207 if test $found = "no" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 fi 10215 10216 CFLAGS="$CFLAGS -Waddress" 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10219$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10220 cacheid=xorg_cv_cc_flag__Waddress 10221 if eval \${$cacheid+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225/* end confdefs.h. */ 10226int i; 10227int 10228main () 10229{ 10230 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_link "$LINENO"; then : 10236 eval $cacheid=yes 10237else 10238 eval $cacheid=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext \ 10241 conftest$ac_exeext conftest.$ac_ext 10242fi 10243 10244 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246 10247 eval supported=\$$cacheid 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10249$as_echo "$supported" >&6; } 10250 if test "$supported" = "yes" ; then 10251 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10252 found="yes" 10253 fi 10254 fi 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270xorg_testset_save_CFLAGS="$CFLAGS" 10271 10272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281int i; 10282_ACEOF 10283if ac_fn_c_try_compile "$LINENO"; then : 10284 xorg_cv_cc_flag_unknown_warning_option=yes 10285else 10286 xorg_cv_cc_flag_unknown_warning_option=no 10287fi 10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10293 CFLAGS="$xorg_testset_save_CFLAGS" 10294fi 10295 10296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10299 fi 10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308int i; 10309_ACEOF 10310if ac_fn_c_try_compile "$LINENO"; then : 10311 xorg_cv_cc_flag_unused_command_line_argument=yes 10312else 10313 xorg_cv_cc_flag_unused_command_line_argument=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321fi 10322 10323found="no" 10324 10325 if test $found = "no" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 fi 10333 10334 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10335 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10337$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10338 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10339 if eval \${$cacheid+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341else 10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345int 10346main () 10347{ 10348 10349 ; 10350 return 0; 10351} 10352_ACEOF 10353if ac_fn_c_try_link "$LINENO"; then : 10354 eval $cacheid=yes 10355else 10356 eval $cacheid=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext \ 10359 conftest$ac_exeext conftest.$ac_ext 10360fi 10361 10362 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364 10365 eval supported=\$$cacheid 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10367$as_echo "$supported" >&6; } 10368 if test "$supported" = "yes" ; then 10369 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10370 found="yes" 10371 fi 10372 fi 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388xorg_testset_save_CFLAGS="$CFLAGS" 10389 10390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10395 $as_echo_n "(cached) " >&6 10396else 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10398/* end confdefs.h. */ 10399int i; 10400_ACEOF 10401if ac_fn_c_try_compile "$LINENO"; then : 10402 xorg_cv_cc_flag_unknown_warning_option=yes 10403else 10404 xorg_cv_cc_flag_unknown_warning_option=no 10405fi 10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10407fi 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10411 CFLAGS="$xorg_testset_save_CFLAGS" 10412fi 10413 10414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10417 fi 10418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423else 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426int i; 10427_ACEOF 10428if ac_fn_c_try_compile "$LINENO"; then : 10429 xorg_cv_cc_flag_unused_command_line_argument=yes 10430else 10431 xorg_cv_cc_flag_unused_command_line_argument=no 10432fi 10433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10434fi 10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10438 CFLAGS="$xorg_testset_save_CFLAGS" 10439fi 10440 10441found="no" 10442 10443 if test $found = "no" ; then 10444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10446 fi 10447 10448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10450 fi 10451 10452 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10453 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10455$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10456 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10457 if eval \${$cacheid+:} false; then : 10458 $as_echo_n "(cached) " >&6 10459else 10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462int i; 10463int 10464main () 10465{ 10466 10467 ; 10468 return 0; 10469} 10470_ACEOF 10471if ac_fn_c_try_link "$LINENO"; then : 10472 eval $cacheid=yes 10473else 10474 eval $cacheid=no 10475fi 10476rm -f core conftest.err conftest.$ac_objext \ 10477 conftest$ac_exeext conftest.$ac_ext 10478fi 10479 10480 10481 CFLAGS="$xorg_testset_save_CFLAGS" 10482 10483 eval supported=\$$cacheid 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10485$as_echo "$supported" >&6; } 10486 if test "$supported" = "yes" ; then 10487 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10488 found="yes" 10489 fi 10490 fi 10491 10492 10493fi 10494 10495 10496 10497 10498 10499 10500 10501 CWARNFLAGS="$BASE_CFLAGS" 10502 if test "x$GCC" = xyes ; then 10503 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10504 fi 10505 10506 10507 10508 10509 10510 10511 10512 10513# Check whether --enable-strict-compilation was given. 10514if test "${enable_strict_compilation+set}" = set; then : 10515 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10516else 10517 STRICT_COMPILE=no 10518fi 10519 10520 10521 10522 10523 10524 10525STRICT_CFLAGS="" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547else 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550int i; 10551_ACEOF 10552if ac_fn_c_try_compile "$LINENO"; then : 10553 xorg_cv_cc_flag_unknown_warning_option=yes 10554else 10555 xorg_cv_cc_flag_unknown_warning_option=no 10556fi 10557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10558fi 10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563fi 10564 10565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10568 fi 10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10573 $as_echo_n "(cached) " >&6 10574else 10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10576/* end confdefs.h. */ 10577int i; 10578_ACEOF 10579if ac_fn_c_try_compile "$LINENO"; then : 10580 xorg_cv_cc_flag_unused_command_line_argument=yes 10581else 10582 xorg_cv_cc_flag_unused_command_line_argument=no 10583fi 10584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590fi 10591 10592found="no" 10593 10594 if test $found = "no" ; then 10595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10597 fi 10598 10599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10601 fi 10602 10603 CFLAGS="$CFLAGS -pedantic" 10604 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10606$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10607 cacheid=xorg_cv_cc_flag__pedantic 10608 if eval \${$cacheid+:} false; then : 10609 $as_echo_n "(cached) " >&6 10610else 10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612/* end confdefs.h. */ 10613int i; 10614int 10615main () 10616{ 10617 10618 ; 10619 return 0; 10620} 10621_ACEOF 10622if ac_fn_c_try_link "$LINENO"; then : 10623 eval $cacheid=yes 10624else 10625 eval $cacheid=no 10626fi 10627rm -f core conftest.err conftest.$ac_objext \ 10628 conftest$ac_exeext conftest.$ac_ext 10629fi 10630 10631 10632 CFLAGS="$xorg_testset_save_CFLAGS" 10633 10634 eval supported=\$$cacheid 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10636$as_echo "$supported" >&6; } 10637 if test "$supported" = "yes" ; then 10638 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10639 found="yes" 10640 fi 10641 fi 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657xorg_testset_save_CFLAGS="$CFLAGS" 10658 10659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10664 $as_echo_n "(cached) " >&6 10665else 10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668int i; 10669_ACEOF 10670if ac_fn_c_try_compile "$LINENO"; then : 10671 xorg_cv_cc_flag_unknown_warning_option=yes 10672else 10673 xorg_cv_cc_flag_unknown_warning_option=no 10674fi 10675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10676fi 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10680 CFLAGS="$xorg_testset_save_CFLAGS" 10681fi 10682 10683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10686 fi 10687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10691 $as_echo_n "(cached) " >&6 10692else 10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694/* end confdefs.h. */ 10695int i; 10696_ACEOF 10697if ac_fn_c_try_compile "$LINENO"; then : 10698 xorg_cv_cc_flag_unused_command_line_argument=yes 10699else 10700 xorg_cv_cc_flag_unused_command_line_argument=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10703fi 10704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10707 CFLAGS="$xorg_testset_save_CFLAGS" 10708fi 10709 10710found="no" 10711 10712 if test $found = "no" ; then 10713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10715 fi 10716 10717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10719 fi 10720 10721 CFLAGS="$CFLAGS -Werror" 10722 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10724$as_echo_n "checking if $CC supports -Werror... " >&6; } 10725 cacheid=xorg_cv_cc_flag__Werror 10726 if eval \${$cacheid+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10730/* end confdefs.h. */ 10731int i; 10732int 10733main () 10734{ 10735 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740if ac_fn_c_try_link "$LINENO"; then : 10741 eval $cacheid=yes 10742else 10743 eval $cacheid=no 10744fi 10745rm -f core conftest.err conftest.$ac_objext \ 10746 conftest$ac_exeext conftest.$ac_ext 10747fi 10748 10749 10750 CFLAGS="$xorg_testset_save_CFLAGS" 10751 10752 eval supported=\$$cacheid 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10754$as_echo "$supported" >&6; } 10755 if test "$supported" = "yes" ; then 10756 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10757 found="yes" 10758 fi 10759 fi 10760 10761 if test $found = "no" ; then 10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764 fi 10765 10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10768 fi 10769 10770 CFLAGS="$CFLAGS -errwarn" 10771 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10773$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10774 cacheid=xorg_cv_cc_flag__errwarn 10775 if eval \${$cacheid+:} false; then : 10776 $as_echo_n "(cached) " >&6 10777else 10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779/* end confdefs.h. */ 10780int i; 10781int 10782main () 10783{ 10784 10785 ; 10786 return 0; 10787} 10788_ACEOF 10789if ac_fn_c_try_link "$LINENO"; then : 10790 eval $cacheid=yes 10791else 10792 eval $cacheid=no 10793fi 10794rm -f core conftest.err conftest.$ac_objext \ 10795 conftest$ac_exeext conftest.$ac_ext 10796fi 10797 10798 10799 CFLAGS="$xorg_testset_save_CFLAGS" 10800 10801 eval supported=\$$cacheid 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10803$as_echo "$supported" >&6; } 10804 if test "$supported" = "yes" ; then 10805 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10806 found="yes" 10807 fi 10808 fi 10809 10810 10811 10812# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10813# activate it with -Werror, so we add it here explicitly. 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827xorg_testset_save_CFLAGS="$CFLAGS" 10828 10829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835else 10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838int i; 10839_ACEOF 10840if ac_fn_c_try_compile "$LINENO"; then : 10841 xorg_cv_cc_flag_unknown_warning_option=yes 10842else 10843 xorg_cv_cc_flag_unknown_warning_option=no 10844fi 10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10846fi 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10850 CFLAGS="$xorg_testset_save_CFLAGS" 10851fi 10852 10853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10856 fi 10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10864/* end confdefs.h. */ 10865int i; 10866_ACEOF 10867if ac_fn_c_try_compile "$LINENO"; then : 10868 xorg_cv_cc_flag_unused_command_line_argument=yes 10869else 10870 xorg_cv_cc_flag_unused_command_line_argument=no 10871fi 10872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10873fi 10874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10877 CFLAGS="$xorg_testset_save_CFLAGS" 10878fi 10879 10880found="no" 10881 10882 if test $found = "no" ; then 10883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10885 fi 10886 10887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10889 fi 10890 10891 CFLAGS="$CFLAGS -Werror=attributes" 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10894$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10895 cacheid=xorg_cv_cc_flag__Werror_attributes 10896 if eval \${$cacheid+:} false; then : 10897 $as_echo_n "(cached) " >&6 10898else 10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901int i; 10902int 10903main () 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO"; then : 10911 eval $cacheid=yes 10912else 10913 eval $cacheid=no 10914fi 10915rm -f core conftest.err conftest.$ac_objext \ 10916 conftest$ac_exeext conftest.$ac_ext 10917fi 10918 10919 10920 CFLAGS="$xorg_testset_save_CFLAGS" 10921 10922 eval supported=\$$cacheid 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10924$as_echo "$supported" >&6; } 10925 if test "$supported" = "yes" ; then 10926 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10927 found="yes" 10928 fi 10929 fi 10930 10931 10932 10933if test "x$STRICT_COMPILE" = "xyes"; then 10934 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10935 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10936fi 10937 10938 10939 10940 10941 10942 10943cat >>confdefs.h <<_ACEOF 10944#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10945_ACEOF 10946 10947 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10948 if test "x$PVM" = "x"; then 10949 PVM="0" 10950 fi 10951 10952cat >>confdefs.h <<_ACEOF 10953#define PACKAGE_VERSION_MINOR $PVM 10954_ACEOF 10955 10956 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10957 if test "x$PVP" = "x"; then 10958 PVP="0" 10959 fi 10960 10961cat >>confdefs.h <<_ACEOF 10962#define PACKAGE_VERSION_PATCHLEVEL $PVP 10963_ACEOF 10964 10965 10966 10967CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10968mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10969|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10970echo 'git directory not found: installing possibly empty changelog.' >&2)" 10971 10972 10973 10974 10975macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10976INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10977mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10978|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10979echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10980 10981 10982 10983 10984 10985 10986if test x$APP_MAN_SUFFIX = x ; then 10987 APP_MAN_SUFFIX=1 10988fi 10989if test x$APP_MAN_DIR = x ; then 10990 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10991fi 10992 10993if test x$LIB_MAN_SUFFIX = x ; then 10994 LIB_MAN_SUFFIX=3 10995fi 10996if test x$LIB_MAN_DIR = x ; then 10997 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10998fi 10999 11000if test x$FILE_MAN_SUFFIX = x ; then 11001 case $host_os in 11002 solaris*) FILE_MAN_SUFFIX=4 ;; 11003 *) FILE_MAN_SUFFIX=5 ;; 11004 esac 11005fi 11006if test x$FILE_MAN_DIR = x ; then 11007 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11008fi 11009 11010if test x$MISC_MAN_SUFFIX = x ; then 11011 case $host_os in 11012 solaris*) MISC_MAN_SUFFIX=5 ;; 11013 *) MISC_MAN_SUFFIX=7 ;; 11014 esac 11015fi 11016if test x$MISC_MAN_DIR = x ; then 11017 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11018fi 11019 11020if test x$DRIVER_MAN_SUFFIX = x ; then 11021 case $host_os in 11022 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11023 *) DRIVER_MAN_SUFFIX=4 ;; 11024 esac 11025fi 11026if test x$DRIVER_MAN_DIR = x ; then 11027 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11028fi 11029 11030if test x$ADMIN_MAN_SUFFIX = x ; then 11031 case $host_os in 11032 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11033 *) ADMIN_MAN_SUFFIX=8 ;; 11034 esac 11035fi 11036if test x$ADMIN_MAN_DIR = x ; then 11037 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11038fi 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054XORG_MAN_PAGE="X Version 11" 11055 11056MAN_SUBSTS="\ 11057 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11058 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11059 -e 's|__xservername__|Xorg|g' \ 11060 -e 's|__xconfigfile__|xorg.conf|g' \ 11061 -e 's|__projectroot__|\$(prefix)|g' \ 11062 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11063 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11064 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11065 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11066 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11067 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11068 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11069 11070 11071 11072# Check whether --enable-silent-rules was given. 11073if test "${enable_silent_rules+set}" = set; then : 11074 enableval=$enable_silent_rules; 11075fi 11076 11077case $enable_silent_rules in # ((( 11078 yes) AM_DEFAULT_VERBOSITY=0;; 11079 no) AM_DEFAULT_VERBOSITY=1;; 11080 *) AM_DEFAULT_VERBOSITY=0;; 11081esac 11082am_make=${MAKE-make} 11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11084$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11085if ${am_cv_make_support_nested_variables+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 if $as_echo 'TRUE=$(BAR$(V)) 11089BAR0=false 11090BAR1=true 11091V=1 11092am__doit: 11093 @$(TRUE) 11094.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11095 am_cv_make_support_nested_variables=yes 11096else 11097 am_cv_make_support_nested_variables=no 11098fi 11099fi 11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11101$as_echo "$am_cv_make_support_nested_variables" >&6; } 11102if test $am_cv_make_support_nested_variables = yes; then 11103 AM_V='$(V)' 11104 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11105else 11106 AM_V=$AM_DEFAULT_VERBOSITY 11107 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11108fi 11109AM_BACKSLASH='\' 11110 11111 11112 11113# Initialize libtool 11114# Check whether --enable-static was given. 11115if test "${enable_static+set}" = set; then : 11116 enableval=$enable_static; p=${PACKAGE-default} 11117 case $enableval in 11118 yes) enable_static=yes ;; 11119 no) enable_static=no ;; 11120 *) 11121 enable_static=no 11122 # Look at the argument we got. We use all the common list separators. 11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11124 for pkg in $enableval; do 11125 IFS=$lt_save_ifs 11126 if test "X$pkg" = "X$p"; then 11127 enable_static=yes 11128 fi 11129 done 11130 IFS=$lt_save_ifs 11131 ;; 11132 esac 11133else 11134 enable_static=no 11135fi 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145case `pwd` in 11146 *\ * | *\ *) 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11148$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11149esac 11150 11151 11152 11153macro_version='2.4.6' 11154macro_revision='2.4.6' 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168ltmain=$ac_aux_dir/ltmain.sh 11169 11170# Backslashify metacharacters that are still active within 11171# double-quoted strings. 11172sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11173 11174# Same as above, but do not quote variable references. 11175double_quote_subst='s/\(["`\\]\)/\\\1/g' 11176 11177# Sed substitution to delay expansion of an escaped shell variable in a 11178# double_quote_subst'ed string. 11179delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11180 11181# Sed substitution to delay expansion of an escaped single quote. 11182delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11183 11184# Sed substitution to avoid accidental globbing in evaled expressions 11185no_glob_subst='s/\*/\\\*/g' 11186 11187ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11188ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11189ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11190 11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11192$as_echo_n "checking how to print strings... " >&6; } 11193# Test print first, because it will be a builtin if present. 11194if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11196 ECHO='print -r --' 11197elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11198 ECHO='printf %s\n' 11199else 11200 # Use this function as a fallback that always works. 11201 func_fallback_echo () 11202 { 11203 eval 'cat <<_LTECHO_EOF 11204$1 11205_LTECHO_EOF' 11206 } 11207 ECHO='func_fallback_echo' 11208fi 11209 11210# func_echo_all arg... 11211# Invoke $ECHO with all args, space-separated. 11212func_echo_all () 11213{ 11214 $ECHO "" 11215} 11216 11217case $ECHO in 11218 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11219$as_echo "printf" >&6; } ;; 11220 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11221$as_echo "print -r" >&6; } ;; 11222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11223$as_echo "cat" >&6; } ;; 11224esac 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11240$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11241if ${ac_cv_path_SED+:} false; then : 11242 $as_echo_n "(cached) " >&6 11243else 11244 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11245 for ac_i in 1 2 3 4 5 6 7; do 11246 ac_script="$ac_script$as_nl$ac_script" 11247 done 11248 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11249 { ac_script=; unset ac_script;} 11250 if test -z "$SED"; then 11251 ac_path_SED_found=false 11252 # Loop through the user's path and test for each of PROGNAME-LIST 11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11254for as_dir in $PATH 11255do 11256 IFS=$as_save_IFS 11257 test -z "$as_dir" && as_dir=. 11258 for ac_prog in sed gsed; do 11259 for ac_exec_ext in '' $ac_executable_extensions; do 11260 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11261 as_fn_executable_p "$ac_path_SED" || continue 11262# Check for GNU ac_path_SED and select it if it is found. 11263 # Check for GNU $ac_path_SED 11264case `"$ac_path_SED" --version 2>&1` in 11265*GNU*) 11266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11267*) 11268 ac_count=0 11269 $as_echo_n 0123456789 >"conftest.in" 11270 while : 11271 do 11272 cat "conftest.in" "conftest.in" >"conftest.tmp" 11273 mv "conftest.tmp" "conftest.in" 11274 cp "conftest.in" "conftest.nl" 11275 $as_echo '' >> "conftest.nl" 11276 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11278 as_fn_arith $ac_count + 1 && ac_count=$as_val 11279 if test $ac_count -gt ${ac_path_SED_max-0}; then 11280 # Best one so far, save it but keep looking for a better one 11281 ac_cv_path_SED="$ac_path_SED" 11282 ac_path_SED_max=$ac_count 11283 fi 11284 # 10*(2^10) chars as input seems more than enough 11285 test $ac_count -gt 10 && break 11286 done 11287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11288esac 11289 11290 $ac_path_SED_found && break 3 11291 done 11292 done 11293 done 11294IFS=$as_save_IFS 11295 if test -z "$ac_cv_path_SED"; then 11296 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11297 fi 11298else 11299 ac_cv_path_SED=$SED 11300fi 11301 11302fi 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11304$as_echo "$ac_cv_path_SED" >&6; } 11305 SED="$ac_cv_path_SED" 11306 rm -f conftest.sed 11307 11308test -z "$SED" && SED=sed 11309Xsed="$SED -e 1s/^X//" 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11322$as_echo_n "checking for fgrep... " >&6; } 11323if ${ac_cv_path_FGREP+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11327 then ac_cv_path_FGREP="$GREP -F" 11328 else 11329 if test -z "$FGREP"; then 11330 ac_path_FGREP_found=false 11331 # Loop through the user's path and test for each of PROGNAME-LIST 11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11334do 11335 IFS=$as_save_IFS 11336 test -z "$as_dir" && as_dir=. 11337 for ac_prog in fgrep; do 11338 for ac_exec_ext in '' $ac_executable_extensions; do 11339 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11340 as_fn_executable_p "$ac_path_FGREP" || continue 11341# Check for GNU ac_path_FGREP and select it if it is found. 11342 # Check for GNU $ac_path_FGREP 11343case `"$ac_path_FGREP" --version 2>&1` in 11344*GNU*) 11345 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11346*) 11347 ac_count=0 11348 $as_echo_n 0123456789 >"conftest.in" 11349 while : 11350 do 11351 cat "conftest.in" "conftest.in" >"conftest.tmp" 11352 mv "conftest.tmp" "conftest.in" 11353 cp "conftest.in" "conftest.nl" 11354 $as_echo 'FGREP' >> "conftest.nl" 11355 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11357 as_fn_arith $ac_count + 1 && ac_count=$as_val 11358 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11359 # Best one so far, save it but keep looking for a better one 11360 ac_cv_path_FGREP="$ac_path_FGREP" 11361 ac_path_FGREP_max=$ac_count 11362 fi 11363 # 10*(2^10) chars as input seems more than enough 11364 test $ac_count -gt 10 && break 11365 done 11366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11367esac 11368 11369 $ac_path_FGREP_found && break 3 11370 done 11371 done 11372 done 11373IFS=$as_save_IFS 11374 if test -z "$ac_cv_path_FGREP"; then 11375 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11376 fi 11377else 11378 ac_cv_path_FGREP=$FGREP 11379fi 11380 11381 fi 11382fi 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11384$as_echo "$ac_cv_path_FGREP" >&6; } 11385 FGREP="$ac_cv_path_FGREP" 11386 11387 11388test -z "$GREP" && GREP=grep 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408# Check whether --with-gnu-ld was given. 11409if test "${with_gnu_ld+set}" = set; then : 11410 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11411else 11412 with_gnu_ld=no 11413fi 11414 11415ac_prog=ld 11416if test yes = "$GCC"; then 11417 # Check if gcc -print-prog-name=ld gives a path. 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11419$as_echo_n "checking for ld used by $CC... " >&6; } 11420 case $host in 11421 *-*-mingw*) 11422 # gcc leaves a trailing carriage return, which upsets mingw 11423 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11424 *) 11425 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11426 esac 11427 case $ac_prog in 11428 # Accept absolute paths. 11429 [\\/]* | ?:[\\/]*) 11430 re_direlt='/[^/][^/]*/\.\./' 11431 # Canonicalize the pathname of ld 11432 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11433 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11434 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11435 done 11436 test -z "$LD" && LD=$ac_prog 11437 ;; 11438 "") 11439 # If it fails, then pretend we aren't using GCC. 11440 ac_prog=ld 11441 ;; 11442 *) 11443 # If it is relative, then search for the first ld in PATH. 11444 with_gnu_ld=unknown 11445 ;; 11446 esac 11447elif test yes = "$with_gnu_ld"; then 11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11449$as_echo_n "checking for GNU ld... " >&6; } 11450else 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11452$as_echo_n "checking for non-GNU ld... " >&6; } 11453fi 11454if ${lt_cv_path_LD+:} false; then : 11455 $as_echo_n "(cached) " >&6 11456else 11457 if test -z "$LD"; then 11458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11459 for ac_dir in $PATH; do 11460 IFS=$lt_save_ifs 11461 test -z "$ac_dir" && ac_dir=. 11462 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11463 lt_cv_path_LD=$ac_dir/$ac_prog 11464 # Check to see if the program is GNU ld. I'd rather use --version, 11465 # but apparently some variants of GNU ld only accept -v. 11466 # Break only if it was the GNU/non-GNU ld that we prefer. 11467 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11468 *GNU* | *'with BFD'*) 11469 test no != "$with_gnu_ld" && break 11470 ;; 11471 *) 11472 test yes != "$with_gnu_ld" && break 11473 ;; 11474 esac 11475 fi 11476 done 11477 IFS=$lt_save_ifs 11478else 11479 lt_cv_path_LD=$LD # Let the user override the test with a path. 11480fi 11481fi 11482 11483LD=$lt_cv_path_LD 11484if test -n "$LD"; then 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11486$as_echo "$LD" >&6; } 11487else 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11489$as_echo "no" >&6; } 11490fi 11491test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11493$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11494if ${lt_cv_prog_gnu_ld+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496else 11497 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11498case `$LD -v 2>&1 </dev/null` in 11499*GNU* | *'with BFD'*) 11500 lt_cv_prog_gnu_ld=yes 11501 ;; 11502*) 11503 lt_cv_prog_gnu_ld=no 11504 ;; 11505esac 11506fi 11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11508$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11509with_gnu_ld=$lt_cv_prog_gnu_ld 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11520$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11521if ${lt_cv_path_NM+:} false; then : 11522 $as_echo_n "(cached) " >&6 11523else 11524 if test -n "$NM"; then 11525 # Let the user override the test. 11526 lt_cv_path_NM=$NM 11527else 11528 lt_nm_to_check=${ac_tool_prefix}nm 11529 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11530 lt_nm_to_check="$lt_nm_to_check nm" 11531 fi 11532 for lt_tmp_nm in $lt_nm_to_check; do 11533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11534 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11535 IFS=$lt_save_ifs 11536 test -z "$ac_dir" && ac_dir=. 11537 tmp_nm=$ac_dir/$lt_tmp_nm 11538 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11539 # Check to see if the nm accepts a BSD-compat flag. 11540 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11541 # nm: unknown option "B" ignored 11542 # Tru64's nm complains that /dev/null is an invalid object file 11543 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11544 case $build_os in 11545 mingw*) lt_bad_file=conftest.nm/nofile ;; 11546 *) lt_bad_file=/dev/null ;; 11547 esac 11548 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11549 *$lt_bad_file* | *'Invalid file or object type'*) 11550 lt_cv_path_NM="$tmp_nm -B" 11551 break 2 11552 ;; 11553 *) 11554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11555 */dev/null*) 11556 lt_cv_path_NM="$tmp_nm -p" 11557 break 2 11558 ;; 11559 *) 11560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11561 continue # so that we can try to find one that supports BSD flags 11562 ;; 11563 esac 11564 ;; 11565 esac 11566 fi 11567 done 11568 IFS=$lt_save_ifs 11569 done 11570 : ${lt_cv_path_NM=no} 11571fi 11572fi 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11574$as_echo "$lt_cv_path_NM" >&6; } 11575if test no != "$lt_cv_path_NM"; then 11576 NM=$lt_cv_path_NM 11577else 11578 # Didn't find any BSD compatible name lister, look for dumpbin. 11579 if test -n "$DUMPBIN"; then : 11580 # Let the user override the test. 11581 else 11582 if test -n "$ac_tool_prefix"; then 11583 for ac_prog in dumpbin "link -dump" 11584 do 11585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11586set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11588$as_echo_n "checking for $ac_word... " >&6; } 11589if ${ac_cv_prog_DUMPBIN+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 if test -n "$DUMPBIN"; then 11593 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11594else 11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11596for as_dir in $PATH 11597do 11598 IFS=$as_save_IFS 11599 test -z "$as_dir" && as_dir=. 11600 for ac_exec_ext in '' $ac_executable_extensions; do 11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11602 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11604 break 2 11605 fi 11606done 11607 done 11608IFS=$as_save_IFS 11609 11610fi 11611fi 11612DUMPBIN=$ac_cv_prog_DUMPBIN 11613if test -n "$DUMPBIN"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11615$as_echo "$DUMPBIN" >&6; } 11616else 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11618$as_echo "no" >&6; } 11619fi 11620 11621 11622 test -n "$DUMPBIN" && break 11623 done 11624fi 11625if test -z "$DUMPBIN"; then 11626 ac_ct_DUMPBIN=$DUMPBIN 11627 for ac_prog in dumpbin "link -dump" 11628do 11629 # Extract the first word of "$ac_prog", so it can be a program name with args. 11630set dummy $ac_prog; ac_word=$2 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11632$as_echo_n "checking for $ac_word... " >&6; } 11633if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11634 $as_echo_n "(cached) " >&6 11635else 11636 if test -n "$ac_ct_DUMPBIN"; then 11637 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11638else 11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11640for as_dir in $PATH 11641do 11642 IFS=$as_save_IFS 11643 test -z "$as_dir" && as_dir=. 11644 for ac_exec_ext in '' $ac_executable_extensions; do 11645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11646 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11648 break 2 11649 fi 11650done 11651 done 11652IFS=$as_save_IFS 11653 11654fi 11655fi 11656ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11657if test -n "$ac_ct_DUMPBIN"; then 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11659$as_echo "$ac_ct_DUMPBIN" >&6; } 11660else 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11662$as_echo "no" >&6; } 11663fi 11664 11665 11666 test -n "$ac_ct_DUMPBIN" && break 11667done 11668 11669 if test "x$ac_ct_DUMPBIN" = x; then 11670 DUMPBIN=":" 11671 else 11672 case $cross_compiling:$ac_tool_warned in 11673yes:) 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11676ac_tool_warned=yes ;; 11677esac 11678 DUMPBIN=$ac_ct_DUMPBIN 11679 fi 11680fi 11681 11682 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11683 *COFF*) 11684 DUMPBIN="$DUMPBIN -symbols -headers" 11685 ;; 11686 *) 11687 DUMPBIN=: 11688 ;; 11689 esac 11690 fi 11691 11692 if test : != "$DUMPBIN"; then 11693 NM=$DUMPBIN 11694 fi 11695fi 11696test -z "$NM" && NM=nm 11697 11698 11699 11700 11701 11702 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11704$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11705if ${lt_cv_nm_interface+:} false; then : 11706 $as_echo_n "(cached) " >&6 11707else 11708 lt_cv_nm_interface="BSD nm" 11709 echo "int some_variable = 0;" > conftest.$ac_ext 11710 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11711 (eval "$ac_compile" 2>conftest.err) 11712 cat conftest.err >&5 11713 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11714 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11715 cat conftest.err >&5 11716 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11717 cat conftest.out >&5 11718 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11719 lt_cv_nm_interface="MS dumpbin" 11720 fi 11721 rm -f conftest* 11722fi 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11724$as_echo "$lt_cv_nm_interface" >&6; } 11725 11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11727$as_echo_n "checking whether ln -s works... " >&6; } 11728LN_S=$as_ln_s 11729if test "$LN_S" = "ln -s"; then 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11731$as_echo "yes" >&6; } 11732else 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11734$as_echo "no, using $LN_S" >&6; } 11735fi 11736 11737# find the maximum length of command line arguments 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11739$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11740if ${lt_cv_sys_max_cmd_len+:} false; then : 11741 $as_echo_n "(cached) " >&6 11742else 11743 i=0 11744 teststring=ABCD 11745 11746 case $build_os in 11747 msdosdjgpp*) 11748 # On DJGPP, this test can blow up pretty badly due to problems in libc 11749 # (any single argument exceeding 2000 bytes causes a buffer overrun 11750 # during glob expansion). Even if it were fixed, the result of this 11751 # check would be larger than it should be. 11752 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11753 ;; 11754 11755 gnu*) 11756 # Under GNU Hurd, this test is not required because there is 11757 # no limit to the length of command line arguments. 11758 # Libtool will interpret -1 as no limit whatsoever 11759 lt_cv_sys_max_cmd_len=-1; 11760 ;; 11761 11762 cygwin* | mingw* | cegcc*) 11763 # On Win9x/ME, this test blows up -- it succeeds, but takes 11764 # about 5 minutes as the teststring grows exponentially. 11765 # Worse, since 9x/ME are not pre-emptively multitasking, 11766 # you end up with a "frozen" computer, even though with patience 11767 # the test eventually succeeds (with a max line length of 256k). 11768 # Instead, let's just punt: use the minimum linelength reported by 11769 # all of the supported platforms: 8192 (on NT/2K/XP). 11770 lt_cv_sys_max_cmd_len=8192; 11771 ;; 11772 11773 mint*) 11774 # On MiNT this can take a long time and run out of memory. 11775 lt_cv_sys_max_cmd_len=8192; 11776 ;; 11777 11778 amigaos*) 11779 # On AmigaOS with pdksh, this test takes hours, literally. 11780 # So we just punt and use a minimum line length of 8192. 11781 lt_cv_sys_max_cmd_len=8192; 11782 ;; 11783 11784 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11785 # This has been around since 386BSD, at least. Likely further. 11786 if test -x /sbin/sysctl; then 11787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11788 elif test -x /usr/sbin/sysctl; then 11789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11790 else 11791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11792 fi 11793 # And add a safety zone 11794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11796 ;; 11797 11798 interix*) 11799 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11800 lt_cv_sys_max_cmd_len=196608 11801 ;; 11802 11803 os2*) 11804 # The test takes a long time on OS/2. 11805 lt_cv_sys_max_cmd_len=8192 11806 ;; 11807 11808 osf*) 11809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11811 # nice to cause kernel panics so lets avoid the loop below. 11812 # First set a reasonable default. 11813 lt_cv_sys_max_cmd_len=16384 11814 # 11815 if test -x /sbin/sysconfig; then 11816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11817 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11818 esac 11819 fi 11820 ;; 11821 sco3.2v5*) 11822 lt_cv_sys_max_cmd_len=102400 11823 ;; 11824 sysv5* | sco5v6* | sysv4.2uw2*) 11825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11826 if test -n "$kargmax"; then 11827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11828 else 11829 lt_cv_sys_max_cmd_len=32768 11830 fi 11831 ;; 11832 *) 11833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11834 if test -n "$lt_cv_sys_max_cmd_len" && \ 11835 test undefined != "$lt_cv_sys_max_cmd_len"; then 11836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11838 else 11839 # Make teststring a little bigger before we do anything with it. 11840 # a 1K string should be a reasonable start. 11841 for i in 1 2 3 4 5 6 7 8; do 11842 teststring=$teststring$teststring 11843 done 11844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11845 # If test is not a shell built-in, we'll probably end up computing a 11846 # maximum length that is only half of the actual maximum length, but 11847 # we can't tell. 11848 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11849 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11850 test 17 != "$i" # 1/2 MB should be enough 11851 do 11852 i=`expr $i + 1` 11853 teststring=$teststring$teststring 11854 done 11855 # Only check the string length outside the loop. 11856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11857 teststring= 11858 # Add a significant safety factor because C++ compilers can tack on 11859 # massive amounts of additional arguments before passing them to the 11860 # linker. It appears as though 1/2 is a usable value. 11861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11862 fi 11863 ;; 11864 esac 11865 11866fi 11867 11868if test -n "$lt_cv_sys_max_cmd_len"; then 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11870$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11871else 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11873$as_echo "none" >&6; } 11874fi 11875max_cmd_len=$lt_cv_sys_max_cmd_len 11876 11877 11878 11879 11880 11881 11882: ${CP="cp -f"} 11883: ${MV="mv -f"} 11884: ${RM="rm -f"} 11885 11886if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11887 lt_unset=unset 11888else 11889 lt_unset=false 11890fi 11891 11892 11893 11894 11895 11896# test EBCDIC or ASCII 11897case `echo X|tr X '\101'` in 11898 A) # ASCII based system 11899 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11900 lt_SP2NL='tr \040 \012' 11901 lt_NL2SP='tr \015\012 \040\040' 11902 ;; 11903 *) # EBCDIC based system 11904 lt_SP2NL='tr \100 \n' 11905 lt_NL2SP='tr \r\n \100\100' 11906 ;; 11907esac 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11918$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11919if ${lt_cv_to_host_file_cmd+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921else 11922 case $host in 11923 *-*-mingw* ) 11924 case $build in 11925 *-*-mingw* ) # actually msys 11926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11927 ;; 11928 *-*-cygwin* ) 11929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11930 ;; 11931 * ) # otherwise, assume *nix 11932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11933 ;; 11934 esac 11935 ;; 11936 *-*-cygwin* ) 11937 case $build in 11938 *-*-mingw* ) # actually msys 11939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11940 ;; 11941 *-*-cygwin* ) 11942 lt_cv_to_host_file_cmd=func_convert_file_noop 11943 ;; 11944 * ) # otherwise, assume *nix 11945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11946 ;; 11947 esac 11948 ;; 11949 * ) # unhandled hosts (and "normal" native builds) 11950 lt_cv_to_host_file_cmd=func_convert_file_noop 11951 ;; 11952esac 11953 11954fi 11955 11956to_host_file_cmd=$lt_cv_to_host_file_cmd 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11958$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11959 11960 11961 11962 11963 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11965$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11966if ${lt_cv_to_tool_file_cmd+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 #assume ordinary cross tools, or native build. 11970lt_cv_to_tool_file_cmd=func_convert_file_noop 11971case $host in 11972 *-*-mingw* ) 11973 case $build in 11974 *-*-mingw* ) # actually msys 11975 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11976 ;; 11977 esac 11978 ;; 11979esac 11980 11981fi 11982 11983to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11985$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11986 11987 11988 11989 11990 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11992$as_echo_n "checking for $LD option to reload object files... " >&6; } 11993if ${lt_cv_ld_reload_flag+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 lt_cv_ld_reload_flag='-r' 11997fi 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11999$as_echo "$lt_cv_ld_reload_flag" >&6; } 12000reload_flag=$lt_cv_ld_reload_flag 12001case $reload_flag in 12002"" | " "*) ;; 12003*) reload_flag=" $reload_flag" ;; 12004esac 12005reload_cmds='$LD$reload_flag -o $output$reload_objs' 12006case $host_os in 12007 cygwin* | mingw* | pw32* | cegcc*) 12008 if test yes != "$GCC"; then 12009 reload_cmds=false 12010 fi 12011 ;; 12012 darwin*) 12013 if test yes = "$GCC"; then 12014 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12015 else 12016 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12017 fi 12018 ;; 12019esac 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029if test -n "$ac_tool_prefix"; then 12030 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12031set dummy ${ac_tool_prefix}objdump; ac_word=$2 12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12033$as_echo_n "checking for $ac_word... " >&6; } 12034if ${ac_cv_prog_OBJDUMP+:} false; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 if test -n "$OBJDUMP"; then 12038 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12039else 12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12041for as_dir in $PATH 12042do 12043 IFS=$as_save_IFS 12044 test -z "$as_dir" && as_dir=. 12045 for ac_exec_ext in '' $ac_executable_extensions; do 12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12047 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12049 break 2 12050 fi 12051done 12052 done 12053IFS=$as_save_IFS 12054 12055fi 12056fi 12057OBJDUMP=$ac_cv_prog_OBJDUMP 12058if test -n "$OBJDUMP"; then 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12060$as_echo "$OBJDUMP" >&6; } 12061else 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12063$as_echo "no" >&6; } 12064fi 12065 12066 12067fi 12068if test -z "$ac_cv_prog_OBJDUMP"; then 12069 ac_ct_OBJDUMP=$OBJDUMP 12070 # Extract the first word of "objdump", so it can be a program name with args. 12071set dummy objdump; ac_word=$2 12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12073$as_echo_n "checking for $ac_word... " >&6; } 12074if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12075 $as_echo_n "(cached) " >&6 12076else 12077 if test -n "$ac_ct_OBJDUMP"; then 12078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12079else 12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12081for as_dir in $PATH 12082do 12083 IFS=$as_save_IFS 12084 test -z "$as_dir" && as_dir=. 12085 for ac_exec_ext in '' $ac_executable_extensions; do 12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12087 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12089 break 2 12090 fi 12091done 12092 done 12093IFS=$as_save_IFS 12094 12095fi 12096fi 12097ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12098if test -n "$ac_ct_OBJDUMP"; then 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12100$as_echo "$ac_ct_OBJDUMP" >&6; } 12101else 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12103$as_echo "no" >&6; } 12104fi 12105 12106 if test "x$ac_ct_OBJDUMP" = x; then 12107 OBJDUMP="false" 12108 else 12109 case $cross_compiling:$ac_tool_warned in 12110yes:) 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12113ac_tool_warned=yes ;; 12114esac 12115 OBJDUMP=$ac_ct_OBJDUMP 12116 fi 12117else 12118 OBJDUMP="$ac_cv_prog_OBJDUMP" 12119fi 12120 12121test -z "$OBJDUMP" && OBJDUMP=objdump 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12132$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12133if ${lt_cv_deplibs_check_method+:} false; then : 12134 $as_echo_n "(cached) " >&6 12135else 12136 lt_cv_file_magic_cmd='$MAGIC_CMD' 12137lt_cv_file_magic_test_file= 12138lt_cv_deplibs_check_method='unknown' 12139# Need to set the preceding variable on all platforms that support 12140# interlibrary dependencies. 12141# 'none' -- dependencies not supported. 12142# 'unknown' -- same as none, but documents that we really don't know. 12143# 'pass_all' -- all dependencies passed with no checks. 12144# 'test_compile' -- check by making test program. 12145# 'file_magic [[regex]]' -- check by looking for files in library path 12146# that responds to the $file_magic_cmd with a given extended regex. 12147# If you have 'file' or equivalent on your system and you're not sure 12148# whether 'pass_all' will *always* work, you probably want this one. 12149 12150case $host_os in 12151aix[4-9]*) 12152 lt_cv_deplibs_check_method=pass_all 12153 ;; 12154 12155beos*) 12156 lt_cv_deplibs_check_method=pass_all 12157 ;; 12158 12159bsdi[45]*) 12160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12161 lt_cv_file_magic_cmd='/usr/bin/file -L' 12162 lt_cv_file_magic_test_file=/shlib/libc.so 12163 ;; 12164 12165cygwin*) 12166 # func_win32_libid is a shell function defined in ltmain.sh 12167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12168 lt_cv_file_magic_cmd='func_win32_libid' 12169 ;; 12170 12171mingw* | pw32*) 12172 # Base MSYS/MinGW do not provide the 'file' command needed by 12173 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12174 # unless we find 'file', for example because we are cross-compiling. 12175 if ( file / ) >/dev/null 2>&1; then 12176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12177 lt_cv_file_magic_cmd='func_win32_libid' 12178 else 12179 # Keep this pattern in sync with the one in func_win32_libid. 12180 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12181 lt_cv_file_magic_cmd='$OBJDUMP -f' 12182 fi 12183 ;; 12184 12185cegcc*) 12186 # use the weaker test based on 'objdump'. See mingw*. 12187 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12188 lt_cv_file_magic_cmd='$OBJDUMP -f' 12189 ;; 12190 12191darwin* | rhapsody*) 12192 lt_cv_deplibs_check_method=pass_all 12193 ;; 12194 12195freebsd* | dragonfly*) 12196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12197 case $host_cpu in 12198 i*86 ) 12199 # Not sure whether the presence of OpenBSD here was a mistake. 12200 # Let's accept both of them until this is cleared up. 12201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12202 lt_cv_file_magic_cmd=/usr/bin/file 12203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12204 ;; 12205 esac 12206 else 12207 lt_cv_deplibs_check_method=pass_all 12208 fi 12209 ;; 12210 12211haiku*) 12212 lt_cv_deplibs_check_method=pass_all 12213 ;; 12214 12215hpux10.20* | hpux11*) 12216 lt_cv_file_magic_cmd=/usr/bin/file 12217 case $host_cpu in 12218 ia64*) 12219 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12220 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12221 ;; 12222 hppa*64*) 12223 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]' 12224 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12225 ;; 12226 *) 12227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12228 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12229 ;; 12230 esac 12231 ;; 12232 12233interix[3-9]*) 12234 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12236 ;; 12237 12238irix5* | irix6* | nonstopux*) 12239 case $LD in 12240 *-32|*"-32 ") libmagic=32-bit;; 12241 *-n32|*"-n32 ") libmagic=N32;; 12242 *-64|*"-64 ") libmagic=64-bit;; 12243 *) libmagic=never-match;; 12244 esac 12245 lt_cv_deplibs_check_method=pass_all 12246 ;; 12247 12248# This must be glibc/ELF. 12249linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12250 lt_cv_deplibs_check_method=pass_all 12251 ;; 12252 12253netbsd* | netbsdelf*-gnu) 12254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12256 else 12257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12258 fi 12259 ;; 12260 12261newos6*) 12262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12263 lt_cv_file_magic_cmd=/usr/bin/file 12264 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12265 ;; 12266 12267*nto* | *qnx*) 12268 lt_cv_deplibs_check_method=pass_all 12269 ;; 12270 12271openbsd* | bitrig*) 12272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12274 else 12275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12276 fi 12277 ;; 12278 12279osf3* | osf4* | osf5*) 12280 lt_cv_deplibs_check_method=pass_all 12281 ;; 12282 12283rdos*) 12284 lt_cv_deplibs_check_method=pass_all 12285 ;; 12286 12287solaris*) 12288 lt_cv_deplibs_check_method=pass_all 12289 ;; 12290 12291sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12292 lt_cv_deplibs_check_method=pass_all 12293 ;; 12294 12295sysv4 | sysv4.3*) 12296 case $host_vendor in 12297 motorola) 12298 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]' 12299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12300 ;; 12301 ncr) 12302 lt_cv_deplibs_check_method=pass_all 12303 ;; 12304 sequent) 12305 lt_cv_file_magic_cmd='/bin/file' 12306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12307 ;; 12308 sni) 12309 lt_cv_file_magic_cmd='/bin/file' 12310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12311 lt_cv_file_magic_test_file=/lib/libc.so 12312 ;; 12313 siemens) 12314 lt_cv_deplibs_check_method=pass_all 12315 ;; 12316 pc) 12317 lt_cv_deplibs_check_method=pass_all 12318 ;; 12319 esac 12320 ;; 12321 12322tpf*) 12323 lt_cv_deplibs_check_method=pass_all 12324 ;; 12325os2*) 12326 lt_cv_deplibs_check_method=pass_all 12327 ;; 12328esac 12329 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12332$as_echo "$lt_cv_deplibs_check_method" >&6; } 12333 12334file_magic_glob= 12335want_nocaseglob=no 12336if test "$build" = "$host"; then 12337 case $host_os in 12338 mingw* | pw32*) 12339 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12340 want_nocaseglob=yes 12341 else 12342 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12343 fi 12344 ;; 12345 esac 12346fi 12347 12348file_magic_cmd=$lt_cv_file_magic_cmd 12349deplibs_check_method=$lt_cv_deplibs_check_method 12350test -z "$deplibs_check_method" && deplibs_check_method=unknown 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373if test -n "$ac_tool_prefix"; then 12374 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12375set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12377$as_echo_n "checking for $ac_word... " >&6; } 12378if ${ac_cv_prog_DLLTOOL+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 if test -n "$DLLTOOL"; then 12382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12383else 12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12385for as_dir in $PATH 12386do 12387 IFS=$as_save_IFS 12388 test -z "$as_dir" && as_dir=. 12389 for ac_exec_ext in '' $ac_executable_extensions; do 12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12391 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12393 break 2 12394 fi 12395done 12396 done 12397IFS=$as_save_IFS 12398 12399fi 12400fi 12401DLLTOOL=$ac_cv_prog_DLLTOOL 12402if test -n "$DLLTOOL"; then 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12404$as_echo "$DLLTOOL" >&6; } 12405else 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12407$as_echo "no" >&6; } 12408fi 12409 12410 12411fi 12412if test -z "$ac_cv_prog_DLLTOOL"; then 12413 ac_ct_DLLTOOL=$DLLTOOL 12414 # Extract the first word of "dlltool", so it can be a program name with args. 12415set dummy dlltool; ac_word=$2 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12417$as_echo_n "checking for $ac_word... " >&6; } 12418if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12419 $as_echo_n "(cached) " >&6 12420else 12421 if test -n "$ac_ct_DLLTOOL"; then 12422 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12423else 12424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12425for as_dir in $PATH 12426do 12427 IFS=$as_save_IFS 12428 test -z "$as_dir" && as_dir=. 12429 for ac_exec_ext in '' $ac_executable_extensions; do 12430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12431 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12433 break 2 12434 fi 12435done 12436 done 12437IFS=$as_save_IFS 12438 12439fi 12440fi 12441ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12442if test -n "$ac_ct_DLLTOOL"; then 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12444$as_echo "$ac_ct_DLLTOOL" >&6; } 12445else 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12447$as_echo "no" >&6; } 12448fi 12449 12450 if test "x$ac_ct_DLLTOOL" = x; then 12451 DLLTOOL="false" 12452 else 12453 case $cross_compiling:$ac_tool_warned in 12454yes:) 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12457ac_tool_warned=yes ;; 12458esac 12459 DLLTOOL=$ac_ct_DLLTOOL 12460 fi 12461else 12462 DLLTOOL="$ac_cv_prog_DLLTOOL" 12463fi 12464 12465test -z "$DLLTOOL" && DLLTOOL=dlltool 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12477$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12478if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12479 $as_echo_n "(cached) " >&6 12480else 12481 lt_cv_sharedlib_from_linklib_cmd='unknown' 12482 12483case $host_os in 12484cygwin* | mingw* | pw32* | cegcc*) 12485 # two different shell functions defined in ltmain.sh; 12486 # decide which one to use based on capabilities of $DLLTOOL 12487 case `$DLLTOOL --help 2>&1` in 12488 *--identify-strict*) 12489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12490 ;; 12491 *) 12492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12493 ;; 12494 esac 12495 ;; 12496*) 12497 # fallback: assume linklib IS sharedlib 12498 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12499 ;; 12500esac 12501 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12504$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12505sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12506test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12507 12508 12509 12510 12511 12512 12513 12514if test -n "$ac_tool_prefix"; then 12515 for ac_prog in ar 12516 do 12517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12518set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12520$as_echo_n "checking for $ac_word... " >&6; } 12521if ${ac_cv_prog_AR+:} false; then : 12522 $as_echo_n "(cached) " >&6 12523else 12524 if test -n "$AR"; then 12525 ac_cv_prog_AR="$AR" # Let the user override the test. 12526else 12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12528for as_dir in $PATH 12529do 12530 IFS=$as_save_IFS 12531 test -z "$as_dir" && as_dir=. 12532 for ac_exec_ext in '' $ac_executable_extensions; do 12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12534 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12536 break 2 12537 fi 12538done 12539 done 12540IFS=$as_save_IFS 12541 12542fi 12543fi 12544AR=$ac_cv_prog_AR 12545if test -n "$AR"; then 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12547$as_echo "$AR" >&6; } 12548else 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12550$as_echo "no" >&6; } 12551fi 12552 12553 12554 test -n "$AR" && break 12555 done 12556fi 12557if test -z "$AR"; then 12558 ac_ct_AR=$AR 12559 for ac_prog in ar 12560do 12561 # Extract the first word of "$ac_prog", so it can be a program name with args. 12562set dummy $ac_prog; ac_word=$2 12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12564$as_echo_n "checking for $ac_word... " >&6; } 12565if ${ac_cv_prog_ac_ct_AR+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567else 12568 if test -n "$ac_ct_AR"; then 12569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12570else 12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12572for as_dir in $PATH 12573do 12574 IFS=$as_save_IFS 12575 test -z "$as_dir" && as_dir=. 12576 for ac_exec_ext in '' $ac_executable_extensions; do 12577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12578 ac_cv_prog_ac_ct_AR="$ac_prog" 12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12580 break 2 12581 fi 12582done 12583 done 12584IFS=$as_save_IFS 12585 12586fi 12587fi 12588ac_ct_AR=$ac_cv_prog_ac_ct_AR 12589if test -n "$ac_ct_AR"; then 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12591$as_echo "$ac_ct_AR" >&6; } 12592else 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12594$as_echo "no" >&6; } 12595fi 12596 12597 12598 test -n "$ac_ct_AR" && break 12599done 12600 12601 if test "x$ac_ct_AR" = x; then 12602 AR="false" 12603 else 12604 case $cross_compiling:$ac_tool_warned in 12605yes:) 12606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12608ac_tool_warned=yes ;; 12609esac 12610 AR=$ac_ct_AR 12611 fi 12612fi 12613 12614: ${AR=ar} 12615: ${AR_FLAGS=cru} 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12628$as_echo_n "checking for archiver @FILE support... " >&6; } 12629if ${lt_cv_ar_at_file+:} false; then : 12630 $as_echo_n "(cached) " >&6 12631else 12632 lt_cv_ar_at_file=no 12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12634/* end confdefs.h. */ 12635 12636int 12637main () 12638{ 12639 12640 ; 12641 return 0; 12642} 12643_ACEOF 12644if ac_fn_c_try_compile "$LINENO"; then : 12645 echo conftest.$ac_objext > conftest.lst 12646 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12648 (eval $lt_ar_try) 2>&5 12649 ac_status=$? 12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12651 test $ac_status = 0; } 12652 if test 0 -eq "$ac_status"; then 12653 # Ensure the archiver fails upon bogus file names. 12654 rm -f conftest.$ac_objext libconftest.a 12655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12656 (eval $lt_ar_try) 2>&5 12657 ac_status=$? 12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12659 test $ac_status = 0; } 12660 if test 0 -ne "$ac_status"; then 12661 lt_cv_ar_at_file=@ 12662 fi 12663 fi 12664 rm -f conftest.* libconftest.a 12665 12666fi 12667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12668 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12671$as_echo "$lt_cv_ar_at_file" >&6; } 12672 12673if test no = "$lt_cv_ar_at_file"; then 12674 archiver_list_spec= 12675else 12676 archiver_list_spec=$lt_cv_ar_at_file 12677fi 12678 12679 12680 12681 12682 12683 12684 12685if test -n "$ac_tool_prefix"; then 12686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12687set dummy ${ac_tool_prefix}strip; ac_word=$2 12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12689$as_echo_n "checking for $ac_word... " >&6; } 12690if ${ac_cv_prog_STRIP+:} false; then : 12691 $as_echo_n "(cached) " >&6 12692else 12693 if test -n "$STRIP"; then 12694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12695else 12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12697for as_dir in $PATH 12698do 12699 IFS=$as_save_IFS 12700 test -z "$as_dir" && as_dir=. 12701 for ac_exec_ext in '' $ac_executable_extensions; do 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12703 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12705 break 2 12706 fi 12707done 12708 done 12709IFS=$as_save_IFS 12710 12711fi 12712fi 12713STRIP=$ac_cv_prog_STRIP 12714if test -n "$STRIP"; then 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12716$as_echo "$STRIP" >&6; } 12717else 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12719$as_echo "no" >&6; } 12720fi 12721 12722 12723fi 12724if test -z "$ac_cv_prog_STRIP"; then 12725 ac_ct_STRIP=$STRIP 12726 # Extract the first word of "strip", so it can be a program name with args. 12727set dummy strip; ac_word=$2 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12729$as_echo_n "checking for $ac_word... " >&6; } 12730if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 if test -n "$ac_ct_STRIP"; then 12734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12735else 12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12737for as_dir in $PATH 12738do 12739 IFS=$as_save_IFS 12740 test -z "$as_dir" && as_dir=. 12741 for ac_exec_ext in '' $ac_executable_extensions; do 12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12743 ac_cv_prog_ac_ct_STRIP="strip" 12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12745 break 2 12746 fi 12747done 12748 done 12749IFS=$as_save_IFS 12750 12751fi 12752fi 12753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12754if test -n "$ac_ct_STRIP"; then 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12756$as_echo "$ac_ct_STRIP" >&6; } 12757else 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12759$as_echo "no" >&6; } 12760fi 12761 12762 if test "x$ac_ct_STRIP" = x; then 12763 STRIP=":" 12764 else 12765 case $cross_compiling:$ac_tool_warned in 12766yes:) 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12769ac_tool_warned=yes ;; 12770esac 12771 STRIP=$ac_ct_STRIP 12772 fi 12773else 12774 STRIP="$ac_cv_prog_STRIP" 12775fi 12776 12777test -z "$STRIP" && STRIP=: 12778 12779 12780 12781 12782 12783 12784if test -n "$ac_tool_prefix"; then 12785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12786set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12788$as_echo_n "checking for $ac_word... " >&6; } 12789if ${ac_cv_prog_RANLIB+:} false; then : 12790 $as_echo_n "(cached) " >&6 12791else 12792 if test -n "$RANLIB"; then 12793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12794else 12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12796for as_dir in $PATH 12797do 12798 IFS=$as_save_IFS 12799 test -z "$as_dir" && as_dir=. 12800 for ac_exec_ext in '' $ac_executable_extensions; do 12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12804 break 2 12805 fi 12806done 12807 done 12808IFS=$as_save_IFS 12809 12810fi 12811fi 12812RANLIB=$ac_cv_prog_RANLIB 12813if test -n "$RANLIB"; then 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12815$as_echo "$RANLIB" >&6; } 12816else 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12818$as_echo "no" >&6; } 12819fi 12820 12821 12822fi 12823if test -z "$ac_cv_prog_RANLIB"; then 12824 ac_ct_RANLIB=$RANLIB 12825 # Extract the first word of "ranlib", so it can be a program name with args. 12826set dummy ranlib; ac_word=$2 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12828$as_echo_n "checking for $ac_word... " >&6; } 12829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 if test -n "$ac_ct_RANLIB"; then 12833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12834else 12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12836for as_dir in $PATH 12837do 12838 IFS=$as_save_IFS 12839 test -z "$as_dir" && as_dir=. 12840 for ac_exec_ext in '' $ac_executable_extensions; do 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12842 ac_cv_prog_ac_ct_RANLIB="ranlib" 12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12844 break 2 12845 fi 12846done 12847 done 12848IFS=$as_save_IFS 12849 12850fi 12851fi 12852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12853if test -n "$ac_ct_RANLIB"; then 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12855$as_echo "$ac_ct_RANLIB" >&6; } 12856else 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12858$as_echo "no" >&6; } 12859fi 12860 12861 if test "x$ac_ct_RANLIB" = x; then 12862 RANLIB=":" 12863 else 12864 case $cross_compiling:$ac_tool_warned in 12865yes:) 12866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12868ac_tool_warned=yes ;; 12869esac 12870 RANLIB=$ac_ct_RANLIB 12871 fi 12872else 12873 RANLIB="$ac_cv_prog_RANLIB" 12874fi 12875 12876test -z "$RANLIB" && RANLIB=: 12877 12878 12879 12880 12881 12882 12883# Determine commands to create old-style static archives. 12884old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12885old_postinstall_cmds='chmod 644 $oldlib' 12886old_postuninstall_cmds= 12887 12888if test -n "$RANLIB"; then 12889 case $host_os in 12890 bitrig* | openbsd*) 12891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12892 ;; 12893 *) 12894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12895 ;; 12896 esac 12897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12898fi 12899 12900case $host_os in 12901 darwin*) 12902 lock_old_archive_extraction=yes ;; 12903 *) 12904 lock_old_archive_extraction=no ;; 12905esac 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945# If no C compiler was specified, use CC. 12946LTCC=${LTCC-"$CC"} 12947 12948# If no C compiler flags were specified, use CFLAGS. 12949LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12950 12951# Allow CC to be a program name with arguments. 12952compiler=$CC 12953 12954 12955# Check for command to grab the raw symbol name followed by C symbol from nm. 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12957$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12958if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960else 12961 12962# These are sane defaults that work on at least a few old systems. 12963# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12964 12965# Character class describing NM global symbol codes. 12966symcode='[BCDEGRST]' 12967 12968# Regexp to match symbols that can be accessed directly from C. 12969sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12970 12971# Define system-specific variables. 12972case $host_os in 12973aix*) 12974 symcode='[BCDT]' 12975 ;; 12976cygwin* | mingw* | pw32* | cegcc*) 12977 symcode='[ABCDGISTW]' 12978 ;; 12979hpux*) 12980 if test ia64 = "$host_cpu"; then 12981 symcode='[ABCDEGRST]' 12982 fi 12983 ;; 12984irix* | nonstopux*) 12985 symcode='[BCDEGRST]' 12986 ;; 12987osf*) 12988 symcode='[BCDEGQRST]' 12989 ;; 12990solaris*) 12991 symcode='[BDRT]' 12992 ;; 12993sco3.2v5*) 12994 symcode='[DT]' 12995 ;; 12996sysv4.2uw2*) 12997 symcode='[DT]' 12998 ;; 12999sysv5* | sco5v6* | unixware* | OpenUNIX*) 13000 symcode='[ABDT]' 13001 ;; 13002sysv4) 13003 symcode='[DFNSTU]' 13004 ;; 13005esac 13006 13007# If we're using GNU nm, then use its standard symbol codes. 13008case `$NM -V 2>&1` in 13009*GNU* | *'with BFD'*) 13010 symcode='[ABCDGIRSTW]' ;; 13011esac 13012 13013if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13014 # Gets list of data symbols to import. 13015 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13016 # Adjust the below global symbol transforms to fixup imported variables. 13017 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13018 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13019 lt_c_name_lib_hook="\ 13020 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13021 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13022else 13023 # Disable hooks by default. 13024 lt_cv_sys_global_symbol_to_import= 13025 lt_cdecl_hook= 13026 lt_c_name_hook= 13027 lt_c_name_lib_hook= 13028fi 13029 13030# Transform an extracted symbol line into a proper C declaration. 13031# Some systems (esp. on ia64) link data and code symbols differently, 13032# so use this general approach. 13033lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13034$lt_cdecl_hook\ 13035" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13036" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13037 13038# Transform an extracted symbol line into symbol name and symbol address 13039lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13040$lt_c_name_hook\ 13041" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13042" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13043 13044# Transform an extracted symbol line into symbol name with lib prefix and 13045# symbol address. 13046lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13047$lt_c_name_lib_hook\ 13048" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13049" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13050" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13051 13052# Handle CRLF in mingw tool chain 13053opt_cr= 13054case $build_os in 13055mingw*) 13056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13057 ;; 13058esac 13059 13060# Try without a prefix underscore, then with it. 13061for ac_symprfx in "" "_"; do 13062 13063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13064 symxfrm="\\1 $ac_symprfx\\2 \\2" 13065 13066 # Write the raw and C identifiers. 13067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13068 # Fake it for dumpbin and say T for any non-static function, 13069 # D for any global variable and I for any imported variable. 13070 # Also find C++ and __fastcall symbols from MSVC++, 13071 # which start with @ or ?. 13072 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13073" {last_section=section; section=\$ 3};"\ 13074" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13075" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13076" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13077" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13078" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13079" \$ 0!~/External *\|/{next};"\ 13080" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13081" {if(hide[section]) next};"\ 13082" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13083" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13084" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13085" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13086" ' prfx=^$ac_symprfx" 13087 else 13088 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13089 fi 13090 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13091 13092 # Check to see that the pipe works correctly. 13093 pipe_works=no 13094 13095 rm -f conftest* 13096 cat > conftest.$ac_ext <<_LT_EOF 13097#ifdef __cplusplus 13098extern "C" { 13099#endif 13100char nm_test_var; 13101void nm_test_func(void); 13102void nm_test_func(void){} 13103#ifdef __cplusplus 13104} 13105#endif 13106int main(){nm_test_var='a';nm_test_func();return(0);} 13107_LT_EOF 13108 13109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13110 (eval $ac_compile) 2>&5 13111 ac_status=$? 13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13113 test $ac_status = 0; }; then 13114 # Now try to grab the symbols. 13115 nlist=conftest.nm 13116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13117 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13118 ac_status=$? 13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13120 test $ac_status = 0; } && test -s "$nlist"; then 13121 # Try sorting and uniquifying the output. 13122 if sort "$nlist" | uniq > "$nlist"T; then 13123 mv -f "$nlist"T "$nlist" 13124 else 13125 rm -f "$nlist"T 13126 fi 13127 13128 # Make sure that we snagged all the symbols we need. 13129 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13130 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13131 cat <<_LT_EOF > conftest.$ac_ext 13132/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13133#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13134/* DATA imports from DLLs on WIN32 can't be const, because runtime 13135 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13136# define LT_DLSYM_CONST 13137#elif defined __osf__ 13138/* This system does not cope well with relocations in const data. */ 13139# define LT_DLSYM_CONST 13140#else 13141# define LT_DLSYM_CONST const 13142#endif 13143 13144#ifdef __cplusplus 13145extern "C" { 13146#endif 13147 13148_LT_EOF 13149 # Now generate the symbol file. 13150 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13151 13152 cat <<_LT_EOF >> conftest.$ac_ext 13153 13154/* The mapping between symbol names and symbols. */ 13155LT_DLSYM_CONST struct { 13156 const char *name; 13157 void *address; 13158} 13159lt__PROGRAM__LTX_preloaded_symbols[] = 13160{ 13161 { "@PROGRAM@", (void *) 0 }, 13162_LT_EOF 13163 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13164 cat <<\_LT_EOF >> conftest.$ac_ext 13165 {0, (void *) 0} 13166}; 13167 13168/* This works around a problem in FreeBSD linker */ 13169#ifdef FREEBSD_WORKAROUND 13170static const void *lt_preloaded_setup() { 13171 return lt__PROGRAM__LTX_preloaded_symbols; 13172} 13173#endif 13174 13175#ifdef __cplusplus 13176} 13177#endif 13178_LT_EOF 13179 # Now try linking the two files. 13180 mv conftest.$ac_objext conftstm.$ac_objext 13181 lt_globsym_save_LIBS=$LIBS 13182 lt_globsym_save_CFLAGS=$CFLAGS 13183 LIBS=conftstm.$ac_objext 13184 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13186 (eval $ac_link) 2>&5 13187 ac_status=$? 13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13189 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13190 pipe_works=yes 13191 fi 13192 LIBS=$lt_globsym_save_LIBS 13193 CFLAGS=$lt_globsym_save_CFLAGS 13194 else 13195 echo "cannot find nm_test_func in $nlist" >&5 13196 fi 13197 else 13198 echo "cannot find nm_test_var in $nlist" >&5 13199 fi 13200 else 13201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13202 fi 13203 else 13204 echo "$progname: failed program was:" >&5 13205 cat conftest.$ac_ext >&5 13206 fi 13207 rm -rf conftest* conftst* 13208 13209 # Do not use the global_symbol_pipe unless it works. 13210 if test yes = "$pipe_works"; then 13211 break 13212 else 13213 lt_cv_sys_global_symbol_pipe= 13214 fi 13215done 13216 13217fi 13218 13219if test -z "$lt_cv_sys_global_symbol_pipe"; then 13220 lt_cv_sys_global_symbol_to_cdecl= 13221fi 13222if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13224$as_echo "failed" >&6; } 13225else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13227$as_echo "ok" >&6; } 13228fi 13229 13230# Response file support. 13231if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13232 nm_file_list_spec='@' 13233elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13234 nm_file_list_spec='@' 13235fi 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13274$as_echo_n "checking for sysroot... " >&6; } 13275 13276# Check whether --with-sysroot was given. 13277if test "${with_sysroot+set}" = set; then : 13278 withval=$with_sysroot; 13279else 13280 with_sysroot=no 13281fi 13282 13283 13284lt_sysroot= 13285case $with_sysroot in #( 13286 yes) 13287 if test yes = "$GCC"; then 13288 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13289 fi 13290 ;; #( 13291 /*) 13292 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13293 ;; #( 13294 no|'') 13295 ;; #( 13296 *) 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13298$as_echo "$with_sysroot" >&6; } 13299 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13300 ;; 13301esac 13302 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13304$as_echo "${lt_sysroot:-no}" >&6; } 13305 13306 13307 13308 13309 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13311$as_echo_n "checking for a working dd... " >&6; } 13312if ${ac_cv_path_lt_DD+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 printf 0123456789abcdef0123456789abcdef >conftest.i 13316cat conftest.i conftest.i >conftest2.i 13317: ${lt_DD:=$DD} 13318if test -z "$lt_DD"; then 13319 ac_path_lt_DD_found=false 13320 # Loop through the user's path and test for each of PROGNAME-LIST 13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13322for as_dir in $PATH 13323do 13324 IFS=$as_save_IFS 13325 test -z "$as_dir" && as_dir=. 13326 for ac_prog in dd; do 13327 for ac_exec_ext in '' $ac_executable_extensions; do 13328 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13329 as_fn_executable_p "$ac_path_lt_DD" || continue 13330if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13331 cmp -s conftest.i conftest.out \ 13332 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13333fi 13334 $ac_path_lt_DD_found && break 3 13335 done 13336 done 13337 done 13338IFS=$as_save_IFS 13339 if test -z "$ac_cv_path_lt_DD"; then 13340 : 13341 fi 13342else 13343 ac_cv_path_lt_DD=$lt_DD 13344fi 13345 13346rm -f conftest.i conftest2.i conftest.out 13347fi 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13349$as_echo "$ac_cv_path_lt_DD" >&6; } 13350 13351 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13353$as_echo_n "checking how to truncate binary pipes... " >&6; } 13354if ${lt_cv_truncate_bin+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 printf 0123456789abcdef0123456789abcdef >conftest.i 13358cat conftest.i conftest.i >conftest2.i 13359lt_cv_truncate_bin= 13360if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13361 cmp -s conftest.i conftest.out \ 13362 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13363fi 13364rm -f conftest.i conftest2.i conftest.out 13365test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13366fi 13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13368$as_echo "$lt_cv_truncate_bin" >&6; } 13369 13370 13371 13372 13373 13374 13375 13376# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13377func_cc_basename () 13378{ 13379 for cc_temp in $*""; do 13380 case $cc_temp in 13381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13383 \-*) ;; 13384 *) break;; 13385 esac 13386 done 13387 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13388} 13389 13390# Check whether --enable-libtool-lock was given. 13391if test "${enable_libtool_lock+set}" = set; then : 13392 enableval=$enable_libtool_lock; 13393fi 13394 13395test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13396 13397# Some flags need to be propagated to the compiler or linker for good 13398# libtool support. 13399case $host in 13400ia64-*-hpux*) 13401 # Find out what ABI is being produced by ac_compile, and set mode 13402 # options accordingly. 13403 echo 'int i;' > conftest.$ac_ext 13404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13405 (eval $ac_compile) 2>&5 13406 ac_status=$? 13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13408 test $ac_status = 0; }; then 13409 case `/usr/bin/file conftest.$ac_objext` in 13410 *ELF-32*) 13411 HPUX_IA64_MODE=32 13412 ;; 13413 *ELF-64*) 13414 HPUX_IA64_MODE=64 13415 ;; 13416 esac 13417 fi 13418 rm -rf conftest* 13419 ;; 13420*-*-irix6*) 13421 # Find out what ABI is being produced by ac_compile, and set linker 13422 # options accordingly. 13423 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13425 (eval $ac_compile) 2>&5 13426 ac_status=$? 13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13428 test $ac_status = 0; }; then 13429 if test yes = "$lt_cv_prog_gnu_ld"; then 13430 case `/usr/bin/file conftest.$ac_objext` in 13431 *32-bit*) 13432 LD="${LD-ld} -melf32bsmip" 13433 ;; 13434 *N32*) 13435 LD="${LD-ld} -melf32bmipn32" 13436 ;; 13437 *64-bit*) 13438 LD="${LD-ld} -melf64bmip" 13439 ;; 13440 esac 13441 else 13442 case `/usr/bin/file conftest.$ac_objext` in 13443 *32-bit*) 13444 LD="${LD-ld} -32" 13445 ;; 13446 *N32*) 13447 LD="${LD-ld} -n32" 13448 ;; 13449 *64-bit*) 13450 LD="${LD-ld} -64" 13451 ;; 13452 esac 13453 fi 13454 fi 13455 rm -rf conftest* 13456 ;; 13457 13458mips64*-*linux*) 13459 # Find out what ABI is being produced by ac_compile, and set linker 13460 # options accordingly. 13461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13463 (eval $ac_compile) 2>&5 13464 ac_status=$? 13465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13466 test $ac_status = 0; }; then 13467 emul=elf 13468 case `/usr/bin/file conftest.$ac_objext` in 13469 *32-bit*) 13470 emul="${emul}32" 13471 ;; 13472 *64-bit*) 13473 emul="${emul}64" 13474 ;; 13475 esac 13476 case `/usr/bin/file conftest.$ac_objext` in 13477 *MSB*) 13478 emul="${emul}btsmip" 13479 ;; 13480 *LSB*) 13481 emul="${emul}ltsmip" 13482 ;; 13483 esac 13484 case `/usr/bin/file conftest.$ac_objext` in 13485 *N32*) 13486 emul="${emul}n32" 13487 ;; 13488 esac 13489 LD="${LD-ld} -m $emul" 13490 fi 13491 rm -rf conftest* 13492 ;; 13493 13494x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13495s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13496 # Find out what ABI is being produced by ac_compile, and set linker 13497 # options accordingly. Note that the listed cases only cover the 13498 # situations where additional linker options are needed (such as when 13499 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13500 # vice versa); the common cases where no linker options are needed do 13501 # not appear in the list. 13502 echo 'int i;' > conftest.$ac_ext 13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13504 (eval $ac_compile) 2>&5 13505 ac_status=$? 13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13507 test $ac_status = 0; }; then 13508 case `/usr/bin/file conftest.o` in 13509 *32-bit*) 13510 case $host in 13511 x86_64-*kfreebsd*-gnu) 13512 LD="${LD-ld} -m elf_i386_fbsd" 13513 ;; 13514 x86_64-*linux*) 13515 case `/usr/bin/file conftest.o` in 13516 *x86-64*) 13517 LD="${LD-ld} -m elf32_x86_64" 13518 ;; 13519 *) 13520 LD="${LD-ld} -m elf_i386" 13521 ;; 13522 esac 13523 ;; 13524 powerpc64le-*linux*) 13525 LD="${LD-ld} -m elf32lppclinux" 13526 ;; 13527 powerpc64-*linux*) 13528 LD="${LD-ld} -m elf32ppclinux" 13529 ;; 13530 s390x-*linux*) 13531 LD="${LD-ld} -m elf_s390" 13532 ;; 13533 sparc64-*linux*) 13534 LD="${LD-ld} -m elf32_sparc" 13535 ;; 13536 esac 13537 ;; 13538 *64-bit*) 13539 case $host in 13540 x86_64-*kfreebsd*-gnu) 13541 LD="${LD-ld} -m elf_x86_64_fbsd" 13542 ;; 13543 x86_64-*linux*) 13544 LD="${LD-ld} -m elf_x86_64" 13545 ;; 13546 powerpcle-*linux*) 13547 LD="${LD-ld} -m elf64lppc" 13548 ;; 13549 powerpc-*linux*) 13550 LD="${LD-ld} -m elf64ppc" 13551 ;; 13552 s390*-*linux*|s390*-*tpf*) 13553 LD="${LD-ld} -m elf64_s390" 13554 ;; 13555 sparc*-*linux*) 13556 LD="${LD-ld} -m elf64_sparc" 13557 ;; 13558 esac 13559 ;; 13560 esac 13561 fi 13562 rm -rf conftest* 13563 ;; 13564 13565*-*-sco3.2v5*) 13566 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13567 SAVE_CFLAGS=$CFLAGS 13568 CFLAGS="$CFLAGS -belf" 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13570$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13571if ${lt_cv_cc_needs_belf+:} false; then : 13572 $as_echo_n "(cached) " >&6 13573else 13574 ac_ext=c 13575ac_cpp='$CPP $CPPFLAGS' 13576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13578ac_compiler_gnu=$ac_cv_c_compiler_gnu 13579 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582 13583int 13584main () 13585{ 13586 13587 ; 13588 return 0; 13589} 13590_ACEOF 13591if ac_fn_c_try_link "$LINENO"; then : 13592 lt_cv_cc_needs_belf=yes 13593else 13594 lt_cv_cc_needs_belf=no 13595fi 13596rm -f core conftest.err conftest.$ac_objext \ 13597 conftest$ac_exeext conftest.$ac_ext 13598 ac_ext=c 13599ac_cpp='$CPP $CPPFLAGS' 13600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13602ac_compiler_gnu=$ac_cv_c_compiler_gnu 13603 13604fi 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13606$as_echo "$lt_cv_cc_needs_belf" >&6; } 13607 if test yes != "$lt_cv_cc_needs_belf"; then 13608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13609 CFLAGS=$SAVE_CFLAGS 13610 fi 13611 ;; 13612*-*solaris*) 13613 # Find out what ABI is being produced by ac_compile, and set linker 13614 # options accordingly. 13615 echo 'int i;' > conftest.$ac_ext 13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13617 (eval $ac_compile) 2>&5 13618 ac_status=$? 13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13620 test $ac_status = 0; }; then 13621 case `/usr/bin/file conftest.o` in 13622 *64-bit*) 13623 case $lt_cv_prog_gnu_ld in 13624 yes*) 13625 case $host in 13626 i?86-*-solaris*|x86_64-*-solaris*) 13627 LD="${LD-ld} -m elf_x86_64" 13628 ;; 13629 sparc*-*-solaris*) 13630 LD="${LD-ld} -m elf64_sparc" 13631 ;; 13632 esac 13633 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13634 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13635 LD=${LD-ld}_sol2 13636 fi 13637 ;; 13638 *) 13639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13640 LD="${LD-ld} -64" 13641 fi 13642 ;; 13643 esac 13644 ;; 13645 esac 13646 fi 13647 rm -rf conftest* 13648 ;; 13649esac 13650 13651need_locks=$enable_libtool_lock 13652 13653if test -n "$ac_tool_prefix"; then 13654 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13655set dummy ${ac_tool_prefix}mt; ac_word=$2 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13657$as_echo_n "checking for $ac_word... " >&6; } 13658if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 if test -n "$MANIFEST_TOOL"; then 13662 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13663else 13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13665for as_dir in $PATH 13666do 13667 IFS=$as_save_IFS 13668 test -z "$as_dir" && as_dir=. 13669 for ac_exec_ext in '' $ac_executable_extensions; do 13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13671 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13673 break 2 13674 fi 13675done 13676 done 13677IFS=$as_save_IFS 13678 13679fi 13680fi 13681MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13682if test -n "$MANIFEST_TOOL"; then 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13684$as_echo "$MANIFEST_TOOL" >&6; } 13685else 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13687$as_echo "no" >&6; } 13688fi 13689 13690 13691fi 13692if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13693 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13694 # Extract the first word of "mt", so it can be a program name with args. 13695set dummy mt; ac_word=$2 13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13697$as_echo_n "checking for $ac_word... " >&6; } 13698if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13699 $as_echo_n "(cached) " >&6 13700else 13701 if test -n "$ac_ct_MANIFEST_TOOL"; then 13702 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13703else 13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13705for as_dir in $PATH 13706do 13707 IFS=$as_save_IFS 13708 test -z "$as_dir" && as_dir=. 13709 for ac_exec_ext in '' $ac_executable_extensions; do 13710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13711 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13713 break 2 13714 fi 13715done 13716 done 13717IFS=$as_save_IFS 13718 13719fi 13720fi 13721ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13722if test -n "$ac_ct_MANIFEST_TOOL"; then 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13724$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13725else 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13727$as_echo "no" >&6; } 13728fi 13729 13730 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13731 MANIFEST_TOOL=":" 13732 else 13733 case $cross_compiling:$ac_tool_warned in 13734yes:) 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13737ac_tool_warned=yes ;; 13738esac 13739 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13740 fi 13741else 13742 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13743fi 13744 13745test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13747$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13748if ${lt_cv_path_mainfest_tool+:} false; then : 13749 $as_echo_n "(cached) " >&6 13750else 13751 lt_cv_path_mainfest_tool=no 13752 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13753 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13754 cat conftest.err >&5 13755 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13756 lt_cv_path_mainfest_tool=yes 13757 fi 13758 rm -f conftest* 13759fi 13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13761$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13762if test yes != "$lt_cv_path_mainfest_tool"; then 13763 MANIFEST_TOOL=: 13764fi 13765 13766 13767 13768 13769 13770 13771 case $host_os in 13772 rhapsody* | darwin*) 13773 if test -n "$ac_tool_prefix"; then 13774 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13775set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13777$as_echo_n "checking for $ac_word... " >&6; } 13778if ${ac_cv_prog_DSYMUTIL+:} false; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 if test -n "$DSYMUTIL"; then 13782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13783else 13784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13785for as_dir in $PATH 13786do 13787 IFS=$as_save_IFS 13788 test -z "$as_dir" && as_dir=. 13789 for ac_exec_ext in '' $ac_executable_extensions; do 13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13793 break 2 13794 fi 13795done 13796 done 13797IFS=$as_save_IFS 13798 13799fi 13800fi 13801DSYMUTIL=$ac_cv_prog_DSYMUTIL 13802if test -n "$DSYMUTIL"; then 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13804$as_echo "$DSYMUTIL" >&6; } 13805else 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13807$as_echo "no" >&6; } 13808fi 13809 13810 13811fi 13812if test -z "$ac_cv_prog_DSYMUTIL"; then 13813 ac_ct_DSYMUTIL=$DSYMUTIL 13814 # Extract the first word of "dsymutil", so it can be a program name with args. 13815set dummy dsymutil; ac_word=$2 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13817$as_echo_n "checking for $ac_word... " >&6; } 13818if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 if test -n "$ac_ct_DSYMUTIL"; then 13822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13823else 13824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13825for as_dir in $PATH 13826do 13827 IFS=$as_save_IFS 13828 test -z "$as_dir" && as_dir=. 13829 for ac_exec_ext in '' $ac_executable_extensions; do 13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13833 break 2 13834 fi 13835done 13836 done 13837IFS=$as_save_IFS 13838 13839fi 13840fi 13841ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13842if test -n "$ac_ct_DSYMUTIL"; then 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13844$as_echo "$ac_ct_DSYMUTIL" >&6; } 13845else 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13847$as_echo "no" >&6; } 13848fi 13849 13850 if test "x$ac_ct_DSYMUTIL" = x; then 13851 DSYMUTIL=":" 13852 else 13853 case $cross_compiling:$ac_tool_warned in 13854yes:) 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13857ac_tool_warned=yes ;; 13858esac 13859 DSYMUTIL=$ac_ct_DSYMUTIL 13860 fi 13861else 13862 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13863fi 13864 13865 if test -n "$ac_tool_prefix"; then 13866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13867set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13869$as_echo_n "checking for $ac_word... " >&6; } 13870if ${ac_cv_prog_NMEDIT+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 if test -n "$NMEDIT"; then 13874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13875else 13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13877for as_dir in $PATH 13878do 13879 IFS=$as_save_IFS 13880 test -z "$as_dir" && as_dir=. 13881 for ac_exec_ext in '' $ac_executable_extensions; do 13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13885 break 2 13886 fi 13887done 13888 done 13889IFS=$as_save_IFS 13890 13891fi 13892fi 13893NMEDIT=$ac_cv_prog_NMEDIT 13894if test -n "$NMEDIT"; then 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13896$as_echo "$NMEDIT" >&6; } 13897else 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13899$as_echo "no" >&6; } 13900fi 13901 13902 13903fi 13904if test -z "$ac_cv_prog_NMEDIT"; then 13905 ac_ct_NMEDIT=$NMEDIT 13906 # Extract the first word of "nmedit", so it can be a program name with args. 13907set dummy nmedit; ac_word=$2 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13909$as_echo_n "checking for $ac_word... " >&6; } 13910if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 if test -n "$ac_ct_NMEDIT"; then 13914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13915else 13916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13917for as_dir in $PATH 13918do 13919 IFS=$as_save_IFS 13920 test -z "$as_dir" && as_dir=. 13921 for ac_exec_ext in '' $ac_executable_extensions; do 13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13923 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13925 break 2 13926 fi 13927done 13928 done 13929IFS=$as_save_IFS 13930 13931fi 13932fi 13933ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13934if test -n "$ac_ct_NMEDIT"; then 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13936$as_echo "$ac_ct_NMEDIT" >&6; } 13937else 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13939$as_echo "no" >&6; } 13940fi 13941 13942 if test "x$ac_ct_NMEDIT" = x; then 13943 NMEDIT=":" 13944 else 13945 case $cross_compiling:$ac_tool_warned in 13946yes:) 13947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13949ac_tool_warned=yes ;; 13950esac 13951 NMEDIT=$ac_ct_NMEDIT 13952 fi 13953else 13954 NMEDIT="$ac_cv_prog_NMEDIT" 13955fi 13956 13957 if test -n "$ac_tool_prefix"; then 13958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13959set dummy ${ac_tool_prefix}lipo; ac_word=$2 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13961$as_echo_n "checking for $ac_word... " >&6; } 13962if ${ac_cv_prog_LIPO+:} false; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 if test -n "$LIPO"; then 13966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13967else 13968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13969for as_dir in $PATH 13970do 13971 IFS=$as_save_IFS 13972 test -z "$as_dir" && as_dir=. 13973 for ac_exec_ext in '' $ac_executable_extensions; do 13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13977 break 2 13978 fi 13979done 13980 done 13981IFS=$as_save_IFS 13982 13983fi 13984fi 13985LIPO=$ac_cv_prog_LIPO 13986if test -n "$LIPO"; then 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13988$as_echo "$LIPO" >&6; } 13989else 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13991$as_echo "no" >&6; } 13992fi 13993 13994 13995fi 13996if test -z "$ac_cv_prog_LIPO"; then 13997 ac_ct_LIPO=$LIPO 13998 # Extract the first word of "lipo", so it can be a program name with args. 13999set dummy lipo; ac_word=$2 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14001$as_echo_n "checking for $ac_word... " >&6; } 14002if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 if test -n "$ac_ct_LIPO"; then 14006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14007else 14008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14009for as_dir in $PATH 14010do 14011 IFS=$as_save_IFS 14012 test -z "$as_dir" && as_dir=. 14013 for ac_exec_ext in '' $ac_executable_extensions; do 14014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14015 ac_cv_prog_ac_ct_LIPO="lipo" 14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14017 break 2 14018 fi 14019done 14020 done 14021IFS=$as_save_IFS 14022 14023fi 14024fi 14025ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14026if test -n "$ac_ct_LIPO"; then 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14028$as_echo "$ac_ct_LIPO" >&6; } 14029else 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14031$as_echo "no" >&6; } 14032fi 14033 14034 if test "x$ac_ct_LIPO" = x; then 14035 LIPO=":" 14036 else 14037 case $cross_compiling:$ac_tool_warned in 14038yes:) 14039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14041ac_tool_warned=yes ;; 14042esac 14043 LIPO=$ac_ct_LIPO 14044 fi 14045else 14046 LIPO="$ac_cv_prog_LIPO" 14047fi 14048 14049 if test -n "$ac_tool_prefix"; then 14050 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14051set dummy ${ac_tool_prefix}otool; ac_word=$2 14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14053$as_echo_n "checking for $ac_word... " >&6; } 14054if ${ac_cv_prog_OTOOL+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 if test -n "$OTOOL"; then 14058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14059else 14060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14061for as_dir in $PATH 14062do 14063 IFS=$as_save_IFS 14064 test -z "$as_dir" && as_dir=. 14065 for ac_exec_ext in '' $ac_executable_extensions; do 14066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14069 break 2 14070 fi 14071done 14072 done 14073IFS=$as_save_IFS 14074 14075fi 14076fi 14077OTOOL=$ac_cv_prog_OTOOL 14078if test -n "$OTOOL"; then 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14080$as_echo "$OTOOL" >&6; } 14081else 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14083$as_echo "no" >&6; } 14084fi 14085 14086 14087fi 14088if test -z "$ac_cv_prog_OTOOL"; then 14089 ac_ct_OTOOL=$OTOOL 14090 # Extract the first word of "otool", so it can be a program name with args. 14091set dummy otool; ac_word=$2 14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14093$as_echo_n "checking for $ac_word... " >&6; } 14094if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 if test -n "$ac_ct_OTOOL"; then 14098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14099else 14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14101for as_dir in $PATH 14102do 14103 IFS=$as_save_IFS 14104 test -z "$as_dir" && as_dir=. 14105 for ac_exec_ext in '' $ac_executable_extensions; do 14106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14107 ac_cv_prog_ac_ct_OTOOL="otool" 14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14109 break 2 14110 fi 14111done 14112 done 14113IFS=$as_save_IFS 14114 14115fi 14116fi 14117ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14118if test -n "$ac_ct_OTOOL"; then 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14120$as_echo "$ac_ct_OTOOL" >&6; } 14121else 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14123$as_echo "no" >&6; } 14124fi 14125 14126 if test "x$ac_ct_OTOOL" = x; then 14127 OTOOL=":" 14128 else 14129 case $cross_compiling:$ac_tool_warned in 14130yes:) 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14133ac_tool_warned=yes ;; 14134esac 14135 OTOOL=$ac_ct_OTOOL 14136 fi 14137else 14138 OTOOL="$ac_cv_prog_OTOOL" 14139fi 14140 14141 if test -n "$ac_tool_prefix"; then 14142 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14143set dummy ${ac_tool_prefix}otool64; ac_word=$2 14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14145$as_echo_n "checking for $ac_word... " >&6; } 14146if ${ac_cv_prog_OTOOL64+:} false; then : 14147 $as_echo_n "(cached) " >&6 14148else 14149 if test -n "$OTOOL64"; then 14150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14151else 14152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14153for as_dir in $PATH 14154do 14155 IFS=$as_save_IFS 14156 test -z "$as_dir" && as_dir=. 14157 for ac_exec_ext in '' $ac_executable_extensions; do 14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14161 break 2 14162 fi 14163done 14164 done 14165IFS=$as_save_IFS 14166 14167fi 14168fi 14169OTOOL64=$ac_cv_prog_OTOOL64 14170if test -n "$OTOOL64"; then 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14172$as_echo "$OTOOL64" >&6; } 14173else 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14175$as_echo "no" >&6; } 14176fi 14177 14178 14179fi 14180if test -z "$ac_cv_prog_OTOOL64"; then 14181 ac_ct_OTOOL64=$OTOOL64 14182 # Extract the first word of "otool64", so it can be a program name with args. 14183set dummy otool64; ac_word=$2 14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14185$as_echo_n "checking for $ac_word... " >&6; } 14186if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14187 $as_echo_n "(cached) " >&6 14188else 14189 if test -n "$ac_ct_OTOOL64"; then 14190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14191else 14192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14193for as_dir in $PATH 14194do 14195 IFS=$as_save_IFS 14196 test -z "$as_dir" && as_dir=. 14197 for ac_exec_ext in '' $ac_executable_extensions; do 14198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14199 ac_cv_prog_ac_ct_OTOOL64="otool64" 14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14201 break 2 14202 fi 14203done 14204 done 14205IFS=$as_save_IFS 14206 14207fi 14208fi 14209ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14210if test -n "$ac_ct_OTOOL64"; then 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14212$as_echo "$ac_ct_OTOOL64" >&6; } 14213else 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14215$as_echo "no" >&6; } 14216fi 14217 14218 if test "x$ac_ct_OTOOL64" = x; then 14219 OTOOL64=":" 14220 else 14221 case $cross_compiling:$ac_tool_warned in 14222yes:) 14223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14225ac_tool_warned=yes ;; 14226esac 14227 OTOOL64=$ac_ct_OTOOL64 14228 fi 14229else 14230 OTOOL64="$ac_cv_prog_OTOOL64" 14231fi 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14260$as_echo_n "checking for -single_module linker flag... " >&6; } 14261if ${lt_cv_apple_cc_single_mod+:} false; then : 14262 $as_echo_n "(cached) " >&6 14263else 14264 lt_cv_apple_cc_single_mod=no 14265 if test -z "$LT_MULTI_MODULE"; then 14266 # By default we will add the -single_module flag. You can override 14267 # by either setting the environment variable LT_MULTI_MODULE 14268 # non-empty at configure time, or by adding -multi_module to the 14269 # link flags. 14270 rm -rf libconftest.dylib* 14271 echo "int foo(void){return 1;}" > conftest.c 14272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14273-dynamiclib -Wl,-single_module conftest.c" >&5 14274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14276 _lt_result=$? 14277 # If there is a non-empty error log, and "single_module" 14278 # appears in it, assume the flag caused a linker warning 14279 if test -s conftest.err && $GREP single_module conftest.err; then 14280 cat conftest.err >&5 14281 # Otherwise, if the output was created with a 0 exit code from 14282 # the compiler, it worked. 14283 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14284 lt_cv_apple_cc_single_mod=yes 14285 else 14286 cat conftest.err >&5 14287 fi 14288 rm -rf libconftest.dylib* 14289 rm -f conftest.* 14290 fi 14291fi 14292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14293$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14294 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14296$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14297if ${lt_cv_ld_exported_symbols_list+:} false; then : 14298 $as_echo_n "(cached) " >&6 14299else 14300 lt_cv_ld_exported_symbols_list=no 14301 save_LDFLAGS=$LDFLAGS 14302 echo "_main" > conftest.sym 14303 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306 14307int 14308main () 14309{ 14310 14311 ; 14312 return 0; 14313} 14314_ACEOF 14315if ac_fn_c_try_link "$LINENO"; then : 14316 lt_cv_ld_exported_symbols_list=yes 14317else 14318 lt_cv_ld_exported_symbols_list=no 14319fi 14320rm -f core conftest.err conftest.$ac_objext \ 14321 conftest$ac_exeext conftest.$ac_ext 14322 LDFLAGS=$save_LDFLAGS 14323 14324fi 14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14326$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14327 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14329$as_echo_n "checking for -force_load linker flag... " >&6; } 14330if ${lt_cv_ld_force_load+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 lt_cv_ld_force_load=no 14334 cat > conftest.c << _LT_EOF 14335int forced_loaded() { return 2;} 14336_LT_EOF 14337 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14338 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14339 echo "$AR cru libconftest.a conftest.o" >&5 14340 $AR cru libconftest.a conftest.o 2>&5 14341 echo "$RANLIB libconftest.a" >&5 14342 $RANLIB libconftest.a 2>&5 14343 cat > conftest.c << _LT_EOF 14344int main() { return 0;} 14345_LT_EOF 14346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14348 _lt_result=$? 14349 if test -s conftest.err && $GREP force_load conftest.err; then 14350 cat conftest.err >&5 14351 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14352 lt_cv_ld_force_load=yes 14353 else 14354 cat conftest.err >&5 14355 fi 14356 rm -f conftest.err libconftest.a conftest conftest.c 14357 rm -rf conftest.dSYM 14358 14359fi 14360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14361$as_echo "$lt_cv_ld_force_load" >&6; } 14362 case $host_os in 14363 rhapsody* | darwin1.[012]) 14364 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14365 darwin1.*) 14366 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14367 darwin*) # darwin 5.x on 14368 # if running on 10.5 or later, the deployment target defaults 14369 # to the OS version, if on x86, and 10.4, the deployment 14370 # target defaults to 10.4. Don't you love it? 14371 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14372 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14373 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14374 10.[012][,.]*) 14375 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14376 10.*) 14377 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14378 esac 14379 ;; 14380 esac 14381 if test yes = "$lt_cv_apple_cc_single_mod"; then 14382 _lt_dar_single_mod='$single_module' 14383 fi 14384 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14385 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14386 else 14387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14388 fi 14389 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14390 _lt_dsymutil='~$DSYMUTIL $lib || :' 14391 else 14392 _lt_dsymutil= 14393 fi 14394 ;; 14395 esac 14396 14397# func_munge_path_list VARIABLE PATH 14398# ----------------------------------- 14399# VARIABLE is name of variable containing _space_ separated list of 14400# directories to be munged by the contents of PATH, which is string 14401# having a format: 14402# "DIR[:DIR]:" 14403# string "DIR[ DIR]" will be prepended to VARIABLE 14404# ":DIR[:DIR]" 14405# string "DIR[ DIR]" will be appended to VARIABLE 14406# "DIRP[:DIRP]::[DIRA:]DIRA" 14407# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14408# "DIRA[ DIRA]" will be appended to VARIABLE 14409# "DIR[:DIR]" 14410# VARIABLE will be replaced by "DIR[ DIR]" 14411func_munge_path_list () 14412{ 14413 case x$2 in 14414 x) 14415 ;; 14416 *:) 14417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14418 ;; 14419 x:*) 14420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14421 ;; 14422 *::*) 14423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14425 ;; 14426 *) 14427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14428 ;; 14429 esac 14430} 14431 14432for ac_header in dlfcn.h 14433do : 14434 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14435" 14436if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14437 cat >>confdefs.h <<_ACEOF 14438#define HAVE_DLFCN_H 1 14439_ACEOF 14440 14441fi 14442 14443done 14444 14445 14446 14447 14448 14449# Set options 14450 14451 14452 14453 enable_dlopen=no 14454 14455 14456 enable_win32_dll=no 14457 14458 14459 # Check whether --enable-shared was given. 14460if test "${enable_shared+set}" = set; then : 14461 enableval=$enable_shared; p=${PACKAGE-default} 14462 case $enableval in 14463 yes) enable_shared=yes ;; 14464 no) enable_shared=no ;; 14465 *) 14466 enable_shared=no 14467 # Look at the argument we got. We use all the common list separators. 14468 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14469 for pkg in $enableval; do 14470 IFS=$lt_save_ifs 14471 if test "X$pkg" = "X$p"; then 14472 enable_shared=yes 14473 fi 14474 done 14475 IFS=$lt_save_ifs 14476 ;; 14477 esac 14478else 14479 enable_shared=yes 14480fi 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492# Check whether --with-pic was given. 14493if test "${with_pic+set}" = set; then : 14494 withval=$with_pic; lt_p=${PACKAGE-default} 14495 case $withval in 14496 yes|no) pic_mode=$withval ;; 14497 *) 14498 pic_mode=default 14499 # Look at the argument we got. We use all the common list separators. 14500 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14501 for lt_pkg in $withval; do 14502 IFS=$lt_save_ifs 14503 if test "X$lt_pkg" = "X$lt_p"; then 14504 pic_mode=yes 14505 fi 14506 done 14507 IFS=$lt_save_ifs 14508 ;; 14509 esac 14510else 14511 pic_mode=default 14512fi 14513 14514 14515 14516 14517 14518 14519 14520 14521 # Check whether --enable-fast-install was given. 14522if test "${enable_fast_install+set}" = set; then : 14523 enableval=$enable_fast_install; p=${PACKAGE-default} 14524 case $enableval in 14525 yes) enable_fast_install=yes ;; 14526 no) enable_fast_install=no ;; 14527 *) 14528 enable_fast_install=no 14529 # Look at the argument we got. We use all the common list separators. 14530 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14531 for pkg in $enableval; do 14532 IFS=$lt_save_ifs 14533 if test "X$pkg" = "X$p"; then 14534 enable_fast_install=yes 14535 fi 14536 done 14537 IFS=$lt_save_ifs 14538 ;; 14539 esac 14540else 14541 enable_fast_install=yes 14542fi 14543 14544 14545 14546 14547 14548 14549 14550 14551 shared_archive_member_spec= 14552case $host,$enable_shared in 14553power*-*-aix[5-9]*,yes) 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14555$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14556 14557# Check whether --with-aix-soname was given. 14558if test "${with_aix_soname+set}" = set; then : 14559 withval=$with_aix_soname; case $withval in 14560 aix|svr4|both) 14561 ;; 14562 *) 14563 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14564 ;; 14565 esac 14566 lt_cv_with_aix_soname=$with_aix_soname 14567else 14568 if ${lt_cv_with_aix_soname+:} false; then : 14569 $as_echo_n "(cached) " >&6 14570else 14571 lt_cv_with_aix_soname=aix 14572fi 14573 14574 with_aix_soname=$lt_cv_with_aix_soname 14575fi 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14578$as_echo "$with_aix_soname" >&6; } 14579 if test aix != "$with_aix_soname"; then 14580 # For the AIX way of multilib, we name the shared archive member 14581 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14582 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14583 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14584 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14585 if test 64 = "${OBJECT_MODE-32}"; then 14586 shared_archive_member_spec=shr_64 14587 else 14588 shared_archive_member_spec=shr 14589 fi 14590 fi 14591 ;; 14592*) 14593 with_aix_soname=aix 14594 ;; 14595esac 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606# This can be used to rebuild libtool when needed 14607LIBTOOL_DEPS=$ltmain 14608 14609# Always use our own libtool. 14610LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641test -z "$LN_S" && LN_S="ln -s" 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656if test -n "${ZSH_VERSION+set}"; then 14657 setopt NO_GLOB_SUBST 14658fi 14659 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14661$as_echo_n "checking for objdir... " >&6; } 14662if ${lt_cv_objdir+:} false; then : 14663 $as_echo_n "(cached) " >&6 14664else 14665 rm -f .libs 2>/dev/null 14666mkdir .libs 2>/dev/null 14667if test -d .libs; then 14668 lt_cv_objdir=.libs 14669else 14670 # MS-DOS does not allow filenames that begin with a dot. 14671 lt_cv_objdir=_libs 14672fi 14673rmdir .libs 2>/dev/null 14674fi 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14676$as_echo "$lt_cv_objdir" >&6; } 14677objdir=$lt_cv_objdir 14678 14679 14680 14681 14682 14683cat >>confdefs.h <<_ACEOF 14684#define LT_OBJDIR "$lt_cv_objdir/" 14685_ACEOF 14686 14687 14688 14689 14690case $host_os in 14691aix3*) 14692 # AIX sometimes has problems with the GCC collect2 program. For some 14693 # reason, if we set the COLLECT_NAMES environment variable, the problems 14694 # vanish in a puff of smoke. 14695 if test set != "${COLLECT_NAMES+set}"; then 14696 COLLECT_NAMES= 14697 export COLLECT_NAMES 14698 fi 14699 ;; 14700esac 14701 14702# Global variables: 14703ofile=libtool 14704can_build_shared=yes 14705 14706# All known linkers require a '.a' archive for static linking (except MSVC, 14707# which needs '.lib'). 14708libext=a 14709 14710with_gnu_ld=$lt_cv_prog_gnu_ld 14711 14712old_CC=$CC 14713old_CFLAGS=$CFLAGS 14714 14715# Set sane defaults for various variables 14716test -z "$CC" && CC=cc 14717test -z "$LTCC" && LTCC=$CC 14718test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14719test -z "$LD" && LD=ld 14720test -z "$ac_objext" && ac_objext=o 14721 14722func_cc_basename $compiler 14723cc_basename=$func_cc_basename_result 14724 14725 14726# Only perform the check for file, if the check method requires it 14727test -z "$MAGIC_CMD" && MAGIC_CMD=file 14728case $deplibs_check_method in 14729file_magic*) 14730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14732$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14733if ${lt_cv_path_MAGIC_CMD+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 case $MAGIC_CMD in 14737[\\/*] | ?:[\\/]*) 14738 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14739 ;; 14740*) 14741 lt_save_MAGIC_CMD=$MAGIC_CMD 14742 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14744 for ac_dir in $ac_dummy; do 14745 IFS=$lt_save_ifs 14746 test -z "$ac_dir" && ac_dir=. 14747 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14748 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14749 if test -n "$file_magic_test_file"; then 14750 case $deplibs_check_method in 14751 "file_magic "*) 14752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14753 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14755 $EGREP "$file_magic_regex" > /dev/null; then 14756 : 14757 else 14758 cat <<_LT_EOF 1>&2 14759 14760*** Warning: the command libtool uses to detect shared libraries, 14761*** $file_magic_cmd, produces output that libtool cannot recognize. 14762*** The result is that libtool may fail to recognize shared libraries 14763*** as such. This will affect the creation of libtool libraries that 14764*** depend on shared libraries, but programs linked with such libtool 14765*** libraries will work regardless of this problem. Nevertheless, you 14766*** may want to report the problem to your system manager and/or to 14767*** bug-libtool@gnu.org 14768 14769_LT_EOF 14770 fi ;; 14771 esac 14772 fi 14773 break 14774 fi 14775 done 14776 IFS=$lt_save_ifs 14777 MAGIC_CMD=$lt_save_MAGIC_CMD 14778 ;; 14779esac 14780fi 14781 14782MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14783if test -n "$MAGIC_CMD"; then 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14785$as_echo "$MAGIC_CMD" >&6; } 14786else 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14788$as_echo "no" >&6; } 14789fi 14790 14791 14792 14793 14794 14795if test -z "$lt_cv_path_MAGIC_CMD"; then 14796 if test -n "$ac_tool_prefix"; then 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14798$as_echo_n "checking for file... " >&6; } 14799if ${lt_cv_path_MAGIC_CMD+:} false; then : 14800 $as_echo_n "(cached) " >&6 14801else 14802 case $MAGIC_CMD in 14803[\\/*] | ?:[\\/]*) 14804 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14805 ;; 14806*) 14807 lt_save_MAGIC_CMD=$MAGIC_CMD 14808 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14810 for ac_dir in $ac_dummy; do 14811 IFS=$lt_save_ifs 14812 test -z "$ac_dir" && ac_dir=. 14813 if test -f "$ac_dir/file"; then 14814 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14815 if test -n "$file_magic_test_file"; then 14816 case $deplibs_check_method in 14817 "file_magic "*) 14818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14819 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14821 $EGREP "$file_magic_regex" > /dev/null; then 14822 : 14823 else 14824 cat <<_LT_EOF 1>&2 14825 14826*** Warning: the command libtool uses to detect shared libraries, 14827*** $file_magic_cmd, produces output that libtool cannot recognize. 14828*** The result is that libtool may fail to recognize shared libraries 14829*** as such. This will affect the creation of libtool libraries that 14830*** depend on shared libraries, but programs linked with such libtool 14831*** libraries will work regardless of this problem. Nevertheless, you 14832*** may want to report the problem to your system manager and/or to 14833*** bug-libtool@gnu.org 14834 14835_LT_EOF 14836 fi ;; 14837 esac 14838 fi 14839 break 14840 fi 14841 done 14842 IFS=$lt_save_ifs 14843 MAGIC_CMD=$lt_save_MAGIC_CMD 14844 ;; 14845esac 14846fi 14847 14848MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14849if test -n "$MAGIC_CMD"; then 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14851$as_echo "$MAGIC_CMD" >&6; } 14852else 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14854$as_echo "no" >&6; } 14855fi 14856 14857 14858 else 14859 MAGIC_CMD=: 14860 fi 14861fi 14862 14863 fi 14864 ;; 14865esac 14866 14867# Use C for the default configuration in the libtool script 14868 14869lt_save_CC=$CC 14870ac_ext=c 14871ac_cpp='$CPP $CPPFLAGS' 14872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14874ac_compiler_gnu=$ac_cv_c_compiler_gnu 14875 14876 14877# Source file extension for C test sources. 14878ac_ext=c 14879 14880# Object file extension for compiled C test sources. 14881objext=o 14882objext=$objext 14883 14884# Code to be used in simple compile tests 14885lt_simple_compile_test_code="int some_variable = 0;" 14886 14887# Code to be used in simple link tests 14888lt_simple_link_test_code='int main(){return(0);}' 14889 14890 14891 14892 14893 14894 14895 14896# If no C compiler was specified, use CC. 14897LTCC=${LTCC-"$CC"} 14898 14899# If no C compiler flags were specified, use CFLAGS. 14900LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14901 14902# Allow CC to be a program name with arguments. 14903compiler=$CC 14904 14905# Save the default compiler, since it gets overwritten when the other 14906# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14907compiler_DEFAULT=$CC 14908 14909# save warnings/boilerplate of simple test code 14910ac_outfile=conftest.$ac_objext 14911echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14913_lt_compiler_boilerplate=`cat conftest.err` 14914$RM conftest* 14915 14916ac_outfile=conftest.$ac_objext 14917echo "$lt_simple_link_test_code" >conftest.$ac_ext 14918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14919_lt_linker_boilerplate=`cat conftest.err` 14920$RM -r conftest* 14921 14922 14923if test -n "$compiler"; then 14924 14925lt_prog_compiler_no_builtin_flag= 14926 14927if test yes = "$GCC"; then 14928 case $cc_basename in 14929 nvcc*) 14930 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14931 *) 14932 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14933 esac 14934 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14936$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14937if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 lt_cv_prog_compiler_rtti_exceptions=no 14941 ac_outfile=conftest.$ac_objext 14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14943 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14944 # Insert the option either (1) after the last *FLAGS variable, or 14945 # (2) before a word containing "conftest.", or (3) at the end. 14946 # Note that $ac_compile itself does not contain backslashes and begins 14947 # with a dollar sign (not a hyphen), so the echo should work correctly. 14948 # The option is referenced via a variable to avoid confusing sed. 14949 lt_compile=`echo "$ac_compile" | $SED \ 14950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14952 -e 's:$: $lt_compiler_flag:'` 14953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14954 (eval "$lt_compile" 2>conftest.err) 14955 ac_status=$? 14956 cat conftest.err >&5 14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14958 if (exit $ac_status) && test -s "$ac_outfile"; then 14959 # The compiler can only warn and ignore the option if not recognized 14960 # So say no if there are warnings other than the usual output. 14961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14964 lt_cv_prog_compiler_rtti_exceptions=yes 14965 fi 14966 fi 14967 $RM conftest* 14968 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14971$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14972 14973if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14974 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14975else 14976 : 14977fi 14978 14979fi 14980 14981 14982 14983 14984 14985 14986 lt_prog_compiler_wl= 14987lt_prog_compiler_pic= 14988lt_prog_compiler_static= 14989 14990 14991 if test yes = "$GCC"; then 14992 lt_prog_compiler_wl='-Wl,' 14993 lt_prog_compiler_static='-static' 14994 14995 case $host_os in 14996 aix*) 14997 # All AIX code is PIC. 14998 if test ia64 = "$host_cpu"; then 14999 # AIX 5 now supports IA64 processor 15000 lt_prog_compiler_static='-Bstatic' 15001 fi 15002 lt_prog_compiler_pic='-fPIC' 15003 ;; 15004 15005 amigaos*) 15006 case $host_cpu in 15007 powerpc) 15008 # see comment about AmigaOS4 .so support 15009 lt_prog_compiler_pic='-fPIC' 15010 ;; 15011 m68k) 15012 # FIXME: we need at least 68020 code to build shared libraries, but 15013 # adding the '-m68020' flag to GCC prevents building anything better, 15014 # like '-m68040'. 15015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15016 ;; 15017 esac 15018 ;; 15019 15020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15021 # PIC is the default for these OSes. 15022 ;; 15023 15024 mingw* | cygwin* | pw32* | os2* | cegcc*) 15025 # This hack is so that the source file can tell whether it is being 15026 # built for inclusion in a dll (and should export symbols for example). 15027 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15028 # (--disable-auto-import) libraries 15029 lt_prog_compiler_pic='-DDLL_EXPORT' 15030 case $host_os in 15031 os2*) 15032 lt_prog_compiler_static='$wl-static' 15033 ;; 15034 esac 15035 ;; 15036 15037 darwin* | rhapsody*) 15038 # PIC is the default on this platform 15039 # Common symbols not allowed in MH_DYLIB files 15040 lt_prog_compiler_pic='-fno-common' 15041 ;; 15042 15043 haiku*) 15044 # PIC is the default for Haiku. 15045 # The "-static" flag exists, but is broken. 15046 lt_prog_compiler_static= 15047 ;; 15048 15049 hpux*) 15050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15052 # sets the default TLS model and affects inlining. 15053 case $host_cpu in 15054 hppa*64*) 15055 # +Z the default 15056 ;; 15057 *) 15058 lt_prog_compiler_pic='-fPIC' 15059 ;; 15060 esac 15061 ;; 15062 15063 interix[3-9]*) 15064 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15065 # Instead, we relocate shared libraries at runtime. 15066 ;; 15067 15068 msdosdjgpp*) 15069 # Just because we use GCC doesn't mean we suddenly get shared libraries 15070 # on systems that don't support them. 15071 lt_prog_compiler_can_build_shared=no 15072 enable_shared=no 15073 ;; 15074 15075 *nto* | *qnx*) 15076 # QNX uses GNU C++, but need to define -shared option too, otherwise 15077 # it will coredump. 15078 lt_prog_compiler_pic='-fPIC -shared' 15079 ;; 15080 15081 sysv4*MP*) 15082 if test -d /usr/nec; then 15083 lt_prog_compiler_pic=-Kconform_pic 15084 fi 15085 ;; 15086 15087 *) 15088 lt_prog_compiler_pic='-fPIC' 15089 ;; 15090 esac 15091 15092 case $cc_basename in 15093 nvcc*) # Cuda Compiler Driver 2.2 15094 lt_prog_compiler_wl='-Xlinker ' 15095 if test -n "$lt_prog_compiler_pic"; then 15096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15097 fi 15098 ;; 15099 esac 15100 else 15101 # PORTME Check for flag to pass linker flags through the system compiler. 15102 case $host_os in 15103 aix*) 15104 lt_prog_compiler_wl='-Wl,' 15105 if test ia64 = "$host_cpu"; then 15106 # AIX 5 now supports IA64 processor 15107 lt_prog_compiler_static='-Bstatic' 15108 else 15109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15110 fi 15111 ;; 15112 15113 darwin* | rhapsody*) 15114 # PIC is the default on this platform 15115 # Common symbols not allowed in MH_DYLIB files 15116 lt_prog_compiler_pic='-fno-common' 15117 case $cc_basename in 15118 nagfor*) 15119 # NAG Fortran compiler 15120 lt_prog_compiler_wl='-Wl,-Wl,,' 15121 lt_prog_compiler_pic='-PIC' 15122 lt_prog_compiler_static='-Bstatic' 15123 ;; 15124 esac 15125 ;; 15126 15127 mingw* | cygwin* | pw32* | os2* | cegcc*) 15128 # This hack is so that the source file can tell whether it is being 15129 # built for inclusion in a dll (and should export symbols for example). 15130 lt_prog_compiler_pic='-DDLL_EXPORT' 15131 case $host_os in 15132 os2*) 15133 lt_prog_compiler_static='$wl-static' 15134 ;; 15135 esac 15136 ;; 15137 15138 hpux9* | hpux10* | hpux11*) 15139 lt_prog_compiler_wl='-Wl,' 15140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15141 # not for PA HP-UX. 15142 case $host_cpu in 15143 hppa*64*|ia64*) 15144 # +Z the default 15145 ;; 15146 *) 15147 lt_prog_compiler_pic='+Z' 15148 ;; 15149 esac 15150 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15151 lt_prog_compiler_static='$wl-a ${wl}archive' 15152 ;; 15153 15154 irix5* | irix6* | nonstopux*) 15155 lt_prog_compiler_wl='-Wl,' 15156 # PIC (with -KPIC) is the default. 15157 lt_prog_compiler_static='-non_shared' 15158 ;; 15159 15160 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15161 case $cc_basename in 15162 # old Intel for x86_64, which still supported -KPIC. 15163 ecc*) 15164 lt_prog_compiler_wl='-Wl,' 15165 lt_prog_compiler_pic='-KPIC' 15166 lt_prog_compiler_static='-static' 15167 ;; 15168 # icc used to be incompatible with GCC. 15169 # ICC 10 doesn't accept -KPIC any more. 15170 icc* | ifort*) 15171 lt_prog_compiler_wl='-Wl,' 15172 lt_prog_compiler_pic='-fPIC' 15173 lt_prog_compiler_static='-static' 15174 ;; 15175 # Lahey Fortran 8.1. 15176 lf95*) 15177 lt_prog_compiler_wl='-Wl,' 15178 lt_prog_compiler_pic='--shared' 15179 lt_prog_compiler_static='--static' 15180 ;; 15181 nagfor*) 15182 # NAG Fortran compiler 15183 lt_prog_compiler_wl='-Wl,-Wl,,' 15184 lt_prog_compiler_pic='-PIC' 15185 lt_prog_compiler_static='-Bstatic' 15186 ;; 15187 tcc*) 15188 # Fabrice Bellard et al's Tiny C Compiler 15189 lt_prog_compiler_wl='-Wl,' 15190 lt_prog_compiler_pic='-fPIC' 15191 lt_prog_compiler_static='-static' 15192 ;; 15193 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15194 # Portland Group compilers (*not* the Pentium gcc compiler, 15195 # which looks to be a dead project) 15196 lt_prog_compiler_wl='-Wl,' 15197 lt_prog_compiler_pic='-fpic' 15198 lt_prog_compiler_static='-Bstatic' 15199 ;; 15200 ccc*) 15201 lt_prog_compiler_wl='-Wl,' 15202 # All Alpha code is PIC. 15203 lt_prog_compiler_static='-non_shared' 15204 ;; 15205 xl* | bgxl* | bgf* | mpixl*) 15206 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15207 lt_prog_compiler_wl='-Wl,' 15208 lt_prog_compiler_pic='-qpic' 15209 lt_prog_compiler_static='-qstaticlink' 15210 ;; 15211 *) 15212 case `$CC -V 2>&1 | sed 5q` in 15213 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15214 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15215 lt_prog_compiler_pic='-KPIC' 15216 lt_prog_compiler_static='-Bstatic' 15217 lt_prog_compiler_wl='' 15218 ;; 15219 *Sun\ F* | *Sun*Fortran*) 15220 lt_prog_compiler_pic='-KPIC' 15221 lt_prog_compiler_static='-Bstatic' 15222 lt_prog_compiler_wl='-Qoption ld ' 15223 ;; 15224 *Sun\ C*) 15225 # Sun C 5.9 15226 lt_prog_compiler_pic='-KPIC' 15227 lt_prog_compiler_static='-Bstatic' 15228 lt_prog_compiler_wl='-Wl,' 15229 ;; 15230 *Intel*\ [CF]*Compiler*) 15231 lt_prog_compiler_wl='-Wl,' 15232 lt_prog_compiler_pic='-fPIC' 15233 lt_prog_compiler_static='-static' 15234 ;; 15235 *Portland\ Group*) 15236 lt_prog_compiler_wl='-Wl,' 15237 lt_prog_compiler_pic='-fpic' 15238 lt_prog_compiler_static='-Bstatic' 15239 ;; 15240 esac 15241 ;; 15242 esac 15243 ;; 15244 15245 newsos6) 15246 lt_prog_compiler_pic='-KPIC' 15247 lt_prog_compiler_static='-Bstatic' 15248 ;; 15249 15250 *nto* | *qnx*) 15251 # QNX uses GNU C++, but need to define -shared option too, otherwise 15252 # it will coredump. 15253 lt_prog_compiler_pic='-fPIC -shared' 15254 ;; 15255 15256 osf3* | osf4* | osf5*) 15257 lt_prog_compiler_wl='-Wl,' 15258 # All OSF/1 code is PIC. 15259 lt_prog_compiler_static='-non_shared' 15260 ;; 15261 15262 rdos*) 15263 lt_prog_compiler_static='-non_shared' 15264 ;; 15265 15266 solaris*) 15267 lt_prog_compiler_pic='-KPIC' 15268 lt_prog_compiler_static='-Bstatic' 15269 case $cc_basename in 15270 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15271 lt_prog_compiler_wl='-Qoption ld ';; 15272 *) 15273 lt_prog_compiler_wl='-Wl,';; 15274 esac 15275 ;; 15276 15277 sunos4*) 15278 lt_prog_compiler_wl='-Qoption ld ' 15279 lt_prog_compiler_pic='-PIC' 15280 lt_prog_compiler_static='-Bstatic' 15281 ;; 15282 15283 sysv4 | sysv4.2uw2* | sysv4.3*) 15284 lt_prog_compiler_wl='-Wl,' 15285 lt_prog_compiler_pic='-KPIC' 15286 lt_prog_compiler_static='-Bstatic' 15287 ;; 15288 15289 sysv4*MP*) 15290 if test -d /usr/nec; then 15291 lt_prog_compiler_pic='-Kconform_pic' 15292 lt_prog_compiler_static='-Bstatic' 15293 fi 15294 ;; 15295 15296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15297 lt_prog_compiler_wl='-Wl,' 15298 lt_prog_compiler_pic='-KPIC' 15299 lt_prog_compiler_static='-Bstatic' 15300 ;; 15301 15302 unicos*) 15303 lt_prog_compiler_wl='-Wl,' 15304 lt_prog_compiler_can_build_shared=no 15305 ;; 15306 15307 uts4*) 15308 lt_prog_compiler_pic='-pic' 15309 lt_prog_compiler_static='-Bstatic' 15310 ;; 15311 15312 *) 15313 lt_prog_compiler_can_build_shared=no 15314 ;; 15315 esac 15316 fi 15317 15318case $host_os in 15319 # For platforms that do not support PIC, -DPIC is meaningless: 15320 *djgpp*) 15321 lt_prog_compiler_pic= 15322 ;; 15323 *) 15324 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15325 ;; 15326esac 15327 15328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15329$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15330if ${lt_cv_prog_compiler_pic+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15334fi 15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15336$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15337lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15338 15339# 15340# Check to make sure the PIC flag actually works. 15341# 15342if test -n "$lt_prog_compiler_pic"; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15344$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15345if ${lt_cv_prog_compiler_pic_works+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 lt_cv_prog_compiler_pic_works=no 15349 ac_outfile=conftest.$ac_objext 15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15352 # Insert the option either (1) after the last *FLAGS variable, or 15353 # (2) before a word containing "conftest.", or (3) at the end. 15354 # Note that $ac_compile itself does not contain backslashes and begins 15355 # with a dollar sign (not a hyphen), so the echo should work correctly. 15356 # The option is referenced via a variable to avoid confusing sed. 15357 lt_compile=`echo "$ac_compile" | $SED \ 15358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15360 -e 's:$: $lt_compiler_flag:'` 15361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15362 (eval "$lt_compile" 2>conftest.err) 15363 ac_status=$? 15364 cat conftest.err >&5 15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15366 if (exit $ac_status) && test -s "$ac_outfile"; then 15367 # The compiler can only warn and ignore the option if not recognized 15368 # So say no if there are warnings other than the usual output. 15369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15372 lt_cv_prog_compiler_pic_works=yes 15373 fi 15374 fi 15375 $RM conftest* 15376 15377fi 15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15379$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15380 15381if test yes = "$lt_cv_prog_compiler_pic_works"; then 15382 case $lt_prog_compiler_pic in 15383 "" | " "*) ;; 15384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15385 esac 15386else 15387 lt_prog_compiler_pic= 15388 lt_prog_compiler_can_build_shared=no 15389fi 15390 15391fi 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403# 15404# Check to make sure the static flag actually works. 15405# 15406wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15408$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15409if ${lt_cv_prog_compiler_static_works+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 lt_cv_prog_compiler_static_works=no 15413 save_LDFLAGS=$LDFLAGS 15414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15415 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15417 # The linker can only warn and ignore the option if not recognized 15418 # So say no if there are warnings 15419 if test -s conftest.err; then 15420 # Append any errors to the config.log. 15421 cat conftest.err 1>&5 15422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15424 if diff conftest.exp conftest.er2 >/dev/null; then 15425 lt_cv_prog_compiler_static_works=yes 15426 fi 15427 else 15428 lt_cv_prog_compiler_static_works=yes 15429 fi 15430 fi 15431 $RM -r conftest* 15432 LDFLAGS=$save_LDFLAGS 15433 15434fi 15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15436$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15437 15438if test yes = "$lt_cv_prog_compiler_static_works"; then 15439 : 15440else 15441 lt_prog_compiler_static= 15442fi 15443 15444 15445 15446 15447 15448 15449 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15451$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15452if ${lt_cv_prog_compiler_c_o+:} false; then : 15453 $as_echo_n "(cached) " >&6 15454else 15455 lt_cv_prog_compiler_c_o=no 15456 $RM -r conftest 2>/dev/null 15457 mkdir conftest 15458 cd conftest 15459 mkdir out 15460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15461 15462 lt_compiler_flag="-o out/conftest2.$ac_objext" 15463 # Insert the option either (1) after the last *FLAGS variable, or 15464 # (2) before a word containing "conftest.", or (3) at the end. 15465 # Note that $ac_compile itself does not contain backslashes and begins 15466 # with a dollar sign (not a hyphen), so the echo should work correctly. 15467 lt_compile=`echo "$ac_compile" | $SED \ 15468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15470 -e 's:$: $lt_compiler_flag:'` 15471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15472 (eval "$lt_compile" 2>out/conftest.err) 15473 ac_status=$? 15474 cat out/conftest.err >&5 15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15476 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15477 then 15478 # The compiler can only warn and ignore the option if not recognized 15479 # So say no if there are warnings 15480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15483 lt_cv_prog_compiler_c_o=yes 15484 fi 15485 fi 15486 chmod u+w . 2>&5 15487 $RM conftest* 15488 # SGI C++ compiler will create directory out/ii_files/ for 15489 # template instantiation 15490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15491 $RM out/* && rmdir out 15492 cd .. 15493 $RM -r conftest 15494 $RM conftest* 15495 15496fi 15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15498$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15499 15500 15501 15502 15503 15504 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15506$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15507if ${lt_cv_prog_compiler_c_o+:} false; then : 15508 $as_echo_n "(cached) " >&6 15509else 15510 lt_cv_prog_compiler_c_o=no 15511 $RM -r conftest 2>/dev/null 15512 mkdir conftest 15513 cd conftest 15514 mkdir out 15515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15516 15517 lt_compiler_flag="-o out/conftest2.$ac_objext" 15518 # Insert the option either (1) after the last *FLAGS variable, or 15519 # (2) before a word containing "conftest.", or (3) at the end. 15520 # Note that $ac_compile itself does not contain backslashes and begins 15521 # with a dollar sign (not a hyphen), so the echo should work correctly. 15522 lt_compile=`echo "$ac_compile" | $SED \ 15523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15525 -e 's:$: $lt_compiler_flag:'` 15526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15527 (eval "$lt_compile" 2>out/conftest.err) 15528 ac_status=$? 15529 cat out/conftest.err >&5 15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15531 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15532 then 15533 # The compiler can only warn and ignore the option if not recognized 15534 # So say no if there are warnings 15535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15538 lt_cv_prog_compiler_c_o=yes 15539 fi 15540 fi 15541 chmod u+w . 2>&5 15542 $RM conftest* 15543 # SGI C++ compiler will create directory out/ii_files/ for 15544 # template instantiation 15545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15546 $RM out/* && rmdir out 15547 cd .. 15548 $RM -r conftest 15549 $RM conftest* 15550 15551fi 15552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15553$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15554 15555 15556 15557 15558hard_links=nottested 15559if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15560 # do not overwrite the value of need_locks provided by the user 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15562$as_echo_n "checking if we can lock with hard links... " >&6; } 15563 hard_links=yes 15564 $RM conftest* 15565 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15566 touch conftest.a 15567 ln conftest.a conftest.b 2>&5 || hard_links=no 15568 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15570$as_echo "$hard_links" >&6; } 15571 if test no = "$hard_links"; then 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15573$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15574 need_locks=warn 15575 fi 15576else 15577 need_locks=no 15578fi 15579 15580 15581 15582 15583 15584 15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15586$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15587 15588 runpath_var= 15589 allow_undefined_flag= 15590 always_export_symbols=no 15591 archive_cmds= 15592 archive_expsym_cmds= 15593 compiler_needs_object=no 15594 enable_shared_with_static_runtimes=no 15595 export_dynamic_flag_spec= 15596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15597 hardcode_automatic=no 15598 hardcode_direct=no 15599 hardcode_direct_absolute=no 15600 hardcode_libdir_flag_spec= 15601 hardcode_libdir_separator= 15602 hardcode_minus_L=no 15603 hardcode_shlibpath_var=unsupported 15604 inherit_rpath=no 15605 link_all_deplibs=unknown 15606 module_cmds= 15607 module_expsym_cmds= 15608 old_archive_from_new_cmds= 15609 old_archive_from_expsyms_cmds= 15610 thread_safe_flag_spec= 15611 whole_archive_flag_spec= 15612 # include_expsyms should be a list of space-separated symbols to be *always* 15613 # included in the symbol list 15614 include_expsyms= 15615 # exclude_expsyms can be an extended regexp of symbols to exclude 15616 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15617 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15618 # as well as any symbol that contains 'd'. 15619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15621 # platforms (ab)use it in PIC code, but their linkers get confused if 15622 # the symbol is explicitly referenced. Since portable code cannot 15623 # rely on this symbol name, it's probably fine to never include it in 15624 # preloaded symbol tables. 15625 # Exclude shared library initialization/finalization symbols. 15626 extract_expsyms_cmds= 15627 15628 case $host_os in 15629 cygwin* | mingw* | pw32* | cegcc*) 15630 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15631 # When not using gcc, we currently assume that we are using 15632 # Microsoft Visual C++. 15633 if test yes != "$GCC"; then 15634 with_gnu_ld=no 15635 fi 15636 ;; 15637 interix*) 15638 # we just hope/assume this is gcc and not c89 (= MSVC++) 15639 with_gnu_ld=yes 15640 ;; 15641 openbsd* | bitrig*) 15642 with_gnu_ld=no 15643 ;; 15644 linux* | k*bsd*-gnu | gnu*) 15645 link_all_deplibs=no 15646 ;; 15647 esac 15648 15649 ld_shlibs=yes 15650 15651 # On some targets, GNU ld is compatible enough with the native linker 15652 # that we're better off using the native interface for both. 15653 lt_use_gnu_ld_interface=no 15654 if test yes = "$with_gnu_ld"; then 15655 case $host_os in 15656 aix*) 15657 # The AIX port of GNU ld has always aspired to compatibility 15658 # with the native linker. However, as the warning in the GNU ld 15659 # block says, versions before 2.19.5* couldn't really create working 15660 # shared libraries, regardless of the interface used. 15661 case `$LD -v 2>&1` in 15662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15663 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15664 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15665 *) 15666 lt_use_gnu_ld_interface=yes 15667 ;; 15668 esac 15669 ;; 15670 *) 15671 lt_use_gnu_ld_interface=yes 15672 ;; 15673 esac 15674 fi 15675 15676 if test yes = "$lt_use_gnu_ld_interface"; then 15677 # If archive_cmds runs LD, not CC, wlarc should be empty 15678 wlarc='$wl' 15679 15680 # Set some defaults for GNU ld with shared library support. These 15681 # are reset later if shared libraries are not supported. Putting them 15682 # here allows them to be overridden if necessary. 15683 runpath_var=LD_RUN_PATH 15684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15685 export_dynamic_flag_spec='$wl--export-dynamic' 15686 # ancient GNU ld didn't support --whole-archive et. al. 15687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15688 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15689 else 15690 whole_archive_flag_spec= 15691 fi 15692 supports_anon_versioning=no 15693 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15694 *GNU\ gold*) supports_anon_versioning=yes ;; 15695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15698 *\ 2.11.*) ;; # other 2.11 versions 15699 *) supports_anon_versioning=yes ;; 15700 esac 15701 15702 # See if GNU ld supports shared libraries. 15703 case $host_os in 15704 aix[3-9]*) 15705 # On AIX/PPC, the GNU linker is very broken 15706 if test ia64 != "$host_cpu"; then 15707 ld_shlibs=no 15708 cat <<_LT_EOF 1>&2 15709 15710*** Warning: the GNU linker, at least up to release 2.19, is reported 15711*** to be unable to reliably create shared libraries on AIX. 15712*** Therefore, libtool is disabling shared libraries support. If you 15713*** really care for shared libraries, you may want to install binutils 15714*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15715*** You will then need to restart the configuration process. 15716 15717_LT_EOF 15718 fi 15719 ;; 15720 15721 amigaos*) 15722 case $host_cpu in 15723 powerpc) 15724 # see comment about AmigaOS4 .so support 15725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15726 archive_expsym_cmds='' 15727 ;; 15728 m68k) 15729 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)' 15730 hardcode_libdir_flag_spec='-L$libdir' 15731 hardcode_minus_L=yes 15732 ;; 15733 esac 15734 ;; 15735 15736 beos*) 15737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15738 allow_undefined_flag=unsupported 15739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15740 # support --undefined. This deserves some investigation. FIXME 15741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15742 else 15743 ld_shlibs=no 15744 fi 15745 ;; 15746 15747 cygwin* | mingw* | pw32* | cegcc*) 15748 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15749 # as there is no search path for DLLs. 15750 hardcode_libdir_flag_spec='-L$libdir' 15751 export_dynamic_flag_spec='$wl--export-all-symbols' 15752 allow_undefined_flag=unsupported 15753 always_export_symbols=no 15754 enable_shared_with_static_runtimes=yes 15755 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' 15756 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15757 15758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15760 # If the export-symbols file already is a .def file, use it as 15761 # is; otherwise, prepend EXPORTS... 15762 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15763 cp $export_symbols $output_objdir/$soname.def; 15764 else 15765 echo EXPORTS > $output_objdir/$soname.def; 15766 cat $export_symbols >> $output_objdir/$soname.def; 15767 fi~ 15768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15769 else 15770 ld_shlibs=no 15771 fi 15772 ;; 15773 15774 haiku*) 15775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15776 link_all_deplibs=yes 15777 ;; 15778 15779 os2*) 15780 hardcode_libdir_flag_spec='-L$libdir' 15781 hardcode_minus_L=yes 15782 allow_undefined_flag=unsupported 15783 shrext_cmds=.dll 15784 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15787 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15788 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15789 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15790 emximp -o $lib $output_objdir/$libname.def' 15791 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15792 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15793 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15794 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15795 prefix_cmds="$SED"~ 15796 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15797 prefix_cmds="$prefix_cmds -e 1d"; 15798 fi~ 15799 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15800 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15801 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15802 emximp -o $lib $output_objdir/$libname.def' 15803 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15804 enable_shared_with_static_runtimes=yes 15805 ;; 15806 15807 interix[3-9]*) 15808 hardcode_direct=no 15809 hardcode_shlibpath_var=no 15810 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15811 export_dynamic_flag_spec='$wl-E' 15812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15813 # Instead, shared libraries are loaded at an image base (0x10000000 by 15814 # default) and relocated if they conflict, which is a slow very memory 15815 # consuming and fragmenting process. To avoid this, we pick a random, 15816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15817 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15819 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' 15820 ;; 15821 15822 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15823 tmp_diet=no 15824 if test linux-dietlibc = "$host_os"; then 15825 case $cc_basename in 15826 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15827 esac 15828 fi 15829 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15830 && test no = "$tmp_diet" 15831 then 15832 tmp_addflag=' $pic_flag' 15833 tmp_sharedflag='-shared' 15834 case $cc_basename,$host_cpu in 15835 pgcc*) # Portland Group C compiler 15836 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' 15837 tmp_addflag=' $pic_flag' 15838 ;; 15839 pgf77* | pgf90* | pgf95* | pgfortran*) 15840 # Portland Group f77 and f90 compilers 15841 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' 15842 tmp_addflag=' $pic_flag -Mnomain' ;; 15843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15844 tmp_addflag=' -i_dynamic' ;; 15845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15846 tmp_addflag=' -i_dynamic -nofor_main' ;; 15847 ifc* | ifort*) # Intel Fortran compiler 15848 tmp_addflag=' -nofor_main' ;; 15849 lf95*) # Lahey Fortran 8.1 15850 whole_archive_flag_spec= 15851 tmp_sharedflag='--shared' ;; 15852 nagfor*) # NAGFOR 5.3 15853 tmp_sharedflag='-Wl,-shared' ;; 15854 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15855 tmp_sharedflag='-qmkshrobj' 15856 tmp_addflag= ;; 15857 nvcc*) # Cuda Compiler Driver 2.2 15858 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' 15859 compiler_needs_object=yes 15860 ;; 15861 esac 15862 case `$CC -V 2>&1 | sed 5q` in 15863 *Sun\ C*) # Sun C 5.9 15864 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' 15865 compiler_needs_object=yes 15866 tmp_sharedflag='-G' ;; 15867 *Sun\ F*) # Sun Fortran 8.3 15868 tmp_sharedflag='-G' ;; 15869 esac 15870 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15871 15872 if test yes = "$supports_anon_versioning"; then 15873 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15875 echo "local: *; };" >> $output_objdir/$libname.ver~ 15876 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15877 fi 15878 15879 case $cc_basename in 15880 tcc*) 15881 export_dynamic_flag_spec='-rdynamic' 15882 ;; 15883 xlf* | bgf* | bgxlf* | mpixlf*) 15884 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15885 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15887 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15888 if test yes = "$supports_anon_versioning"; then 15889 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15891 echo "local: *; };" >> $output_objdir/$libname.ver~ 15892 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15893 fi 15894 ;; 15895 esac 15896 else 15897 ld_shlibs=no 15898 fi 15899 ;; 15900 15901 netbsd* | netbsdelf*-gnu) 15902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15903 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15904 wlarc= 15905 else 15906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15907 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15908 fi 15909 ;; 15910 15911 solaris*) 15912 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15913 ld_shlibs=no 15914 cat <<_LT_EOF 1>&2 15915 15916*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15917*** create shared libraries on Solaris systems. Therefore, libtool 15918*** is disabling shared libraries support. We urge you to upgrade GNU 15919*** binutils to release 2.9.1 or newer. Another option is to modify 15920*** your PATH or compiler configuration so that the native linker is 15921*** used, and then restart. 15922 15923_LT_EOF 15924 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15927 else 15928 ld_shlibs=no 15929 fi 15930 ;; 15931 15932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15933 case `$LD -v 2>&1` in 15934 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15935 ld_shlibs=no 15936 cat <<_LT_EOF 1>&2 15937 15938*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15939*** reliably create shared libraries on SCO systems. Therefore, libtool 15940*** is disabling shared libraries support. We urge you to upgrade GNU 15941*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15942*** your PATH or compiler configuration so that the native linker is 15943*** used, and then restart. 15944 15945_LT_EOF 15946 ;; 15947 *) 15948 # For security reasons, it is highly recommended that you always 15949 # use absolute paths for naming shared libraries, and exclude the 15950 # DT_RUNPATH tag from executables and libraries. But doing so 15951 # requires that you compile everything twice, which is a pain. 15952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15956 else 15957 ld_shlibs=no 15958 fi 15959 ;; 15960 esac 15961 ;; 15962 15963 sunos4*) 15964 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15965 wlarc= 15966 hardcode_direct=yes 15967 hardcode_shlibpath_var=no 15968 ;; 15969 15970 *) 15971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15974 else 15975 ld_shlibs=no 15976 fi 15977 ;; 15978 esac 15979 15980 if test no = "$ld_shlibs"; then 15981 runpath_var= 15982 hardcode_libdir_flag_spec= 15983 export_dynamic_flag_spec= 15984 whole_archive_flag_spec= 15985 fi 15986 else 15987 # PORTME fill in a description of your system's linker (not GNU ld) 15988 case $host_os in 15989 aix3*) 15990 allow_undefined_flag=unsupported 15991 always_export_symbols=yes 15992 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' 15993 # Note: this linker hardcodes the directories in LIBPATH if there 15994 # are no directories specified by -L. 15995 hardcode_minus_L=yes 15996 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15997 # Neither direct hardcoding nor static linking is supported with a 15998 # broken collect2. 15999 hardcode_direct=unsupported 16000 fi 16001 ;; 16002 16003 aix[4-9]*) 16004 if test ia64 = "$host_cpu"; then 16005 # On IA64, the linker does run time linking by default, so we don't 16006 # have to do anything special. 16007 aix_use_runtimelinking=no 16008 exp_sym_flag='-Bexport' 16009 no_entry_flag= 16010 else 16011 # If we're using GNU nm, then we don't want the "-C" option. 16012 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16013 # Without the "-l" option, or with the "-B" option, AIX nm treats 16014 # weak defined symbols like other global defined symbols, whereas 16015 # GNU nm marks them as "W". 16016 # While the 'weak' keyword is ignored in the Export File, we need 16017 # it in the Import File for the 'aix-soname' feature, so we have 16018 # to replace the "-B" option with "-P" for AIX nm. 16019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16020 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' 16021 else 16022 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 == "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' 16023 fi 16024 aix_use_runtimelinking=no 16025 16026 # Test if we are trying to use run time linking or normal 16027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16028 # have runtime linking enabled, and use it for executables. 16029 # For shared libraries, we enable/disable runtime linking 16030 # depending on the kind of the shared library created - 16031 # when "with_aix_soname,aix_use_runtimelinking" is: 16032 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16033 # "aix,yes" lib.so shared, rtl:yes, for executables 16034 # lib.a static archive 16035 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16036 # lib.a(lib.so.V) shared, rtl:no, for executables 16037 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16038 # lib.a(lib.so.V) shared, rtl:no 16039 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16040 # lib.a static archive 16041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16042 for ld_flag in $LDFLAGS; do 16043 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16044 aix_use_runtimelinking=yes 16045 break 16046 fi 16047 done 16048 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16049 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16050 # so we don't have lib.a shared libs to link our executables. 16051 # We have to force runtime linking in this case. 16052 aix_use_runtimelinking=yes 16053 LDFLAGS="$LDFLAGS -Wl,-brtl" 16054 fi 16055 ;; 16056 esac 16057 16058 exp_sym_flag='-bexport' 16059 no_entry_flag='-bnoentry' 16060 fi 16061 16062 # When large executables or shared objects are built, AIX ld can 16063 # have problems creating the table of contents. If linking a library 16064 # or program results in "error TOC overflow" add -mminimal-toc to 16065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16067 16068 archive_cmds='' 16069 hardcode_direct=yes 16070 hardcode_direct_absolute=yes 16071 hardcode_libdir_separator=':' 16072 link_all_deplibs=yes 16073 file_list_spec='$wl-f,' 16074 case $with_aix_soname,$aix_use_runtimelinking in 16075 aix,*) ;; # traditional, no import file 16076 svr4,* | *,yes) # use import file 16077 # The Import File defines what to hardcode. 16078 hardcode_direct=no 16079 hardcode_direct_absolute=no 16080 ;; 16081 esac 16082 16083 if test yes = "$GCC"; then 16084 case $host_os in aix4.[012]|aix4.[012].*) 16085 # We only want to do this on AIX 4.2 and lower, the check 16086 # below for broken collect2 doesn't work under 4.3+ 16087 collect2name=`$CC -print-prog-name=collect2` 16088 if test -f "$collect2name" && 16089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16090 then 16091 # We have reworked collect2 16092 : 16093 else 16094 # We have old collect2 16095 hardcode_direct=unsupported 16096 # It fails to find uninstalled libraries when the uninstalled 16097 # path is not listed in the libpath. Setting hardcode_minus_L 16098 # to unsupported forces relinking 16099 hardcode_minus_L=yes 16100 hardcode_libdir_flag_spec='-L$libdir' 16101 hardcode_libdir_separator= 16102 fi 16103 ;; 16104 esac 16105 shared_flag='-shared' 16106 if test yes = "$aix_use_runtimelinking"; then 16107 shared_flag="$shared_flag "'$wl-G' 16108 fi 16109 # Need to ensure runtime linking is disabled for the traditional 16110 # shared library, or the linker may eventually find shared libraries 16111 # /with/ Import File - we do not want to mix them. 16112 shared_flag_aix='-shared' 16113 shared_flag_svr4='-shared $wl-G' 16114 else 16115 # not using gcc 16116 if test ia64 = "$host_cpu"; then 16117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16118 # chokes on -Wl,-G. The following line is correct: 16119 shared_flag='-G' 16120 else 16121 if test yes = "$aix_use_runtimelinking"; then 16122 shared_flag='$wl-G' 16123 else 16124 shared_flag='$wl-bM:SRE' 16125 fi 16126 shared_flag_aix='$wl-bM:SRE' 16127 shared_flag_svr4='$wl-G' 16128 fi 16129 fi 16130 16131 export_dynamic_flag_spec='$wl-bexpall' 16132 # It seems that -bexpall does not export symbols beginning with 16133 # underscore (_), so it is better to generate a list of symbols to export. 16134 always_export_symbols=yes 16135 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16136 # Warning - without using the other runtime loading flags (-brtl), 16137 # -berok will link without error, but may produce a broken library. 16138 allow_undefined_flag='-berok' 16139 # Determine the default libpath from the value encoded in an 16140 # empty executable. 16141 if test set = "${lt_cv_aix_libpath+set}"; then 16142 aix_libpath=$lt_cv_aix_libpath 16143else 16144 if ${lt_cv_aix_libpath_+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146else 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149 16150int 16151main () 16152{ 16153 16154 ; 16155 return 0; 16156} 16157_ACEOF 16158if ac_fn_c_try_link "$LINENO"; then : 16159 16160 lt_aix_libpath_sed=' 16161 /Import File Strings/,/^$/ { 16162 /^0/ { 16163 s/^0 *\([^ ]*\) *$/\1/ 16164 p 16165 } 16166 }' 16167 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16168 # Check for a 64-bit object if we didn't find anything. 16169 if test -z "$lt_cv_aix_libpath_"; then 16170 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16171 fi 16172fi 16173rm -f core conftest.err conftest.$ac_objext \ 16174 conftest$ac_exeext conftest.$ac_ext 16175 if test -z "$lt_cv_aix_libpath_"; then 16176 lt_cv_aix_libpath_=/usr/lib:/lib 16177 fi 16178 16179fi 16180 16181 aix_libpath=$lt_cv_aix_libpath_ 16182fi 16183 16184 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16185 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 16186 else 16187 if test ia64 = "$host_cpu"; then 16188 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16189 allow_undefined_flag="-z nodefs" 16190 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" 16191 else 16192 # Determine the default libpath from the value encoded in an 16193 # empty executable. 16194 if test set = "${lt_cv_aix_libpath+set}"; then 16195 aix_libpath=$lt_cv_aix_libpath 16196else 16197 if ${lt_cv_aix_libpath_+:} false; then : 16198 $as_echo_n "(cached) " >&6 16199else 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201/* end confdefs.h. */ 16202 16203int 16204main () 16205{ 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_link "$LINENO"; then : 16212 16213 lt_aix_libpath_sed=' 16214 /Import File Strings/,/^$/ { 16215 /^0/ { 16216 s/^0 *\([^ ]*\) *$/\1/ 16217 p 16218 } 16219 }' 16220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16221 # Check for a 64-bit object if we didn't find anything. 16222 if test -z "$lt_cv_aix_libpath_"; then 16223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16224 fi 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228 if test -z "$lt_cv_aix_libpath_"; then 16229 lt_cv_aix_libpath_=/usr/lib:/lib 16230 fi 16231 16232fi 16233 16234 aix_libpath=$lt_cv_aix_libpath_ 16235fi 16236 16237 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16238 # Warning - without using the other run time loading flags, 16239 # -berok will link without error, but may produce a broken library. 16240 no_undefined_flag=' $wl-bernotok' 16241 allow_undefined_flag=' $wl-berok' 16242 if test yes = "$with_gnu_ld"; then 16243 # We only use this code for GNU lds that support --whole-archive. 16244 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16245 else 16246 # Exported symbols can be pulled into shared objects from archives 16247 whole_archive_flag_spec='$convenience' 16248 fi 16249 archive_cmds_need_lc=yes 16250 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16251 # -brtl affects multiple linker settings, -berok does not and is overridden later 16252 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16253 if test svr4 != "$with_aix_soname"; then 16254 # This is similar to how AIX traditionally builds its shared libraries. 16255 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' 16256 fi 16257 if test aix != "$with_aix_soname"; then 16258 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' 16259 else 16260 # used by -dlpreopen to get the symbols 16261 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16262 fi 16263 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16264 fi 16265 fi 16266 ;; 16267 16268 amigaos*) 16269 case $host_cpu in 16270 powerpc) 16271 # see comment about AmigaOS4 .so support 16272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16273 archive_expsym_cmds='' 16274 ;; 16275 m68k) 16276 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)' 16277 hardcode_libdir_flag_spec='-L$libdir' 16278 hardcode_minus_L=yes 16279 ;; 16280 esac 16281 ;; 16282 16283 bsdi[45]*) 16284 export_dynamic_flag_spec=-rdynamic 16285 ;; 16286 16287 cygwin* | mingw* | pw32* | cegcc*) 16288 # When not using gcc, we currently assume that we are using 16289 # Microsoft Visual C++. 16290 # hardcode_libdir_flag_spec is actually meaningless, as there is 16291 # no search path for DLLs. 16292 case $cc_basename in 16293 cl*) 16294 # Native MSVC 16295 hardcode_libdir_flag_spec=' ' 16296 allow_undefined_flag=unsupported 16297 always_export_symbols=yes 16298 file_list_spec='@' 16299 # Tell ltmain to make .lib files, not .a files. 16300 libext=lib 16301 # Tell ltmain to make .dll files, not .so files. 16302 shrext_cmds=.dll 16303 # FIXME: Setting linknames here is a bad hack. 16304 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16305 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16306 cp "$export_symbols" "$output_objdir/$soname.def"; 16307 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16308 else 16309 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16310 fi~ 16311 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16312 linknames=' 16313 # The linker will not automatically build a static lib if we build a DLL. 16314 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16315 enable_shared_with_static_runtimes=yes 16316 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16318 # Don't use ranlib 16319 old_postinstall_cmds='chmod 644 $oldlib' 16320 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16321 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16322 case $lt_outputfile in 16323 *.exe|*.EXE) ;; 16324 *) 16325 lt_outputfile=$lt_outputfile.exe 16326 lt_tool_outputfile=$lt_tool_outputfile.exe 16327 ;; 16328 esac~ 16329 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16331 $RM "$lt_outputfile.manifest"; 16332 fi' 16333 ;; 16334 *) 16335 # Assume MSVC wrapper 16336 hardcode_libdir_flag_spec=' ' 16337 allow_undefined_flag=unsupported 16338 # Tell ltmain to make .lib files, not .a files. 16339 libext=lib 16340 # Tell ltmain to make .dll files, not .so files. 16341 shrext_cmds=.dll 16342 # FIXME: Setting linknames here is a bad hack. 16343 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16344 # The linker will automatically build a .lib file if we build a DLL. 16345 old_archive_from_new_cmds='true' 16346 # FIXME: Should let the user specify the lib program. 16347 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16348 enable_shared_with_static_runtimes=yes 16349 ;; 16350 esac 16351 ;; 16352 16353 darwin* | rhapsody*) 16354 16355 16356 archive_cmds_need_lc=no 16357 hardcode_direct=no 16358 hardcode_automatic=yes 16359 hardcode_shlibpath_var=unsupported 16360 if test yes = "$lt_cv_ld_force_load"; then 16361 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\"`' 16362 16363 else 16364 whole_archive_flag_spec='' 16365 fi 16366 link_all_deplibs=yes 16367 allow_undefined_flag=$_lt_dar_allow_undefined 16368 case $cc_basename in 16369 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16370 *) _lt_dar_can_shared=$GCC ;; 16371 esac 16372 if test yes = "$_lt_dar_can_shared"; then 16373 output_verbose_link_cmd=func_echo_all 16374 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16375 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16376 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" 16377 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" 16378 16379 else 16380 ld_shlibs=no 16381 fi 16382 16383 ;; 16384 16385 dgux*) 16386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16387 hardcode_libdir_flag_spec='-L$libdir' 16388 hardcode_shlibpath_var=no 16389 ;; 16390 16391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16392 # support. Future versions do this automatically, but an explicit c++rt0.o 16393 # does not break anything, and helps significantly (at the cost of a little 16394 # extra space). 16395 freebsd2.2*) 16396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16397 hardcode_libdir_flag_spec='-R$libdir' 16398 hardcode_direct=yes 16399 hardcode_shlibpath_var=no 16400 ;; 16401 16402 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16403 freebsd2.*) 16404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16405 hardcode_direct=yes 16406 hardcode_minus_L=yes 16407 hardcode_shlibpath_var=no 16408 ;; 16409 16410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16411 freebsd* | dragonfly*) 16412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16413 hardcode_libdir_flag_spec='-R$libdir' 16414 hardcode_direct=yes 16415 hardcode_shlibpath_var=no 16416 ;; 16417 16418 hpux9*) 16419 if test yes = "$GCC"; then 16420 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' 16421 else 16422 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' 16423 fi 16424 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16425 hardcode_libdir_separator=: 16426 hardcode_direct=yes 16427 16428 # hardcode_minus_L: Not really in the search PATH, 16429 # but as the default location of the library. 16430 hardcode_minus_L=yes 16431 export_dynamic_flag_spec='$wl-E' 16432 ;; 16433 16434 hpux10*) 16435 if test yes,no = "$GCC,$with_gnu_ld"; then 16436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16437 else 16438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16439 fi 16440 if test no = "$with_gnu_ld"; then 16441 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16442 hardcode_libdir_separator=: 16443 hardcode_direct=yes 16444 hardcode_direct_absolute=yes 16445 export_dynamic_flag_spec='$wl-E' 16446 # hardcode_minus_L: Not really in the search PATH, 16447 # but as the default location of the library. 16448 hardcode_minus_L=yes 16449 fi 16450 ;; 16451 16452 hpux11*) 16453 if test yes,no = "$GCC,$with_gnu_ld"; then 16454 case $host_cpu in 16455 hppa*64*) 16456 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16457 ;; 16458 ia64*) 16459 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16460 ;; 16461 *) 16462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16463 ;; 16464 esac 16465 else 16466 case $host_cpu in 16467 hppa*64*) 16468 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16469 ;; 16470 ia64*) 16471 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16472 ;; 16473 *) 16474 16475 # Older versions of the 11.00 compiler do not understand -b yet 16476 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16478$as_echo_n "checking if $CC understands -b... " >&6; } 16479if ${lt_cv_prog_compiler__b+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 lt_cv_prog_compiler__b=no 16483 save_LDFLAGS=$LDFLAGS 16484 LDFLAGS="$LDFLAGS -b" 16485 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16487 # The linker can only warn and ignore the option if not recognized 16488 # So say no if there are warnings 16489 if test -s conftest.err; then 16490 # Append any errors to the config.log. 16491 cat conftest.err 1>&5 16492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16494 if diff conftest.exp conftest.er2 >/dev/null; then 16495 lt_cv_prog_compiler__b=yes 16496 fi 16497 else 16498 lt_cv_prog_compiler__b=yes 16499 fi 16500 fi 16501 $RM -r conftest* 16502 LDFLAGS=$save_LDFLAGS 16503 16504fi 16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16506$as_echo "$lt_cv_prog_compiler__b" >&6; } 16507 16508if test yes = "$lt_cv_prog_compiler__b"; then 16509 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16510else 16511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16512fi 16513 16514 ;; 16515 esac 16516 fi 16517 if test no = "$with_gnu_ld"; then 16518 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16519 hardcode_libdir_separator=: 16520 16521 case $host_cpu in 16522 hppa*64*|ia64*) 16523 hardcode_direct=no 16524 hardcode_shlibpath_var=no 16525 ;; 16526 *) 16527 hardcode_direct=yes 16528 hardcode_direct_absolute=yes 16529 export_dynamic_flag_spec='$wl-E' 16530 16531 # hardcode_minus_L: Not really in the search PATH, 16532 # but as the default location of the library. 16533 hardcode_minus_L=yes 16534 ;; 16535 esac 16536 fi 16537 ;; 16538 16539 irix5* | irix6* | nonstopux*) 16540 if test yes = "$GCC"; then 16541 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' 16542 # Try to use the -exported_symbol ld option, if it does not 16543 # work, assume that -exports_file does not work either and 16544 # implicitly export all symbols. 16545 # This should be the same for all languages, so no per-tag cache variable. 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16547$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16548if ${lt_cv_irix_exported_symbol+:} false; then : 16549 $as_echo_n "(cached) " >&6 16550else 16551 save_LDFLAGS=$LDFLAGS 16552 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554/* end confdefs.h. */ 16555int foo (void) { return 0; } 16556_ACEOF 16557if ac_fn_c_try_link "$LINENO"; then : 16558 lt_cv_irix_exported_symbol=yes 16559else 16560 lt_cv_irix_exported_symbol=no 16561fi 16562rm -f core conftest.err conftest.$ac_objext \ 16563 conftest$ac_exeext conftest.$ac_ext 16564 LDFLAGS=$save_LDFLAGS 16565fi 16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16567$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16568 if test yes = "$lt_cv_irix_exported_symbol"; then 16569 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' 16570 fi 16571 link_all_deplibs=no 16572 else 16573 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' 16574 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' 16575 fi 16576 archive_cmds_need_lc='no' 16577 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16578 hardcode_libdir_separator=: 16579 inherit_rpath=yes 16580 link_all_deplibs=yes 16581 ;; 16582 16583 linux*) 16584 case $cc_basename in 16585 tcc*) 16586 # Fabrice Bellard et al's Tiny C Compiler 16587 ld_shlibs=yes 16588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16589 ;; 16590 esac 16591 ;; 16592 16593 netbsd* | netbsdelf*-gnu) 16594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16596 else 16597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16598 fi 16599 hardcode_libdir_flag_spec='-R$libdir' 16600 hardcode_direct=yes 16601 hardcode_shlibpath_var=no 16602 ;; 16603 16604 newsos6) 16605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16606 hardcode_direct=yes 16607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16608 hardcode_libdir_separator=: 16609 hardcode_shlibpath_var=no 16610 ;; 16611 16612 *nto* | *qnx*) 16613 ;; 16614 16615 openbsd* | bitrig*) 16616 if test -f /usr/libexec/ld.so; then 16617 hardcode_direct=yes 16618 hardcode_shlibpath_var=no 16619 hardcode_direct_absolute=yes 16620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16622 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16623 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16624 export_dynamic_flag_spec='$wl-E' 16625 else 16626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16627 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16628 fi 16629 else 16630 ld_shlibs=no 16631 fi 16632 ;; 16633 16634 os2*) 16635 hardcode_libdir_flag_spec='-L$libdir' 16636 hardcode_minus_L=yes 16637 allow_undefined_flag=unsupported 16638 shrext_cmds=.dll 16639 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16642 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16643 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16645 emximp -o $lib $output_objdir/$libname.def' 16646 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16647 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16648 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16649 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16650 prefix_cmds="$SED"~ 16651 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16652 prefix_cmds="$prefix_cmds -e 1d"; 16653 fi~ 16654 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16655 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16657 emximp -o $lib $output_objdir/$libname.def' 16658 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16659 enable_shared_with_static_runtimes=yes 16660 ;; 16661 16662 osf3*) 16663 if test yes = "$GCC"; then 16664 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16665 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' 16666 else 16667 allow_undefined_flag=' -expect_unresolved \*' 16668 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' 16669 fi 16670 archive_cmds_need_lc='no' 16671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16672 hardcode_libdir_separator=: 16673 ;; 16674 16675 osf4* | osf5*) # as osf3* with the addition of -msym flag 16676 if test yes = "$GCC"; then 16677 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16678 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' 16679 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16680 else 16681 allow_undefined_flag=' -expect_unresolved \*' 16682 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' 16683 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~ 16684 $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' 16685 16686 # Both c and cxx compiler support -rpath directly 16687 hardcode_libdir_flag_spec='-rpath $libdir' 16688 fi 16689 archive_cmds_need_lc='no' 16690 hardcode_libdir_separator=: 16691 ;; 16692 16693 solaris*) 16694 no_undefined_flag=' -z defs' 16695 if test yes = "$GCC"; then 16696 wlarc='$wl' 16697 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16699 $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' 16700 else 16701 case `$CC -V 2>&1` in 16702 *"Compilers 5.0"*) 16703 wlarc='' 16704 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16706 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16707 ;; 16708 *) 16709 wlarc='$wl' 16710 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16712 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16713 ;; 16714 esac 16715 fi 16716 hardcode_libdir_flag_spec='-R$libdir' 16717 hardcode_shlibpath_var=no 16718 case $host_os in 16719 solaris2.[0-5] | solaris2.[0-5].*) ;; 16720 *) 16721 # The compiler driver will combine and reorder linker options, 16722 # but understands '-z linker_flag'. GCC discards it without '$wl', 16723 # but is careful enough not to reorder. 16724 # Supported since Solaris 2.6 (maybe 2.5.1?) 16725 if test yes = "$GCC"; then 16726 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16727 else 16728 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16729 fi 16730 ;; 16731 esac 16732 link_all_deplibs=yes 16733 ;; 16734 16735 sunos4*) 16736 if test sequent = "$host_vendor"; then 16737 # Use $CC to link under sequent, because it throws in some extra .o 16738 # files that make .init and .fini sections work. 16739 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16740 else 16741 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16742 fi 16743 hardcode_libdir_flag_spec='-L$libdir' 16744 hardcode_direct=yes 16745 hardcode_minus_L=yes 16746 hardcode_shlibpath_var=no 16747 ;; 16748 16749 sysv4) 16750 case $host_vendor in 16751 sni) 16752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16753 hardcode_direct=yes # is this really true??? 16754 ;; 16755 siemens) 16756 ## LD is ld it makes a PLAMLIB 16757 ## CC just makes a GrossModule. 16758 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16759 reload_cmds='$CC -r -o $output$reload_objs' 16760 hardcode_direct=no 16761 ;; 16762 motorola) 16763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16764 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16765 ;; 16766 esac 16767 runpath_var='LD_RUN_PATH' 16768 hardcode_shlibpath_var=no 16769 ;; 16770 16771 sysv4.3*) 16772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16773 hardcode_shlibpath_var=no 16774 export_dynamic_flag_spec='-Bexport' 16775 ;; 16776 16777 sysv4*MP*) 16778 if test -d /usr/nec; then 16779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16780 hardcode_shlibpath_var=no 16781 runpath_var=LD_RUN_PATH 16782 hardcode_runpath_var=yes 16783 ld_shlibs=yes 16784 fi 16785 ;; 16786 16787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16788 no_undefined_flag='$wl-z,text' 16789 archive_cmds_need_lc=no 16790 hardcode_shlibpath_var=no 16791 runpath_var='LD_RUN_PATH' 16792 16793 if test yes = "$GCC"; then 16794 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16795 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16796 else 16797 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16798 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16799 fi 16800 ;; 16801 16802 sysv5* | sco3.2v5* | sco5v6*) 16803 # Note: We CANNOT use -z defs as we might desire, because we do not 16804 # link with -lc, and that would cause any symbols used from libc to 16805 # always be unresolved, which means just about no library would 16806 # ever link correctly. If we're not using GNU ld we use -z text 16807 # though, which does catch some bad symbols but isn't as heavy-handed 16808 # as -z defs. 16809 no_undefined_flag='$wl-z,text' 16810 allow_undefined_flag='$wl-z,nodefs' 16811 archive_cmds_need_lc=no 16812 hardcode_shlibpath_var=no 16813 hardcode_libdir_flag_spec='$wl-R,$libdir' 16814 hardcode_libdir_separator=':' 16815 link_all_deplibs=yes 16816 export_dynamic_flag_spec='$wl-Bexport' 16817 runpath_var='LD_RUN_PATH' 16818 16819 if test yes = "$GCC"; then 16820 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16821 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16822 else 16823 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16824 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16825 fi 16826 ;; 16827 16828 uts4*) 16829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16830 hardcode_libdir_flag_spec='-L$libdir' 16831 hardcode_shlibpath_var=no 16832 ;; 16833 16834 *) 16835 ld_shlibs=no 16836 ;; 16837 esac 16838 16839 if test sni = "$host_vendor"; then 16840 case $host in 16841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16842 export_dynamic_flag_spec='$wl-Blargedynsym' 16843 ;; 16844 esac 16845 fi 16846 fi 16847 16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16849$as_echo "$ld_shlibs" >&6; } 16850test no = "$ld_shlibs" && can_build_shared=no 16851 16852with_gnu_ld=$with_gnu_ld 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868# 16869# Do we need to explicitly link libc? 16870# 16871case "x$archive_cmds_need_lc" in 16872x|xyes) 16873 # Assume -lc should be added 16874 archive_cmds_need_lc=yes 16875 16876 if test yes,yes = "$GCC,$enable_shared"; then 16877 case $archive_cmds in 16878 *'~'*) 16879 # FIXME: we may have to deal with multi-command sequences. 16880 ;; 16881 '$CC '*) 16882 # Test whether the compiler implicitly links with -lc since on some 16883 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16884 # to ld, don't add -lc before -lgcc. 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16886$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16887if ${lt_cv_archive_cmds_need_lc+:} false; then : 16888 $as_echo_n "(cached) " >&6 16889else 16890 $RM conftest* 16891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16892 16893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16894 (eval $ac_compile) 2>&5 16895 ac_status=$? 16896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16897 test $ac_status = 0; } 2>conftest.err; then 16898 soname=conftest 16899 lib=conftest 16900 libobjs=conftest.$ac_objext 16901 deplibs= 16902 wl=$lt_prog_compiler_wl 16903 pic_flag=$lt_prog_compiler_pic 16904 compiler_flags=-v 16905 linker_flags=-v 16906 verstring= 16907 output_objdir=. 16908 libname=conftest 16909 lt_save_allow_undefined_flag=$allow_undefined_flag 16910 allow_undefined_flag= 16911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16912 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16913 ac_status=$? 16914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16915 test $ac_status = 0; } 16916 then 16917 lt_cv_archive_cmds_need_lc=no 16918 else 16919 lt_cv_archive_cmds_need_lc=yes 16920 fi 16921 allow_undefined_flag=$lt_save_allow_undefined_flag 16922 else 16923 cat conftest.err 1>&5 16924 fi 16925 $RM conftest* 16926 16927fi 16928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16929$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16930 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16931 ;; 16932 esac 16933 fi 16934 ;; 16935esac 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17089$as_echo_n "checking dynamic linker characteristics... " >&6; } 17090 17091if test yes = "$GCC"; then 17092 case $host_os in 17093 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17094 *) lt_awk_arg='/^libraries:/' ;; 17095 esac 17096 case $host_os in 17097 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17098 *) lt_sed_strip_eq='s|=/|/|g' ;; 17099 esac 17100 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17101 case $lt_search_path_spec in 17102 *\;*) 17103 # if the path contains ";" then we assume it to be the separator 17104 # otherwise default to the standard path separator (i.e. ":") - it is 17105 # assumed that no part of a normal pathname contains ";" but that should 17106 # okay in the real world where ";" in dirpaths is itself problematic. 17107 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17108 ;; 17109 *) 17110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17111 ;; 17112 esac 17113 # Ok, now we have the path, separated by spaces, we can step through it 17114 # and add multilib dir if necessary... 17115 lt_tmp_lt_search_path_spec= 17116 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17117 # ...but if some path component already ends with the multilib dir we assume 17118 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17119 case "$lt_multi_os_dir; $lt_search_path_spec " in 17120 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17121 lt_multi_os_dir= 17122 ;; 17123 esac 17124 for lt_sys_path in $lt_search_path_spec; do 17125 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17126 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17127 elif test -n "$lt_multi_os_dir"; then 17128 test -d "$lt_sys_path" && \ 17129 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17130 fi 17131 done 17132 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17133BEGIN {RS = " "; FS = "/|\n";} { 17134 lt_foo = ""; 17135 lt_count = 0; 17136 for (lt_i = NF; lt_i > 0; lt_i--) { 17137 if ($lt_i != "" && $lt_i != ".") { 17138 if ($lt_i == "..") { 17139 lt_count++; 17140 } else { 17141 if (lt_count == 0) { 17142 lt_foo = "/" $lt_i lt_foo; 17143 } else { 17144 lt_count--; 17145 } 17146 } 17147 } 17148 } 17149 if (lt_foo != "") { lt_freq[lt_foo]++; } 17150 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17151}'` 17152 # AWK program above erroneously prepends '/' to C:/dos/paths 17153 # for these hosts. 17154 case $host_os in 17155 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17156 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17157 esac 17158 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17159else 17160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17161fi 17162library_names_spec= 17163libname_spec='lib$name' 17164soname_spec= 17165shrext_cmds=.so 17166postinstall_cmds= 17167postuninstall_cmds= 17168finish_cmds= 17169finish_eval= 17170shlibpath_var= 17171shlibpath_overrides_runpath=unknown 17172version_type=none 17173dynamic_linker="$host_os ld.so" 17174sys_lib_dlsearch_path_spec="/lib /usr/lib" 17175need_lib_prefix=unknown 17176hardcode_into_libs=no 17177 17178# when you set need_version to no, make sure it does not cause -set_version 17179# flags to be left without arguments 17180need_version=unknown 17181 17182 17183 17184case $host_os in 17185aix3*) 17186 version_type=linux # correct to gnu/linux during the next big refactor 17187 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17188 shlibpath_var=LIBPATH 17189 17190 # AIX 3 has no versioning support, so we append a major version to the name. 17191 soname_spec='$libname$release$shared_ext$major' 17192 ;; 17193 17194aix[4-9]*) 17195 version_type=linux # correct to gnu/linux during the next big refactor 17196 need_lib_prefix=no 17197 need_version=no 17198 hardcode_into_libs=yes 17199 if test ia64 = "$host_cpu"; then 17200 # AIX 5 supports IA64 17201 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17202 shlibpath_var=LD_LIBRARY_PATH 17203 else 17204 # With GCC up to 2.95.x, collect2 would create an import file 17205 # for dependence libraries. The import file would start with 17206 # the line '#! .'. This would cause the generated library to 17207 # depend on '.', always an invalid library. This was fixed in 17208 # development snapshots of GCC prior to 3.0. 17209 case $host_os in 17210 aix4 | aix4.[01] | aix4.[01].*) 17211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17212 echo ' yes ' 17213 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17214 : 17215 else 17216 can_build_shared=no 17217 fi 17218 ;; 17219 esac 17220 # Using Import Files as archive members, it is possible to support 17221 # filename-based versioning of shared library archives on AIX. While 17222 # this would work for both with and without runtime linking, it will 17223 # prevent static linking of such archives. So we do filename-based 17224 # shared library versioning with .so extension only, which is used 17225 # when both runtime linking and shared linking is enabled. 17226 # Unfortunately, runtime linking may impact performance, so we do 17227 # not want this to be the default eventually. Also, we use the 17228 # versioned .so libs for executables only if there is the -brtl 17229 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17230 # To allow for filename-based versioning support, we need to create 17231 # libNAME.so.V as an archive file, containing: 17232 # *) an Import File, referring to the versioned filename of the 17233 # archive as well as the shared archive member, telling the 17234 # bitwidth (32 or 64) of that shared object, and providing the 17235 # list of exported symbols of that shared object, eventually 17236 # decorated with the 'weak' keyword 17237 # *) the shared object with the F_LOADONLY flag set, to really avoid 17238 # it being seen by the linker. 17239 # At run time we better use the real file rather than another symlink, 17240 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17241 17242 case $with_aix_soname,$aix_use_runtimelinking in 17243 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17244 # soname into executable. Probably we can add versioning support to 17245 # collect2, so additional links can be useful in future. 17246 aix,yes) # traditional libtool 17247 dynamic_linker='AIX unversionable lib.so' 17248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17249 # instead of lib<name>.a to let people know that these are not 17250 # typical AIX shared libraries. 17251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17252 ;; 17253 aix,no) # traditional AIX only 17254 dynamic_linker='AIX lib.a(lib.so.V)' 17255 # We preserve .a as extension for shared libraries through AIX4.2 17256 # and later when we are not doing run time linking. 17257 library_names_spec='$libname$release.a $libname.a' 17258 soname_spec='$libname$release$shared_ext$major' 17259 ;; 17260 svr4,*) # full svr4 only 17261 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17262 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17263 # We do not specify a path in Import Files, so LIBPATH fires. 17264 shlibpath_overrides_runpath=yes 17265 ;; 17266 *,yes) # both, prefer svr4 17267 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17268 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17269 # unpreferred sharedlib libNAME.a needs extra handling 17270 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"' 17271 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"' 17272 # We do not specify a path in Import Files, so LIBPATH fires. 17273 shlibpath_overrides_runpath=yes 17274 ;; 17275 *,no) # both, prefer aix 17276 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17277 library_names_spec='$libname$release.a $libname.a' 17278 soname_spec='$libname$release$shared_ext$major' 17279 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17280 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)' 17281 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"' 17282 ;; 17283 esac 17284 shlibpath_var=LIBPATH 17285 fi 17286 ;; 17287 17288amigaos*) 17289 case $host_cpu in 17290 powerpc) 17291 # Since July 2007 AmigaOS4 officially supports .so libraries. 17292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17294 ;; 17295 m68k) 17296 library_names_spec='$libname.ixlibrary $libname.a' 17297 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17298 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' 17299 ;; 17300 esac 17301 ;; 17302 17303beos*) 17304 library_names_spec='$libname$shared_ext' 17305 dynamic_linker="$host_os ld.so" 17306 shlibpath_var=LIBRARY_PATH 17307 ;; 17308 17309bsdi[45]*) 17310 version_type=linux # correct to gnu/linux during the next big refactor 17311 need_version=no 17312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17313 soname_spec='$libname$release$shared_ext$major' 17314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17315 shlibpath_var=LD_LIBRARY_PATH 17316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17318 # the default ld.so.conf also contains /usr/contrib/lib and 17319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17320 # libtool to hard-code these into programs 17321 ;; 17322 17323cygwin* | mingw* | pw32* | cegcc*) 17324 version_type=windows 17325 shrext_cmds=.dll 17326 need_version=no 17327 need_lib_prefix=no 17328 17329 case $GCC,$cc_basename in 17330 yes,*) 17331 # gcc 17332 library_names_spec='$libname.dll.a' 17333 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17334 postinstall_cmds='base_file=`basename \$file`~ 17335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17336 dldir=$destdir/`dirname \$dlpath`~ 17337 test -d \$dldir || mkdir -p \$dldir~ 17338 $install_prog $dir/$dlname \$dldir/$dlname~ 17339 chmod a+x \$dldir/$dlname~ 17340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17342 fi' 17343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17344 dlpath=$dir/\$dldll~ 17345 $RM \$dlpath' 17346 shlibpath_overrides_runpath=yes 17347 17348 case $host_os in 17349 cygwin*) 17350 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17351 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17352 17353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17354 ;; 17355 mingw* | cegcc*) 17356 # MinGW DLLs use traditional 'lib' prefix 17357 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17358 ;; 17359 pw32*) 17360 # pw32 DLLs use 'pw' prefix rather than 'lib' 17361 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17362 ;; 17363 esac 17364 dynamic_linker='Win32 ld.exe' 17365 ;; 17366 17367 *,cl*) 17368 # Native MSVC 17369 libname_spec='$name' 17370 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17371 library_names_spec='$libname.dll.lib' 17372 17373 case $build_os in 17374 mingw*) 17375 sys_lib_search_path_spec= 17376 lt_save_ifs=$IFS 17377 IFS=';' 17378 for lt_path in $LIB 17379 do 17380 IFS=$lt_save_ifs 17381 # Let DOS variable expansion print the short 8.3 style file name. 17382 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17383 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17384 done 17385 IFS=$lt_save_ifs 17386 # Convert to MSYS style. 17387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17388 ;; 17389 cygwin*) 17390 # Convert to unix form, then to dos form, then back to unix form 17391 # but this time dos style (no spaces!) so that the unix form looks 17392 # like /cygdrive/c/PROGRA~1:/cygdr... 17393 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17394 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17395 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17396 ;; 17397 *) 17398 sys_lib_search_path_spec=$LIB 17399 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17400 # It is most probably a Windows format PATH. 17401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17402 else 17403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17404 fi 17405 # FIXME: find the short name or the path components, as spaces are 17406 # common. (e.g. "Program Files" -> "PROGRA~1") 17407 ;; 17408 esac 17409 17410 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17411 postinstall_cmds='base_file=`basename \$file`~ 17412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17413 dldir=$destdir/`dirname \$dlpath`~ 17414 test -d \$dldir || mkdir -p \$dldir~ 17415 $install_prog $dir/$dlname \$dldir/$dlname' 17416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17417 dlpath=$dir/\$dldll~ 17418 $RM \$dlpath' 17419 shlibpath_overrides_runpath=yes 17420 dynamic_linker='Win32 link.exe' 17421 ;; 17422 17423 *) 17424 # Assume MSVC wrapper 17425 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17426 dynamic_linker='Win32 ld.exe' 17427 ;; 17428 esac 17429 # FIXME: first we should search . and the directory the executable is in 17430 shlibpath_var=PATH 17431 ;; 17432 17433darwin* | rhapsody*) 17434 dynamic_linker="$host_os dyld" 17435 version_type=darwin 17436 need_lib_prefix=no 17437 need_version=no 17438 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17439 soname_spec='$libname$release$major$shared_ext' 17440 shlibpath_overrides_runpath=yes 17441 shlibpath_var=DYLD_LIBRARY_PATH 17442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17443 17444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17446 ;; 17447 17448dgux*) 17449 version_type=linux # correct to gnu/linux during the next big refactor 17450 need_lib_prefix=no 17451 need_version=no 17452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17453 soname_spec='$libname$release$shared_ext$major' 17454 shlibpath_var=LD_LIBRARY_PATH 17455 ;; 17456 17457freebsd* | dragonfly*) 17458 # DragonFly does not have aout. When/if they implement a new 17459 # versioning mechanism, adjust this. 17460 if test -x /usr/bin/objformat; then 17461 objformat=`/usr/bin/objformat` 17462 else 17463 case $host_os in 17464 freebsd[23].*) objformat=aout ;; 17465 *) objformat=elf ;; 17466 esac 17467 fi 17468 version_type=freebsd-$objformat 17469 case $version_type in 17470 freebsd-elf*) 17471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17472 soname_spec='$libname$release$shared_ext$major' 17473 need_version=no 17474 need_lib_prefix=no 17475 ;; 17476 freebsd-*) 17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17478 need_version=yes 17479 ;; 17480 esac 17481 shlibpath_var=LD_LIBRARY_PATH 17482 case $host_os in 17483 freebsd2.*) 17484 shlibpath_overrides_runpath=yes 17485 ;; 17486 freebsd3.[01]* | freebsdelf3.[01]*) 17487 shlibpath_overrides_runpath=yes 17488 hardcode_into_libs=yes 17489 ;; 17490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17492 shlibpath_overrides_runpath=no 17493 hardcode_into_libs=yes 17494 ;; 17495 *) # from 4.6 on, and DragonFly 17496 shlibpath_overrides_runpath=yes 17497 hardcode_into_libs=yes 17498 ;; 17499 esac 17500 ;; 17501 17502haiku*) 17503 version_type=linux # correct to gnu/linux during the next big refactor 17504 need_lib_prefix=no 17505 need_version=no 17506 dynamic_linker="$host_os runtime_loader" 17507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17508 soname_spec='$libname$release$shared_ext$major' 17509 shlibpath_var=LIBRARY_PATH 17510 shlibpath_overrides_runpath=no 17511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17512 hardcode_into_libs=yes 17513 ;; 17514 17515hpux9* | hpux10* | hpux11*) 17516 # Give a soname corresponding to the major version so that dld.sl refuses to 17517 # link against other versions. 17518 version_type=sunos 17519 need_lib_prefix=no 17520 need_version=no 17521 case $host_cpu in 17522 ia64*) 17523 shrext_cmds='.so' 17524 hardcode_into_libs=yes 17525 dynamic_linker="$host_os dld.so" 17526 shlibpath_var=LD_LIBRARY_PATH 17527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17529 soname_spec='$libname$release$shared_ext$major' 17530 if test 32 = "$HPUX_IA64_MODE"; then 17531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17532 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17533 else 17534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17535 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17536 fi 17537 ;; 17538 hppa*64*) 17539 shrext_cmds='.sl' 17540 hardcode_into_libs=yes 17541 dynamic_linker="$host_os dld.sl" 17542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17545 soname_spec='$libname$release$shared_ext$major' 17546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17548 ;; 17549 *) 17550 shrext_cmds='.sl' 17551 dynamic_linker="$host_os dld.sl" 17552 shlibpath_var=SHLIB_PATH 17553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17555 soname_spec='$libname$release$shared_ext$major' 17556 ;; 17557 esac 17558 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17559 postinstall_cmds='chmod 555 $lib' 17560 # or fails outright, so override atomically: 17561 install_override_mode=555 17562 ;; 17563 17564interix[3-9]*) 17565 version_type=linux # correct to gnu/linux during the next big refactor 17566 need_lib_prefix=no 17567 need_version=no 17568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17569 soname_spec='$libname$release$shared_ext$major' 17570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17571 shlibpath_var=LD_LIBRARY_PATH 17572 shlibpath_overrides_runpath=no 17573 hardcode_into_libs=yes 17574 ;; 17575 17576irix5* | irix6* | nonstopux*) 17577 case $host_os in 17578 nonstopux*) version_type=nonstopux ;; 17579 *) 17580 if test yes = "$lt_cv_prog_gnu_ld"; then 17581 version_type=linux # correct to gnu/linux during the next big refactor 17582 else 17583 version_type=irix 17584 fi ;; 17585 esac 17586 need_lib_prefix=no 17587 need_version=no 17588 soname_spec='$libname$release$shared_ext$major' 17589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17590 case $host_os in 17591 irix5* | nonstopux*) 17592 libsuff= shlibsuff= 17593 ;; 17594 *) 17595 case $LD in # libtool.m4 will add one of these switches to LD 17596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17597 libsuff= shlibsuff= libmagic=32-bit;; 17598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17599 libsuff=32 shlibsuff=N32 libmagic=N32;; 17600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17601 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17602 *) libsuff= shlibsuff= libmagic=never-match;; 17603 esac 17604 ;; 17605 esac 17606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17607 shlibpath_overrides_runpath=no 17608 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17609 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17610 hardcode_into_libs=yes 17611 ;; 17612 17613# No shared lib support for Linux oldld, aout, or coff. 17614linux*oldld* | linux*aout* | linux*coff*) 17615 dynamic_linker=no 17616 ;; 17617 17618linux*android*) 17619 version_type=none # Android doesn't support versioned libraries. 17620 need_lib_prefix=no 17621 need_version=no 17622 library_names_spec='$libname$release$shared_ext' 17623 soname_spec='$libname$release$shared_ext' 17624 finish_cmds= 17625 shlibpath_var=LD_LIBRARY_PATH 17626 shlibpath_overrides_runpath=yes 17627 17628 # This implies no fast_install, which is unacceptable. 17629 # Some rework will be needed to allow for fast_install 17630 # before this can be enabled. 17631 hardcode_into_libs=yes 17632 17633 dynamic_linker='Android linker' 17634 # Don't embed -rpath directories since the linker doesn't support them. 17635 hardcode_libdir_flag_spec='-L$libdir' 17636 ;; 17637 17638# This must be glibc/ELF. 17639linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17640 version_type=linux # correct to gnu/linux during the next big refactor 17641 need_lib_prefix=no 17642 need_version=no 17643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17644 soname_spec='$libname$release$shared_ext$major' 17645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17646 shlibpath_var=LD_LIBRARY_PATH 17647 shlibpath_overrides_runpath=no 17648 17649 # Some binutils ld are patched to set DT_RUNPATH 17650 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17651 $as_echo_n "(cached) " >&6 17652else 17653 lt_cv_shlibpath_overrides_runpath=no 17654 save_LDFLAGS=$LDFLAGS 17655 save_libdir=$libdir 17656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17659/* end confdefs.h. */ 17660 17661int 17662main () 17663{ 17664 17665 ; 17666 return 0; 17667} 17668_ACEOF 17669if ac_fn_c_try_link "$LINENO"; then : 17670 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17671 lt_cv_shlibpath_overrides_runpath=yes 17672fi 17673fi 17674rm -f core conftest.err conftest.$ac_objext \ 17675 conftest$ac_exeext conftest.$ac_ext 17676 LDFLAGS=$save_LDFLAGS 17677 libdir=$save_libdir 17678 17679fi 17680 17681 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17682 17683 # This implies no fast_install, which is unacceptable. 17684 # Some rework will be needed to allow for fast_install 17685 # before this can be enabled. 17686 hardcode_into_libs=yes 17687 17688 # Ideally, we could use ldconfig to report *all* directores which are 17689 # searched for libraries, however this is still not possible. Aside from not 17690 # being certain /sbin/ldconfig is available, command 17691 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17692 # even though it is searched at run-time. Try to do the best guess by 17693 # appending ld.so.conf contents (and includes) to the search path. 17694 if test -f /etc/ld.so.conf; then 17695 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' ' '` 17696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17697 fi 17698 17699 # We used to test for /lib/ld.so.1 and disable shared libraries on 17700 # powerpc, because MkLinux only supported shared libraries with the 17701 # GNU dynamic linker. Since this was broken with cross compilers, 17702 # most powerpc-linux boxes support dynamic linking these days and 17703 # people can always --disable-shared, the test was removed, and we 17704 # assume the GNU/Linux dynamic linker is in use. 17705 dynamic_linker='GNU/Linux ld.so' 17706 ;; 17707 17708netbsdelf*-gnu) 17709 version_type=linux 17710 need_lib_prefix=no 17711 need_version=no 17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17713 soname_spec='${libname}${release}${shared_ext}$major' 17714 shlibpath_var=LD_LIBRARY_PATH 17715 shlibpath_overrides_runpath=no 17716 hardcode_into_libs=yes 17717 dynamic_linker='NetBSD ld.elf_so' 17718 ;; 17719 17720netbsd*) 17721 version_type=sunos 17722 need_lib_prefix=no 17723 need_version=no 17724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17725 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17727 dynamic_linker='NetBSD (a.out) ld.so' 17728 else 17729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17730 soname_spec='$libname$release$shared_ext$major' 17731 dynamic_linker='NetBSD ld.elf_so' 17732 fi 17733 shlibpath_var=LD_LIBRARY_PATH 17734 shlibpath_overrides_runpath=yes 17735 hardcode_into_libs=yes 17736 ;; 17737 17738newsos6) 17739 version_type=linux # correct to gnu/linux during the next big refactor 17740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17741 shlibpath_var=LD_LIBRARY_PATH 17742 shlibpath_overrides_runpath=yes 17743 ;; 17744 17745*nto* | *qnx*) 17746 version_type=qnx 17747 need_lib_prefix=no 17748 need_version=no 17749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17750 soname_spec='$libname$release$shared_ext$major' 17751 shlibpath_var=LD_LIBRARY_PATH 17752 shlibpath_overrides_runpath=no 17753 hardcode_into_libs=yes 17754 dynamic_linker='ldqnx.so' 17755 ;; 17756 17757openbsd* | bitrig*) 17758 version_type=sunos 17759 sys_lib_dlsearch_path_spec=/usr/lib 17760 need_lib_prefix=no 17761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17762 need_version=no 17763 else 17764 need_version=yes 17765 fi 17766 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17768 shlibpath_var=LD_LIBRARY_PATH 17769 shlibpath_overrides_runpath=yes 17770 ;; 17771 17772os2*) 17773 libname_spec='$name' 17774 version_type=windows 17775 shrext_cmds=.dll 17776 need_version=no 17777 need_lib_prefix=no 17778 # OS/2 can only load a DLL with a base name of 8 characters or less. 17779 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17780 v=$($ECHO $release$versuffix | tr -d .-); 17781 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17782 $ECHO $n$v`$shared_ext' 17783 library_names_spec='${libname}_dll.$libext' 17784 dynamic_linker='OS/2 ld.exe' 17785 shlibpath_var=BEGINLIBPATH 17786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17788 postinstall_cmds='base_file=`basename \$file`~ 17789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17790 dldir=$destdir/`dirname \$dlpath`~ 17791 test -d \$dldir || mkdir -p \$dldir~ 17792 $install_prog $dir/$dlname \$dldir/$dlname~ 17793 chmod a+x \$dldir/$dlname~ 17794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17796 fi' 17797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17798 dlpath=$dir/\$dldll~ 17799 $RM \$dlpath' 17800 ;; 17801 17802osf3* | osf4* | osf5*) 17803 version_type=osf 17804 need_lib_prefix=no 17805 need_version=no 17806 soname_spec='$libname$release$shared_ext$major' 17807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17808 shlibpath_var=LD_LIBRARY_PATH 17809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17811 ;; 17812 17813rdos*) 17814 dynamic_linker=no 17815 ;; 17816 17817solaris*) 17818 version_type=linux # correct to gnu/linux during the next big refactor 17819 need_lib_prefix=no 17820 need_version=no 17821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17822 soname_spec='$libname$release$shared_ext$major' 17823 shlibpath_var=LD_LIBRARY_PATH 17824 shlibpath_overrides_runpath=yes 17825 hardcode_into_libs=yes 17826 # ldd complains unless libraries are executable 17827 postinstall_cmds='chmod +x $lib' 17828 ;; 17829 17830sunos4*) 17831 version_type=sunos 17832 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17833 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17834 shlibpath_var=LD_LIBRARY_PATH 17835 shlibpath_overrides_runpath=yes 17836 if test yes = "$with_gnu_ld"; then 17837 need_lib_prefix=no 17838 fi 17839 need_version=yes 17840 ;; 17841 17842sysv4 | sysv4.3*) 17843 version_type=linux # correct to gnu/linux during the next big refactor 17844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17845 soname_spec='$libname$release$shared_ext$major' 17846 shlibpath_var=LD_LIBRARY_PATH 17847 case $host_vendor in 17848 sni) 17849 shlibpath_overrides_runpath=no 17850 need_lib_prefix=no 17851 runpath_var=LD_RUN_PATH 17852 ;; 17853 siemens) 17854 need_lib_prefix=no 17855 ;; 17856 motorola) 17857 need_lib_prefix=no 17858 need_version=no 17859 shlibpath_overrides_runpath=no 17860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17861 ;; 17862 esac 17863 ;; 17864 17865sysv4*MP*) 17866 if test -d /usr/nec; then 17867 version_type=linux # correct to gnu/linux during the next big refactor 17868 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17869 soname_spec='$libname$shared_ext.$major' 17870 shlibpath_var=LD_LIBRARY_PATH 17871 fi 17872 ;; 17873 17874sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17875 version_type=sco 17876 need_lib_prefix=no 17877 need_version=no 17878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17879 soname_spec='$libname$release$shared_ext$major' 17880 shlibpath_var=LD_LIBRARY_PATH 17881 shlibpath_overrides_runpath=yes 17882 hardcode_into_libs=yes 17883 if test yes = "$with_gnu_ld"; then 17884 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17885 else 17886 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17887 case $host_os in 17888 sco3.2v5*) 17889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17890 ;; 17891 esac 17892 fi 17893 sys_lib_dlsearch_path_spec='/usr/lib' 17894 ;; 17895 17896tpf*) 17897 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17898 version_type=linux # correct to gnu/linux during the next big refactor 17899 need_lib_prefix=no 17900 need_version=no 17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17902 shlibpath_var=LD_LIBRARY_PATH 17903 shlibpath_overrides_runpath=no 17904 hardcode_into_libs=yes 17905 ;; 17906 17907uts4*) 17908 version_type=linux # correct to gnu/linux during the next big refactor 17909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17910 soname_spec='$libname$release$shared_ext$major' 17911 shlibpath_var=LD_LIBRARY_PATH 17912 ;; 17913 17914*) 17915 dynamic_linker=no 17916 ;; 17917esac 17918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17919$as_echo "$dynamic_linker" >&6; } 17920test no = "$dynamic_linker" && can_build_shared=no 17921 17922variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17923if test yes = "$GCC"; then 17924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17925fi 17926 17927if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17928 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17929fi 17930 17931if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17932 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17933fi 17934 17935# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17936configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17937 17938# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17939func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17940 17941# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17942configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18041$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18042hardcode_action= 18043if test -n "$hardcode_libdir_flag_spec" || 18044 test -n "$runpath_var" || 18045 test yes = "$hardcode_automatic"; then 18046 18047 # We can hardcode non-existent directories. 18048 if test no != "$hardcode_direct" && 18049 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18050 # have to relink, otherwise we might link with an installed library 18051 # when we should be linking with a yet-to-be-installed one 18052 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18053 test no != "$hardcode_minus_L"; then 18054 # Linking always hardcodes the temporary library directory. 18055 hardcode_action=relink 18056 else 18057 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18058 hardcode_action=immediate 18059 fi 18060else 18061 # We cannot hardcode anything, or else we can only hardcode existing 18062 # directories. 18063 hardcode_action=unsupported 18064fi 18065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18066$as_echo "$hardcode_action" >&6; } 18067 18068if test relink = "$hardcode_action" || 18069 test yes = "$inherit_rpath"; then 18070 # Fast installation is not supported 18071 enable_fast_install=no 18072elif test yes = "$shlibpath_overrides_runpath" || 18073 test no = "$enable_shared"; then 18074 # Fast installation is not necessary 18075 enable_fast_install=needless 18076fi 18077 18078 18079 18080 18081 18082 18083 if test yes != "$enable_dlopen"; then 18084 enable_dlopen=unknown 18085 enable_dlopen_self=unknown 18086 enable_dlopen_self_static=unknown 18087else 18088 lt_cv_dlopen=no 18089 lt_cv_dlopen_libs= 18090 18091 case $host_os in 18092 beos*) 18093 lt_cv_dlopen=load_add_on 18094 lt_cv_dlopen_libs= 18095 lt_cv_dlopen_self=yes 18096 ;; 18097 18098 mingw* | pw32* | cegcc*) 18099 lt_cv_dlopen=LoadLibrary 18100 lt_cv_dlopen_libs= 18101 ;; 18102 18103 cygwin*) 18104 lt_cv_dlopen=dlopen 18105 lt_cv_dlopen_libs= 18106 ;; 18107 18108 darwin*) 18109 # if libdl is installed we need to link against it 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18111$as_echo_n "checking for dlopen in -ldl... " >&6; } 18112if ${ac_cv_lib_dl_dlopen+:} false; then : 18113 $as_echo_n "(cached) " >&6 18114else 18115 ac_check_lib_save_LIBS=$LIBS 18116LIBS="-ldl $LIBS" 18117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18118/* end confdefs.h. */ 18119 18120/* Override any GCC internal prototype to avoid an error. 18121 Use char because int might match the return type of a GCC 18122 builtin and then its argument prototype would still apply. */ 18123#ifdef __cplusplus 18124extern "C" 18125#endif 18126char dlopen (); 18127int 18128main () 18129{ 18130return dlopen (); 18131 ; 18132 return 0; 18133} 18134_ACEOF 18135if ac_fn_c_try_link "$LINENO"; then : 18136 ac_cv_lib_dl_dlopen=yes 18137else 18138 ac_cv_lib_dl_dlopen=no 18139fi 18140rm -f core conftest.err conftest.$ac_objext \ 18141 conftest$ac_exeext conftest.$ac_ext 18142LIBS=$ac_check_lib_save_LIBS 18143fi 18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18145$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18146if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18147 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18148else 18149 18150 lt_cv_dlopen=dyld 18151 lt_cv_dlopen_libs= 18152 lt_cv_dlopen_self=yes 18153 18154fi 18155 18156 ;; 18157 18158 tpf*) 18159 # Don't try to run any link tests for TPF. We know it's impossible 18160 # because TPF is a cross-compiler, and we know how we open DSOs. 18161 lt_cv_dlopen=dlopen 18162 lt_cv_dlopen_libs= 18163 lt_cv_dlopen_self=no 18164 ;; 18165 18166 *) 18167 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18168if test "x$ac_cv_func_shl_load" = xyes; then : 18169 lt_cv_dlopen=shl_load 18170else 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18172$as_echo_n "checking for shl_load in -ldld... " >&6; } 18173if ${ac_cv_lib_dld_shl_load+:} false; then : 18174 $as_echo_n "(cached) " >&6 18175else 18176 ac_check_lib_save_LIBS=$LIBS 18177LIBS="-ldld $LIBS" 18178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18179/* end confdefs.h. */ 18180 18181/* Override any GCC internal prototype to avoid an error. 18182 Use char because int might match the return type of a GCC 18183 builtin and then its argument prototype would still apply. */ 18184#ifdef __cplusplus 18185extern "C" 18186#endif 18187char shl_load (); 18188int 18189main () 18190{ 18191return shl_load (); 18192 ; 18193 return 0; 18194} 18195_ACEOF 18196if ac_fn_c_try_link "$LINENO"; then : 18197 ac_cv_lib_dld_shl_load=yes 18198else 18199 ac_cv_lib_dld_shl_load=no 18200fi 18201rm -f core conftest.err conftest.$ac_objext \ 18202 conftest$ac_exeext conftest.$ac_ext 18203LIBS=$ac_check_lib_save_LIBS 18204fi 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18206$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18207if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18208 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18209else 18210 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18211if test "x$ac_cv_func_dlopen" = xyes; then : 18212 lt_cv_dlopen=dlopen 18213else 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18215$as_echo_n "checking for dlopen in -ldl... " >&6; } 18216if ${ac_cv_lib_dl_dlopen+:} false; then : 18217 $as_echo_n "(cached) " >&6 18218else 18219 ac_check_lib_save_LIBS=$LIBS 18220LIBS="-ldl $LIBS" 18221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18222/* end confdefs.h. */ 18223 18224/* Override any GCC internal prototype to avoid an error. 18225 Use char because int might match the return type of a GCC 18226 builtin and then its argument prototype would still apply. */ 18227#ifdef __cplusplus 18228extern "C" 18229#endif 18230char dlopen (); 18231int 18232main () 18233{ 18234return dlopen (); 18235 ; 18236 return 0; 18237} 18238_ACEOF 18239if ac_fn_c_try_link "$LINENO"; then : 18240 ac_cv_lib_dl_dlopen=yes 18241else 18242 ac_cv_lib_dl_dlopen=no 18243fi 18244rm -f core conftest.err conftest.$ac_objext \ 18245 conftest$ac_exeext conftest.$ac_ext 18246LIBS=$ac_check_lib_save_LIBS 18247fi 18248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18249$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18250if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18252else 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18254$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18255if ${ac_cv_lib_svld_dlopen+:} false; then : 18256 $as_echo_n "(cached) " >&6 18257else 18258 ac_check_lib_save_LIBS=$LIBS 18259LIBS="-lsvld $LIBS" 18260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18261/* end confdefs.h. */ 18262 18263/* Override any GCC internal prototype to avoid an error. 18264 Use char because int might match the return type of a GCC 18265 builtin and then its argument prototype would still apply. */ 18266#ifdef __cplusplus 18267extern "C" 18268#endif 18269char dlopen (); 18270int 18271main () 18272{ 18273return dlopen (); 18274 ; 18275 return 0; 18276} 18277_ACEOF 18278if ac_fn_c_try_link "$LINENO"; then : 18279 ac_cv_lib_svld_dlopen=yes 18280else 18281 ac_cv_lib_svld_dlopen=no 18282fi 18283rm -f core conftest.err conftest.$ac_objext \ 18284 conftest$ac_exeext conftest.$ac_ext 18285LIBS=$ac_check_lib_save_LIBS 18286fi 18287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18288$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18289if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18290 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18291else 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18293$as_echo_n "checking for dld_link in -ldld... " >&6; } 18294if ${ac_cv_lib_dld_dld_link+:} false; then : 18295 $as_echo_n "(cached) " >&6 18296else 18297 ac_check_lib_save_LIBS=$LIBS 18298LIBS="-ldld $LIBS" 18299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18300/* end confdefs.h. */ 18301 18302/* Override any GCC internal prototype to avoid an error. 18303 Use char because int might match the return type of a GCC 18304 builtin and then its argument prototype would still apply. */ 18305#ifdef __cplusplus 18306extern "C" 18307#endif 18308char dld_link (); 18309int 18310main () 18311{ 18312return dld_link (); 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317if ac_fn_c_try_link "$LINENO"; then : 18318 ac_cv_lib_dld_dld_link=yes 18319else 18320 ac_cv_lib_dld_dld_link=no 18321fi 18322rm -f core conftest.err conftest.$ac_objext \ 18323 conftest$ac_exeext conftest.$ac_ext 18324LIBS=$ac_check_lib_save_LIBS 18325fi 18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18327$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18328if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18329 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18330fi 18331 18332 18333fi 18334 18335 18336fi 18337 18338 18339fi 18340 18341 18342fi 18343 18344 18345fi 18346 18347 ;; 18348 esac 18349 18350 if test no = "$lt_cv_dlopen"; then 18351 enable_dlopen=no 18352 else 18353 enable_dlopen=yes 18354 fi 18355 18356 case $lt_cv_dlopen in 18357 dlopen) 18358 save_CPPFLAGS=$CPPFLAGS 18359 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18360 18361 save_LDFLAGS=$LDFLAGS 18362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18363 18364 save_LIBS=$LIBS 18365 LIBS="$lt_cv_dlopen_libs $LIBS" 18366 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18368$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18369if ${lt_cv_dlopen_self+:} false; then : 18370 $as_echo_n "(cached) " >&6 18371else 18372 if test yes = "$cross_compiling"; then : 18373 lt_cv_dlopen_self=cross 18374else 18375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18376 lt_status=$lt_dlunknown 18377 cat > conftest.$ac_ext <<_LT_EOF 18378#line $LINENO "configure" 18379#include "confdefs.h" 18380 18381#if HAVE_DLFCN_H 18382#include <dlfcn.h> 18383#endif 18384 18385#include <stdio.h> 18386 18387#ifdef RTLD_GLOBAL 18388# define LT_DLGLOBAL RTLD_GLOBAL 18389#else 18390# ifdef DL_GLOBAL 18391# define LT_DLGLOBAL DL_GLOBAL 18392# else 18393# define LT_DLGLOBAL 0 18394# endif 18395#endif 18396 18397/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18398 find out it does not work in some platform. */ 18399#ifndef LT_DLLAZY_OR_NOW 18400# ifdef RTLD_LAZY 18401# define LT_DLLAZY_OR_NOW RTLD_LAZY 18402# else 18403# ifdef DL_LAZY 18404# define LT_DLLAZY_OR_NOW DL_LAZY 18405# else 18406# ifdef RTLD_NOW 18407# define LT_DLLAZY_OR_NOW RTLD_NOW 18408# else 18409# ifdef DL_NOW 18410# define LT_DLLAZY_OR_NOW DL_NOW 18411# else 18412# define LT_DLLAZY_OR_NOW 0 18413# endif 18414# endif 18415# endif 18416# endif 18417#endif 18418 18419/* When -fvisibility=hidden is used, assume the code has been annotated 18420 correspondingly for the symbols needed. */ 18421#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18422int fnord () __attribute__((visibility("default"))); 18423#endif 18424 18425int fnord () { return 42; } 18426int main () 18427{ 18428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18429 int status = $lt_dlunknown; 18430 18431 if (self) 18432 { 18433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18434 else 18435 { 18436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18437 else puts (dlerror ()); 18438 } 18439 /* dlclose (self); */ 18440 } 18441 else 18442 puts (dlerror ()); 18443 18444 return status; 18445} 18446_LT_EOF 18447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18448 (eval $ac_link) 2>&5 18449 ac_status=$? 18450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18451 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18452 (./conftest; exit; ) >&5 2>/dev/null 18453 lt_status=$? 18454 case x$lt_status in 18455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18458 esac 18459 else : 18460 # compilation failed 18461 lt_cv_dlopen_self=no 18462 fi 18463fi 18464rm -fr conftest* 18465 18466 18467fi 18468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18469$as_echo "$lt_cv_dlopen_self" >&6; } 18470 18471 if test yes = "$lt_cv_dlopen_self"; then 18472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18474$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18475if ${lt_cv_dlopen_self_static+:} false; then : 18476 $as_echo_n "(cached) " >&6 18477else 18478 if test yes = "$cross_compiling"; then : 18479 lt_cv_dlopen_self_static=cross 18480else 18481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18482 lt_status=$lt_dlunknown 18483 cat > conftest.$ac_ext <<_LT_EOF 18484#line $LINENO "configure" 18485#include "confdefs.h" 18486 18487#if HAVE_DLFCN_H 18488#include <dlfcn.h> 18489#endif 18490 18491#include <stdio.h> 18492 18493#ifdef RTLD_GLOBAL 18494# define LT_DLGLOBAL RTLD_GLOBAL 18495#else 18496# ifdef DL_GLOBAL 18497# define LT_DLGLOBAL DL_GLOBAL 18498# else 18499# define LT_DLGLOBAL 0 18500# endif 18501#endif 18502 18503/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18504 find out it does not work in some platform. */ 18505#ifndef LT_DLLAZY_OR_NOW 18506# ifdef RTLD_LAZY 18507# define LT_DLLAZY_OR_NOW RTLD_LAZY 18508# else 18509# ifdef DL_LAZY 18510# define LT_DLLAZY_OR_NOW DL_LAZY 18511# else 18512# ifdef RTLD_NOW 18513# define LT_DLLAZY_OR_NOW RTLD_NOW 18514# else 18515# ifdef DL_NOW 18516# define LT_DLLAZY_OR_NOW DL_NOW 18517# else 18518# define LT_DLLAZY_OR_NOW 0 18519# endif 18520# endif 18521# endif 18522# endif 18523#endif 18524 18525/* When -fvisibility=hidden is used, assume the code has been annotated 18526 correspondingly for the symbols needed. */ 18527#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18528int fnord () __attribute__((visibility("default"))); 18529#endif 18530 18531int fnord () { return 42; } 18532int main () 18533{ 18534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18535 int status = $lt_dlunknown; 18536 18537 if (self) 18538 { 18539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18540 else 18541 { 18542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18543 else puts (dlerror ()); 18544 } 18545 /* dlclose (self); */ 18546 } 18547 else 18548 puts (dlerror ()); 18549 18550 return status; 18551} 18552_LT_EOF 18553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18554 (eval $ac_link) 2>&5 18555 ac_status=$? 18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18557 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18558 (./conftest; exit; ) >&5 2>/dev/null 18559 lt_status=$? 18560 case x$lt_status in 18561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18564 esac 18565 else : 18566 # compilation failed 18567 lt_cv_dlopen_self_static=no 18568 fi 18569fi 18570rm -fr conftest* 18571 18572 18573fi 18574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18575$as_echo "$lt_cv_dlopen_self_static" >&6; } 18576 fi 18577 18578 CPPFLAGS=$save_CPPFLAGS 18579 LDFLAGS=$save_LDFLAGS 18580 LIBS=$save_LIBS 18581 ;; 18582 esac 18583 18584 case $lt_cv_dlopen_self in 18585 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18586 *) enable_dlopen_self=unknown ;; 18587 esac 18588 18589 case $lt_cv_dlopen_self_static in 18590 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18591 *) enable_dlopen_self_static=unknown ;; 18592 esac 18593fi 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611striplib= 18612old_striplib= 18613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18614$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18615if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18616 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18617 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18619$as_echo "yes" >&6; } 18620else 18621# FIXME - insert some real tests, host_os isn't really good enough 18622 case $host_os in 18623 darwin*) 18624 if test -n "$STRIP"; then 18625 striplib="$STRIP -x" 18626 old_striplib="$STRIP -S" 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18628$as_echo "yes" >&6; } 18629 else 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18631$as_echo "no" >&6; } 18632 fi 18633 ;; 18634 *) 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18636$as_echo "no" >&6; } 18637 ;; 18638 esac 18639fi 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 # Report what library types will actually be built 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18654$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18656$as_echo "$can_build_shared" >&6; } 18657 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18659$as_echo_n "checking whether to build shared libraries... " >&6; } 18660 test no = "$can_build_shared" && enable_shared=no 18661 18662 # On AIX, shared libraries and static libraries use the same namespace, and 18663 # are all built from PIC. 18664 case $host_os in 18665 aix3*) 18666 test yes = "$enable_shared" && enable_static=no 18667 if test -n "$RANLIB"; then 18668 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18669 postinstall_cmds='$RANLIB $lib' 18670 fi 18671 ;; 18672 18673 aix[4-9]*) 18674 if test ia64 != "$host_cpu"; then 18675 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18676 yes,aix,yes) ;; # shared object as lib.so file only 18677 yes,svr4,*) ;; # shared object as lib.so archive member only 18678 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18679 esac 18680 fi 18681 ;; 18682 esac 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18684$as_echo "$enable_shared" >&6; } 18685 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18687$as_echo_n "checking whether to build static libraries... " >&6; } 18688 # Make sure either enable_shared or enable_static is yes. 18689 test yes = "$enable_shared" || enable_static=yes 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18691$as_echo "$enable_static" >&6; } 18692 18693 18694 18695 18696fi 18697ac_ext=c 18698ac_cpp='$CPP $CPPFLAGS' 18699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18701ac_compiler_gnu=$ac_cv_c_compiler_gnu 18702 18703CC=$lt_save_CC 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 ac_config_commands="$ac_config_commands libtool" 18720 18721 18722 18723 18724# Only expand once: 18725 18726 18727 18728# Checks for programs. 18729 18730 18731if test "x$GCC" = "xyes"; then 18732 CPPFLAGS="$CPPFLAGS -Wall" 18733fi 18734 18735 18736 18737# Define a configure option for an alternate module directory 18738 18739# Check whether --with-xorg-module-dir was given. 18740if test "${with_xorg_module_dir+set}" = set; then : 18741 withval=$with_xorg_module_dir; moduledir="$withval" 18742else 18743 moduledir="$libdir/xorg/modules" 18744fi 18745 18746 18747# Store the list of server defined optional extensions in REQUIRED_MODULES 18748 18749 18750 SAVE_CFLAGS="$CFLAGS" 18751 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18753/* end confdefs.h. */ 18754 18755#include "xorg-server.h" 18756#if !defined RANDR 18757#error RANDR not defined 18758#endif 18759 18760int 18761main () 18762{ 18763 18764 ; 18765 return 0; 18766} 18767_ACEOF 18768if ac_fn_c_try_compile "$LINENO"; then : 18769 _EXT_CHECK=yes 18770else 18771 _EXT_CHECK=no 18772fi 18773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18774 CFLAGS="$SAVE_CFLAGS" 18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18776$as_echo_n "checking if RANDR is defined... " >&6; } 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18778$as_echo "$_EXT_CHECK" >&6; } 18779 if test "$_EXT_CHECK" != no; then 18780 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18781 fi 18782 18783 18784 18785 SAVE_CFLAGS="$CFLAGS" 18786 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18788/* end confdefs.h. */ 18789 18790#include "xorg-server.h" 18791#if !defined RENDER 18792#error RENDER not defined 18793#endif 18794 18795int 18796main () 18797{ 18798 18799 ; 18800 return 0; 18801} 18802_ACEOF 18803if ac_fn_c_try_compile "$LINENO"; then : 18804 _EXT_CHECK=yes 18805else 18806 _EXT_CHECK=no 18807fi 18808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18809 CFLAGS="$SAVE_CFLAGS" 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18811$as_echo_n "checking if RENDER is defined... " >&6; } 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18813$as_echo "$_EXT_CHECK" >&6; } 18814 if test "$_EXT_CHECK" != no; then 18815 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18816 fi 18817 18818 18819 18820 SAVE_CFLAGS="$CFLAGS" 18821 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18823/* end confdefs.h. */ 18824 18825#include "xorg-server.h" 18826#if !defined XV 18827#error XV not defined 18828#endif 18829 18830int 18831main () 18832{ 18833 18834 ; 18835 return 0; 18836} 18837_ACEOF 18838if ac_fn_c_try_compile "$LINENO"; then : 18839 _EXT_CHECK=yes 18840else 18841 _EXT_CHECK=no 18842fi 18843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18844 CFLAGS="$SAVE_CFLAGS" 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18846$as_echo_n "checking if XV is defined... " >&6; } 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18848$as_echo "$_EXT_CHECK" >&6; } 18849 if test "$_EXT_CHECK" != no; then 18850 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18851 fi 18852 18853 18854 18855 SAVE_CFLAGS="$CFLAGS" 18856 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18858/* end confdefs.h. */ 18859 18860#include "xorg-server.h" 18861#if !defined DPMSExtension 18862#error DPMSExtension not defined 18863#endif 18864 18865int 18866main () 18867{ 18868 18869 ; 18870 return 0; 18871} 18872_ACEOF 18873if ac_fn_c_try_compile "$LINENO"; then : 18874 _EXT_CHECK=yes 18875else 18876 _EXT_CHECK=no 18877fi 18878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18879 CFLAGS="$SAVE_CFLAGS" 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18881$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18883$as_echo "$_EXT_CHECK" >&6; } 18884 if test "$_EXT_CHECK" != no; then 18885 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18886 fi 18887 18888 18889# Checks for libraries. 18890 18891pkg_failed=no 18892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18893$as_echo_n "checking for LIBDRM... " >&6; } 18894 18895if test -n "$LIBDRM_CFLAGS"; then 18896 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18897 elif test -n "$PKG_CONFIG"; then 18898 if test -n "$PKG_CONFIG" && \ 18899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.72\""; } >&5 18900 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.72") 2>&5 18901 ac_status=$? 18902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18903 test $ac_status = 0; }; then 18904 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.72" 2>/dev/null` 18905 test "x$?" != "x0" && pkg_failed=yes 18906else 18907 pkg_failed=yes 18908fi 18909 else 18910 pkg_failed=untried 18911fi 18912if test -n "$LIBDRM_LIBS"; then 18913 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18914 elif test -n "$PKG_CONFIG"; then 18915 if test -n "$PKG_CONFIG" && \ 18916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.72\""; } >&5 18917 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.72") 2>&5 18918 ac_status=$? 18919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18920 test $ac_status = 0; }; then 18921 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.72" 2>/dev/null` 18922 test "x$?" != "x0" && pkg_failed=yes 18923else 18924 pkg_failed=yes 18925fi 18926 else 18927 pkg_failed=untried 18928fi 18929 18930 18931 18932if test $pkg_failed = yes; then 18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18934$as_echo "no" >&6; } 18935 18936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18937 _pkg_short_errors_supported=yes 18938else 18939 _pkg_short_errors_supported=no 18940fi 18941 if test $_pkg_short_errors_supported = yes; then 18942 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.72" 2>&1` 18943 else 18944 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.72" 2>&1` 18945 fi 18946 # Put the nasty error message in config.log where it belongs 18947 echo "$LIBDRM_PKG_ERRORS" >&5 18948 18949 as_fn_error $? "Package requirements (libdrm >= 2.4.72) were not met: 18950 18951$LIBDRM_PKG_ERRORS 18952 18953Consider adjusting the PKG_CONFIG_PATH environment variable if you 18954installed software in a non-standard prefix. 18955 18956Alternatively, you may set the environment variables LIBDRM_CFLAGS 18957and LIBDRM_LIBS to avoid the need to call pkg-config. 18958See the pkg-config man page for more details." "$LINENO" 5 18959elif test $pkg_failed = untried; then 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18961$as_echo "no" >&6; } 18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18964as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18965is in your PATH or set the PKG_CONFIG environment variable to the full 18966path to pkg-config. 18967 18968Alternatively, you may set the environment variables LIBDRM_CFLAGS 18969and LIBDRM_LIBS to avoid the need to call pkg-config. 18970See the pkg-config man page for more details. 18971 18972To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18973See \`config.log' for more details" "$LINENO" 5; } 18974else 18975 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 18976 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18978$as_echo "yes" >&6; } 18979 18980fi 18981 18982pkg_failed=no 18983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_AMDGPU" >&5 18984$as_echo_n "checking for LIBDRM_AMDGPU... " >&6; } 18985 18986if test -n "$LIBDRM_AMDGPU_CFLAGS"; then 18987 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS" 18988 elif test -n "$PKG_CONFIG"; then 18989 if test -n "$PKG_CONFIG" && \ 18990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.72\""; } >&5 18991 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.72") 2>&5 18992 ac_status=$? 18993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18994 test $ac_status = 0; }; then 18995 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu >= 2.4.72" 2>/dev/null` 18996 test "x$?" != "x0" && pkg_failed=yes 18997else 18998 pkg_failed=yes 18999fi 19000 else 19001 pkg_failed=untried 19002fi 19003if test -n "$LIBDRM_AMDGPU_LIBS"; then 19004 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS" 19005 elif test -n "$PKG_CONFIG"; then 19006 if test -n "$PKG_CONFIG" && \ 19007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.72\""; } >&5 19008 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.72") 2>&5 19009 ac_status=$? 19010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19011 test $ac_status = 0; }; then 19012 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu >= 2.4.72" 2>/dev/null` 19013 test "x$?" != "x0" && pkg_failed=yes 19014else 19015 pkg_failed=yes 19016fi 19017 else 19018 pkg_failed=untried 19019fi 19020 19021 19022 19023if test $pkg_failed = yes; then 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19025$as_echo "no" >&6; } 19026 19027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19028 _pkg_short_errors_supported=yes 19029else 19030 _pkg_short_errors_supported=no 19031fi 19032 if test $_pkg_short_errors_supported = yes; then 19033 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.72" 2>&1` 19034 else 19035 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.72" 2>&1` 19036 fi 19037 # Put the nasty error message in config.log where it belongs 19038 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5 19039 19040 as_fn_error $? "Package requirements (libdrm_amdgpu >= 2.4.72) were not met: 19041 19042$LIBDRM_AMDGPU_PKG_ERRORS 19043 19044Consider adjusting the PKG_CONFIG_PATH environment variable if you 19045installed software in a non-standard prefix. 19046 19047Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19048and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19049See the pkg-config man page for more details." "$LINENO" 5 19050elif test $pkg_failed = untried; then 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19052$as_echo "no" >&6; } 19053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19055as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19056is in your PATH or set the PKG_CONFIG environment variable to the full 19057path to pkg-config. 19058 19059Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19060and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19061See the pkg-config man page for more details. 19062 19063To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19064See \`config.log' for more details" "$LINENO" 5; } 19065else 19066 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS 19067 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19069$as_echo "yes" >&6; } 19070 19071fi 19072 19073pkg_failed=no 19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 19075$as_echo_n "checking for GBM... " >&6; } 19076 19077if test -n "$GBM_CFLAGS"; then 19078 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 19079 elif test -n "$PKG_CONFIG"; then 19080 if test -n "$PKG_CONFIG" && \ 19081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19082 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19083 ac_status=$? 19084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19085 test $ac_status = 0; }; then 19086 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null` 19087 test "x$?" != "x0" && pkg_failed=yes 19088else 19089 pkg_failed=yes 19090fi 19091 else 19092 pkg_failed=untried 19093fi 19094if test -n "$GBM_LIBS"; then 19095 pkg_cv_GBM_LIBS="$GBM_LIBS" 19096 elif test -n "$PKG_CONFIG"; then 19097 if test -n "$PKG_CONFIG" && \ 19098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19099 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19100 ac_status=$? 19101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19102 test $ac_status = 0; }; then 19103 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null` 19104 test "x$?" != "x0" && pkg_failed=yes 19105else 19106 pkg_failed=yes 19107fi 19108 else 19109 pkg_failed=untried 19110fi 19111 19112 19113 19114if test $pkg_failed = yes; then 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19116$as_echo "no" >&6; } 19117 19118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19119 _pkg_short_errors_supported=yes 19120else 19121 _pkg_short_errors_supported=no 19122fi 19123 if test $_pkg_short_errors_supported = yes; then 19124 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1` 19125 else 19126 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1` 19127 fi 19128 # Put the nasty error message in config.log where it belongs 19129 echo "$GBM_PKG_ERRORS" >&5 19130 19131 as_fn_error $? "Package requirements (gbm) were not met: 19132 19133$GBM_PKG_ERRORS 19134 19135Consider adjusting the PKG_CONFIG_PATH environment variable if you 19136installed software in a non-standard prefix. 19137 19138Alternatively, you may set the environment variables GBM_CFLAGS 19139and GBM_LIBS to avoid the need to call pkg-config. 19140See the pkg-config man page for more details." "$LINENO" 5 19141elif test $pkg_failed = untried; then 19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19143$as_echo "no" >&6; } 19144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19146as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19147is in your PATH or set the PKG_CONFIG environment variable to the full 19148path to pkg-config. 19149 19150Alternatively, you may set the environment variables GBM_CFLAGS 19151and GBM_LIBS to avoid the need to call pkg-config. 19152See the pkg-config man page for more details. 19153 19154To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19155See \`config.log' for more details" "$LINENO" 5; } 19156else 19157 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 19158 GBM_LIBS=$pkg_cv_GBM_LIBS 19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19160$as_echo "yes" >&6; } 19161 19162fi 19163 19164# Obtain compiler/linker options for the driver dependencies 19165 19166pkg_failed=no 19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19168$as_echo_n "checking for XORG... " >&6; } 19169 19170if test -n "$XORG_CFLAGS"; then 19171 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19172 elif test -n "$PKG_CONFIG"; then 19173 if test -n "$PKG_CONFIG" && \ 19174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19175 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19176 ac_status=$? 19177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19178 test $ac_status = 0; }; then 19179 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19180 test "x$?" != "x0" && pkg_failed=yes 19181else 19182 pkg_failed=yes 19183fi 19184 else 19185 pkg_failed=untried 19186fi 19187if test -n "$XORG_LIBS"; then 19188 pkg_cv_XORG_LIBS="$XORG_LIBS" 19189 elif test -n "$PKG_CONFIG"; then 19190 if test -n "$PKG_CONFIG" && \ 19191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19192 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19193 ac_status=$? 19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19195 test $ac_status = 0; }; then 19196 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19197 test "x$?" != "x0" && pkg_failed=yes 19198else 19199 pkg_failed=yes 19200fi 19201 else 19202 pkg_failed=untried 19203fi 19204 19205 19206 19207if test $pkg_failed = yes; then 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19209$as_echo "no" >&6; } 19210 19211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19212 _pkg_short_errors_supported=yes 19213else 19214 _pkg_short_errors_supported=no 19215fi 19216 if test $_pkg_short_errors_supported = yes; then 19217 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19218 else 19219 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19220 fi 19221 # Put the nasty error message in config.log where it belongs 19222 echo "$XORG_PKG_ERRORS" >&5 19223 19224 as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19225 19226$XORG_PKG_ERRORS 19227 19228Consider adjusting the PKG_CONFIG_PATH environment variable if you 19229installed software in a non-standard prefix. 19230 19231Alternatively, you may set the environment variables XORG_CFLAGS 19232and XORG_LIBS to avoid the need to call pkg-config. 19233See the pkg-config man page for more details." "$LINENO" 5 19234elif test $pkg_failed = untried; then 19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19236$as_echo "no" >&6; } 19237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19239as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19240is in your PATH or set the PKG_CONFIG environment variable to the full 19241path to pkg-config. 19242 19243Alternatively, you may set the environment variables XORG_CFLAGS 19244and XORG_LIBS to avoid the need to call pkg-config. 19245See the pkg-config man page for more details. 19246 19247To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19248See \`config.log' for more details" "$LINENO" 5; } 19249else 19250 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19251 XORG_LIBS=$pkg_cv_XORG_LIBS 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19253$as_echo "yes" >&6; } 19254 19255fi 19256 19257pkg_failed=no 19258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19259$as_echo_n "checking for XEXT... " >&6; } 19260 19261if test -n "$XEXT_CFLAGS"; then 19262 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19263 elif test -n "$PKG_CONFIG"; then 19264 if test -n "$PKG_CONFIG" && \ 19265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19266 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19267 ac_status=$? 19268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19269 test $ac_status = 0; }; then 19270 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19271 test "x$?" != "x0" && pkg_failed=yes 19272else 19273 pkg_failed=yes 19274fi 19275 else 19276 pkg_failed=untried 19277fi 19278if test -n "$XEXT_LIBS"; then 19279 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19280 elif test -n "$PKG_CONFIG"; then 19281 if test -n "$PKG_CONFIG" && \ 19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19283 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19284 ac_status=$? 19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19286 test $ac_status = 0; }; then 19287 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19288 test "x$?" != "x0" && pkg_failed=yes 19289else 19290 pkg_failed=yes 19291fi 19292 else 19293 pkg_failed=untried 19294fi 19295 19296 19297 19298if test $pkg_failed = yes; then 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19300$as_echo "no" >&6; } 19301 19302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19303 _pkg_short_errors_supported=yes 19304else 19305 _pkg_short_errors_supported=no 19306fi 19307 if test $_pkg_short_errors_supported = yes; then 19308 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19309 else 19310 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19311 fi 19312 # Put the nasty error message in config.log where it belongs 19313 echo "$XEXT_PKG_ERRORS" >&5 19314 19315 HAVE_XEXTPROTO_71="no" 19316elif test $pkg_failed = untried; then 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19318$as_echo "no" >&6; } 19319 HAVE_XEXTPROTO_71="no" 19320else 19321 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19322 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19324$as_echo "yes" >&6; } 19325 HAVE_XEXTPROTO_71="yes"; 19326$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19327 19328fi 19329 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19330 HAVE_XEXTPROTO_71_TRUE= 19331 HAVE_XEXTPROTO_71_FALSE='#' 19332else 19333 HAVE_XEXTPROTO_71_TRUE='#' 19334 HAVE_XEXTPROTO_71_FALSE= 19335fi 19336 19337 19338# Section "OutputClass" is only supported as of xserver 1.16 19339if test -n "$PKG_CONFIG" && \ 19340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5 19341 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5 19342 ac_status=$? 19343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19344 test $ac_status = 0; }; then 19345 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 19346else 19347 sysconfigdir="" 19348fi 19349 if test "x$sysconfigdir" != "x"; then 19350 HAS_XORG_CONF_DIR_TRUE= 19351 HAS_XORG_CONF_DIR_FALSE='#' 19352else 19353 HAS_XORG_CONF_DIR_TRUE='#' 19354 HAS_XORG_CONF_DIR_FALSE= 19355fi 19356 19357 19358# Define a configure option for an alternate X Server configuration directory 19359 19360# Check whether --with-xorg-conf-dir was given. 19361if test "${with_xorg_conf_dir+set}" = set; then : 19362 withval=$with_xorg_conf_dir; configdir="$withval" 19363else 19364 configdir='${prefix}/share/X11/xorg.conf.d' 19365fi 19366 19367 19368 19369# Check whether --enable-udev was given. 19370if test "${enable_udev+set}" = set; then : 19371 enableval=$enable_udev; enable_udev="$enableval" 19372else 19373 enable_udev=auto 19374fi 19375 19376if test "x$enable_udev" != "xno"; then 19377 19378pkg_failed=no 19379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19380$as_echo_n "checking for LIBUDEV... " >&6; } 19381 19382if test -n "$LIBUDEV_CFLAGS"; then 19383 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19384 elif test -n "$PKG_CONFIG"; then 19385 if test -n "$PKG_CONFIG" && \ 19386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19387 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19388 ac_status=$? 19389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19390 test $ac_status = 0; }; then 19391 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19392 test "x$?" != "x0" && pkg_failed=yes 19393else 19394 pkg_failed=yes 19395fi 19396 else 19397 pkg_failed=untried 19398fi 19399if test -n "$LIBUDEV_LIBS"; then 19400 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19401 elif test -n "$PKG_CONFIG"; then 19402 if test -n "$PKG_CONFIG" && \ 19403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19404 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19405 ac_status=$? 19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19407 test $ac_status = 0; }; then 19408 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19409 test "x$?" != "x0" && pkg_failed=yes 19410else 19411 pkg_failed=yes 19412fi 19413 else 19414 pkg_failed=untried 19415fi 19416 19417 19418 19419if test $pkg_failed = yes; then 19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19421$as_echo "no" >&6; } 19422 19423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19424 _pkg_short_errors_supported=yes 19425else 19426 _pkg_short_errors_supported=no 19427fi 19428 if test $_pkg_short_errors_supported = yes; then 19429 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19430 else 19431 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19432 fi 19433 # Put the nasty error message in config.log where it belongs 19434 echo "$LIBUDEV_PKG_ERRORS" >&5 19435 19436 LIBUDEV=no 19437elif test $pkg_failed = untried; then 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19439$as_echo "no" >&6; } 19440 LIBUDEV=no 19441else 19442 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19443 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19445$as_echo "yes" >&6; } 19446 LIBUDEV=yes 19447fi 19448 if test "x$LIBUDEV" = xyes; then 19449 19450$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19451 19452 elif test "x$enable_udev" != "xauto"; then 19453 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 19454 fi 19455fi 19456 if test x$LIBUDEV = xyes; then 19457 LIBUDEV_TRUE= 19458 LIBUDEV_FALSE='#' 19459else 19460 LIBUDEV_TRUE='#' 19461 LIBUDEV_FALSE= 19462fi 19463 19464 19465SAVE_CPPFLAGS="$CPPFLAGS" 19466CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19467 19468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19469$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19470# Check whether --enable-glamor was given. 19471if test "${enable_glamor+set}" = set; then : 19472 enableval=$enable_glamor; GLAMOR="$enableval" 19473else 19474 GLAMOR=yes 19475fi 19476 19477 19478if test "x$GLAMOR" != "xno"; then 19479 for ac_header in glamor.h 19480do : 19481 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19482" 19483if test "x$ac_cv_header_glamor_h" = xyes; then : 19484 cat >>confdefs.h <<_ACEOF 19485#define HAVE_GLAMOR_H 1 19486_ACEOF 19487 GLAMOR_H="yes" 19488else 19489 GLAMOR_H="no" 19490fi 19491 19492done 19493 19494 19495 if test "x$GLAMOR_H" = xyes; then 19496 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 19497 #include \"glamor.h\" 19498" 19499if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then : 19500 GLAMOR_XSERVER="yes" 19501else 19502 GLAMOR_XSERVER="no" 19503fi 19504 19505 19506 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 19507 #include \"glamor.h\" 19508" 19509if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then : 19510 19511$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 19512 19513fi 19514 19515 19516 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 19517 #include \"glamor.h\" 19518" 19519if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then : 19520 19521$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 19522 19523fi 19524 19525 19526 ac_fn_c_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\" 19527 #include \"glamor.h\" 19528" 19529if test "x$ac_cv_have_decl_glamor_finish" = xyes; then : 19530 19531$as_echo "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h 19532 19533else 19534 19535pkg_failed=no 19536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5 19537$as_echo_n "checking for LIBGL... " >&6; } 19538 19539if test -n "$LIBGL_CFLAGS"; then 19540 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS" 19541 elif test -n "$PKG_CONFIG"; then 19542 if test -n "$PKG_CONFIG" && \ 19543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19544 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19545 ac_status=$? 19546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19547 test $ac_status = 0; }; then 19548 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 19549 test "x$?" != "x0" && pkg_failed=yes 19550else 19551 pkg_failed=yes 19552fi 19553 else 19554 pkg_failed=untried 19555fi 19556if test -n "$LIBGL_LIBS"; then 19557 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS" 19558 elif test -n "$PKG_CONFIG"; then 19559 if test -n "$PKG_CONFIG" && \ 19560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19561 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19562 ac_status=$? 19563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19564 test $ac_status = 0; }; then 19565 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 19566 test "x$?" != "x0" && pkg_failed=yes 19567else 19568 pkg_failed=yes 19569fi 19570 else 19571 pkg_failed=untried 19572fi 19573 19574 19575 19576if test $pkg_failed = yes; then 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19578$as_echo "no" >&6; } 19579 19580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19581 _pkg_short_errors_supported=yes 19582else 19583 _pkg_short_errors_supported=no 19584fi 19585 if test $_pkg_short_errors_supported = yes; then 19586 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 19587 else 19588 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 19589 fi 19590 # Put the nasty error message in config.log where it belongs 19591 echo "$LIBGL_PKG_ERRORS" >&5 19592 19593 as_fn_error $? "Package requirements (gl) were not met: 19594 19595$LIBGL_PKG_ERRORS 19596 19597Consider adjusting the PKG_CONFIG_PATH environment variable if you 19598installed software in a non-standard prefix. 19599 19600Alternatively, you may set the environment variables LIBGL_CFLAGS 19601and LIBGL_LIBS to avoid the need to call pkg-config. 19602See the pkg-config man page for more details." "$LINENO" 5 19603elif test $pkg_failed = untried; then 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19605$as_echo "no" >&6; } 19606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19608as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19609is in your PATH or set the PKG_CONFIG environment variable to the full 19610path to pkg-config. 19611 19612Alternatively, you may set the environment variables LIBGL_CFLAGS 19613and LIBGL_LIBS to avoid the need to call pkg-config. 19614See the pkg-config man page for more details. 19615 19616To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19617See \`config.log' for more details" "$LINENO" 5; } 19618else 19619 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS 19620 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19622$as_echo "yes" >&6; } 19623 19624fi 19625fi 19626 19627 fi 19628 19629 if test "x$GLAMOR_XSERVER" != xyes; then 19630 19631pkg_failed=no 19632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5 19633$as_echo_n "checking for LIBGLAMOR... " >&6; } 19634 19635if test -n "$LIBGLAMOR_CFLAGS"; then 19636 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 19637 elif test -n "$PKG_CONFIG"; then 19638 if test -n "$PKG_CONFIG" && \ 19639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19640 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19641 ac_status=$? 19642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19643 test $ac_status = 0; }; then 19644 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 19645 test "x$?" != "x0" && pkg_failed=yes 19646else 19647 pkg_failed=yes 19648fi 19649 else 19650 pkg_failed=untried 19651fi 19652if test -n "$LIBGLAMOR_LIBS"; then 19653 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 19654 elif test -n "$PKG_CONFIG"; then 19655 if test -n "$PKG_CONFIG" && \ 19656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19657 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19658 ac_status=$? 19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19660 test $ac_status = 0; }; then 19661 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 19662 test "x$?" != "x0" && pkg_failed=yes 19663else 19664 pkg_failed=yes 19665fi 19666 else 19667 pkg_failed=untried 19668fi 19669 19670 19671 19672if test $pkg_failed = yes; then 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19674$as_echo "no" >&6; } 19675 19676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19677 _pkg_short_errors_supported=yes 19678else 19679 _pkg_short_errors_supported=no 19680fi 19681 if test $_pkg_short_errors_supported = yes; then 19682 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19683 else 19684 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19685 fi 19686 # Put the nasty error message in config.log where it belongs 19687 echo "$LIBGLAMOR_PKG_ERRORS" >&5 19688 19689 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 19690 19691$LIBGLAMOR_PKG_ERRORS 19692 19693Consider adjusting the PKG_CONFIG_PATH environment variable if you 19694installed software in a non-standard prefix. 19695 19696Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19697and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19698See the pkg-config man page for more details." "$LINENO" 5 19699elif test $pkg_failed = untried; then 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19701$as_echo "no" >&6; } 19702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19704as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19705is in your PATH or set the PKG_CONFIG environment variable to the full 19706path to pkg-config. 19707 19708Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19709and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19710See the pkg-config man page for more details. 19711 19712To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19713See \`config.log' for more details" "$LINENO" 5; } 19714else 19715 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 19716 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19718$as_echo "yes" >&6; } 19719 19720fi 19721 19722pkg_failed=no 19723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5 19724$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; } 19725 19726if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 19727 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 19728 elif test -n "$PKG_CONFIG"; then 19729 if test -n "$PKG_CONFIG" && \ 19730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19731 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19732 ac_status=$? 19733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19734 test $ac_status = 0; }; then 19735 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 19736 test "x$?" != "x0" && pkg_failed=yes 19737else 19738 pkg_failed=yes 19739fi 19740 else 19741 pkg_failed=untried 19742fi 19743if test -n "$LIBGLAMOR_EGL_LIBS"; then 19744 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 19745 elif test -n "$PKG_CONFIG"; then 19746 if test -n "$PKG_CONFIG" && \ 19747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19748 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19749 ac_status=$? 19750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19751 test $ac_status = 0; }; then 19752 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 19753 test "x$?" != "x0" && pkg_failed=yes 19754else 19755 pkg_failed=yes 19756fi 19757 else 19758 pkg_failed=untried 19759fi 19760 19761 19762 19763if test $pkg_failed = yes; then 19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19765$as_echo "no" >&6; } 19766 19767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19768 _pkg_short_errors_supported=yes 19769else 19770 _pkg_short_errors_supported=no 19771fi 19772 if test $_pkg_short_errors_supported = yes; then 19773 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 19774 else 19775 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 19776 fi 19777 # Put the nasty error message in config.log where it belongs 19778 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 19779 19780 as_fn_error $? "Package requirements (glamor-egl) were not met: 19781 19782$LIBGLAMOR_EGL_PKG_ERRORS 19783 19784Consider adjusting the PKG_CONFIG_PATH environment variable if you 19785installed software in a non-standard prefix. 19786 19787Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19788and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19789See the pkg-config man page for more details." "$LINENO" 5 19790elif test $pkg_failed = untried; then 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19792$as_echo "no" >&6; } 19793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19795as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19796is in your PATH or set the PKG_CONFIG environment variable to the full 19797path to pkg-config. 19798 19799Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19800and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19801See the pkg-config man page for more details. 19802 19803To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19804See \`config.log' for more details" "$LINENO" 5; } 19805else 19806 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 19807 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19809$as_echo "yes" >&6; } 19810 19811fi 19812 fi 19813 19814$as_echo "#define USE_GLAMOR 1" >>confdefs.h 19815 19816else 19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 19818$as_echo "$GLAMOR" >&6; } 19819fi 19820 if test x$GLAMOR != xno; then 19821 GLAMOR_TRUE= 19822 GLAMOR_FALSE='#' 19823else 19824 GLAMOR_TRUE='#' 19825 GLAMOR_FALSE= 19826fi 19827 19828 19829ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h> 19830 #include <regionstr.h> 19831" 19832if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then : 19833 19834$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h 19835 19836fi 19837 19838 19839ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 19840 #include <X11/Xfuncproto.h> 19841 #include <X11/extensions/renderproto.h> 19842 #include <xorg-server.h> 19843 #include <picture.h> 19844 #include <glyphstr.h> 19845 #include <fbpict.h> 19846" 19847if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then : 19848 19849$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h 19850 19851fi 19852 19853 19854ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 19855 #include <xf86Cursor.h> 19856" 19857if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then : 19858 19859$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 19860 19861fi 19862 19863 19864ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h> 19865 #include \"xorg-server.h\" 19866 #include \"list.h\" 19867" 19868if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then : 19869 19870$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h 19871 19872fi 19873 19874 19875ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 19876 #include <gbm.h> 19877" 19878if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 19879 19880$as_echo "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h 19881 19882fi 19883 19884 19885for ac_header in misyncshm.h 19886do : 19887 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 19888 #include <X11/Xfuncproto.h> 19889 #include <xorg-server.h> 19890 #include <screenint.h> 19891" 19892if test "x$ac_cv_header_misyncshm_h" = xyes; then : 19893 cat >>confdefs.h <<_ACEOF 19894#define HAVE_MISYNCSHM_H 1 19895_ACEOF 19896 19897fi 19898 19899done 19900 19901 19902for ac_header in present.h 19903do : 19904 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 19905 #include <X11/Xproto.h> 19906 #include <X11/X.h> 19907 #include \"xorg-server.h\" 19908" 19909if test "x$ac_cv_header_present_h" = xyes; then : 19910 cat >>confdefs.h <<_ACEOF 19911#define HAVE_PRESENT_H 1 19912_ACEOF 19913 19914fi 19915 19916done 19917 19918 19919for ac_header in dri3.h 19920do : 19921 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 19922 #include <xorg-server.h> 19923" 19924if test "x$ac_cv_header_dri3_h" = xyes; then : 19925 cat >>confdefs.h <<_ACEOF 19926#define HAVE_DRI3_H 1 19927_ACEOF 19928 19929fi 19930 19931done 19932 19933 19934CPPFLAGS="$SAVE_CPPFLAGS" 19935 19936# Checks for headers/macros for byte swapping 19937# Known variants: 19938# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 19939# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 19940# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 19941# and a fallback to local macros if none of the above are found 19942 19943# if <byteswap.h> is found, assume it's the correct version 19944for ac_header in byteswap.h 19945do : 19946 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 19947if test "x$ac_cv_header_byteswap_h" = xyes; then : 19948 cat >>confdefs.h <<_ACEOF 19949#define HAVE_BYTESWAP_H 1 19950_ACEOF 19951 19952fi 19953 19954done 19955 19956 19957# if <sys/endian.h> is found, have to check which version 19958ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 19959if test "x$ac_cv_header_sys_endian_h" = xyes; then : 19960 HAVE_SYS_ENDIAN_H="yes" 19961else 19962 HAVE_SYS_ENDIAN_H="no" 19963fi 19964 19965 19966 19967if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 19969$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 19970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19971/* end confdefs.h. */ 19972 19973#include <sys/types.h> 19974#include <sys/endian.h> 19975 19976int 19977main () 19978{ 19979 19980int a = 1, b; 19981b = __swap16(a); 19982 19983 ; 19984 return 0; 19985} 19986 19987_ACEOF 19988if ac_fn_c_try_link "$LINENO"; then : 19989 SYS_ENDIAN__SWAP='yes' 19990else 19991 SYS_ENDIAN__SWAP='no' 19992fi 19993rm -f core conftest.err conftest.$ac_objext \ 19994 conftest$ac_exeext conftest.$ac_ext 19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 19996$as_echo "$SYS_ENDIAN__SWAP" >&6; } 19997 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 19999$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20001/* end confdefs.h. */ 20002 20003#include <sys/types.h> 20004#include <sys/endian.h> 20005 20006int 20007main () 20008{ 20009 20010int a = 1, b; 20011b = bswap16(a); 20012 20013 ; 20014 return 0; 20015} 20016 20017_ACEOF 20018if ac_fn_c_try_link "$LINENO"; then : 20019 SYS_ENDIAN_BSWAP='yes' 20020else 20021 SYS_ENDIAN_BSWAP='no' 20022fi 20023rm -f core conftest.err conftest.$ac_objext \ 20024 conftest$ac_exeext conftest.$ac_ext 20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20026$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 20027 20028 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20029 USE_SYS_ENDIAN_H=yes 20030 BSWAP=bswap 20031 else 20032 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20033 USE_SYS_ENDIAN_H=yes 20034 BSWAP=__swap 20035 else 20036 USE_SYS_ENDIAN_H=no 20037 fi 20038 fi 20039 20040 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20041 20042$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20043 20044 20045cat >>confdefs.h <<_ACEOF 20046#define bswap_16 ${BSWAP}16 20047_ACEOF 20048 20049 20050cat >>confdefs.h <<_ACEOF 20051#define bswap_32 ${BSWAP}32 20052_ACEOF 20053 20054 20055cat >>confdefs.h <<_ACEOF 20056#define bswap_64 ${BSWAP}64 20057_ACEOF 20058 20059 fi 20060fi 20061 20062 20063 20064DRIVER_NAME=amdgpu 20065 20066 20067ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile" 20068 20069cat >confcache <<\_ACEOF 20070# This file is a shell script that caches the results of configure 20071# tests run on this system so they can be shared between configure 20072# scripts and configure runs, see configure's option --config-cache. 20073# It is not useful on other systems. If it contains results you don't 20074# want to keep, you may remove or edit it. 20075# 20076# config.status only pays attention to the cache file if you give it 20077# the --recheck option to rerun configure. 20078# 20079# `ac_cv_env_foo' variables (set or unset) will be overridden when 20080# loading this file, other *unset* `ac_cv_foo' will be assigned the 20081# following values. 20082 20083_ACEOF 20084 20085# The following way of writing the cache mishandles newlines in values, 20086# but we know of no workaround that is simple, portable, and efficient. 20087# So, we kill variables containing newlines. 20088# Ultrix sh set writes to stderr and can't be redirected directly, 20089# and sets the high bit in the cache file unless we assign to the vars. 20090( 20091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20092 eval ac_val=\$$ac_var 20093 case $ac_val in #( 20094 *${as_nl}*) 20095 case $ac_var in #( 20096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20098 esac 20099 case $ac_var in #( 20100 _ | IFS | as_nl) ;; #( 20101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20102 *) { eval $ac_var=; unset $ac_var;} ;; 20103 esac ;; 20104 esac 20105 done 20106 20107 (set) 2>&1 | 20108 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20109 *${as_nl}ac_space=\ *) 20110 # `set' does not quote correctly, so add quotes: double-quote 20111 # substitution turns \\\\ into \\, and sed turns \\ into \. 20112 sed -n \ 20113 "s/'/'\\\\''/g; 20114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20115 ;; #( 20116 *) 20117 # `set' quotes correctly as required by POSIX, so do not add quotes. 20118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20119 ;; 20120 esac | 20121 sort 20122) | 20123 sed ' 20124 /^ac_cv_env_/b end 20125 t clear 20126 :clear 20127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20128 t end 20129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20130 :end' >>confcache 20131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20132 if test -w "$cache_file"; then 20133 if test "x$cache_file" != "x/dev/null"; then 20134 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20135$as_echo "$as_me: updating cache $cache_file" >&6;} 20136 if test ! -f "$cache_file" || test -h "$cache_file"; then 20137 cat confcache >"$cache_file" 20138 else 20139 case $cache_file in #( 20140 */* | ?:*) 20141 mv -f confcache "$cache_file"$$ && 20142 mv -f "$cache_file"$$ "$cache_file" ;; #( 20143 *) 20144 mv -f confcache "$cache_file" ;; 20145 esac 20146 fi 20147 fi 20148 else 20149 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20150$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20151 fi 20152fi 20153rm -f confcache 20154 20155test "x$prefix" = xNONE && prefix=$ac_default_prefix 20156# Let make expand exec_prefix. 20157test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20158 20159DEFS=-DHAVE_CONFIG_H 20160 20161ac_libobjs= 20162ac_ltlibobjs= 20163U= 20164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20165 # 1. Remove the extension, and $U if already installed. 20166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20169 # will be set to the directory where LIBOBJS objects are built. 20170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20172done 20173LIBOBJS=$ac_libobjs 20174 20175LTLIBOBJS=$ac_ltlibobjs 20176 20177 20178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20179$as_echo_n "checking that generated files are newer than configure... " >&6; } 20180 if test -n "$am_sleep_pid"; then 20181 # Hide warnings about reused PIDs. 20182 wait $am_sleep_pid 2>/dev/null 20183 fi 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20185$as_echo "done" >&6; } 20186 if test -n "$EXEEXT"; then 20187 am__EXEEXT_TRUE= 20188 am__EXEEXT_FALSE='#' 20189else 20190 am__EXEEXT_TRUE='#' 20191 am__EXEEXT_FALSE= 20192fi 20193 20194if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20195 as_fn_error $? "conditional \"AMDEP\" was never defined. 20196Usually this means the macro was only invoked conditionally." "$LINENO" 5 20197fi 20198if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20199 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20200Usually this means the macro was only invoked conditionally." "$LINENO" 5 20201fi 20202if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20203 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20204Usually this means the macro was only invoked conditionally." "$LINENO" 5 20205fi 20206if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 20207 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 20208Usually this means the macro was only invoked conditionally." "$LINENO" 5 20209fi 20210if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20211 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20212Usually this means the macro was only invoked conditionally." "$LINENO" 5 20213fi 20214if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20215 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20216Usually this means the macro was only invoked conditionally." "$LINENO" 5 20217fi 20218 20219: "${CONFIG_STATUS=./config.status}" 20220ac_write_fail=0 20221ac_clean_files_save=$ac_clean_files 20222ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20225as_write_fail=0 20226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20227#! $SHELL 20228# Generated by $as_me. 20229# Run this file to recreate the current configuration. 20230# Compiler output produced by configure, useful for debugging 20231# configure, is in config.log if it exists. 20232 20233debug=false 20234ac_cs_recheck=false 20235ac_cs_silent=false 20236 20237SHELL=\${CONFIG_SHELL-$SHELL} 20238export SHELL 20239_ASEOF 20240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20241## -------------------- ## 20242## M4sh Initialization. ## 20243## -------------------- ## 20244 20245# Be more Bourne compatible 20246DUALCASE=1; export DUALCASE # for MKS sh 20247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20248 emulate sh 20249 NULLCMD=: 20250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20251 # is contrary to our usage. Disable this feature. 20252 alias -g '${1+"$@"}'='"$@"' 20253 setopt NO_GLOB_SUBST 20254else 20255 case `(set -o) 2>/dev/null` in #( 20256 *posix*) : 20257 set -o posix ;; #( 20258 *) : 20259 ;; 20260esac 20261fi 20262 20263 20264as_nl=' 20265' 20266export as_nl 20267# Printing a long string crashes Solaris 7 /usr/bin/printf. 20268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20271# Prefer a ksh shell builtin over an external printf program on Solaris, 20272# but without wasting forks for bash or zsh. 20273if test -z "$BASH_VERSION$ZSH_VERSION" \ 20274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20275 as_echo='print -r --' 20276 as_echo_n='print -rn --' 20277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20278 as_echo='printf %s\n' 20279 as_echo_n='printf %s' 20280else 20281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20282 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20283 as_echo_n='/usr/ucb/echo -n' 20284 else 20285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20286 as_echo_n_body='eval 20287 arg=$1; 20288 case $arg in #( 20289 *"$as_nl"*) 20290 expr "X$arg" : "X\\(.*\\)$as_nl"; 20291 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20292 esac; 20293 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20294 ' 20295 export as_echo_n_body 20296 as_echo_n='sh -c $as_echo_n_body as_echo' 20297 fi 20298 export as_echo_body 20299 as_echo='sh -c $as_echo_body as_echo' 20300fi 20301 20302# The user is always right. 20303if test "${PATH_SEPARATOR+set}" != set; then 20304 PATH_SEPARATOR=: 20305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20306 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20307 PATH_SEPARATOR=';' 20308 } 20309fi 20310 20311 20312# IFS 20313# We need space, tab and new line, in precisely that order. Quoting is 20314# there to prevent editors from complaining about space-tab. 20315# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20316# splitting by setting IFS to empty value.) 20317IFS=" "" $as_nl" 20318 20319# Find who we are. Look in the path if we contain no directory separator. 20320as_myself= 20321case $0 in #(( 20322 *[\\/]* ) as_myself=$0 ;; 20323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20324for as_dir in $PATH 20325do 20326 IFS=$as_save_IFS 20327 test -z "$as_dir" && as_dir=. 20328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20329 done 20330IFS=$as_save_IFS 20331 20332 ;; 20333esac 20334# We did not find ourselves, most probably we were run as `sh COMMAND' 20335# in which case we are not to be found in the path. 20336if test "x$as_myself" = x; then 20337 as_myself=$0 20338fi 20339if test ! -f "$as_myself"; then 20340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20341 exit 1 20342fi 20343 20344# Unset variables that we do not need and which cause bugs (e.g. in 20345# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20346# suppresses any "Segmentation fault" message there. '((' could 20347# trigger a bug in pdksh 5.2.14. 20348for as_var in BASH_ENV ENV MAIL MAILPATH 20349do eval test x\${$as_var+set} = xset \ 20350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20351done 20352PS1='$ ' 20353PS2='> ' 20354PS4='+ ' 20355 20356# NLS nuisances. 20357LC_ALL=C 20358export LC_ALL 20359LANGUAGE=C 20360export LANGUAGE 20361 20362# CDPATH. 20363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20364 20365 20366# as_fn_error STATUS ERROR [LINENO LOG_FD] 20367# ---------------------------------------- 20368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20370# script with STATUS, using 1 if that was 0. 20371as_fn_error () 20372{ 20373 as_status=$1; test $as_status -eq 0 && as_status=1 20374 if test "$4"; then 20375 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20377 fi 20378 $as_echo "$as_me: error: $2" >&2 20379 as_fn_exit $as_status 20380} # as_fn_error 20381 20382 20383# as_fn_set_status STATUS 20384# ----------------------- 20385# Set $? to STATUS, without forking. 20386as_fn_set_status () 20387{ 20388 return $1 20389} # as_fn_set_status 20390 20391# as_fn_exit STATUS 20392# ----------------- 20393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20394as_fn_exit () 20395{ 20396 set +e 20397 as_fn_set_status $1 20398 exit $1 20399} # as_fn_exit 20400 20401# as_fn_unset VAR 20402# --------------- 20403# Portably unset VAR. 20404as_fn_unset () 20405{ 20406 { eval $1=; unset $1;} 20407} 20408as_unset=as_fn_unset 20409# as_fn_append VAR VALUE 20410# ---------------------- 20411# Append the text in VALUE to the end of the definition contained in VAR. Take 20412# advantage of any shell optimizations that allow amortized linear growth over 20413# repeated appends, instead of the typical quadratic growth present in naive 20414# implementations. 20415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20416 eval 'as_fn_append () 20417 { 20418 eval $1+=\$2 20419 }' 20420else 20421 as_fn_append () 20422 { 20423 eval $1=\$$1\$2 20424 } 20425fi # as_fn_append 20426 20427# as_fn_arith ARG... 20428# ------------------ 20429# Perform arithmetic evaluation on the ARGs, and store the result in the 20430# global $as_val. Take advantage of shells that can avoid forks. The arguments 20431# must be portable across $(()) and expr. 20432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20433 eval 'as_fn_arith () 20434 { 20435 as_val=$(( $* )) 20436 }' 20437else 20438 as_fn_arith () 20439 { 20440 as_val=`expr "$@" || test $? -eq 1` 20441 } 20442fi # as_fn_arith 20443 20444 20445if expr a : '\(a\)' >/dev/null 2>&1 && 20446 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20447 as_expr=expr 20448else 20449 as_expr=false 20450fi 20451 20452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20453 as_basename=basename 20454else 20455 as_basename=false 20456fi 20457 20458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20459 as_dirname=dirname 20460else 20461 as_dirname=false 20462fi 20463 20464as_me=`$as_basename -- "$0" || 20465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20466 X"$0" : 'X\(//\)$' \| \ 20467 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20468$as_echo X/"$0" | 20469 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20470 s//\1/ 20471 q 20472 } 20473 /^X\/\(\/\/\)$/{ 20474 s//\1/ 20475 q 20476 } 20477 /^X\/\(\/\).*/{ 20478 s//\1/ 20479 q 20480 } 20481 s/.*/./; q'` 20482 20483# Avoid depending upon Character Ranges. 20484as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20486as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20487as_cr_digits='0123456789' 20488as_cr_alnum=$as_cr_Letters$as_cr_digits 20489 20490ECHO_C= ECHO_N= ECHO_T= 20491case `echo -n x` in #((((( 20492-n*) 20493 case `echo 'xy\c'` in 20494 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20495 xy) ECHO_C='\c';; 20496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20497 ECHO_T=' ';; 20498 esac;; 20499*) 20500 ECHO_N='-n';; 20501esac 20502 20503rm -f conf$$ conf$$.exe conf$$.file 20504if test -d conf$$.dir; then 20505 rm -f conf$$.dir/conf$$.file 20506else 20507 rm -f conf$$.dir 20508 mkdir conf$$.dir 2>/dev/null 20509fi 20510if (echo >conf$$.file) 2>/dev/null; then 20511 if ln -s conf$$.file conf$$ 2>/dev/null; then 20512 as_ln_s='ln -s' 20513 # ... but there are two gotchas: 20514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20516 # In both cases, we have to default to `cp -pR'. 20517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20518 as_ln_s='cp -pR' 20519 elif ln conf$$.file conf$$ 2>/dev/null; then 20520 as_ln_s=ln 20521 else 20522 as_ln_s='cp -pR' 20523 fi 20524else 20525 as_ln_s='cp -pR' 20526fi 20527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20528rmdir conf$$.dir 2>/dev/null 20529 20530 20531# as_fn_mkdir_p 20532# ------------- 20533# Create "$as_dir" as a directory, including parents if necessary. 20534as_fn_mkdir_p () 20535{ 20536 20537 case $as_dir in #( 20538 -*) as_dir=./$as_dir;; 20539 esac 20540 test -d "$as_dir" || eval $as_mkdir_p || { 20541 as_dirs= 20542 while :; do 20543 case $as_dir in #( 20544 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20545 *) as_qdir=$as_dir;; 20546 esac 20547 as_dirs="'$as_qdir' $as_dirs" 20548 as_dir=`$as_dirname -- "$as_dir" || 20549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20550 X"$as_dir" : 'X\(//\)[^/]' \| \ 20551 X"$as_dir" : 'X\(//\)$' \| \ 20552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20553$as_echo X"$as_dir" | 20554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20555 s//\1/ 20556 q 20557 } 20558 /^X\(\/\/\)[^/].*/{ 20559 s//\1/ 20560 q 20561 } 20562 /^X\(\/\/\)$/{ 20563 s//\1/ 20564 q 20565 } 20566 /^X\(\/\).*/{ 20567 s//\1/ 20568 q 20569 } 20570 s/.*/./; q'` 20571 test -d "$as_dir" && break 20572 done 20573 test -z "$as_dirs" || eval "mkdir $as_dirs" 20574 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20575 20576 20577} # as_fn_mkdir_p 20578if mkdir -p . 2>/dev/null; then 20579 as_mkdir_p='mkdir -p "$as_dir"' 20580else 20581 test -d ./-p && rmdir ./-p 20582 as_mkdir_p=false 20583fi 20584 20585 20586# as_fn_executable_p FILE 20587# ----------------------- 20588# Test if FILE is an executable regular file. 20589as_fn_executable_p () 20590{ 20591 test -f "$1" && test -x "$1" 20592} # as_fn_executable_p 20593as_test_x='test -x' 20594as_executable_p=as_fn_executable_p 20595 20596# Sed expression to map a string onto a valid CPP name. 20597as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20598 20599# Sed expression to map a string onto a valid variable name. 20600as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20601 20602 20603exec 6>&1 20604## ----------------------------------- ## 20605## Main body of $CONFIG_STATUS script. ## 20606## ----------------------------------- ## 20607_ASEOF 20608test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20609 20610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20611# Save the log message, to keep $0 and so on meaningful, and to 20612# report actual input values of CONFIG_FILES etc. instead of their 20613# values after options handling. 20614ac_log=" 20615This file was extended by xf86-video-amdgpu $as_me 1.3.0, which was 20616generated by GNU Autoconf 2.69. Invocation command line was 20617 20618 CONFIG_FILES = $CONFIG_FILES 20619 CONFIG_HEADERS = $CONFIG_HEADERS 20620 CONFIG_LINKS = $CONFIG_LINKS 20621 CONFIG_COMMANDS = $CONFIG_COMMANDS 20622 $ $0 $@ 20623 20624on `(hostname || uname -n) 2>/dev/null | sed 1q` 20625" 20626 20627_ACEOF 20628 20629case $ac_config_files in *" 20630"*) set x $ac_config_files; shift; ac_config_files=$*;; 20631esac 20632 20633case $ac_config_headers in *" 20634"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20635esac 20636 20637 20638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20639# Files that config.status was made for. 20640config_files="$ac_config_files" 20641config_headers="$ac_config_headers" 20642config_commands="$ac_config_commands" 20643 20644_ACEOF 20645 20646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20647ac_cs_usage="\ 20648\`$as_me' instantiates files and other configuration actions 20649from templates according to the current configuration. Unless the files 20650and actions are specified as TAGs, all are instantiated by default. 20651 20652Usage: $0 [OPTION]... [TAG]... 20653 20654 -h, --help print this help, then exit 20655 -V, --version print version number and configuration settings, then exit 20656 --config print configuration, then exit 20657 -q, --quiet, --silent 20658 do not print progress messages 20659 -d, --debug don't remove temporary files 20660 --recheck update $as_me by reconfiguring in the same conditions 20661 --file=FILE[:TEMPLATE] 20662 instantiate the configuration file FILE 20663 --header=FILE[:TEMPLATE] 20664 instantiate the configuration header FILE 20665 20666Configuration files: 20667$config_files 20668 20669Configuration headers: 20670$config_headers 20671 20672Configuration commands: 20673$config_commands 20674 20675Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20676 20677_ACEOF 20678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20679ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20680ac_cs_version="\\ 20681xf86-video-amdgpu config.status 1.3.0 20682configured by $0, generated by GNU Autoconf 2.69, 20683 with options \\"\$ac_cs_config\\" 20684 20685Copyright (C) 2012 Free Software Foundation, Inc. 20686This config.status script is free software; the Free Software Foundation 20687gives unlimited permission to copy, distribute and modify it." 20688 20689ac_pwd='$ac_pwd' 20690srcdir='$srcdir' 20691INSTALL='$INSTALL' 20692MKDIR_P='$MKDIR_P' 20693AWK='$AWK' 20694test -n "\$AWK" || AWK=awk 20695_ACEOF 20696 20697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20698# The default lists apply if the user does not specify any file. 20699ac_need_defaults=: 20700while test $# != 0 20701do 20702 case $1 in 20703 --*=?*) 20704 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20706 ac_shift=: 20707 ;; 20708 --*=) 20709 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20710 ac_optarg= 20711 ac_shift=: 20712 ;; 20713 *) 20714 ac_option=$1 20715 ac_optarg=$2 20716 ac_shift=shift 20717 ;; 20718 esac 20719 20720 case $ac_option in 20721 # Handling of the options. 20722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20723 ac_cs_recheck=: ;; 20724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20725 $as_echo "$ac_cs_version"; exit ;; 20726 --config | --confi | --conf | --con | --co | --c ) 20727 $as_echo "$ac_cs_config"; exit ;; 20728 --debug | --debu | --deb | --de | --d | -d ) 20729 debug=: ;; 20730 --file | --fil | --fi | --f ) 20731 $ac_shift 20732 case $ac_optarg in 20733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20734 '') as_fn_error $? "missing file argument" ;; 20735 esac 20736 as_fn_append CONFIG_FILES " '$ac_optarg'" 20737 ac_need_defaults=false;; 20738 --header | --heade | --head | --hea ) 20739 $ac_shift 20740 case $ac_optarg in 20741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20742 esac 20743 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20744 ac_need_defaults=false;; 20745 --he | --h) 20746 # Conflict between --help and --header 20747 as_fn_error $? "ambiguous option: \`$1' 20748Try \`$0 --help' for more information.";; 20749 --help | --hel | -h ) 20750 $as_echo "$ac_cs_usage"; exit ;; 20751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20752 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20753 ac_cs_silent=: ;; 20754 20755 # This is an error. 20756 -*) as_fn_error $? "unrecognized option: \`$1' 20757Try \`$0 --help' for more information." ;; 20758 20759 *) as_fn_append ac_config_targets " $1" 20760 ac_need_defaults=false ;; 20761 20762 esac 20763 shift 20764done 20765 20766ac_configure_extra_args= 20767 20768if $ac_cs_silent; then 20769 exec 6>/dev/null 20770 ac_configure_extra_args="$ac_configure_extra_args --silent" 20771fi 20772 20773_ACEOF 20774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20775if \$ac_cs_recheck; then 20776 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20777 shift 20778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20779 CONFIG_SHELL='$SHELL' 20780 export CONFIG_SHELL 20781 exec "\$@" 20782fi 20783 20784_ACEOF 20785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20786exec 5>>config.log 20787{ 20788 echo 20789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20790## Running $as_me. ## 20791_ASBOX 20792 $as_echo "$ac_log" 20793} >&5 20794 20795_ACEOF 20796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20797# 20798# INIT-COMMANDS 20799# 20800AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20801 20802 20803# The HP-UX ksh and POSIX shell print the target directory to stdout 20804# if CDPATH is set. 20805(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20806 20807sed_quote_subst='$sed_quote_subst' 20808double_quote_subst='$double_quote_subst' 20809delay_variable_subst='$delay_variable_subst' 20810enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20811macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20812macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20813enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20814pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20815enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20816shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20817SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20818ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20819PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20820host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20821host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20822host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20823build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20824build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20825build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20826SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20827Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20828GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20829EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20830FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20831LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20832NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20833LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20834max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20835ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20836exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20837lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20838lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20839lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20840lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20841lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20842reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20843reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20844OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20845deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20846file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20847file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20848want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20849DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20850sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20851AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20852AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20853archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20854STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20855RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20856old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20857old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20858old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20859lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20860CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20861CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20862compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20863GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20864lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20865lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20866lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20867lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20868lt_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"`' 20869lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20870nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20871lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20872lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20873objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20874MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20875lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20876lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20877lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20878lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20879lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20880need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20881MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20882DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20883NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20884LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20885OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20886OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20887libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20888shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20889extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20890archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20891enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20892export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20893whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20894compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20895old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20896old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20897archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20898archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20899module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20900module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20901with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20902allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20903no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20904hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20905hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20906hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20907hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20908hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20909hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20910hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20911inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20912link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20913always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20914export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20915exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20916include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20917prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20918postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20919file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20920variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20921need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20922need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20923version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20924runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20925shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20926shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20927libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20928library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20929soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20930install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20931postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20932postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20933finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20934finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20935hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20936sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20937configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20938configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20939hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20940enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20941enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20942enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20943old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20944striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20945 20946LTCC='$LTCC' 20947LTCFLAGS='$LTCFLAGS' 20948compiler='$compiler_DEFAULT' 20949 20950# A function that is used when there is no print builtin or printf. 20951func_fallback_echo () 20952{ 20953 eval 'cat <<_LTECHO_EOF 20954\$1 20955_LTECHO_EOF' 20956} 20957 20958# Quote evaled strings. 20959for var in SHELL \ 20960ECHO \ 20961PATH_SEPARATOR \ 20962SED \ 20963GREP \ 20964EGREP \ 20965FGREP \ 20966LD \ 20967NM \ 20968LN_S \ 20969lt_SP2NL \ 20970lt_NL2SP \ 20971reload_flag \ 20972OBJDUMP \ 20973deplibs_check_method \ 20974file_magic_cmd \ 20975file_magic_glob \ 20976want_nocaseglob \ 20977DLLTOOL \ 20978sharedlib_from_linklib_cmd \ 20979AR \ 20980AR_FLAGS \ 20981archiver_list_spec \ 20982STRIP \ 20983RANLIB \ 20984CC \ 20985CFLAGS \ 20986compiler \ 20987lt_cv_sys_global_symbol_pipe \ 20988lt_cv_sys_global_symbol_to_cdecl \ 20989lt_cv_sys_global_symbol_to_import \ 20990lt_cv_sys_global_symbol_to_c_name_address \ 20991lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20992lt_cv_nm_interface \ 20993nm_file_list_spec \ 20994lt_cv_truncate_bin \ 20995lt_prog_compiler_no_builtin_flag \ 20996lt_prog_compiler_pic \ 20997lt_prog_compiler_wl \ 20998lt_prog_compiler_static \ 20999lt_cv_prog_compiler_c_o \ 21000need_locks \ 21001MANIFEST_TOOL \ 21002DSYMUTIL \ 21003NMEDIT \ 21004LIPO \ 21005OTOOL \ 21006OTOOL64 \ 21007shrext_cmds \ 21008export_dynamic_flag_spec \ 21009whole_archive_flag_spec \ 21010compiler_needs_object \ 21011with_gnu_ld \ 21012allow_undefined_flag \ 21013no_undefined_flag \ 21014hardcode_libdir_flag_spec \ 21015hardcode_libdir_separator \ 21016exclude_expsyms \ 21017include_expsyms \ 21018file_list_spec \ 21019variables_saved_for_relink \ 21020libname_spec \ 21021library_names_spec \ 21022soname_spec \ 21023install_override_mode \ 21024finish_eval \ 21025old_striplib \ 21026striplib; do 21027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21028 *[\\\\\\\`\\"\\\$]*) 21029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21030 ;; 21031 *) 21032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21033 ;; 21034 esac 21035done 21036 21037# Double-quote double-evaled strings. 21038for var in reload_cmds \ 21039old_postinstall_cmds \ 21040old_postuninstall_cmds \ 21041old_archive_cmds \ 21042extract_expsyms_cmds \ 21043old_archive_from_new_cmds \ 21044old_archive_from_expsyms_cmds \ 21045archive_cmds \ 21046archive_expsym_cmds \ 21047module_cmds \ 21048module_expsym_cmds \ 21049export_symbols_cmds \ 21050prelink_cmds \ 21051postlink_cmds \ 21052postinstall_cmds \ 21053postuninstall_cmds \ 21054finish_cmds \ 21055sys_lib_search_path_spec \ 21056configure_time_dlsearch_path \ 21057configure_time_lt_sys_library_path; do 21058 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21059 *[\\\\\\\`\\"\\\$]*) 21060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21061 ;; 21062 *) 21063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21064 ;; 21065 esac 21066done 21067 21068ac_aux_dir='$ac_aux_dir' 21069 21070# See if we are running on zsh, and set the options that allow our 21071# commands through without removal of \ escapes INIT. 21072if test -n "\${ZSH_VERSION+set}"; then 21073 setopt NO_GLOB_SUBST 21074fi 21075 21076 21077 PACKAGE='$PACKAGE' 21078 VERSION='$VERSION' 21079 RM='$RM' 21080 ofile='$ofile' 21081 21082 21083 21084 21085_ACEOF 21086 21087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21088 21089# Handling of arguments. 21090for ac_config_target in $ac_config_targets 21091do 21092 case $ac_config_target in 21093 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21094 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21095 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21097 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21098 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21099 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 21100 21101 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21102 esac 21103done 21104 21105 21106# If the user did not use the arguments to specify the items to instantiate, 21107# then the envvar interface is used. Set only those that are not. 21108# We use the long form for the default assignment because of an extremely 21109# bizarre bug on SunOS 4.1.3. 21110if $ac_need_defaults; then 21111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21114fi 21115 21116# Have a temporary directory for convenience. Make it in the build tree 21117# simply because there is no reason against having it here, and in addition, 21118# creating and moving files from /tmp can sometimes cause problems. 21119# Hook for its removal unless debugging. 21120# Note that there is a small window in which the directory will not be cleaned: 21121# after its creation but before its name has been assigned to `$tmp'. 21122$debug || 21123{ 21124 tmp= ac_tmp= 21125 trap 'exit_status=$? 21126 : "${ac_tmp:=$tmp}" 21127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21128' 0 21129 trap 'as_fn_exit 1' 1 2 13 15 21130} 21131# Create a (secure) tmp directory for tmp files. 21132 21133{ 21134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21135 test -d "$tmp" 21136} || 21137{ 21138 tmp=./conf$$-$RANDOM 21139 (umask 077 && mkdir "$tmp") 21140} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21141ac_tmp=$tmp 21142 21143# Set up the scripts for CONFIG_FILES section. 21144# No need to generate them if there are no CONFIG_FILES. 21145# This happens for instance with `./config.status config.h'. 21146if test -n "$CONFIG_FILES"; then 21147 21148 21149ac_cr=`echo X | tr X '\015'` 21150# On cygwin, bash can eat \r inside `` if the user requested igncr. 21151# But we know of no other shell where ac_cr would be empty at this 21152# point, so we can use a bashism as a fallback. 21153if test "x$ac_cr" = x; then 21154 eval ac_cr=\$\'\\r\' 21155fi 21156ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21157if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21158 ac_cs_awk_cr='\\r' 21159else 21160 ac_cs_awk_cr=$ac_cr 21161fi 21162 21163echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21164_ACEOF 21165 21166 21167{ 21168 echo "cat >conf$$subs.awk <<_ACEOF" && 21169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21170 echo "_ACEOF" 21171} >conf$$subs.sh || 21172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21173ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21174ac_delim='%!_!# ' 21175for ac_last_try in false false false false false :; do 21176 . ./conf$$subs.sh || 21177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21178 21179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21180 if test $ac_delim_n = $ac_delim_num; then 21181 break 21182 elif $ac_last_try; then 21183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21184 else 21185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21186 fi 21187done 21188rm -f conf$$subs.sh 21189 21190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21191cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21192_ACEOF 21193sed -n ' 21194h 21195s/^/S["/; s/!.*/"]=/ 21196p 21197g 21198s/^[^!]*!// 21199:repl 21200t repl 21201s/'"$ac_delim"'$// 21202t delim 21203:nl 21204h 21205s/\(.\{148\}\)..*/\1/ 21206t more1 21207s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21208p 21209n 21210b repl 21211:more1 21212s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21213p 21214g 21215s/.\{148\}// 21216t nl 21217:delim 21218h 21219s/\(.\{148\}\)..*/\1/ 21220t more2 21221s/["\\]/\\&/g; s/^/"/; s/$/"/ 21222p 21223b 21224:more2 21225s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21226p 21227g 21228s/.\{148\}// 21229t delim 21230' <conf$$subs.awk | sed ' 21231/^[^""]/{ 21232 N 21233 s/\n// 21234} 21235' >>$CONFIG_STATUS || ac_write_fail=1 21236rm -f conf$$subs.awk 21237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21238_ACAWK 21239cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21240 for (key in S) S_is_set[key] = 1 21241 FS = "" 21242 21243} 21244{ 21245 line = $ 0 21246 nfields = split(line, field, "@") 21247 substed = 0 21248 len = length(field[1]) 21249 for (i = 2; i < nfields; i++) { 21250 key = field[i] 21251 keylen = length(key) 21252 if (S_is_set[key]) { 21253 value = S[key] 21254 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21255 len += length(value) + length(field[++i]) 21256 substed = 1 21257 } else 21258 len += 1 + keylen 21259 } 21260 21261 print line 21262} 21263 21264_ACAWK 21265_ACEOF 21266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21267if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21268 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21269else 21270 cat 21271fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21272 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21273_ACEOF 21274 21275# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21276# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21277# trailing colons and then remove the whole line if VPATH becomes empty 21278# (actually we leave an empty line to preserve line numbers). 21279if test "x$srcdir" = x.; then 21280 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21281h 21282s/// 21283s/^/:/ 21284s/[ ]*$/:/ 21285s/:\$(srcdir):/:/g 21286s/:\${srcdir}:/:/g 21287s/:@srcdir@:/:/g 21288s/^:*// 21289s/:*$// 21290x 21291s/\(=[ ]*\).*/\1/ 21292G 21293s/\n// 21294s/^[^=]*=[ ]*$// 21295}' 21296fi 21297 21298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21299fi # test -n "$CONFIG_FILES" 21300 21301# Set up the scripts for CONFIG_HEADERS section. 21302# No need to generate them if there are no CONFIG_HEADERS. 21303# This happens for instance with `./config.status Makefile'. 21304if test -n "$CONFIG_HEADERS"; then 21305cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21306BEGIN { 21307_ACEOF 21308 21309# Transform confdefs.h into an awk script `defines.awk', embedded as 21310# here-document in config.status, that substitutes the proper values into 21311# config.h.in to produce config.h. 21312 21313# Create a delimiter string that does not exist in confdefs.h, to ease 21314# handling of long lines. 21315ac_delim='%!_!# ' 21316for ac_last_try in false false :; do 21317 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21318 if test -z "$ac_tt"; then 21319 break 21320 elif $ac_last_try; then 21321 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21322 else 21323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21324 fi 21325done 21326 21327# For the awk script, D is an array of macro values keyed by name, 21328# likewise P contains macro parameters if any. Preserve backslash 21329# newline sequences. 21330 21331ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21332sed -n ' 21333s/.\{148\}/&'"$ac_delim"'/g 21334t rset 21335:rset 21336s/^[ ]*#[ ]*define[ ][ ]*/ / 21337t def 21338d 21339:def 21340s/\\$// 21341t bsnl 21342s/["\\]/\\&/g 21343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21344D["\1"]=" \3"/p 21345s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21346d 21347:bsnl 21348s/["\\]/\\&/g 21349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21350D["\1"]=" \3\\\\\\n"\\/p 21351t cont 21352s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21353t cont 21354d 21355:cont 21356n 21357s/.\{148\}/&'"$ac_delim"'/g 21358t clear 21359:clear 21360s/\\$// 21361t bsnlc 21362s/["\\]/\\&/g; s/^/"/; s/$/"/p 21363d 21364:bsnlc 21365s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21366b cont 21367' <confdefs.h | sed ' 21368s/'"$ac_delim"'/"\\\ 21369"/g' >>$CONFIG_STATUS || ac_write_fail=1 21370 21371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21372 for (key in D) D_is_set[key] = 1 21373 FS = "" 21374} 21375/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21376 line = \$ 0 21377 split(line, arg, " ") 21378 if (arg[1] == "#") { 21379 defundef = arg[2] 21380 mac1 = arg[3] 21381 } else { 21382 defundef = substr(arg[1], 2) 21383 mac1 = arg[2] 21384 } 21385 split(mac1, mac2, "(") #) 21386 macro = mac2[1] 21387 prefix = substr(line, 1, index(line, defundef) - 1) 21388 if (D_is_set[macro]) { 21389 # Preserve the white space surrounding the "#". 21390 print prefix "define", macro P[macro] D[macro] 21391 next 21392 } else { 21393 # Replace #undef with comments. This is necessary, for example, 21394 # in the case of _POSIX_SOURCE, which is predefined and required 21395 # on some systems where configure will not decide to define it. 21396 if (defundef == "undef") { 21397 print "/*", prefix defundef, macro, "*/" 21398 next 21399 } 21400 } 21401} 21402{ print } 21403_ACAWK 21404_ACEOF 21405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21406 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21407fi # test -n "$CONFIG_HEADERS" 21408 21409 21410eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21411shift 21412for ac_tag 21413do 21414 case $ac_tag in 21415 :[FHLC]) ac_mode=$ac_tag; continue;; 21416 esac 21417 case $ac_mode$ac_tag in 21418 :[FHL]*:*);; 21419 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21420 :[FH]-) ac_tag=-:-;; 21421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21422 esac 21423 ac_save_IFS=$IFS 21424 IFS=: 21425 set x $ac_tag 21426 IFS=$ac_save_IFS 21427 shift 21428 ac_file=$1 21429 shift 21430 21431 case $ac_mode in 21432 :L) ac_source=$1;; 21433 :[FH]) 21434 ac_file_inputs= 21435 for ac_f 21436 do 21437 case $ac_f in 21438 -) ac_f="$ac_tmp/stdin";; 21439 *) # Look for the file first in the build tree, then in the source tree 21440 # (if the path is not absolute). The absolute path cannot be DOS-style, 21441 # because $ac_f cannot contain `:'. 21442 test -f "$ac_f" || 21443 case $ac_f in 21444 [\\/$]*) false;; 21445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21446 esac || 21447 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21448 esac 21449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21450 as_fn_append ac_file_inputs " '$ac_f'" 21451 done 21452 21453 # Let's still pretend it is `configure' which instantiates (i.e., don't 21454 # use $as_me), people would be surprised to read: 21455 # /* config.h. Generated by config.status. */ 21456 configure_input='Generated from '` 21457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21458 `' by configure.' 21459 if test x"$ac_file" != x-; then 21460 configure_input="$ac_file. $configure_input" 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21462$as_echo "$as_me: creating $ac_file" >&6;} 21463 fi 21464 # Neutralize special characters interpreted by sed in replacement strings. 21465 case $configure_input in #( 21466 *\&* | *\|* | *\\* ) 21467 ac_sed_conf_input=`$as_echo "$configure_input" | 21468 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21469 *) ac_sed_conf_input=$configure_input;; 21470 esac 21471 21472 case $ac_tag in 21473 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21475 esac 21476 ;; 21477 esac 21478 21479 ac_dir=`$as_dirname -- "$ac_file" || 21480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21481 X"$ac_file" : 'X\(//\)[^/]' \| \ 21482 X"$ac_file" : 'X\(//\)$' \| \ 21483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21484$as_echo X"$ac_file" | 21485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21486 s//\1/ 21487 q 21488 } 21489 /^X\(\/\/\)[^/].*/{ 21490 s//\1/ 21491 q 21492 } 21493 /^X\(\/\/\)$/{ 21494 s//\1/ 21495 q 21496 } 21497 /^X\(\/\).*/{ 21498 s//\1/ 21499 q 21500 } 21501 s/.*/./; q'` 21502 as_dir="$ac_dir"; as_fn_mkdir_p 21503 ac_builddir=. 21504 21505case "$ac_dir" in 21506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21507*) 21508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21509 # A ".." for each directory in $ac_dir_suffix. 21510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21511 case $ac_top_builddir_sub in 21512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21514 esac ;; 21515esac 21516ac_abs_top_builddir=$ac_pwd 21517ac_abs_builddir=$ac_pwd$ac_dir_suffix 21518# for backward compatibility: 21519ac_top_builddir=$ac_top_build_prefix 21520 21521case $srcdir in 21522 .) # We are building in place. 21523 ac_srcdir=. 21524 ac_top_srcdir=$ac_top_builddir_sub 21525 ac_abs_top_srcdir=$ac_pwd ;; 21526 [\\/]* | ?:[\\/]* ) # Absolute name. 21527 ac_srcdir=$srcdir$ac_dir_suffix; 21528 ac_top_srcdir=$srcdir 21529 ac_abs_top_srcdir=$srcdir ;; 21530 *) # Relative name. 21531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21532 ac_top_srcdir=$ac_top_build_prefix$srcdir 21533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21534esac 21535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21536 21537 21538 case $ac_mode in 21539 :F) 21540 # 21541 # CONFIG_FILE 21542 # 21543 21544 case $INSTALL in 21545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21547 esac 21548 ac_MKDIR_P=$MKDIR_P 21549 case $MKDIR_P in 21550 [\\/$]* | ?:[\\/]* ) ;; 21551 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21552 esac 21553_ACEOF 21554 21555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21556# If the template does not know about datarootdir, expand it. 21557# FIXME: This hack should be removed a few years after 2.60. 21558ac_datarootdir_hack=; ac_datarootdir_seen= 21559ac_sed_dataroot=' 21560/datarootdir/ { 21561 p 21562 q 21563} 21564/@datadir@/p 21565/@docdir@/p 21566/@infodir@/p 21567/@localedir@/p 21568/@mandir@/p' 21569case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21570*datarootdir*) ac_datarootdir_seen=yes;; 21571*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21573$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21574_ACEOF 21575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21576 ac_datarootdir_hack=' 21577 s&@datadir@&$datadir&g 21578 s&@docdir@&$docdir&g 21579 s&@infodir@&$infodir&g 21580 s&@localedir@&$localedir&g 21581 s&@mandir@&$mandir&g 21582 s&\\\${datarootdir}&$datarootdir&g' ;; 21583esac 21584_ACEOF 21585 21586# Neutralize VPATH when `$srcdir' = `.'. 21587# Shell code in configure.ac might set extrasub. 21588# FIXME: do we really want to maintain this feature? 21589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21590ac_sed_extra="$ac_vpsub 21591$extrasub 21592_ACEOF 21593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21594:t 21595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21596s|@configure_input@|$ac_sed_conf_input|;t t 21597s&@top_builddir@&$ac_top_builddir_sub&;t t 21598s&@top_build_prefix@&$ac_top_build_prefix&;t t 21599s&@srcdir@&$ac_srcdir&;t t 21600s&@abs_srcdir@&$ac_abs_srcdir&;t t 21601s&@top_srcdir@&$ac_top_srcdir&;t t 21602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21603s&@builddir@&$ac_builddir&;t t 21604s&@abs_builddir@&$ac_abs_builddir&;t t 21605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21606s&@INSTALL@&$ac_INSTALL&;t t 21607s&@MKDIR_P@&$ac_MKDIR_P&;t t 21608$ac_datarootdir_hack 21609" 21610eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21611 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21612 21613test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21614 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21616 "$ac_tmp/out"`; test -z "$ac_out"; } && 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21618which seems to be undefined. Please make sure it is defined" >&5 21619$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21620which seems to be undefined. Please make sure it is defined" >&2;} 21621 21622 rm -f "$ac_tmp/stdin" 21623 case $ac_file in 21624 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21625 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21626 esac \ 21627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21628 ;; 21629 :H) 21630 # 21631 # CONFIG_HEADER 21632 # 21633 if test x"$ac_file" != x-; then 21634 { 21635 $as_echo "/* $configure_input */" \ 21636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21637 } >"$ac_tmp/config.h" \ 21638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21639 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21640 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21641$as_echo "$as_me: $ac_file is unchanged" >&6;} 21642 else 21643 rm -f "$ac_file" 21644 mv "$ac_tmp/config.h" "$ac_file" \ 21645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21646 fi 21647 else 21648 $as_echo "/* $configure_input */" \ 21649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21650 || as_fn_error $? "could not create -" "$LINENO" 5 21651 fi 21652# Compute "$ac_file"'s index in $config_headers. 21653_am_arg="$ac_file" 21654_am_stamp_count=1 21655for _am_header in $config_headers :; do 21656 case $_am_header in 21657 $_am_arg | $_am_arg:* ) 21658 break ;; 21659 * ) 21660 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21661 esac 21662done 21663echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21664$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21665 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21666 X"$_am_arg" : 'X\(//\)$' \| \ 21667 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21668$as_echo X"$_am_arg" | 21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21670 s//\1/ 21671 q 21672 } 21673 /^X\(\/\/\)[^/].*/{ 21674 s//\1/ 21675 q 21676 } 21677 /^X\(\/\/\)$/{ 21678 s//\1/ 21679 q 21680 } 21681 /^X\(\/\).*/{ 21682 s//\1/ 21683 q 21684 } 21685 s/.*/./; q'`/stamp-h$_am_stamp_count 21686 ;; 21687 21688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21689$as_echo "$as_me: executing $ac_file commands" >&6;} 21690 ;; 21691 esac 21692 21693 21694 case $ac_file$ac_mode in 21695 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21696 # Older Autoconf quotes --file arguments for eval, but not when files 21697 # are listed without --file. Let's play safe and only enable the eval 21698 # if we detect the quoting. 21699 case $CONFIG_FILES in 21700 *\'*) eval set x "$CONFIG_FILES" ;; 21701 *) set x $CONFIG_FILES ;; 21702 esac 21703 shift 21704 for mf 21705 do 21706 # Strip MF so we end up with the name of the file. 21707 mf=`echo "$mf" | sed -e 's/:.*$//'` 21708 # Check whether this is an Automake generated Makefile or not. 21709 # We used to match only the files named 'Makefile.in', but 21710 # some people rename them; so instead we look at the file content. 21711 # Grep'ing the first line is not enough: some people post-process 21712 # each Makefile.in and add a new line on top of each file to say so. 21713 # Grep'ing the whole file is not good either: AIX grep has a line 21714 # limit of 2048, but all sed's we know have understand at least 4000. 21715 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21716 dirpart=`$as_dirname -- "$mf" || 21717$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21718 X"$mf" : 'X\(//\)[^/]' \| \ 21719 X"$mf" : 'X\(//\)$' \| \ 21720 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21721$as_echo X"$mf" | 21722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21723 s//\1/ 21724 q 21725 } 21726 /^X\(\/\/\)[^/].*/{ 21727 s//\1/ 21728 q 21729 } 21730 /^X\(\/\/\)$/{ 21731 s//\1/ 21732 q 21733 } 21734 /^X\(\/\).*/{ 21735 s//\1/ 21736 q 21737 } 21738 s/.*/./; q'` 21739 else 21740 continue 21741 fi 21742 # Extract the definition of DEPDIR, am__include, and am__quote 21743 # from the Makefile without running 'make'. 21744 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21745 test -z "$DEPDIR" && continue 21746 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21747 test -z "$am__include" && continue 21748 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21749 # Find all dependency output files, they are included files with 21750 # $(DEPDIR) in their names. We invoke sed twice because it is the 21751 # simplest approach to changing $(DEPDIR) to its actual value in the 21752 # expansion. 21753 for file in `sed -n " 21754 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21755 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21756 # Make sure the directory exists. 21757 test -f "$dirpart/$file" && continue 21758 fdir=`$as_dirname -- "$file" || 21759$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21760 X"$file" : 'X\(//\)[^/]' \| \ 21761 X"$file" : 'X\(//\)$' \| \ 21762 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21763$as_echo X"$file" | 21764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21765 s//\1/ 21766 q 21767 } 21768 /^X\(\/\/\)[^/].*/{ 21769 s//\1/ 21770 q 21771 } 21772 /^X\(\/\/\)$/{ 21773 s//\1/ 21774 q 21775 } 21776 /^X\(\/\).*/{ 21777 s//\1/ 21778 q 21779 } 21780 s/.*/./; q'` 21781 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21782 # echo "creating $dirpart/$file" 21783 echo '# dummy' > "$dirpart/$file" 21784 done 21785 done 21786} 21787 ;; 21788 "libtool":C) 21789 21790 # See if we are running on zsh, and set the options that allow our 21791 # commands through without removal of \ escapes. 21792 if test -n "${ZSH_VERSION+set}"; then 21793 setopt NO_GLOB_SUBST 21794 fi 21795 21796 cfgfile=${ofile}T 21797 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21798 $RM "$cfgfile" 21799 21800 cat <<_LT_EOF >> "$cfgfile" 21801#! $SHELL 21802# Generated automatically by $as_me ($PACKAGE) $VERSION 21803# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21804 21805# Provide generalized library-building support services. 21806# Written by Gordon Matzigkeit, 1996 21807 21808# Copyright (C) 2014 Free Software Foundation, Inc. 21809# This is free software; see the source for copying conditions. There is NO 21810# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21811 21812# GNU Libtool is free software; you can redistribute it and/or modify 21813# it under the terms of the GNU General Public License as published by 21814# the Free Software Foundation; either version 2 of of the License, or 21815# (at your option) any later version. 21816# 21817# As a special exception to the GNU General Public License, if you 21818# distribute this file as part of a program or library that is built 21819# using GNU Libtool, you may include this file under the same 21820# distribution terms that you use for the rest of that program. 21821# 21822# GNU Libtool is distributed in the hope that it will be useful, but 21823# WITHOUT ANY WARRANTY; without even the implied warranty of 21824# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21825# GNU General Public License for more details. 21826# 21827# You should have received a copy of the GNU General Public License 21828# along with this program. If not, see <http://www.gnu.org/licenses/>. 21829 21830 21831# The names of the tagged configurations supported by this script. 21832available_tags='' 21833 21834# Configured defaults for sys_lib_dlsearch_path munging. 21835: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21836 21837# ### BEGIN LIBTOOL CONFIG 21838 21839# Whether or not to build static libraries. 21840build_old_libs=$enable_static 21841 21842# Which release of libtool.m4 was used? 21843macro_version=$macro_version 21844macro_revision=$macro_revision 21845 21846# Whether or not to build shared libraries. 21847build_libtool_libs=$enable_shared 21848 21849# What type of objects to build. 21850pic_mode=$pic_mode 21851 21852# Whether or not to optimize for fast installation. 21853fast_install=$enable_fast_install 21854 21855# Shared archive member basename,for filename based shared library versioning on AIX. 21856shared_archive_member_spec=$shared_archive_member_spec 21857 21858# Shell to use when invoking shell scripts. 21859SHELL=$lt_SHELL 21860 21861# An echo program that protects backslashes. 21862ECHO=$lt_ECHO 21863 21864# The PATH separator for the build system. 21865PATH_SEPARATOR=$lt_PATH_SEPARATOR 21866 21867# The host system. 21868host_alias=$host_alias 21869host=$host 21870host_os=$host_os 21871 21872# The build system. 21873build_alias=$build_alias 21874build=$build 21875build_os=$build_os 21876 21877# A sed program that does not truncate output. 21878SED=$lt_SED 21879 21880# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21881Xsed="\$SED -e 1s/^X//" 21882 21883# A grep program that handles long lines. 21884GREP=$lt_GREP 21885 21886# An ERE matcher. 21887EGREP=$lt_EGREP 21888 21889# A literal string matcher. 21890FGREP=$lt_FGREP 21891 21892# A BSD- or MS-compatible name lister. 21893NM=$lt_NM 21894 21895# Whether we need soft or hard links. 21896LN_S=$lt_LN_S 21897 21898# What is the maximum length of a command? 21899max_cmd_len=$max_cmd_len 21900 21901# Object file suffix (normally "o"). 21902objext=$ac_objext 21903 21904# Executable file suffix (normally ""). 21905exeext=$exeext 21906 21907# whether the shell understands "unset". 21908lt_unset=$lt_unset 21909 21910# turn spaces into newlines. 21911SP2NL=$lt_lt_SP2NL 21912 21913# turn newlines into spaces. 21914NL2SP=$lt_lt_NL2SP 21915 21916# convert \$build file names to \$host format. 21917to_host_file_cmd=$lt_cv_to_host_file_cmd 21918 21919# convert \$build files to toolchain format. 21920to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21921 21922# An object symbol dumper. 21923OBJDUMP=$lt_OBJDUMP 21924 21925# Method to check whether dependent libraries are shared objects. 21926deplibs_check_method=$lt_deplibs_check_method 21927 21928# Command to use when deplibs_check_method = "file_magic". 21929file_magic_cmd=$lt_file_magic_cmd 21930 21931# How to find potential files when deplibs_check_method = "file_magic". 21932file_magic_glob=$lt_file_magic_glob 21933 21934# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21935want_nocaseglob=$lt_want_nocaseglob 21936 21937# DLL creation program. 21938DLLTOOL=$lt_DLLTOOL 21939 21940# Command to associate shared and link libraries. 21941sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21942 21943# The archiver. 21944AR=$lt_AR 21945 21946# Flags to create an archive. 21947AR_FLAGS=$lt_AR_FLAGS 21948 21949# How to feed a file listing to the archiver. 21950archiver_list_spec=$lt_archiver_list_spec 21951 21952# A symbol stripping program. 21953STRIP=$lt_STRIP 21954 21955# Commands used to install an old-style archive. 21956RANLIB=$lt_RANLIB 21957old_postinstall_cmds=$lt_old_postinstall_cmds 21958old_postuninstall_cmds=$lt_old_postuninstall_cmds 21959 21960# Whether to use a lock for old archive extraction. 21961lock_old_archive_extraction=$lock_old_archive_extraction 21962 21963# A C compiler. 21964LTCC=$lt_CC 21965 21966# LTCC compiler flags. 21967LTCFLAGS=$lt_CFLAGS 21968 21969# Take the output of nm and produce a listing of raw symbols and C names. 21970global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21971 21972# Transform the output of nm in a proper C declaration. 21973global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21974 21975# Transform the output of nm into a list of symbols to manually relocate. 21976global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21977 21978# Transform the output of nm in a C name address pair. 21979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21980 21981# Transform the output of nm in a C name address pair when lib prefix is needed. 21982global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21983 21984# The name lister interface. 21985nm_interface=$lt_lt_cv_nm_interface 21986 21987# Specify filename containing input files for \$NM. 21988nm_file_list_spec=$lt_nm_file_list_spec 21989 21990# The root where to search for dependent libraries,and where our libraries should be installed. 21991lt_sysroot=$lt_sysroot 21992 21993# Command to truncate a binary pipe. 21994lt_truncate_bin=$lt_lt_cv_truncate_bin 21995 21996# The name of the directory that contains temporary libtool files. 21997objdir=$objdir 21998 21999# Used to examine libraries when file_magic_cmd begins with "file". 22000MAGIC_CMD=$MAGIC_CMD 22001 22002# Must we lock files when doing compilation? 22003need_locks=$lt_need_locks 22004 22005# Manifest tool. 22006MANIFEST_TOOL=$lt_MANIFEST_TOOL 22007 22008# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22009DSYMUTIL=$lt_DSYMUTIL 22010 22011# Tool to change global to local symbols on Mac OS X. 22012NMEDIT=$lt_NMEDIT 22013 22014# Tool to manipulate fat objects and archives on Mac OS X. 22015LIPO=$lt_LIPO 22016 22017# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22018OTOOL=$lt_OTOOL 22019 22020# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22021OTOOL64=$lt_OTOOL64 22022 22023# Old archive suffix (normally "a"). 22024libext=$libext 22025 22026# Shared library suffix (normally ".so"). 22027shrext_cmds=$lt_shrext_cmds 22028 22029# The commands to extract the exported symbol list from a shared archive. 22030extract_expsyms_cmds=$lt_extract_expsyms_cmds 22031 22032# Variables whose values should be saved in libtool wrapper scripts and 22033# restored at link time. 22034variables_saved_for_relink=$lt_variables_saved_for_relink 22035 22036# Do we need the "lib" prefix for modules? 22037need_lib_prefix=$need_lib_prefix 22038 22039# Do we need a version for libraries? 22040need_version=$need_version 22041 22042# Library versioning type. 22043version_type=$version_type 22044 22045# Shared library runtime path variable. 22046runpath_var=$runpath_var 22047 22048# Shared library path variable. 22049shlibpath_var=$shlibpath_var 22050 22051# Is shlibpath searched before the hard-coded library search path? 22052shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22053 22054# Format of library name prefix. 22055libname_spec=$lt_libname_spec 22056 22057# List of archive names. First name is the real one, the rest are links. 22058# The last name is the one that the linker finds with -lNAME 22059library_names_spec=$lt_library_names_spec 22060 22061# The coded name of the library, if different from the real name. 22062soname_spec=$lt_soname_spec 22063 22064# Permission mode override for installation of shared libraries. 22065install_override_mode=$lt_install_override_mode 22066 22067# Command to use after installation of a shared archive. 22068postinstall_cmds=$lt_postinstall_cmds 22069 22070# Command to use after uninstallation of a shared archive. 22071postuninstall_cmds=$lt_postuninstall_cmds 22072 22073# Commands used to finish a libtool library installation in a directory. 22074finish_cmds=$lt_finish_cmds 22075 22076# As "finish_cmds", except a single script fragment to be evaled but 22077# not shown. 22078finish_eval=$lt_finish_eval 22079 22080# Whether we should hardcode library paths into libraries. 22081hardcode_into_libs=$hardcode_into_libs 22082 22083# Compile-time system search path for libraries. 22084sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22085 22086# Detected run-time system search path for libraries. 22087sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22088 22089# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22090configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22091 22092# Whether dlopen is supported. 22093dlopen_support=$enable_dlopen 22094 22095# Whether dlopen of programs is supported. 22096dlopen_self=$enable_dlopen_self 22097 22098# Whether dlopen of statically linked programs is supported. 22099dlopen_self_static=$enable_dlopen_self_static 22100 22101# Commands to strip libraries. 22102old_striplib=$lt_old_striplib 22103striplib=$lt_striplib 22104 22105 22106# The linker used to build libraries. 22107LD=$lt_LD 22108 22109# How to create reloadable object files. 22110reload_flag=$lt_reload_flag 22111reload_cmds=$lt_reload_cmds 22112 22113# Commands used to build an old-style archive. 22114old_archive_cmds=$lt_old_archive_cmds 22115 22116# A language specific compiler. 22117CC=$lt_compiler 22118 22119# Is the compiler the GNU compiler? 22120with_gcc=$GCC 22121 22122# Compiler flag to turn off builtin functions. 22123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22124 22125# Additional compiler flags for building library objects. 22126pic_flag=$lt_lt_prog_compiler_pic 22127 22128# How to pass a linker flag through the compiler. 22129wl=$lt_lt_prog_compiler_wl 22130 22131# Compiler flag to prevent dynamic linking. 22132link_static_flag=$lt_lt_prog_compiler_static 22133 22134# Does compiler simultaneously support -c and -o options? 22135compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22136 22137# Whether or not to add -lc for building shared libraries. 22138build_libtool_need_lc=$archive_cmds_need_lc 22139 22140# Whether or not to disallow shared libs when runtime libs are static. 22141allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22142 22143# Compiler flag to allow reflexive dlopens. 22144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22145 22146# Compiler flag to generate shared objects directly from archives. 22147whole_archive_flag_spec=$lt_whole_archive_flag_spec 22148 22149# Whether the compiler copes with passing no objects directly. 22150compiler_needs_object=$lt_compiler_needs_object 22151 22152# Create an old-style archive from a shared archive. 22153old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22154 22155# Create a temporary old-style archive to link instead of a shared archive. 22156old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22157 22158# Commands used to build a shared archive. 22159archive_cmds=$lt_archive_cmds 22160archive_expsym_cmds=$lt_archive_expsym_cmds 22161 22162# Commands used to build a loadable module if different from building 22163# a shared archive. 22164module_cmds=$lt_module_cmds 22165module_expsym_cmds=$lt_module_expsym_cmds 22166 22167# Whether we are building with GNU ld or not. 22168with_gnu_ld=$lt_with_gnu_ld 22169 22170# Flag that allows shared libraries with undefined symbols to be built. 22171allow_undefined_flag=$lt_allow_undefined_flag 22172 22173# Flag that enforces no undefined symbols. 22174no_undefined_flag=$lt_no_undefined_flag 22175 22176# Flag to hardcode \$libdir into a binary during linking. 22177# This must work even if \$libdir does not exist 22178hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22179 22180# Whether we need a single "-rpath" flag with a separated argument. 22181hardcode_libdir_separator=$lt_hardcode_libdir_separator 22182 22183# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22184# DIR into the resulting binary. 22185hardcode_direct=$hardcode_direct 22186 22187# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22188# DIR into the resulting binary and the resulting library dependency is 22189# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22190# library is relocated. 22191hardcode_direct_absolute=$hardcode_direct_absolute 22192 22193# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22194# into the resulting binary. 22195hardcode_minus_L=$hardcode_minus_L 22196 22197# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22198# into the resulting binary. 22199hardcode_shlibpath_var=$hardcode_shlibpath_var 22200 22201# Set to "yes" if building a shared library automatically hardcodes DIR 22202# into the library and all subsequent libraries and executables linked 22203# against it. 22204hardcode_automatic=$hardcode_automatic 22205 22206# Set to yes if linker adds runtime paths of dependent libraries 22207# to runtime path list. 22208inherit_rpath=$inherit_rpath 22209 22210# Whether libtool must link a program against all its dependency libraries. 22211link_all_deplibs=$link_all_deplibs 22212 22213# Set to "yes" if exported symbols are required. 22214always_export_symbols=$always_export_symbols 22215 22216# The commands to list exported symbols. 22217export_symbols_cmds=$lt_export_symbols_cmds 22218 22219# Symbols that should not be listed in the preloaded symbols. 22220exclude_expsyms=$lt_exclude_expsyms 22221 22222# Symbols that must always be exported. 22223include_expsyms=$lt_include_expsyms 22224 22225# Commands necessary for linking programs (against libraries) with templates. 22226prelink_cmds=$lt_prelink_cmds 22227 22228# Commands necessary for finishing linking programs. 22229postlink_cmds=$lt_postlink_cmds 22230 22231# Specify filename containing input files. 22232file_list_spec=$lt_file_list_spec 22233 22234# How to hardcode a shared library path into an executable. 22235hardcode_action=$hardcode_action 22236 22237# ### END LIBTOOL CONFIG 22238 22239_LT_EOF 22240 22241 cat <<'_LT_EOF' >> "$cfgfile" 22242 22243# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22244 22245# func_munge_path_list VARIABLE PATH 22246# ----------------------------------- 22247# VARIABLE is name of variable containing _space_ separated list of 22248# directories to be munged by the contents of PATH, which is string 22249# having a format: 22250# "DIR[:DIR]:" 22251# string "DIR[ DIR]" will be prepended to VARIABLE 22252# ":DIR[:DIR]" 22253# string "DIR[ DIR]" will be appended to VARIABLE 22254# "DIRP[:DIRP]::[DIRA:]DIRA" 22255# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22256# "DIRA[ DIRA]" will be appended to VARIABLE 22257# "DIR[:DIR]" 22258# VARIABLE will be replaced by "DIR[ DIR]" 22259func_munge_path_list () 22260{ 22261 case x$2 in 22262 x) 22263 ;; 22264 *:) 22265 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22266 ;; 22267 x:*) 22268 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22269 ;; 22270 *::*) 22271 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22272 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22273 ;; 22274 *) 22275 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22276 ;; 22277 esac 22278} 22279 22280 22281# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22282func_cc_basename () 22283{ 22284 for cc_temp in $*""; do 22285 case $cc_temp in 22286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22288 \-*) ;; 22289 *) break;; 22290 esac 22291 done 22292 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22293} 22294 22295 22296# ### END FUNCTIONS SHARED WITH CONFIGURE 22297 22298_LT_EOF 22299 22300 case $host_os in 22301 aix3*) 22302 cat <<\_LT_EOF >> "$cfgfile" 22303# AIX sometimes has problems with the GCC collect2 program. For some 22304# reason, if we set the COLLECT_NAMES environment variable, the problems 22305# vanish in a puff of smoke. 22306if test set != "${COLLECT_NAMES+set}"; then 22307 COLLECT_NAMES= 22308 export COLLECT_NAMES 22309fi 22310_LT_EOF 22311 ;; 22312 esac 22313 22314 22315ltmain=$ac_aux_dir/ltmain.sh 22316 22317 22318 # We use sed instead of cat because bash on DJGPP gets confused if 22319 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22320 # text mode, it properly converts lines to CR/LF. This bash problem 22321 # is reportedly fixed, but why not run on old versions too? 22322 sed '$q' "$ltmain" >> "$cfgfile" \ 22323 || (rm -f "$cfgfile"; exit 1) 22324 22325 mv -f "$cfgfile" "$ofile" || 22326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22327 chmod +x "$ofile" 22328 22329 ;; 22330 22331 esac 22332done # for ac_tag 22333 22334 22335as_fn_exit 0 22336_ACEOF 22337ac_clean_files=$ac_clean_files_save 22338 22339test $ac_write_fail = 0 || 22340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22341 22342 22343# configure is writing to config.log, and then calls config.status. 22344# config.status does its own redirection, appending to config.log. 22345# Unfortunately, on DOS this fails, as config.log is still kept open 22346# by configure, so config.status won't be able to write to it; its 22347# output is simply discarded. So we exec the FD to /dev/null, 22348# effectively closing config.log, so it can be properly (re)opened and 22349# appended to by config.status. When coming back to configure, we 22350# need to make the FD available again. 22351if test "$no_create" != yes; then 22352 ac_cs_success=: 22353 ac_config_status_args= 22354 test "$silent" = yes && 22355 ac_config_status_args="$ac_config_status_args --quiet" 22356 exec 5>/dev/null 22357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22358 exec 5>>config.log 22359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22360 # would make configure fail if this is the last instruction. 22361 $ac_cs_success || as_fn_exit 1 22362fi 22363if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22365$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22366fi 22367 22368 22369echo "" 22370echo " prefix: $prefix" 22371echo " exec_prefix: $exec_prefix" 22372echo " libdir: $libdir" 22373echo " includedir: $includedir" 22374echo " configdir: $configdir" 22375 22376echo "" 22377echo " CFLAGS: $CFLAGS" 22378echo " CXXFLAGS: $CXXFLAGS" 22379echo " Macros: $DEFINES" 22380 22381echo "" 22382echo " Run '${MAKE-make}' to build xf86-video-amdgpu" 22383echo "" 22384