configure revision ee82cb62
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-mga 1.6.5. 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-mga' 593PACKAGE_TARNAME='xf86-video-mga' 594PACKAGE_VERSION='1.6.5' 595PACKAGE_STRING='xf86-video-mga 1.6.5' 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 642USE_EXA_FALSE 643USE_EXA_TRUE 644XAA_FALSE 645XAA_TRUE 646XSERVER_LIBPCIACCESS_FALSE 647XSERVER_LIBPCIACCESS_TRUE 648PCIACCESS_LIBS 649PCIACCESS_CFLAGS 650DRI_LIBS 651DRI_CFLAGS 652DRI_FALSE 653DRI_TRUE 654XORG_LIBS 655XORG_CFLAGS 656LT_SYS_LIBRARY_PATH 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674LIBTOOL 675MAINT 676MAINTAINER_MODE_FALSE 677MAINTAINER_MODE_TRUE 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712MAN_SUBSTS 713XORG_MAN_PAGE 714ADMIN_MAN_DIR 715DRIVER_MAN_DIR 716MISC_MAN_DIR 717FILE_MAN_DIR 718LIB_MAN_DIR 719APP_MAN_DIR 720ADMIN_MAN_SUFFIX 721DRIVER_MAN_SUFFIX 722MISC_MAN_SUFFIX 723FILE_MAN_SUFFIX 724LIB_MAN_SUFFIX 725APP_MAN_SUFFIX 726SED 727host_os 728host_vendor 729host_cpu 730host 731build_os 732build_vendor 733build_cpu 734build 735INSTALL_CMD 736PKG_CONFIG_LIBDIR 737PKG_CONFIG_PATH 738PKG_CONFIG 739CHANGELOG_CMD 740STRICT_CFLAGS 741CWARNFLAGS 742BASE_CFLAGS 743EGREP 744GREP 745CPP 746OBJEXT 747EXEEXT 748ac_ct_CC 749CPPFLAGS 750LDFLAGS 751CFLAGS 752CC 753INSTALL_DATA 754INSTALL_SCRIPT 755INSTALL_PROGRAM 756target_alias 757host_alias 758build_alias 759LIBS 760ECHO_T 761ECHO_N 762ECHO_C 763DEFS 764mandir 765localedir 766libdir 767psdir 768pdfdir 769dvidir 770htmldir 771infodir 772docdir 773oldincludedir 774includedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_selective_werror 798enable_strict_compilation 799enable_silent_rules 800enable_dependency_tracking 801enable_maintainer_mode 802enable_static 803enable_shared 804with_pic 805enable_fast_install 806with_aix_soname 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810with_xorg_module_dir 811enable_dri 812enable_exa 813enable_xaa 814' 815 ac_precious_vars='build_alias 816host_alias 817target_alias 818CC 819CFLAGS 820LDFLAGS 821LIBS 822CPPFLAGS 823CPP 824PKG_CONFIG 825PKG_CONFIG_PATH 826PKG_CONFIG_LIBDIR 827LT_SYS_LIBRARY_PATH 828XORG_CFLAGS 829XORG_LIBS 830DRI_CFLAGS 831DRI_LIBS 832PCIACCESS_CFLAGS 833PCIACCESS_LIBS' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures xf86-video-mga 1.6.5 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=C prepend C to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of xf86-video-mga 1.6.5:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --disable-selective-werror 1453 Turn off selective compiler errors. (default: 1454 enabled) 1455 --enable-strict-compilation 1456 Enable all warnings from compiler and make them 1457 errors (default: disabled) 1458 --enable-silent-rules less verbose build output (undo: "make V=1") 1459 --disable-silent-rules verbose build output (undo: "make V=0") 1460 --enable-dependency-tracking 1461 do not reject slow dependency extractors 1462 --disable-dependency-tracking 1463 speeds up one-time build 1464 --enable-maintainer-mode 1465 enable make rules and dependencies not useful (and 1466 sometimes confusing) to the casual installer 1467 --enable-static[=PKGS] build static libraries [default=no] 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-fast-install[=PKGS] 1470 optimize for fast installation [default=yes] 1471 --disable-libtool-lock avoid locking (might break parallel builds) 1472 --disable-dri Disable DRI support [[default=auto]] 1473 --disable-exa Disable EXA support [[default=enabled]] 1474 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1475 [default=auto] 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1481 both] 1482 --with-aix-soname=aix|svr4|both 1483 shared library versioning (aka "SONAME") variant to 1484 provide on AIX, [default=aix]. 1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1486 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1487 compiler's sysroot if not specified). 1488 --with-xorg-module-dir=DIR 1489 Default xorg module directory 1490 [[default=$libdir/xorg/modules]] 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 CPP C preprocessor 1501 PKG_CONFIG path to pkg-config utility 1502 PKG_CONFIG_PATH 1503 directories to add to pkg-config's search path 1504 PKG_CONFIG_LIBDIR 1505 path overriding pkg-config's built-in search path 1506 LT_SYS_LIBRARY_PATH 1507 User-defined run-time library search path. 1508 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1509 XORG_LIBS linker flags for XORG, overriding pkg-config 1510 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1511 DRI_LIBS linker flags for DRI, overriding pkg-config 1512 PCIACCESS_CFLAGS 1513 C compiler flags for PCIACCESS, overriding pkg-config 1514 PCIACCESS_LIBS 1515 linker flags for PCIACCESS, overriding pkg-config 1516 1517Use these variables to override the choices made by `configure' or to help 1518it to find libraries and programs with nonstandard names/locations. 1519 1520Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1521_ACEOF 1522ac_status=$? 1523fi 1524 1525if test "$ac_init_help" = "recursive"; then 1526 # If there are subdirs, report their specific --help. 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1528 test -d "$ac_dir" || 1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1530 continue 1531 ac_builddir=. 1532 1533case "$ac_dir" in 1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535*) 1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1537 # A ".." for each directory in $ac_dir_suffix. 1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1539 case $ac_top_builddir_sub in 1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1542 esac ;; 1543esac 1544ac_abs_top_builddir=$ac_pwd 1545ac_abs_builddir=$ac_pwd$ac_dir_suffix 1546# for backward compatibility: 1547ac_top_builddir=$ac_top_build_prefix 1548 1549case $srcdir in 1550 .) # We are building in place. 1551 ac_srcdir=. 1552 ac_top_srcdir=$ac_top_builddir_sub 1553 ac_abs_top_srcdir=$ac_pwd ;; 1554 [\\/]* | ?:[\\/]* ) # Absolute name. 1555 ac_srcdir=$srcdir$ac_dir_suffix; 1556 ac_top_srcdir=$srcdir 1557 ac_abs_top_srcdir=$srcdir ;; 1558 *) # Relative name. 1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1560 ac_top_srcdir=$ac_top_build_prefix$srcdir 1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1562esac 1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1564 1565 cd "$ac_dir" || { ac_status=$?; continue; } 1566 # Check for guested configure. 1567 if test -f "$ac_srcdir/configure.gnu"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1570 elif test -f "$ac_srcdir/configure"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure" --help=recursive 1573 else 1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1575 fi || ac_status=$? 1576 cd "$ac_pwd" || { ac_status=$?; break; } 1577 done 1578fi 1579 1580test -n "$ac_init_help" && exit $ac_status 1581if $ac_init_version; then 1582 cat <<\_ACEOF 1583xf86-video-mga configure 1.6.5 1584generated by GNU Autoconf 2.69 1585 1586Copyright (C) 2012 Free Software Foundation, Inc. 1587This configure script is free software; the Free Software Foundation 1588gives unlimited permission to copy, distribute and modify it. 1589_ACEOF 1590 exit 1591fi 1592 1593## ------------------------ ## 1594## Autoconf initialization. ## 1595## ------------------------ ## 1596 1597# ac_fn_c_try_compile LINENO 1598# -------------------------- 1599# Try to compile conftest.$ac_ext, and return whether this succeeded. 1600ac_fn_c_try_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext 1604 if { { ac_try="$ac_compile" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610$as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_compile") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest.$ac_objext; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_compile 1634 1635# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1636# --------------------------------------------- 1637# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1638# accordingly. 1639ac_fn_c_check_decl () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 as_decl_name=`echo $2|sed 's/ *(.*//'` 1643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1645$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1646if eval \${$3+:} false; then : 1647 $as_echo_n "(cached) " >&6 1648else 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652int 1653main () 1654{ 1655#ifndef $as_decl_name 1656#ifdef __cplusplus 1657 (void) $as_decl_use; 1658#else 1659 (void) $as_decl_name; 1660#endif 1661#endif 1662 1663 ; 1664 return 0; 1665} 1666_ACEOF 1667if ac_fn_c_try_compile "$LINENO"; then : 1668 eval "$3=yes" 1669else 1670 eval "$3=no" 1671fi 1672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1673fi 1674eval ac_res=\$$3 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1676$as_echo "$ac_res" >&6; } 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 1679} # ac_fn_c_check_decl 1680 1681# ac_fn_c_try_cpp LINENO 1682# ---------------------- 1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_cpp () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } > conftest.i && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_cpp 1717 1718# ac_fn_c_try_run LINENO 1719# ---------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1721# that executables *can* be run. 1722ac_fn_c_try_run () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>&5 1733 ac_status=$? 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1736 { { case "(($ac_try" in 1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1738 *) ac_try_echo=$ac_try;; 1739esac 1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1741$as_echo "$ac_try_echo"; } >&5 1742 (eval "$ac_try") 2>&5 1743 ac_status=$? 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; }; }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: program exited with status $ac_status" >&5 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=$ac_status 1753fi 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758} # ac_fn_c_try_run 1759 1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1761# ------------------------------------------------------- 1762# Tests whether HEADER exists and can be compiled using the include files in 1763# INCLUDES, setting the cache variable VAR accordingly. 1764ac_fn_c_check_header_compile () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768$as_echo_n "checking for $2... " >&6; } 1769if eval \${$3+:} false; then : 1770 $as_echo_n "(cached) " >&6 1771else 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773/* end confdefs.h. */ 1774$4 1775#include <$2> 1776_ACEOF 1777if ac_fn_c_try_compile "$LINENO"; then : 1778 eval "$3=yes" 1779else 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1789} # ac_fn_c_check_header_compile 1790 1791# ac_fn_c_try_link LINENO 1792# ----------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. 1794ac_fn_c_try_link () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 rm -f conftest.$ac_objext conftest$ac_exeext 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { 1814 test -z "$ac_c_werror_flag" || 1815 test ! -s conftest.err 1816 } && test -s conftest$ac_exeext && { 1817 test "$cross_compiling" = yes || 1818 test -x conftest$ac_exeext 1819 }; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=1 1826fi 1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1829 # interfere with the next link command; also delete a directory that is 1830 # left behind by Apple's compiler. We do this before executing the actions. 1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_c_try_link 1836 1837# ac_fn_c_check_func LINENO FUNC VAR 1838# ---------------------------------- 1839# Tests whether FUNC exists, setting the cache variable VAR accordingly 1840ac_fn_c_check_func () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844$as_echo_n "checking for $2... " >&6; } 1845if eval \${$3+:} false; then : 1846 $as_echo_n "(cached) " >&6 1847else 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1852#define $2 innocuous_$2 1853 1854/* System header to define __stub macros and hopefully few prototypes, 1855 which can conflict with char $2 (); below. 1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1857 <limits.h> exists even on freestanding compilers. */ 1858 1859#ifdef __STDC__ 1860# include <limits.h> 1861#else 1862# include <assert.h> 1863#endif 1864 1865#undef $2 1866 1867/* Override any GCC internal prototype to avoid an error. 1868 Use char because int might match the return type of a GCC 1869 builtin and then its argument prototype would still apply. */ 1870#ifdef __cplusplus 1871extern "C" 1872#endif 1873char $2 (); 1874/* The GNU C library defines this for functions which it implements 1875 to always fail with ENOSYS. Some functions are actually named 1876 something starting with __ and the normal name is an alias. */ 1877#if defined __stub_$2 || defined __stub___$2 1878choke me 1879#endif 1880 1881int 1882main () 1883{ 1884return $2 (); 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_link "$LINENO"; then : 1890 eval "$3=yes" 1891else 1892 eval "$3=no" 1893fi 1894rm -f core conftest.err conftest.$ac_objext \ 1895 conftest$ac_exeext conftest.$ac_ext 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1901 1902} # ac_fn_c_check_func 1903 1904# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1905# ------------------------------------------------------- 1906# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1907# the include files in INCLUDES and setting the cache variable VAR 1908# accordingly. 1909ac_fn_c_check_header_mongrel () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 if eval \${$3+:} false; then : 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917fi 1918eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920$as_echo "$ac_res" >&6; } 1921else 1922 # Is the header compilable? 1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1924$as_echo_n "checking $2 usability... " >&6; } 1925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927$4 1928#include <$2> 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO"; then : 1931 ac_header_compiler=yes 1932else 1933 ac_header_compiler=no 1934fi 1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1937$as_echo "$ac_header_compiler" >&6; } 1938 1939# Is the header present? 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1941$as_echo_n "checking $2 presence... " >&6; } 1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944#include <$2> 1945_ACEOF 1946if ac_fn_c_try_cpp "$LINENO"; then : 1947 ac_header_preproc=yes 1948else 1949 ac_header_preproc=no 1950fi 1951rm -f conftest.err conftest.i conftest.$ac_ext 1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1953$as_echo "$ac_header_preproc" >&6; } 1954 1955# So? What about this header? 1956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1957 yes:no: ) 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1959$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1962 ;; 1963 no:yes:* ) 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1965$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1967$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1969$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1971$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1974( $as_echo "## ---------------------------------------------------------------------- ## 1975## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1976## ---------------------------------------------------------------------- ##" 1977 ) | sed "s/^/$as_me: WARNING: /" >&2 1978 ;; 1979esac 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 eval "$3=\$ac_header_compiler" 1986fi 1987eval ac_res=\$$3 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989$as_echo "$ac_res" >&6; } 1990fi 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993} # ac_fn_c_check_header_mongrel 1994cat >config.log <<_ACEOF 1995This file contains any messages produced by compilers while 1996running configure, to aid debugging if configure makes a mistake. 1997 1998It was created by xf86-video-mga $as_me 1.6.5, which was 1999generated by GNU Autoconf 2.69. Invocation command line was 2000 2001 $ $0 $@ 2002 2003_ACEOF 2004exec 5>>config.log 2005{ 2006cat <<_ASUNAME 2007## --------- ## 2008## Platform. ## 2009## --------- ## 2010 2011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2012uname -m = `(uname -m) 2>/dev/null || echo unknown` 2013uname -r = `(uname -r) 2>/dev/null || echo unknown` 2014uname -s = `(uname -s) 2>/dev/null || echo unknown` 2015uname -v = `(uname -v) 2>/dev/null || echo unknown` 2016 2017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2019 2020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2023/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2027 2028_ASUNAME 2029 2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 $as_echo "PATH: $as_dir" 2036 done 2037IFS=$as_save_IFS 2038 2039} >&5 2040 2041cat >&5 <<_ACEOF 2042 2043 2044## ----------- ## 2045## Core tests. ## 2046## ----------- ## 2047 2048_ACEOF 2049 2050 2051# Keep a trace of the command line. 2052# Strip out --no-create and --no-recursion so they do not pile up. 2053# Strip out --silent because we don't want to record it for future runs. 2054# Also quote any args containing shell meta-characters. 2055# Make two passes to allow for proper duplicate-argument suppression. 2056ac_configure_args= 2057ac_configure_args0= 2058ac_configure_args1= 2059ac_must_keep_next=false 2060for ac_pass in 1 2 2061do 2062 for ac_arg 2063 do 2064 case $ac_arg in 2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2067 | -silent | --silent | --silen | --sile | --sil) 2068 continue ;; 2069 *\'*) 2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2071 esac 2072 case $ac_pass in 2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2074 2) 2075 as_fn_append ac_configure_args1 " '$ac_arg'" 2076 if test $ac_must_keep_next = true; then 2077 ac_must_keep_next=false # Got value, back to normal. 2078 else 2079 case $ac_arg in 2080 *=* | --config-cache | -C | -disable-* | --disable-* \ 2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2083 | -with-* | --with-* | -without-* | --without-* | --x) 2084 case "$ac_configure_args0 " in 2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2086 esac 2087 ;; 2088 -* ) ac_must_keep_next=true ;; 2089 esac 2090 fi 2091 as_fn_append ac_configure_args " '$ac_arg'" 2092 ;; 2093 esac 2094 done 2095done 2096{ ac_configure_args0=; unset ac_configure_args0;} 2097{ ac_configure_args1=; unset ac_configure_args1;} 2098 2099# When interrupted or exit'd, cleanup temporary files, and complete 2100# config.log. We remove comments because anyway the quotes in there 2101# would cause problems or look ugly. 2102# WARNING: Use '\'' to represent an apostrophe within the trap. 2103# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2104trap 'exit_status=$? 2105 # Save into config.log some information that might help in debugging. 2106 { 2107 echo 2108 2109 $as_echo "## ---------------- ## 2110## Cache variables. ## 2111## ---------------- ##" 2112 echo 2113 # The following way of writing the cache mishandles newlines in values, 2114( 2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2116 eval ac_val=\$$ac_var 2117 case $ac_val in #( 2118 *${as_nl}*) 2119 case $ac_var in #( 2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2121$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2122 esac 2123 case $ac_var in #( 2124 _ | IFS | as_nl) ;; #( 2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2126 *) { eval $ac_var=; unset $ac_var;} ;; 2127 esac ;; 2128 esac 2129 done 2130 (set) 2>&1 | 2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2132 *${as_nl}ac_space=\ *) 2133 sed -n \ 2134 "s/'\''/'\''\\\\'\'''\''/g; 2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2136 ;; #( 2137 *) 2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2139 ;; 2140 esac | 2141 sort 2142) 2143 echo 2144 2145 $as_echo "## ----------------- ## 2146## Output variables. ## 2147## ----------------- ##" 2148 echo 2149 for ac_var in $ac_subst_vars 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2154 esac 2155 $as_echo "$ac_var='\''$ac_val'\''" 2156 done | sort 2157 echo 2158 2159 if test -n "$ac_subst_files"; then 2160 $as_echo "## ------------------- ## 2161## File substitutions. ## 2162## ------------------- ##" 2163 echo 2164 for ac_var in $ac_subst_files 2165 do 2166 eval ac_val=\$$ac_var 2167 case $ac_val in 2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2169 esac 2170 $as_echo "$ac_var='\''$ac_val'\''" 2171 done | sort 2172 echo 2173 fi 2174 2175 if test -s confdefs.h; then 2176 $as_echo "## ----------- ## 2177## confdefs.h. ## 2178## ----------- ##" 2179 echo 2180 cat confdefs.h 2181 echo 2182 fi 2183 test "$ac_signal" != 0 && 2184 $as_echo "$as_me: caught signal $ac_signal" 2185 $as_echo "$as_me: exit $exit_status" 2186 } >&5 2187 rm -f core *.core core.conftest.* && 2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2189 exit $exit_status 2190' 0 2191for ac_signal in 1 2 13 15; do 2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2193done 2194ac_signal=0 2195 2196# confdefs.h avoids OS command line length limits that DEFS can exceed. 2197rm -f -r conftest* confdefs.h 2198 2199$as_echo "/* confdefs.h */" > confdefs.h 2200 2201# Predefined preprocessor variables. 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_NAME "$PACKAGE_NAME" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_VERSION "$PACKAGE_VERSION" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_STRING "$PACKAGE_STRING" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_URL "$PACKAGE_URL" 2225_ACEOF 2226 2227 2228# Let the site file select an alternate cache file if it wants to. 2229# Prefer an explicitly selected file to automatically selected ones. 2230ac_site_file1=NONE 2231ac_site_file2=NONE 2232if test -n "$CONFIG_SITE"; then 2233 # We do not want a PATH search for config.site. 2234 case $CONFIG_SITE in #(( 2235 -*) ac_site_file1=./$CONFIG_SITE;; 2236 */*) ac_site_file1=$CONFIG_SITE;; 2237 *) ac_site_file1=./$CONFIG_SITE;; 2238 esac 2239elif test "x$prefix" != xNONE; then 2240 ac_site_file1=$prefix/share/config.site 2241 ac_site_file2=$prefix/etc/config.site 2242else 2243 ac_site_file1=$ac_default_prefix/share/config.site 2244 ac_site_file2=$ac_default_prefix/etc/config.site 2245fi 2246for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2247do 2248 test "x$ac_site_file" = xNONE && continue 2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2251$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2252 sed 's/^/| /' "$ac_site_file" >&5 2253 . "$ac_site_file" \ 2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2256as_fn_error $? "failed to load site script $ac_site_file 2257See \`config.log' for more details" "$LINENO" 5; } 2258 fi 2259done 2260 2261if test -r "$cache_file"; then 2262 # Some versions of bash will fail to source /dev/null (special files 2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2266$as_echo "$as_me: loading cache $cache_file" >&6;} 2267 case $cache_file in 2268 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2269 *) . "./$cache_file";; 2270 esac 2271 fi 2272else 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2274$as_echo "$as_me: creating cache $cache_file" >&6;} 2275 >$cache_file 2276fi 2277 2278# Check that the precious variables saved in the cache have kept the same 2279# value. 2280ac_cache_corrupted=false 2281for ac_var in $ac_precious_vars; do 2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2283 eval ac_new_set=\$ac_env_${ac_var}_set 2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2285 eval ac_new_val=\$ac_env_${ac_var}_value 2286 case $ac_old_set,$ac_new_set in 2287 set,) 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2289$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2290 ac_cache_corrupted=: ;; 2291 ,set) 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2293$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2294 ac_cache_corrupted=: ;; 2295 ,);; 2296 *) 2297 if test "x$ac_old_val" != "x$ac_new_val"; then 2298 # differences in whitespace do not lead to failure. 2299 ac_old_val_w=`echo x $ac_old_val` 2300 ac_new_val_w=`echo x $ac_new_val` 2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2303$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2304 ac_cache_corrupted=: 2305 else 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2307$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2308 eval $ac_var=\$ac_old_val 2309 fi 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2311$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2313$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2314 fi;; 2315 esac 2316 # Pass precious variables to config.status. 2317 if test "$ac_new_set" = set; then 2318 case $ac_new_val in 2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2320 *) ac_arg=$ac_var=$ac_new_val ;; 2321 esac 2322 case " $ac_configure_args " in 2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2325 esac 2326 fi 2327done 2328if $ac_cache_corrupted; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2332$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2334fi 2335## -------------------- ## 2336## Main body of script. ## 2337## -------------------- ## 2338 2339ac_ext=c 2340ac_cpp='$CPP $CPPFLAGS' 2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343ac_compiler_gnu=$ac_cv_c_compiler_gnu 2344 2345 2346 2347ac_config_headers="$ac_config_headers config.h" 2348 2349 2350# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362ac_aux_dir= 2363for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2364 if test -f "$ac_dir/install-sh"; then 2365 ac_aux_dir=$ac_dir 2366 ac_install_sh="$ac_aux_dir/install-sh -c" 2367 break 2368 elif test -f "$ac_dir/install.sh"; then 2369 ac_aux_dir=$ac_dir 2370 ac_install_sh="$ac_aux_dir/install.sh -c" 2371 break 2372 elif test -f "$ac_dir/shtool"; then 2373 ac_aux_dir=$ac_dir 2374 ac_install_sh="$ac_aux_dir/shtool install -c" 2375 break 2376 fi 2377done 2378if test -z "$ac_aux_dir"; then 2379 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2380fi 2381 2382# These three variables are undocumented and unsupported, 2383# and are intended to be withdrawn in a future Autoconf release. 2384# They can cause serious problems if a builder's source tree is in a directory 2385# whose full name contains unusual characters. 2386ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2387ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2388ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2389 2390 2391# Find a good install program. We prefer a C program (faster), 2392# so one script is as good as another. But avoid the broken or 2393# incompatible versions: 2394# SysV /etc/install, /usr/sbin/install 2395# SunOS /usr/etc/install 2396# IRIX /sbin/install 2397# AIX /bin/install 2398# AmigaOS /C/install, which installs bootblocks on floppy discs 2399# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2400# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2401# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2402# OS/2's system install, which has a completely different semantic 2403# ./install, which can be erroneously created by make from ./install.sh. 2404# Reject install programs that cannot install multiple files. 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2406$as_echo_n "checking for a BSD-compatible install... " >&6; } 2407if test -z "$INSTALL"; then 2408if ${ac_cv_path_install+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 # Account for people who put trailing slashes in PATH elements. 2417case $as_dir/ in #(( 2418 ./ | .// | /[cC]/* | \ 2419 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2420 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2421 /usr/ucb/* ) ;; 2422 *) 2423 # OSF1 and SCO ODT 3.0 have their own names for install. 2424 # Don't use installbsd from OSF since it installs stuff as root 2425 # by default. 2426 for ac_prog in ginstall scoinst install; do 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2429 if test $ac_prog = install && 2430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2431 # AIX install. It has an incompatible calling convention. 2432 : 2433 elif test $ac_prog = install && 2434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2435 # program-specific install script used by HP pwplus--don't use. 2436 : 2437 else 2438 rm -rf conftest.one conftest.two conftest.dir 2439 echo one > conftest.one 2440 echo two > conftest.two 2441 mkdir conftest.dir 2442 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2443 test -s conftest.one && test -s conftest.two && 2444 test -s conftest.dir/conftest.one && 2445 test -s conftest.dir/conftest.two 2446 then 2447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2448 break 3 2449 fi 2450 fi 2451 fi 2452 done 2453 done 2454 ;; 2455esac 2456 2457 done 2458IFS=$as_save_IFS 2459 2460rm -rf conftest.one conftest.two conftest.dir 2461 2462fi 2463 if test "${ac_cv_path_install+set}" = set; then 2464 INSTALL=$ac_cv_path_install 2465 else 2466 # As a last resort, use the slow shell script. Don't cache a 2467 # value for INSTALL within a source directory, because that will 2468 # break other packages using the cache if that directory is 2469 # removed, or if the value is a relative name. 2470 INSTALL=$ac_install_sh 2471 fi 2472fi 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2474$as_echo "$INSTALL" >&6; } 2475 2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2477# It thinks the first close brace ends the variable substitution. 2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2479 2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2481 2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2483 2484# Expand $ac_aux_dir to an absolute path. 2485am_aux_dir=`cd "$ac_aux_dir" && pwd` 2486 2487ac_ext=c 2488ac_cpp='$CPP $CPPFLAGS' 2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2491ac_compiler_gnu=$ac_cv_c_compiler_gnu 2492if test -n "$ac_tool_prefix"; then 2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2494set dummy ${ac_tool_prefix}gcc; ac_word=$2 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2496$as_echo_n "checking for $ac_word... " >&6; } 2497if ${ac_cv_prog_CC+:} false; then : 2498 $as_echo_n "(cached) " >&6 2499else 2500 if test -n "$CC"; then 2501 ac_cv_prog_CC="$CC" # Let the user override the test. 2502else 2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2504for as_dir in $PATH 2505do 2506 IFS=$as_save_IFS 2507 test -z "$as_dir" && as_dir=. 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2510 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2512 break 2 2513 fi 2514done 2515 done 2516IFS=$as_save_IFS 2517 2518fi 2519fi 2520CC=$ac_cv_prog_CC 2521if test -n "$CC"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2523$as_echo "$CC" >&6; } 2524else 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2526$as_echo "no" >&6; } 2527fi 2528 2529 2530fi 2531if test -z "$ac_cv_prog_CC"; then 2532 ac_ct_CC=$CC 2533 # Extract the first word of "gcc", so it can be a program name with args. 2534set dummy gcc; ac_word=$2 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2536$as_echo_n "checking for $ac_word... " >&6; } 2537if ${ac_cv_prog_ac_ct_CC+:} false; then : 2538 $as_echo_n "(cached) " >&6 2539else 2540 if test -n "$ac_ct_CC"; then 2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2542else 2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2544for as_dir in $PATH 2545do 2546 IFS=$as_save_IFS 2547 test -z "$as_dir" && as_dir=. 2548 for ac_exec_ext in '' $ac_executable_extensions; do 2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2550 ac_cv_prog_ac_ct_CC="gcc" 2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2552 break 2 2553 fi 2554done 2555 done 2556IFS=$as_save_IFS 2557 2558fi 2559fi 2560ac_ct_CC=$ac_cv_prog_ac_ct_CC 2561if test -n "$ac_ct_CC"; then 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2563$as_echo "$ac_ct_CC" >&6; } 2564else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2566$as_echo "no" >&6; } 2567fi 2568 2569 if test "x$ac_ct_CC" = x; then 2570 CC="" 2571 else 2572 case $cross_compiling:$ac_tool_warned in 2573yes:) 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2576ac_tool_warned=yes ;; 2577esac 2578 CC=$ac_ct_CC 2579 fi 2580else 2581 CC="$ac_cv_prog_CC" 2582fi 2583 2584if test -z "$CC"; then 2585 if test -n "$ac_tool_prefix"; then 2586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2587set dummy ${ac_tool_prefix}cc; ac_word=$2 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2589$as_echo_n "checking for $ac_word... " >&6; } 2590if ${ac_cv_prog_CC+:} false; then : 2591 $as_echo_n "(cached) " >&6 2592else 2593 if test -n "$CC"; then 2594 ac_cv_prog_CC="$CC" # Let the user override the test. 2595else 2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597for as_dir in $PATH 2598do 2599 IFS=$as_save_IFS 2600 test -z "$as_dir" && as_dir=. 2601 for ac_exec_ext in '' $ac_executable_extensions; do 2602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2603 ac_cv_prog_CC="${ac_tool_prefix}cc" 2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2605 break 2 2606 fi 2607done 2608 done 2609IFS=$as_save_IFS 2610 2611fi 2612fi 2613CC=$ac_cv_prog_CC 2614if test -n "$CC"; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2616$as_echo "$CC" >&6; } 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619$as_echo "no" >&6; } 2620fi 2621 2622 2623 fi 2624fi 2625if test -z "$CC"; then 2626 # Extract the first word of "cc", so it can be a program name with args. 2627set dummy cc; ac_word=$2 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2629$as_echo_n "checking for $ac_word... " >&6; } 2630if ${ac_cv_prog_CC+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test -n "$CC"; then 2634 ac_cv_prog_CC="$CC" # Let the user override the test. 2635else 2636 ac_prog_rejected=no 2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2645 ac_prog_rejected=yes 2646 continue 2647 fi 2648 ac_cv_prog_CC="cc" 2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2650 break 2 2651 fi 2652done 2653 done 2654IFS=$as_save_IFS 2655 2656if test $ac_prog_rejected = yes; then 2657 # We found a bogon in the path, so make sure we never use it. 2658 set dummy $ac_cv_prog_CC 2659 shift 2660 if test $# != 0; then 2661 # We chose a different compiler from the bogus one. 2662 # However, it has the same basename, so the bogon will be chosen 2663 # first if we set CC to just the basename; use the full file name. 2664 shift 2665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2666 fi 2667fi 2668fi 2669fi 2670CC=$ac_cv_prog_CC 2671if test -n "$CC"; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2673$as_echo "$CC" >&6; } 2674else 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2676$as_echo "no" >&6; } 2677fi 2678 2679 2680fi 2681if test -z "$CC"; then 2682 if test -n "$ac_tool_prefix"; then 2683 for ac_prog in cl.exe 2684 do 2685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2686set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2688$as_echo_n "checking for $ac_word... " >&6; } 2689if ${ac_cv_prog_CC+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 if test -n "$CC"; then 2693 ac_cv_prog_CC="$CC" # Let the user override the test. 2694else 2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 test -z "$as_dir" && as_dir=. 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2704 break 2 2705 fi 2706done 2707 done 2708IFS=$as_save_IFS 2709 2710fi 2711fi 2712CC=$ac_cv_prog_CC 2713if test -n "$CC"; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2715$as_echo "$CC" >&6; } 2716else 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2718$as_echo "no" >&6; } 2719fi 2720 2721 2722 test -n "$CC" && break 2723 done 2724fi 2725if test -z "$CC"; then 2726 ac_ct_CC=$CC 2727 for ac_prog in cl.exe 2728do 2729 # Extract the first word of "$ac_prog", so it can be a program name with args. 2730set dummy $ac_prog; ac_word=$2 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732$as_echo_n "checking for $ac_word... " >&6; } 2733if ${ac_cv_prog_ac_ct_CC+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test -n "$ac_ct_CC"; then 2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2738else 2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_ac_ct_CC="$ac_prog" 2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754fi 2755fi 2756ac_ct_CC=$ac_cv_prog_ac_ct_CC 2757if test -n "$ac_ct_CC"; then 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2759$as_echo "$ac_ct_CC" >&6; } 2760else 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762$as_echo "no" >&6; } 2763fi 2764 2765 2766 test -n "$ac_ct_CC" && break 2767done 2768 2769 if test "x$ac_ct_CC" = x; then 2770 CC="" 2771 else 2772 case $cross_compiling:$ac_tool_warned in 2773yes:) 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2776ac_tool_warned=yes ;; 2777esac 2778 CC=$ac_ct_CC 2779 fi 2780fi 2781 2782fi 2783 2784 2785test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2787as_fn_error $? "no acceptable C compiler found in \$PATH 2788See \`config.log' for more details" "$LINENO" 5; } 2789 2790# Provide some information about the compiler. 2791$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2792set X $ac_compile 2793ac_compiler=$2 2794for ac_option in --version -v -V -qversion; do 2795 { { ac_try="$ac_compiler $ac_option >&5" 2796case "(($ac_try" in 2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2798 *) ac_try_echo=$ac_try;; 2799esac 2800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2801$as_echo "$ac_try_echo"; } >&5 2802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2803 ac_status=$? 2804 if test -s conftest.err; then 2805 sed '10a\ 2806... rest of stderr output deleted ... 2807 10q' conftest.err >conftest.er1 2808 cat conftest.er1 >&5 2809 fi 2810 rm -f conftest.er1 conftest.err 2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2812 test $ac_status = 0; } 2813done 2814 2815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816/* end confdefs.h. */ 2817 2818int 2819main () 2820{ 2821 2822 ; 2823 return 0; 2824} 2825_ACEOF 2826ac_clean_files_save=$ac_clean_files 2827ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2828# Try to create an executable without -o first, disregard a.out. 2829# It will help us diagnose broken compilers, and finding out an intuition 2830# of exeext. 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2832$as_echo_n "checking whether the C compiler works... " >&6; } 2833ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2834 2835# The possible output files: 2836ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2837 2838ac_rmfiles= 2839for ac_file in $ac_files 2840do 2841 case $ac_file in 2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2843 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2844 esac 2845done 2846rm -f $ac_rmfiles 2847 2848if { { ac_try="$ac_link_default" 2849case "(($ac_try" in 2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *) ac_try_echo=$ac_try;; 2852esac 2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2854$as_echo "$ac_try_echo"; } >&5 2855 (eval "$ac_link_default") 2>&5 2856 ac_status=$? 2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2858 test $ac_status = 0; }; then : 2859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2860# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2861# in a Makefile. We should not override ac_cv_exeext if it was cached, 2862# so that the user can short-circuit this test for compilers unknown to 2863# Autoconf. 2864for ac_file in $ac_files '' 2865do 2866 test -f "$ac_file" || continue 2867 case $ac_file in 2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2869 ;; 2870 [ab].out ) 2871 # We found the default executable, but exeext='' is most 2872 # certainly right. 2873 break;; 2874 *.* ) 2875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2876 then :; else 2877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2878 fi 2879 # We set ac_cv_exeext here because the later test for it is not 2880 # safe: cross compilers may not add the suffix if given an `-o' 2881 # argument, so we may need to know it at that point already. 2882 # Even if this section looks crufty: it has the advantage of 2883 # actually working. 2884 break;; 2885 * ) 2886 break;; 2887 esac 2888done 2889test "$ac_cv_exeext" = no && ac_cv_exeext= 2890 2891else 2892 ac_file='' 2893fi 2894if test -z "$ac_file"; then : 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897$as_echo "$as_me: failed program was:" >&5 2898sed 's/^/| /' conftest.$ac_ext >&5 2899 2900{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2902as_fn_error 77 "C compiler cannot create executables 2903See \`config.log' for more details" "$LINENO" 5; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2906$as_echo "yes" >&6; } 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2909$as_echo_n "checking for C compiler default output file name... " >&6; } 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2911$as_echo "$ac_file" >&6; } 2912ac_exeext=$ac_cv_exeext 2913 2914rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2915ac_clean_files=$ac_clean_files_save 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2917$as_echo_n "checking for suffix of executables... " >&6; } 2918if { { ac_try="$ac_link" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2924$as_echo "$ac_try_echo"; } >&5 2925 (eval "$ac_link") 2>&5 2926 ac_status=$? 2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2928 test $ac_status = 0; }; then : 2929 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2930# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2931# work properly (i.e., refer to `conftest.exe'), while it won't with 2932# `rm'. 2933for ac_file in conftest.exe conftest conftest.*; do 2934 test -f "$ac_file" || continue 2935 case $ac_file in 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2938 break;; 2939 * ) break;; 2940 esac 2941done 2942else 2943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2945as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2946See \`config.log' for more details" "$LINENO" 5; } 2947fi 2948rm -f conftest conftest$ac_cv_exeext 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2950$as_echo "$ac_cv_exeext" >&6; } 2951 2952rm -f conftest.$ac_ext 2953EXEEXT=$ac_cv_exeext 2954ac_exeext=$EXEEXT 2955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2956/* end confdefs.h. */ 2957#include <stdio.h> 2958int 2959main () 2960{ 2961FILE *f = fopen ("conftest.out", "w"); 2962 return ferror (f) || fclose (f) != 0; 2963 2964 ; 2965 return 0; 2966} 2967_ACEOF 2968ac_clean_files="$ac_clean_files conftest.out" 2969# Check that the compiler produces executables we can run. If not, either 2970# the compiler is broken, or we cross compile. 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2972$as_echo_n "checking whether we are cross compiling... " >&6; } 2973if test "$cross_compiling" != yes; then 2974 { { ac_try="$ac_link" 2975case "(($ac_try" in 2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2977 *) ac_try_echo=$ac_try;; 2978esac 2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2980$as_echo "$ac_try_echo"; } >&5 2981 (eval "$ac_link") 2>&5 2982 ac_status=$? 2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2984 test $ac_status = 0; } 2985 if { ac_try='./conftest$ac_cv_exeext' 2986 { { case "(($ac_try" in 2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988 *) ac_try_echo=$ac_try;; 2989esac 2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2991$as_echo "$ac_try_echo"; } >&5 2992 (eval "$ac_try") 2>&5 2993 ac_status=$? 2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2995 test $ac_status = 0; }; }; then 2996 cross_compiling=no 2997 else 2998 if test "$cross_compiling" = maybe; then 2999 cross_compiling=yes 3000 else 3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3003as_fn_error $? "cannot run C compiled programs. 3004If you meant to cross compile, use \`--host'. 3005See \`config.log' for more details" "$LINENO" 5; } 3006 fi 3007 fi 3008fi 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3010$as_echo "$cross_compiling" >&6; } 3011 3012rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3013ac_clean_files=$ac_clean_files_save 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3015$as_echo_n "checking for suffix of object files... " >&6; } 3016if ${ac_cv_objext+:} false; then : 3017 $as_echo_n "(cached) " >&6 3018else 3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3020/* end confdefs.h. */ 3021 3022int 3023main () 3024{ 3025 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.o conftest.obj 3031if { { ac_try="$ac_compile" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3037$as_echo "$ac_try_echo"; } >&5 3038 (eval "$ac_compile") 2>&5 3039 ac_status=$? 3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3041 test $ac_status = 0; }; then : 3042 for ac_file in conftest.o conftest.obj conftest.*; do 3043 test -f "$ac_file" || continue; 3044 case $ac_file in 3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3047 break;; 3048 esac 3049done 3050else 3051 $as_echo "$as_me: failed program was:" >&5 3052sed 's/^/| /' conftest.$ac_ext >&5 3053 3054{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3056as_fn_error $? "cannot compute suffix of object files: cannot compile 3057See \`config.log' for more details" "$LINENO" 5; } 3058fi 3059rm -f conftest.$ac_cv_objext conftest.$ac_ext 3060fi 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3062$as_echo "$ac_cv_objext" >&6; } 3063OBJEXT=$ac_cv_objext 3064ac_objext=$OBJEXT 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3066$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3067if ${ac_cv_c_compiler_gnu+:} false; then : 3068 $as_echo_n "(cached) " >&6 3069else 3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071/* end confdefs.h. */ 3072 3073int 3074main () 3075{ 3076#ifndef __GNUC__ 3077 choke me 3078#endif 3079 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084if ac_fn_c_try_compile "$LINENO"; then : 3085 ac_compiler_gnu=yes 3086else 3087 ac_compiler_gnu=no 3088fi 3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3090ac_cv_c_compiler_gnu=$ac_compiler_gnu 3091 3092fi 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3094$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3095if test $ac_compiler_gnu = yes; then 3096 GCC=yes 3097else 3098 GCC= 3099fi 3100ac_test_CFLAGS=${CFLAGS+set} 3101ac_save_CFLAGS=$CFLAGS 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3103$as_echo_n "checking whether $CC accepts -g... " >&6; } 3104if ${ac_cv_prog_cc_g+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 ac_save_c_werror_flag=$ac_c_werror_flag 3108 ac_c_werror_flag=yes 3109 ac_cv_prog_cc_g=no 3110 CFLAGS="-g" 3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3112/* end confdefs.h. */ 3113 3114int 3115main () 3116{ 3117 3118 ; 3119 return 0; 3120} 3121_ACEOF 3122if ac_fn_c_try_compile "$LINENO"; then : 3123 ac_cv_prog_cc_g=yes 3124else 3125 CFLAGS="" 3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3127/* end confdefs.h. */ 3128 3129int 3130main () 3131{ 3132 3133 ; 3134 return 0; 3135} 3136_ACEOF 3137if ac_fn_c_try_compile "$LINENO"; then : 3138 3139else 3140 ac_c_werror_flag=$ac_save_c_werror_flag 3141 CFLAGS="-g" 3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3143/* end confdefs.h. */ 3144 3145int 3146main () 3147{ 3148 3149 ; 3150 return 0; 3151} 3152_ACEOF 3153if ac_fn_c_try_compile "$LINENO"; then : 3154 ac_cv_prog_cc_g=yes 3155fi 3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3157fi 3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3159fi 3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3161 ac_c_werror_flag=$ac_save_c_werror_flag 3162fi 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3164$as_echo "$ac_cv_prog_cc_g" >&6; } 3165if test "$ac_test_CFLAGS" = set; then 3166 CFLAGS=$ac_save_CFLAGS 3167elif test $ac_cv_prog_cc_g = yes; then 3168 if test "$GCC" = yes; then 3169 CFLAGS="-g -O2" 3170 else 3171 CFLAGS="-g" 3172 fi 3173else 3174 if test "$GCC" = yes; then 3175 CFLAGS="-O2" 3176 else 3177 CFLAGS= 3178 fi 3179fi 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3181$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3182if ${ac_cv_prog_cc_c89+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 ac_cv_prog_cc_c89=no 3186ac_save_CC=$CC 3187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188/* end confdefs.h. */ 3189#include <stdarg.h> 3190#include <stdio.h> 3191struct stat; 3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3193struct buf { int x; }; 3194FILE * (*rcsopen) (struct buf *, struct stat *, int); 3195static char *e (p, i) 3196 char **p; 3197 int i; 3198{ 3199 return p[i]; 3200} 3201static char *f (char * (*g) (char **, int), char **p, ...) 3202{ 3203 char *s; 3204 va_list v; 3205 va_start (v,p); 3206 s = g (p, va_arg (v,int)); 3207 va_end (v); 3208 return s; 3209} 3210 3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3212 function prototypes and stuff, but not '\xHH' hex character constants. 3213 These don't provoke an error unfortunately, instead are silently treated 3214 as 'x'. The following induces an error, until -std is added to get 3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3216 array size at least. It's necessary to write '\x00'==0 to get something 3217 that's true only with -std. */ 3218int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3219 3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3221 inside strings and character constants. */ 3222#define FOO(x) 'x' 3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3224 3225int test (int i, double x); 3226struct s1 {int (*f) (int a);}; 3227struct s2 {int (*f) (double a);}; 3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3229int argc; 3230char **argv; 3231int 3232main () 3233{ 3234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3241do 3242 CC="$ac_save_CC $ac_arg" 3243 if ac_fn_c_try_compile "$LINENO"; then : 3244 ac_cv_prog_cc_c89=$ac_arg 3245fi 3246rm -f core conftest.err conftest.$ac_objext 3247 test "x$ac_cv_prog_cc_c89" != "xno" && break 3248done 3249rm -f conftest.$ac_ext 3250CC=$ac_save_CC 3251 3252fi 3253# AC_CACHE_VAL 3254case "x$ac_cv_prog_cc_c89" in 3255 x) 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3257$as_echo "none needed" >&6; } ;; 3258 xno) 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3260$as_echo "unsupported" >&6; } ;; 3261 *) 3262 CC="$CC $ac_cv_prog_cc_c89" 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3265esac 3266if test "x$ac_cv_prog_cc_c89" != xno; then : 3267 3268fi 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275 3276ac_ext=c 3277ac_cpp='$CPP $CPPFLAGS' 3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3280ac_compiler_gnu=$ac_cv_c_compiler_gnu 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3282$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3283if ${am_cv_prog_cc_c_o+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288 3289int 3290main () 3291{ 3292 3293 ; 3294 return 0; 3295} 3296_ACEOF 3297 # Make sure it works both with $CC and with simple cc. 3298 # Following AC_PROG_CC_C_O, we do the test twice because some 3299 # compilers refuse to overwrite an existing .o file with -o, 3300 # though they will create one. 3301 am_cv_prog_cc_c_o=yes 3302 for am_i in 1 2; do 3303 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3304 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3305 ac_status=$? 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); } \ 3308 && test -f conftest2.$ac_objext; then 3309 : OK 3310 else 3311 am_cv_prog_cc_c_o=no 3312 break 3313 fi 3314 done 3315 rm -f core conftest* 3316 unset am_i 3317fi 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3319$as_echo "$am_cv_prog_cc_c_o" >&6; } 3320if test "$am_cv_prog_cc_c_o" != yes; then 3321 # Losing compiler, so override with the script. 3322 # FIXME: It is wrong to rewrite CC. 3323 # But if we don't then we get into trouble of one sort or another. 3324 # A longer-term fix would be to have automake use am__CC in this case, 3325 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3326 CC="$am_aux_dir/compile $CC" 3327fi 3328ac_ext=c 3329ac_cpp='$CPP $CPPFLAGS' 3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3332ac_compiler_gnu=$ac_cv_c_compiler_gnu 3333 3334 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3336$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3337if ${ac_cv_prog_cc_c99+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 ac_cv_prog_cc_c99=no 3341ac_save_CC=$CC 3342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344#include <stdarg.h> 3345#include <stdbool.h> 3346#include <stdlib.h> 3347#include <wchar.h> 3348#include <stdio.h> 3349 3350// Check varargs macros. These examples are taken from C99 6.10.3.5. 3351#define debug(...) fprintf (stderr, __VA_ARGS__) 3352#define showlist(...) puts (#__VA_ARGS__) 3353#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3354static void 3355test_varargs_macros (void) 3356{ 3357 int x = 1234; 3358 int y = 5678; 3359 debug ("Flag"); 3360 debug ("X = %d\n", x); 3361 showlist (The first, second, and third items.); 3362 report (x>y, "x is %d but y is %d", x, y); 3363} 3364 3365// Check long long types. 3366#define BIG64 18446744073709551615ull 3367#define BIG32 4294967295ul 3368#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3369#if !BIG_OK 3370 your preprocessor is broken; 3371#endif 3372#if BIG_OK 3373#else 3374 your preprocessor is broken; 3375#endif 3376static long long int bignum = -9223372036854775807LL; 3377static unsigned long long int ubignum = BIG64; 3378 3379struct incomplete_array 3380{ 3381 int datasize; 3382 double data[]; 3383}; 3384 3385struct named_init { 3386 int number; 3387 const wchar_t *name; 3388 double average; 3389}; 3390 3391typedef const char *ccp; 3392 3393static inline int 3394test_restrict (ccp restrict text) 3395{ 3396 // See if C++-style comments work. 3397 // Iterate through items via the restricted pointer. 3398 // Also check for declarations in for loops. 3399 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3400 continue; 3401 return 0; 3402} 3403 3404// Check varargs and va_copy. 3405static void 3406test_varargs (const char *format, ...) 3407{ 3408 va_list args; 3409 va_start (args, format); 3410 va_list args_copy; 3411 va_copy (args_copy, args); 3412 3413 const char *str; 3414 int number; 3415 float fnumber; 3416 3417 while (*format) 3418 { 3419 switch (*format++) 3420 { 3421 case 's': // string 3422 str = va_arg (args_copy, const char *); 3423 break; 3424 case 'd': // int 3425 number = va_arg (args_copy, int); 3426 break; 3427 case 'f': // float 3428 fnumber = va_arg (args_copy, double); 3429 break; 3430 default: 3431 break; 3432 } 3433 } 3434 va_end (args_copy); 3435 va_end (args); 3436} 3437 3438int 3439main () 3440{ 3441 3442 // Check bool. 3443 _Bool success = false; 3444 3445 // Check restrict. 3446 if (test_restrict ("String literal") == 0) 3447 success = true; 3448 char *restrict newvar = "Another string"; 3449 3450 // Check varargs. 3451 test_varargs ("s, d' f .", "string", 65, 34.234); 3452 test_varargs_macros (); 3453 3454 // Check flexible array members. 3455 struct incomplete_array *ia = 3456 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3457 ia->datasize = 10; 3458 for (int i = 0; i < ia->datasize; ++i) 3459 ia->data[i] = i * 1.234; 3460 3461 // Check named initializers. 3462 struct named_init ni = { 3463 .number = 34, 3464 .name = L"Test wide string", 3465 .average = 543.34343, 3466 }; 3467 3468 ni.number = 58; 3469 3470 int dynamic_array[ni.number]; 3471 dynamic_array[ni.number - 1] = 543; 3472 3473 // work around unused variable warnings 3474 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3475 || dynamic_array[ni.number - 1] != 543); 3476 3477 ; 3478 return 0; 3479} 3480_ACEOF 3481for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3482do 3483 CC="$ac_save_CC $ac_arg" 3484 if ac_fn_c_try_compile "$LINENO"; then : 3485 ac_cv_prog_cc_c99=$ac_arg 3486fi 3487rm -f core conftest.err conftest.$ac_objext 3488 test "x$ac_cv_prog_cc_c99" != "xno" && break 3489done 3490rm -f conftest.$ac_ext 3491CC=$ac_save_CC 3492 3493fi 3494# AC_CACHE_VAL 3495case "x$ac_cv_prog_cc_c99" in 3496 x) 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3498$as_echo "none needed" >&6; } ;; 3499 xno) 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3501$as_echo "unsupported" >&6; } ;; 3502 *) 3503 CC="$CC $ac_cv_prog_cc_c99" 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3505$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3506esac 3507if test "x$ac_cv_prog_cc_c99" != xno; then : 3508 3509fi 3510 3511 3512 3513ac_ext=c 3514ac_cpp='$CPP $CPPFLAGS' 3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3517ac_compiler_gnu=$ac_cv_c_compiler_gnu 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3519$as_echo_n "checking how to run the C preprocessor... " >&6; } 3520# On Suns, sometimes $CPP names a directory. 3521if test -n "$CPP" && test -d "$CPP"; then 3522 CPP= 3523fi 3524if test -z "$CPP"; then 3525 if ${ac_cv_prog_CPP+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 # Double quotes because CPP needs to be expanded 3529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3530 do 3531 ac_preproc_ok=false 3532for ac_c_preproc_warn_flag in '' yes 3533do 3534 # Use a header file that comes with gcc, so configuring glibc 3535 # with a fresh cross-compiler works. 3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3537 # <limits.h> exists even on freestanding compilers. 3538 # On the NeXT, cc -E runs the code through the compiler's parser, 3539 # not just through cpp. "Syntax error" is here to catch this case. 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542#ifdef __STDC__ 3543# include <limits.h> 3544#else 3545# include <assert.h> 3546#endif 3547 Syntax error 3548_ACEOF 3549if ac_fn_c_try_cpp "$LINENO"; then : 3550 3551else 3552 # Broken: fails on valid input. 3553continue 3554fi 3555rm -f conftest.err conftest.i conftest.$ac_ext 3556 3557 # OK, works on sane cases. Now check whether nonexistent headers 3558 # can be detected and how. 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3560/* end confdefs.h. */ 3561#include <ac_nonexistent.h> 3562_ACEOF 3563if ac_fn_c_try_cpp "$LINENO"; then : 3564 # Broken: success on invalid input. 3565continue 3566else 3567 # Passes both tests. 3568ac_preproc_ok=: 3569break 3570fi 3571rm -f conftest.err conftest.i conftest.$ac_ext 3572 3573done 3574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3575rm -f conftest.i conftest.err conftest.$ac_ext 3576if $ac_preproc_ok; then : 3577 break 3578fi 3579 3580 done 3581 ac_cv_prog_CPP=$CPP 3582 3583fi 3584 CPP=$ac_cv_prog_CPP 3585else 3586 ac_cv_prog_CPP=$CPP 3587fi 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3589$as_echo "$CPP" >&6; } 3590ac_preproc_ok=false 3591for ac_c_preproc_warn_flag in '' yes 3592do 3593 # Use a header file that comes with gcc, so configuring glibc 3594 # with a fresh cross-compiler works. 3595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3596 # <limits.h> exists even on freestanding compilers. 3597 # On the NeXT, cc -E runs the code through the compiler's parser, 3598 # not just through cpp. "Syntax error" is here to catch this case. 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601#ifdef __STDC__ 3602# include <limits.h> 3603#else 3604# include <assert.h> 3605#endif 3606 Syntax error 3607_ACEOF 3608if ac_fn_c_try_cpp "$LINENO"; then : 3609 3610else 3611 # Broken: fails on valid input. 3612continue 3613fi 3614rm -f conftest.err conftest.i conftest.$ac_ext 3615 3616 # OK, works on sane cases. Now check whether nonexistent headers 3617 # can be detected and how. 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <ac_nonexistent.h> 3621_ACEOF 3622if ac_fn_c_try_cpp "$LINENO"; then : 3623 # Broken: success on invalid input. 3624continue 3625else 3626 # Passes both tests. 3627ac_preproc_ok=: 3628break 3629fi 3630rm -f conftest.err conftest.i conftest.$ac_ext 3631 3632done 3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3634rm -f conftest.i conftest.err conftest.$ac_ext 3635if $ac_preproc_ok; then : 3636 3637else 3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3640as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3641See \`config.log' for more details" "$LINENO" 5; } 3642fi 3643 3644ac_ext=c 3645ac_cpp='$CPP $CPPFLAGS' 3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3648ac_compiler_gnu=$ac_cv_c_compiler_gnu 3649 3650 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3652$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3653if ${ac_cv_path_GREP+:} false; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 if test -z "$GREP"; then 3657 ac_path_GREP_found=false 3658 # Loop through the user's path and test for each of PROGNAME-LIST 3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3661do 3662 IFS=$as_save_IFS 3663 test -z "$as_dir" && as_dir=. 3664 for ac_prog in grep ggrep; do 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3667 as_fn_executable_p "$ac_path_GREP" || continue 3668# Check for GNU ac_path_GREP and select it if it is found. 3669 # Check for GNU $ac_path_GREP 3670case `"$ac_path_GREP" --version 2>&1` in 3671*GNU*) 3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3673*) 3674 ac_count=0 3675 $as_echo_n 0123456789 >"conftest.in" 3676 while : 3677 do 3678 cat "conftest.in" "conftest.in" >"conftest.tmp" 3679 mv "conftest.tmp" "conftest.in" 3680 cp "conftest.in" "conftest.nl" 3681 $as_echo 'GREP' >> "conftest.nl" 3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3684 as_fn_arith $ac_count + 1 && ac_count=$as_val 3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3686 # Best one so far, save it but keep looking for a better one 3687 ac_cv_path_GREP="$ac_path_GREP" 3688 ac_path_GREP_max=$ac_count 3689 fi 3690 # 10*(2^10) chars as input seems more than enough 3691 test $ac_count -gt 10 && break 3692 done 3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3694esac 3695 3696 $ac_path_GREP_found && break 3 3697 done 3698 done 3699 done 3700IFS=$as_save_IFS 3701 if test -z "$ac_cv_path_GREP"; then 3702 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3703 fi 3704else 3705 ac_cv_path_GREP=$GREP 3706fi 3707 3708fi 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3710$as_echo "$ac_cv_path_GREP" >&6; } 3711 GREP="$ac_cv_path_GREP" 3712 3713 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3715$as_echo_n "checking for egrep... " >&6; } 3716if ${ac_cv_path_EGREP+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3720 then ac_cv_path_EGREP="$GREP -E" 3721 else 3722 if test -z "$EGREP"; then 3723 ac_path_EGREP_found=false 3724 # Loop through the user's path and test for each of PROGNAME-LIST 3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_prog in egrep; do 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3733 as_fn_executable_p "$ac_path_EGREP" || continue 3734# Check for GNU ac_path_EGREP and select it if it is found. 3735 # Check for GNU $ac_path_EGREP 3736case `"$ac_path_EGREP" --version 2>&1` in 3737*GNU*) 3738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3739*) 3740 ac_count=0 3741 $as_echo_n 0123456789 >"conftest.in" 3742 while : 3743 do 3744 cat "conftest.in" "conftest.in" >"conftest.tmp" 3745 mv "conftest.tmp" "conftest.in" 3746 cp "conftest.in" "conftest.nl" 3747 $as_echo 'EGREP' >> "conftest.nl" 3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3750 as_fn_arith $ac_count + 1 && ac_count=$as_val 3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3752 # Best one so far, save it but keep looking for a better one 3753 ac_cv_path_EGREP="$ac_path_EGREP" 3754 ac_path_EGREP_max=$ac_count 3755 fi 3756 # 10*(2^10) chars as input seems more than enough 3757 test $ac_count -gt 10 && break 3758 done 3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3760esac 3761 3762 $ac_path_EGREP_found && break 3 3763 done 3764 done 3765 done 3766IFS=$as_save_IFS 3767 if test -z "$ac_cv_path_EGREP"; then 3768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3769 fi 3770else 3771 ac_cv_path_EGREP=$EGREP 3772fi 3773 3774 fi 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3777$as_echo "$ac_cv_path_EGREP" >&6; } 3778 EGREP="$ac_cv_path_EGREP" 3779 3780 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3782$as_echo_n "checking for ANSI C header files... " >&6; } 3783if ${ac_cv_header_stdc+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#include <stdlib.h> 3789#include <stdarg.h> 3790#include <string.h> 3791#include <float.h> 3792 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801if ac_fn_c_try_compile "$LINENO"; then : 3802 ac_cv_header_stdc=yes 3803else 3804 ac_cv_header_stdc=no 3805fi 3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807 3808if test $ac_cv_header_stdc = yes; then 3809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812#include <string.h> 3813 3814_ACEOF 3815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3816 $EGREP "memchr" >/dev/null 2>&1; then : 3817 3818else 3819 ac_cv_header_stdc=no 3820fi 3821rm -f conftest* 3822 3823fi 3824 3825if test $ac_cv_header_stdc = yes; then 3826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3828/* end confdefs.h. */ 3829#include <stdlib.h> 3830 3831_ACEOF 3832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3833 $EGREP "free" >/dev/null 2>&1; then : 3834 3835else 3836 ac_cv_header_stdc=no 3837fi 3838rm -f conftest* 3839 3840fi 3841 3842if test $ac_cv_header_stdc = yes; then 3843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3844 if test "$cross_compiling" = yes; then : 3845 : 3846else 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849#include <ctype.h> 3850#include <stdlib.h> 3851#if ((' ' & 0x0FF) == 0x020) 3852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3854#else 3855# define ISLOWER(c) \ 3856 (('a' <= (c) && (c) <= 'i') \ 3857 || ('j' <= (c) && (c) <= 'r') \ 3858 || ('s' <= (c) && (c) <= 'z')) 3859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3860#endif 3861 3862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3863int 3864main () 3865{ 3866 int i; 3867 for (i = 0; i < 256; i++) 3868 if (XOR (islower (i), ISLOWER (i)) 3869 || toupper (i) != TOUPPER (i)) 3870 return 2; 3871 return 0; 3872} 3873_ACEOF 3874if ac_fn_c_try_run "$LINENO"; then : 3875 3876else 3877 ac_cv_header_stdc=no 3878fi 3879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3880 conftest.$ac_objext conftest.beam conftest.$ac_ext 3881fi 3882 3883fi 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3886$as_echo "$ac_cv_header_stdc" >&6; } 3887if test $ac_cv_header_stdc = yes; then 3888 3889$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3890 3891fi 3892 3893# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3895 inttypes.h stdint.h unistd.h 3896do : 3897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3898ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3899" 3900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3901 cat >>confdefs.h <<_ACEOF 3902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3903_ACEOF 3904 3905fi 3906 3907done 3908 3909 3910 3911 3912 3913 3914ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 3915if test "x$ac_cv_have_decl___clang__" = xyes; then : 3916 CLANGCC="yes" 3917else 3918 CLANGCC="no" 3919fi 3920 3921ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3922if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 3923 INTELCC="yes" 3924else 3925 INTELCC="no" 3926fi 3927 3928ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3929if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 3930 SUNCC="yes" 3931else 3932 SUNCC="no" 3933fi 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3944 if test -n "$ac_tool_prefix"; then 3945 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3946set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3948$as_echo_n "checking for $ac_word... " >&6; } 3949if ${ac_cv_path_PKG_CONFIG+:} false; then : 3950 $as_echo_n "(cached) " >&6 3951else 3952 case $PKG_CONFIG in 3953 [\\/]* | ?:[\\/]*) 3954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3955 ;; 3956 *) 3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_exec_ext in '' $ac_executable_extensions; do 3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3966 break 2 3967 fi 3968done 3969 done 3970IFS=$as_save_IFS 3971 3972 ;; 3973esac 3974fi 3975PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3976if test -n "$PKG_CONFIG"; then 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3978$as_echo "$PKG_CONFIG" >&6; } 3979else 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981$as_echo "no" >&6; } 3982fi 3983 3984 3985fi 3986if test -z "$ac_cv_path_PKG_CONFIG"; then 3987 ac_pt_PKG_CONFIG=$PKG_CONFIG 3988 # Extract the first word of "pkg-config", so it can be a program name with args. 3989set dummy pkg-config; ac_word=$2 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991$as_echo_n "checking for $ac_word... " >&6; } 3992if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 case $ac_pt_PKG_CONFIG in 3996 [\\/]* | ?:[\\/]*) 3997 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3998 ;; 3999 *) 4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4007 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012 done 4013IFS=$as_save_IFS 4014 4015 ;; 4016esac 4017fi 4018ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4019if test -n "$ac_pt_PKG_CONFIG"; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4021$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4022else 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4024$as_echo "no" >&6; } 4025fi 4026 4027 if test "x$ac_pt_PKG_CONFIG" = x; then 4028 PKG_CONFIG="" 4029 else 4030 case $cross_compiling:$ac_tool_warned in 4031yes:) 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4034ac_tool_warned=yes ;; 4035esac 4036 PKG_CONFIG=$ac_pt_PKG_CONFIG 4037 fi 4038else 4039 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4040fi 4041 4042fi 4043if test -n "$PKG_CONFIG"; then 4044 _pkg_min_version=0.9.0 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4046$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4047 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4049$as_echo "yes" >&6; } 4050 else 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4052$as_echo "no" >&6; } 4053 PKG_CONFIG="" 4054 fi 4055fi 4056# Make sure we can run config.sub. 4057$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4058 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4059 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4061$as_echo_n "checking build system type... " >&6; } 4062if ${ac_cv_build+:} false; then : 4063 $as_echo_n "(cached) " >&6 4064else 4065 ac_build_alias=$build_alias 4066test "x$ac_build_alias" = x && 4067 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4068test "x$ac_build_alias" = x && 4069 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4070ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4071 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4072 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4075$as_echo "$ac_cv_build" >&6; } 4076case $ac_cv_build in 4077*-*-*) ;; 4078*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4079esac 4080build=$ac_cv_build 4081ac_save_IFS=$IFS; IFS='-' 4082set x $ac_cv_build 4083shift 4084build_cpu=$1 4085build_vendor=$2 4086shift; shift 4087# Remember, the first character of IFS is used to create $*, 4088# except with old shells: 4089build_os=$* 4090IFS=$ac_save_IFS 4091case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4092 4093 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4095$as_echo_n "checking host system type... " >&6; } 4096if ${ac_cv_host+:} false; then : 4097 $as_echo_n "(cached) " >&6 4098else 4099 if test "x$host_alias" = x; then 4100 ac_cv_host=$ac_cv_build 4101else 4102 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4103 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4104fi 4105 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4108$as_echo "$ac_cv_host" >&6; } 4109case $ac_cv_host in 4110*-*-*) ;; 4111*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4112esac 4113host=$ac_cv_host 4114ac_save_IFS=$IFS; IFS='-' 4115set x $ac_cv_host 4116shift 4117host_cpu=$1 4118host_vendor=$2 4119shift; shift 4120# Remember, the first character of IFS is used to create $*, 4121# except with old shells: 4122host_os=$* 4123IFS=$ac_save_IFS 4124case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4125 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4128$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4129if ${ac_cv_path_SED+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4133 for ac_i in 1 2 3 4 5 6 7; do 4134 ac_script="$ac_script$as_nl$ac_script" 4135 done 4136 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4137 { ac_script=; unset ac_script;} 4138 if test -z "$SED"; then 4139 ac_path_SED_found=false 4140 # Loop through the user's path and test for each of PROGNAME-LIST 4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4142for as_dir in $PATH 4143do 4144 IFS=$as_save_IFS 4145 test -z "$as_dir" && as_dir=. 4146 for ac_prog in sed gsed; do 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4149 as_fn_executable_p "$ac_path_SED" || continue 4150# Check for GNU ac_path_SED and select it if it is found. 4151 # Check for GNU $ac_path_SED 4152case `"$ac_path_SED" --version 2>&1` in 4153*GNU*) 4154 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4155*) 4156 ac_count=0 4157 $as_echo_n 0123456789 >"conftest.in" 4158 while : 4159 do 4160 cat "conftest.in" "conftest.in" >"conftest.tmp" 4161 mv "conftest.tmp" "conftest.in" 4162 cp "conftest.in" "conftest.nl" 4163 $as_echo '' >> "conftest.nl" 4164 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4166 as_fn_arith $ac_count + 1 && ac_count=$as_val 4167 if test $ac_count -gt ${ac_path_SED_max-0}; then 4168 # Best one so far, save it but keep looking for a better one 4169 ac_cv_path_SED="$ac_path_SED" 4170 ac_path_SED_max=$ac_count 4171 fi 4172 # 10*(2^10) chars as input seems more than enough 4173 test $ac_count -gt 10 && break 4174 done 4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4176esac 4177 4178 $ac_path_SED_found && break 3 4179 done 4180 done 4181 done 4182IFS=$as_save_IFS 4183 if test -z "$ac_cv_path_SED"; then 4184 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4185 fi 4186else 4187 ac_cv_path_SED=$SED 4188fi 4189 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4192$as_echo "$ac_cv_path_SED" >&6; } 4193 SED="$ac_cv_path_SED" 4194 rm -f conftest.sed 4195 4196 4197 4198 4199 4200 4201# Check whether --enable-selective-werror was given. 4202if test "${enable_selective_werror+set}" = set; then : 4203 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4204else 4205 SELECTIVE_WERROR=yes 4206fi 4207 4208 4209 4210 4211 4212# -v is too short to test reliably with XORG_TESTSET_CFLAG 4213if test "x$SUNCC" = "xyes"; then 4214 BASE_CFLAGS="-v" 4215else 4216 BASE_CFLAGS="" 4217fi 4218 4219# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233xorg_testset_save_CFLAGS="$CFLAGS" 4234 4235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244int i; 4245_ACEOF 4246if ac_fn_c_try_compile "$LINENO"; then : 4247 xorg_cv_cc_flag_unknown_warning_option=yes 4248else 4249 xorg_cv_cc_flag_unknown_warning_option=no 4250fi 4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4256 CFLAGS="$xorg_testset_save_CFLAGS" 4257fi 4258 4259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4262 fi 4263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271int i; 4272_ACEOF 4273if ac_fn_c_try_compile "$LINENO"; then : 4274 xorg_cv_cc_flag_unused_command_line_argument=yes 4275else 4276 xorg_cv_cc_flag_unused_command_line_argument=no 4277fi 4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4279fi 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4283 CFLAGS="$xorg_testset_save_CFLAGS" 4284fi 4285 4286found="no" 4287 4288 if test $found = "no" ; then 4289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4291 fi 4292 4293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4295 fi 4296 4297 CFLAGS="$CFLAGS -Wall" 4298 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4300$as_echo_n "checking if $CC supports -Wall... " >&6; } 4301 cacheid=xorg_cv_cc_flag__Wall 4302 if eval \${$cacheid+:} false; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307int i; 4308int 4309main () 4310{ 4311 4312 ; 4313 return 0; 4314} 4315_ACEOF 4316if ac_fn_c_try_link "$LINENO"; then : 4317 eval $cacheid=yes 4318else 4319 eval $cacheid=no 4320fi 4321rm -f core conftest.err conftest.$ac_objext \ 4322 conftest$ac_exeext conftest.$ac_ext 4323fi 4324 4325 4326 CFLAGS="$xorg_testset_save_CFLAGS" 4327 4328 eval supported=\$$cacheid 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4330$as_echo "$supported" >&6; } 4331 if test "$supported" = "yes" ; then 4332 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4333 found="yes" 4334 fi 4335 fi 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351xorg_testset_save_CFLAGS="$CFLAGS" 4352 4353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362int i; 4363_ACEOF 4364if ac_fn_c_try_compile "$LINENO"; then : 4365 xorg_cv_cc_flag_unknown_warning_option=yes 4366else 4367 xorg_cv_cc_flag_unknown_warning_option=no 4368fi 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4370fi 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4374 CFLAGS="$xorg_testset_save_CFLAGS" 4375fi 4376 4377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4380 fi 4381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389int i; 4390_ACEOF 4391if ac_fn_c_try_compile "$LINENO"; then : 4392 xorg_cv_cc_flag_unused_command_line_argument=yes 4393else 4394 xorg_cv_cc_flag_unused_command_line_argument=no 4395fi 4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4401 CFLAGS="$xorg_testset_save_CFLAGS" 4402fi 4403 4404found="no" 4405 4406 if test $found = "no" ; then 4407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4409 fi 4410 4411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4413 fi 4414 4415 CFLAGS="$CFLAGS -Wpointer-arith" 4416 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4418$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4419 cacheid=xorg_cv_cc_flag__Wpointer_arith 4420 if eval \${$cacheid+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425int i; 4426int 4427main () 4428{ 4429 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434if ac_fn_c_try_link "$LINENO"; then : 4435 eval $cacheid=yes 4436else 4437 eval $cacheid=no 4438fi 4439rm -f core conftest.err conftest.$ac_objext \ 4440 conftest$ac_exeext conftest.$ac_ext 4441fi 4442 4443 4444 CFLAGS="$xorg_testset_save_CFLAGS" 4445 4446 eval supported=\$$cacheid 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4448$as_echo "$supported" >&6; } 4449 if test "$supported" = "yes" ; then 4450 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4451 found="yes" 4452 fi 4453 fi 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469xorg_testset_save_CFLAGS="$CFLAGS" 4470 4471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4479/* end confdefs.h. */ 4480int i; 4481_ACEOF 4482if ac_fn_c_try_compile "$LINENO"; then : 4483 xorg_cv_cc_flag_unknown_warning_option=yes 4484else 4485 xorg_cv_cc_flag_unknown_warning_option=no 4486fi 4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4488fi 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4492 CFLAGS="$xorg_testset_save_CFLAGS" 4493fi 4494 4495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4498 fi 4499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507int i; 4508_ACEOF 4509if ac_fn_c_try_compile "$LINENO"; then : 4510 xorg_cv_cc_flag_unused_command_line_argument=yes 4511else 4512 xorg_cv_cc_flag_unused_command_line_argument=no 4513fi 4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4519 CFLAGS="$xorg_testset_save_CFLAGS" 4520fi 4521 4522found="no" 4523 4524 if test $found = "no" ; then 4525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4527 fi 4528 4529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4531 fi 4532 4533 CFLAGS="$CFLAGS -Wmissing-declarations" 4534 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4536$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4537 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4538 if eval \${$cacheid+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542/* end confdefs.h. */ 4543int i; 4544int 4545main () 4546{ 4547 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552if ac_fn_c_try_link "$LINENO"; then : 4553 eval $cacheid=yes 4554else 4555 eval $cacheid=no 4556fi 4557rm -f core conftest.err conftest.$ac_objext \ 4558 conftest$ac_exeext conftest.$ac_ext 4559fi 4560 4561 4562 CFLAGS="$xorg_testset_save_CFLAGS" 4563 4564 eval supported=\$$cacheid 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4566$as_echo "$supported" >&6; } 4567 if test "$supported" = "yes" ; then 4568 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4569 found="yes" 4570 fi 4571 fi 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587xorg_testset_save_CFLAGS="$CFLAGS" 4588 4589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4597/* end confdefs.h. */ 4598int i; 4599_ACEOF 4600if ac_fn_c_try_compile "$LINENO"; then : 4601 xorg_cv_cc_flag_unknown_warning_option=yes 4602else 4603 xorg_cv_cc_flag_unknown_warning_option=no 4604fi 4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4610 CFLAGS="$xorg_testset_save_CFLAGS" 4611fi 4612 4613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4616 fi 4617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624/* end confdefs.h. */ 4625int i; 4626_ACEOF 4627if ac_fn_c_try_compile "$LINENO"; then : 4628 xorg_cv_cc_flag_unused_command_line_argument=yes 4629else 4630 xorg_cv_cc_flag_unused_command_line_argument=no 4631fi 4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4637 CFLAGS="$xorg_testset_save_CFLAGS" 4638fi 4639 4640found="no" 4641 4642 if test $found = "no" ; then 4643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4645 fi 4646 4647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4649 fi 4650 4651 CFLAGS="$CFLAGS -Wformat=2" 4652 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4654$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4655 cacheid=xorg_cv_cc_flag__Wformat_2 4656 if eval \${$cacheid+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661int i; 4662int 4663main () 4664{ 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670if ac_fn_c_try_link "$LINENO"; then : 4671 eval $cacheid=yes 4672else 4673 eval $cacheid=no 4674fi 4675rm -f core conftest.err conftest.$ac_objext \ 4676 conftest$ac_exeext conftest.$ac_ext 4677fi 4678 4679 4680 CFLAGS="$xorg_testset_save_CFLAGS" 4681 4682 eval supported=\$$cacheid 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4684$as_echo "$supported" >&6; } 4685 if test "$supported" = "yes" ; then 4686 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4687 found="yes" 4688 fi 4689 fi 4690 4691 if test $found = "no" ; then 4692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4694 fi 4695 4696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4698 fi 4699 4700 CFLAGS="$CFLAGS -Wformat" 4701 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4703$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4704 cacheid=xorg_cv_cc_flag__Wformat 4705 if eval \${$cacheid+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710int i; 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719if ac_fn_c_try_link "$LINENO"; then : 4720 eval $cacheid=yes 4721else 4722 eval $cacheid=no 4723fi 4724rm -f core conftest.err conftest.$ac_objext \ 4725 conftest$ac_exeext conftest.$ac_ext 4726fi 4727 4728 4729 CFLAGS="$xorg_testset_save_CFLAGS" 4730 4731 eval supported=\$$cacheid 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4733$as_echo "$supported" >&6; } 4734 if test "$supported" = "yes" ; then 4735 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4736 found="yes" 4737 fi 4738 fi 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756xorg_testset_save_CFLAGS="$CFLAGS" 4757 4758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764else 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767int i; 4768_ACEOF 4769if ac_fn_c_try_compile "$LINENO"; then : 4770 xorg_cv_cc_flag_unknown_warning_option=yes 4771else 4772 xorg_cv_cc_flag_unknown_warning_option=no 4773fi 4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4775fi 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4779 CFLAGS="$xorg_testset_save_CFLAGS" 4780fi 4781 4782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4785 fi 4786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794int i; 4795_ACEOF 4796if ac_fn_c_try_compile "$LINENO"; then : 4797 xorg_cv_cc_flag_unused_command_line_argument=yes 4798else 4799 xorg_cv_cc_flag_unused_command_line_argument=no 4800fi 4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4806 CFLAGS="$xorg_testset_save_CFLAGS" 4807fi 4808 4809found="no" 4810 4811 if test $found = "no" ; then 4812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4814 fi 4815 4816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4818 fi 4819 4820 CFLAGS="$CFLAGS -Wstrict-prototypes" 4821 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4823$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4824 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4825 if eval \${$cacheid+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830int i; 4831int 4832main () 4833{ 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_c_try_link "$LINENO"; then : 4840 eval $cacheid=yes 4841else 4842 eval $cacheid=no 4843fi 4844rm -f core conftest.err conftest.$ac_objext \ 4845 conftest$ac_exeext conftest.$ac_ext 4846fi 4847 4848 4849 CFLAGS="$xorg_testset_save_CFLAGS" 4850 4851 eval supported=\$$cacheid 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4853$as_echo "$supported" >&6; } 4854 if test "$supported" = "yes" ; then 4855 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4856 found="yes" 4857 fi 4858 fi 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874xorg_testset_save_CFLAGS="$CFLAGS" 4875 4876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4884/* end confdefs.h. */ 4885int i; 4886_ACEOF 4887if ac_fn_c_try_compile "$LINENO"; then : 4888 xorg_cv_cc_flag_unknown_warning_option=yes 4889else 4890 xorg_cv_cc_flag_unknown_warning_option=no 4891fi 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4897 CFLAGS="$xorg_testset_save_CFLAGS" 4898fi 4899 4900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4903 fi 4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911/* end confdefs.h. */ 4912int i; 4913_ACEOF 4914if ac_fn_c_try_compile "$LINENO"; then : 4915 xorg_cv_cc_flag_unused_command_line_argument=yes 4916else 4917 xorg_cv_cc_flag_unused_command_line_argument=no 4918fi 4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4924 CFLAGS="$xorg_testset_save_CFLAGS" 4925fi 4926 4927found="no" 4928 4929 if test $found = "no" ; then 4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4932 fi 4933 4934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4936 fi 4937 4938 CFLAGS="$CFLAGS -Wmissing-prototypes" 4939 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4941$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4942 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 4943 if eval \${$cacheid+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949int 4950main () 4951{ 4952 4953 ; 4954 return 0; 4955} 4956_ACEOF 4957if ac_fn_c_try_link "$LINENO"; then : 4958 eval $cacheid=yes 4959else 4960 eval $cacheid=no 4961fi 4962rm -f core conftest.err conftest.$ac_objext \ 4963 conftest$ac_exeext conftest.$ac_ext 4964fi 4965 4966 4967 CFLAGS="$xorg_testset_save_CFLAGS" 4968 4969 eval supported=\$$cacheid 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4971$as_echo "$supported" >&6; } 4972 if test "$supported" = "yes" ; then 4973 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4974 found="yes" 4975 fi 4976 fi 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992xorg_testset_save_CFLAGS="$CFLAGS" 4993 4994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003int i; 5004_ACEOF 5005if ac_fn_c_try_compile "$LINENO"; then : 5006 xorg_cv_cc_flag_unknown_warning_option=yes 5007else 5008 xorg_cv_cc_flag_unknown_warning_option=no 5009fi 5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5015 CFLAGS="$xorg_testset_save_CFLAGS" 5016fi 5017 5018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5021 fi 5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030int i; 5031_ACEOF 5032if ac_fn_c_try_compile "$LINENO"; then : 5033 xorg_cv_cc_flag_unused_command_line_argument=yes 5034else 5035 xorg_cv_cc_flag_unused_command_line_argument=no 5036fi 5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038fi 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5042 CFLAGS="$xorg_testset_save_CFLAGS" 5043fi 5044 5045found="no" 5046 5047 if test $found = "no" ; then 5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 fi 5051 5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5054 fi 5055 5056 CFLAGS="$CFLAGS -Wnested-externs" 5057 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5059$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5060 cacheid=xorg_cv_cc_flag__Wnested_externs 5061 if eval \${$cacheid+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067int 5068main () 5069{ 5070 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075if ac_fn_c_try_link "$LINENO"; then : 5076 eval $cacheid=yes 5077else 5078 eval $cacheid=no 5079fi 5080rm -f core conftest.err conftest.$ac_objext \ 5081 conftest$ac_exeext conftest.$ac_ext 5082fi 5083 5084 5085 CFLAGS="$xorg_testset_save_CFLAGS" 5086 5087 eval supported=\$$cacheid 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5089$as_echo "$supported" >&6; } 5090 if test "$supported" = "yes" ; then 5091 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5092 found="yes" 5093 fi 5094 fi 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110xorg_testset_save_CFLAGS="$CFLAGS" 5111 5112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122_ACEOF 5123if ac_fn_c_try_compile "$LINENO"; then : 5124 xorg_cv_cc_flag_unknown_warning_option=yes 5125else 5126 xorg_cv_cc_flag_unknown_warning_option=no 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5129fi 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134fi 5135 5136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5139 fi 5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5144 $as_echo_n "(cached) " >&6 5145else 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147/* end confdefs.h. */ 5148int i; 5149_ACEOF 5150if ac_fn_c_try_compile "$LINENO"; then : 5151 xorg_cv_cc_flag_unused_command_line_argument=yes 5152else 5153 xorg_cv_cc_flag_unused_command_line_argument=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5156fi 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5160 CFLAGS="$xorg_testset_save_CFLAGS" 5161fi 5162 5163found="no" 5164 5165 if test $found = "no" ; then 5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5168 fi 5169 5170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5172 fi 5173 5174 CFLAGS="$CFLAGS -Wbad-function-cast" 5175 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5177$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5178 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5179 if eval \${$cacheid+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185int 5186main () 5187{ 5188 5189 ; 5190 return 0; 5191} 5192_ACEOF 5193if ac_fn_c_try_link "$LINENO"; then : 5194 eval $cacheid=yes 5195else 5196 eval $cacheid=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext \ 5199 conftest$ac_exeext conftest.$ac_ext 5200fi 5201 5202 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204 5205 eval supported=\$$cacheid 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5207$as_echo "$supported" >&6; } 5208 if test "$supported" = "yes" ; then 5209 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5210 found="yes" 5211 fi 5212 fi 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228xorg_testset_save_CFLAGS="$CFLAGS" 5229 5230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239int i; 5240_ACEOF 5241if ac_fn_c_try_compile "$LINENO"; then : 5242 xorg_cv_cc_flag_unknown_warning_option=yes 5243else 5244 xorg_cv_cc_flag_unknown_warning_option=no 5245fi 5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5247fi 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5251 CFLAGS="$xorg_testset_save_CFLAGS" 5252fi 5253 5254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5257 fi 5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266int i; 5267_ACEOF 5268if ac_fn_c_try_compile "$LINENO"; then : 5269 xorg_cv_cc_flag_unused_command_line_argument=yes 5270else 5271 xorg_cv_cc_flag_unused_command_line_argument=no 5272fi 5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5278 CFLAGS="$xorg_testset_save_CFLAGS" 5279fi 5280 5281found="no" 5282 5283 if test $found = "no" ; then 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 fi 5287 5288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5290 fi 5291 5292 CFLAGS="$CFLAGS -Wold-style-definition" 5293 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5295$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5296 cacheid=xorg_cv_cc_flag__Wold_style_definition 5297 if eval \${$cacheid+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303int 5304main () 5305{ 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311if ac_fn_c_try_link "$LINENO"; then : 5312 eval $cacheid=yes 5313else 5314 eval $cacheid=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext \ 5317 conftest$ac_exeext conftest.$ac_ext 5318fi 5319 5320 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322 5323 eval supported=\$$cacheid 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5325$as_echo "$supported" >&6; } 5326 if test "$supported" = "yes" ; then 5327 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5328 found="yes" 5329 fi 5330 fi 5331 5332 if test $found = "no" ; then 5333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5335 fi 5336 5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5339 fi 5340 5341 CFLAGS="$CFLAGS -fd" 5342 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5344$as_echo_n "checking if $CC supports -fd... " >&6; } 5345 cacheid=xorg_cv_cc_flag__fd 5346 if eval \${$cacheid+:} false; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5350/* end confdefs.h. */ 5351int i; 5352int 5353main () 5354{ 5355 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360if ac_fn_c_try_link "$LINENO"; then : 5361 eval $cacheid=yes 5362else 5363 eval $cacheid=no 5364fi 5365rm -f core conftest.err conftest.$ac_objext \ 5366 conftest$ac_exeext conftest.$ac_ext 5367fi 5368 5369 5370 CFLAGS="$xorg_testset_save_CFLAGS" 5371 5372 eval supported=\$$cacheid 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5374$as_echo "$supported" >&6; } 5375 if test "$supported" = "yes" ; then 5376 BASE_CFLAGS="$BASE_CFLAGS -fd" 5377 found="yes" 5378 fi 5379 fi 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395xorg_testset_save_CFLAGS="$CFLAGS" 5396 5397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5405/* end confdefs.h. */ 5406int i; 5407_ACEOF 5408if ac_fn_c_try_compile "$LINENO"; then : 5409 xorg_cv_cc_flag_unknown_warning_option=yes 5410else 5411 xorg_cv_cc_flag_unknown_warning_option=no 5412fi 5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5414fi 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5418 CFLAGS="$xorg_testset_save_CFLAGS" 5419fi 5420 5421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 fi 5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432/* end confdefs.h. */ 5433int i; 5434_ACEOF 5435if ac_fn_c_try_compile "$LINENO"; then : 5436 xorg_cv_cc_flag_unused_command_line_argument=yes 5437else 5438 xorg_cv_cc_flag_unused_command_line_argument=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5441fi 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446fi 5447 5448found="no" 5449 5450 if test $found = "no" ; then 5451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5453 fi 5454 5455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5457 fi 5458 5459 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5460 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5462$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5463 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5464 if eval \${$cacheid+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5468/* end confdefs.h. */ 5469int i; 5470int 5471main () 5472{ 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478if ac_fn_c_try_link "$LINENO"; then : 5479 eval $cacheid=yes 5480else 5481 eval $cacheid=no 5482fi 5483rm -f core conftest.err conftest.$ac_objext \ 5484 conftest$ac_exeext conftest.$ac_ext 5485fi 5486 5487 5488 CFLAGS="$xorg_testset_save_CFLAGS" 5489 5490 eval supported=\$$cacheid 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5492$as_echo "$supported" >&6; } 5493 if test "$supported" = "yes" ; then 5494 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5495 found="yes" 5496 fi 5497 fi 5498 5499 5500 5501 5502 5503# This chunk adds additional warnings that could catch undesired effects. 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517xorg_testset_save_CFLAGS="$CFLAGS" 5518 5519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5527/* end confdefs.h. */ 5528int i; 5529_ACEOF 5530if ac_fn_c_try_compile "$LINENO"; then : 5531 xorg_cv_cc_flag_unknown_warning_option=yes 5532else 5533 xorg_cv_cc_flag_unknown_warning_option=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541fi 5542 5543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555int i; 5556_ACEOF 5557if ac_fn_c_try_compile "$LINENO"; then : 5558 xorg_cv_cc_flag_unused_command_line_argument=yes 5559else 5560 xorg_cv_cc_flag_unused_command_line_argument=no 5561fi 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563fi 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568fi 5569 5570found="no" 5571 5572 if test $found = "no" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 fi 5580 5581 CFLAGS="$CFLAGS -Wunused" 5582 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5584$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5585 cacheid=xorg_cv_cc_flag__Wunused 5586 if eval \${$cacheid+:} false; then : 5587 $as_echo_n "(cached) " >&6 5588else 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591int i; 5592int 5593main () 5594{ 5595 5596 ; 5597 return 0; 5598} 5599_ACEOF 5600if ac_fn_c_try_link "$LINENO"; then : 5601 eval $cacheid=yes 5602else 5603 eval $cacheid=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext \ 5606 conftest$ac_exeext conftest.$ac_ext 5607fi 5608 5609 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611 5612 eval supported=\$$cacheid 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5614$as_echo "$supported" >&6; } 5615 if test "$supported" = "yes" ; then 5616 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5617 found="yes" 5618 fi 5619 fi 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635xorg_testset_save_CFLAGS="$CFLAGS" 5636 5637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645/* end confdefs.h. */ 5646int i; 5647_ACEOF 5648if ac_fn_c_try_compile "$LINENO"; then : 5649 xorg_cv_cc_flag_unknown_warning_option=yes 5650else 5651 xorg_cv_cc_flag_unknown_warning_option=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5654fi 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5659fi 5660 5661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5664 fi 5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672/* end confdefs.h. */ 5673int i; 5674_ACEOF 5675if ac_fn_c_try_compile "$LINENO"; then : 5676 xorg_cv_cc_flag_unused_command_line_argument=yes 5677else 5678 xorg_cv_cc_flag_unused_command_line_argument=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681fi 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686fi 5687 5688found="no" 5689 5690 if test $found = "no" ; then 5691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5693 fi 5694 5695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5697 fi 5698 5699 CFLAGS="$CFLAGS -Wuninitialized" 5700 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5702$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5703 cacheid=xorg_cv_cc_flag__Wuninitialized 5704 if eval \${$cacheid+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709int i; 5710int 5711main () 5712{ 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718if ac_fn_c_try_link "$LINENO"; then : 5719 eval $cacheid=yes 5720else 5721 eval $cacheid=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext \ 5724 conftest$ac_exeext conftest.$ac_ext 5725fi 5726 5727 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729 5730 eval supported=\$$cacheid 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5732$as_echo "$supported" >&6; } 5733 if test "$supported" = "yes" ; then 5734 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5735 found="yes" 5736 fi 5737 fi 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753xorg_testset_save_CFLAGS="$CFLAGS" 5754 5755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763/* end confdefs.h. */ 5764int i; 5765_ACEOF 5766if ac_fn_c_try_compile "$LINENO"; then : 5767 xorg_cv_cc_flag_unknown_warning_option=yes 5768else 5769 xorg_cv_cc_flag_unknown_warning_option=no 5770fi 5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5772fi 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5776 CFLAGS="$xorg_testset_save_CFLAGS" 5777fi 5778 5779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5782 fi 5783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791int i; 5792_ACEOF 5793if ac_fn_c_try_compile "$LINENO"; then : 5794 xorg_cv_cc_flag_unused_command_line_argument=yes 5795else 5796 xorg_cv_cc_flag_unused_command_line_argument=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5799fi 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804fi 5805 5806found="no" 5807 5808 if test $found = "no" ; then 5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 fi 5812 5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5815 fi 5816 5817 CFLAGS="$CFLAGS -Wshadow" 5818 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5820$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5821 cacheid=xorg_cv_cc_flag__Wshadow 5822 if eval \${$cacheid+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826/* end confdefs.h. */ 5827int i; 5828int 5829main () 5830{ 5831 5832 ; 5833 return 0; 5834} 5835_ACEOF 5836if ac_fn_c_try_link "$LINENO"; then : 5837 eval $cacheid=yes 5838else 5839 eval $cacheid=no 5840fi 5841rm -f core conftest.err conftest.$ac_objext \ 5842 conftest$ac_exeext conftest.$ac_ext 5843fi 5844 5845 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847 5848 eval supported=\$$cacheid 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5850$as_echo "$supported" >&6; } 5851 if test "$supported" = "yes" ; then 5852 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5853 found="yes" 5854 fi 5855 fi 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871xorg_testset_save_CFLAGS="$CFLAGS" 5872 5873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5881/* end confdefs.h. */ 5882int i; 5883_ACEOF 5884if ac_fn_c_try_compile "$LINENO"; then : 5885 xorg_cv_cc_flag_unknown_warning_option=yes 5886else 5887 xorg_cv_cc_flag_unknown_warning_option=no 5888fi 5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5890fi 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5894 CFLAGS="$xorg_testset_save_CFLAGS" 5895fi 5896 5897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 fi 5901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910_ACEOF 5911if ac_fn_c_try_compile "$LINENO"; then : 5912 xorg_cv_cc_flag_unused_command_line_argument=yes 5913else 5914 xorg_cv_cc_flag_unused_command_line_argument=no 5915fi 5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5921 CFLAGS="$xorg_testset_save_CFLAGS" 5922fi 5923 5924found="no" 5925 5926 if test $found = "no" ; then 5927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5929 fi 5930 5931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5933 fi 5934 5935 CFLAGS="$CFLAGS -Wmissing-noreturn" 5936 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 5938$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 5939 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 5940 if eval \${$cacheid+:} false; then : 5941 $as_echo_n "(cached) " >&6 5942else 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945int i; 5946int 5947main () 5948{ 5949 5950 ; 5951 return 0; 5952} 5953_ACEOF 5954if ac_fn_c_try_link "$LINENO"; then : 5955 eval $cacheid=yes 5956else 5957 eval $cacheid=no 5958fi 5959rm -f core conftest.err conftest.$ac_objext \ 5960 conftest$ac_exeext conftest.$ac_ext 5961fi 5962 5963 5964 CFLAGS="$xorg_testset_save_CFLAGS" 5965 5966 eval supported=\$$cacheid 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5968$as_echo "$supported" >&6; } 5969 if test "$supported" = "yes" ; then 5970 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 5971 found="yes" 5972 fi 5973 fi 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989xorg_testset_save_CFLAGS="$CFLAGS" 5990 5991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999/* end confdefs.h. */ 6000int i; 6001_ACEOF 6002if ac_fn_c_try_compile "$LINENO"; then : 6003 xorg_cv_cc_flag_unknown_warning_option=yes 6004else 6005 xorg_cv_cc_flag_unknown_warning_option=no 6006fi 6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6008fi 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6012 CFLAGS="$xorg_testset_save_CFLAGS" 6013fi 6014 6015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6018 fi 6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6026/* end confdefs.h. */ 6027int i; 6028_ACEOF 6029if ac_fn_c_try_compile "$LINENO"; then : 6030 xorg_cv_cc_flag_unused_command_line_argument=yes 6031else 6032 xorg_cv_cc_flag_unused_command_line_argument=no 6033fi 6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6035fi 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6039 CFLAGS="$xorg_testset_save_CFLAGS" 6040fi 6041 6042found="no" 6043 6044 if test $found = "no" ; then 6045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047 fi 6048 6049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6051 fi 6052 6053 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6054 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6056$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6057 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6058 if eval \${$cacheid+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6062/* end confdefs.h. */ 6063int i; 6064int 6065main () 6066{ 6067 6068 ; 6069 return 0; 6070} 6071_ACEOF 6072if ac_fn_c_try_link "$LINENO"; then : 6073 eval $cacheid=yes 6074else 6075 eval $cacheid=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext \ 6078 conftest$ac_exeext conftest.$ac_ext 6079fi 6080 6081 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083 6084 eval supported=\$$cacheid 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6086$as_echo "$supported" >&6; } 6087 if test "$supported" = "yes" ; then 6088 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6089 found="yes" 6090 fi 6091 fi 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107xorg_testset_save_CFLAGS="$CFLAGS" 6108 6109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118int i; 6119_ACEOF 6120if ac_fn_c_try_compile "$LINENO"; then : 6121 xorg_cv_cc_flag_unknown_warning_option=yes 6122else 6123 xorg_cv_cc_flag_unknown_warning_option=no 6124fi 6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6126fi 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6130 CFLAGS="$xorg_testset_save_CFLAGS" 6131fi 6132 6133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 fi 6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6144/* end confdefs.h. */ 6145int i; 6146_ACEOF 6147if ac_fn_c_try_compile "$LINENO"; then : 6148 xorg_cv_cc_flag_unused_command_line_argument=yes 6149else 6150 xorg_cv_cc_flag_unused_command_line_argument=no 6151fi 6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6153fi 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6157 CFLAGS="$xorg_testset_save_CFLAGS" 6158fi 6159 6160found="no" 6161 6162 if test $found = "no" ; then 6163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6165 fi 6166 6167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6169 fi 6170 6171 CFLAGS="$CFLAGS -Wredundant-decls" 6172 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6174$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6175 cacheid=xorg_cv_cc_flag__Wredundant_decls 6176 if eval \${$cacheid+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6180/* end confdefs.h. */ 6181int i; 6182int 6183main () 6184{ 6185 6186 ; 6187 return 0; 6188} 6189_ACEOF 6190if ac_fn_c_try_link "$LINENO"; then : 6191 eval $cacheid=yes 6192else 6193 eval $cacheid=no 6194fi 6195rm -f core conftest.err conftest.$ac_objext \ 6196 conftest$ac_exeext conftest.$ac_ext 6197fi 6198 6199 6200 CFLAGS="$xorg_testset_save_CFLAGS" 6201 6202 eval supported=\$$cacheid 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6204$as_echo "$supported" >&6; } 6205 if test "$supported" = "yes" ; then 6206 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6207 found="yes" 6208 fi 6209 fi 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225xorg_testset_save_CFLAGS="$CFLAGS" 6226 6227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237_ACEOF 6238if ac_fn_c_try_compile "$LINENO"; then : 6239 xorg_cv_cc_flag_unknown_warning_option=yes 6240else 6241 xorg_cv_cc_flag_unknown_warning_option=no 6242fi 6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6244fi 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6248 CFLAGS="$xorg_testset_save_CFLAGS" 6249fi 6250 6251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 fi 6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6262/* end confdefs.h. */ 6263int i; 6264_ACEOF 6265if ac_fn_c_try_compile "$LINENO"; then : 6266 xorg_cv_cc_flag_unused_command_line_argument=yes 6267else 6268 xorg_cv_cc_flag_unused_command_line_argument=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6271fi 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276fi 6277 6278found="no" 6279 6280 if test $found = "no" ; then 6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6283 fi 6284 6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6287 fi 6288 6289 CFLAGS="$CFLAGS -Wlogical-op" 6290 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6292$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6293 cacheid=xorg_cv_cc_flag__Wlogical_op 6294 if eval \${$cacheid+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298/* end confdefs.h. */ 6299int i; 6300int 6301main () 6302{ 6303 6304 ; 6305 return 0; 6306} 6307_ACEOF 6308if ac_fn_c_try_link "$LINENO"; then : 6309 eval $cacheid=yes 6310else 6311 eval $cacheid=no 6312fi 6313rm -f core conftest.err conftest.$ac_objext \ 6314 conftest$ac_exeext conftest.$ac_ext 6315fi 6316 6317 6318 CFLAGS="$xorg_testset_save_CFLAGS" 6319 6320 eval supported=\$$cacheid 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6322$as_echo "$supported" >&6; } 6323 if test "$supported" = "yes" ; then 6324 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6325 found="yes" 6326 fi 6327 fi 6328 6329 6330 6331# These are currently disabled because they are noisy. They will be enabled 6332# in the future once the codebase is sufficiently modernized to silence 6333# them. For now, I don't want them to drown out the other warnings. 6334# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6335# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6336# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6337 6338# Turn some warnings into errors, so we don't accidently get successful builds 6339# when there are problems that should be fixed. 6340 6341if test "x$SELECTIVE_WERROR" = "xyes" ; then 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355xorg_testset_save_CFLAGS="$CFLAGS" 6356 6357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6361if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 6370else 6371 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 6376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6378 CFLAGS="$xorg_testset_save_CFLAGS" 6379fi 6380 6381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6384 fi 6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393int i; 6394_ACEOF 6395if ac_fn_c_try_compile "$LINENO"; then : 6396 xorg_cv_cc_flag_unused_command_line_argument=yes 6397else 6398 xorg_cv_cc_flag_unused_command_line_argument=no 6399fi 6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6401fi 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6405 CFLAGS="$xorg_testset_save_CFLAGS" 6406fi 6407 6408found="no" 6409 6410 if test $found = "no" ; then 6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 fi 6414 6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6417 fi 6418 6419 CFLAGS="$CFLAGS -Werror=implicit" 6420 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6422$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6423 cacheid=xorg_cv_cc_flag__Werror_implicit 6424 if eval \${$cacheid+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428/* end confdefs.h. */ 6429int i; 6430int 6431main () 6432{ 6433 6434 ; 6435 return 0; 6436} 6437_ACEOF 6438if ac_fn_c_try_link "$LINENO"; then : 6439 eval $cacheid=yes 6440else 6441 eval $cacheid=no 6442fi 6443rm -f core conftest.err conftest.$ac_objext \ 6444 conftest$ac_exeext conftest.$ac_ext 6445fi 6446 6447 6448 CFLAGS="$xorg_testset_save_CFLAGS" 6449 6450 eval supported=\$$cacheid 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6452$as_echo "$supported" >&6; } 6453 if test "$supported" = "yes" ; then 6454 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6455 found="yes" 6456 fi 6457 fi 6458 6459 if test $found = "no" ; then 6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 fi 6467 6468 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6469 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6471$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6472 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6473 if eval \${$cacheid+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6477/* end confdefs.h. */ 6478int i; 6479int 6480main () 6481{ 6482 6483 ; 6484 return 0; 6485} 6486_ACEOF 6487if ac_fn_c_try_link "$LINENO"; then : 6488 eval $cacheid=yes 6489else 6490 eval $cacheid=no 6491fi 6492rm -f core conftest.err conftest.$ac_objext \ 6493 conftest$ac_exeext conftest.$ac_ext 6494fi 6495 6496 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498 6499 eval supported=\$$cacheid 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6501$as_echo "$supported" >&6; } 6502 if test "$supported" = "yes" ; then 6503 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6504 found="yes" 6505 fi 6506 fi 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522xorg_testset_save_CFLAGS="$CFLAGS" 6523 6524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533int i; 6534_ACEOF 6535if ac_fn_c_try_compile "$LINENO"; then : 6536 xorg_cv_cc_flag_unknown_warning_option=yes 6537else 6538 xorg_cv_cc_flag_unknown_warning_option=no 6539fi 6540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546fi 6547 6548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO"; then : 6563 xorg_cv_cc_flag_unused_command_line_argument=yes 6564else 6565 xorg_cv_cc_flag_unused_command_line_argument=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575found="no" 6576 6577 if test $found = "no" ; then 6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 fi 6581 6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6584 fi 6585 6586 CFLAGS="$CFLAGS -Werror=nonnull" 6587 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6589$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6590 cacheid=xorg_cv_cc_flag__Werror_nonnull 6591 if eval \${$cacheid+:} false; then : 6592 $as_echo_n "(cached) " >&6 6593else 6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596int i; 6597int 6598main () 6599{ 6600 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605if ac_fn_c_try_link "$LINENO"; then : 6606 eval $cacheid=yes 6607else 6608 eval $cacheid=no 6609fi 6610rm -f core conftest.err conftest.$ac_objext \ 6611 conftest$ac_exeext conftest.$ac_ext 6612fi 6613 6614 6615 CFLAGS="$xorg_testset_save_CFLAGS" 6616 6617 eval supported=\$$cacheid 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6619$as_echo "$supported" >&6; } 6620 if test "$supported" = "yes" ; then 6621 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6622 found="yes" 6623 fi 6624 fi 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640xorg_testset_save_CFLAGS="$CFLAGS" 6641 6642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6650/* end confdefs.h. */ 6651int i; 6652_ACEOF 6653if ac_fn_c_try_compile "$LINENO"; then : 6654 xorg_cv_cc_flag_unknown_warning_option=yes 6655else 6656 xorg_cv_cc_flag_unknown_warning_option=no 6657fi 6658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6659fi 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6663 CFLAGS="$xorg_testset_save_CFLAGS" 6664fi 6665 6666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6669 fi 6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679_ACEOF 6680if ac_fn_c_try_compile "$LINENO"; then : 6681 xorg_cv_cc_flag_unused_command_line_argument=yes 6682else 6683 xorg_cv_cc_flag_unused_command_line_argument=no 6684fi 6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6686fi 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691fi 6692 6693found="no" 6694 6695 if test $found = "no" ; then 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 6700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6702 fi 6703 6704 CFLAGS="$CFLAGS -Werror=init-self" 6705 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6707$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6708 cacheid=xorg_cv_cc_flag__Werror_init_self 6709 if eval \${$cacheid+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6713/* end confdefs.h. */ 6714int i; 6715int 6716main () 6717{ 6718 6719 ; 6720 return 0; 6721} 6722_ACEOF 6723if ac_fn_c_try_link "$LINENO"; then : 6724 eval $cacheid=yes 6725else 6726 eval $cacheid=no 6727fi 6728rm -f core conftest.err conftest.$ac_objext \ 6729 conftest$ac_exeext conftest.$ac_ext 6730fi 6731 6732 6733 CFLAGS="$xorg_testset_save_CFLAGS" 6734 6735 eval supported=\$$cacheid 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6737$as_echo "$supported" >&6; } 6738 if test "$supported" = "yes" ; then 6739 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6740 found="yes" 6741 fi 6742 fi 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758xorg_testset_save_CFLAGS="$CFLAGS" 6759 6760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6768/* end confdefs.h. */ 6769int i; 6770_ACEOF 6771if ac_fn_c_try_compile "$LINENO"; then : 6772 xorg_cv_cc_flag_unknown_warning_option=yes 6773else 6774 xorg_cv_cc_flag_unknown_warning_option=no 6775fi 6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777fi 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6781 CFLAGS="$xorg_testset_save_CFLAGS" 6782fi 6783 6784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793else 6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795/* end confdefs.h. */ 6796int i; 6797_ACEOF 6798if ac_fn_c_try_compile "$LINENO"; then : 6799 xorg_cv_cc_flag_unused_command_line_argument=yes 6800else 6801 xorg_cv_cc_flag_unused_command_line_argument=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809fi 6810 6811found="no" 6812 6813 if test $found = "no" ; then 6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 fi 6817 6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6820 fi 6821 6822 CFLAGS="$CFLAGS -Werror=main" 6823 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6825$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6826 cacheid=xorg_cv_cc_flag__Werror_main 6827 if eval \${$cacheid+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832int i; 6833int 6834main () 6835{ 6836 6837 ; 6838 return 0; 6839} 6840_ACEOF 6841if ac_fn_c_try_link "$LINENO"; then : 6842 eval $cacheid=yes 6843else 6844 eval $cacheid=no 6845fi 6846rm -f core conftest.err conftest.$ac_objext \ 6847 conftest$ac_exeext conftest.$ac_ext 6848fi 6849 6850 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852 6853 eval supported=\$$cacheid 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6855$as_echo "$supported" >&6; } 6856 if test "$supported" = "yes" ; then 6857 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6858 found="yes" 6859 fi 6860 fi 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876xorg_testset_save_CFLAGS="$CFLAGS" 6877 6878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884else 6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886/* end confdefs.h. */ 6887int i; 6888_ACEOF 6889if ac_fn_c_try_compile "$LINENO"; then : 6890 xorg_cv_cc_flag_unknown_warning_option=yes 6891else 6892 xorg_cv_cc_flag_unknown_warning_option=no 6893fi 6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6895fi 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6899 CFLAGS="$xorg_testset_save_CFLAGS" 6900fi 6901 6902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6905 fi 6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914int i; 6915_ACEOF 6916if ac_fn_c_try_compile "$LINENO"; then : 6917 xorg_cv_cc_flag_unused_command_line_argument=yes 6918else 6919 xorg_cv_cc_flag_unused_command_line_argument=no 6920fi 6921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6926 CFLAGS="$xorg_testset_save_CFLAGS" 6927fi 6928 6929found="no" 6930 6931 if test $found = "no" ; then 6932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6934 fi 6935 6936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6938 fi 6939 6940 CFLAGS="$CFLAGS -Werror=missing-braces" 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6943$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6944 cacheid=xorg_cv_cc_flag__Werror_missing_braces 6945 if eval \${$cacheid+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6949/* end confdefs.h. */ 6950int i; 6951int 6952main () 6953{ 6954 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959if ac_fn_c_try_link "$LINENO"; then : 6960 eval $cacheid=yes 6961else 6962 eval $cacheid=no 6963fi 6964rm -f core conftest.err conftest.$ac_objext \ 6965 conftest$ac_exeext conftest.$ac_ext 6966fi 6967 6968 6969 CFLAGS="$xorg_testset_save_CFLAGS" 6970 6971 eval supported=\$$cacheid 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6973$as_echo "$supported" >&6; } 6974 if test "$supported" = "yes" ; then 6975 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6976 found="yes" 6977 fi 6978 fi 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994xorg_testset_save_CFLAGS="$CFLAGS" 6995 6996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006_ACEOF 7007if ac_fn_c_try_compile "$LINENO"; then : 7008 xorg_cv_cc_flag_unknown_warning_option=yes 7009else 7010 xorg_cv_cc_flag_unknown_warning_option=no 7011fi 7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7013fi 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7017 CFLAGS="$xorg_testset_save_CFLAGS" 7018fi 7019 7020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7023 fi 7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7028 $as_echo_n "(cached) " >&6 7029else 7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7031/* end confdefs.h. */ 7032int i; 7033_ACEOF 7034if ac_fn_c_try_compile "$LINENO"; then : 7035 xorg_cv_cc_flag_unused_command_line_argument=yes 7036else 7037 xorg_cv_cc_flag_unused_command_line_argument=no 7038fi 7039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7040fi 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7044 CFLAGS="$xorg_testset_save_CFLAGS" 7045fi 7046 7047found="no" 7048 7049 if test $found = "no" ; then 7050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7052 fi 7053 7054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7056 fi 7057 7058 CFLAGS="$CFLAGS -Werror=sequence-point" 7059 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7061$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7062 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7063 if eval \${$cacheid+:} false; then : 7064 $as_echo_n "(cached) " >&6 7065else 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068int i; 7069int 7070main () 7071{ 7072 7073 ; 7074 return 0; 7075} 7076_ACEOF 7077if ac_fn_c_try_link "$LINENO"; then : 7078 eval $cacheid=yes 7079else 7080 eval $cacheid=no 7081fi 7082rm -f core conftest.err conftest.$ac_objext \ 7083 conftest$ac_exeext conftest.$ac_ext 7084fi 7085 7086 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088 7089 eval supported=\$$cacheid 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7091$as_echo "$supported" >&6; } 7092 if test "$supported" = "yes" ; then 7093 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7094 found="yes" 7095 fi 7096 fi 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112xorg_testset_save_CFLAGS="$CFLAGS" 7113 7114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122/* end confdefs.h. */ 7123int i; 7124_ACEOF 7125if ac_fn_c_try_compile "$LINENO"; then : 7126 xorg_cv_cc_flag_unknown_warning_option=yes 7127else 7128 xorg_cv_cc_flag_unknown_warning_option=no 7129fi 7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7131fi 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7135 CFLAGS="$xorg_testset_save_CFLAGS" 7136fi 7137 7138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7141 fi 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150int i; 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO"; then : 7153 xorg_cv_cc_flag_unused_command_line_argument=yes 7154else 7155 xorg_cv_cc_flag_unused_command_line_argument=no 7156fi 7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7162 CFLAGS="$xorg_testset_save_CFLAGS" 7163fi 7164 7165found="no" 7166 7167 if test $found = "no" ; then 7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 fi 7171 7172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7174 fi 7175 7176 CFLAGS="$CFLAGS -Werror=return-type" 7177 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7179$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7180 cacheid=xorg_cv_cc_flag__Werror_return_type 7181 if eval \${$cacheid+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187int 7188main () 7189{ 7190 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195if ac_fn_c_try_link "$LINENO"; then : 7196 eval $cacheid=yes 7197else 7198 eval $cacheid=no 7199fi 7200rm -f core conftest.err conftest.$ac_objext \ 7201 conftest$ac_exeext conftest.$ac_ext 7202fi 7203 7204 7205 CFLAGS="$xorg_testset_save_CFLAGS" 7206 7207 eval supported=\$$cacheid 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7209$as_echo "$supported" >&6; } 7210 if test "$supported" = "yes" ; then 7211 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7212 found="yes" 7213 fi 7214 fi 7215 7216 if test $found = "no" ; then 7217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7219 fi 7220 7221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7223 fi 7224 7225 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7228$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7229 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7230 if eval \${$cacheid+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235int i; 7236int 7237main () 7238{ 7239 7240 ; 7241 return 0; 7242} 7243_ACEOF 7244if ac_fn_c_try_link "$LINENO"; then : 7245 eval $cacheid=yes 7246else 7247 eval $cacheid=no 7248fi 7249rm -f core conftest.err conftest.$ac_objext \ 7250 conftest$ac_exeext conftest.$ac_ext 7251fi 7252 7253 7254 CFLAGS="$xorg_testset_save_CFLAGS" 7255 7256 eval supported=\$$cacheid 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7258$as_echo "$supported" >&6; } 7259 if test "$supported" = "yes" ; then 7260 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7261 found="yes" 7262 fi 7263 fi 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279xorg_testset_save_CFLAGS="$CFLAGS" 7280 7281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290int i; 7291_ACEOF 7292if ac_fn_c_try_compile "$LINENO"; then : 7293 xorg_cv_cc_flag_unknown_warning_option=yes 7294else 7295 xorg_cv_cc_flag_unknown_warning_option=no 7296fi 7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7298fi 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7302 CFLAGS="$xorg_testset_save_CFLAGS" 7303fi 7304 7305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7308 fi 7309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO"; then : 7320 xorg_cv_cc_flag_unused_command_line_argument=yes 7321else 7322 xorg_cv_cc_flag_unused_command_line_argument=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330fi 7331 7332found="no" 7333 7334 if test $found = "no" ; then 7335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7337 fi 7338 7339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7341 fi 7342 7343 CFLAGS="$CFLAGS -Werror=trigraphs" 7344 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7346$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7347 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7348 if eval \${$cacheid+:} false; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353int i; 7354int 7355main () 7356{ 7357 7358 ; 7359 return 0; 7360} 7361_ACEOF 7362if ac_fn_c_try_link "$LINENO"; then : 7363 eval $cacheid=yes 7364else 7365 eval $cacheid=no 7366fi 7367rm -f core conftest.err conftest.$ac_objext \ 7368 conftest$ac_exeext conftest.$ac_ext 7369fi 7370 7371 7372 CFLAGS="$xorg_testset_save_CFLAGS" 7373 7374 eval supported=\$$cacheid 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7376$as_echo "$supported" >&6; } 7377 if test "$supported" = "yes" ; then 7378 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7379 found="yes" 7380 fi 7381 fi 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397xorg_testset_save_CFLAGS="$CFLAGS" 7398 7399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408int i; 7409_ACEOF 7410if ac_fn_c_try_compile "$LINENO"; then : 7411 xorg_cv_cc_flag_unknown_warning_option=yes 7412else 7413 xorg_cv_cc_flag_unknown_warning_option=no 7414fi 7415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7416fi 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421fi 7422 7423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7431 $as_echo_n "(cached) " >&6 7432else 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435int i; 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 xorg_cv_cc_flag_unused_command_line_argument=yes 7439else 7440 xorg_cv_cc_flag_unused_command_line_argument=no 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443fi 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7447 CFLAGS="$xorg_testset_save_CFLAGS" 7448fi 7449 7450found="no" 7451 7452 if test $found = "no" ; then 7453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7455 fi 7456 7457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7459 fi 7460 7461 CFLAGS="$CFLAGS -Werror=array-bounds" 7462 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7464$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7465 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7466 if eval \${$cacheid+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471int i; 7472int 7473main () 7474{ 7475 7476 ; 7477 return 0; 7478} 7479_ACEOF 7480if ac_fn_c_try_link "$LINENO"; then : 7481 eval $cacheid=yes 7482else 7483 eval $cacheid=no 7484fi 7485rm -f core conftest.err conftest.$ac_objext \ 7486 conftest$ac_exeext conftest.$ac_ext 7487fi 7488 7489 7490 CFLAGS="$xorg_testset_save_CFLAGS" 7491 7492 eval supported=\$$cacheid 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7494$as_echo "$supported" >&6; } 7495 if test "$supported" = "yes" ; then 7496 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7497 found="yes" 7498 fi 7499 fi 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515xorg_testset_save_CFLAGS="$CFLAGS" 7516 7517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7525/* end confdefs.h. */ 7526int i; 7527_ACEOF 7528if ac_fn_c_try_compile "$LINENO"; then : 7529 xorg_cv_cc_flag_unknown_warning_option=yes 7530else 7531 xorg_cv_cc_flag_unknown_warning_option=no 7532fi 7533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7534fi 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7538 CFLAGS="$xorg_testset_save_CFLAGS" 7539fi 7540 7541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 fi 7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553int i; 7554_ACEOF 7555if ac_fn_c_try_compile "$LINENO"; then : 7556 xorg_cv_cc_flag_unused_command_line_argument=yes 7557else 7558 xorg_cv_cc_flag_unused_command_line_argument=no 7559fi 7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7561fi 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7565 CFLAGS="$xorg_testset_save_CFLAGS" 7566fi 7567 7568found="no" 7569 7570 if test $found = "no" ; then 7571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7573 fi 7574 7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577 fi 7578 7579 CFLAGS="$CFLAGS -Werror=write-strings" 7580 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7582$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7583 cacheid=xorg_cv_cc_flag__Werror_write_strings 7584 if eval \${$cacheid+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589int i; 7590int 7591main () 7592{ 7593 7594 ; 7595 return 0; 7596} 7597_ACEOF 7598if ac_fn_c_try_link "$LINENO"; then : 7599 eval $cacheid=yes 7600else 7601 eval $cacheid=no 7602fi 7603rm -f core conftest.err conftest.$ac_objext \ 7604 conftest$ac_exeext conftest.$ac_ext 7605fi 7606 7607 7608 CFLAGS="$xorg_testset_save_CFLAGS" 7609 7610 eval supported=\$$cacheid 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7612$as_echo "$supported" >&6; } 7613 if test "$supported" = "yes" ; then 7614 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7615 found="yes" 7616 fi 7617 fi 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633xorg_testset_save_CFLAGS="$CFLAGS" 7634 7635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7638$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7639if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644int i; 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO"; then : 7647 xorg_cv_cc_flag_unknown_warning_option=yes 7648else 7649 xorg_cv_cc_flag_unknown_warning_option=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7652fi 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7654$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7656 CFLAGS="$xorg_testset_save_CFLAGS" 7657fi 7658 7659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 fi 7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7665$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7666if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7667 $as_echo_n "(cached) " >&6 7668else 7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671int i; 7672_ACEOF 7673if ac_fn_c_try_compile "$LINENO"; then : 7674 xorg_cv_cc_flag_unused_command_line_argument=yes 7675else 7676 xorg_cv_cc_flag_unused_command_line_argument=no 7677fi 7678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7679fi 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7681$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7683 CFLAGS="$xorg_testset_save_CFLAGS" 7684fi 7685 7686found="no" 7687 7688 if test $found = "no" ; then 7689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691 fi 7692 7693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7695 fi 7696 7697 CFLAGS="$CFLAGS -Werror=address" 7698 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7700$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7701 cacheid=xorg_cv_cc_flag__Werror_address 7702 if eval \${$cacheid+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7706/* end confdefs.h. */ 7707int i; 7708int 7709main () 7710{ 7711 7712 ; 7713 return 0; 7714} 7715_ACEOF 7716if ac_fn_c_try_link "$LINENO"; then : 7717 eval $cacheid=yes 7718else 7719 eval $cacheid=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext \ 7722 conftest$ac_exeext conftest.$ac_ext 7723fi 7724 7725 7726 CFLAGS="$xorg_testset_save_CFLAGS" 7727 7728 eval supported=\$$cacheid 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7730$as_echo "$supported" >&6; } 7731 if test "$supported" = "yes" ; then 7732 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7733 found="yes" 7734 fi 7735 fi 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751xorg_testset_save_CFLAGS="$CFLAGS" 7752 7753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762int i; 7763_ACEOF 7764if ac_fn_c_try_compile "$LINENO"; then : 7765 xorg_cv_cc_flag_unknown_warning_option=yes 7766else 7767 xorg_cv_cc_flag_unknown_warning_option=no 7768fi 7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7774 CFLAGS="$xorg_testset_save_CFLAGS" 7775fi 7776 7777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7780 fi 7781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786else 7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7788/* end confdefs.h. */ 7789int i; 7790_ACEOF 7791if ac_fn_c_try_compile "$LINENO"; then : 7792 xorg_cv_cc_flag_unused_command_line_argument=yes 7793else 7794 xorg_cv_cc_flag_unused_command_line_argument=no 7795fi 7796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7797fi 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802fi 7803 7804found="no" 7805 7806 if test $found = "no" ; then 7807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7809 fi 7810 7811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7813 fi 7814 7815 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7816 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7818$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7819 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 7820 if eval \${$cacheid+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7824/* end confdefs.h. */ 7825int i; 7826int 7827main () 7828{ 7829 7830 ; 7831 return 0; 7832} 7833_ACEOF 7834if ac_fn_c_try_link "$LINENO"; then : 7835 eval $cacheid=yes 7836else 7837 eval $cacheid=no 7838fi 7839rm -f core conftest.err conftest.$ac_objext \ 7840 conftest$ac_exeext conftest.$ac_ext 7841fi 7842 7843 7844 CFLAGS="$xorg_testset_save_CFLAGS" 7845 7846 eval supported=\$$cacheid 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7848$as_echo "$supported" >&6; } 7849 if test "$supported" = "yes" ; then 7850 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7851 found="yes" 7852 fi 7853 fi 7854 7855 if test $found = "no" ; then 7856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7858 fi 7859 7860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7862 fi 7863 7864 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7865 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7867$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7868 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 7869 if eval \${$cacheid+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874int i; 7875int 7876main () 7877{ 7878 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883if ac_fn_c_try_link "$LINENO"; then : 7884 eval $cacheid=yes 7885else 7886 eval $cacheid=no 7887fi 7888rm -f core conftest.err conftest.$ac_objext \ 7889 conftest$ac_exeext conftest.$ac_ext 7890fi 7891 7892 7893 CFLAGS="$xorg_testset_save_CFLAGS" 7894 7895 eval supported=\$$cacheid 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7897$as_echo "$supported" >&6; } 7898 if test "$supported" = "yes" ; then 7899 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7900 found="yes" 7901 fi 7902 fi 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918xorg_testset_save_CFLAGS="$CFLAGS" 7919 7920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7928/* end confdefs.h. */ 7929int i; 7930_ACEOF 7931if ac_fn_c_try_compile "$LINENO"; then : 7932 xorg_cv_cc_flag_unknown_warning_option=yes 7933else 7934 xorg_cv_cc_flag_unknown_warning_option=no 7935fi 7936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7937fi 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942fi 7943 7944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955/* end confdefs.h. */ 7956int i; 7957_ACEOF 7958if ac_fn_c_try_compile "$LINENO"; then : 7959 xorg_cv_cc_flag_unused_command_line_argument=yes 7960else 7961 xorg_cv_cc_flag_unused_command_line_argument=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7964fi 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969fi 7970 7971found="no" 7972 7973 if test $found = "no" ; then 7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7976 fi 7977 7978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7980 fi 7981 7982 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7983 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7985$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7986 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 7987 if eval \${$cacheid+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991/* end confdefs.h. */ 7992int i; 7993int 7994main () 7995{ 7996 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001if ac_fn_c_try_link "$LINENO"; then : 8002 eval $cacheid=yes 8003else 8004 eval $cacheid=no 8005fi 8006rm -f core conftest.err conftest.$ac_objext \ 8007 conftest$ac_exeext conftest.$ac_ext 8008fi 8009 8010 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012 8013 eval supported=\$$cacheid 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8015$as_echo "$supported" >&6; } 8016 if test "$supported" = "yes" ; then 8017 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8018 found="yes" 8019 fi 8020 fi 8021 8022 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8023else 8024{ $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 8025$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;} 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039xorg_testset_save_CFLAGS="$CFLAGS" 8040 8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8049/* end confdefs.h. */ 8050int i; 8051_ACEOF 8052if ac_fn_c_try_compile "$LINENO"; then : 8053 xorg_cv_cc_flag_unknown_warning_option=yes 8054else 8055 xorg_cv_cc_flag_unknown_warning_option=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063fi 8064 8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8076/* end confdefs.h. */ 8077int i; 8078_ACEOF 8079if ac_fn_c_try_compile "$LINENO"; then : 8080 xorg_cv_cc_flag_unused_command_line_argument=yes 8081else 8082 xorg_cv_cc_flag_unused_command_line_argument=no 8083fi 8084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8089 CFLAGS="$xorg_testset_save_CFLAGS" 8090fi 8091 8092found="no" 8093 8094 if test $found = "no" ; then 8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8097 fi 8098 8099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8101 fi 8102 8103 CFLAGS="$CFLAGS -Wimplicit" 8104 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8106$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8107 cacheid=xorg_cv_cc_flag__Wimplicit 8108 if eval \${$cacheid+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8112/* end confdefs.h. */ 8113int i; 8114int 8115main () 8116{ 8117 8118 ; 8119 return 0; 8120} 8121_ACEOF 8122if ac_fn_c_try_link "$LINENO"; then : 8123 eval $cacheid=yes 8124else 8125 eval $cacheid=no 8126fi 8127rm -f core conftest.err conftest.$ac_objext \ 8128 conftest$ac_exeext conftest.$ac_ext 8129fi 8130 8131 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 8134 eval supported=\$$cacheid 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136$as_echo "$supported" >&6; } 8137 if test "$supported" = "yes" ; then 8138 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8139 found="yes" 8140 fi 8141 fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157xorg_testset_save_CFLAGS="$CFLAGS" 8158 8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169_ACEOF 8170if ac_fn_c_try_compile "$LINENO"; then : 8171 xorg_cv_cc_flag_unknown_warning_option=yes 8172else 8173 xorg_cv_cc_flag_unknown_warning_option=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8176fi 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181fi 8182 8183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 fi 8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194/* end confdefs.h. */ 8195int i; 8196_ACEOF 8197if ac_fn_c_try_compile "$LINENO"; then : 8198 xorg_cv_cc_flag_unused_command_line_argument=yes 8199else 8200 xorg_cv_cc_flag_unused_command_line_argument=no 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8203fi 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8207 CFLAGS="$xorg_testset_save_CFLAGS" 8208fi 8209 8210found="no" 8211 8212 if test $found = "no" ; then 8213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8215 fi 8216 8217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8219 fi 8220 8221 CFLAGS="$CFLAGS -Wnonnull" 8222 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8224$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8225 cacheid=xorg_cv_cc_flag__Wnonnull 8226 if eval \${$cacheid+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8230/* end confdefs.h. */ 8231int i; 8232int 8233main () 8234{ 8235 8236 ; 8237 return 0; 8238} 8239_ACEOF 8240if ac_fn_c_try_link "$LINENO"; then : 8241 eval $cacheid=yes 8242else 8243 eval $cacheid=no 8244fi 8245rm -f core conftest.err conftest.$ac_objext \ 8246 conftest$ac_exeext conftest.$ac_ext 8247fi 8248 8249 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251 8252 eval supported=\$$cacheid 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8254$as_echo "$supported" >&6; } 8255 if test "$supported" = "yes" ; then 8256 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8257 found="yes" 8258 fi 8259 fi 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275xorg_testset_save_CFLAGS="$CFLAGS" 8276 8277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO"; then : 8289 xorg_cv_cc_flag_unknown_warning_option=yes 8290else 8291 xorg_cv_cc_flag_unknown_warning_option=no 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299fi 8300 8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 fi 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313int i; 8314_ACEOF 8315if ac_fn_c_try_compile "$LINENO"; then : 8316 xorg_cv_cc_flag_unused_command_line_argument=yes 8317else 8318 xorg_cv_cc_flag_unused_command_line_argument=no 8319fi 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8325 CFLAGS="$xorg_testset_save_CFLAGS" 8326fi 8327 8328found="no" 8329 8330 if test $found = "no" ; then 8331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 fi 8334 8335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8337 fi 8338 8339 CFLAGS="$CFLAGS -Winit-self" 8340 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8342$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8343 cacheid=xorg_cv_cc_flag__Winit_self 8344 if eval \${$cacheid+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350int 8351main () 8352{ 8353 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358if ac_fn_c_try_link "$LINENO"; then : 8359 eval $cacheid=yes 8360else 8361 eval $cacheid=no 8362fi 8363rm -f core conftest.err conftest.$ac_objext \ 8364 conftest$ac_exeext conftest.$ac_ext 8365fi 8366 8367 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 8370 eval supported=\$$cacheid 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8372$as_echo "$supported" >&6; } 8373 if test "$supported" = "yes" ; then 8374 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8375 found="yes" 8376 fi 8377 fi 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393xorg_testset_save_CFLAGS="$CFLAGS" 8394 8395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403/* end confdefs.h. */ 8404int i; 8405_ACEOF 8406if ac_fn_c_try_compile "$LINENO"; then : 8407 xorg_cv_cc_flag_unknown_warning_option=yes 8408else 8409 xorg_cv_cc_flag_unknown_warning_option=no 8410fi 8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8412fi 8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8416 CFLAGS="$xorg_testset_save_CFLAGS" 8417fi 8418 8419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8422 fi 8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430/* end confdefs.h. */ 8431int i; 8432_ACEOF 8433if ac_fn_c_try_compile "$LINENO"; then : 8434 xorg_cv_cc_flag_unused_command_line_argument=yes 8435else 8436 xorg_cv_cc_flag_unused_command_line_argument=no 8437fi 8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8439fi 8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8443 CFLAGS="$xorg_testset_save_CFLAGS" 8444fi 8445 8446found="no" 8447 8448 if test $found = "no" ; then 8449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8451 fi 8452 8453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8455 fi 8456 8457 CFLAGS="$CFLAGS -Wmain" 8458 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8460$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8461 cacheid=xorg_cv_cc_flag__Wmain 8462 if eval \${$cacheid+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8466/* end confdefs.h. */ 8467int i; 8468int 8469main () 8470{ 8471 8472 ; 8473 return 0; 8474} 8475_ACEOF 8476if ac_fn_c_try_link "$LINENO"; then : 8477 eval $cacheid=yes 8478else 8479 eval $cacheid=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext \ 8482 conftest$ac_exeext conftest.$ac_ext 8483fi 8484 8485 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487 8488 eval supported=\$$cacheid 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8490$as_echo "$supported" >&6; } 8491 if test "$supported" = "yes" ; then 8492 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8493 found="yes" 8494 fi 8495 fi 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511xorg_testset_save_CFLAGS="$CFLAGS" 8512 8513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522int i; 8523_ACEOF 8524if ac_fn_c_try_compile "$LINENO"; then : 8525 xorg_cv_cc_flag_unknown_warning_option=yes 8526else 8527 xorg_cv_cc_flag_unknown_warning_option=no 8528fi 8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8530fi 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8534 CFLAGS="$xorg_testset_save_CFLAGS" 8535fi 8536 8537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8540 fi 8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8545 $as_echo_n "(cached) " >&6 8546else 8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8548/* end confdefs.h. */ 8549int i; 8550_ACEOF 8551if ac_fn_c_try_compile "$LINENO"; then : 8552 xorg_cv_cc_flag_unused_command_line_argument=yes 8553else 8554 xorg_cv_cc_flag_unused_command_line_argument=no 8555fi 8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8557fi 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562fi 8563 8564found="no" 8565 8566 if test $found = "no" ; then 8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569 fi 8570 8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 fi 8574 8575 CFLAGS="$CFLAGS -Wmissing-braces" 8576 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8578$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8579 cacheid=xorg_cv_cc_flag__Wmissing_braces 8580 if eval \${$cacheid+:} false; then : 8581 $as_echo_n "(cached) " >&6 8582else 8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584/* end confdefs.h. */ 8585int i; 8586int 8587main () 8588{ 8589 8590 ; 8591 return 0; 8592} 8593_ACEOF 8594if ac_fn_c_try_link "$LINENO"; then : 8595 eval $cacheid=yes 8596else 8597 eval $cacheid=no 8598fi 8599rm -f core conftest.err conftest.$ac_objext \ 8600 conftest$ac_exeext conftest.$ac_ext 8601fi 8602 8603 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605 8606 eval supported=\$$cacheid 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8608$as_echo "$supported" >&6; } 8609 if test "$supported" = "yes" ; then 8610 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8611 found="yes" 8612 fi 8613 fi 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629xorg_testset_save_CFLAGS="$CFLAGS" 8630 8631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639/* end confdefs.h. */ 8640int i; 8641_ACEOF 8642if ac_fn_c_try_compile "$LINENO"; then : 8643 xorg_cv_cc_flag_unknown_warning_option=yes 8644else 8645 xorg_cv_cc_flag_unknown_warning_option=no 8646fi 8647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8648fi 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8652 CFLAGS="$xorg_testset_save_CFLAGS" 8653fi 8654 8655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8658 fi 8659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667int i; 8668_ACEOF 8669if ac_fn_c_try_compile "$LINENO"; then : 8670 xorg_cv_cc_flag_unused_command_line_argument=yes 8671else 8672 xorg_cv_cc_flag_unused_command_line_argument=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8675fi 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8679 CFLAGS="$xorg_testset_save_CFLAGS" 8680fi 8681 8682found="no" 8683 8684 if test $found = "no" ; then 8685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8687 fi 8688 8689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8691 fi 8692 8693 CFLAGS="$CFLAGS -Wsequence-point" 8694 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8696$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8697 cacheid=xorg_cv_cc_flag__Wsequence_point 8698 if eval \${$cacheid+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703int i; 8704int 8705main () 8706{ 8707 8708 ; 8709 return 0; 8710} 8711_ACEOF 8712if ac_fn_c_try_link "$LINENO"; then : 8713 eval $cacheid=yes 8714else 8715 eval $cacheid=no 8716fi 8717rm -f core conftest.err conftest.$ac_objext \ 8718 conftest$ac_exeext conftest.$ac_ext 8719fi 8720 8721 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723 8724 eval supported=\$$cacheid 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8726$as_echo "$supported" >&6; } 8727 if test "$supported" = "yes" ; then 8728 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8729 found="yes" 8730 fi 8731 fi 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747xorg_testset_save_CFLAGS="$CFLAGS" 8748 8749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757/* end confdefs.h. */ 8758int i; 8759_ACEOF 8760if ac_fn_c_try_compile "$LINENO"; then : 8761 xorg_cv_cc_flag_unknown_warning_option=yes 8762else 8763 xorg_cv_cc_flag_unknown_warning_option=no 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8770 CFLAGS="$xorg_testset_save_CFLAGS" 8771fi 8772 8773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 fi 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8784/* end confdefs.h. */ 8785int i; 8786_ACEOF 8787if ac_fn_c_try_compile "$LINENO"; then : 8788 xorg_cv_cc_flag_unused_command_line_argument=yes 8789else 8790 xorg_cv_cc_flag_unused_command_line_argument=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798fi 8799 8800found="no" 8801 8802 if test $found = "no" ; then 8803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8805 fi 8806 8807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8809 fi 8810 8811 CFLAGS="$CFLAGS -Wreturn-type" 8812 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8814$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8815 cacheid=xorg_cv_cc_flag__Wreturn_type 8816 if eval \${$cacheid+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821int i; 8822int 8823main () 8824{ 8825 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830if ac_fn_c_try_link "$LINENO"; then : 8831 eval $cacheid=yes 8832else 8833 eval $cacheid=no 8834fi 8835rm -f core conftest.err conftest.$ac_objext \ 8836 conftest$ac_exeext conftest.$ac_ext 8837fi 8838 8839 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841 8842 eval supported=\$$cacheid 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8844$as_echo "$supported" >&6; } 8845 if test "$supported" = "yes" ; then 8846 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8847 found="yes" 8848 fi 8849 fi 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865xorg_testset_save_CFLAGS="$CFLAGS" 8866 8867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877_ACEOF 8878if ac_fn_c_try_compile "$LINENO"; then : 8879 xorg_cv_cc_flag_unknown_warning_option=yes 8880else 8881 xorg_cv_cc_flag_unknown_warning_option=no 8882fi 8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8884fi 8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8888 CFLAGS="$xorg_testset_save_CFLAGS" 8889fi 8890 8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8894 fi 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8899 $as_echo_n "(cached) " >&6 8900else 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903int i; 8904_ACEOF 8905if ac_fn_c_try_compile "$LINENO"; then : 8906 xorg_cv_cc_flag_unused_command_line_argument=yes 8907else 8908 xorg_cv_cc_flag_unused_command_line_argument=no 8909fi 8910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8911fi 8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8915 CFLAGS="$xorg_testset_save_CFLAGS" 8916fi 8917 8918found="no" 8919 8920 if test $found = "no" ; then 8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8923 fi 8924 8925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8927 fi 8928 8929 CFLAGS="$CFLAGS -Wtrigraphs" 8930 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8932$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8933 cacheid=xorg_cv_cc_flag__Wtrigraphs 8934 if eval \${$cacheid+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938/* end confdefs.h. */ 8939int i; 8940int 8941main () 8942{ 8943 8944 ; 8945 return 0; 8946} 8947_ACEOF 8948if ac_fn_c_try_link "$LINENO"; then : 8949 eval $cacheid=yes 8950else 8951 eval $cacheid=no 8952fi 8953rm -f core conftest.err conftest.$ac_objext \ 8954 conftest$ac_exeext conftest.$ac_ext 8955fi 8956 8957 8958 CFLAGS="$xorg_testset_save_CFLAGS" 8959 8960 eval supported=\$$cacheid 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8962$as_echo "$supported" >&6; } 8963 if test "$supported" = "yes" ; then 8964 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8965 found="yes" 8966 fi 8967 fi 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983xorg_testset_save_CFLAGS="$CFLAGS" 8984 8985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8990 $as_echo_n "(cached) " >&6 8991else 8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993/* end confdefs.h. */ 8994int i; 8995_ACEOF 8996if ac_fn_c_try_compile "$LINENO"; then : 8997 xorg_cv_cc_flag_unknown_warning_option=yes 8998else 8999 xorg_cv_cc_flag_unknown_warning_option=no 9000fi 9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9002fi 9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9006 CFLAGS="$xorg_testset_save_CFLAGS" 9007fi 9008 9009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9012 fi 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9017 $as_echo_n "(cached) " >&6 9018else 9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9020/* end confdefs.h. */ 9021int i; 9022_ACEOF 9023if ac_fn_c_try_compile "$LINENO"; then : 9024 xorg_cv_cc_flag_unused_command_line_argument=yes 9025else 9026 xorg_cv_cc_flag_unused_command_line_argument=no 9027fi 9028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9029fi 9030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9033 CFLAGS="$xorg_testset_save_CFLAGS" 9034fi 9035 9036found="no" 9037 9038 if test $found = "no" ; then 9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9041 fi 9042 9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9045 fi 9046 9047 CFLAGS="$CFLAGS -Warray-bounds" 9048 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9050$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9051 cacheid=xorg_cv_cc_flag__Warray_bounds 9052 if eval \${$cacheid+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056/* end confdefs.h. */ 9057int i; 9058int 9059main () 9060{ 9061 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066if ac_fn_c_try_link "$LINENO"; then : 9067 eval $cacheid=yes 9068else 9069 eval $cacheid=no 9070fi 9071rm -f core conftest.err conftest.$ac_objext \ 9072 conftest$ac_exeext conftest.$ac_ext 9073fi 9074 9075 9076 CFLAGS="$xorg_testset_save_CFLAGS" 9077 9078 eval supported=\$$cacheid 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9080$as_echo "$supported" >&6; } 9081 if test "$supported" = "yes" ; then 9082 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9083 found="yes" 9084 fi 9085 fi 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101xorg_testset_save_CFLAGS="$CFLAGS" 9102 9103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112int i; 9113_ACEOF 9114if ac_fn_c_try_compile "$LINENO"; then : 9115 xorg_cv_cc_flag_unknown_warning_option=yes 9116else 9117 xorg_cv_cc_flag_unknown_warning_option=no 9118fi 9119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9120fi 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9124 CFLAGS="$xorg_testset_save_CFLAGS" 9125fi 9126 9127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9130 fi 9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9135 $as_echo_n "(cached) " >&6 9136else 9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139int i; 9140_ACEOF 9141if ac_fn_c_try_compile "$LINENO"; then : 9142 xorg_cv_cc_flag_unused_command_line_argument=yes 9143else 9144 xorg_cv_cc_flag_unused_command_line_argument=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9147fi 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152fi 9153 9154found="no" 9155 9156 if test $found = "no" ; then 9157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9159 fi 9160 9161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9163 fi 9164 9165 CFLAGS="$CFLAGS -Wwrite-strings" 9166 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9168$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9169 cacheid=xorg_cv_cc_flag__Wwrite_strings 9170 if eval \${$cacheid+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9174/* end confdefs.h. */ 9175int i; 9176int 9177main () 9178{ 9179 9180 ; 9181 return 0; 9182} 9183_ACEOF 9184if ac_fn_c_try_link "$LINENO"; then : 9185 eval $cacheid=yes 9186else 9187 eval $cacheid=no 9188fi 9189rm -f core conftest.err conftest.$ac_objext \ 9190 conftest$ac_exeext conftest.$ac_ext 9191fi 9192 9193 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195 9196 eval supported=\$$cacheid 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9198$as_echo "$supported" >&6; } 9199 if test "$supported" = "yes" ; then 9200 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9201 found="yes" 9202 fi 9203 fi 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219xorg_testset_save_CFLAGS="$CFLAGS" 9220 9221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229/* end confdefs.h. */ 9230int i; 9231_ACEOF 9232if ac_fn_c_try_compile "$LINENO"; then : 9233 xorg_cv_cc_flag_unknown_warning_option=yes 9234else 9235 xorg_cv_cc_flag_unknown_warning_option=no 9236fi 9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9238fi 9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9242 CFLAGS="$xorg_testset_save_CFLAGS" 9243fi 9244 9245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9248 fi 9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257int i; 9258_ACEOF 9259if ac_fn_c_try_compile "$LINENO"; then : 9260 xorg_cv_cc_flag_unused_command_line_argument=yes 9261else 9262 xorg_cv_cc_flag_unused_command_line_argument=no 9263fi 9264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9265fi 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9269 CFLAGS="$xorg_testset_save_CFLAGS" 9270fi 9271 9272found="no" 9273 9274 if test $found = "no" ; then 9275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9277 fi 9278 9279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9281 fi 9282 9283 CFLAGS="$CFLAGS -Waddress" 9284 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9286$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9287 cacheid=xorg_cv_cc_flag__Waddress 9288 if eval \${$cacheid+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292/* end confdefs.h. */ 9293int i; 9294int 9295main () 9296{ 9297 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302if ac_fn_c_try_link "$LINENO"; then : 9303 eval $cacheid=yes 9304else 9305 eval $cacheid=no 9306fi 9307rm -f core conftest.err conftest.$ac_objext \ 9308 conftest$ac_exeext conftest.$ac_ext 9309fi 9310 9311 9312 CFLAGS="$xorg_testset_save_CFLAGS" 9313 9314 eval supported=\$$cacheid 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9316$as_echo "$supported" >&6; } 9317 if test "$supported" = "yes" ; then 9318 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9319 found="yes" 9320 fi 9321 fi 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337xorg_testset_save_CFLAGS="$CFLAGS" 9338 9339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345else 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348int i; 9349_ACEOF 9350if ac_fn_c_try_compile "$LINENO"; then : 9351 xorg_cv_cc_flag_unknown_warning_option=yes 9352else 9353 xorg_cv_cc_flag_unknown_warning_option=no 9354fi 9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9356fi 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361fi 9362 9363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9366 fi 9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372else 9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374/* end confdefs.h. */ 9375int i; 9376_ACEOF 9377if ac_fn_c_try_compile "$LINENO"; then : 9378 xorg_cv_cc_flag_unused_command_line_argument=yes 9379else 9380 xorg_cv_cc_flag_unused_command_line_argument=no 9381fi 9382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9383fi 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9387 CFLAGS="$xorg_testset_save_CFLAGS" 9388fi 9389 9390found="no" 9391 9392 if test $found = "no" ; then 9393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9395 fi 9396 9397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9399 fi 9400 9401 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9402 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9404$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9405 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9406 if eval \${$cacheid+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9410/* end confdefs.h. */ 9411int i; 9412int 9413main () 9414{ 9415 9416 ; 9417 return 0; 9418} 9419_ACEOF 9420if ac_fn_c_try_link "$LINENO"; then : 9421 eval $cacheid=yes 9422else 9423 eval $cacheid=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext \ 9426 conftest$ac_exeext conftest.$ac_ext 9427fi 9428 9429 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431 9432 eval supported=\$$cacheid 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9434$as_echo "$supported" >&6; } 9435 if test "$supported" = "yes" ; then 9436 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9437 found="yes" 9438 fi 9439 fi 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455xorg_testset_save_CFLAGS="$CFLAGS" 9456 9457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9462 $as_echo_n "(cached) " >&6 9463else 9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465/* end confdefs.h. */ 9466int i; 9467_ACEOF 9468if ac_fn_c_try_compile "$LINENO"; then : 9469 xorg_cv_cc_flag_unknown_warning_option=yes 9470else 9471 xorg_cv_cc_flag_unknown_warning_option=no 9472fi 9473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9474fi 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479fi 9480 9481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9484 fi 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9489 $as_echo_n "(cached) " >&6 9490else 9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492/* end confdefs.h. */ 9493int i; 9494_ACEOF 9495if ac_fn_c_try_compile "$LINENO"; then : 9496 xorg_cv_cc_flag_unused_command_line_argument=yes 9497else 9498 xorg_cv_cc_flag_unused_command_line_argument=no 9499fi 9500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9501fi 9502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9505 CFLAGS="$xorg_testset_save_CFLAGS" 9506fi 9507 9508found="no" 9509 9510 if test $found = "no" ; then 9511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9513 fi 9514 9515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9517 fi 9518 9519 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9520 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9522$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9523 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9524 if eval \${$cacheid+:} false; then : 9525 $as_echo_n "(cached) " >&6 9526else 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529int i; 9530int 9531main () 9532{ 9533 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538if ac_fn_c_try_link "$LINENO"; then : 9539 eval $cacheid=yes 9540else 9541 eval $cacheid=no 9542fi 9543rm -f core conftest.err conftest.$ac_objext \ 9544 conftest$ac_exeext conftest.$ac_ext 9545fi 9546 9547 9548 CFLAGS="$xorg_testset_save_CFLAGS" 9549 9550 eval supported=\$$cacheid 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9552$as_echo "$supported" >&6; } 9553 if test "$supported" = "yes" ; then 9554 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9555 found="yes" 9556 fi 9557 fi 9558 9559 9560fi 9561 9562 9563 9564 9565 9566 9567 9568 CWARNFLAGS="$BASE_CFLAGS" 9569 if test "x$GCC" = xyes ; then 9570 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9571 fi 9572 9573 9574 9575 9576 9577 9578 9579 9580# Check whether --enable-strict-compilation was given. 9581if test "${enable_strict_compilation+set}" = set; then : 9582 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9583else 9584 STRICT_COMPILE=no 9585fi 9586 9587 9588 9589 9590 9591 9592STRICT_CFLAGS="" 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606xorg_testset_save_CFLAGS="$CFLAGS" 9607 9608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9613 $as_echo_n "(cached) " >&6 9614else 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618_ACEOF 9619if ac_fn_c_try_compile "$LINENO"; then : 9620 xorg_cv_cc_flag_unknown_warning_option=yes 9621else 9622 xorg_cv_cc_flag_unknown_warning_option=no 9623fi 9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9625fi 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9629 CFLAGS="$xorg_testset_save_CFLAGS" 9630fi 9631 9632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9635 fi 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644int i; 9645_ACEOF 9646if ac_fn_c_try_compile "$LINENO"; then : 9647 xorg_cv_cc_flag_unused_command_line_argument=yes 9648else 9649 xorg_cv_cc_flag_unused_command_line_argument=no 9650fi 9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9652fi 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657fi 9658 9659found="no" 9660 9661 if test $found = "no" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9668 fi 9669 9670 CFLAGS="$CFLAGS -pedantic" 9671 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9673$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9674 cacheid=xorg_cv_cc_flag__pedantic 9675 if eval \${$cacheid+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680int i; 9681int 9682main () 9683{ 9684 9685 ; 9686 return 0; 9687} 9688_ACEOF 9689if ac_fn_c_try_link "$LINENO"; then : 9690 eval $cacheid=yes 9691else 9692 eval $cacheid=no 9693fi 9694rm -f core conftest.err conftest.$ac_objext \ 9695 conftest$ac_exeext conftest.$ac_ext 9696fi 9697 9698 9699 CFLAGS="$xorg_testset_save_CFLAGS" 9700 9701 eval supported=\$$cacheid 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9703$as_echo "$supported" >&6; } 9704 if test "$supported" = "yes" ; then 9705 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9706 found="yes" 9707 fi 9708 fi 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724xorg_testset_save_CFLAGS="$CFLAGS" 9725 9726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9731 $as_echo_n "(cached) " >&6 9732else 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735int i; 9736_ACEOF 9737if ac_fn_c_try_compile "$LINENO"; then : 9738 xorg_cv_cc_flag_unknown_warning_option=yes 9739else 9740 xorg_cv_cc_flag_unknown_warning_option=no 9741fi 9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9743fi 9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9747 CFLAGS="$xorg_testset_save_CFLAGS" 9748fi 9749 9750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9758 $as_echo_n "(cached) " >&6 9759else 9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9761/* end confdefs.h. */ 9762int i; 9763_ACEOF 9764if ac_fn_c_try_compile "$LINENO"; then : 9765 xorg_cv_cc_flag_unused_command_line_argument=yes 9766else 9767 xorg_cv_cc_flag_unused_command_line_argument=no 9768fi 9769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9774 CFLAGS="$xorg_testset_save_CFLAGS" 9775fi 9776 9777found="no" 9778 9779 if test $found = "no" ; then 9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 fi 9783 9784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9786 fi 9787 9788 CFLAGS="$CFLAGS -Werror" 9789 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9791$as_echo_n "checking if $CC supports -Werror... " >&6; } 9792 cacheid=xorg_cv_cc_flag__Werror 9793 if eval \${$cacheid+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799int 9800main () 9801{ 9802 9803 ; 9804 return 0; 9805} 9806_ACEOF 9807if ac_fn_c_try_link "$LINENO"; then : 9808 eval $cacheid=yes 9809else 9810 eval $cacheid=no 9811fi 9812rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814fi 9815 9816 9817 CFLAGS="$xorg_testset_save_CFLAGS" 9818 9819 eval supported=\$$cacheid 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9821$as_echo "$supported" >&6; } 9822 if test "$supported" = "yes" ; then 9823 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9824 found="yes" 9825 fi 9826 fi 9827 9828 if test $found = "no" ; then 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 fi 9832 9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 fi 9836 9837 CFLAGS="$CFLAGS -errwarn" 9838 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9840$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9841 cacheid=xorg_cv_cc_flag__errwarn 9842 if eval \${$cacheid+:} false; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847int i; 9848int 9849main () 9850{ 9851 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856if ac_fn_c_try_link "$LINENO"; then : 9857 eval $cacheid=yes 9858else 9859 eval $cacheid=no 9860fi 9861rm -f core conftest.err conftest.$ac_objext \ 9862 conftest$ac_exeext conftest.$ac_ext 9863fi 9864 9865 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867 9868 eval supported=\$$cacheid 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9870$as_echo "$supported" >&6; } 9871 if test "$supported" = "yes" ; then 9872 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9873 found="yes" 9874 fi 9875 fi 9876 9877 9878 9879# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9880# activate it with -Werror, so we add it here explicitly. 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894xorg_testset_save_CFLAGS="$CFLAGS" 9895 9896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9901 $as_echo_n "(cached) " >&6 9902else 9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9904/* end confdefs.h. */ 9905int i; 9906_ACEOF 9907if ac_fn_c_try_compile "$LINENO"; then : 9908 xorg_cv_cc_flag_unknown_warning_option=yes 9909else 9910 xorg_cv_cc_flag_unknown_warning_option=no 9911fi 9912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9913fi 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9917 CFLAGS="$xorg_testset_save_CFLAGS" 9918fi 9919 9920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9923 fi 9924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929else 9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933_ACEOF 9934if ac_fn_c_try_compile "$LINENO"; then : 9935 xorg_cv_cc_flag_unused_command_line_argument=yes 9936else 9937 xorg_cv_cc_flag_unused_command_line_argument=no 9938fi 9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945fi 9946 9947found="no" 9948 9949 if test $found = "no" ; then 9950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9952 fi 9953 9954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9956 fi 9957 9958 CFLAGS="$CFLAGS -Werror=attributes" 9959 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9961$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9962 cacheid=xorg_cv_cc_flag__Werror_attributes 9963 if eval \${$cacheid+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969int 9970main () 9971{ 9972 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977if ac_fn_c_try_link "$LINENO"; then : 9978 eval $cacheid=yes 9979else 9980 eval $cacheid=no 9981fi 9982rm -f core conftest.err conftest.$ac_objext \ 9983 conftest$ac_exeext conftest.$ac_ext 9984fi 9985 9986 9987 CFLAGS="$xorg_testset_save_CFLAGS" 9988 9989 eval supported=\$$cacheid 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9991$as_echo "$supported" >&6; } 9992 if test "$supported" = "yes" ; then 9993 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9994 found="yes" 9995 fi 9996 fi 9997 9998 9999 10000if test "x$STRICT_COMPILE" = "xyes"; then 10001 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10002 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10003fi 10004 10005 10006 10007 10008 10009 10010cat >>confdefs.h <<_ACEOF 10011#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10012_ACEOF 10013 10014 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10015 if test "x$PVM" = "x"; then 10016 PVM="0" 10017 fi 10018 10019cat >>confdefs.h <<_ACEOF 10020#define PACKAGE_VERSION_MINOR $PVM 10021_ACEOF 10022 10023 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10024 if test "x$PVP" = "x"; then 10025 PVP="0" 10026 fi 10027 10028cat >>confdefs.h <<_ACEOF 10029#define PACKAGE_VERSION_PATCHLEVEL $PVP 10030_ACEOF 10031 10032 10033 10034CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10035mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10036|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10037echo 'git directory not found: installing possibly empty changelog.' >&2)" 10038 10039 10040 10041 10042macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10043INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10044mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10045|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10046echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10047 10048 10049 10050 10051 10052 10053if test x$APP_MAN_SUFFIX = x ; then 10054 APP_MAN_SUFFIX=1 10055fi 10056if test x$APP_MAN_DIR = x ; then 10057 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10058fi 10059 10060if test x$LIB_MAN_SUFFIX = x ; then 10061 LIB_MAN_SUFFIX=3 10062fi 10063if test x$LIB_MAN_DIR = x ; then 10064 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10065fi 10066 10067if test x$FILE_MAN_SUFFIX = x ; then 10068 case $host_os in 10069 solaris*) FILE_MAN_SUFFIX=4 ;; 10070 *) FILE_MAN_SUFFIX=5 ;; 10071 esac 10072fi 10073if test x$FILE_MAN_DIR = x ; then 10074 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10075fi 10076 10077if test x$MISC_MAN_SUFFIX = x ; then 10078 case $host_os in 10079 solaris*) MISC_MAN_SUFFIX=5 ;; 10080 *) MISC_MAN_SUFFIX=7 ;; 10081 esac 10082fi 10083if test x$MISC_MAN_DIR = x ; then 10084 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10085fi 10086 10087if test x$DRIVER_MAN_SUFFIX = x ; then 10088 case $host_os in 10089 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10090 *) DRIVER_MAN_SUFFIX=4 ;; 10091 esac 10092fi 10093if test x$DRIVER_MAN_DIR = x ; then 10094 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10095fi 10096 10097if test x$ADMIN_MAN_SUFFIX = x ; then 10098 case $host_os in 10099 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10100 *) ADMIN_MAN_SUFFIX=8 ;; 10101 esac 10102fi 10103if test x$ADMIN_MAN_DIR = x ; then 10104 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10105fi 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121XORG_MAN_PAGE="X Version 11" 10122 10123MAN_SUBSTS="\ 10124 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10125 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10126 -e 's|__xservername__|Xorg|g' \ 10127 -e 's|__xconfigfile__|xorg.conf|g' \ 10128 -e 's|__projectroot__|\$(prefix)|g' \ 10129 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10130 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10131 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10132 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10133 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10134 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10135 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10136 10137 10138 10139# Check whether --enable-silent-rules was given. 10140if test "${enable_silent_rules+set}" = set; then : 10141 enableval=$enable_silent_rules; 10142fi 10143 10144case $enable_silent_rules in # ((( 10145 yes) AM_DEFAULT_VERBOSITY=0;; 10146 no) AM_DEFAULT_VERBOSITY=1;; 10147 *) AM_DEFAULT_VERBOSITY=0;; 10148esac 10149am_make=${MAKE-make} 10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10151$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10152if ${am_cv_make_support_nested_variables+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 if $as_echo 'TRUE=$(BAR$(V)) 10156BAR0=false 10157BAR1=true 10158V=1 10159am__doit: 10160 @$(TRUE) 10161.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10162 am_cv_make_support_nested_variables=yes 10163else 10164 am_cv_make_support_nested_variables=no 10165fi 10166fi 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10168$as_echo "$am_cv_make_support_nested_variables" >&6; } 10169if test $am_cv_make_support_nested_variables = yes; then 10170 AM_V='$(V)' 10171 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10172else 10173 AM_V=$AM_DEFAULT_VERBOSITY 10174 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10175fi 10176AM_BACKSLASH='\' 10177 10178 10179 10180ac_aux_dir= 10181for ac_dir in . "$srcdir"/.; do 10182 if test -f "$ac_dir/install-sh"; then 10183 ac_aux_dir=$ac_dir 10184 ac_install_sh="$ac_aux_dir/install-sh -c" 10185 break 10186 elif test -f "$ac_dir/install.sh"; then 10187 ac_aux_dir=$ac_dir 10188 ac_install_sh="$ac_aux_dir/install.sh -c" 10189 break 10190 elif test -f "$ac_dir/shtool"; then 10191 ac_aux_dir=$ac_dir 10192 ac_install_sh="$ac_aux_dir/shtool install -c" 10193 break 10194 fi 10195done 10196if test -z "$ac_aux_dir"; then 10197 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 10198fi 10199 10200# These three variables are undocumented and unsupported, 10201# and are intended to be withdrawn in a future Autoconf release. 10202# They can cause serious problems if a builder's source tree is in a directory 10203# whose full name contains unusual characters. 10204ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 10205ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 10206ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 10207 10208 10209 10210# Initialize Automake 10211am__api_version='1.15' 10212 10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10214$as_echo_n "checking whether build environment is sane... " >&6; } 10215# Reject unsafe characters in $srcdir or the absolute working directory 10216# name. Accept space and tab only in the latter. 10217am_lf=' 10218' 10219case `pwd` in 10220 *[\\\"\#\$\&\'\`$am_lf]*) 10221 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10222esac 10223case $srcdir in 10224 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10225 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10226esac 10227 10228# Do 'set' in a subshell so we don't clobber the current shell's 10229# arguments. Must try -L first in case configure is actually a 10230# symlink; some systems play weird games with the mod time of symlinks 10231# (eg FreeBSD returns the mod time of the symlink's containing 10232# directory). 10233if ( 10234 am_has_slept=no 10235 for am_try in 1 2; do 10236 echo "timestamp, slept: $am_has_slept" > conftest.file 10237 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10238 if test "$*" = "X"; then 10239 # -L didn't work. 10240 set X `ls -t "$srcdir/configure" conftest.file` 10241 fi 10242 if test "$*" != "X $srcdir/configure conftest.file" \ 10243 && test "$*" != "X conftest.file $srcdir/configure"; then 10244 10245 # If neither matched, then we have a broken ls. This can happen 10246 # if, for instance, CONFIG_SHELL is bash and it inherits a 10247 # broken ls alias from the environment. This has actually 10248 # happened. Such a system could not be considered "sane". 10249 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10250 alias in your environment" "$LINENO" 5 10251 fi 10252 if test "$2" = conftest.file || test $am_try -eq 2; then 10253 break 10254 fi 10255 # Just in case. 10256 sleep 1 10257 am_has_slept=yes 10258 done 10259 test "$2" = conftest.file 10260 ) 10261then 10262 # Ok. 10263 : 10264else 10265 as_fn_error $? "newly created file is older than distributed files! 10266Check your system clock" "$LINENO" 5 10267fi 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10269$as_echo "yes" >&6; } 10270# If we didn't sleep, we still need to ensure time stamps of config.status and 10271# generated files are strictly newer. 10272am_sleep_pid= 10273if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10274 ( sleep 1 ) & 10275 am_sleep_pid=$! 10276fi 10277 10278rm -f conftest.file 10279 10280test "$program_prefix" != NONE && 10281 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10282# Use a double $ so make ignores it. 10283test "$program_suffix" != NONE && 10284 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10285# Double any \ or $. 10286# By default was `s,x,x', remove it if useless. 10287ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10288program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 10289 10290if test x"${MISSING+set}" != xset; then 10291 case $am_aux_dir in 10292 *\ * | *\ *) 10293 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10294 *) 10295 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10296 esac 10297fi 10298# Use eval to expand $SHELL 10299if eval "$MISSING --is-lightweight"; then 10300 am_missing_run="$MISSING " 10301else 10302 am_missing_run= 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10304$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10305fi 10306 10307if test x"${install_sh+set}" != xset; then 10308 case $am_aux_dir in 10309 *\ * | *\ *) 10310 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10311 *) 10312 install_sh="\${SHELL} $am_aux_dir/install-sh" 10313 esac 10314fi 10315 10316# Installed binaries are usually stripped using 'strip' when the user 10317# run "make install-strip". However 'strip' might not be the right 10318# tool to use in cross-compilation environments, therefore Automake 10319# will honor the 'STRIP' environment variable to overrule this program. 10320if test "$cross_compiling" != no; then 10321 if test -n "$ac_tool_prefix"; then 10322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10323set dummy ${ac_tool_prefix}strip; ac_word=$2 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10325$as_echo_n "checking for $ac_word... " >&6; } 10326if ${ac_cv_prog_STRIP+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 if test -n "$STRIP"; then 10330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10331else 10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10333for as_dir in $PATH 10334do 10335 IFS=$as_save_IFS 10336 test -z "$as_dir" && as_dir=. 10337 for ac_exec_ext in '' $ac_executable_extensions; do 10338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10339 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10341 break 2 10342 fi 10343done 10344 done 10345IFS=$as_save_IFS 10346 10347fi 10348fi 10349STRIP=$ac_cv_prog_STRIP 10350if test -n "$STRIP"; then 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10352$as_echo "$STRIP" >&6; } 10353else 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10355$as_echo "no" >&6; } 10356fi 10357 10358 10359fi 10360if test -z "$ac_cv_prog_STRIP"; then 10361 ac_ct_STRIP=$STRIP 10362 # Extract the first word of "strip", so it can be a program name with args. 10363set dummy strip; ac_word=$2 10364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10365$as_echo_n "checking for $ac_word... " >&6; } 10366if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 if test -n "$ac_ct_STRIP"; then 10370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10371else 10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10373for as_dir in $PATH 10374do 10375 IFS=$as_save_IFS 10376 test -z "$as_dir" && as_dir=. 10377 for ac_exec_ext in '' $ac_executable_extensions; do 10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10379 ac_cv_prog_ac_ct_STRIP="strip" 10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10381 break 2 10382 fi 10383done 10384 done 10385IFS=$as_save_IFS 10386 10387fi 10388fi 10389ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10390if test -n "$ac_ct_STRIP"; then 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10392$as_echo "$ac_ct_STRIP" >&6; } 10393else 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10395$as_echo "no" >&6; } 10396fi 10397 10398 if test "x$ac_ct_STRIP" = x; then 10399 STRIP=":" 10400 else 10401 case $cross_compiling:$ac_tool_warned in 10402yes:) 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10405ac_tool_warned=yes ;; 10406esac 10407 STRIP=$ac_ct_STRIP 10408 fi 10409else 10410 STRIP="$ac_cv_prog_STRIP" 10411fi 10412 10413fi 10414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10415 10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 10417$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 10418if test -z "$MKDIR_P"; then 10419 if ${ac_cv_path_mkdir+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10423for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10424do 10425 IFS=$as_save_IFS 10426 test -z "$as_dir" && as_dir=. 10427 for ac_prog in mkdir gmkdir; do 10428 for ac_exec_ext in '' $ac_executable_extensions; do 10429 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 10430 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 10431 'mkdir (GNU coreutils) '* | \ 10432 'mkdir (coreutils) '* | \ 10433 'mkdir (fileutils) '4.1*) 10434 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 10435 break 3;; 10436 esac 10437 done 10438 done 10439 done 10440IFS=$as_save_IFS 10441 10442fi 10443 10444 test -d ./--version && rmdir ./--version 10445 if test "${ac_cv_path_mkdir+set}" = set; then 10446 MKDIR_P="$ac_cv_path_mkdir -p" 10447 else 10448 # As a last resort, use the slow shell script. Don't cache a 10449 # value for MKDIR_P within a source directory, because that will 10450 # break other packages using the cache if that directory is 10451 # removed, or if the value is a relative name. 10452 MKDIR_P="$ac_install_sh -d" 10453 fi 10454fi 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10456$as_echo "$MKDIR_P" >&6; } 10457 10458for ac_prog in gawk mawk nawk awk 10459do 10460 # Extract the first word of "$ac_prog", so it can be a program name with args. 10461set dummy $ac_prog; ac_word=$2 10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10463$as_echo_n "checking for $ac_word... " >&6; } 10464if ${ac_cv_prog_AWK+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 if test -n "$AWK"; then 10468 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10469else 10470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10471for as_dir in $PATH 10472do 10473 IFS=$as_save_IFS 10474 test -z "$as_dir" && as_dir=. 10475 for ac_exec_ext in '' $ac_executable_extensions; do 10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10477 ac_cv_prog_AWK="$ac_prog" 10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10479 break 2 10480 fi 10481done 10482 done 10483IFS=$as_save_IFS 10484 10485fi 10486fi 10487AWK=$ac_cv_prog_AWK 10488if test -n "$AWK"; then 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10490$as_echo "$AWK" >&6; } 10491else 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10493$as_echo "no" >&6; } 10494fi 10495 10496 10497 test -n "$AWK" && break 10498done 10499 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10501$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10502set x ${MAKE-make} 10503ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10504if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10505 $as_echo_n "(cached) " >&6 10506else 10507 cat >conftest.make <<\_ACEOF 10508SHELL = /bin/sh 10509all: 10510 @echo '@@@%%%=$(MAKE)=@@@%%%' 10511_ACEOF 10512# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10513case `${MAKE-make} -f conftest.make 2>/dev/null` in 10514 *@@@%%%=?*=@@@%%%*) 10515 eval ac_cv_prog_make_${ac_make}_set=yes;; 10516 *) 10517 eval ac_cv_prog_make_${ac_make}_set=no;; 10518esac 10519rm -f conftest.make 10520fi 10521if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10523$as_echo "yes" >&6; } 10524 SET_MAKE= 10525else 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10527$as_echo "no" >&6; } 10528 SET_MAKE="MAKE=${MAKE-make}" 10529fi 10530 10531rm -rf .tst 2>/dev/null 10532mkdir .tst 2>/dev/null 10533if test -d .tst; then 10534 am__leading_dot=. 10535else 10536 am__leading_dot=_ 10537fi 10538rmdir .tst 2>/dev/null 10539 10540DEPDIR="${am__leading_dot}deps" 10541 10542ac_config_commands="$ac_config_commands depfiles" 10543 10544 10545am_make=${MAKE-make} 10546cat > confinc << 'END' 10547am__doit: 10548 @echo this is the am__doit target 10549.PHONY: am__doit 10550END 10551# If we don't find an include directive, just comment out the code. 10552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 10553$as_echo_n "checking for style of include used by $am_make... " >&6; } 10554am__include="#" 10555am__quote= 10556_am_result=none 10557# First try GNU make style include. 10558echo "include confinc" > confmf 10559# Ignore all kinds of additional output from 'make'. 10560case `$am_make -s -f confmf 2> /dev/null` in #( 10561*the\ am__doit\ target*) 10562 am__include=include 10563 am__quote= 10564 _am_result=GNU 10565 ;; 10566esac 10567# Now try BSD make style include. 10568if test "$am__include" = "#"; then 10569 echo '.include "confinc"' > confmf 10570 case `$am_make -s -f confmf 2> /dev/null` in #( 10571 *the\ am__doit\ target*) 10572 am__include=.include 10573 am__quote="\"" 10574 _am_result=BSD 10575 ;; 10576 esac 10577fi 10578 10579 10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 10581$as_echo "$_am_result" >&6; } 10582rm -f confinc confmf 10583 10584# Check whether --enable-dependency-tracking was given. 10585if test "${enable_dependency_tracking+set}" = set; then : 10586 enableval=$enable_dependency_tracking; 10587fi 10588 10589if test "x$enable_dependency_tracking" != xno; then 10590 am_depcomp="$ac_aux_dir/depcomp" 10591 AMDEPBACKSLASH='\' 10592 am__nodep='_no' 10593fi 10594 if test "x$enable_dependency_tracking" != xno; then 10595 AMDEP_TRUE= 10596 AMDEP_FALSE='#' 10597else 10598 AMDEP_TRUE='#' 10599 AMDEP_FALSE= 10600fi 10601 10602 10603if test "`cd $srcdir && pwd`" != "`pwd`"; then 10604 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10605 # is not polluted with repeated "-I." 10606 am__isrc=' -I$(srcdir)' 10607 # test to see if srcdir already configured 10608 if test -f $srcdir/config.status; then 10609 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10610 fi 10611fi 10612 10613# test whether we have cygpath 10614if test -z "$CYGPATH_W"; then 10615 if (cygpath --version) >/dev/null 2>/dev/null; then 10616 CYGPATH_W='cygpath -w' 10617 else 10618 CYGPATH_W=echo 10619 fi 10620fi 10621 10622 10623# Define the identity of the package. 10624 PACKAGE='xf86-video-mga' 10625 VERSION='1.6.5' 10626 10627 10628cat >>confdefs.h <<_ACEOF 10629#define PACKAGE "$PACKAGE" 10630_ACEOF 10631 10632 10633cat >>confdefs.h <<_ACEOF 10634#define VERSION "$VERSION" 10635_ACEOF 10636 10637# Some tools Automake needs. 10638 10639ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10640 10641 10642AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10643 10644 10645AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10646 10647 10648AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10649 10650 10651MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10652 10653# For better backward compatibility. To be removed once Automake 1.9.x 10654# dies out for good. For more background, see: 10655# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10656# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10657mkdir_p='$(MKDIR_P)' 10658 10659# We need awk for the "check" target (and possibly the TAP driver). The 10660# system "awk" is bad on some platforms. 10661# Always define AMTAR for backward compatibility. Yes, it's still used 10662# in the wild :-( We should find a proper way to deprecate it ... 10663AMTAR='$${TAR-tar}' 10664 10665 10666# We'll loop over all known methods to create a tar archive until one works. 10667_am_tools='gnutar pax cpio none' 10668 10669am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 10670 10671 10672 10673 10674 10675depcc="$CC" am_compiler_list= 10676 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10678$as_echo_n "checking dependency style of $depcc... " >&6; } 10679if ${am_cv_CC_dependencies_compiler_type+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10683 # We make a subdir and do the tests there. Otherwise we can end up 10684 # making bogus files that we don't know about and never remove. For 10685 # instance it was reported that on HP-UX the gcc test will end up 10686 # making a dummy file named 'D' -- because '-MD' means "put the output 10687 # in D". 10688 rm -rf conftest.dir 10689 mkdir conftest.dir 10690 # Copy depcomp to subdir because otherwise we won't find it if we're 10691 # using a relative directory. 10692 cp "$am_depcomp" conftest.dir 10693 cd conftest.dir 10694 # We will build objects and dependencies in a subdirectory because 10695 # it helps to detect inapplicable dependency modes. For instance 10696 # both Tru64's cc and ICC support -MD to output dependencies as a 10697 # side effect of compilation, but ICC will put the dependencies in 10698 # the current directory while Tru64 will put them in the object 10699 # directory. 10700 mkdir sub 10701 10702 am_cv_CC_dependencies_compiler_type=none 10703 if test "$am_compiler_list" = ""; then 10704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10705 fi 10706 am__universal=false 10707 case " $depcc " in #( 10708 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10709 esac 10710 10711 for depmode in $am_compiler_list; do 10712 # Setup a source with many dependencies, because some compilers 10713 # like to wrap large dependency lists on column 80 (with \), and 10714 # we should not choose a depcomp mode which is confused by this. 10715 # 10716 # We need to recreate these files for each test, as the compiler may 10717 # overwrite some of them when testing with obscure command lines. 10718 # This happens at least with the AIX C compiler. 10719 : > sub/conftest.c 10720 for i in 1 2 3 4 5 6; do 10721 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10722 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10723 # Solaris 10 /bin/sh. 10724 echo '/* dummy */' > sub/conftst$i.h 10725 done 10726 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10727 10728 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10729 # mode. It turns out that the SunPro C++ compiler does not properly 10730 # handle '-M -o', and we need to detect this. Also, some Intel 10731 # versions had trouble with output in subdirs. 10732 am__obj=sub/conftest.${OBJEXT-o} 10733 am__minus_obj="-o $am__obj" 10734 case $depmode in 10735 gcc) 10736 # This depmode causes a compiler race in universal mode. 10737 test "$am__universal" = false || continue 10738 ;; 10739 nosideeffect) 10740 # After this tag, mechanisms are not by side-effect, so they'll 10741 # only be used when explicitly requested. 10742 if test "x$enable_dependency_tracking" = xyes; then 10743 continue 10744 else 10745 break 10746 fi 10747 ;; 10748 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10749 # This compiler won't grok '-c -o', but also, the minuso test has 10750 # not run yet. These depmodes are late enough in the game, and 10751 # so weak that their functioning should not be impacted. 10752 am__obj=conftest.${OBJEXT-o} 10753 am__minus_obj= 10754 ;; 10755 none) break ;; 10756 esac 10757 if depmode=$depmode \ 10758 source=sub/conftest.c object=$am__obj \ 10759 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10760 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10761 >/dev/null 2>conftest.err && 10762 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10763 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10764 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10765 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10766 # icc doesn't choke on unknown options, it will just issue warnings 10767 # or remarks (even with -Werror). So we grep stderr for any message 10768 # that says an option was ignored or not supported. 10769 # When given -MP, icc 7.0 and 7.1 complain thusly: 10770 # icc: Command line warning: ignoring option '-M'; no argument required 10771 # The diagnosis changed in icc 8.0: 10772 # icc: Command line remark: option '-MP' not supported 10773 if (grep 'ignoring option' conftest.err || 10774 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10775 am_cv_CC_dependencies_compiler_type=$depmode 10776 break 10777 fi 10778 fi 10779 done 10780 10781 cd .. 10782 rm -rf conftest.dir 10783else 10784 am_cv_CC_dependencies_compiler_type=none 10785fi 10786 10787fi 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 10789$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 10790CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 10791 10792 if 10793 test "x$enable_dependency_tracking" != xno \ 10794 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 10795 am__fastdepCC_TRUE= 10796 am__fastdepCC_FALSE='#' 10797else 10798 am__fastdepCC_TRUE='#' 10799 am__fastdepCC_FALSE= 10800fi 10801 10802 10803 10804# POSIX will say in a future version that running "rm -f" with no argument 10805# is OK; and we want to be able to make that assumption in our Makefile 10806# recipes. So use an aggressive probe to check that the usage we want is 10807# actually supported "in the wild" to an acceptable degree. 10808# See automake bug#10828. 10809# To make any issue more visible, cause the running configure to be aborted 10810# by default if the 'rm' program in use doesn't match our expectations; the 10811# user can still override this though. 10812if rm -f && rm -fr && rm -rf; then : OK; else 10813 cat >&2 <<'END' 10814Oops! 10815 10816Your 'rm' program seems unable to run without file operands specified 10817on the command line, even when the '-f' option is present. This is contrary 10818to the behaviour of most rm programs out there, and not conforming with 10819the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10820 10821Please tell bug-automake@gnu.org about your system, including the value 10822of your $PATH and any error possibly output before this message. This 10823can help us improve future automake versions. 10824 10825END 10826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10827 echo 'Configuration will proceed anyway, since you have set the' >&2 10828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10829 echo >&2 10830 else 10831 cat >&2 <<'END' 10832Aborting the configuration process, to ensure you take notice of the issue. 10833 10834You can download and install GNU coreutils to get an 'rm' implementation 10835that behaves properly: <http://www.gnu.org/software/coreutils/>. 10836 10837If you want to complete the configuration process using your problematic 10838'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10839to "yes", and re-run configure. 10840 10841END 10842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 10843 fi 10844fi 10845 10846 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10848$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10849 # Check whether --enable-maintainer-mode was given. 10850if test "${enable_maintainer_mode+set}" = set; then : 10851 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10852else 10853 USE_MAINTAINER_MODE=no 10854fi 10855 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10857$as_echo "$USE_MAINTAINER_MODE" >&6; } 10858 if test $USE_MAINTAINER_MODE = yes; then 10859 MAINTAINER_MODE_TRUE= 10860 MAINTAINER_MODE_FALSE='#' 10861else 10862 MAINTAINER_MODE_TRUE='#' 10863 MAINTAINER_MODE_FALSE= 10864fi 10865 10866 MAINT=$MAINTAINER_MODE_TRUE 10867 10868 10869 10870# Initialize libtool 10871# Check whether --enable-static was given. 10872if test "${enable_static+set}" = set; then : 10873 enableval=$enable_static; p=${PACKAGE-default} 10874 case $enableval in 10875 yes) enable_static=yes ;; 10876 no) enable_static=no ;; 10877 *) 10878 enable_static=no 10879 # Look at the argument we got. We use all the common list separators. 10880 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10881 for pkg in $enableval; do 10882 IFS=$lt_save_ifs 10883 if test "X$pkg" = "X$p"; then 10884 enable_static=yes 10885 fi 10886 done 10887 IFS=$lt_save_ifs 10888 ;; 10889 esac 10890else 10891 enable_static=no 10892fi 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902case `pwd` in 10903 *\ * | *\ *) 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10905$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10906esac 10907 10908 10909 10910macro_version='2.4.6' 10911macro_revision='2.4.6' 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925ltmain=$ac_aux_dir/ltmain.sh 10926 10927# Backslashify metacharacters that are still active within 10928# double-quoted strings. 10929sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10930 10931# Same as above, but do not quote variable references. 10932double_quote_subst='s/\(["`\\]\)/\\\1/g' 10933 10934# Sed substitution to delay expansion of an escaped shell variable in a 10935# double_quote_subst'ed string. 10936delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10937 10938# Sed substitution to delay expansion of an escaped single quote. 10939delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10940 10941# Sed substitution to avoid accidental globbing in evaled expressions 10942no_glob_subst='s/\*/\\\*/g' 10943 10944ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10945ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10946ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10947 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10949$as_echo_n "checking how to print strings... " >&6; } 10950# Test print first, because it will be a builtin if present. 10951if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10952 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10953 ECHO='print -r --' 10954elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10955 ECHO='printf %s\n' 10956else 10957 # Use this function as a fallback that always works. 10958 func_fallback_echo () 10959 { 10960 eval 'cat <<_LTECHO_EOF 10961$1 10962_LTECHO_EOF' 10963 } 10964 ECHO='func_fallback_echo' 10965fi 10966 10967# func_echo_all arg... 10968# Invoke $ECHO with all args, space-separated. 10969func_echo_all () 10970{ 10971 $ECHO "" 10972} 10973 10974case $ECHO in 10975 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10976$as_echo "printf" >&6; } ;; 10977 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10978$as_echo "print -r" >&6; } ;; 10979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10980$as_echo "cat" >&6; } ;; 10981esac 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10997$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10998if ${ac_cv_path_SED+:} false; then : 10999 $as_echo_n "(cached) " >&6 11000else 11001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11002 for ac_i in 1 2 3 4 5 6 7; do 11003 ac_script="$ac_script$as_nl$ac_script" 11004 done 11005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11006 { ac_script=; unset ac_script;} 11007 if test -z "$SED"; then 11008 ac_path_SED_found=false 11009 # Loop through the user's path and test for each of PROGNAME-LIST 11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11011for as_dir in $PATH 11012do 11013 IFS=$as_save_IFS 11014 test -z "$as_dir" && as_dir=. 11015 for ac_prog in sed gsed; do 11016 for ac_exec_ext in '' $ac_executable_extensions; do 11017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11018 as_fn_executable_p "$ac_path_SED" || continue 11019# Check for GNU ac_path_SED and select it if it is found. 11020 # Check for GNU $ac_path_SED 11021case `"$ac_path_SED" --version 2>&1` in 11022*GNU*) 11023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11024*) 11025 ac_count=0 11026 $as_echo_n 0123456789 >"conftest.in" 11027 while : 11028 do 11029 cat "conftest.in" "conftest.in" >"conftest.tmp" 11030 mv "conftest.tmp" "conftest.in" 11031 cp "conftest.in" "conftest.nl" 11032 $as_echo '' >> "conftest.nl" 11033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11035 as_fn_arith $ac_count + 1 && ac_count=$as_val 11036 if test $ac_count -gt ${ac_path_SED_max-0}; then 11037 # Best one so far, save it but keep looking for a better one 11038 ac_cv_path_SED="$ac_path_SED" 11039 ac_path_SED_max=$ac_count 11040 fi 11041 # 10*(2^10) chars as input seems more than enough 11042 test $ac_count -gt 10 && break 11043 done 11044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11045esac 11046 11047 $ac_path_SED_found && break 3 11048 done 11049 done 11050 done 11051IFS=$as_save_IFS 11052 if test -z "$ac_cv_path_SED"; then 11053 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11054 fi 11055else 11056 ac_cv_path_SED=$SED 11057fi 11058 11059fi 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11061$as_echo "$ac_cv_path_SED" >&6; } 11062 SED="$ac_cv_path_SED" 11063 rm -f conftest.sed 11064 11065test -z "$SED" && SED=sed 11066Xsed="$SED -e 1s/^X//" 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11079$as_echo_n "checking for fgrep... " >&6; } 11080if ${ac_cv_path_FGREP+:} false; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11084 then ac_cv_path_FGREP="$GREP -F" 11085 else 11086 if test -z "$FGREP"; then 11087 ac_path_FGREP_found=false 11088 # Loop through the user's path and test for each of PROGNAME-LIST 11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11091do 11092 IFS=$as_save_IFS 11093 test -z "$as_dir" && as_dir=. 11094 for ac_prog in fgrep; do 11095 for ac_exec_ext in '' $ac_executable_extensions; do 11096 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11097 as_fn_executable_p "$ac_path_FGREP" || continue 11098# Check for GNU ac_path_FGREP and select it if it is found. 11099 # Check for GNU $ac_path_FGREP 11100case `"$ac_path_FGREP" --version 2>&1` in 11101*GNU*) 11102 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11103*) 11104 ac_count=0 11105 $as_echo_n 0123456789 >"conftest.in" 11106 while : 11107 do 11108 cat "conftest.in" "conftest.in" >"conftest.tmp" 11109 mv "conftest.tmp" "conftest.in" 11110 cp "conftest.in" "conftest.nl" 11111 $as_echo 'FGREP' >> "conftest.nl" 11112 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11114 as_fn_arith $ac_count + 1 && ac_count=$as_val 11115 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11116 # Best one so far, save it but keep looking for a better one 11117 ac_cv_path_FGREP="$ac_path_FGREP" 11118 ac_path_FGREP_max=$ac_count 11119 fi 11120 # 10*(2^10) chars as input seems more than enough 11121 test $ac_count -gt 10 && break 11122 done 11123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11124esac 11125 11126 $ac_path_FGREP_found && break 3 11127 done 11128 done 11129 done 11130IFS=$as_save_IFS 11131 if test -z "$ac_cv_path_FGREP"; then 11132 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11133 fi 11134else 11135 ac_cv_path_FGREP=$FGREP 11136fi 11137 11138 fi 11139fi 11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11141$as_echo "$ac_cv_path_FGREP" >&6; } 11142 FGREP="$ac_cv_path_FGREP" 11143 11144 11145test -z "$GREP" && GREP=grep 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165# Check whether --with-gnu-ld was given. 11166if test "${with_gnu_ld+set}" = set; then : 11167 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11168else 11169 with_gnu_ld=no 11170fi 11171 11172ac_prog=ld 11173if test yes = "$GCC"; then 11174 # Check if gcc -print-prog-name=ld gives a path. 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11176$as_echo_n "checking for ld used by $CC... " >&6; } 11177 case $host in 11178 *-*-mingw*) 11179 # gcc leaves a trailing carriage return, which upsets mingw 11180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11181 *) 11182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11183 esac 11184 case $ac_prog in 11185 # Accept absolute paths. 11186 [\\/]* | ?:[\\/]*) 11187 re_direlt='/[^/][^/]*/\.\./' 11188 # Canonicalize the pathname of ld 11189 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11190 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11191 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11192 done 11193 test -z "$LD" && LD=$ac_prog 11194 ;; 11195 "") 11196 # If it fails, then pretend we aren't using GCC. 11197 ac_prog=ld 11198 ;; 11199 *) 11200 # If it is relative, then search for the first ld in PATH. 11201 with_gnu_ld=unknown 11202 ;; 11203 esac 11204elif test yes = "$with_gnu_ld"; then 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11206$as_echo_n "checking for GNU ld... " >&6; } 11207else 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11209$as_echo_n "checking for non-GNU ld... " >&6; } 11210fi 11211if ${lt_cv_path_LD+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 if test -z "$LD"; then 11215 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11216 for ac_dir in $PATH; do 11217 IFS=$lt_save_ifs 11218 test -z "$ac_dir" && ac_dir=. 11219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11220 lt_cv_path_LD=$ac_dir/$ac_prog 11221 # Check to see if the program is GNU ld. I'd rather use --version, 11222 # but apparently some variants of GNU ld only accept -v. 11223 # Break only if it was the GNU/non-GNU ld that we prefer. 11224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11225 *GNU* | *'with BFD'*) 11226 test no != "$with_gnu_ld" && break 11227 ;; 11228 *) 11229 test yes != "$with_gnu_ld" && break 11230 ;; 11231 esac 11232 fi 11233 done 11234 IFS=$lt_save_ifs 11235else 11236 lt_cv_path_LD=$LD # Let the user override the test with a path. 11237fi 11238fi 11239 11240LD=$lt_cv_path_LD 11241if test -n "$LD"; then 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11243$as_echo "$LD" >&6; } 11244else 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11246$as_echo "no" >&6; } 11247fi 11248test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11250$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11251if ${lt_cv_prog_gnu_ld+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11255case `$LD -v 2>&1 </dev/null` in 11256*GNU* | *'with BFD'*) 11257 lt_cv_prog_gnu_ld=yes 11258 ;; 11259*) 11260 lt_cv_prog_gnu_ld=no 11261 ;; 11262esac 11263fi 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11265$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11266with_gnu_ld=$lt_cv_prog_gnu_ld 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11277$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11278if ${lt_cv_path_NM+:} false; then : 11279 $as_echo_n "(cached) " >&6 11280else 11281 if test -n "$NM"; then 11282 # Let the user override the test. 11283 lt_cv_path_NM=$NM 11284else 11285 lt_nm_to_check=${ac_tool_prefix}nm 11286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11287 lt_nm_to_check="$lt_nm_to_check nm" 11288 fi 11289 for lt_tmp_nm in $lt_nm_to_check; do 11290 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11291 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11292 IFS=$lt_save_ifs 11293 test -z "$ac_dir" && ac_dir=. 11294 tmp_nm=$ac_dir/$lt_tmp_nm 11295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11296 # Check to see if the nm accepts a BSD-compat flag. 11297 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11298 # nm: unknown option "B" ignored 11299 # Tru64's nm complains that /dev/null is an invalid object file 11300 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11301 case $build_os in 11302 mingw*) lt_bad_file=conftest.nm/nofile ;; 11303 *) lt_bad_file=/dev/null ;; 11304 esac 11305 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11306 *$lt_bad_file* | *'Invalid file or object type'*) 11307 lt_cv_path_NM="$tmp_nm -B" 11308 break 2 11309 ;; 11310 *) 11311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11312 */dev/null*) 11313 lt_cv_path_NM="$tmp_nm -p" 11314 break 2 11315 ;; 11316 *) 11317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11318 continue # so that we can try to find one that supports BSD flags 11319 ;; 11320 esac 11321 ;; 11322 esac 11323 fi 11324 done 11325 IFS=$lt_save_ifs 11326 done 11327 : ${lt_cv_path_NM=no} 11328fi 11329fi 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11331$as_echo "$lt_cv_path_NM" >&6; } 11332if test no != "$lt_cv_path_NM"; then 11333 NM=$lt_cv_path_NM 11334else 11335 # Didn't find any BSD compatible name lister, look for dumpbin. 11336 if test -n "$DUMPBIN"; then : 11337 # Let the user override the test. 11338 else 11339 if test -n "$ac_tool_prefix"; then 11340 for ac_prog in dumpbin "link -dump" 11341 do 11342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11343set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11345$as_echo_n "checking for $ac_word... " >&6; } 11346if ${ac_cv_prog_DUMPBIN+:} false; then : 11347 $as_echo_n "(cached) " >&6 11348else 11349 if test -n "$DUMPBIN"; then 11350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11351else 11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11353for as_dir in $PATH 11354do 11355 IFS=$as_save_IFS 11356 test -z "$as_dir" && as_dir=. 11357 for ac_exec_ext in '' $ac_executable_extensions; do 11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11361 break 2 11362 fi 11363done 11364 done 11365IFS=$as_save_IFS 11366 11367fi 11368fi 11369DUMPBIN=$ac_cv_prog_DUMPBIN 11370if test -n "$DUMPBIN"; then 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11372$as_echo "$DUMPBIN" >&6; } 11373else 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11375$as_echo "no" >&6; } 11376fi 11377 11378 11379 test -n "$DUMPBIN" && break 11380 done 11381fi 11382if test -z "$DUMPBIN"; then 11383 ac_ct_DUMPBIN=$DUMPBIN 11384 for ac_prog in dumpbin "link -dump" 11385do 11386 # Extract the first word of "$ac_prog", so it can be a program name with args. 11387set dummy $ac_prog; ac_word=$2 11388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11389$as_echo_n "checking for $ac_word... " >&6; } 11390if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11391 $as_echo_n "(cached) " >&6 11392else 11393 if test -n "$ac_ct_DUMPBIN"; then 11394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11395else 11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11397for as_dir in $PATH 11398do 11399 IFS=$as_save_IFS 11400 test -z "$as_dir" && as_dir=. 11401 for ac_exec_ext in '' $ac_executable_extensions; do 11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11403 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11405 break 2 11406 fi 11407done 11408 done 11409IFS=$as_save_IFS 11410 11411fi 11412fi 11413ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11414if test -n "$ac_ct_DUMPBIN"; then 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11416$as_echo "$ac_ct_DUMPBIN" >&6; } 11417else 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11419$as_echo "no" >&6; } 11420fi 11421 11422 11423 test -n "$ac_ct_DUMPBIN" && break 11424done 11425 11426 if test "x$ac_ct_DUMPBIN" = x; then 11427 DUMPBIN=":" 11428 else 11429 case $cross_compiling:$ac_tool_warned in 11430yes:) 11431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11433ac_tool_warned=yes ;; 11434esac 11435 DUMPBIN=$ac_ct_DUMPBIN 11436 fi 11437fi 11438 11439 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11440 *COFF*) 11441 DUMPBIN="$DUMPBIN -symbols -headers" 11442 ;; 11443 *) 11444 DUMPBIN=: 11445 ;; 11446 esac 11447 fi 11448 11449 if test : != "$DUMPBIN"; then 11450 NM=$DUMPBIN 11451 fi 11452fi 11453test -z "$NM" && NM=nm 11454 11455 11456 11457 11458 11459 11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11461$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11462if ${lt_cv_nm_interface+:} false; then : 11463 $as_echo_n "(cached) " >&6 11464else 11465 lt_cv_nm_interface="BSD nm" 11466 echo "int some_variable = 0;" > conftest.$ac_ext 11467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11468 (eval "$ac_compile" 2>conftest.err) 11469 cat conftest.err >&5 11470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11472 cat conftest.err >&5 11473 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11474 cat conftest.out >&5 11475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11476 lt_cv_nm_interface="MS dumpbin" 11477 fi 11478 rm -f conftest* 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11481$as_echo "$lt_cv_nm_interface" >&6; } 11482 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11484$as_echo_n "checking whether ln -s works... " >&6; } 11485LN_S=$as_ln_s 11486if test "$LN_S" = "ln -s"; then 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11488$as_echo "yes" >&6; } 11489else 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11491$as_echo "no, using $LN_S" >&6; } 11492fi 11493 11494# find the maximum length of command line arguments 11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11496$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11497if ${lt_cv_sys_max_cmd_len+:} false; then : 11498 $as_echo_n "(cached) " >&6 11499else 11500 i=0 11501 teststring=ABCD 11502 11503 case $build_os in 11504 msdosdjgpp*) 11505 # On DJGPP, this test can blow up pretty badly due to problems in libc 11506 # (any single argument exceeding 2000 bytes causes a buffer overrun 11507 # during glob expansion). Even if it were fixed, the result of this 11508 # check would be larger than it should be. 11509 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11510 ;; 11511 11512 gnu*) 11513 # Under GNU Hurd, this test is not required because there is 11514 # no limit to the length of command line arguments. 11515 # Libtool will interpret -1 as no limit whatsoever 11516 lt_cv_sys_max_cmd_len=-1; 11517 ;; 11518 11519 cygwin* | mingw* | cegcc*) 11520 # On Win9x/ME, this test blows up -- it succeeds, but takes 11521 # about 5 minutes as the teststring grows exponentially. 11522 # Worse, since 9x/ME are not pre-emptively multitasking, 11523 # you end up with a "frozen" computer, even though with patience 11524 # the test eventually succeeds (with a max line length of 256k). 11525 # Instead, let's just punt: use the minimum linelength reported by 11526 # all of the supported platforms: 8192 (on NT/2K/XP). 11527 lt_cv_sys_max_cmd_len=8192; 11528 ;; 11529 11530 mint*) 11531 # On MiNT this can take a long time and run out of memory. 11532 lt_cv_sys_max_cmd_len=8192; 11533 ;; 11534 11535 amigaos*) 11536 # On AmigaOS with pdksh, this test takes hours, literally. 11537 # So we just punt and use a minimum line length of 8192. 11538 lt_cv_sys_max_cmd_len=8192; 11539 ;; 11540 11541 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11542 # This has been around since 386BSD, at least. Likely further. 11543 if test -x /sbin/sysctl; then 11544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11545 elif test -x /usr/sbin/sysctl; then 11546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11547 else 11548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11549 fi 11550 # And add a safety zone 11551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11553 ;; 11554 11555 interix*) 11556 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11557 lt_cv_sys_max_cmd_len=196608 11558 ;; 11559 11560 os2*) 11561 # The test takes a long time on OS/2. 11562 lt_cv_sys_max_cmd_len=8192 11563 ;; 11564 11565 osf*) 11566 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11567 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11568 # nice to cause kernel panics so lets avoid the loop below. 11569 # First set a reasonable default. 11570 lt_cv_sys_max_cmd_len=16384 11571 # 11572 if test -x /sbin/sysconfig; then 11573 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11574 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11575 esac 11576 fi 11577 ;; 11578 sco3.2v5*) 11579 lt_cv_sys_max_cmd_len=102400 11580 ;; 11581 sysv5* | sco5v6* | sysv4.2uw2*) 11582 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11583 if test -n "$kargmax"; then 11584 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11585 else 11586 lt_cv_sys_max_cmd_len=32768 11587 fi 11588 ;; 11589 *) 11590 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11591 if test -n "$lt_cv_sys_max_cmd_len" && \ 11592 test undefined != "$lt_cv_sys_max_cmd_len"; then 11593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11595 else 11596 # Make teststring a little bigger before we do anything with it. 11597 # a 1K string should be a reasonable start. 11598 for i in 1 2 3 4 5 6 7 8; do 11599 teststring=$teststring$teststring 11600 done 11601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11602 # If test is not a shell built-in, we'll probably end up computing a 11603 # maximum length that is only half of the actual maximum length, but 11604 # we can't tell. 11605 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11606 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11607 test 17 != "$i" # 1/2 MB should be enough 11608 do 11609 i=`expr $i + 1` 11610 teststring=$teststring$teststring 11611 done 11612 # Only check the string length outside the loop. 11613 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11614 teststring= 11615 # Add a significant safety factor because C++ compilers can tack on 11616 # massive amounts of additional arguments before passing them to the 11617 # linker. It appears as though 1/2 is a usable value. 11618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11619 fi 11620 ;; 11621 esac 11622 11623fi 11624 11625if test -n "$lt_cv_sys_max_cmd_len"; then 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11627$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11628else 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11630$as_echo "none" >&6; } 11631fi 11632max_cmd_len=$lt_cv_sys_max_cmd_len 11633 11634 11635 11636 11637 11638 11639: ${CP="cp -f"} 11640: ${MV="mv -f"} 11641: ${RM="rm -f"} 11642 11643if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11644 lt_unset=unset 11645else 11646 lt_unset=false 11647fi 11648 11649 11650 11651 11652 11653# test EBCDIC or ASCII 11654case `echo X|tr X '\101'` in 11655 A) # ASCII based system 11656 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11657 lt_SP2NL='tr \040 \012' 11658 lt_NL2SP='tr \015\012 \040\040' 11659 ;; 11660 *) # EBCDIC based system 11661 lt_SP2NL='tr \100 \n' 11662 lt_NL2SP='tr \r\n \100\100' 11663 ;; 11664esac 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11675$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11676if ${lt_cv_to_host_file_cmd+:} false; then : 11677 $as_echo_n "(cached) " >&6 11678else 11679 case $host in 11680 *-*-mingw* ) 11681 case $build in 11682 *-*-mingw* ) # actually msys 11683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11684 ;; 11685 *-*-cygwin* ) 11686 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11687 ;; 11688 * ) # otherwise, assume *nix 11689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11690 ;; 11691 esac 11692 ;; 11693 *-*-cygwin* ) 11694 case $build in 11695 *-*-mingw* ) # actually msys 11696 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11697 ;; 11698 *-*-cygwin* ) 11699 lt_cv_to_host_file_cmd=func_convert_file_noop 11700 ;; 11701 * ) # otherwise, assume *nix 11702 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11703 ;; 11704 esac 11705 ;; 11706 * ) # unhandled hosts (and "normal" native builds) 11707 lt_cv_to_host_file_cmd=func_convert_file_noop 11708 ;; 11709esac 11710 11711fi 11712 11713to_host_file_cmd=$lt_cv_to_host_file_cmd 11714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11715$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11716 11717 11718 11719 11720 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11722$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11723if ${lt_cv_to_tool_file_cmd+:} false; then : 11724 $as_echo_n "(cached) " >&6 11725else 11726 #assume ordinary cross tools, or native build. 11727lt_cv_to_tool_file_cmd=func_convert_file_noop 11728case $host in 11729 *-*-mingw* ) 11730 case $build in 11731 *-*-mingw* ) # actually msys 11732 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11733 ;; 11734 esac 11735 ;; 11736esac 11737 11738fi 11739 11740to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11742$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11743 11744 11745 11746 11747 11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11749$as_echo_n "checking for $LD option to reload object files... " >&6; } 11750if ${lt_cv_ld_reload_flag+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752else 11753 lt_cv_ld_reload_flag='-r' 11754fi 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11756$as_echo "$lt_cv_ld_reload_flag" >&6; } 11757reload_flag=$lt_cv_ld_reload_flag 11758case $reload_flag in 11759"" | " "*) ;; 11760*) reload_flag=" $reload_flag" ;; 11761esac 11762reload_cmds='$LD$reload_flag -o $output$reload_objs' 11763case $host_os in 11764 cygwin* | mingw* | pw32* | cegcc*) 11765 if test yes != "$GCC"; then 11766 reload_cmds=false 11767 fi 11768 ;; 11769 darwin*) 11770 if test yes = "$GCC"; then 11771 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11772 else 11773 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11774 fi 11775 ;; 11776esac 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786if test -n "$ac_tool_prefix"; then 11787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11788set dummy ${ac_tool_prefix}objdump; ac_word=$2 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11790$as_echo_n "checking for $ac_word... " >&6; } 11791if ${ac_cv_prog_OBJDUMP+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793else 11794 if test -n "$OBJDUMP"; then 11795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11796else 11797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11798for as_dir in $PATH 11799do 11800 IFS=$as_save_IFS 11801 test -z "$as_dir" && as_dir=. 11802 for ac_exec_ext in '' $ac_executable_extensions; do 11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11804 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11806 break 2 11807 fi 11808done 11809 done 11810IFS=$as_save_IFS 11811 11812fi 11813fi 11814OBJDUMP=$ac_cv_prog_OBJDUMP 11815if test -n "$OBJDUMP"; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11817$as_echo "$OBJDUMP" >&6; } 11818else 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11820$as_echo "no" >&6; } 11821fi 11822 11823 11824fi 11825if test -z "$ac_cv_prog_OBJDUMP"; then 11826 ac_ct_OBJDUMP=$OBJDUMP 11827 # Extract the first word of "objdump", so it can be a program name with args. 11828set dummy objdump; ac_word=$2 11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11830$as_echo_n "checking for $ac_word... " >&6; } 11831if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11832 $as_echo_n "(cached) " >&6 11833else 11834 if test -n "$ac_ct_OBJDUMP"; then 11835 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11836else 11837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11838for as_dir in $PATH 11839do 11840 IFS=$as_save_IFS 11841 test -z "$as_dir" && as_dir=. 11842 for ac_exec_ext in '' $ac_executable_extensions; do 11843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11844 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11846 break 2 11847 fi 11848done 11849 done 11850IFS=$as_save_IFS 11851 11852fi 11853fi 11854ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11855if test -n "$ac_ct_OBJDUMP"; then 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11857$as_echo "$ac_ct_OBJDUMP" >&6; } 11858else 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11860$as_echo "no" >&6; } 11861fi 11862 11863 if test "x$ac_ct_OBJDUMP" = x; then 11864 OBJDUMP="false" 11865 else 11866 case $cross_compiling:$ac_tool_warned in 11867yes:) 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11870ac_tool_warned=yes ;; 11871esac 11872 OBJDUMP=$ac_ct_OBJDUMP 11873 fi 11874else 11875 OBJDUMP="$ac_cv_prog_OBJDUMP" 11876fi 11877 11878test -z "$OBJDUMP" && OBJDUMP=objdump 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11889$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11890if ${lt_cv_deplibs_check_method+:} false; then : 11891 $as_echo_n "(cached) " >&6 11892else 11893 lt_cv_file_magic_cmd='$MAGIC_CMD' 11894lt_cv_file_magic_test_file= 11895lt_cv_deplibs_check_method='unknown' 11896# Need to set the preceding variable on all platforms that support 11897# interlibrary dependencies. 11898# 'none' -- dependencies not supported. 11899# 'unknown' -- same as none, but documents that we really don't know. 11900# 'pass_all' -- all dependencies passed with no checks. 11901# 'test_compile' -- check by making test program. 11902# 'file_magic [[regex]]' -- check by looking for files in library path 11903# that responds to the $file_magic_cmd with a given extended regex. 11904# If you have 'file' or equivalent on your system and you're not sure 11905# whether 'pass_all' will *always* work, you probably want this one. 11906 11907case $host_os in 11908aix[4-9]*) 11909 lt_cv_deplibs_check_method=pass_all 11910 ;; 11911 11912beos*) 11913 lt_cv_deplibs_check_method=pass_all 11914 ;; 11915 11916bsdi[45]*) 11917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11918 lt_cv_file_magic_cmd='/usr/bin/file -L' 11919 lt_cv_file_magic_test_file=/shlib/libc.so 11920 ;; 11921 11922cygwin*) 11923 # func_win32_libid is a shell function defined in ltmain.sh 11924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11925 lt_cv_file_magic_cmd='func_win32_libid' 11926 ;; 11927 11928mingw* | pw32*) 11929 # Base MSYS/MinGW do not provide the 'file' command needed by 11930 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11931 # unless we find 'file', for example because we are cross-compiling. 11932 if ( file / ) >/dev/null 2>&1; then 11933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11934 lt_cv_file_magic_cmd='func_win32_libid' 11935 else 11936 # Keep this pattern in sync with the one in func_win32_libid. 11937 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11938 lt_cv_file_magic_cmd='$OBJDUMP -f' 11939 fi 11940 ;; 11941 11942cegcc*) 11943 # use the weaker test based on 'objdump'. See mingw*. 11944 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11945 lt_cv_file_magic_cmd='$OBJDUMP -f' 11946 ;; 11947 11948darwin* | rhapsody*) 11949 lt_cv_deplibs_check_method=pass_all 11950 ;; 11951 11952freebsd* | dragonfly*) 11953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11954 case $host_cpu in 11955 i*86 ) 11956 # Not sure whether the presence of OpenBSD here was a mistake. 11957 # Let's accept both of them until this is cleared up. 11958 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11959 lt_cv_file_magic_cmd=/usr/bin/file 11960 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11961 ;; 11962 esac 11963 else 11964 lt_cv_deplibs_check_method=pass_all 11965 fi 11966 ;; 11967 11968haiku*) 11969 lt_cv_deplibs_check_method=pass_all 11970 ;; 11971 11972hpux10.20* | hpux11*) 11973 lt_cv_file_magic_cmd=/usr/bin/file 11974 case $host_cpu in 11975 ia64*) 11976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11977 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11978 ;; 11979 hppa*64*) 11980 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]' 11981 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11982 ;; 11983 *) 11984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11985 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11986 ;; 11987 esac 11988 ;; 11989 11990interix[3-9]*) 11991 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11993 ;; 11994 11995irix5* | irix6* | nonstopux*) 11996 case $LD in 11997 *-32|*"-32 ") libmagic=32-bit;; 11998 *-n32|*"-n32 ") libmagic=N32;; 11999 *-64|*"-64 ") libmagic=64-bit;; 12000 *) libmagic=never-match;; 12001 esac 12002 lt_cv_deplibs_check_method=pass_all 12003 ;; 12004 12005# This must be glibc/ELF. 12006linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12007 lt_cv_deplibs_check_method=pass_all 12008 ;; 12009 12010netbsd*) 12011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12013 else 12014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12015 fi 12016 ;; 12017 12018newos6*) 12019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12020 lt_cv_file_magic_cmd=/usr/bin/file 12021 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12022 ;; 12023 12024*nto* | *qnx*) 12025 lt_cv_deplibs_check_method=pass_all 12026 ;; 12027 12028openbsd* | bitrig*) 12029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12031 else 12032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12033 fi 12034 ;; 12035 12036osf3* | osf4* | osf5*) 12037 lt_cv_deplibs_check_method=pass_all 12038 ;; 12039 12040rdos*) 12041 lt_cv_deplibs_check_method=pass_all 12042 ;; 12043 12044solaris*) 12045 lt_cv_deplibs_check_method=pass_all 12046 ;; 12047 12048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12049 lt_cv_deplibs_check_method=pass_all 12050 ;; 12051 12052sysv4 | sysv4.3*) 12053 case $host_vendor in 12054 motorola) 12055 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]' 12056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12057 ;; 12058 ncr) 12059 lt_cv_deplibs_check_method=pass_all 12060 ;; 12061 sequent) 12062 lt_cv_file_magic_cmd='/bin/file' 12063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12064 ;; 12065 sni) 12066 lt_cv_file_magic_cmd='/bin/file' 12067 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12068 lt_cv_file_magic_test_file=/lib/libc.so 12069 ;; 12070 siemens) 12071 lt_cv_deplibs_check_method=pass_all 12072 ;; 12073 pc) 12074 lt_cv_deplibs_check_method=pass_all 12075 ;; 12076 esac 12077 ;; 12078 12079tpf*) 12080 lt_cv_deplibs_check_method=pass_all 12081 ;; 12082os2*) 12083 lt_cv_deplibs_check_method=pass_all 12084 ;; 12085esac 12086 12087fi 12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12089$as_echo "$lt_cv_deplibs_check_method" >&6; } 12090 12091file_magic_glob= 12092want_nocaseglob=no 12093if test "$build" = "$host"; then 12094 case $host_os in 12095 mingw* | pw32*) 12096 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12097 want_nocaseglob=yes 12098 else 12099 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12100 fi 12101 ;; 12102 esac 12103fi 12104 12105file_magic_cmd=$lt_cv_file_magic_cmd 12106deplibs_check_method=$lt_cv_deplibs_check_method 12107test -z "$deplibs_check_method" && deplibs_check_method=unknown 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130if test -n "$ac_tool_prefix"; then 12131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12132set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12134$as_echo_n "checking for $ac_word... " >&6; } 12135if ${ac_cv_prog_DLLTOOL+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 if test -n "$DLLTOOL"; then 12139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12140else 12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12142for as_dir in $PATH 12143do 12144 IFS=$as_save_IFS 12145 test -z "$as_dir" && as_dir=. 12146 for ac_exec_ext in '' $ac_executable_extensions; do 12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12150 break 2 12151 fi 12152done 12153 done 12154IFS=$as_save_IFS 12155 12156fi 12157fi 12158DLLTOOL=$ac_cv_prog_DLLTOOL 12159if test -n "$DLLTOOL"; then 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12161$as_echo "$DLLTOOL" >&6; } 12162else 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12164$as_echo "no" >&6; } 12165fi 12166 12167 12168fi 12169if test -z "$ac_cv_prog_DLLTOOL"; then 12170 ac_ct_DLLTOOL=$DLLTOOL 12171 # Extract the first word of "dlltool", so it can be a program name with args. 12172set dummy dlltool; ac_word=$2 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12174$as_echo_n "checking for $ac_word... " >&6; } 12175if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12176 $as_echo_n "(cached) " >&6 12177else 12178 if test -n "$ac_ct_DLLTOOL"; then 12179 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12180else 12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182for as_dir in $PATH 12183do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12188 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192done 12193 done 12194IFS=$as_save_IFS 12195 12196fi 12197fi 12198ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12199if test -n "$ac_ct_DLLTOOL"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12201$as_echo "$ac_ct_DLLTOOL" >&6; } 12202else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204$as_echo "no" >&6; } 12205fi 12206 12207 if test "x$ac_ct_DLLTOOL" = x; then 12208 DLLTOOL="false" 12209 else 12210 case $cross_compiling:$ac_tool_warned in 12211yes:) 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12214ac_tool_warned=yes ;; 12215esac 12216 DLLTOOL=$ac_ct_DLLTOOL 12217 fi 12218else 12219 DLLTOOL="$ac_cv_prog_DLLTOOL" 12220fi 12221 12222test -z "$DLLTOOL" && DLLTOOL=dlltool 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12234$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12235if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 lt_cv_sharedlib_from_linklib_cmd='unknown' 12239 12240case $host_os in 12241cygwin* | mingw* | pw32* | cegcc*) 12242 # two different shell functions defined in ltmain.sh; 12243 # decide which one to use based on capabilities of $DLLTOOL 12244 case `$DLLTOOL --help 2>&1` in 12245 *--identify-strict*) 12246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12247 ;; 12248 *) 12249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12250 ;; 12251 esac 12252 ;; 12253*) 12254 # fallback: assume linklib IS sharedlib 12255 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12256 ;; 12257esac 12258 12259fi 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12261$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12262sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12263test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12264 12265 12266 12267 12268 12269 12270 12271if test -n "$ac_tool_prefix"; then 12272 for ac_prog in ar 12273 do 12274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12275set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12277$as_echo_n "checking for $ac_word... " >&6; } 12278if ${ac_cv_prog_AR+:} false; then : 12279 $as_echo_n "(cached) " >&6 12280else 12281 if test -n "$AR"; then 12282 ac_cv_prog_AR="$AR" # Let the user override the test. 12283else 12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12285for as_dir in $PATH 12286do 12287 IFS=$as_save_IFS 12288 test -z "$as_dir" && as_dir=. 12289 for ac_exec_ext in '' $ac_executable_extensions; do 12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12291 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12293 break 2 12294 fi 12295done 12296 done 12297IFS=$as_save_IFS 12298 12299fi 12300fi 12301AR=$ac_cv_prog_AR 12302if test -n "$AR"; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12304$as_echo "$AR" >&6; } 12305else 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12307$as_echo "no" >&6; } 12308fi 12309 12310 12311 test -n "$AR" && break 12312 done 12313fi 12314if test -z "$AR"; then 12315 ac_ct_AR=$AR 12316 for ac_prog in ar 12317do 12318 # Extract the first word of "$ac_prog", so it can be a program name with args. 12319set dummy $ac_prog; ac_word=$2 12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12321$as_echo_n "checking for $ac_word... " >&6; } 12322if ${ac_cv_prog_ac_ct_AR+:} false; then : 12323 $as_echo_n "(cached) " >&6 12324else 12325 if test -n "$ac_ct_AR"; then 12326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12327else 12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12329for as_dir in $PATH 12330do 12331 IFS=$as_save_IFS 12332 test -z "$as_dir" && as_dir=. 12333 for ac_exec_ext in '' $ac_executable_extensions; do 12334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12335 ac_cv_prog_ac_ct_AR="$ac_prog" 12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12337 break 2 12338 fi 12339done 12340 done 12341IFS=$as_save_IFS 12342 12343fi 12344fi 12345ac_ct_AR=$ac_cv_prog_ac_ct_AR 12346if test -n "$ac_ct_AR"; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12348$as_echo "$ac_ct_AR" >&6; } 12349else 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12351$as_echo "no" >&6; } 12352fi 12353 12354 12355 test -n "$ac_ct_AR" && break 12356done 12357 12358 if test "x$ac_ct_AR" = x; then 12359 AR="false" 12360 else 12361 case $cross_compiling:$ac_tool_warned in 12362yes:) 12363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12365ac_tool_warned=yes ;; 12366esac 12367 AR=$ac_ct_AR 12368 fi 12369fi 12370 12371: ${AR=ar} 12372: ${AR_FLAGS=cru} 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12385$as_echo_n "checking for archiver @FILE support... " >&6; } 12386if ${lt_cv_ar_at_file+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 lt_cv_ar_at_file=no 12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12391/* end confdefs.h. */ 12392 12393int 12394main () 12395{ 12396 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401if ac_fn_c_try_compile "$LINENO"; then : 12402 echo conftest.$ac_objext > conftest.lst 12403 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12405 (eval $lt_ar_try) 2>&5 12406 ac_status=$? 12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12408 test $ac_status = 0; } 12409 if test 0 -eq "$ac_status"; then 12410 # Ensure the archiver fails upon bogus file names. 12411 rm -f conftest.$ac_objext libconftest.a 12412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12413 (eval $lt_ar_try) 2>&5 12414 ac_status=$? 12415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12416 test $ac_status = 0; } 12417 if test 0 -ne "$ac_status"; then 12418 lt_cv_ar_at_file=@ 12419 fi 12420 fi 12421 rm -f conftest.* libconftest.a 12422 12423fi 12424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12425 12426fi 12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12428$as_echo "$lt_cv_ar_at_file" >&6; } 12429 12430if test no = "$lt_cv_ar_at_file"; then 12431 archiver_list_spec= 12432else 12433 archiver_list_spec=$lt_cv_ar_at_file 12434fi 12435 12436 12437 12438 12439 12440 12441 12442if test -n "$ac_tool_prefix"; then 12443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12444set dummy ${ac_tool_prefix}strip; ac_word=$2 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12446$as_echo_n "checking for $ac_word... " >&6; } 12447if ${ac_cv_prog_STRIP+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449else 12450 if test -n "$STRIP"; then 12451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12452else 12453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12454for as_dir in $PATH 12455do 12456 IFS=$as_save_IFS 12457 test -z "$as_dir" && as_dir=. 12458 for ac_exec_ext in '' $ac_executable_extensions; do 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12460 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12462 break 2 12463 fi 12464done 12465 done 12466IFS=$as_save_IFS 12467 12468fi 12469fi 12470STRIP=$ac_cv_prog_STRIP 12471if test -n "$STRIP"; then 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12473$as_echo "$STRIP" >&6; } 12474else 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12476$as_echo "no" >&6; } 12477fi 12478 12479 12480fi 12481if test -z "$ac_cv_prog_STRIP"; then 12482 ac_ct_STRIP=$STRIP 12483 # Extract the first word of "strip", so it can be a program name with args. 12484set dummy strip; ac_word=$2 12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12486$as_echo_n "checking for $ac_word... " >&6; } 12487if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12488 $as_echo_n "(cached) " >&6 12489else 12490 if test -n "$ac_ct_STRIP"; then 12491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12492else 12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12494for as_dir in $PATH 12495do 12496 IFS=$as_save_IFS 12497 test -z "$as_dir" && as_dir=. 12498 for ac_exec_ext in '' $ac_executable_extensions; do 12499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12500 ac_cv_prog_ac_ct_STRIP="strip" 12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12502 break 2 12503 fi 12504done 12505 done 12506IFS=$as_save_IFS 12507 12508fi 12509fi 12510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12511if test -n "$ac_ct_STRIP"; then 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12513$as_echo "$ac_ct_STRIP" >&6; } 12514else 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12516$as_echo "no" >&6; } 12517fi 12518 12519 if test "x$ac_ct_STRIP" = x; then 12520 STRIP=":" 12521 else 12522 case $cross_compiling:$ac_tool_warned in 12523yes:) 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12526ac_tool_warned=yes ;; 12527esac 12528 STRIP=$ac_ct_STRIP 12529 fi 12530else 12531 STRIP="$ac_cv_prog_STRIP" 12532fi 12533 12534test -z "$STRIP" && STRIP=: 12535 12536 12537 12538 12539 12540 12541if test -n "$ac_tool_prefix"; then 12542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12543set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12545$as_echo_n "checking for $ac_word... " >&6; } 12546if ${ac_cv_prog_RANLIB+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 if test -n "$RANLIB"; then 12550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12551else 12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12553for as_dir in $PATH 12554do 12555 IFS=$as_save_IFS 12556 test -z "$as_dir" && as_dir=. 12557 for ac_exec_ext in '' $ac_executable_extensions; do 12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12561 break 2 12562 fi 12563done 12564 done 12565IFS=$as_save_IFS 12566 12567fi 12568fi 12569RANLIB=$ac_cv_prog_RANLIB 12570if test -n "$RANLIB"; then 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12572$as_echo "$RANLIB" >&6; } 12573else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12575$as_echo "no" >&6; } 12576fi 12577 12578 12579fi 12580if test -z "$ac_cv_prog_RANLIB"; then 12581 ac_ct_RANLIB=$RANLIB 12582 # Extract the first word of "ranlib", so it can be a program name with args. 12583set dummy ranlib; ac_word=$2 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12585$as_echo_n "checking for $ac_word... " >&6; } 12586if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12587 $as_echo_n "(cached) " >&6 12588else 12589 if test -n "$ac_ct_RANLIB"; then 12590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12591else 12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12593for as_dir in $PATH 12594do 12595 IFS=$as_save_IFS 12596 test -z "$as_dir" && as_dir=. 12597 for ac_exec_ext in '' $ac_executable_extensions; do 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12599 ac_cv_prog_ac_ct_RANLIB="ranlib" 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12601 break 2 12602 fi 12603done 12604 done 12605IFS=$as_save_IFS 12606 12607fi 12608fi 12609ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12610if test -n "$ac_ct_RANLIB"; then 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12612$as_echo "$ac_ct_RANLIB" >&6; } 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616fi 12617 12618 if test "x$ac_ct_RANLIB" = x; then 12619 RANLIB=":" 12620 else 12621 case $cross_compiling:$ac_tool_warned in 12622yes:) 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12625ac_tool_warned=yes ;; 12626esac 12627 RANLIB=$ac_ct_RANLIB 12628 fi 12629else 12630 RANLIB="$ac_cv_prog_RANLIB" 12631fi 12632 12633test -z "$RANLIB" && RANLIB=: 12634 12635 12636 12637 12638 12639 12640# Determine commands to create old-style static archives. 12641old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12642old_postinstall_cmds='chmod 644 $oldlib' 12643old_postuninstall_cmds= 12644 12645if test -n "$RANLIB"; then 12646 case $host_os in 12647 bitrig* | openbsd*) 12648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12649 ;; 12650 *) 12651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12652 ;; 12653 esac 12654 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12655fi 12656 12657case $host_os in 12658 darwin*) 12659 lock_old_archive_extraction=yes ;; 12660 *) 12661 lock_old_archive_extraction=no ;; 12662esac 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702# If no C compiler was specified, use CC. 12703LTCC=${LTCC-"$CC"} 12704 12705# If no C compiler flags were specified, use CFLAGS. 12706LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12707 12708# Allow CC to be a program name with arguments. 12709compiler=$CC 12710 12711 12712# Check for command to grab the raw symbol name followed by C symbol from nm. 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12714$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12715if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717else 12718 12719# These are sane defaults that work on at least a few old systems. 12720# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12721 12722# Character class describing NM global symbol codes. 12723symcode='[BCDEGRST]' 12724 12725# Regexp to match symbols that can be accessed directly from C. 12726sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12727 12728# Define system-specific variables. 12729case $host_os in 12730aix*) 12731 symcode='[BCDT]' 12732 ;; 12733cygwin* | mingw* | pw32* | cegcc*) 12734 symcode='[ABCDGISTW]' 12735 ;; 12736hpux*) 12737 if test ia64 = "$host_cpu"; then 12738 symcode='[ABCDEGRST]' 12739 fi 12740 ;; 12741irix* | nonstopux*) 12742 symcode='[BCDEGRST]' 12743 ;; 12744osf*) 12745 symcode='[BCDEGQRST]' 12746 ;; 12747solaris*) 12748 symcode='[BDRT]' 12749 ;; 12750sco3.2v5*) 12751 symcode='[DT]' 12752 ;; 12753sysv4.2uw2*) 12754 symcode='[DT]' 12755 ;; 12756sysv5* | sco5v6* | unixware* | OpenUNIX*) 12757 symcode='[ABDT]' 12758 ;; 12759sysv4) 12760 symcode='[DFNSTU]' 12761 ;; 12762esac 12763 12764# If we're using GNU nm, then use its standard symbol codes. 12765case `$NM -V 2>&1` in 12766*GNU* | *'with BFD'*) 12767 symcode='[ABCDGIRSTW]' ;; 12768esac 12769 12770if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12771 # Gets list of data symbols to import. 12772 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12773 # Adjust the below global symbol transforms to fixup imported variables. 12774 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12775 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12776 lt_c_name_lib_hook="\ 12777 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12778 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12779else 12780 # Disable hooks by default. 12781 lt_cv_sys_global_symbol_to_import= 12782 lt_cdecl_hook= 12783 lt_c_name_hook= 12784 lt_c_name_lib_hook= 12785fi 12786 12787# Transform an extracted symbol line into a proper C declaration. 12788# Some systems (esp. on ia64) link data and code symbols differently, 12789# so use this general approach. 12790lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12791$lt_cdecl_hook\ 12792" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12793" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12794 12795# Transform an extracted symbol line into symbol name and symbol address 12796lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12797$lt_c_name_hook\ 12798" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12799" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12800 12801# Transform an extracted symbol line into symbol name with lib prefix and 12802# symbol address. 12803lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12804$lt_c_name_lib_hook\ 12805" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12806" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12807" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12808 12809# Handle CRLF in mingw tool chain 12810opt_cr= 12811case $build_os in 12812mingw*) 12813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12814 ;; 12815esac 12816 12817# Try without a prefix underscore, then with it. 12818for ac_symprfx in "" "_"; do 12819 12820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12821 symxfrm="\\1 $ac_symprfx\\2 \\2" 12822 12823 # Write the raw and C identifiers. 12824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12825 # Fake it for dumpbin and say T for any non-static function, 12826 # D for any global variable and I for any imported variable. 12827 # Also find C++ and __fastcall symbols from MSVC++, 12828 # which start with @ or ?. 12829 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12830" {last_section=section; section=\$ 3};"\ 12831" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12832" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12833" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12834" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12835" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12836" \$ 0!~/External *\|/{next};"\ 12837" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12838" {if(hide[section]) next};"\ 12839" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12840" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12841" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12842" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12843" ' prfx=^$ac_symprfx" 12844 else 12845 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12846 fi 12847 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12848 12849 # Check to see that the pipe works correctly. 12850 pipe_works=no 12851 12852 rm -f conftest* 12853 cat > conftest.$ac_ext <<_LT_EOF 12854#ifdef __cplusplus 12855extern "C" { 12856#endif 12857char nm_test_var; 12858void nm_test_func(void); 12859void nm_test_func(void){} 12860#ifdef __cplusplus 12861} 12862#endif 12863int main(){nm_test_var='a';nm_test_func();return(0);} 12864_LT_EOF 12865 12866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12867 (eval $ac_compile) 2>&5 12868 ac_status=$? 12869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12870 test $ac_status = 0; }; then 12871 # Now try to grab the symbols. 12872 nlist=conftest.nm 12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12874 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12875 ac_status=$? 12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12877 test $ac_status = 0; } && test -s "$nlist"; then 12878 # Try sorting and uniquifying the output. 12879 if sort "$nlist" | uniq > "$nlist"T; then 12880 mv -f "$nlist"T "$nlist" 12881 else 12882 rm -f "$nlist"T 12883 fi 12884 12885 # Make sure that we snagged all the symbols we need. 12886 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12887 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12888 cat <<_LT_EOF > conftest.$ac_ext 12889/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12890#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12891/* DATA imports from DLLs on WIN32 can't be const, because runtime 12892 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12893# define LT_DLSYM_CONST 12894#elif defined __osf__ 12895/* This system does not cope well with relocations in const data. */ 12896# define LT_DLSYM_CONST 12897#else 12898# define LT_DLSYM_CONST const 12899#endif 12900 12901#ifdef __cplusplus 12902extern "C" { 12903#endif 12904 12905_LT_EOF 12906 # Now generate the symbol file. 12907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12908 12909 cat <<_LT_EOF >> conftest.$ac_ext 12910 12911/* The mapping between symbol names and symbols. */ 12912LT_DLSYM_CONST struct { 12913 const char *name; 12914 void *address; 12915} 12916lt__PROGRAM__LTX_preloaded_symbols[] = 12917{ 12918 { "@PROGRAM@", (void *) 0 }, 12919_LT_EOF 12920 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12921 cat <<\_LT_EOF >> conftest.$ac_ext 12922 {0, (void *) 0} 12923}; 12924 12925/* This works around a problem in FreeBSD linker */ 12926#ifdef FREEBSD_WORKAROUND 12927static const void *lt_preloaded_setup() { 12928 return lt__PROGRAM__LTX_preloaded_symbols; 12929} 12930#endif 12931 12932#ifdef __cplusplus 12933} 12934#endif 12935_LT_EOF 12936 # Now try linking the two files. 12937 mv conftest.$ac_objext conftstm.$ac_objext 12938 lt_globsym_save_LIBS=$LIBS 12939 lt_globsym_save_CFLAGS=$CFLAGS 12940 LIBS=conftstm.$ac_objext 12941 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12943 (eval $ac_link) 2>&5 12944 ac_status=$? 12945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12946 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12947 pipe_works=yes 12948 fi 12949 LIBS=$lt_globsym_save_LIBS 12950 CFLAGS=$lt_globsym_save_CFLAGS 12951 else 12952 echo "cannot find nm_test_func in $nlist" >&5 12953 fi 12954 else 12955 echo "cannot find nm_test_var in $nlist" >&5 12956 fi 12957 else 12958 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12959 fi 12960 else 12961 echo "$progname: failed program was:" >&5 12962 cat conftest.$ac_ext >&5 12963 fi 12964 rm -rf conftest* conftst* 12965 12966 # Do not use the global_symbol_pipe unless it works. 12967 if test yes = "$pipe_works"; then 12968 break 12969 else 12970 lt_cv_sys_global_symbol_pipe= 12971 fi 12972done 12973 12974fi 12975 12976if test -z "$lt_cv_sys_global_symbol_pipe"; then 12977 lt_cv_sys_global_symbol_to_cdecl= 12978fi 12979if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12981$as_echo "failed" >&6; } 12982else 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12984$as_echo "ok" >&6; } 12985fi 12986 12987# Response file support. 12988if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12989 nm_file_list_spec='@' 12990elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12991 nm_file_list_spec='@' 12992fi 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13031$as_echo_n "checking for sysroot... " >&6; } 13032 13033# Check whether --with-sysroot was given. 13034if test "${with_sysroot+set}" = set; then : 13035 withval=$with_sysroot; 13036else 13037 with_sysroot=no 13038fi 13039 13040 13041lt_sysroot= 13042case $with_sysroot in #( 13043 yes) 13044 if test yes = "$GCC"; then 13045 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13046 fi 13047 ;; #( 13048 /*) 13049 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13050 ;; #( 13051 no|'') 13052 ;; #( 13053 *) 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13055$as_echo "$with_sysroot" >&6; } 13056 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13057 ;; 13058esac 13059 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13061$as_echo "${lt_sysroot:-no}" >&6; } 13062 13063 13064 13065 13066 13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13068$as_echo_n "checking for a working dd... " >&6; } 13069if ${ac_cv_path_lt_DD+:} false; then : 13070 $as_echo_n "(cached) " >&6 13071else 13072 printf 0123456789abcdef0123456789abcdef >conftest.i 13073cat conftest.i conftest.i >conftest2.i 13074: ${lt_DD:=$DD} 13075if test -z "$lt_DD"; then 13076 ac_path_lt_DD_found=false 13077 # Loop through the user's path and test for each of PROGNAME-LIST 13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13079for as_dir in $PATH 13080do 13081 IFS=$as_save_IFS 13082 test -z "$as_dir" && as_dir=. 13083 for ac_prog in dd; do 13084 for ac_exec_ext in '' $ac_executable_extensions; do 13085 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13086 as_fn_executable_p "$ac_path_lt_DD" || continue 13087if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13088 cmp -s conftest.i conftest.out \ 13089 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13090fi 13091 $ac_path_lt_DD_found && break 3 13092 done 13093 done 13094 done 13095IFS=$as_save_IFS 13096 if test -z "$ac_cv_path_lt_DD"; then 13097 : 13098 fi 13099else 13100 ac_cv_path_lt_DD=$lt_DD 13101fi 13102 13103rm -f conftest.i conftest2.i conftest.out 13104fi 13105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13106$as_echo "$ac_cv_path_lt_DD" >&6; } 13107 13108 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13110$as_echo_n "checking how to truncate binary pipes... " >&6; } 13111if ${lt_cv_truncate_bin+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 printf 0123456789abcdef0123456789abcdef >conftest.i 13115cat conftest.i conftest.i >conftest2.i 13116lt_cv_truncate_bin= 13117if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13118 cmp -s conftest.i conftest.out \ 13119 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13120fi 13121rm -f conftest.i conftest2.i conftest.out 13122test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13123fi 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13125$as_echo "$lt_cv_truncate_bin" >&6; } 13126 13127 13128 13129 13130 13131 13132 13133# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13134func_cc_basename () 13135{ 13136 for cc_temp in $*""; do 13137 case $cc_temp in 13138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13140 \-*) ;; 13141 *) break;; 13142 esac 13143 done 13144 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13145} 13146 13147# Check whether --enable-libtool-lock was given. 13148if test "${enable_libtool_lock+set}" = set; then : 13149 enableval=$enable_libtool_lock; 13150fi 13151 13152test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13153 13154# Some flags need to be propagated to the compiler or linker for good 13155# libtool support. 13156case $host in 13157ia64-*-hpux*) 13158 # Find out what ABI is being produced by ac_compile, and set mode 13159 # options accordingly. 13160 echo 'int i;' > conftest.$ac_ext 13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13162 (eval $ac_compile) 2>&5 13163 ac_status=$? 13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13165 test $ac_status = 0; }; then 13166 case `/usr/bin/file conftest.$ac_objext` in 13167 *ELF-32*) 13168 HPUX_IA64_MODE=32 13169 ;; 13170 *ELF-64*) 13171 HPUX_IA64_MODE=64 13172 ;; 13173 esac 13174 fi 13175 rm -rf conftest* 13176 ;; 13177*-*-irix6*) 13178 # Find out what ABI is being produced by ac_compile, and set linker 13179 # options accordingly. 13180 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13182 (eval $ac_compile) 2>&5 13183 ac_status=$? 13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13185 test $ac_status = 0; }; then 13186 if test yes = "$lt_cv_prog_gnu_ld"; then 13187 case `/usr/bin/file conftest.$ac_objext` in 13188 *32-bit*) 13189 LD="${LD-ld} -melf32bsmip" 13190 ;; 13191 *N32*) 13192 LD="${LD-ld} -melf32bmipn32" 13193 ;; 13194 *64-bit*) 13195 LD="${LD-ld} -melf64bmip" 13196 ;; 13197 esac 13198 else 13199 case `/usr/bin/file conftest.$ac_objext` in 13200 *32-bit*) 13201 LD="${LD-ld} -32" 13202 ;; 13203 *N32*) 13204 LD="${LD-ld} -n32" 13205 ;; 13206 *64-bit*) 13207 LD="${LD-ld} -64" 13208 ;; 13209 esac 13210 fi 13211 fi 13212 rm -rf conftest* 13213 ;; 13214 13215mips64*-*linux*) 13216 # Find out what ABI is being produced by ac_compile, and set linker 13217 # options accordingly. 13218 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13220 (eval $ac_compile) 2>&5 13221 ac_status=$? 13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13223 test $ac_status = 0; }; then 13224 emul=elf 13225 case `/usr/bin/file conftest.$ac_objext` in 13226 *32-bit*) 13227 emul="${emul}32" 13228 ;; 13229 *64-bit*) 13230 emul="${emul}64" 13231 ;; 13232 esac 13233 case `/usr/bin/file conftest.$ac_objext` in 13234 *MSB*) 13235 emul="${emul}btsmip" 13236 ;; 13237 *LSB*) 13238 emul="${emul}ltsmip" 13239 ;; 13240 esac 13241 case `/usr/bin/file conftest.$ac_objext` in 13242 *N32*) 13243 emul="${emul}n32" 13244 ;; 13245 esac 13246 LD="${LD-ld} -m $emul" 13247 fi 13248 rm -rf conftest* 13249 ;; 13250 13251x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13252s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13253 # Find out what ABI is being produced by ac_compile, and set linker 13254 # options accordingly. Note that the listed cases only cover the 13255 # situations where additional linker options are needed (such as when 13256 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13257 # vice versa); the common cases where no linker options are needed do 13258 # not appear in the list. 13259 echo 'int i;' > conftest.$ac_ext 13260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13261 (eval $ac_compile) 2>&5 13262 ac_status=$? 13263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13264 test $ac_status = 0; }; then 13265 case `/usr/bin/file conftest.o` in 13266 *32-bit*) 13267 case $host in 13268 x86_64-*kfreebsd*-gnu) 13269 LD="${LD-ld} -m elf_i386_fbsd" 13270 ;; 13271 x86_64-*linux*) 13272 case `/usr/bin/file conftest.o` in 13273 *x86-64*) 13274 LD="${LD-ld} -m elf32_x86_64" 13275 ;; 13276 *) 13277 LD="${LD-ld} -m elf_i386" 13278 ;; 13279 esac 13280 ;; 13281 powerpc64le-*linux*) 13282 LD="${LD-ld} -m elf32lppclinux" 13283 ;; 13284 powerpc64-*linux*) 13285 LD="${LD-ld} -m elf32ppclinux" 13286 ;; 13287 s390x-*linux*) 13288 LD="${LD-ld} -m elf_s390" 13289 ;; 13290 sparc64-*linux*) 13291 LD="${LD-ld} -m elf32_sparc" 13292 ;; 13293 esac 13294 ;; 13295 *64-bit*) 13296 case $host in 13297 x86_64-*kfreebsd*-gnu) 13298 LD="${LD-ld} -m elf_x86_64_fbsd" 13299 ;; 13300 x86_64-*linux*) 13301 LD="${LD-ld} -m elf_x86_64" 13302 ;; 13303 powerpcle-*linux*) 13304 LD="${LD-ld} -m elf64lppc" 13305 ;; 13306 powerpc-*linux*) 13307 LD="${LD-ld} -m elf64ppc" 13308 ;; 13309 s390*-*linux*|s390*-*tpf*) 13310 LD="${LD-ld} -m elf64_s390" 13311 ;; 13312 sparc*-*linux*) 13313 LD="${LD-ld} -m elf64_sparc" 13314 ;; 13315 esac 13316 ;; 13317 esac 13318 fi 13319 rm -rf conftest* 13320 ;; 13321 13322*-*-sco3.2v5*) 13323 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13324 SAVE_CFLAGS=$CFLAGS 13325 CFLAGS="$CFLAGS -belf" 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13327$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13328if ${lt_cv_cc_needs_belf+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 ac_ext=c 13332ac_cpp='$CPP $CPPFLAGS' 13333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13335ac_compiler_gnu=$ac_cv_c_compiler_gnu 13336 13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13338/* end confdefs.h. */ 13339 13340int 13341main () 13342{ 13343 13344 ; 13345 return 0; 13346} 13347_ACEOF 13348if ac_fn_c_try_link "$LINENO"; then : 13349 lt_cv_cc_needs_belf=yes 13350else 13351 lt_cv_cc_needs_belf=no 13352fi 13353rm -f core conftest.err conftest.$ac_objext \ 13354 conftest$ac_exeext conftest.$ac_ext 13355 ac_ext=c 13356ac_cpp='$CPP $CPPFLAGS' 13357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13359ac_compiler_gnu=$ac_cv_c_compiler_gnu 13360 13361fi 13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13363$as_echo "$lt_cv_cc_needs_belf" >&6; } 13364 if test yes != "$lt_cv_cc_needs_belf"; then 13365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13366 CFLAGS=$SAVE_CFLAGS 13367 fi 13368 ;; 13369*-*solaris*) 13370 # Find out what ABI is being produced by ac_compile, and set linker 13371 # options accordingly. 13372 echo 'int i;' > conftest.$ac_ext 13373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13374 (eval $ac_compile) 2>&5 13375 ac_status=$? 13376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13377 test $ac_status = 0; }; then 13378 case `/usr/bin/file conftest.o` in 13379 *64-bit*) 13380 case $lt_cv_prog_gnu_ld in 13381 yes*) 13382 case $host in 13383 i?86-*-solaris*|x86_64-*-solaris*) 13384 LD="${LD-ld} -m elf_x86_64" 13385 ;; 13386 sparc*-*-solaris*) 13387 LD="${LD-ld} -m elf64_sparc" 13388 ;; 13389 esac 13390 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13391 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13392 LD=${LD-ld}_sol2 13393 fi 13394 ;; 13395 *) 13396 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13397 LD="${LD-ld} -64" 13398 fi 13399 ;; 13400 esac 13401 ;; 13402 esac 13403 fi 13404 rm -rf conftest* 13405 ;; 13406esac 13407 13408need_locks=$enable_libtool_lock 13409 13410if test -n "$ac_tool_prefix"; then 13411 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13412set dummy ${ac_tool_prefix}mt; ac_word=$2 13413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13414$as_echo_n "checking for $ac_word... " >&6; } 13415if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13416 $as_echo_n "(cached) " >&6 13417else 13418 if test -n "$MANIFEST_TOOL"; then 13419 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13420else 13421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13422for as_dir in $PATH 13423do 13424 IFS=$as_save_IFS 13425 test -z "$as_dir" && as_dir=. 13426 for ac_exec_ext in '' $ac_executable_extensions; do 13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13428 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13430 break 2 13431 fi 13432done 13433 done 13434IFS=$as_save_IFS 13435 13436fi 13437fi 13438MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13439if test -n "$MANIFEST_TOOL"; then 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13441$as_echo "$MANIFEST_TOOL" >&6; } 13442else 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13444$as_echo "no" >&6; } 13445fi 13446 13447 13448fi 13449if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13450 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13451 # Extract the first word of "mt", so it can be a program name with args. 13452set dummy mt; ac_word=$2 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13454$as_echo_n "checking for $ac_word... " >&6; } 13455if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13456 $as_echo_n "(cached) " >&6 13457else 13458 if test -n "$ac_ct_MANIFEST_TOOL"; then 13459 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13460else 13461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13462for as_dir in $PATH 13463do 13464 IFS=$as_save_IFS 13465 test -z "$as_dir" && as_dir=. 13466 for ac_exec_ext in '' $ac_executable_extensions; do 13467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13468 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13470 break 2 13471 fi 13472done 13473 done 13474IFS=$as_save_IFS 13475 13476fi 13477fi 13478ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13479if test -n "$ac_ct_MANIFEST_TOOL"; then 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13481$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13482else 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13484$as_echo "no" >&6; } 13485fi 13486 13487 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13488 MANIFEST_TOOL=":" 13489 else 13490 case $cross_compiling:$ac_tool_warned in 13491yes:) 13492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13494ac_tool_warned=yes ;; 13495esac 13496 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13497 fi 13498else 13499 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13500fi 13501 13502test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13504$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13505if ${lt_cv_path_mainfest_tool+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 lt_cv_path_mainfest_tool=no 13509 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13510 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13511 cat conftest.err >&5 13512 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13513 lt_cv_path_mainfest_tool=yes 13514 fi 13515 rm -f conftest* 13516fi 13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13518$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13519if test yes != "$lt_cv_path_mainfest_tool"; then 13520 MANIFEST_TOOL=: 13521fi 13522 13523 13524 13525 13526 13527 13528 case $host_os in 13529 rhapsody* | darwin*) 13530 if test -n "$ac_tool_prefix"; then 13531 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13532set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13534$as_echo_n "checking for $ac_word... " >&6; } 13535if ${ac_cv_prog_DSYMUTIL+:} false; then : 13536 $as_echo_n "(cached) " >&6 13537else 13538 if test -n "$DSYMUTIL"; then 13539 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13540else 13541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13542for as_dir in $PATH 13543do 13544 IFS=$as_save_IFS 13545 test -z "$as_dir" && as_dir=. 13546 for ac_exec_ext in '' $ac_executable_extensions; do 13547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13548 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13550 break 2 13551 fi 13552done 13553 done 13554IFS=$as_save_IFS 13555 13556fi 13557fi 13558DSYMUTIL=$ac_cv_prog_DSYMUTIL 13559if test -n "$DSYMUTIL"; then 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13561$as_echo "$DSYMUTIL" >&6; } 13562else 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13564$as_echo "no" >&6; } 13565fi 13566 13567 13568fi 13569if test -z "$ac_cv_prog_DSYMUTIL"; then 13570 ac_ct_DSYMUTIL=$DSYMUTIL 13571 # Extract the first word of "dsymutil", so it can be a program name with args. 13572set dummy dsymutil; ac_word=$2 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13574$as_echo_n "checking for $ac_word... " >&6; } 13575if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 if test -n "$ac_ct_DSYMUTIL"; then 13579 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13580else 13581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13582for as_dir in $PATH 13583do 13584 IFS=$as_save_IFS 13585 test -z "$as_dir" && as_dir=. 13586 for ac_exec_ext in '' $ac_executable_extensions; do 13587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13588 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13590 break 2 13591 fi 13592done 13593 done 13594IFS=$as_save_IFS 13595 13596fi 13597fi 13598ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13599if test -n "$ac_ct_DSYMUTIL"; then 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13601$as_echo "$ac_ct_DSYMUTIL" >&6; } 13602else 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13604$as_echo "no" >&6; } 13605fi 13606 13607 if test "x$ac_ct_DSYMUTIL" = x; then 13608 DSYMUTIL=":" 13609 else 13610 case $cross_compiling:$ac_tool_warned in 13611yes:) 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13614ac_tool_warned=yes ;; 13615esac 13616 DSYMUTIL=$ac_ct_DSYMUTIL 13617 fi 13618else 13619 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13620fi 13621 13622 if test -n "$ac_tool_prefix"; then 13623 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13624set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13626$as_echo_n "checking for $ac_word... " >&6; } 13627if ${ac_cv_prog_NMEDIT+:} false; then : 13628 $as_echo_n "(cached) " >&6 13629else 13630 if test -n "$NMEDIT"; then 13631 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13632else 13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13634for as_dir in $PATH 13635do 13636 IFS=$as_save_IFS 13637 test -z "$as_dir" && as_dir=. 13638 for ac_exec_ext in '' $ac_executable_extensions; do 13639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13642 break 2 13643 fi 13644done 13645 done 13646IFS=$as_save_IFS 13647 13648fi 13649fi 13650NMEDIT=$ac_cv_prog_NMEDIT 13651if test -n "$NMEDIT"; then 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13653$as_echo "$NMEDIT" >&6; } 13654else 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13656$as_echo "no" >&6; } 13657fi 13658 13659 13660fi 13661if test -z "$ac_cv_prog_NMEDIT"; then 13662 ac_ct_NMEDIT=$NMEDIT 13663 # Extract the first word of "nmedit", so it can be a program name with args. 13664set dummy nmedit; ac_word=$2 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13666$as_echo_n "checking for $ac_word... " >&6; } 13667if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 if test -n "$ac_ct_NMEDIT"; then 13671 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13672else 13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13674for as_dir in $PATH 13675do 13676 IFS=$as_save_IFS 13677 test -z "$as_dir" && as_dir=. 13678 for ac_exec_ext in '' $ac_executable_extensions; do 13679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13680 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13682 break 2 13683 fi 13684done 13685 done 13686IFS=$as_save_IFS 13687 13688fi 13689fi 13690ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13691if test -n "$ac_ct_NMEDIT"; then 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13693$as_echo "$ac_ct_NMEDIT" >&6; } 13694else 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13696$as_echo "no" >&6; } 13697fi 13698 13699 if test "x$ac_ct_NMEDIT" = x; then 13700 NMEDIT=":" 13701 else 13702 case $cross_compiling:$ac_tool_warned in 13703yes:) 13704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13706ac_tool_warned=yes ;; 13707esac 13708 NMEDIT=$ac_ct_NMEDIT 13709 fi 13710else 13711 NMEDIT="$ac_cv_prog_NMEDIT" 13712fi 13713 13714 if test -n "$ac_tool_prefix"; then 13715 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13716set dummy ${ac_tool_prefix}lipo; ac_word=$2 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13718$as_echo_n "checking for $ac_word... " >&6; } 13719if ${ac_cv_prog_LIPO+:} false; then : 13720 $as_echo_n "(cached) " >&6 13721else 13722 if test -n "$LIPO"; then 13723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13724else 13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13726for as_dir in $PATH 13727do 13728 IFS=$as_save_IFS 13729 test -z "$as_dir" && as_dir=. 13730 for ac_exec_ext in '' $ac_executable_extensions; do 13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13732 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13734 break 2 13735 fi 13736done 13737 done 13738IFS=$as_save_IFS 13739 13740fi 13741fi 13742LIPO=$ac_cv_prog_LIPO 13743if test -n "$LIPO"; then 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13745$as_echo "$LIPO" >&6; } 13746else 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13748$as_echo "no" >&6; } 13749fi 13750 13751 13752fi 13753if test -z "$ac_cv_prog_LIPO"; then 13754 ac_ct_LIPO=$LIPO 13755 # Extract the first word of "lipo", so it can be a program name with args. 13756set dummy lipo; ac_word=$2 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13758$as_echo_n "checking for $ac_word... " >&6; } 13759if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13760 $as_echo_n "(cached) " >&6 13761else 13762 if test -n "$ac_ct_LIPO"; then 13763 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13764else 13765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13766for as_dir in $PATH 13767do 13768 IFS=$as_save_IFS 13769 test -z "$as_dir" && as_dir=. 13770 for ac_exec_ext in '' $ac_executable_extensions; do 13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13772 ac_cv_prog_ac_ct_LIPO="lipo" 13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13774 break 2 13775 fi 13776done 13777 done 13778IFS=$as_save_IFS 13779 13780fi 13781fi 13782ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13783if test -n "$ac_ct_LIPO"; then 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13785$as_echo "$ac_ct_LIPO" >&6; } 13786else 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13788$as_echo "no" >&6; } 13789fi 13790 13791 if test "x$ac_ct_LIPO" = x; then 13792 LIPO=":" 13793 else 13794 case $cross_compiling:$ac_tool_warned in 13795yes:) 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13798ac_tool_warned=yes ;; 13799esac 13800 LIPO=$ac_ct_LIPO 13801 fi 13802else 13803 LIPO="$ac_cv_prog_LIPO" 13804fi 13805 13806 if test -n "$ac_tool_prefix"; then 13807 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13808set dummy ${ac_tool_prefix}otool; ac_word=$2 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13810$as_echo_n "checking for $ac_word... " >&6; } 13811if ${ac_cv_prog_OTOOL+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813else 13814 if test -n "$OTOOL"; then 13815 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13816else 13817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13818for as_dir in $PATH 13819do 13820 IFS=$as_save_IFS 13821 test -z "$as_dir" && as_dir=. 13822 for ac_exec_ext in '' $ac_executable_extensions; do 13823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13824 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13826 break 2 13827 fi 13828done 13829 done 13830IFS=$as_save_IFS 13831 13832fi 13833fi 13834OTOOL=$ac_cv_prog_OTOOL 13835if test -n "$OTOOL"; then 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13837$as_echo "$OTOOL" >&6; } 13838else 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13840$as_echo "no" >&6; } 13841fi 13842 13843 13844fi 13845if test -z "$ac_cv_prog_OTOOL"; then 13846 ac_ct_OTOOL=$OTOOL 13847 # Extract the first word of "otool", so it can be a program name with args. 13848set dummy otool; ac_word=$2 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13850$as_echo_n "checking for $ac_word... " >&6; } 13851if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13852 $as_echo_n "(cached) " >&6 13853else 13854 if test -n "$ac_ct_OTOOL"; then 13855 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13856else 13857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13858for as_dir in $PATH 13859do 13860 IFS=$as_save_IFS 13861 test -z "$as_dir" && as_dir=. 13862 for ac_exec_ext in '' $ac_executable_extensions; do 13863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13864 ac_cv_prog_ac_ct_OTOOL="otool" 13865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13866 break 2 13867 fi 13868done 13869 done 13870IFS=$as_save_IFS 13871 13872fi 13873fi 13874ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13875if test -n "$ac_ct_OTOOL"; then 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13877$as_echo "$ac_ct_OTOOL" >&6; } 13878else 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13880$as_echo "no" >&6; } 13881fi 13882 13883 if test "x$ac_ct_OTOOL" = x; then 13884 OTOOL=":" 13885 else 13886 case $cross_compiling:$ac_tool_warned in 13887yes:) 13888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13890ac_tool_warned=yes ;; 13891esac 13892 OTOOL=$ac_ct_OTOOL 13893 fi 13894else 13895 OTOOL="$ac_cv_prog_OTOOL" 13896fi 13897 13898 if test -n "$ac_tool_prefix"; then 13899 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13900set dummy ${ac_tool_prefix}otool64; ac_word=$2 13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13902$as_echo_n "checking for $ac_word... " >&6; } 13903if ${ac_cv_prog_OTOOL64+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 if test -n "$OTOOL64"; then 13907 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13908else 13909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13910for as_dir in $PATH 13911do 13912 IFS=$as_save_IFS 13913 test -z "$as_dir" && as_dir=. 13914 for ac_exec_ext in '' $ac_executable_extensions; do 13915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13916 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13918 break 2 13919 fi 13920done 13921 done 13922IFS=$as_save_IFS 13923 13924fi 13925fi 13926OTOOL64=$ac_cv_prog_OTOOL64 13927if test -n "$OTOOL64"; then 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13929$as_echo "$OTOOL64" >&6; } 13930else 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13932$as_echo "no" >&6; } 13933fi 13934 13935 13936fi 13937if test -z "$ac_cv_prog_OTOOL64"; then 13938 ac_ct_OTOOL64=$OTOOL64 13939 # Extract the first word of "otool64", so it can be a program name with args. 13940set dummy otool64; ac_word=$2 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13942$as_echo_n "checking for $ac_word... " >&6; } 13943if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 if test -n "$ac_ct_OTOOL64"; then 13947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13948else 13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13950for as_dir in $PATH 13951do 13952 IFS=$as_save_IFS 13953 test -z "$as_dir" && as_dir=. 13954 for ac_exec_ext in '' $ac_executable_extensions; do 13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13956 ac_cv_prog_ac_ct_OTOOL64="otool64" 13957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13958 break 2 13959 fi 13960done 13961 done 13962IFS=$as_save_IFS 13963 13964fi 13965fi 13966ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13967if test -n "$ac_ct_OTOOL64"; then 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13969$as_echo "$ac_ct_OTOOL64" >&6; } 13970else 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13972$as_echo "no" >&6; } 13973fi 13974 13975 if test "x$ac_ct_OTOOL64" = x; then 13976 OTOOL64=":" 13977 else 13978 case $cross_compiling:$ac_tool_warned in 13979yes:) 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13982ac_tool_warned=yes ;; 13983esac 13984 OTOOL64=$ac_ct_OTOOL64 13985 fi 13986else 13987 OTOOL64="$ac_cv_prog_OTOOL64" 13988fi 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14017$as_echo_n "checking for -single_module linker flag... " >&6; } 14018if ${lt_cv_apple_cc_single_mod+:} false; then : 14019 $as_echo_n "(cached) " >&6 14020else 14021 lt_cv_apple_cc_single_mod=no 14022 if test -z "$LT_MULTI_MODULE"; then 14023 # By default we will add the -single_module flag. You can override 14024 # by either setting the environment variable LT_MULTI_MODULE 14025 # non-empty at configure time, or by adding -multi_module to the 14026 # link flags. 14027 rm -rf libconftest.dylib* 14028 echo "int foo(void){return 1;}" > conftest.c 14029 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14030-dynamiclib -Wl,-single_module conftest.c" >&5 14031 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14032 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14033 _lt_result=$? 14034 # If there is a non-empty error log, and "single_module" 14035 # appears in it, assume the flag caused a linker warning 14036 if test -s conftest.err && $GREP single_module conftest.err; then 14037 cat conftest.err >&5 14038 # Otherwise, if the output was created with a 0 exit code from 14039 # the compiler, it worked. 14040 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14041 lt_cv_apple_cc_single_mod=yes 14042 else 14043 cat conftest.err >&5 14044 fi 14045 rm -rf libconftest.dylib* 14046 rm -f conftest.* 14047 fi 14048fi 14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14050$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14051 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14053$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14054if ${lt_cv_ld_exported_symbols_list+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 lt_cv_ld_exported_symbols_list=no 14058 save_LDFLAGS=$LDFLAGS 14059 echo "_main" > conftest.sym 14060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063 14064int 14065main () 14066{ 14067 14068 ; 14069 return 0; 14070} 14071_ACEOF 14072if ac_fn_c_try_link "$LINENO"; then : 14073 lt_cv_ld_exported_symbols_list=yes 14074else 14075 lt_cv_ld_exported_symbols_list=no 14076fi 14077rm -f core conftest.err conftest.$ac_objext \ 14078 conftest$ac_exeext conftest.$ac_ext 14079 LDFLAGS=$save_LDFLAGS 14080 14081fi 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14083$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14084 14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14086$as_echo_n "checking for -force_load linker flag... " >&6; } 14087if ${lt_cv_ld_force_load+:} false; then : 14088 $as_echo_n "(cached) " >&6 14089else 14090 lt_cv_ld_force_load=no 14091 cat > conftest.c << _LT_EOF 14092int forced_loaded() { return 2;} 14093_LT_EOF 14094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14096 echo "$AR cru libconftest.a conftest.o" >&5 14097 $AR cru libconftest.a conftest.o 2>&5 14098 echo "$RANLIB libconftest.a" >&5 14099 $RANLIB libconftest.a 2>&5 14100 cat > conftest.c << _LT_EOF 14101int main() { return 0;} 14102_LT_EOF 14103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14105 _lt_result=$? 14106 if test -s conftest.err && $GREP force_load conftest.err; then 14107 cat conftest.err >&5 14108 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14109 lt_cv_ld_force_load=yes 14110 else 14111 cat conftest.err >&5 14112 fi 14113 rm -f conftest.err libconftest.a conftest conftest.c 14114 rm -rf conftest.dSYM 14115 14116fi 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14118$as_echo "$lt_cv_ld_force_load" >&6; } 14119 case $host_os in 14120 rhapsody* | darwin1.[012]) 14121 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14122 darwin1.*) 14123 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14124 darwin*) # darwin 5.x on 14125 # if running on 10.5 or later, the deployment target defaults 14126 # to the OS version, if on x86, and 10.4, the deployment 14127 # target defaults to 10.4. Don't you love it? 14128 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14129 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14130 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14131 10.[012][,.]*) 14132 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14133 10.*) 14134 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14135 esac 14136 ;; 14137 esac 14138 if test yes = "$lt_cv_apple_cc_single_mod"; then 14139 _lt_dar_single_mod='$single_module' 14140 fi 14141 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14142 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14143 else 14144 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14145 fi 14146 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14147 _lt_dsymutil='~$DSYMUTIL $lib || :' 14148 else 14149 _lt_dsymutil= 14150 fi 14151 ;; 14152 esac 14153 14154# func_munge_path_list VARIABLE PATH 14155# ----------------------------------- 14156# VARIABLE is name of variable containing _space_ separated list of 14157# directories to be munged by the contents of PATH, which is string 14158# having a format: 14159# "DIR[:DIR]:" 14160# string "DIR[ DIR]" will be prepended to VARIABLE 14161# ":DIR[:DIR]" 14162# string "DIR[ DIR]" will be appended to VARIABLE 14163# "DIRP[:DIRP]::[DIRA:]DIRA" 14164# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14165# "DIRA[ DIRA]" will be appended to VARIABLE 14166# "DIR[:DIR]" 14167# VARIABLE will be replaced by "DIR[ DIR]" 14168func_munge_path_list () 14169{ 14170 case x$2 in 14171 x) 14172 ;; 14173 *:) 14174 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14175 ;; 14176 x:*) 14177 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14178 ;; 14179 *::*) 14180 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14181 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14182 ;; 14183 *) 14184 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14185 ;; 14186 esac 14187} 14188 14189for ac_header in dlfcn.h 14190do : 14191 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14192" 14193if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14194 cat >>confdefs.h <<_ACEOF 14195#define HAVE_DLFCN_H 1 14196_ACEOF 14197 14198fi 14199 14200done 14201 14202 14203 14204 14205 14206# Set options 14207 14208 14209 14210 enable_dlopen=no 14211 14212 14213 enable_win32_dll=no 14214 14215 14216 # Check whether --enable-shared was given. 14217if test "${enable_shared+set}" = set; then : 14218 enableval=$enable_shared; p=${PACKAGE-default} 14219 case $enableval in 14220 yes) enable_shared=yes ;; 14221 no) enable_shared=no ;; 14222 *) 14223 enable_shared=no 14224 # Look at the argument we got. We use all the common list separators. 14225 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14226 for pkg in $enableval; do 14227 IFS=$lt_save_ifs 14228 if test "X$pkg" = "X$p"; then 14229 enable_shared=yes 14230 fi 14231 done 14232 IFS=$lt_save_ifs 14233 ;; 14234 esac 14235else 14236 enable_shared=yes 14237fi 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249# Check whether --with-pic was given. 14250if test "${with_pic+set}" = set; then : 14251 withval=$with_pic; lt_p=${PACKAGE-default} 14252 case $withval in 14253 yes|no) pic_mode=$withval ;; 14254 *) 14255 pic_mode=default 14256 # Look at the argument we got. We use all the common list separators. 14257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14258 for lt_pkg in $withval; do 14259 IFS=$lt_save_ifs 14260 if test "X$lt_pkg" = "X$lt_p"; then 14261 pic_mode=yes 14262 fi 14263 done 14264 IFS=$lt_save_ifs 14265 ;; 14266 esac 14267else 14268 pic_mode=default 14269fi 14270 14271 14272 14273 14274 14275 14276 14277 14278 # Check whether --enable-fast-install was given. 14279if test "${enable_fast_install+set}" = set; then : 14280 enableval=$enable_fast_install; p=${PACKAGE-default} 14281 case $enableval in 14282 yes) enable_fast_install=yes ;; 14283 no) enable_fast_install=no ;; 14284 *) 14285 enable_fast_install=no 14286 # Look at the argument we got. We use all the common list separators. 14287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14288 for pkg in $enableval; do 14289 IFS=$lt_save_ifs 14290 if test "X$pkg" = "X$p"; then 14291 enable_fast_install=yes 14292 fi 14293 done 14294 IFS=$lt_save_ifs 14295 ;; 14296 esac 14297else 14298 enable_fast_install=yes 14299fi 14300 14301 14302 14303 14304 14305 14306 14307 14308 shared_archive_member_spec= 14309case $host,$enable_shared in 14310power*-*-aix[5-9]*,yes) 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14312$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14313 14314# Check whether --with-aix-soname was given. 14315if test "${with_aix_soname+set}" = set; then : 14316 withval=$with_aix_soname; case $withval in 14317 aix|svr4|both) 14318 ;; 14319 *) 14320 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14321 ;; 14322 esac 14323 lt_cv_with_aix_soname=$with_aix_soname 14324else 14325 if ${lt_cv_with_aix_soname+:} false; then : 14326 $as_echo_n "(cached) " >&6 14327else 14328 lt_cv_with_aix_soname=aix 14329fi 14330 14331 with_aix_soname=$lt_cv_with_aix_soname 14332fi 14333 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14335$as_echo "$with_aix_soname" >&6; } 14336 if test aix != "$with_aix_soname"; then 14337 # For the AIX way of multilib, we name the shared archive member 14338 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14339 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14340 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14341 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14342 if test 64 = "${OBJECT_MODE-32}"; then 14343 shared_archive_member_spec=shr_64 14344 else 14345 shared_archive_member_spec=shr 14346 fi 14347 fi 14348 ;; 14349*) 14350 with_aix_soname=aix 14351 ;; 14352esac 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363# This can be used to rebuild libtool when needed 14364LIBTOOL_DEPS=$ltmain 14365 14366# Always use our own libtool. 14367LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398test -z "$LN_S" && LN_S="ln -s" 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413if test -n "${ZSH_VERSION+set}"; then 14414 setopt NO_GLOB_SUBST 14415fi 14416 14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14418$as_echo_n "checking for objdir... " >&6; } 14419if ${lt_cv_objdir+:} false; then : 14420 $as_echo_n "(cached) " >&6 14421else 14422 rm -f .libs 2>/dev/null 14423mkdir .libs 2>/dev/null 14424if test -d .libs; then 14425 lt_cv_objdir=.libs 14426else 14427 # MS-DOS does not allow filenames that begin with a dot. 14428 lt_cv_objdir=_libs 14429fi 14430rmdir .libs 2>/dev/null 14431fi 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14433$as_echo "$lt_cv_objdir" >&6; } 14434objdir=$lt_cv_objdir 14435 14436 14437 14438 14439 14440cat >>confdefs.h <<_ACEOF 14441#define LT_OBJDIR "$lt_cv_objdir/" 14442_ACEOF 14443 14444 14445 14446 14447case $host_os in 14448aix3*) 14449 # AIX sometimes has problems with the GCC collect2 program. For some 14450 # reason, if we set the COLLECT_NAMES environment variable, the problems 14451 # vanish in a puff of smoke. 14452 if test set != "${COLLECT_NAMES+set}"; then 14453 COLLECT_NAMES= 14454 export COLLECT_NAMES 14455 fi 14456 ;; 14457esac 14458 14459# Global variables: 14460ofile=libtool 14461can_build_shared=yes 14462 14463# All known linkers require a '.a' archive for static linking (except MSVC, 14464# which needs '.lib'). 14465libext=a 14466 14467with_gnu_ld=$lt_cv_prog_gnu_ld 14468 14469old_CC=$CC 14470old_CFLAGS=$CFLAGS 14471 14472# Set sane defaults for various variables 14473test -z "$CC" && CC=cc 14474test -z "$LTCC" && LTCC=$CC 14475test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14476test -z "$LD" && LD=ld 14477test -z "$ac_objext" && ac_objext=o 14478 14479func_cc_basename $compiler 14480cc_basename=$func_cc_basename_result 14481 14482 14483# Only perform the check for file, if the check method requires it 14484test -z "$MAGIC_CMD" && MAGIC_CMD=file 14485case $deplibs_check_method in 14486file_magic*) 14487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14489$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14490if ${lt_cv_path_MAGIC_CMD+:} false; then : 14491 $as_echo_n "(cached) " >&6 14492else 14493 case $MAGIC_CMD in 14494[\\/*] | ?:[\\/]*) 14495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14496 ;; 14497*) 14498 lt_save_MAGIC_CMD=$MAGIC_CMD 14499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14501 for ac_dir in $ac_dummy; do 14502 IFS=$lt_save_ifs 14503 test -z "$ac_dir" && ac_dir=. 14504 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14505 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14506 if test -n "$file_magic_test_file"; then 14507 case $deplibs_check_method in 14508 "file_magic "*) 14509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14512 $EGREP "$file_magic_regex" > /dev/null; then 14513 : 14514 else 14515 cat <<_LT_EOF 1>&2 14516 14517*** Warning: the command libtool uses to detect shared libraries, 14518*** $file_magic_cmd, produces output that libtool cannot recognize. 14519*** The result is that libtool may fail to recognize shared libraries 14520*** as such. This will affect the creation of libtool libraries that 14521*** depend on shared libraries, but programs linked with such libtool 14522*** libraries will work regardless of this problem. Nevertheless, you 14523*** may want to report the problem to your system manager and/or to 14524*** bug-libtool@gnu.org 14525 14526_LT_EOF 14527 fi ;; 14528 esac 14529 fi 14530 break 14531 fi 14532 done 14533 IFS=$lt_save_ifs 14534 MAGIC_CMD=$lt_save_MAGIC_CMD 14535 ;; 14536esac 14537fi 14538 14539MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14540if test -n "$MAGIC_CMD"; then 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14542$as_echo "$MAGIC_CMD" >&6; } 14543else 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14545$as_echo "no" >&6; } 14546fi 14547 14548 14549 14550 14551 14552if test -z "$lt_cv_path_MAGIC_CMD"; then 14553 if test -n "$ac_tool_prefix"; then 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14555$as_echo_n "checking for file... " >&6; } 14556if ${lt_cv_path_MAGIC_CMD+:} false; then : 14557 $as_echo_n "(cached) " >&6 14558else 14559 case $MAGIC_CMD in 14560[\\/*] | ?:[\\/]*) 14561 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14562 ;; 14563*) 14564 lt_save_MAGIC_CMD=$MAGIC_CMD 14565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14567 for ac_dir in $ac_dummy; do 14568 IFS=$lt_save_ifs 14569 test -z "$ac_dir" && ac_dir=. 14570 if test -f "$ac_dir/file"; then 14571 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14572 if test -n "$file_magic_test_file"; then 14573 case $deplibs_check_method in 14574 "file_magic "*) 14575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14576 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14578 $EGREP "$file_magic_regex" > /dev/null; then 14579 : 14580 else 14581 cat <<_LT_EOF 1>&2 14582 14583*** Warning: the command libtool uses to detect shared libraries, 14584*** $file_magic_cmd, produces output that libtool cannot recognize. 14585*** The result is that libtool may fail to recognize shared libraries 14586*** as such. This will affect the creation of libtool libraries that 14587*** depend on shared libraries, but programs linked with such libtool 14588*** libraries will work regardless of this problem. Nevertheless, you 14589*** may want to report the problem to your system manager and/or to 14590*** bug-libtool@gnu.org 14591 14592_LT_EOF 14593 fi ;; 14594 esac 14595 fi 14596 break 14597 fi 14598 done 14599 IFS=$lt_save_ifs 14600 MAGIC_CMD=$lt_save_MAGIC_CMD 14601 ;; 14602esac 14603fi 14604 14605MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14606if test -n "$MAGIC_CMD"; then 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14608$as_echo "$MAGIC_CMD" >&6; } 14609else 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14611$as_echo "no" >&6; } 14612fi 14613 14614 14615 else 14616 MAGIC_CMD=: 14617 fi 14618fi 14619 14620 fi 14621 ;; 14622esac 14623 14624# Use C for the default configuration in the libtool script 14625 14626lt_save_CC=$CC 14627ac_ext=c 14628ac_cpp='$CPP $CPPFLAGS' 14629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14631ac_compiler_gnu=$ac_cv_c_compiler_gnu 14632 14633 14634# Source file extension for C test sources. 14635ac_ext=c 14636 14637# Object file extension for compiled C test sources. 14638objext=o 14639objext=$objext 14640 14641# Code to be used in simple compile tests 14642lt_simple_compile_test_code="int some_variable = 0;" 14643 14644# Code to be used in simple link tests 14645lt_simple_link_test_code='int main(){return(0);}' 14646 14647 14648 14649 14650 14651 14652 14653# If no C compiler was specified, use CC. 14654LTCC=${LTCC-"$CC"} 14655 14656# If no C compiler flags were specified, use CFLAGS. 14657LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14658 14659# Allow CC to be a program name with arguments. 14660compiler=$CC 14661 14662# Save the default compiler, since it gets overwritten when the other 14663# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14664compiler_DEFAULT=$CC 14665 14666# save warnings/boilerplate of simple test code 14667ac_outfile=conftest.$ac_objext 14668echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14670_lt_compiler_boilerplate=`cat conftest.err` 14671$RM conftest* 14672 14673ac_outfile=conftest.$ac_objext 14674echo "$lt_simple_link_test_code" >conftest.$ac_ext 14675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14676_lt_linker_boilerplate=`cat conftest.err` 14677$RM -r conftest* 14678 14679 14680if test -n "$compiler"; then 14681 14682lt_prog_compiler_no_builtin_flag= 14683 14684if test yes = "$GCC"; then 14685 case $cc_basename in 14686 nvcc*) 14687 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14688 *) 14689 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14690 esac 14691 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14693$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14694if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14695 $as_echo_n "(cached) " >&6 14696else 14697 lt_cv_prog_compiler_rtti_exceptions=no 14698 ac_outfile=conftest.$ac_objext 14699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14700 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14701 # Insert the option either (1) after the last *FLAGS variable, or 14702 # (2) before a word containing "conftest.", or (3) at the end. 14703 # Note that $ac_compile itself does not contain backslashes and begins 14704 # with a dollar sign (not a hyphen), so the echo should work correctly. 14705 # The option is referenced via a variable to avoid confusing sed. 14706 lt_compile=`echo "$ac_compile" | $SED \ 14707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14709 -e 's:$: $lt_compiler_flag:'` 14710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14711 (eval "$lt_compile" 2>conftest.err) 14712 ac_status=$? 14713 cat conftest.err >&5 14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14715 if (exit $ac_status) && test -s "$ac_outfile"; then 14716 # The compiler can only warn and ignore the option if not recognized 14717 # So say no if there are warnings other than the usual output. 14718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14721 lt_cv_prog_compiler_rtti_exceptions=yes 14722 fi 14723 fi 14724 $RM conftest* 14725 14726fi 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14728$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14729 14730if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14732else 14733 : 14734fi 14735 14736fi 14737 14738 14739 14740 14741 14742 14743 lt_prog_compiler_wl= 14744lt_prog_compiler_pic= 14745lt_prog_compiler_static= 14746 14747 14748 if test yes = "$GCC"; then 14749 lt_prog_compiler_wl='-Wl,' 14750 lt_prog_compiler_static='-static' 14751 14752 case $host_os in 14753 aix*) 14754 # All AIX code is PIC. 14755 if test ia64 = "$host_cpu"; then 14756 # AIX 5 now supports IA64 processor 14757 lt_prog_compiler_static='-Bstatic' 14758 fi 14759 lt_prog_compiler_pic='-fPIC' 14760 ;; 14761 14762 amigaos*) 14763 case $host_cpu in 14764 powerpc) 14765 # see comment about AmigaOS4 .so support 14766 lt_prog_compiler_pic='-fPIC' 14767 ;; 14768 m68k) 14769 # FIXME: we need at least 68020 code to build shared libraries, but 14770 # adding the '-m68020' flag to GCC prevents building anything better, 14771 # like '-m68040'. 14772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14773 ;; 14774 esac 14775 ;; 14776 14777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14778 # PIC is the default for these OSes. 14779 ;; 14780 14781 mingw* | cygwin* | pw32* | os2* | cegcc*) 14782 # This hack is so that the source file can tell whether it is being 14783 # built for inclusion in a dll (and should export symbols for example). 14784 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14785 # (--disable-auto-import) libraries 14786 lt_prog_compiler_pic='-DDLL_EXPORT' 14787 case $host_os in 14788 os2*) 14789 lt_prog_compiler_static='$wl-static' 14790 ;; 14791 esac 14792 ;; 14793 14794 darwin* | rhapsody*) 14795 # PIC is the default on this platform 14796 # Common symbols not allowed in MH_DYLIB files 14797 lt_prog_compiler_pic='-fno-common' 14798 ;; 14799 14800 haiku*) 14801 # PIC is the default for Haiku. 14802 # The "-static" flag exists, but is broken. 14803 lt_prog_compiler_static= 14804 ;; 14805 14806 hpux*) 14807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14809 # sets the default TLS model and affects inlining. 14810 case $host_cpu in 14811 hppa*64*) 14812 # +Z the default 14813 ;; 14814 *) 14815 lt_prog_compiler_pic='-fPIC' 14816 ;; 14817 esac 14818 ;; 14819 14820 interix[3-9]*) 14821 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14822 # Instead, we relocate shared libraries at runtime. 14823 ;; 14824 14825 msdosdjgpp*) 14826 # Just because we use GCC doesn't mean we suddenly get shared libraries 14827 # on systems that don't support them. 14828 lt_prog_compiler_can_build_shared=no 14829 enable_shared=no 14830 ;; 14831 14832 *nto* | *qnx*) 14833 # QNX uses GNU C++, but need to define -shared option too, otherwise 14834 # it will coredump. 14835 lt_prog_compiler_pic='-fPIC -shared' 14836 ;; 14837 14838 sysv4*MP*) 14839 if test -d /usr/nec; then 14840 lt_prog_compiler_pic=-Kconform_pic 14841 fi 14842 ;; 14843 14844 *) 14845 lt_prog_compiler_pic='-fPIC' 14846 ;; 14847 esac 14848 14849 case $cc_basename in 14850 nvcc*) # Cuda Compiler Driver 2.2 14851 lt_prog_compiler_wl='-Xlinker ' 14852 if test -n "$lt_prog_compiler_pic"; then 14853 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14854 fi 14855 ;; 14856 esac 14857 else 14858 # PORTME Check for flag to pass linker flags through the system compiler. 14859 case $host_os in 14860 aix*) 14861 lt_prog_compiler_wl='-Wl,' 14862 if test ia64 = "$host_cpu"; then 14863 # AIX 5 now supports IA64 processor 14864 lt_prog_compiler_static='-Bstatic' 14865 else 14866 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14867 fi 14868 ;; 14869 14870 darwin* | rhapsody*) 14871 # PIC is the default on this platform 14872 # Common symbols not allowed in MH_DYLIB files 14873 lt_prog_compiler_pic='-fno-common' 14874 case $cc_basename in 14875 nagfor*) 14876 # NAG Fortran compiler 14877 lt_prog_compiler_wl='-Wl,-Wl,,' 14878 lt_prog_compiler_pic='-PIC' 14879 lt_prog_compiler_static='-Bstatic' 14880 ;; 14881 esac 14882 ;; 14883 14884 mingw* | cygwin* | pw32* | os2* | cegcc*) 14885 # This hack is so that the source file can tell whether it is being 14886 # built for inclusion in a dll (and should export symbols for example). 14887 lt_prog_compiler_pic='-DDLL_EXPORT' 14888 case $host_os in 14889 os2*) 14890 lt_prog_compiler_static='$wl-static' 14891 ;; 14892 esac 14893 ;; 14894 14895 hpux9* | hpux10* | hpux11*) 14896 lt_prog_compiler_wl='-Wl,' 14897 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14898 # not for PA HP-UX. 14899 case $host_cpu in 14900 hppa*64*|ia64*) 14901 # +Z the default 14902 ;; 14903 *) 14904 lt_prog_compiler_pic='+Z' 14905 ;; 14906 esac 14907 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14908 lt_prog_compiler_static='$wl-a ${wl}archive' 14909 ;; 14910 14911 irix5* | irix6* | nonstopux*) 14912 lt_prog_compiler_wl='-Wl,' 14913 # PIC (with -KPIC) is the default. 14914 lt_prog_compiler_static='-non_shared' 14915 ;; 14916 14917 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14918 case $cc_basename in 14919 # old Intel for x86_64, which still supported -KPIC. 14920 ecc*) 14921 lt_prog_compiler_wl='-Wl,' 14922 lt_prog_compiler_pic='-KPIC' 14923 lt_prog_compiler_static='-static' 14924 ;; 14925 # icc used to be incompatible with GCC. 14926 # ICC 10 doesn't accept -KPIC any more. 14927 icc* | ifort*) 14928 lt_prog_compiler_wl='-Wl,' 14929 lt_prog_compiler_pic='-fPIC' 14930 lt_prog_compiler_static='-static' 14931 ;; 14932 # Lahey Fortran 8.1. 14933 lf95*) 14934 lt_prog_compiler_wl='-Wl,' 14935 lt_prog_compiler_pic='--shared' 14936 lt_prog_compiler_static='--static' 14937 ;; 14938 nagfor*) 14939 # NAG Fortran compiler 14940 lt_prog_compiler_wl='-Wl,-Wl,,' 14941 lt_prog_compiler_pic='-PIC' 14942 lt_prog_compiler_static='-Bstatic' 14943 ;; 14944 tcc*) 14945 # Fabrice Bellard et al's Tiny C Compiler 14946 lt_prog_compiler_wl='-Wl,' 14947 lt_prog_compiler_pic='-fPIC' 14948 lt_prog_compiler_static='-static' 14949 ;; 14950 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14951 # Portland Group compilers (*not* the Pentium gcc compiler, 14952 # which looks to be a dead project) 14953 lt_prog_compiler_wl='-Wl,' 14954 lt_prog_compiler_pic='-fpic' 14955 lt_prog_compiler_static='-Bstatic' 14956 ;; 14957 ccc*) 14958 lt_prog_compiler_wl='-Wl,' 14959 # All Alpha code is PIC. 14960 lt_prog_compiler_static='-non_shared' 14961 ;; 14962 xl* | bgxl* | bgf* | mpixl*) 14963 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14964 lt_prog_compiler_wl='-Wl,' 14965 lt_prog_compiler_pic='-qpic' 14966 lt_prog_compiler_static='-qstaticlink' 14967 ;; 14968 *) 14969 case `$CC -V 2>&1 | sed 5q` in 14970 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14971 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14972 lt_prog_compiler_pic='-KPIC' 14973 lt_prog_compiler_static='-Bstatic' 14974 lt_prog_compiler_wl='' 14975 ;; 14976 *Sun\ F* | *Sun*Fortran*) 14977 lt_prog_compiler_pic='-KPIC' 14978 lt_prog_compiler_static='-Bstatic' 14979 lt_prog_compiler_wl='-Qoption ld ' 14980 ;; 14981 *Sun\ C*) 14982 # Sun C 5.9 14983 lt_prog_compiler_pic='-KPIC' 14984 lt_prog_compiler_static='-Bstatic' 14985 lt_prog_compiler_wl='-Wl,' 14986 ;; 14987 *Intel*\ [CF]*Compiler*) 14988 lt_prog_compiler_wl='-Wl,' 14989 lt_prog_compiler_pic='-fPIC' 14990 lt_prog_compiler_static='-static' 14991 ;; 14992 *Portland\ Group*) 14993 lt_prog_compiler_wl='-Wl,' 14994 lt_prog_compiler_pic='-fpic' 14995 lt_prog_compiler_static='-Bstatic' 14996 ;; 14997 esac 14998 ;; 14999 esac 15000 ;; 15001 15002 newsos6) 15003 lt_prog_compiler_pic='-KPIC' 15004 lt_prog_compiler_static='-Bstatic' 15005 ;; 15006 15007 *nto* | *qnx*) 15008 # QNX uses GNU C++, but need to define -shared option too, otherwise 15009 # it will coredump. 15010 lt_prog_compiler_pic='-fPIC -shared' 15011 ;; 15012 15013 osf3* | osf4* | osf5*) 15014 lt_prog_compiler_wl='-Wl,' 15015 # All OSF/1 code is PIC. 15016 lt_prog_compiler_static='-non_shared' 15017 ;; 15018 15019 rdos*) 15020 lt_prog_compiler_static='-non_shared' 15021 ;; 15022 15023 solaris*) 15024 lt_prog_compiler_pic='-KPIC' 15025 lt_prog_compiler_static='-Bstatic' 15026 case $cc_basename in 15027 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15028 lt_prog_compiler_wl='-Qoption ld ';; 15029 *) 15030 lt_prog_compiler_wl='-Wl,';; 15031 esac 15032 ;; 15033 15034 sunos4*) 15035 lt_prog_compiler_wl='-Qoption ld ' 15036 lt_prog_compiler_pic='-PIC' 15037 lt_prog_compiler_static='-Bstatic' 15038 ;; 15039 15040 sysv4 | sysv4.2uw2* | sysv4.3*) 15041 lt_prog_compiler_wl='-Wl,' 15042 lt_prog_compiler_pic='-KPIC' 15043 lt_prog_compiler_static='-Bstatic' 15044 ;; 15045 15046 sysv4*MP*) 15047 if test -d /usr/nec; then 15048 lt_prog_compiler_pic='-Kconform_pic' 15049 lt_prog_compiler_static='-Bstatic' 15050 fi 15051 ;; 15052 15053 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15054 lt_prog_compiler_wl='-Wl,' 15055 lt_prog_compiler_pic='-KPIC' 15056 lt_prog_compiler_static='-Bstatic' 15057 ;; 15058 15059 unicos*) 15060 lt_prog_compiler_wl='-Wl,' 15061 lt_prog_compiler_can_build_shared=no 15062 ;; 15063 15064 uts4*) 15065 lt_prog_compiler_pic='-pic' 15066 lt_prog_compiler_static='-Bstatic' 15067 ;; 15068 15069 *) 15070 lt_prog_compiler_can_build_shared=no 15071 ;; 15072 esac 15073 fi 15074 15075case $host_os in 15076 # For platforms that do not support PIC, -DPIC is meaningless: 15077 *djgpp*) 15078 lt_prog_compiler_pic= 15079 ;; 15080 *) 15081 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15082 ;; 15083esac 15084 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15086$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15087if ${lt_cv_prog_compiler_pic+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15091fi 15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15093$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15094lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15095 15096# 15097# Check to make sure the PIC flag actually works. 15098# 15099if test -n "$lt_prog_compiler_pic"; then 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15101$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15102if ${lt_cv_prog_compiler_pic_works+:} false; then : 15103 $as_echo_n "(cached) " >&6 15104else 15105 lt_cv_prog_compiler_pic_works=no 15106 ac_outfile=conftest.$ac_objext 15107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15109 # Insert the option either (1) after the last *FLAGS variable, or 15110 # (2) before a word containing "conftest.", or (3) at the end. 15111 # Note that $ac_compile itself does not contain backslashes and begins 15112 # with a dollar sign (not a hyphen), so the echo should work correctly. 15113 # The option is referenced via a variable to avoid confusing sed. 15114 lt_compile=`echo "$ac_compile" | $SED \ 15115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15117 -e 's:$: $lt_compiler_flag:'` 15118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15119 (eval "$lt_compile" 2>conftest.err) 15120 ac_status=$? 15121 cat conftest.err >&5 15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15123 if (exit $ac_status) && test -s "$ac_outfile"; then 15124 # The compiler can only warn and ignore the option if not recognized 15125 # So say no if there are warnings other than the usual output. 15126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15129 lt_cv_prog_compiler_pic_works=yes 15130 fi 15131 fi 15132 $RM conftest* 15133 15134fi 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15136$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15137 15138if test yes = "$lt_cv_prog_compiler_pic_works"; then 15139 case $lt_prog_compiler_pic in 15140 "" | " "*) ;; 15141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15142 esac 15143else 15144 lt_prog_compiler_pic= 15145 lt_prog_compiler_can_build_shared=no 15146fi 15147 15148fi 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160# 15161# Check to make sure the static flag actually works. 15162# 15163wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15165$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15166if ${lt_cv_prog_compiler_static_works+:} false; then : 15167 $as_echo_n "(cached) " >&6 15168else 15169 lt_cv_prog_compiler_static_works=no 15170 save_LDFLAGS=$LDFLAGS 15171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15172 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15174 # The linker can only warn and ignore the option if not recognized 15175 # So say no if there are warnings 15176 if test -s conftest.err; then 15177 # Append any errors to the config.log. 15178 cat conftest.err 1>&5 15179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15181 if diff conftest.exp conftest.er2 >/dev/null; then 15182 lt_cv_prog_compiler_static_works=yes 15183 fi 15184 else 15185 lt_cv_prog_compiler_static_works=yes 15186 fi 15187 fi 15188 $RM -r conftest* 15189 LDFLAGS=$save_LDFLAGS 15190 15191fi 15192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15193$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15194 15195if test yes = "$lt_cv_prog_compiler_static_works"; then 15196 : 15197else 15198 lt_prog_compiler_static= 15199fi 15200 15201 15202 15203 15204 15205 15206 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15208$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15209if ${lt_cv_prog_compiler_c_o+:} false; then : 15210 $as_echo_n "(cached) " >&6 15211else 15212 lt_cv_prog_compiler_c_o=no 15213 $RM -r conftest 2>/dev/null 15214 mkdir conftest 15215 cd conftest 15216 mkdir out 15217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15218 15219 lt_compiler_flag="-o out/conftest2.$ac_objext" 15220 # Insert the option either (1) after the last *FLAGS variable, or 15221 # (2) before a word containing "conftest.", or (3) at the end. 15222 # Note that $ac_compile itself does not contain backslashes and begins 15223 # with a dollar sign (not a hyphen), so the echo should work correctly. 15224 lt_compile=`echo "$ac_compile" | $SED \ 15225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15227 -e 's:$: $lt_compiler_flag:'` 15228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15229 (eval "$lt_compile" 2>out/conftest.err) 15230 ac_status=$? 15231 cat out/conftest.err >&5 15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15233 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15234 then 15235 # The compiler can only warn and ignore the option if not recognized 15236 # So say no if there are warnings 15237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15240 lt_cv_prog_compiler_c_o=yes 15241 fi 15242 fi 15243 chmod u+w . 2>&5 15244 $RM conftest* 15245 # SGI C++ compiler will create directory out/ii_files/ for 15246 # template instantiation 15247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15248 $RM out/* && rmdir out 15249 cd .. 15250 $RM -r conftest 15251 $RM conftest* 15252 15253fi 15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15255$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15256 15257 15258 15259 15260 15261 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15263$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15264if ${lt_cv_prog_compiler_c_o+:} false; then : 15265 $as_echo_n "(cached) " >&6 15266else 15267 lt_cv_prog_compiler_c_o=no 15268 $RM -r conftest 2>/dev/null 15269 mkdir conftest 15270 cd conftest 15271 mkdir out 15272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15273 15274 lt_compiler_flag="-o out/conftest2.$ac_objext" 15275 # Insert the option either (1) after the last *FLAGS variable, or 15276 # (2) before a word containing "conftest.", or (3) at the end. 15277 # Note that $ac_compile itself does not contain backslashes and begins 15278 # with a dollar sign (not a hyphen), so the echo should work correctly. 15279 lt_compile=`echo "$ac_compile" | $SED \ 15280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15282 -e 's:$: $lt_compiler_flag:'` 15283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15284 (eval "$lt_compile" 2>out/conftest.err) 15285 ac_status=$? 15286 cat out/conftest.err >&5 15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15288 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15289 then 15290 # The compiler can only warn and ignore the option if not recognized 15291 # So say no if there are warnings 15292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15295 lt_cv_prog_compiler_c_o=yes 15296 fi 15297 fi 15298 chmod u+w . 2>&5 15299 $RM conftest* 15300 # SGI C++ compiler will create directory out/ii_files/ for 15301 # template instantiation 15302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15303 $RM out/* && rmdir out 15304 cd .. 15305 $RM -r conftest 15306 $RM conftest* 15307 15308fi 15309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15310$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15311 15312 15313 15314 15315hard_links=nottested 15316if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15317 # do not overwrite the value of need_locks provided by the user 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15319$as_echo_n "checking if we can lock with hard links... " >&6; } 15320 hard_links=yes 15321 $RM conftest* 15322 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15323 touch conftest.a 15324 ln conftest.a conftest.b 2>&5 || hard_links=no 15325 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15327$as_echo "$hard_links" >&6; } 15328 if test no = "$hard_links"; then 15329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15330$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15331 need_locks=warn 15332 fi 15333else 15334 need_locks=no 15335fi 15336 15337 15338 15339 15340 15341 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15343$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15344 15345 runpath_var= 15346 allow_undefined_flag= 15347 always_export_symbols=no 15348 archive_cmds= 15349 archive_expsym_cmds= 15350 compiler_needs_object=no 15351 enable_shared_with_static_runtimes=no 15352 export_dynamic_flag_spec= 15353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15354 hardcode_automatic=no 15355 hardcode_direct=no 15356 hardcode_direct_absolute=no 15357 hardcode_libdir_flag_spec= 15358 hardcode_libdir_separator= 15359 hardcode_minus_L=no 15360 hardcode_shlibpath_var=unsupported 15361 inherit_rpath=no 15362 link_all_deplibs=unknown 15363 module_cmds= 15364 module_expsym_cmds= 15365 old_archive_from_new_cmds= 15366 old_archive_from_expsyms_cmds= 15367 thread_safe_flag_spec= 15368 whole_archive_flag_spec= 15369 # include_expsyms should be a list of space-separated symbols to be *always* 15370 # included in the symbol list 15371 include_expsyms= 15372 # exclude_expsyms can be an extended regexp of symbols to exclude 15373 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15374 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15375 # as well as any symbol that contains 'd'. 15376 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15378 # platforms (ab)use it in PIC code, but their linkers get confused if 15379 # the symbol is explicitly referenced. Since portable code cannot 15380 # rely on this symbol name, it's probably fine to never include it in 15381 # preloaded symbol tables. 15382 # Exclude shared library initialization/finalization symbols. 15383 extract_expsyms_cmds= 15384 15385 case $host_os in 15386 cygwin* | mingw* | pw32* | cegcc*) 15387 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15388 # When not using gcc, we currently assume that we are using 15389 # Microsoft Visual C++. 15390 if test yes != "$GCC"; then 15391 with_gnu_ld=no 15392 fi 15393 ;; 15394 interix*) 15395 # we just hope/assume this is gcc and not c89 (= MSVC++) 15396 with_gnu_ld=yes 15397 ;; 15398 openbsd* | bitrig*) 15399 with_gnu_ld=no 15400 ;; 15401 esac 15402 15403 ld_shlibs=yes 15404 15405 # On some targets, GNU ld is compatible enough with the native linker 15406 # that we're better off using the native interface for both. 15407 lt_use_gnu_ld_interface=no 15408 if test yes = "$with_gnu_ld"; then 15409 case $host_os in 15410 aix*) 15411 # The AIX port of GNU ld has always aspired to compatibility 15412 # with the native linker. However, as the warning in the GNU ld 15413 # block says, versions before 2.19.5* couldn't really create working 15414 # shared libraries, regardless of the interface used. 15415 case `$LD -v 2>&1` in 15416 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15417 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15418 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15419 *) 15420 lt_use_gnu_ld_interface=yes 15421 ;; 15422 esac 15423 ;; 15424 *) 15425 lt_use_gnu_ld_interface=yes 15426 ;; 15427 esac 15428 fi 15429 15430 if test yes = "$lt_use_gnu_ld_interface"; then 15431 # If archive_cmds runs LD, not CC, wlarc should be empty 15432 wlarc='$wl' 15433 15434 # Set some defaults for GNU ld with shared library support. These 15435 # are reset later if shared libraries are not supported. Putting them 15436 # here allows them to be overridden if necessary. 15437 runpath_var=LD_RUN_PATH 15438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15439 export_dynamic_flag_spec='$wl--export-dynamic' 15440 # ancient GNU ld didn't support --whole-archive et. al. 15441 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15442 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15443 else 15444 whole_archive_flag_spec= 15445 fi 15446 supports_anon_versioning=no 15447 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15448 *GNU\ gold*) supports_anon_versioning=yes ;; 15449 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15450 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15451 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15452 *\ 2.11.*) ;; # other 2.11 versions 15453 *) supports_anon_versioning=yes ;; 15454 esac 15455 15456 # See if GNU ld supports shared libraries. 15457 case $host_os in 15458 aix[3-9]*) 15459 # On AIX/PPC, the GNU linker is very broken 15460 if test ia64 != "$host_cpu"; then 15461 ld_shlibs=no 15462 cat <<_LT_EOF 1>&2 15463 15464*** Warning: the GNU linker, at least up to release 2.19, is reported 15465*** to be unable to reliably create shared libraries on AIX. 15466*** Therefore, libtool is disabling shared libraries support. If you 15467*** really care for shared libraries, you may want to install binutils 15468*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15469*** You will then need to restart the configuration process. 15470 15471_LT_EOF 15472 fi 15473 ;; 15474 15475 amigaos*) 15476 case $host_cpu in 15477 powerpc) 15478 # see comment about AmigaOS4 .so support 15479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15480 archive_expsym_cmds='' 15481 ;; 15482 m68k) 15483 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)' 15484 hardcode_libdir_flag_spec='-L$libdir' 15485 hardcode_minus_L=yes 15486 ;; 15487 esac 15488 ;; 15489 15490 beos*) 15491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15492 allow_undefined_flag=unsupported 15493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15494 # support --undefined. This deserves some investigation. FIXME 15495 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15496 else 15497 ld_shlibs=no 15498 fi 15499 ;; 15500 15501 cygwin* | mingw* | pw32* | cegcc*) 15502 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15503 # as there is no search path for DLLs. 15504 hardcode_libdir_flag_spec='-L$libdir' 15505 export_dynamic_flag_spec='$wl--export-all-symbols' 15506 allow_undefined_flag=unsupported 15507 always_export_symbols=no 15508 enable_shared_with_static_runtimes=yes 15509 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' 15510 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15511 15512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15514 # If the export-symbols file already is a .def file, use it as 15515 # is; otherwise, prepend EXPORTS... 15516 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15517 cp $export_symbols $output_objdir/$soname.def; 15518 else 15519 echo EXPORTS > $output_objdir/$soname.def; 15520 cat $export_symbols >> $output_objdir/$soname.def; 15521 fi~ 15522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15523 else 15524 ld_shlibs=no 15525 fi 15526 ;; 15527 15528 haiku*) 15529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15530 link_all_deplibs=yes 15531 ;; 15532 15533 os2*) 15534 hardcode_libdir_flag_spec='-L$libdir' 15535 hardcode_minus_L=yes 15536 allow_undefined_flag=unsupported 15537 shrext_cmds=.dll 15538 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15541 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15542 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15543 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15544 emximp -o $lib $output_objdir/$libname.def' 15545 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15548 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15549 prefix_cmds="$SED"~ 15550 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15551 prefix_cmds="$prefix_cmds -e 1d"; 15552 fi~ 15553 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15554 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15555 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15556 emximp -o $lib $output_objdir/$libname.def' 15557 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15558 enable_shared_with_static_runtimes=yes 15559 ;; 15560 15561 interix[3-9]*) 15562 hardcode_direct=no 15563 hardcode_shlibpath_var=no 15564 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15565 export_dynamic_flag_spec='$wl-E' 15566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15567 # Instead, shared libraries are loaded at an image base (0x10000000 by 15568 # default) and relocated if they conflict, which is a slow very memory 15569 # consuming and fragmenting process. To avoid this, we pick a random, 15570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15571 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15573 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' 15574 ;; 15575 15576 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15577 tmp_diet=no 15578 if test linux-dietlibc = "$host_os"; then 15579 case $cc_basename in 15580 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15581 esac 15582 fi 15583 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15584 && test no = "$tmp_diet" 15585 then 15586 tmp_addflag=' $pic_flag' 15587 tmp_sharedflag='-shared' 15588 case $cc_basename,$host_cpu in 15589 pgcc*) # Portland Group C compiler 15590 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' 15591 tmp_addflag=' $pic_flag' 15592 ;; 15593 pgf77* | pgf90* | pgf95* | pgfortran*) 15594 # Portland Group f77 and f90 compilers 15595 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' 15596 tmp_addflag=' $pic_flag -Mnomain' ;; 15597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15598 tmp_addflag=' -i_dynamic' ;; 15599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15600 tmp_addflag=' -i_dynamic -nofor_main' ;; 15601 ifc* | ifort*) # Intel Fortran compiler 15602 tmp_addflag=' -nofor_main' ;; 15603 lf95*) # Lahey Fortran 8.1 15604 whole_archive_flag_spec= 15605 tmp_sharedflag='--shared' ;; 15606 nagfor*) # NAGFOR 5.3 15607 tmp_sharedflag='-Wl,-shared' ;; 15608 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15609 tmp_sharedflag='-qmkshrobj' 15610 tmp_addflag= ;; 15611 nvcc*) # Cuda Compiler Driver 2.2 15612 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' 15613 compiler_needs_object=yes 15614 ;; 15615 esac 15616 case `$CC -V 2>&1 | sed 5q` in 15617 *Sun\ C*) # Sun C 5.9 15618 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' 15619 compiler_needs_object=yes 15620 tmp_sharedflag='-G' ;; 15621 *Sun\ F*) # Sun Fortran 8.3 15622 tmp_sharedflag='-G' ;; 15623 esac 15624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15625 15626 if test yes = "$supports_anon_versioning"; then 15627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15629 echo "local: *; };" >> $output_objdir/$libname.ver~ 15630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15631 fi 15632 15633 case $cc_basename in 15634 tcc*) 15635 export_dynamic_flag_spec='-rdynamic' 15636 ;; 15637 xlf* | bgf* | bgxlf* | mpixlf*) 15638 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15639 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15641 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15642 if test yes = "$supports_anon_versioning"; then 15643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15645 echo "local: *; };" >> $output_objdir/$libname.ver~ 15646 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15647 fi 15648 ;; 15649 esac 15650 else 15651 ld_shlibs=no 15652 fi 15653 ;; 15654 15655 netbsd*) 15656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15658 wlarc= 15659 else 15660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15662 fi 15663 ;; 15664 15665 solaris*) 15666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15667 ld_shlibs=no 15668 cat <<_LT_EOF 1>&2 15669 15670*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15671*** create shared libraries on Solaris systems. Therefore, libtool 15672*** is disabling shared libraries support. We urge you to upgrade GNU 15673*** binutils to release 2.9.1 or newer. Another option is to modify 15674*** your PATH or compiler configuration so that the native linker is 15675*** used, and then restart. 15676 15677_LT_EOF 15678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15680 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15681 else 15682 ld_shlibs=no 15683 fi 15684 ;; 15685 15686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15687 case `$LD -v 2>&1` in 15688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15689 ld_shlibs=no 15690 cat <<_LT_EOF 1>&2 15691 15692*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15693*** reliably create shared libraries on SCO systems. Therefore, libtool 15694*** is disabling shared libraries support. We urge you to upgrade GNU 15695*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15696*** your PATH or compiler configuration so that the native linker is 15697*** used, and then restart. 15698 15699_LT_EOF 15700 ;; 15701 *) 15702 # For security reasons, it is highly recommended that you always 15703 # use absolute paths for naming shared libraries, and exclude the 15704 # DT_RUNPATH tag from executables and libraries. But doing so 15705 # requires that you compile everything twice, which is a pain. 15706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15710 else 15711 ld_shlibs=no 15712 fi 15713 ;; 15714 esac 15715 ;; 15716 15717 sunos4*) 15718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15719 wlarc= 15720 hardcode_direct=yes 15721 hardcode_shlibpath_var=no 15722 ;; 15723 15724 *) 15725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15726 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15727 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15728 else 15729 ld_shlibs=no 15730 fi 15731 ;; 15732 esac 15733 15734 if test no = "$ld_shlibs"; then 15735 runpath_var= 15736 hardcode_libdir_flag_spec= 15737 export_dynamic_flag_spec= 15738 whole_archive_flag_spec= 15739 fi 15740 else 15741 # PORTME fill in a description of your system's linker (not GNU ld) 15742 case $host_os in 15743 aix3*) 15744 allow_undefined_flag=unsupported 15745 always_export_symbols=yes 15746 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' 15747 # Note: this linker hardcodes the directories in LIBPATH if there 15748 # are no directories specified by -L. 15749 hardcode_minus_L=yes 15750 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15751 # Neither direct hardcoding nor static linking is supported with a 15752 # broken collect2. 15753 hardcode_direct=unsupported 15754 fi 15755 ;; 15756 15757 aix[4-9]*) 15758 if test ia64 = "$host_cpu"; then 15759 # On IA64, the linker does run time linking by default, so we don't 15760 # have to do anything special. 15761 aix_use_runtimelinking=no 15762 exp_sym_flag='-Bexport' 15763 no_entry_flag= 15764 else 15765 # If we're using GNU nm, then we don't want the "-C" option. 15766 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15767 # Without the "-l" option, or with the "-B" option, AIX nm treats 15768 # weak defined symbols like other global defined symbols, whereas 15769 # GNU nm marks them as "W". 15770 # While the 'weak' keyword is ignored in the Export File, we need 15771 # it in the Import File for the 'aix-soname' feature, so we have 15772 # to replace the "-B" option with "-P" for AIX nm. 15773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15774 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' 15775 else 15776 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' 15777 fi 15778 aix_use_runtimelinking=no 15779 15780 # Test if we are trying to use run time linking or normal 15781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15782 # have runtime linking enabled, and use it for executables. 15783 # For shared libraries, we enable/disable runtime linking 15784 # depending on the kind of the shared library created - 15785 # when "with_aix_soname,aix_use_runtimelinking" is: 15786 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15787 # "aix,yes" lib.so shared, rtl:yes, for executables 15788 # lib.a static archive 15789 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15790 # lib.a(lib.so.V) shared, rtl:no, for executables 15791 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15792 # lib.a(lib.so.V) shared, rtl:no 15793 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15794 # lib.a static archive 15795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15796 for ld_flag in $LDFLAGS; do 15797 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15798 aix_use_runtimelinking=yes 15799 break 15800 fi 15801 done 15802 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15803 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15804 # so we don't have lib.a shared libs to link our executables. 15805 # We have to force runtime linking in this case. 15806 aix_use_runtimelinking=yes 15807 LDFLAGS="$LDFLAGS -Wl,-brtl" 15808 fi 15809 ;; 15810 esac 15811 15812 exp_sym_flag='-bexport' 15813 no_entry_flag='-bnoentry' 15814 fi 15815 15816 # When large executables or shared objects are built, AIX ld can 15817 # have problems creating the table of contents. If linking a library 15818 # or program results in "error TOC overflow" add -mminimal-toc to 15819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15821 15822 archive_cmds='' 15823 hardcode_direct=yes 15824 hardcode_direct_absolute=yes 15825 hardcode_libdir_separator=':' 15826 link_all_deplibs=yes 15827 file_list_spec='$wl-f,' 15828 case $with_aix_soname,$aix_use_runtimelinking in 15829 aix,*) ;; # traditional, no import file 15830 svr4,* | *,yes) # use import file 15831 # The Import File defines what to hardcode. 15832 hardcode_direct=no 15833 hardcode_direct_absolute=no 15834 ;; 15835 esac 15836 15837 if test yes = "$GCC"; then 15838 case $host_os in aix4.[012]|aix4.[012].*) 15839 # We only want to do this on AIX 4.2 and lower, the check 15840 # below for broken collect2 doesn't work under 4.3+ 15841 collect2name=`$CC -print-prog-name=collect2` 15842 if test -f "$collect2name" && 15843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15844 then 15845 # We have reworked collect2 15846 : 15847 else 15848 # We have old collect2 15849 hardcode_direct=unsupported 15850 # It fails to find uninstalled libraries when the uninstalled 15851 # path is not listed in the libpath. Setting hardcode_minus_L 15852 # to unsupported forces relinking 15853 hardcode_minus_L=yes 15854 hardcode_libdir_flag_spec='-L$libdir' 15855 hardcode_libdir_separator= 15856 fi 15857 ;; 15858 esac 15859 shared_flag='-shared' 15860 if test yes = "$aix_use_runtimelinking"; then 15861 shared_flag="$shared_flag "'$wl-G' 15862 fi 15863 # Need to ensure runtime linking is disabled for the traditional 15864 # shared library, or the linker may eventually find shared libraries 15865 # /with/ Import File - we do not want to mix them. 15866 shared_flag_aix='-shared' 15867 shared_flag_svr4='-shared $wl-G' 15868 else 15869 # not using gcc 15870 if test ia64 = "$host_cpu"; then 15871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15872 # chokes on -Wl,-G. The following line is correct: 15873 shared_flag='-G' 15874 else 15875 if test yes = "$aix_use_runtimelinking"; then 15876 shared_flag='$wl-G' 15877 else 15878 shared_flag='$wl-bM:SRE' 15879 fi 15880 shared_flag_aix='$wl-bM:SRE' 15881 shared_flag_svr4='$wl-G' 15882 fi 15883 fi 15884 15885 export_dynamic_flag_spec='$wl-bexpall' 15886 # It seems that -bexpall does not export symbols beginning with 15887 # underscore (_), so it is better to generate a list of symbols to export. 15888 always_export_symbols=yes 15889 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15890 # Warning - without using the other runtime loading flags (-brtl), 15891 # -berok will link without error, but may produce a broken library. 15892 allow_undefined_flag='-berok' 15893 # Determine the default libpath from the value encoded in an 15894 # empty executable. 15895 if test set = "${lt_cv_aix_libpath+set}"; then 15896 aix_libpath=$lt_cv_aix_libpath 15897else 15898 if ${lt_cv_aix_libpath_+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902/* end confdefs.h. */ 15903 15904int 15905main () 15906{ 15907 15908 ; 15909 return 0; 15910} 15911_ACEOF 15912if ac_fn_c_try_link "$LINENO"; then : 15913 15914 lt_aix_libpath_sed=' 15915 /Import File Strings/,/^$/ { 15916 /^0/ { 15917 s/^0 *\([^ ]*\) *$/\1/ 15918 p 15919 } 15920 }' 15921 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15922 # Check for a 64-bit object if we didn't find anything. 15923 if test -z "$lt_cv_aix_libpath_"; then 15924 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15925 fi 15926fi 15927rm -f core conftest.err conftest.$ac_objext \ 15928 conftest$ac_exeext conftest.$ac_ext 15929 if test -z "$lt_cv_aix_libpath_"; then 15930 lt_cv_aix_libpath_=/usr/lib:/lib 15931 fi 15932 15933fi 15934 15935 aix_libpath=$lt_cv_aix_libpath_ 15936fi 15937 15938 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15939 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 15940 else 15941 if test ia64 = "$host_cpu"; then 15942 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15943 allow_undefined_flag="-z nodefs" 15944 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" 15945 else 15946 # Determine the default libpath from the value encoded in an 15947 # empty executable. 15948 if test set = "${lt_cv_aix_libpath+set}"; then 15949 aix_libpath=$lt_cv_aix_libpath 15950else 15951 if ${lt_cv_aix_libpath_+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15955/* end confdefs.h. */ 15956 15957int 15958main () 15959{ 15960 15961 ; 15962 return 0; 15963} 15964_ACEOF 15965if ac_fn_c_try_link "$LINENO"; then : 15966 15967 lt_aix_libpath_sed=' 15968 /Import File Strings/,/^$/ { 15969 /^0/ { 15970 s/^0 *\([^ ]*\) *$/\1/ 15971 p 15972 } 15973 }' 15974 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15975 # Check for a 64-bit object if we didn't find anything. 15976 if test -z "$lt_cv_aix_libpath_"; then 15977 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15978 fi 15979fi 15980rm -f core conftest.err conftest.$ac_objext \ 15981 conftest$ac_exeext conftest.$ac_ext 15982 if test -z "$lt_cv_aix_libpath_"; then 15983 lt_cv_aix_libpath_=/usr/lib:/lib 15984 fi 15985 15986fi 15987 15988 aix_libpath=$lt_cv_aix_libpath_ 15989fi 15990 15991 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15992 # Warning - without using the other run time loading flags, 15993 # -berok will link without error, but may produce a broken library. 15994 no_undefined_flag=' $wl-bernotok' 15995 allow_undefined_flag=' $wl-berok' 15996 if test yes = "$with_gnu_ld"; then 15997 # We only use this code for GNU lds that support --whole-archive. 15998 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15999 else 16000 # Exported symbols can be pulled into shared objects from archives 16001 whole_archive_flag_spec='$convenience' 16002 fi 16003 archive_cmds_need_lc=yes 16004 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16005 # -brtl affects multiple linker settings, -berok does not and is overridden later 16006 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16007 if test svr4 != "$with_aix_soname"; then 16008 # This is similar to how AIX traditionally builds its shared libraries. 16009 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' 16010 fi 16011 if test aix != "$with_aix_soname"; then 16012 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' 16013 else 16014 # used by -dlpreopen to get the symbols 16015 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16016 fi 16017 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16018 fi 16019 fi 16020 ;; 16021 16022 amigaos*) 16023 case $host_cpu in 16024 powerpc) 16025 # see comment about AmigaOS4 .so support 16026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16027 archive_expsym_cmds='' 16028 ;; 16029 m68k) 16030 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)' 16031 hardcode_libdir_flag_spec='-L$libdir' 16032 hardcode_minus_L=yes 16033 ;; 16034 esac 16035 ;; 16036 16037 bsdi[45]*) 16038 export_dynamic_flag_spec=-rdynamic 16039 ;; 16040 16041 cygwin* | mingw* | pw32* | cegcc*) 16042 # When not using gcc, we currently assume that we are using 16043 # Microsoft Visual C++. 16044 # hardcode_libdir_flag_spec is actually meaningless, as there is 16045 # no search path for DLLs. 16046 case $cc_basename in 16047 cl*) 16048 # Native MSVC 16049 hardcode_libdir_flag_spec=' ' 16050 allow_undefined_flag=unsupported 16051 always_export_symbols=yes 16052 file_list_spec='@' 16053 # Tell ltmain to make .lib files, not .a files. 16054 libext=lib 16055 # Tell ltmain to make .dll files, not .so files. 16056 shrext_cmds=.dll 16057 # FIXME: Setting linknames here is a bad hack. 16058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16060 cp "$export_symbols" "$output_objdir/$soname.def"; 16061 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16062 else 16063 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16064 fi~ 16065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16066 linknames=' 16067 # The linker will not automatically build a static lib if we build a DLL. 16068 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16069 enable_shared_with_static_runtimes=yes 16070 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16072 # Don't use ranlib 16073 old_postinstall_cmds='chmod 644 $oldlib' 16074 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16075 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16076 case $lt_outputfile in 16077 *.exe|*.EXE) ;; 16078 *) 16079 lt_outputfile=$lt_outputfile.exe 16080 lt_tool_outputfile=$lt_tool_outputfile.exe 16081 ;; 16082 esac~ 16083 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16084 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16085 $RM "$lt_outputfile.manifest"; 16086 fi' 16087 ;; 16088 *) 16089 # Assume MSVC wrapper 16090 hardcode_libdir_flag_spec=' ' 16091 allow_undefined_flag=unsupported 16092 # Tell ltmain to make .lib files, not .a files. 16093 libext=lib 16094 # Tell ltmain to make .dll files, not .so files. 16095 shrext_cmds=.dll 16096 # FIXME: Setting linknames here is a bad hack. 16097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16098 # The linker will automatically build a .lib file if we build a DLL. 16099 old_archive_from_new_cmds='true' 16100 # FIXME: Should let the user specify the lib program. 16101 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16102 enable_shared_with_static_runtimes=yes 16103 ;; 16104 esac 16105 ;; 16106 16107 darwin* | rhapsody*) 16108 16109 16110 archive_cmds_need_lc=no 16111 hardcode_direct=no 16112 hardcode_automatic=yes 16113 hardcode_shlibpath_var=unsupported 16114 if test yes = "$lt_cv_ld_force_load"; then 16115 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\"`' 16116 16117 else 16118 whole_archive_flag_spec='' 16119 fi 16120 link_all_deplibs=yes 16121 allow_undefined_flag=$_lt_dar_allow_undefined 16122 case $cc_basename in 16123 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16124 *) _lt_dar_can_shared=$GCC ;; 16125 esac 16126 if test yes = "$_lt_dar_can_shared"; then 16127 output_verbose_link_cmd=func_echo_all 16128 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16129 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16130 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" 16131 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" 16132 16133 else 16134 ld_shlibs=no 16135 fi 16136 16137 ;; 16138 16139 dgux*) 16140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16141 hardcode_libdir_flag_spec='-L$libdir' 16142 hardcode_shlibpath_var=no 16143 ;; 16144 16145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16146 # support. Future versions do this automatically, but an explicit c++rt0.o 16147 # does not break anything, and helps significantly (at the cost of a little 16148 # extra space). 16149 freebsd2.2*) 16150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16151 hardcode_libdir_flag_spec='-R$libdir' 16152 hardcode_direct=yes 16153 hardcode_shlibpath_var=no 16154 ;; 16155 16156 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16157 freebsd2.*) 16158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16159 hardcode_direct=yes 16160 hardcode_minus_L=yes 16161 hardcode_shlibpath_var=no 16162 ;; 16163 16164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16165 freebsd* | dragonfly*) 16166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16167 hardcode_libdir_flag_spec='-R$libdir' 16168 hardcode_direct=yes 16169 hardcode_shlibpath_var=no 16170 ;; 16171 16172 hpux9*) 16173 if test yes = "$GCC"; then 16174 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' 16175 else 16176 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' 16177 fi 16178 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16179 hardcode_libdir_separator=: 16180 hardcode_direct=yes 16181 16182 # hardcode_minus_L: Not really in the search PATH, 16183 # but as the default location of the library. 16184 hardcode_minus_L=yes 16185 export_dynamic_flag_spec='$wl-E' 16186 ;; 16187 16188 hpux10*) 16189 if test yes,no = "$GCC,$with_gnu_ld"; then 16190 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16191 else 16192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16193 fi 16194 if test no = "$with_gnu_ld"; then 16195 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16196 hardcode_libdir_separator=: 16197 hardcode_direct=yes 16198 hardcode_direct_absolute=yes 16199 export_dynamic_flag_spec='$wl-E' 16200 # hardcode_minus_L: Not really in the search PATH, 16201 # but as the default location of the library. 16202 hardcode_minus_L=yes 16203 fi 16204 ;; 16205 16206 hpux11*) 16207 if test yes,no = "$GCC,$with_gnu_ld"; then 16208 case $host_cpu in 16209 hppa*64*) 16210 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16211 ;; 16212 ia64*) 16213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16214 ;; 16215 *) 16216 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16217 ;; 16218 esac 16219 else 16220 case $host_cpu in 16221 hppa*64*) 16222 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16223 ;; 16224 ia64*) 16225 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16226 ;; 16227 *) 16228 16229 # Older versions of the 11.00 compiler do not understand -b yet 16230 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16232$as_echo_n "checking if $CC understands -b... " >&6; } 16233if ${lt_cv_prog_compiler__b+:} false; then : 16234 $as_echo_n "(cached) " >&6 16235else 16236 lt_cv_prog_compiler__b=no 16237 save_LDFLAGS=$LDFLAGS 16238 LDFLAGS="$LDFLAGS -b" 16239 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16241 # The linker can only warn and ignore the option if not recognized 16242 # So say no if there are warnings 16243 if test -s conftest.err; then 16244 # Append any errors to the config.log. 16245 cat conftest.err 1>&5 16246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16248 if diff conftest.exp conftest.er2 >/dev/null; then 16249 lt_cv_prog_compiler__b=yes 16250 fi 16251 else 16252 lt_cv_prog_compiler__b=yes 16253 fi 16254 fi 16255 $RM -r conftest* 16256 LDFLAGS=$save_LDFLAGS 16257 16258fi 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16260$as_echo "$lt_cv_prog_compiler__b" >&6; } 16261 16262if test yes = "$lt_cv_prog_compiler__b"; then 16263 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16264else 16265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16266fi 16267 16268 ;; 16269 esac 16270 fi 16271 if test no = "$with_gnu_ld"; then 16272 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16273 hardcode_libdir_separator=: 16274 16275 case $host_cpu in 16276 hppa*64*|ia64*) 16277 hardcode_direct=no 16278 hardcode_shlibpath_var=no 16279 ;; 16280 *) 16281 hardcode_direct=yes 16282 hardcode_direct_absolute=yes 16283 export_dynamic_flag_spec='$wl-E' 16284 16285 # hardcode_minus_L: Not really in the search PATH, 16286 # but as the default location of the library. 16287 hardcode_minus_L=yes 16288 ;; 16289 esac 16290 fi 16291 ;; 16292 16293 irix5* | irix6* | nonstopux*) 16294 if test yes = "$GCC"; then 16295 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' 16296 # Try to use the -exported_symbol ld option, if it does not 16297 # work, assume that -exports_file does not work either and 16298 # implicitly export all symbols. 16299 # This should be the same for all languages, so no per-tag cache variable. 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16301$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16302if ${lt_cv_irix_exported_symbol+:} false; then : 16303 $as_echo_n "(cached) " >&6 16304else 16305 save_LDFLAGS=$LDFLAGS 16306 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308/* end confdefs.h. */ 16309int foo (void) { return 0; } 16310_ACEOF 16311if ac_fn_c_try_link "$LINENO"; then : 16312 lt_cv_irix_exported_symbol=yes 16313else 16314 lt_cv_irix_exported_symbol=no 16315fi 16316rm -f core conftest.err conftest.$ac_objext \ 16317 conftest$ac_exeext conftest.$ac_ext 16318 LDFLAGS=$save_LDFLAGS 16319fi 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16321$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16322 if test yes = "$lt_cv_irix_exported_symbol"; then 16323 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' 16324 fi 16325 else 16326 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' 16327 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' 16328 fi 16329 archive_cmds_need_lc='no' 16330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16331 hardcode_libdir_separator=: 16332 inherit_rpath=yes 16333 link_all_deplibs=yes 16334 ;; 16335 16336 linux*) 16337 case $cc_basename in 16338 tcc*) 16339 # Fabrice Bellard et al's Tiny C Compiler 16340 ld_shlibs=yes 16341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16342 ;; 16343 esac 16344 ;; 16345 16346 netbsd*) 16347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16349 else 16350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16351 fi 16352 hardcode_libdir_flag_spec='-R$libdir' 16353 hardcode_direct=yes 16354 hardcode_shlibpath_var=no 16355 ;; 16356 16357 newsos6) 16358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16359 hardcode_direct=yes 16360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16361 hardcode_libdir_separator=: 16362 hardcode_shlibpath_var=no 16363 ;; 16364 16365 *nto* | *qnx*) 16366 ;; 16367 16368 openbsd* | bitrig*) 16369 if test -f /usr/libexec/ld.so; then 16370 hardcode_direct=yes 16371 hardcode_shlibpath_var=no 16372 hardcode_direct_absolute=yes 16373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16376 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16377 export_dynamic_flag_spec='$wl-E' 16378 else 16379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16380 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16381 fi 16382 else 16383 ld_shlibs=no 16384 fi 16385 ;; 16386 16387 os2*) 16388 hardcode_libdir_flag_spec='-L$libdir' 16389 hardcode_minus_L=yes 16390 allow_undefined_flag=unsupported 16391 shrext_cmds=.dll 16392 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16395 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16396 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16397 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16398 emximp -o $lib $output_objdir/$libname.def' 16399 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16400 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16401 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16402 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16403 prefix_cmds="$SED"~ 16404 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16405 prefix_cmds="$prefix_cmds -e 1d"; 16406 fi~ 16407 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16408 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16410 emximp -o $lib $output_objdir/$libname.def' 16411 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16412 enable_shared_with_static_runtimes=yes 16413 ;; 16414 16415 osf3*) 16416 if test yes = "$GCC"; then 16417 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16418 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' 16419 else 16420 allow_undefined_flag=' -expect_unresolved \*' 16421 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' 16422 fi 16423 archive_cmds_need_lc='no' 16424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16425 hardcode_libdir_separator=: 16426 ;; 16427 16428 osf4* | osf5*) # as osf3* with the addition of -msym flag 16429 if test yes = "$GCC"; then 16430 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16431 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' 16432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16433 else 16434 allow_undefined_flag=' -expect_unresolved \*' 16435 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' 16436 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~ 16437 $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' 16438 16439 # Both c and cxx compiler support -rpath directly 16440 hardcode_libdir_flag_spec='-rpath $libdir' 16441 fi 16442 archive_cmds_need_lc='no' 16443 hardcode_libdir_separator=: 16444 ;; 16445 16446 solaris*) 16447 no_undefined_flag=' -z defs' 16448 if test yes = "$GCC"; then 16449 wlarc='$wl' 16450 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16452 $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' 16453 else 16454 case `$CC -V 2>&1` in 16455 *"Compilers 5.0"*) 16456 wlarc='' 16457 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16458 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16459 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16460 ;; 16461 *) 16462 wlarc='$wl' 16463 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16465 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16466 ;; 16467 esac 16468 fi 16469 hardcode_libdir_flag_spec='-R$libdir' 16470 hardcode_shlibpath_var=no 16471 case $host_os in 16472 solaris2.[0-5] | solaris2.[0-5].*) ;; 16473 *) 16474 # The compiler driver will combine and reorder linker options, 16475 # but understands '-z linker_flag'. GCC discards it without '$wl', 16476 # but is careful enough not to reorder. 16477 # Supported since Solaris 2.6 (maybe 2.5.1?) 16478 if test yes = "$GCC"; then 16479 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16480 else 16481 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16482 fi 16483 ;; 16484 esac 16485 link_all_deplibs=yes 16486 ;; 16487 16488 sunos4*) 16489 if test sequent = "$host_vendor"; then 16490 # Use $CC to link under sequent, because it throws in some extra .o 16491 # files that make .init and .fini sections work. 16492 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16493 else 16494 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16495 fi 16496 hardcode_libdir_flag_spec='-L$libdir' 16497 hardcode_direct=yes 16498 hardcode_minus_L=yes 16499 hardcode_shlibpath_var=no 16500 ;; 16501 16502 sysv4) 16503 case $host_vendor in 16504 sni) 16505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16506 hardcode_direct=yes # is this really true??? 16507 ;; 16508 siemens) 16509 ## LD is ld it makes a PLAMLIB 16510 ## CC just makes a GrossModule. 16511 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16512 reload_cmds='$CC -r -o $output$reload_objs' 16513 hardcode_direct=no 16514 ;; 16515 motorola) 16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16517 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16518 ;; 16519 esac 16520 runpath_var='LD_RUN_PATH' 16521 hardcode_shlibpath_var=no 16522 ;; 16523 16524 sysv4.3*) 16525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16526 hardcode_shlibpath_var=no 16527 export_dynamic_flag_spec='-Bexport' 16528 ;; 16529 16530 sysv4*MP*) 16531 if test -d /usr/nec; then 16532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16533 hardcode_shlibpath_var=no 16534 runpath_var=LD_RUN_PATH 16535 hardcode_runpath_var=yes 16536 ld_shlibs=yes 16537 fi 16538 ;; 16539 16540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16541 no_undefined_flag='$wl-z,text' 16542 archive_cmds_need_lc=no 16543 hardcode_shlibpath_var=no 16544 runpath_var='LD_RUN_PATH' 16545 16546 if test yes = "$GCC"; then 16547 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16548 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16549 else 16550 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16551 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16552 fi 16553 ;; 16554 16555 sysv5* | sco3.2v5* | sco5v6*) 16556 # Note: We CANNOT use -z defs as we might desire, because we do not 16557 # link with -lc, and that would cause any symbols used from libc to 16558 # always be unresolved, which means just about no library would 16559 # ever link correctly. If we're not using GNU ld we use -z text 16560 # though, which does catch some bad symbols but isn't as heavy-handed 16561 # as -z defs. 16562 no_undefined_flag='$wl-z,text' 16563 allow_undefined_flag='$wl-z,nodefs' 16564 archive_cmds_need_lc=no 16565 hardcode_shlibpath_var=no 16566 hardcode_libdir_flag_spec='$wl-R,$libdir' 16567 hardcode_libdir_separator=':' 16568 link_all_deplibs=yes 16569 export_dynamic_flag_spec='$wl-Bexport' 16570 runpath_var='LD_RUN_PATH' 16571 16572 if test yes = "$GCC"; then 16573 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16574 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16575 else 16576 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16577 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16578 fi 16579 ;; 16580 16581 uts4*) 16582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16583 hardcode_libdir_flag_spec='-L$libdir' 16584 hardcode_shlibpath_var=no 16585 ;; 16586 16587 *) 16588 ld_shlibs=no 16589 ;; 16590 esac 16591 16592 if test sni = "$host_vendor"; then 16593 case $host in 16594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16595 export_dynamic_flag_spec='$wl-Blargedynsym' 16596 ;; 16597 esac 16598 fi 16599 fi 16600 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16602$as_echo "$ld_shlibs" >&6; } 16603test no = "$ld_shlibs" && can_build_shared=no 16604 16605with_gnu_ld=$with_gnu_ld 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621# 16622# Do we need to explicitly link libc? 16623# 16624case "x$archive_cmds_need_lc" in 16625x|xyes) 16626 # Assume -lc should be added 16627 archive_cmds_need_lc=yes 16628 16629 if test yes,yes = "$GCC,$enable_shared"; then 16630 case $archive_cmds in 16631 *'~'*) 16632 # FIXME: we may have to deal with multi-command sequences. 16633 ;; 16634 '$CC '*) 16635 # Test whether the compiler implicitly links with -lc since on some 16636 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16637 # to ld, don't add -lc before -lgcc. 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16639$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16640if ${lt_cv_archive_cmds_need_lc+:} false; then : 16641 $as_echo_n "(cached) " >&6 16642else 16643 $RM conftest* 16644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16645 16646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16647 (eval $ac_compile) 2>&5 16648 ac_status=$? 16649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16650 test $ac_status = 0; } 2>conftest.err; then 16651 soname=conftest 16652 lib=conftest 16653 libobjs=conftest.$ac_objext 16654 deplibs= 16655 wl=$lt_prog_compiler_wl 16656 pic_flag=$lt_prog_compiler_pic 16657 compiler_flags=-v 16658 linker_flags=-v 16659 verstring= 16660 output_objdir=. 16661 libname=conftest 16662 lt_save_allow_undefined_flag=$allow_undefined_flag 16663 allow_undefined_flag= 16664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16665 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16666 ac_status=$? 16667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16668 test $ac_status = 0; } 16669 then 16670 lt_cv_archive_cmds_need_lc=no 16671 else 16672 lt_cv_archive_cmds_need_lc=yes 16673 fi 16674 allow_undefined_flag=$lt_save_allow_undefined_flag 16675 else 16676 cat conftest.err 1>&5 16677 fi 16678 $RM conftest* 16679 16680fi 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16682$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16683 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16684 ;; 16685 esac 16686 fi 16687 ;; 16688esac 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16842$as_echo_n "checking dynamic linker characteristics... " >&6; } 16843 16844if test yes = "$GCC"; then 16845 case $host_os in 16846 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16847 *) lt_awk_arg='/^libraries:/' ;; 16848 esac 16849 case $host_os in 16850 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16851 *) lt_sed_strip_eq='s|=/|/|g' ;; 16852 esac 16853 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16854 case $lt_search_path_spec in 16855 *\;*) 16856 # if the path contains ";" then we assume it to be the separator 16857 # otherwise default to the standard path separator (i.e. ":") - it is 16858 # assumed that no part of a normal pathname contains ";" but that should 16859 # okay in the real world where ";" in dirpaths is itself problematic. 16860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16861 ;; 16862 *) 16863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16864 ;; 16865 esac 16866 # Ok, now we have the path, separated by spaces, we can step through it 16867 # and add multilib dir if necessary... 16868 lt_tmp_lt_search_path_spec= 16869 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16870 # ...but if some path component already ends with the multilib dir we assume 16871 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16872 case "$lt_multi_os_dir; $lt_search_path_spec " in 16873 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16874 lt_multi_os_dir= 16875 ;; 16876 esac 16877 for lt_sys_path in $lt_search_path_spec; do 16878 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16880 elif test -n "$lt_multi_os_dir"; then 16881 test -d "$lt_sys_path" && \ 16882 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16883 fi 16884 done 16885 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16886BEGIN {RS = " "; FS = "/|\n";} { 16887 lt_foo = ""; 16888 lt_count = 0; 16889 for (lt_i = NF; lt_i > 0; lt_i--) { 16890 if ($lt_i != "" && $lt_i != ".") { 16891 if ($lt_i == "..") { 16892 lt_count++; 16893 } else { 16894 if (lt_count == 0) { 16895 lt_foo = "/" $lt_i lt_foo; 16896 } else { 16897 lt_count--; 16898 } 16899 } 16900 } 16901 } 16902 if (lt_foo != "") { lt_freq[lt_foo]++; } 16903 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16904}'` 16905 # AWK program above erroneously prepends '/' to C:/dos/paths 16906 # for these hosts. 16907 case $host_os in 16908 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16909 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16910 esac 16911 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16912else 16913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16914fi 16915library_names_spec= 16916libname_spec='lib$name' 16917soname_spec= 16918shrext_cmds=.so 16919postinstall_cmds= 16920postuninstall_cmds= 16921finish_cmds= 16922finish_eval= 16923shlibpath_var= 16924shlibpath_overrides_runpath=unknown 16925version_type=none 16926dynamic_linker="$host_os ld.so" 16927sys_lib_dlsearch_path_spec="/lib /usr/lib" 16928need_lib_prefix=unknown 16929hardcode_into_libs=no 16930 16931# when you set need_version to no, make sure it does not cause -set_version 16932# flags to be left without arguments 16933need_version=unknown 16934 16935 16936 16937case $host_os in 16938aix3*) 16939 version_type=linux # correct to gnu/linux during the next big refactor 16940 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16941 shlibpath_var=LIBPATH 16942 16943 # AIX 3 has no versioning support, so we append a major version to the name. 16944 soname_spec='$libname$release$shared_ext$major' 16945 ;; 16946 16947aix[4-9]*) 16948 version_type=linux # correct to gnu/linux during the next big refactor 16949 need_lib_prefix=no 16950 need_version=no 16951 hardcode_into_libs=yes 16952 if test ia64 = "$host_cpu"; then 16953 # AIX 5 supports IA64 16954 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16955 shlibpath_var=LD_LIBRARY_PATH 16956 else 16957 # With GCC up to 2.95.x, collect2 would create an import file 16958 # for dependence libraries. The import file would start with 16959 # the line '#! .'. This would cause the generated library to 16960 # depend on '.', always an invalid library. This was fixed in 16961 # development snapshots of GCC prior to 3.0. 16962 case $host_os in 16963 aix4 | aix4.[01] | aix4.[01].*) 16964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16965 echo ' yes ' 16966 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16967 : 16968 else 16969 can_build_shared=no 16970 fi 16971 ;; 16972 esac 16973 # Using Import Files as archive members, it is possible to support 16974 # filename-based versioning of shared library archives on AIX. While 16975 # this would work for both with and without runtime linking, it will 16976 # prevent static linking of such archives. So we do filename-based 16977 # shared library versioning with .so extension only, which is used 16978 # when both runtime linking and shared linking is enabled. 16979 # Unfortunately, runtime linking may impact performance, so we do 16980 # not want this to be the default eventually. Also, we use the 16981 # versioned .so libs for executables only if there is the -brtl 16982 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16983 # To allow for filename-based versioning support, we need to create 16984 # libNAME.so.V as an archive file, containing: 16985 # *) an Import File, referring to the versioned filename of the 16986 # archive as well as the shared archive member, telling the 16987 # bitwidth (32 or 64) of that shared object, and providing the 16988 # list of exported symbols of that shared object, eventually 16989 # decorated with the 'weak' keyword 16990 # *) the shared object with the F_LOADONLY flag set, to really avoid 16991 # it being seen by the linker. 16992 # At run time we better use the real file rather than another symlink, 16993 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16994 16995 case $with_aix_soname,$aix_use_runtimelinking in 16996 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16997 # soname into executable. Probably we can add versioning support to 16998 # collect2, so additional links can be useful in future. 16999 aix,yes) # traditional libtool 17000 dynamic_linker='AIX unversionable lib.so' 17001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17002 # instead of lib<name>.a to let people know that these are not 17003 # typical AIX shared libraries. 17004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17005 ;; 17006 aix,no) # traditional AIX only 17007 dynamic_linker='AIX lib.a(lib.so.V)' 17008 # We preserve .a as extension for shared libraries through AIX4.2 17009 # and later when we are not doing run time linking. 17010 library_names_spec='$libname$release.a $libname.a' 17011 soname_spec='$libname$release$shared_ext$major' 17012 ;; 17013 svr4,*) # full svr4 only 17014 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17015 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17016 # We do not specify a path in Import Files, so LIBPATH fires. 17017 shlibpath_overrides_runpath=yes 17018 ;; 17019 *,yes) # both, prefer svr4 17020 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17021 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17022 # unpreferred sharedlib libNAME.a needs extra handling 17023 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"' 17024 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"' 17025 # We do not specify a path in Import Files, so LIBPATH fires. 17026 shlibpath_overrides_runpath=yes 17027 ;; 17028 *,no) # both, prefer aix 17029 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17030 library_names_spec='$libname$release.a $libname.a' 17031 soname_spec='$libname$release$shared_ext$major' 17032 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17033 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)' 17034 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"' 17035 ;; 17036 esac 17037 shlibpath_var=LIBPATH 17038 fi 17039 ;; 17040 17041amigaos*) 17042 case $host_cpu in 17043 powerpc) 17044 # Since July 2007 AmigaOS4 officially supports .so libraries. 17045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17047 ;; 17048 m68k) 17049 library_names_spec='$libname.ixlibrary $libname.a' 17050 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17051 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' 17052 ;; 17053 esac 17054 ;; 17055 17056beos*) 17057 library_names_spec='$libname$shared_ext' 17058 dynamic_linker="$host_os ld.so" 17059 shlibpath_var=LIBRARY_PATH 17060 ;; 17061 17062bsdi[45]*) 17063 version_type=linux # correct to gnu/linux during the next big refactor 17064 need_version=no 17065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17066 soname_spec='$libname$release$shared_ext$major' 17067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17068 shlibpath_var=LD_LIBRARY_PATH 17069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17071 # the default ld.so.conf also contains /usr/contrib/lib and 17072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17073 # libtool to hard-code these into programs 17074 ;; 17075 17076cygwin* | mingw* | pw32* | cegcc*) 17077 version_type=windows 17078 shrext_cmds=.dll 17079 need_version=no 17080 need_lib_prefix=no 17081 17082 case $GCC,$cc_basename in 17083 yes,*) 17084 # gcc 17085 library_names_spec='$libname.dll.a' 17086 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17087 postinstall_cmds='base_file=`basename \$file`~ 17088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17089 dldir=$destdir/`dirname \$dlpath`~ 17090 test -d \$dldir || mkdir -p \$dldir~ 17091 $install_prog $dir/$dlname \$dldir/$dlname~ 17092 chmod a+x \$dldir/$dlname~ 17093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17095 fi' 17096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17097 dlpath=$dir/\$dldll~ 17098 $RM \$dlpath' 17099 shlibpath_overrides_runpath=yes 17100 17101 case $host_os in 17102 cygwin*) 17103 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17104 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17105 17106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17107 ;; 17108 mingw* | cegcc*) 17109 # MinGW DLLs use traditional 'lib' prefix 17110 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17111 ;; 17112 pw32*) 17113 # pw32 DLLs use 'pw' prefix rather than 'lib' 17114 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17115 ;; 17116 esac 17117 dynamic_linker='Win32 ld.exe' 17118 ;; 17119 17120 *,cl*) 17121 # Native MSVC 17122 libname_spec='$name' 17123 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17124 library_names_spec='$libname.dll.lib' 17125 17126 case $build_os in 17127 mingw*) 17128 sys_lib_search_path_spec= 17129 lt_save_ifs=$IFS 17130 IFS=';' 17131 for lt_path in $LIB 17132 do 17133 IFS=$lt_save_ifs 17134 # Let DOS variable expansion print the short 8.3 style file name. 17135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17137 done 17138 IFS=$lt_save_ifs 17139 # Convert to MSYS style. 17140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17141 ;; 17142 cygwin*) 17143 # Convert to unix form, then to dos form, then back to unix form 17144 # but this time dos style (no spaces!) so that the unix form looks 17145 # like /cygdrive/c/PROGRA~1:/cygdr... 17146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17149 ;; 17150 *) 17151 sys_lib_search_path_spec=$LIB 17152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17153 # It is most probably a Windows format PATH. 17154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17155 else 17156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17157 fi 17158 # FIXME: find the short name or the path components, as spaces are 17159 # common. (e.g. "Program Files" -> "PROGRA~1") 17160 ;; 17161 esac 17162 17163 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17164 postinstall_cmds='base_file=`basename \$file`~ 17165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17166 dldir=$destdir/`dirname \$dlpath`~ 17167 test -d \$dldir || mkdir -p \$dldir~ 17168 $install_prog $dir/$dlname \$dldir/$dlname' 17169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17170 dlpath=$dir/\$dldll~ 17171 $RM \$dlpath' 17172 shlibpath_overrides_runpath=yes 17173 dynamic_linker='Win32 link.exe' 17174 ;; 17175 17176 *) 17177 # Assume MSVC wrapper 17178 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17179 dynamic_linker='Win32 ld.exe' 17180 ;; 17181 esac 17182 # FIXME: first we should search . and the directory the executable is in 17183 shlibpath_var=PATH 17184 ;; 17185 17186darwin* | rhapsody*) 17187 dynamic_linker="$host_os dyld" 17188 version_type=darwin 17189 need_lib_prefix=no 17190 need_version=no 17191 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17192 soname_spec='$libname$release$major$shared_ext' 17193 shlibpath_overrides_runpath=yes 17194 shlibpath_var=DYLD_LIBRARY_PATH 17195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17196 17197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17199 ;; 17200 17201dgux*) 17202 version_type=linux # correct to gnu/linux during the next big refactor 17203 need_lib_prefix=no 17204 need_version=no 17205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17206 soname_spec='$libname$release$shared_ext$major' 17207 shlibpath_var=LD_LIBRARY_PATH 17208 ;; 17209 17210freebsd* | dragonfly*) 17211 # DragonFly does not have aout. When/if they implement a new 17212 # versioning mechanism, adjust this. 17213 if test -x /usr/bin/objformat; then 17214 objformat=`/usr/bin/objformat` 17215 else 17216 case $host_os in 17217 freebsd[23].*) objformat=aout ;; 17218 *) objformat=elf ;; 17219 esac 17220 fi 17221 # Handle Gentoo/FreeBSD as it was Linux 17222 case $host_vendor in 17223 gentoo) 17224 version_type=linux ;; 17225 *) 17226 version_type=freebsd-$objformat ;; 17227 esac 17228 17229 case $version_type in 17230 freebsd-elf*) 17231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17232 soname_spec='$libname$release$shared_ext$major' 17233 need_version=no 17234 need_lib_prefix=no 17235 ;; 17236 freebsd-*) 17237 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17238 need_version=yes 17239 ;; 17240 linux) 17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17242 soname_spec='${libname}${release}${shared_ext}$major' 17243 need_lib_prefix=no 17244 need_version=no 17245 ;; 17246 esac 17247 shlibpath_var=LD_LIBRARY_PATH 17248 case $host_os in 17249 freebsd2.*) 17250 shlibpath_overrides_runpath=yes 17251 ;; 17252 freebsd3.[01]* | freebsdelf3.[01]*) 17253 shlibpath_overrides_runpath=yes 17254 hardcode_into_libs=yes 17255 ;; 17256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17258 shlibpath_overrides_runpath=no 17259 hardcode_into_libs=yes 17260 ;; 17261 *) # from 4.6 on, and DragonFly 17262 shlibpath_overrides_runpath=yes 17263 hardcode_into_libs=yes 17264 ;; 17265 esac 17266 ;; 17267 17268haiku*) 17269 version_type=linux # correct to gnu/linux during the next big refactor 17270 need_lib_prefix=no 17271 need_version=no 17272 dynamic_linker="$host_os runtime_loader" 17273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17274 soname_spec='$libname$release$shared_ext$major' 17275 shlibpath_var=LIBRARY_PATH 17276 shlibpath_overrides_runpath=no 17277 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17278 hardcode_into_libs=yes 17279 ;; 17280 17281hpux9* | hpux10* | hpux11*) 17282 # Give a soname corresponding to the major version so that dld.sl refuses to 17283 # link against other versions. 17284 version_type=sunos 17285 need_lib_prefix=no 17286 need_version=no 17287 case $host_cpu in 17288 ia64*) 17289 shrext_cmds='.so' 17290 hardcode_into_libs=yes 17291 dynamic_linker="$host_os dld.so" 17292 shlibpath_var=LD_LIBRARY_PATH 17293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17295 soname_spec='$libname$release$shared_ext$major' 17296 if test 32 = "$HPUX_IA64_MODE"; then 17297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17298 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17299 else 17300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17301 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17302 fi 17303 ;; 17304 hppa*64*) 17305 shrext_cmds='.sl' 17306 hardcode_into_libs=yes 17307 dynamic_linker="$host_os dld.sl" 17308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17311 soname_spec='$libname$release$shared_ext$major' 17312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17314 ;; 17315 *) 17316 shrext_cmds='.sl' 17317 dynamic_linker="$host_os dld.sl" 17318 shlibpath_var=SHLIB_PATH 17319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17321 soname_spec='$libname$release$shared_ext$major' 17322 ;; 17323 esac 17324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17325 postinstall_cmds='chmod 555 $lib' 17326 # or fails outright, so override atomically: 17327 install_override_mode=555 17328 ;; 17329 17330interix[3-9]*) 17331 version_type=linux # correct to gnu/linux during the next big refactor 17332 need_lib_prefix=no 17333 need_version=no 17334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17335 soname_spec='$libname$release$shared_ext$major' 17336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17337 shlibpath_var=LD_LIBRARY_PATH 17338 shlibpath_overrides_runpath=no 17339 hardcode_into_libs=yes 17340 ;; 17341 17342irix5* | irix6* | nonstopux*) 17343 case $host_os in 17344 nonstopux*) version_type=nonstopux ;; 17345 *) 17346 if test yes = "$lt_cv_prog_gnu_ld"; then 17347 version_type=linux # correct to gnu/linux during the next big refactor 17348 else 17349 version_type=irix 17350 fi ;; 17351 esac 17352 need_lib_prefix=no 17353 need_version=no 17354 soname_spec='$libname$release$shared_ext$major' 17355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17356 case $host_os in 17357 irix5* | nonstopux*) 17358 libsuff= shlibsuff= 17359 ;; 17360 *) 17361 case $LD in # libtool.m4 will add one of these switches to LD 17362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17363 libsuff= shlibsuff= libmagic=32-bit;; 17364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17365 libsuff=32 shlibsuff=N32 libmagic=N32;; 17366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17367 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17368 *) libsuff= shlibsuff= libmagic=never-match;; 17369 esac 17370 ;; 17371 esac 17372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17373 shlibpath_overrides_runpath=no 17374 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17375 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17376 hardcode_into_libs=yes 17377 ;; 17378 17379# No shared lib support for Linux oldld, aout, or coff. 17380linux*oldld* | linux*aout* | linux*coff*) 17381 dynamic_linker=no 17382 ;; 17383 17384linux*android*) 17385 version_type=none # Android doesn't support versioned libraries. 17386 need_lib_prefix=no 17387 need_version=no 17388 library_names_spec='$libname$release$shared_ext' 17389 soname_spec='$libname$release$shared_ext' 17390 finish_cmds= 17391 shlibpath_var=LD_LIBRARY_PATH 17392 shlibpath_overrides_runpath=yes 17393 17394 # This implies no fast_install, which is unacceptable. 17395 # Some rework will be needed to allow for fast_install 17396 # before this can be enabled. 17397 hardcode_into_libs=yes 17398 17399 dynamic_linker='Android linker' 17400 # Don't embed -rpath directories since the linker doesn't support them. 17401 hardcode_libdir_flag_spec='-L$libdir' 17402 ;; 17403 17404# This must be glibc/ELF. 17405linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17406 version_type=linux # correct to gnu/linux during the next big refactor 17407 need_lib_prefix=no 17408 need_version=no 17409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17410 soname_spec='$libname$release$shared_ext$major' 17411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17412 shlibpath_var=LD_LIBRARY_PATH 17413 shlibpath_overrides_runpath=no 17414 17415 # Some binutils ld are patched to set DT_RUNPATH 17416 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 lt_cv_shlibpath_overrides_runpath=no 17420 save_LDFLAGS=$LDFLAGS 17421 save_libdir=$libdir 17422 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17423 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17425/* end confdefs.h. */ 17426 17427int 17428main () 17429{ 17430 17431 ; 17432 return 0; 17433} 17434_ACEOF 17435if ac_fn_c_try_link "$LINENO"; then : 17436 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17437 lt_cv_shlibpath_overrides_runpath=yes 17438fi 17439fi 17440rm -f core conftest.err conftest.$ac_objext \ 17441 conftest$ac_exeext conftest.$ac_ext 17442 LDFLAGS=$save_LDFLAGS 17443 libdir=$save_libdir 17444 17445fi 17446 17447 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17448 17449 # This implies no fast_install, which is unacceptable. 17450 # Some rework will be needed to allow for fast_install 17451 # before this can be enabled. 17452 hardcode_into_libs=yes 17453 17454 # Ideally, we could use ldconfig to report *all* directores which are 17455 # searched for libraries, however this is still not possible. Aside from not 17456 # being certain /sbin/ldconfig is available, command 17457 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17458 # even though it is searched at run-time. Try to do the best guess by 17459 # appending ld.so.conf contents (and includes) to the search path. 17460 if test -f /etc/ld.so.conf; then 17461 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' ' '` 17462 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17463 fi 17464 17465 # We used to test for /lib/ld.so.1 and disable shared libraries on 17466 # powerpc, because MkLinux only supported shared libraries with the 17467 # GNU dynamic linker. Since this was broken with cross compilers, 17468 # most powerpc-linux boxes support dynamic linking these days and 17469 # people can always --disable-shared, the test was removed, and we 17470 # assume the GNU/Linux dynamic linker is in use. 17471 dynamic_linker='GNU/Linux ld.so' 17472 ;; 17473 17474netbsd*) 17475 version_type=sunos 17476 need_lib_prefix=no 17477 need_version=no 17478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17481 dynamic_linker='NetBSD (a.out) ld.so' 17482 else 17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17484 soname_spec='$libname$release$shared_ext$major' 17485 dynamic_linker='NetBSD ld.elf_so' 17486 fi 17487 shlibpath_var=LD_LIBRARY_PATH 17488 shlibpath_overrides_runpath=yes 17489 hardcode_into_libs=yes 17490 ;; 17491 17492newsos6) 17493 version_type=linux # correct to gnu/linux during the next big refactor 17494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17495 shlibpath_var=LD_LIBRARY_PATH 17496 shlibpath_overrides_runpath=yes 17497 ;; 17498 17499*nto* | *qnx*) 17500 version_type=qnx 17501 need_lib_prefix=no 17502 need_version=no 17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17504 soname_spec='$libname$release$shared_ext$major' 17505 shlibpath_var=LD_LIBRARY_PATH 17506 shlibpath_overrides_runpath=no 17507 hardcode_into_libs=yes 17508 dynamic_linker='ldqnx.so' 17509 ;; 17510 17511openbsd* | bitrig*) 17512 version_type=sunos 17513 sys_lib_dlsearch_path_spec=/usr/lib 17514 need_lib_prefix=no 17515 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17516 need_version=no 17517 else 17518 need_version=yes 17519 fi 17520 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17522 shlibpath_var=LD_LIBRARY_PATH 17523 shlibpath_overrides_runpath=yes 17524 ;; 17525 17526os2*) 17527 libname_spec='$name' 17528 version_type=windows 17529 shrext_cmds=.dll 17530 need_version=no 17531 need_lib_prefix=no 17532 # OS/2 can only load a DLL with a base name of 8 characters or less. 17533 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17534 v=$($ECHO $release$versuffix | tr -d .-); 17535 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17536 $ECHO $n$v`$shared_ext' 17537 library_names_spec='${libname}_dll.$libext' 17538 dynamic_linker='OS/2 ld.exe' 17539 shlibpath_var=BEGINLIBPATH 17540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17542 postinstall_cmds='base_file=`basename \$file`~ 17543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17544 dldir=$destdir/`dirname \$dlpath`~ 17545 test -d \$dldir || mkdir -p \$dldir~ 17546 $install_prog $dir/$dlname \$dldir/$dlname~ 17547 chmod a+x \$dldir/$dlname~ 17548 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17549 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17550 fi' 17551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17552 dlpath=$dir/\$dldll~ 17553 $RM \$dlpath' 17554 ;; 17555 17556osf3* | osf4* | osf5*) 17557 version_type=osf 17558 need_lib_prefix=no 17559 need_version=no 17560 soname_spec='$libname$release$shared_ext$major' 17561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17562 shlibpath_var=LD_LIBRARY_PATH 17563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17565 ;; 17566 17567rdos*) 17568 dynamic_linker=no 17569 ;; 17570 17571solaris*) 17572 version_type=linux # correct to gnu/linux during the next big refactor 17573 need_lib_prefix=no 17574 need_version=no 17575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17576 soname_spec='$libname$release$shared_ext$major' 17577 shlibpath_var=LD_LIBRARY_PATH 17578 shlibpath_overrides_runpath=yes 17579 hardcode_into_libs=yes 17580 # ldd complains unless libraries are executable 17581 postinstall_cmds='chmod +x $lib' 17582 ;; 17583 17584sunos4*) 17585 version_type=sunos 17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17588 shlibpath_var=LD_LIBRARY_PATH 17589 shlibpath_overrides_runpath=yes 17590 if test yes = "$with_gnu_ld"; then 17591 need_lib_prefix=no 17592 fi 17593 need_version=yes 17594 ;; 17595 17596sysv4 | sysv4.3*) 17597 version_type=linux # correct to gnu/linux during the next big refactor 17598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17599 soname_spec='$libname$release$shared_ext$major' 17600 shlibpath_var=LD_LIBRARY_PATH 17601 case $host_vendor in 17602 sni) 17603 shlibpath_overrides_runpath=no 17604 need_lib_prefix=no 17605 runpath_var=LD_RUN_PATH 17606 ;; 17607 siemens) 17608 need_lib_prefix=no 17609 ;; 17610 motorola) 17611 need_lib_prefix=no 17612 need_version=no 17613 shlibpath_overrides_runpath=no 17614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17615 ;; 17616 esac 17617 ;; 17618 17619sysv4*MP*) 17620 if test -d /usr/nec; then 17621 version_type=linux # correct to gnu/linux during the next big refactor 17622 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17623 soname_spec='$libname$shared_ext.$major' 17624 shlibpath_var=LD_LIBRARY_PATH 17625 fi 17626 ;; 17627 17628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17629 version_type=sco 17630 need_lib_prefix=no 17631 need_version=no 17632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17633 soname_spec='$libname$release$shared_ext$major' 17634 shlibpath_var=LD_LIBRARY_PATH 17635 shlibpath_overrides_runpath=yes 17636 hardcode_into_libs=yes 17637 if test yes = "$with_gnu_ld"; then 17638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17639 else 17640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17641 case $host_os in 17642 sco3.2v5*) 17643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17644 ;; 17645 esac 17646 fi 17647 sys_lib_dlsearch_path_spec='/usr/lib' 17648 ;; 17649 17650tpf*) 17651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17652 version_type=linux # correct to gnu/linux during the next big refactor 17653 need_lib_prefix=no 17654 need_version=no 17655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17656 shlibpath_var=LD_LIBRARY_PATH 17657 shlibpath_overrides_runpath=no 17658 hardcode_into_libs=yes 17659 ;; 17660 17661uts4*) 17662 version_type=linux # correct to gnu/linux during the next big refactor 17663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17664 soname_spec='$libname$release$shared_ext$major' 17665 shlibpath_var=LD_LIBRARY_PATH 17666 ;; 17667 17668*) 17669 dynamic_linker=no 17670 ;; 17671esac 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17673$as_echo "$dynamic_linker" >&6; } 17674test no = "$dynamic_linker" && can_build_shared=no 17675 17676variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17677if test yes = "$GCC"; then 17678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17679fi 17680 17681if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17682 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17683fi 17684 17685if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17686 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17687fi 17688 17689# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17690configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17691 17692# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17693func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17694 17695# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17696configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17795$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17796hardcode_action= 17797if test -n "$hardcode_libdir_flag_spec" || 17798 test -n "$runpath_var" || 17799 test yes = "$hardcode_automatic"; then 17800 17801 # We can hardcode non-existent directories. 17802 if test no != "$hardcode_direct" && 17803 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17804 # have to relink, otherwise we might link with an installed library 17805 # when we should be linking with a yet-to-be-installed one 17806 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17807 test no != "$hardcode_minus_L"; then 17808 # Linking always hardcodes the temporary library directory. 17809 hardcode_action=relink 17810 else 17811 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17812 hardcode_action=immediate 17813 fi 17814else 17815 # We cannot hardcode anything, or else we can only hardcode existing 17816 # directories. 17817 hardcode_action=unsupported 17818fi 17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17820$as_echo "$hardcode_action" >&6; } 17821 17822if test relink = "$hardcode_action" || 17823 test yes = "$inherit_rpath"; then 17824 # Fast installation is not supported 17825 enable_fast_install=no 17826elif test yes = "$shlibpath_overrides_runpath" || 17827 test no = "$enable_shared"; then 17828 # Fast installation is not necessary 17829 enable_fast_install=needless 17830fi 17831 17832 17833 17834 17835 17836 17837 if test yes != "$enable_dlopen"; then 17838 enable_dlopen=unknown 17839 enable_dlopen_self=unknown 17840 enable_dlopen_self_static=unknown 17841else 17842 lt_cv_dlopen=no 17843 lt_cv_dlopen_libs= 17844 17845 case $host_os in 17846 beos*) 17847 lt_cv_dlopen=load_add_on 17848 lt_cv_dlopen_libs= 17849 lt_cv_dlopen_self=yes 17850 ;; 17851 17852 mingw* | pw32* | cegcc*) 17853 lt_cv_dlopen=LoadLibrary 17854 lt_cv_dlopen_libs= 17855 ;; 17856 17857 cygwin*) 17858 lt_cv_dlopen=dlopen 17859 lt_cv_dlopen_libs= 17860 ;; 17861 17862 darwin*) 17863 # if libdl is installed we need to link against it 17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17865$as_echo_n "checking for dlopen in -ldl... " >&6; } 17866if ${ac_cv_lib_dl_dlopen+:} false; then : 17867 $as_echo_n "(cached) " >&6 17868else 17869 ac_check_lib_save_LIBS=$LIBS 17870LIBS="-ldl $LIBS" 17871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873 17874/* Override any GCC internal prototype to avoid an error. 17875 Use char because int might match the return type of a GCC 17876 builtin and then its argument prototype would still apply. */ 17877#ifdef __cplusplus 17878extern "C" 17879#endif 17880char dlopen (); 17881int 17882main () 17883{ 17884return dlopen (); 17885 ; 17886 return 0; 17887} 17888_ACEOF 17889if ac_fn_c_try_link "$LINENO"; then : 17890 ac_cv_lib_dl_dlopen=yes 17891else 17892 ac_cv_lib_dl_dlopen=no 17893fi 17894rm -f core conftest.err conftest.$ac_objext \ 17895 conftest$ac_exeext conftest.$ac_ext 17896LIBS=$ac_check_lib_save_LIBS 17897fi 17898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17899$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17900if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17901 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17902else 17903 17904 lt_cv_dlopen=dyld 17905 lt_cv_dlopen_libs= 17906 lt_cv_dlopen_self=yes 17907 17908fi 17909 17910 ;; 17911 17912 tpf*) 17913 # Don't try to run any link tests for TPF. We know it's impossible 17914 # because TPF is a cross-compiler, and we know how we open DSOs. 17915 lt_cv_dlopen=dlopen 17916 lt_cv_dlopen_libs= 17917 lt_cv_dlopen_self=no 17918 ;; 17919 17920 *) 17921 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17922if test "x$ac_cv_func_shl_load" = xyes; then : 17923 lt_cv_dlopen=shl_load 17924else 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17926$as_echo_n "checking for shl_load in -ldld... " >&6; } 17927if ${ac_cv_lib_dld_shl_load+:} false; then : 17928 $as_echo_n "(cached) " >&6 17929else 17930 ac_check_lib_save_LIBS=$LIBS 17931LIBS="-ldld $LIBS" 17932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933/* end confdefs.h. */ 17934 17935/* Override any GCC internal prototype to avoid an error. 17936 Use char because int might match the return type of a GCC 17937 builtin and then its argument prototype would still apply. */ 17938#ifdef __cplusplus 17939extern "C" 17940#endif 17941char shl_load (); 17942int 17943main () 17944{ 17945return shl_load (); 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_link "$LINENO"; then : 17951 ac_cv_lib_dld_shl_load=yes 17952else 17953 ac_cv_lib_dld_shl_load=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext \ 17956 conftest$ac_exeext conftest.$ac_ext 17957LIBS=$ac_check_lib_save_LIBS 17958fi 17959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17960$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17961if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17962 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17963else 17964 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17965if test "x$ac_cv_func_dlopen" = xyes; then : 17966 lt_cv_dlopen=dlopen 17967else 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17969$as_echo_n "checking for dlopen in -ldl... " >&6; } 17970if ${ac_cv_lib_dl_dlopen+:} false; then : 17971 $as_echo_n "(cached) " >&6 17972else 17973 ac_check_lib_save_LIBS=$LIBS 17974LIBS="-ldl $LIBS" 17975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17976/* end confdefs.h. */ 17977 17978/* Override any GCC internal prototype to avoid an error. 17979 Use char because int might match the return type of a GCC 17980 builtin and then its argument prototype would still apply. */ 17981#ifdef __cplusplus 17982extern "C" 17983#endif 17984char dlopen (); 17985int 17986main () 17987{ 17988return dlopen (); 17989 ; 17990 return 0; 17991} 17992_ACEOF 17993if ac_fn_c_try_link "$LINENO"; then : 17994 ac_cv_lib_dl_dlopen=yes 17995else 17996 ac_cv_lib_dl_dlopen=no 17997fi 17998rm -f core conftest.err conftest.$ac_objext \ 17999 conftest$ac_exeext conftest.$ac_ext 18000LIBS=$ac_check_lib_save_LIBS 18001fi 18002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18003$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18004if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18005 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18006else 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18008$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18009if ${ac_cv_lib_svld_dlopen+:} false; then : 18010 $as_echo_n "(cached) " >&6 18011else 18012 ac_check_lib_save_LIBS=$LIBS 18013LIBS="-lsvld $LIBS" 18014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18015/* end confdefs.h. */ 18016 18017/* Override any GCC internal prototype to avoid an error. 18018 Use char because int might match the return type of a GCC 18019 builtin and then its argument prototype would still apply. */ 18020#ifdef __cplusplus 18021extern "C" 18022#endif 18023char dlopen (); 18024int 18025main () 18026{ 18027return dlopen (); 18028 ; 18029 return 0; 18030} 18031_ACEOF 18032if ac_fn_c_try_link "$LINENO"; then : 18033 ac_cv_lib_svld_dlopen=yes 18034else 18035 ac_cv_lib_svld_dlopen=no 18036fi 18037rm -f core conftest.err conftest.$ac_objext \ 18038 conftest$ac_exeext conftest.$ac_ext 18039LIBS=$ac_check_lib_save_LIBS 18040fi 18041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18042$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18043if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18044 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18045else 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18047$as_echo_n "checking for dld_link in -ldld... " >&6; } 18048if ${ac_cv_lib_dld_dld_link+:} false; then : 18049 $as_echo_n "(cached) " >&6 18050else 18051 ac_check_lib_save_LIBS=$LIBS 18052LIBS="-ldld $LIBS" 18053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18054/* end confdefs.h. */ 18055 18056/* Override any GCC internal prototype to avoid an error. 18057 Use char because int might match the return type of a GCC 18058 builtin and then its argument prototype would still apply. */ 18059#ifdef __cplusplus 18060extern "C" 18061#endif 18062char dld_link (); 18063int 18064main () 18065{ 18066return dld_link (); 18067 ; 18068 return 0; 18069} 18070_ACEOF 18071if ac_fn_c_try_link "$LINENO"; then : 18072 ac_cv_lib_dld_dld_link=yes 18073else 18074 ac_cv_lib_dld_dld_link=no 18075fi 18076rm -f core conftest.err conftest.$ac_objext \ 18077 conftest$ac_exeext conftest.$ac_ext 18078LIBS=$ac_check_lib_save_LIBS 18079fi 18080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18081$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18082if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18083 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18084fi 18085 18086 18087fi 18088 18089 18090fi 18091 18092 18093fi 18094 18095 18096fi 18097 18098 18099fi 18100 18101 ;; 18102 esac 18103 18104 if test no = "$lt_cv_dlopen"; then 18105 enable_dlopen=no 18106 else 18107 enable_dlopen=yes 18108 fi 18109 18110 case $lt_cv_dlopen in 18111 dlopen) 18112 save_CPPFLAGS=$CPPFLAGS 18113 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18114 18115 save_LDFLAGS=$LDFLAGS 18116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18117 18118 save_LIBS=$LIBS 18119 LIBS="$lt_cv_dlopen_libs $LIBS" 18120 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18122$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18123if ${lt_cv_dlopen_self+:} false; then : 18124 $as_echo_n "(cached) " >&6 18125else 18126 if test yes = "$cross_compiling"; then : 18127 lt_cv_dlopen_self=cross 18128else 18129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18130 lt_status=$lt_dlunknown 18131 cat > conftest.$ac_ext <<_LT_EOF 18132#line $LINENO "configure" 18133#include "confdefs.h" 18134 18135#if HAVE_DLFCN_H 18136#include <dlfcn.h> 18137#endif 18138 18139#include <stdio.h> 18140 18141#ifdef RTLD_GLOBAL 18142# define LT_DLGLOBAL RTLD_GLOBAL 18143#else 18144# ifdef DL_GLOBAL 18145# define LT_DLGLOBAL DL_GLOBAL 18146# else 18147# define LT_DLGLOBAL 0 18148# endif 18149#endif 18150 18151/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18152 find out it does not work in some platform. */ 18153#ifndef LT_DLLAZY_OR_NOW 18154# ifdef RTLD_LAZY 18155# define LT_DLLAZY_OR_NOW RTLD_LAZY 18156# else 18157# ifdef DL_LAZY 18158# define LT_DLLAZY_OR_NOW DL_LAZY 18159# else 18160# ifdef RTLD_NOW 18161# define LT_DLLAZY_OR_NOW RTLD_NOW 18162# else 18163# ifdef DL_NOW 18164# define LT_DLLAZY_OR_NOW DL_NOW 18165# else 18166# define LT_DLLAZY_OR_NOW 0 18167# endif 18168# endif 18169# endif 18170# endif 18171#endif 18172 18173/* When -fvisibility=hidden is used, assume the code has been annotated 18174 correspondingly for the symbols needed. */ 18175#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18176int fnord () __attribute__((visibility("default"))); 18177#endif 18178 18179int fnord () { return 42; } 18180int main () 18181{ 18182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18183 int status = $lt_dlunknown; 18184 18185 if (self) 18186 { 18187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18188 else 18189 { 18190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18191 else puts (dlerror ()); 18192 } 18193 /* dlclose (self); */ 18194 } 18195 else 18196 puts (dlerror ()); 18197 18198 return status; 18199} 18200_LT_EOF 18201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18202 (eval $ac_link) 2>&5 18203 ac_status=$? 18204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18205 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18206 (./conftest; exit; ) >&5 2>/dev/null 18207 lt_status=$? 18208 case x$lt_status in 18209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18212 esac 18213 else : 18214 # compilation failed 18215 lt_cv_dlopen_self=no 18216 fi 18217fi 18218rm -fr conftest* 18219 18220 18221fi 18222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18223$as_echo "$lt_cv_dlopen_self" >&6; } 18224 18225 if test yes = "$lt_cv_dlopen_self"; then 18226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18228$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18229if ${lt_cv_dlopen_self_static+:} false; then : 18230 $as_echo_n "(cached) " >&6 18231else 18232 if test yes = "$cross_compiling"; then : 18233 lt_cv_dlopen_self_static=cross 18234else 18235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18236 lt_status=$lt_dlunknown 18237 cat > conftest.$ac_ext <<_LT_EOF 18238#line $LINENO "configure" 18239#include "confdefs.h" 18240 18241#if HAVE_DLFCN_H 18242#include <dlfcn.h> 18243#endif 18244 18245#include <stdio.h> 18246 18247#ifdef RTLD_GLOBAL 18248# define LT_DLGLOBAL RTLD_GLOBAL 18249#else 18250# ifdef DL_GLOBAL 18251# define LT_DLGLOBAL DL_GLOBAL 18252# else 18253# define LT_DLGLOBAL 0 18254# endif 18255#endif 18256 18257/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18258 find out it does not work in some platform. */ 18259#ifndef LT_DLLAZY_OR_NOW 18260# ifdef RTLD_LAZY 18261# define LT_DLLAZY_OR_NOW RTLD_LAZY 18262# else 18263# ifdef DL_LAZY 18264# define LT_DLLAZY_OR_NOW DL_LAZY 18265# else 18266# ifdef RTLD_NOW 18267# define LT_DLLAZY_OR_NOW RTLD_NOW 18268# else 18269# ifdef DL_NOW 18270# define LT_DLLAZY_OR_NOW DL_NOW 18271# else 18272# define LT_DLLAZY_OR_NOW 0 18273# endif 18274# endif 18275# endif 18276# endif 18277#endif 18278 18279/* When -fvisibility=hidden is used, assume the code has been annotated 18280 correspondingly for the symbols needed. */ 18281#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18282int fnord () __attribute__((visibility("default"))); 18283#endif 18284 18285int fnord () { return 42; } 18286int main () 18287{ 18288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18289 int status = $lt_dlunknown; 18290 18291 if (self) 18292 { 18293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18294 else 18295 { 18296 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18297 else puts (dlerror ()); 18298 } 18299 /* dlclose (self); */ 18300 } 18301 else 18302 puts (dlerror ()); 18303 18304 return status; 18305} 18306_LT_EOF 18307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18308 (eval $ac_link) 2>&5 18309 ac_status=$? 18310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18311 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18312 (./conftest; exit; ) >&5 2>/dev/null 18313 lt_status=$? 18314 case x$lt_status in 18315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18317 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18318 esac 18319 else : 18320 # compilation failed 18321 lt_cv_dlopen_self_static=no 18322 fi 18323fi 18324rm -fr conftest* 18325 18326 18327fi 18328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18329$as_echo "$lt_cv_dlopen_self_static" >&6; } 18330 fi 18331 18332 CPPFLAGS=$save_CPPFLAGS 18333 LDFLAGS=$save_LDFLAGS 18334 LIBS=$save_LIBS 18335 ;; 18336 esac 18337 18338 case $lt_cv_dlopen_self in 18339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18340 *) enable_dlopen_self=unknown ;; 18341 esac 18342 18343 case $lt_cv_dlopen_self_static in 18344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18345 *) enable_dlopen_self_static=unknown ;; 18346 esac 18347fi 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365striplib= 18366old_striplib= 18367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18368$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18369if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18370 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18371 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18373$as_echo "yes" >&6; } 18374else 18375# FIXME - insert some real tests, host_os isn't really good enough 18376 case $host_os in 18377 darwin*) 18378 if test -n "$STRIP"; then 18379 striplib="$STRIP -x" 18380 old_striplib="$STRIP -S" 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18382$as_echo "yes" >&6; } 18383 else 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18385$as_echo "no" >&6; } 18386 fi 18387 ;; 18388 *) 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18390$as_echo "no" >&6; } 18391 ;; 18392 esac 18393fi 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 # Report what library types will actually be built 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18408$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18410$as_echo "$can_build_shared" >&6; } 18411 18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18413$as_echo_n "checking whether to build shared libraries... " >&6; } 18414 test no = "$can_build_shared" && enable_shared=no 18415 18416 # On AIX, shared libraries and static libraries use the same namespace, and 18417 # are all built from PIC. 18418 case $host_os in 18419 aix3*) 18420 test yes = "$enable_shared" && enable_static=no 18421 if test -n "$RANLIB"; then 18422 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18423 postinstall_cmds='$RANLIB $lib' 18424 fi 18425 ;; 18426 18427 aix[4-9]*) 18428 if test ia64 != "$host_cpu"; then 18429 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18430 yes,aix,yes) ;; # shared object as lib.so file only 18431 yes,svr4,*) ;; # shared object as lib.so archive member only 18432 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18433 esac 18434 fi 18435 ;; 18436 esac 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18438$as_echo "$enable_shared" >&6; } 18439 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18441$as_echo_n "checking whether to build static libraries... " >&6; } 18442 # Make sure either enable_shared or enable_static is yes. 18443 test yes = "$enable_shared" || enable_static=yes 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18445$as_echo "$enable_static" >&6; } 18446 18447 18448 18449 18450fi 18451ac_ext=c 18452ac_cpp='$CPP $CPPFLAGS' 18453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18455ac_compiler_gnu=$ac_cv_c_compiler_gnu 18456 18457CC=$lt_save_CC 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 ac_config_commands="$ac_config_commands libtool" 18474 18475 18476 18477 18478# Only expand once: 18479 18480 18481 18482 18483 18484# Define a configure option for an alternate module directory 18485 18486# Check whether --with-xorg-module-dir was given. 18487if test "${with_xorg_module_dir+set}" = set; then : 18488 withval=$with_xorg_module_dir; moduledir="$withval" 18489else 18490 moduledir="$libdir/xorg/modules" 18491fi 18492 18493 18494# Check whether --enable-dri was given. 18495if test "${enable_dri+set}" = set; then : 18496 enableval=$enable_dri; DRI="$enableval" 18497else 18498 DRI=auto 18499fi 18500 18501# Check whether --enable-exa was given. 18502if test "${enable_exa+set}" = set; then : 18503 enableval=$enable_exa; EXA="$enableval" 18504else 18505 EXA=yes 18506fi 18507 18508 18509# Store the list of server defined optional extensions in REQUIRED_MODULES 18510 18511 18512 SAVE_CFLAGS="$CFLAGS" 18513 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18515/* end confdefs.h. */ 18516 18517#include "xorg-server.h" 18518#if !defined RANDR 18519#error RANDR not defined 18520#endif 18521 18522int 18523main () 18524{ 18525 18526 ; 18527 return 0; 18528} 18529_ACEOF 18530if ac_fn_c_try_compile "$LINENO"; then : 18531 _EXT_CHECK=yes 18532else 18533 _EXT_CHECK=no 18534fi 18535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18536 CFLAGS="$SAVE_CFLAGS" 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18538$as_echo_n "checking if RANDR is defined... " >&6; } 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18540$as_echo "$_EXT_CHECK" >&6; } 18541 if test "$_EXT_CHECK" != no; then 18542 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18543 fi 18544 18545 18546 18547 SAVE_CFLAGS="$CFLAGS" 18548 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18550/* end confdefs.h. */ 18551 18552#include "xorg-server.h" 18553#if !defined RENDER 18554#error RENDER not defined 18555#endif 18556 18557int 18558main () 18559{ 18560 18561 ; 18562 return 0; 18563} 18564_ACEOF 18565if ac_fn_c_try_compile "$LINENO"; then : 18566 _EXT_CHECK=yes 18567else 18568 _EXT_CHECK=no 18569fi 18570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18571 CFLAGS="$SAVE_CFLAGS" 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18573$as_echo_n "checking if RENDER is defined... " >&6; } 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18575$as_echo "$_EXT_CHECK" >&6; } 18576 if test "$_EXT_CHECK" != no; then 18577 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18578 fi 18579 18580 18581 18582 SAVE_CFLAGS="$CFLAGS" 18583 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585/* end confdefs.h. */ 18586 18587#include "xorg-server.h" 18588#if !defined XV 18589#error XV not defined 18590#endif 18591 18592int 18593main () 18594{ 18595 18596 ; 18597 return 0; 18598} 18599_ACEOF 18600if ac_fn_c_try_compile "$LINENO"; then : 18601 _EXT_CHECK=yes 18602else 18603 _EXT_CHECK=no 18604fi 18605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18606 CFLAGS="$SAVE_CFLAGS" 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18608$as_echo_n "checking if XV is defined... " >&6; } 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18610$as_echo "$_EXT_CHECK" >&6; } 18611 if test "$_EXT_CHECK" != no; then 18612 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18613 fi 18614 18615 18616 18617 SAVE_CFLAGS="$CFLAGS" 18618 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18620/* end confdefs.h. */ 18621 18622#include "xorg-server.h" 18623#if !defined DPMSExtension 18624#error DPMSExtension not defined 18625#endif 18626 18627int 18628main () 18629{ 18630 18631 ; 18632 return 0; 18633} 18634_ACEOF 18635if ac_fn_c_try_compile "$LINENO"; then : 18636 _EXT_CHECK=yes 18637else 18638 _EXT_CHECK=no 18639fi 18640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18641 CFLAGS="$SAVE_CFLAGS" 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18643$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18645$as_echo "$_EXT_CHECK" >&6; } 18646 if test "$_EXT_CHECK" != no; then 18647 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18648 fi 18649 18650 18651# Obtain compiler/linker options for the driver dependencies 18652 18653pkg_failed=no 18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18655$as_echo_n "checking for XORG... " >&6; } 18656 18657if test -n "$XORG_CFLAGS"; then 18658 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18659 elif test -n "$PKG_CONFIG"; then 18660 if test -n "$PKG_CONFIG" && \ 18661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18662 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 18663 ac_status=$? 18664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18665 test $ac_status = 0; }; then 18666 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18667 test "x$?" != "x0" && pkg_failed=yes 18668else 18669 pkg_failed=yes 18670fi 18671 else 18672 pkg_failed=untried 18673fi 18674if test -n "$XORG_LIBS"; then 18675 pkg_cv_XORG_LIBS="$XORG_LIBS" 18676 elif test -n "$PKG_CONFIG"; then 18677 if test -n "$PKG_CONFIG" && \ 18678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18679 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 18680 ac_status=$? 18681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18682 test $ac_status = 0; }; then 18683 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18684 test "x$?" != "x0" && pkg_failed=yes 18685else 18686 pkg_failed=yes 18687fi 18688 else 18689 pkg_failed=untried 18690fi 18691 18692 18693 18694if test $pkg_failed = yes; then 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18696$as_echo "no" >&6; } 18697 18698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18699 _pkg_short_errors_supported=yes 18700else 18701 _pkg_short_errors_supported=no 18702fi 18703 if test $_pkg_short_errors_supported = yes; then 18704 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18705 else 18706 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18707 fi 18708 # Put the nasty error message in config.log where it belongs 18709 echo "$XORG_PKG_ERRORS" >&5 18710 18711 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 18712 18713$XORG_PKG_ERRORS 18714 18715Consider adjusting the PKG_CONFIG_PATH environment variable if you 18716installed software in a non-standard prefix. 18717 18718Alternatively, you may set the environment variables XORG_CFLAGS 18719and XORG_LIBS to avoid the need to call pkg-config. 18720See the pkg-config man page for more details." "$LINENO" 5 18721elif test $pkg_failed = untried; then 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18723$as_echo "no" >&6; } 18724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18726as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18727is in your PATH or set the PKG_CONFIG environment variable to the full 18728path to pkg-config. 18729 18730Alternatively, you may set the environment variables XORG_CFLAGS 18731and XORG_LIBS to avoid the need to call pkg-config. 18732See the pkg-config man page for more details. 18733 18734To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18735See \`config.log' for more details" "$LINENO" 5; } 18736else 18737 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18738 XORG_LIBS=$pkg_cv_XORG_LIBS 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18740$as_echo "yes" >&6; } 18741 18742fi 18743sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18744 18745# Checks for libraries. 18746 18747if test "x$DRI" != xno; then 18748 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18750$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18751if eval \${$as_ac_File+:} false; then : 18752 $as_echo_n "(cached) " >&6 18753else 18754 test "$cross_compiling" = yes && 18755 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18756if test -r "${sdkdir}/dri.h"; then 18757 eval "$as_ac_File=yes" 18758else 18759 eval "$as_ac_File=no" 18760fi 18761fi 18762eval ac_res=\$$as_ac_File 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18764$as_echo "$ac_res" >&6; } 18765if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18766 have_dri_h="yes" 18767else 18768 have_dri_h="no" 18769fi 18770 18771 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18773$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18774if eval \${$as_ac_File+:} false; then : 18775 $as_echo_n "(cached) " >&6 18776else 18777 test "$cross_compiling" = yes && 18778 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18779if test -r "${sdkdir}/sarea.h"; then 18780 eval "$as_ac_File=yes" 18781else 18782 eval "$as_ac_File=no" 18783fi 18784fi 18785eval ac_res=\$$as_ac_File 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18787$as_echo "$ac_res" >&6; } 18788if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18789 have_sarea_h="yes" 18790else 18791 have_sarea_h="no" 18792fi 18793 18794 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18796$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18797if eval \${$as_ac_File+:} false; then : 18798 $as_echo_n "(cached) " >&6 18799else 18800 test "$cross_compiling" = yes && 18801 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18802if test -r "${sdkdir}/dristruct.h"; then 18803 eval "$as_ac_File=yes" 18804else 18805 eval "$as_ac_File=no" 18806fi 18807fi 18808eval ac_res=\$$as_ac_File 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18810$as_echo "$ac_res" >&6; } 18811if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18812 have_dristruct_h="yes" 18813else 18814 have_dristruct_h="no" 18815fi 18816 18817fi 18818 18819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18820$as_echo_n "checking whether to include DRI support... " >&6; } 18821if test "x$DRI" = xauto; then 18822 if test "x$have_dri_h" = xyes && \ 18823 test "x$have_sarea_h" = xyes && \ 18824 test "x$have_dristruct_h" = xyes; then 18825 DRI="yes" 18826 else 18827 DRI="no" 18828 fi 18829fi 18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18831$as_echo "$DRI" >&6; } 18832 18833 if test "x$DRI" = xyes; then 18834 DRI_TRUE= 18835 DRI_FALSE='#' 18836else 18837 DRI_TRUE='#' 18838 DRI_FALSE= 18839fi 18840 18841if test "x$DRI" = xyes; then 18842 18843pkg_failed=no 18844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18845$as_echo_n "checking for DRI... " >&6; } 18846 18847if test -n "$DRI_CFLAGS"; then 18848 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18849 elif test -n "$PKG_CONFIG"; then 18850 if test -n "$PKG_CONFIG" && \ 18851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18852 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18853 ac_status=$? 18854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18855 test $ac_status = 0; }; then 18856 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18857 test "x$?" != "x0" && pkg_failed=yes 18858else 18859 pkg_failed=yes 18860fi 18861 else 18862 pkg_failed=untried 18863fi 18864if test -n "$DRI_LIBS"; then 18865 pkg_cv_DRI_LIBS="$DRI_LIBS" 18866 elif test -n "$PKG_CONFIG"; then 18867 if test -n "$PKG_CONFIG" && \ 18868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18869 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18870 ac_status=$? 18871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18872 test $ac_status = 0; }; then 18873 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18874 test "x$?" != "x0" && pkg_failed=yes 18875else 18876 pkg_failed=yes 18877fi 18878 else 18879 pkg_failed=untried 18880fi 18881 18882 18883 18884if test $pkg_failed = yes; then 18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18886$as_echo "no" >&6; } 18887 18888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18889 _pkg_short_errors_supported=yes 18890else 18891 _pkg_short_errors_supported=no 18892fi 18893 if test $_pkg_short_errors_supported = yes; then 18894 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 18895 else 18896 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 18897 fi 18898 # Put the nasty error message in config.log where it belongs 18899 echo "$DRI_PKG_ERRORS" >&5 18900 18901 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 18902 18903$DRI_PKG_ERRORS 18904 18905Consider adjusting the PKG_CONFIG_PATH environment variable if you 18906installed software in a non-standard prefix. 18907 18908Alternatively, you may set the environment variables DRI_CFLAGS 18909and DRI_LIBS to avoid the need to call pkg-config. 18910See the pkg-config man page for more details." "$LINENO" 5 18911elif test $pkg_failed = untried; then 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18913$as_echo "no" >&6; } 18914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18916as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18917is in your PATH or set the PKG_CONFIG environment variable to the full 18918path to pkg-config. 18919 18920Alternatively, you may set the environment variables DRI_CFLAGS 18921and DRI_LIBS to avoid the need to call pkg-config. 18922See the pkg-config man page for more details. 18923 18924To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18925See \`config.log' for more details" "$LINENO" 5; } 18926else 18927 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 18928 DRI_LIBS=$pkg_cv_DRI_LIBS 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18930$as_echo "yes" >&6; } 18931 18932fi 18933 18934$as_echo "#define MGADRI 1" >>confdefs.h 18935 18936 18937$as_echo "#define MGADRI_DEVEL 1" >>confdefs.h 18938 18939fi 18940 18941save_CFLAGS="$CFLAGS" 18942CFLAGS="$XORG_CFLAGS" 18943ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18944" 18945if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18946 XSERVER_LIBPCIACCESS=yes 18947else 18948 XSERVER_LIBPCIACCESS=no 18949fi 18950 18951CFLAGS="$save_CFLAGS" 18952 18953save_CFLAGS="$CFLAGS" 18954CFLAGS="$XORG_CFLAGS" 18955ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h> 18956 #include \"xorg-server.h\" 18957 #include \"xf86Modes.h\" 18958" 18959if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then : 18960 18961$as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h 18962 18963fi 18964 18965CFLAGS="$save_CFLAGS" 18966 18967if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18968 18969pkg_failed=no 18970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18971$as_echo_n "checking for PCIACCESS... " >&6; } 18972 18973if test -n "$PCIACCESS_CFLAGS"; then 18974 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18975 elif test -n "$PKG_CONFIG"; then 18976 if test -n "$PKG_CONFIG" && \ 18977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18978 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18979 ac_status=$? 18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18981 test $ac_status = 0; }; then 18982 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18983 test "x$?" != "x0" && pkg_failed=yes 18984else 18985 pkg_failed=yes 18986fi 18987 else 18988 pkg_failed=untried 18989fi 18990if test -n "$PCIACCESS_LIBS"; then 18991 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18992 elif test -n "$PKG_CONFIG"; then 18993 if test -n "$PKG_CONFIG" && \ 18994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18995 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18996 ac_status=$? 18997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18998 test $ac_status = 0; }; then 18999 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19000 test "x$?" != "x0" && pkg_failed=yes 19001else 19002 pkg_failed=yes 19003fi 19004 else 19005 pkg_failed=untried 19006fi 19007 19008 19009 19010if test $pkg_failed = yes; then 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19012$as_echo "no" >&6; } 19013 19014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19015 _pkg_short_errors_supported=yes 19016else 19017 _pkg_short_errors_supported=no 19018fi 19019 if test $_pkg_short_errors_supported = yes; then 19020 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19021 else 19022 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19023 fi 19024 # Put the nasty error message in config.log where it belongs 19025 echo "$PCIACCESS_PKG_ERRORS" >&5 19026 19027 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19028 19029$PCIACCESS_PKG_ERRORS 19030 19031Consider adjusting the PKG_CONFIG_PATH environment variable if you 19032installed software in a non-standard prefix. 19033 19034Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19035and PCIACCESS_LIBS to avoid the need to call pkg-config. 19036See the pkg-config man page for more details." "$LINENO" 5 19037elif test $pkg_failed = untried; then 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19039$as_echo "no" >&6; } 19040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19042as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19043is in your PATH or set the PKG_CONFIG environment variable to the full 19044path to pkg-config. 19045 19046Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19047and PCIACCESS_LIBS to avoid the need to call pkg-config. 19048See the pkg-config man page for more details. 19049 19050To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19051See \`config.log' for more details" "$LINENO" 5; } 19052else 19053 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19054 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19056$as_echo "yes" >&6; } 19057 19058fi 19059fi 19060 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19061 XSERVER_LIBPCIACCESS_TRUE= 19062 XSERVER_LIBPCIACCESS_FALSE='#' 19063else 19064 XSERVER_LIBPCIACCESS_TRUE='#' 19065 XSERVER_LIBPCIACCESS_FALSE= 19066fi 19067 19068 19069 19070# Check whether --enable-xaa was given. 19071if test "${enable_xaa+set}" = set; then : 19072 enableval=$enable_xaa; XAA="$enableval" 19073else 19074 XAA=auto 19075fi 19076 19077if test "x$XAA" != xno; then 19078 save_CFLAGS=$CFLAGS 19079 save_CPPFLAGS=$CPPFLAGS 19080 CFLAGS=$XORG_CFLAGS 19081 CPPFLAGS="$XORG_CFLAGS" 19082 for ac_header in xaa.h 19083do : 19084 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19085if test "x$ac_cv_header_xaa_h" = xyes; then : 19086 cat >>confdefs.h <<_ACEOF 19087#define HAVE_XAA_H 1 19088_ACEOF 19089 XAA=yes 19090else 19091 XAA=no 19092fi 19093 19094done 19095 19096 CFLAGS=$save_CFLAGS 19097 CPPFLAGS=$save_CPPFLAGS 19098fi 19099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19100$as_echo_n "checking whether to include XAA support... " >&6; } 19101 if test "x$XAA" = xyes; then 19102 XAA_TRUE= 19103 XAA_FALSE='#' 19104else 19105 XAA_TRUE='#' 19106 XAA_FALSE= 19107fi 19108 19109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19110$as_echo "$XAA" >&6; } 19111if test "x$XAA" = xyes; then 19112 19113$as_echo "#define USE_XAA 1" >>confdefs.h 19114 19115fi 19116 19117# Properly handle EXA. 19118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 19119$as_echo_n "checking whether to enable EXA support... " >&6; } 19120if test "x$EXA" = xyes; then 19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19122$as_echo "yes" >&6; } 19123 19124 SAVE_CPPFLAGS="$CPPFLAGS" 19125 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19126 for ac_header in exa.h 19127do : 19128 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include \"xorg-server.h\" 19129" 19130if test "x$ac_cv_header_exa_h" = xyes; then : 19131 cat >>confdefs.h <<_ACEOF 19132#define HAVE_EXA_H 1 19133_ACEOF 19134 have_exa_h="yes" 19135else 19136 have_exa_h="no" 19137fi 19138 19139done 19140 19141 CPPFLAGS="$SAVE_CPPFLAGS" 19142else 19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19144$as_echo "no" >&6; } 19145fi 19146 19147SAVE_CPPFLAGS="$CPPFLAGS" 19148CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19149if test "x$have_exa_h" = xyes; then 19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 19151$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } 19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19153/* end confdefs.h. */ 19154 19155#include "xorg-server.h" 19156#include "exa.h" 19157#if EXA_VERSION_MAJOR < 2 19158#error OLD EXA! 19159#endif 19160 19161int 19162main () 19163{ 19164 19165 ; 19166 return 0; 19167} 19168_ACEOF 19169if ac_fn_c_try_cpp "$LINENO"; then : 19170 USE_EXA=yes 19171else 19172 USE_EXA=no 19173fi 19174rm -f conftest.err conftest.i conftest.$ac_ext 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 19176$as_echo "$USE_EXA" >&6; } 19177 19178 if test "x$USE_EXA" = xyes; then 19179 19180$as_echo "#define USE_EXA 1" >>confdefs.h 19181 19182 fi 19183fi 19184CPPFLAGS="$SAVE_CPPFLAGS" 19185 19186 if test "x$USE_EXA" = xyes; then 19187 USE_EXA_TRUE= 19188 USE_EXA_FALSE='#' 19189else 19190 USE_EXA_TRUE='#' 19191 USE_EXA_FALSE= 19192fi 19193 19194 19195 19196 19197DRIVER_NAME=mga 19198 19199 19200ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 19201 19202cat >confcache <<\_ACEOF 19203# This file is a shell script that caches the results of configure 19204# tests run on this system so they can be shared between configure 19205# scripts and configure runs, see configure's option --config-cache. 19206# It is not useful on other systems. If it contains results you don't 19207# want to keep, you may remove or edit it. 19208# 19209# config.status only pays attention to the cache file if you give it 19210# the --recheck option to rerun configure. 19211# 19212# `ac_cv_env_foo' variables (set or unset) will be overridden when 19213# loading this file, other *unset* `ac_cv_foo' will be assigned the 19214# following values. 19215 19216_ACEOF 19217 19218# The following way of writing the cache mishandles newlines in values, 19219# but we know of no workaround that is simple, portable, and efficient. 19220# So, we kill variables containing newlines. 19221# Ultrix sh set writes to stderr and can't be redirected directly, 19222# and sets the high bit in the cache file unless we assign to the vars. 19223( 19224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19225 eval ac_val=\$$ac_var 19226 case $ac_val in #( 19227 *${as_nl}*) 19228 case $ac_var in #( 19229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19230$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19231 esac 19232 case $ac_var in #( 19233 _ | IFS | as_nl) ;; #( 19234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19235 *) { eval $ac_var=; unset $ac_var;} ;; 19236 esac ;; 19237 esac 19238 done 19239 19240 (set) 2>&1 | 19241 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19242 *${as_nl}ac_space=\ *) 19243 # `set' does not quote correctly, so add quotes: double-quote 19244 # substitution turns \\\\ into \\, and sed turns \\ into \. 19245 sed -n \ 19246 "s/'/'\\\\''/g; 19247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19248 ;; #( 19249 *) 19250 # `set' quotes correctly as required by POSIX, so do not add quotes. 19251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19252 ;; 19253 esac | 19254 sort 19255) | 19256 sed ' 19257 /^ac_cv_env_/b end 19258 t clear 19259 :clear 19260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19261 t end 19262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19263 :end' >>confcache 19264if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19265 if test -w "$cache_file"; then 19266 if test "x$cache_file" != "x/dev/null"; then 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19268$as_echo "$as_me: updating cache $cache_file" >&6;} 19269 if test ! -f "$cache_file" || test -h "$cache_file"; then 19270 cat confcache >"$cache_file" 19271 else 19272 case $cache_file in #( 19273 */* | ?:*) 19274 mv -f confcache "$cache_file"$$ && 19275 mv -f "$cache_file"$$ "$cache_file" ;; #( 19276 *) 19277 mv -f confcache "$cache_file" ;; 19278 esac 19279 fi 19280 fi 19281 else 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19283$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19284 fi 19285fi 19286rm -f confcache 19287 19288test "x$prefix" = xNONE && prefix=$ac_default_prefix 19289# Let make expand exec_prefix. 19290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19291 19292DEFS=-DHAVE_CONFIG_H 19293 19294ac_libobjs= 19295ac_ltlibobjs= 19296U= 19297for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19298 # 1. Remove the extension, and $U if already installed. 19299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19300 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19302 # will be set to the directory where LIBOBJS objects are built. 19303 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19304 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19305done 19306LIBOBJS=$ac_libobjs 19307 19308LTLIBOBJS=$ac_ltlibobjs 19309 19310 19311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19312$as_echo_n "checking that generated files are newer than configure... " >&6; } 19313 if test -n "$am_sleep_pid"; then 19314 # Hide warnings about reused PIDs. 19315 wait $am_sleep_pid 2>/dev/null 19316 fi 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19318$as_echo "done" >&6; } 19319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19320 as_fn_error $? "conditional \"AMDEP\" was never defined. 19321Usually this means the macro was only invoked conditionally." "$LINENO" 5 19322fi 19323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19325Usually this means the macro was only invoked conditionally." "$LINENO" 5 19326fi 19327 if test -n "$EXEEXT"; then 19328 am__EXEEXT_TRUE= 19329 am__EXEEXT_FALSE='#' 19330else 19331 am__EXEEXT_TRUE='#' 19332 am__EXEEXT_FALSE= 19333fi 19334 19335if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19337Usually this means the macro was only invoked conditionally." "$LINENO" 5 19338fi 19339if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 19340 as_fn_error $? "conditional \"DRI\" was never defined. 19341Usually this means the macro was only invoked conditionally." "$LINENO" 5 19342fi 19343if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19344 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19345Usually this means the macro was only invoked conditionally." "$LINENO" 5 19346fi 19347if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19348 as_fn_error $? "conditional \"XAA\" was never defined. 19349Usually this means the macro was only invoked conditionally." "$LINENO" 5 19350fi 19351if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 19352 as_fn_error $? "conditional \"USE_EXA\" was never defined. 19353Usually this means the macro was only invoked conditionally." "$LINENO" 5 19354fi 19355 19356: "${CONFIG_STATUS=./config.status}" 19357ac_write_fail=0 19358ac_clean_files_save=$ac_clean_files 19359ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19360{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19361$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19362as_write_fail=0 19363cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19364#! $SHELL 19365# Generated by $as_me. 19366# Run this file to recreate the current configuration. 19367# Compiler output produced by configure, useful for debugging 19368# configure, is in config.log if it exists. 19369 19370debug=false 19371ac_cs_recheck=false 19372ac_cs_silent=false 19373 19374SHELL=\${CONFIG_SHELL-$SHELL} 19375export SHELL 19376_ASEOF 19377cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19378## -------------------- ## 19379## M4sh Initialization. ## 19380## -------------------- ## 19381 19382# Be more Bourne compatible 19383DUALCASE=1; export DUALCASE # for MKS sh 19384if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19385 emulate sh 19386 NULLCMD=: 19387 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19388 # is contrary to our usage. Disable this feature. 19389 alias -g '${1+"$@"}'='"$@"' 19390 setopt NO_GLOB_SUBST 19391else 19392 case `(set -o) 2>/dev/null` in #( 19393 *posix*) : 19394 set -o posix ;; #( 19395 *) : 19396 ;; 19397esac 19398fi 19399 19400 19401as_nl=' 19402' 19403export as_nl 19404# Printing a long string crashes Solaris 7 /usr/bin/printf. 19405as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19406as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19407as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19408# Prefer a ksh shell builtin over an external printf program on Solaris, 19409# but without wasting forks for bash or zsh. 19410if test -z "$BASH_VERSION$ZSH_VERSION" \ 19411 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19412 as_echo='print -r --' 19413 as_echo_n='print -rn --' 19414elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19415 as_echo='printf %s\n' 19416 as_echo_n='printf %s' 19417else 19418 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19419 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19420 as_echo_n='/usr/ucb/echo -n' 19421 else 19422 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19423 as_echo_n_body='eval 19424 arg=$1; 19425 case $arg in #( 19426 *"$as_nl"*) 19427 expr "X$arg" : "X\\(.*\\)$as_nl"; 19428 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19429 esac; 19430 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19431 ' 19432 export as_echo_n_body 19433 as_echo_n='sh -c $as_echo_n_body as_echo' 19434 fi 19435 export as_echo_body 19436 as_echo='sh -c $as_echo_body as_echo' 19437fi 19438 19439# The user is always right. 19440if test "${PATH_SEPARATOR+set}" != set; then 19441 PATH_SEPARATOR=: 19442 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19443 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19444 PATH_SEPARATOR=';' 19445 } 19446fi 19447 19448 19449# IFS 19450# We need space, tab and new line, in precisely that order. Quoting is 19451# there to prevent editors from complaining about space-tab. 19452# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19453# splitting by setting IFS to empty value.) 19454IFS=" "" $as_nl" 19455 19456# Find who we are. Look in the path if we contain no directory separator. 19457as_myself= 19458case $0 in #(( 19459 *[\\/]* ) as_myself=$0 ;; 19460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19461for as_dir in $PATH 19462do 19463 IFS=$as_save_IFS 19464 test -z "$as_dir" && as_dir=. 19465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19466 done 19467IFS=$as_save_IFS 19468 19469 ;; 19470esac 19471# We did not find ourselves, most probably we were run as `sh COMMAND' 19472# in which case we are not to be found in the path. 19473if test "x$as_myself" = x; then 19474 as_myself=$0 19475fi 19476if test ! -f "$as_myself"; then 19477 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19478 exit 1 19479fi 19480 19481# Unset variables that we do not need and which cause bugs (e.g. in 19482# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19483# suppresses any "Segmentation fault" message there. '((' could 19484# trigger a bug in pdksh 5.2.14. 19485for as_var in BASH_ENV ENV MAIL MAILPATH 19486do eval test x\${$as_var+set} = xset \ 19487 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19488done 19489PS1='$ ' 19490PS2='> ' 19491PS4='+ ' 19492 19493# NLS nuisances. 19494LC_ALL=C 19495export LC_ALL 19496LANGUAGE=C 19497export LANGUAGE 19498 19499# CDPATH. 19500(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19501 19502 19503# as_fn_error STATUS ERROR [LINENO LOG_FD] 19504# ---------------------------------------- 19505# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19506# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19507# script with STATUS, using 1 if that was 0. 19508as_fn_error () 19509{ 19510 as_status=$1; test $as_status -eq 0 && as_status=1 19511 if test "$4"; then 19512 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19513 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19514 fi 19515 $as_echo "$as_me: error: $2" >&2 19516 as_fn_exit $as_status 19517} # as_fn_error 19518 19519 19520# as_fn_set_status STATUS 19521# ----------------------- 19522# Set $? to STATUS, without forking. 19523as_fn_set_status () 19524{ 19525 return $1 19526} # as_fn_set_status 19527 19528# as_fn_exit STATUS 19529# ----------------- 19530# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19531as_fn_exit () 19532{ 19533 set +e 19534 as_fn_set_status $1 19535 exit $1 19536} # as_fn_exit 19537 19538# as_fn_unset VAR 19539# --------------- 19540# Portably unset VAR. 19541as_fn_unset () 19542{ 19543 { eval $1=; unset $1;} 19544} 19545as_unset=as_fn_unset 19546# as_fn_append VAR VALUE 19547# ---------------------- 19548# Append the text in VALUE to the end of the definition contained in VAR. Take 19549# advantage of any shell optimizations that allow amortized linear growth over 19550# repeated appends, instead of the typical quadratic growth present in naive 19551# implementations. 19552if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19553 eval 'as_fn_append () 19554 { 19555 eval $1+=\$2 19556 }' 19557else 19558 as_fn_append () 19559 { 19560 eval $1=\$$1\$2 19561 } 19562fi # as_fn_append 19563 19564# as_fn_arith ARG... 19565# ------------------ 19566# Perform arithmetic evaluation on the ARGs, and store the result in the 19567# global $as_val. Take advantage of shells that can avoid forks. The arguments 19568# must be portable across $(()) and expr. 19569if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19570 eval 'as_fn_arith () 19571 { 19572 as_val=$(( $* )) 19573 }' 19574else 19575 as_fn_arith () 19576 { 19577 as_val=`expr "$@" || test $? -eq 1` 19578 } 19579fi # as_fn_arith 19580 19581 19582if expr a : '\(a\)' >/dev/null 2>&1 && 19583 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19584 as_expr=expr 19585else 19586 as_expr=false 19587fi 19588 19589if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19590 as_basename=basename 19591else 19592 as_basename=false 19593fi 19594 19595if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19596 as_dirname=dirname 19597else 19598 as_dirname=false 19599fi 19600 19601as_me=`$as_basename -- "$0" || 19602$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19603 X"$0" : 'X\(//\)$' \| \ 19604 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19605$as_echo X/"$0" | 19606 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19607 s//\1/ 19608 q 19609 } 19610 /^X\/\(\/\/\)$/{ 19611 s//\1/ 19612 q 19613 } 19614 /^X\/\(\/\).*/{ 19615 s//\1/ 19616 q 19617 } 19618 s/.*/./; q'` 19619 19620# Avoid depending upon Character Ranges. 19621as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19622as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19623as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19624as_cr_digits='0123456789' 19625as_cr_alnum=$as_cr_Letters$as_cr_digits 19626 19627ECHO_C= ECHO_N= ECHO_T= 19628case `echo -n x` in #((((( 19629-n*) 19630 case `echo 'xy\c'` in 19631 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19632 xy) ECHO_C='\c';; 19633 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19634 ECHO_T=' ';; 19635 esac;; 19636*) 19637 ECHO_N='-n';; 19638esac 19639 19640rm -f conf$$ conf$$.exe conf$$.file 19641if test -d conf$$.dir; then 19642 rm -f conf$$.dir/conf$$.file 19643else 19644 rm -f conf$$.dir 19645 mkdir conf$$.dir 2>/dev/null 19646fi 19647if (echo >conf$$.file) 2>/dev/null; then 19648 if ln -s conf$$.file conf$$ 2>/dev/null; then 19649 as_ln_s='ln -s' 19650 # ... but there are two gotchas: 19651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19653 # In both cases, we have to default to `cp -pR'. 19654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19655 as_ln_s='cp -pR' 19656 elif ln conf$$.file conf$$ 2>/dev/null; then 19657 as_ln_s=ln 19658 else 19659 as_ln_s='cp -pR' 19660 fi 19661else 19662 as_ln_s='cp -pR' 19663fi 19664rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19665rmdir conf$$.dir 2>/dev/null 19666 19667 19668# as_fn_mkdir_p 19669# ------------- 19670# Create "$as_dir" as a directory, including parents if necessary. 19671as_fn_mkdir_p () 19672{ 19673 19674 case $as_dir in #( 19675 -*) as_dir=./$as_dir;; 19676 esac 19677 test -d "$as_dir" || eval $as_mkdir_p || { 19678 as_dirs= 19679 while :; do 19680 case $as_dir in #( 19681 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19682 *) as_qdir=$as_dir;; 19683 esac 19684 as_dirs="'$as_qdir' $as_dirs" 19685 as_dir=`$as_dirname -- "$as_dir" || 19686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19687 X"$as_dir" : 'X\(//\)[^/]' \| \ 19688 X"$as_dir" : 'X\(//\)$' \| \ 19689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19690$as_echo X"$as_dir" | 19691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19692 s//\1/ 19693 q 19694 } 19695 /^X\(\/\/\)[^/].*/{ 19696 s//\1/ 19697 q 19698 } 19699 /^X\(\/\/\)$/{ 19700 s//\1/ 19701 q 19702 } 19703 /^X\(\/\).*/{ 19704 s//\1/ 19705 q 19706 } 19707 s/.*/./; q'` 19708 test -d "$as_dir" && break 19709 done 19710 test -z "$as_dirs" || eval "mkdir $as_dirs" 19711 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19712 19713 19714} # as_fn_mkdir_p 19715if mkdir -p . 2>/dev/null; then 19716 as_mkdir_p='mkdir -p "$as_dir"' 19717else 19718 test -d ./-p && rmdir ./-p 19719 as_mkdir_p=false 19720fi 19721 19722 19723# as_fn_executable_p FILE 19724# ----------------------- 19725# Test if FILE is an executable regular file. 19726as_fn_executable_p () 19727{ 19728 test -f "$1" && test -x "$1" 19729} # as_fn_executable_p 19730as_test_x='test -x' 19731as_executable_p=as_fn_executable_p 19732 19733# Sed expression to map a string onto a valid CPP name. 19734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19735 19736# Sed expression to map a string onto a valid variable name. 19737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19738 19739 19740exec 6>&1 19741## ----------------------------------- ## 19742## Main body of $CONFIG_STATUS script. ## 19743## ----------------------------------- ## 19744_ASEOF 19745test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19746 19747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19748# Save the log message, to keep $0 and so on meaningful, and to 19749# report actual input values of CONFIG_FILES etc. instead of their 19750# values after options handling. 19751ac_log=" 19752This file was extended by xf86-video-mga $as_me 1.6.5, which was 19753generated by GNU Autoconf 2.69. Invocation command line was 19754 19755 CONFIG_FILES = $CONFIG_FILES 19756 CONFIG_HEADERS = $CONFIG_HEADERS 19757 CONFIG_LINKS = $CONFIG_LINKS 19758 CONFIG_COMMANDS = $CONFIG_COMMANDS 19759 $ $0 $@ 19760 19761on `(hostname || uname -n) 2>/dev/null | sed 1q` 19762" 19763 19764_ACEOF 19765 19766case $ac_config_files in *" 19767"*) set x $ac_config_files; shift; ac_config_files=$*;; 19768esac 19769 19770case $ac_config_headers in *" 19771"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19772esac 19773 19774 19775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19776# Files that config.status was made for. 19777config_files="$ac_config_files" 19778config_headers="$ac_config_headers" 19779config_commands="$ac_config_commands" 19780 19781_ACEOF 19782 19783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19784ac_cs_usage="\ 19785\`$as_me' instantiates files and other configuration actions 19786from templates according to the current configuration. Unless the files 19787and actions are specified as TAGs, all are instantiated by default. 19788 19789Usage: $0 [OPTION]... [TAG]... 19790 19791 -h, --help print this help, then exit 19792 -V, --version print version number and configuration settings, then exit 19793 --config print configuration, then exit 19794 -q, --quiet, --silent 19795 do not print progress messages 19796 -d, --debug don't remove temporary files 19797 --recheck update $as_me by reconfiguring in the same conditions 19798 --file=FILE[:TEMPLATE] 19799 instantiate the configuration file FILE 19800 --header=FILE[:TEMPLATE] 19801 instantiate the configuration header FILE 19802 19803Configuration files: 19804$config_files 19805 19806Configuration headers: 19807$config_headers 19808 19809Configuration commands: 19810$config_commands 19811 19812Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19813 19814_ACEOF 19815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19816ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19817ac_cs_version="\\ 19818xf86-video-mga config.status 1.6.5 19819configured by $0, generated by GNU Autoconf 2.69, 19820 with options \\"\$ac_cs_config\\" 19821 19822Copyright (C) 2012 Free Software Foundation, Inc. 19823This config.status script is free software; the Free Software Foundation 19824gives unlimited permission to copy, distribute and modify it." 19825 19826ac_pwd='$ac_pwd' 19827srcdir='$srcdir' 19828INSTALL='$INSTALL' 19829MKDIR_P='$MKDIR_P' 19830AWK='$AWK' 19831test -n "\$AWK" || AWK=awk 19832_ACEOF 19833 19834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19835# The default lists apply if the user does not specify any file. 19836ac_need_defaults=: 19837while test $# != 0 19838do 19839 case $1 in 19840 --*=?*) 19841 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19843 ac_shift=: 19844 ;; 19845 --*=) 19846 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19847 ac_optarg= 19848 ac_shift=: 19849 ;; 19850 *) 19851 ac_option=$1 19852 ac_optarg=$2 19853 ac_shift=shift 19854 ;; 19855 esac 19856 19857 case $ac_option in 19858 # Handling of the options. 19859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19860 ac_cs_recheck=: ;; 19861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19862 $as_echo "$ac_cs_version"; exit ;; 19863 --config | --confi | --conf | --con | --co | --c ) 19864 $as_echo "$ac_cs_config"; exit ;; 19865 --debug | --debu | --deb | --de | --d | -d ) 19866 debug=: ;; 19867 --file | --fil | --fi | --f ) 19868 $ac_shift 19869 case $ac_optarg in 19870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19871 '') as_fn_error $? "missing file argument" ;; 19872 esac 19873 as_fn_append CONFIG_FILES " '$ac_optarg'" 19874 ac_need_defaults=false;; 19875 --header | --heade | --head | --hea ) 19876 $ac_shift 19877 case $ac_optarg in 19878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19879 esac 19880 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19881 ac_need_defaults=false;; 19882 --he | --h) 19883 # Conflict between --help and --header 19884 as_fn_error $? "ambiguous option: \`$1' 19885Try \`$0 --help' for more information.";; 19886 --help | --hel | -h ) 19887 $as_echo "$ac_cs_usage"; exit ;; 19888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19889 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19890 ac_cs_silent=: ;; 19891 19892 # This is an error. 19893 -*) as_fn_error $? "unrecognized option: \`$1' 19894Try \`$0 --help' for more information." ;; 19895 19896 *) as_fn_append ac_config_targets " $1" 19897 ac_need_defaults=false ;; 19898 19899 esac 19900 shift 19901done 19902 19903ac_configure_extra_args= 19904 19905if $ac_cs_silent; then 19906 exec 6>/dev/null 19907 ac_configure_extra_args="$ac_configure_extra_args --silent" 19908fi 19909 19910_ACEOF 19911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19912if \$ac_cs_recheck; then 19913 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19914 shift 19915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19916 CONFIG_SHELL='$SHELL' 19917 export CONFIG_SHELL 19918 exec "\$@" 19919fi 19920 19921_ACEOF 19922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19923exec 5>>config.log 19924{ 19925 echo 19926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19927## Running $as_me. ## 19928_ASBOX 19929 $as_echo "$ac_log" 19930} >&5 19931 19932_ACEOF 19933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19934# 19935# INIT-COMMANDS 19936# 19937AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19938 19939 19940# The HP-UX ksh and POSIX shell print the target directory to stdout 19941# if CDPATH is set. 19942(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19943 19944sed_quote_subst='$sed_quote_subst' 19945double_quote_subst='$double_quote_subst' 19946delay_variable_subst='$delay_variable_subst' 19947enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19948macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19949macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19950enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19951pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19952enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19953shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19954SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19955ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19956PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19957host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19958host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19959host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19960build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19961build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19962build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19963SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19964Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19965GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19966EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19967FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19968LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19969NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19970LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19971max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19972ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19973exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19974lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19975lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19976lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19977lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19978lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19979reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19980reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19981OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19982deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19983file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19984file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19985want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19986DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19987sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19988AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19989AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19990archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19991STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19992RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19993old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19994old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19995old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19996lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19997CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19998CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19999compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20000GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20001lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20002lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20003lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20004lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20005lt_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"`' 20006lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20007nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20008lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20009lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20010objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20011MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20012lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20013lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20014lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20015lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20016lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20017need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20018MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20019DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20020NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20021LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20022OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20023OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20024libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20025shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20026extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20027archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20028enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20029export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20030whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20031compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20032old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20033old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20034archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20035archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20036module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20037module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20038with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20039allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20040no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20041hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20042hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20043hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20044hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20045hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20046hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20047hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20048inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20049link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20050always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20051export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20052exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20053include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20054prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20055postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20056file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20057variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20058need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20059need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20060version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20061runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20062shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20063shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20064libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20065library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20066soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20067install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20068postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20069postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20070finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20071finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20072hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20073sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20074configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20075configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20076hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20077enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20078enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20079enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20080old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20081striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20082 20083LTCC='$LTCC' 20084LTCFLAGS='$LTCFLAGS' 20085compiler='$compiler_DEFAULT' 20086 20087# A function that is used when there is no print builtin or printf. 20088func_fallback_echo () 20089{ 20090 eval 'cat <<_LTECHO_EOF 20091\$1 20092_LTECHO_EOF' 20093} 20094 20095# Quote evaled strings. 20096for var in SHELL \ 20097ECHO \ 20098PATH_SEPARATOR \ 20099SED \ 20100GREP \ 20101EGREP \ 20102FGREP \ 20103LD \ 20104NM \ 20105LN_S \ 20106lt_SP2NL \ 20107lt_NL2SP \ 20108reload_flag \ 20109OBJDUMP \ 20110deplibs_check_method \ 20111file_magic_cmd \ 20112file_magic_glob \ 20113want_nocaseglob \ 20114DLLTOOL \ 20115sharedlib_from_linklib_cmd \ 20116AR \ 20117AR_FLAGS \ 20118archiver_list_spec \ 20119STRIP \ 20120RANLIB \ 20121CC \ 20122CFLAGS \ 20123compiler \ 20124lt_cv_sys_global_symbol_pipe \ 20125lt_cv_sys_global_symbol_to_cdecl \ 20126lt_cv_sys_global_symbol_to_import \ 20127lt_cv_sys_global_symbol_to_c_name_address \ 20128lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20129lt_cv_nm_interface \ 20130nm_file_list_spec \ 20131lt_cv_truncate_bin \ 20132lt_prog_compiler_no_builtin_flag \ 20133lt_prog_compiler_pic \ 20134lt_prog_compiler_wl \ 20135lt_prog_compiler_static \ 20136lt_cv_prog_compiler_c_o \ 20137need_locks \ 20138MANIFEST_TOOL \ 20139DSYMUTIL \ 20140NMEDIT \ 20141LIPO \ 20142OTOOL \ 20143OTOOL64 \ 20144shrext_cmds \ 20145export_dynamic_flag_spec \ 20146whole_archive_flag_spec \ 20147compiler_needs_object \ 20148with_gnu_ld \ 20149allow_undefined_flag \ 20150no_undefined_flag \ 20151hardcode_libdir_flag_spec \ 20152hardcode_libdir_separator \ 20153exclude_expsyms \ 20154include_expsyms \ 20155file_list_spec \ 20156variables_saved_for_relink \ 20157libname_spec \ 20158library_names_spec \ 20159soname_spec \ 20160install_override_mode \ 20161finish_eval \ 20162old_striplib \ 20163striplib; do 20164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20165 *[\\\\\\\`\\"\\\$]*) 20166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20167 ;; 20168 *) 20169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20170 ;; 20171 esac 20172done 20173 20174# Double-quote double-evaled strings. 20175for var in reload_cmds \ 20176old_postinstall_cmds \ 20177old_postuninstall_cmds \ 20178old_archive_cmds \ 20179extract_expsyms_cmds \ 20180old_archive_from_new_cmds \ 20181old_archive_from_expsyms_cmds \ 20182archive_cmds \ 20183archive_expsym_cmds \ 20184module_cmds \ 20185module_expsym_cmds \ 20186export_symbols_cmds \ 20187prelink_cmds \ 20188postlink_cmds \ 20189postinstall_cmds \ 20190postuninstall_cmds \ 20191finish_cmds \ 20192sys_lib_search_path_spec \ 20193configure_time_dlsearch_path \ 20194configure_time_lt_sys_library_path; do 20195 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20196 *[\\\\\\\`\\"\\\$]*) 20197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20198 ;; 20199 *) 20200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20201 ;; 20202 esac 20203done 20204 20205ac_aux_dir='$ac_aux_dir' 20206 20207# See if we are running on zsh, and set the options that allow our 20208# commands through without removal of \ escapes INIT. 20209if test -n "\${ZSH_VERSION+set}"; then 20210 setopt NO_GLOB_SUBST 20211fi 20212 20213 20214 PACKAGE='$PACKAGE' 20215 VERSION='$VERSION' 20216 RM='$RM' 20217 ofile='$ofile' 20218 20219 20220 20221 20222_ACEOF 20223 20224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20225 20226# Handling of arguments. 20227for ac_config_target in $ac_config_targets 20228do 20229 case $ac_config_target in 20230 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20231 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20232 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20233 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20234 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20235 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20236 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 20237 20238 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20239 esac 20240done 20241 20242 20243# If the user did not use the arguments to specify the items to instantiate, 20244# then the envvar interface is used. Set only those that are not. 20245# We use the long form for the default assignment because of an extremely 20246# bizarre bug on SunOS 4.1.3. 20247if $ac_need_defaults; then 20248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20250 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20251fi 20252 20253# Have a temporary directory for convenience. Make it in the build tree 20254# simply because there is no reason against having it here, and in addition, 20255# creating and moving files from /tmp can sometimes cause problems. 20256# Hook for its removal unless debugging. 20257# Note that there is a small window in which the directory will not be cleaned: 20258# after its creation but before its name has been assigned to `$tmp'. 20259$debug || 20260{ 20261 tmp= ac_tmp= 20262 trap 'exit_status=$? 20263 : "${ac_tmp:=$tmp}" 20264 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20265' 0 20266 trap 'as_fn_exit 1' 1 2 13 15 20267} 20268# Create a (secure) tmp directory for tmp files. 20269 20270{ 20271 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20272 test -d "$tmp" 20273} || 20274{ 20275 tmp=./conf$$-$RANDOM 20276 (umask 077 && mkdir "$tmp") 20277} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20278ac_tmp=$tmp 20279 20280# Set up the scripts for CONFIG_FILES section. 20281# No need to generate them if there are no CONFIG_FILES. 20282# This happens for instance with `./config.status config.h'. 20283if test -n "$CONFIG_FILES"; then 20284 20285 20286ac_cr=`echo X | tr X '\015'` 20287# On cygwin, bash can eat \r inside `` if the user requested igncr. 20288# But we know of no other shell where ac_cr would be empty at this 20289# point, so we can use a bashism as a fallback. 20290if test "x$ac_cr" = x; then 20291 eval ac_cr=\$\'\\r\' 20292fi 20293ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20294if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20295 ac_cs_awk_cr='\\r' 20296else 20297 ac_cs_awk_cr=$ac_cr 20298fi 20299 20300echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20301_ACEOF 20302 20303 20304{ 20305 echo "cat >conf$$subs.awk <<_ACEOF" && 20306 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20307 echo "_ACEOF" 20308} >conf$$subs.sh || 20309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20310ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20311ac_delim='%!_!# ' 20312for ac_last_try in false false false false false :; do 20313 . ./conf$$subs.sh || 20314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20315 20316 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20317 if test $ac_delim_n = $ac_delim_num; then 20318 break 20319 elif $ac_last_try; then 20320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20321 else 20322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20323 fi 20324done 20325rm -f conf$$subs.sh 20326 20327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20328cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20329_ACEOF 20330sed -n ' 20331h 20332s/^/S["/; s/!.*/"]=/ 20333p 20334g 20335s/^[^!]*!// 20336:repl 20337t repl 20338s/'"$ac_delim"'$// 20339t delim 20340:nl 20341h 20342s/\(.\{148\}\)..*/\1/ 20343t more1 20344s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20345p 20346n 20347b repl 20348:more1 20349s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20350p 20351g 20352s/.\{148\}// 20353t nl 20354:delim 20355h 20356s/\(.\{148\}\)..*/\1/ 20357t more2 20358s/["\\]/\\&/g; s/^/"/; s/$/"/ 20359p 20360b 20361:more2 20362s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20363p 20364g 20365s/.\{148\}// 20366t delim 20367' <conf$$subs.awk | sed ' 20368/^[^""]/{ 20369 N 20370 s/\n// 20371} 20372' >>$CONFIG_STATUS || ac_write_fail=1 20373rm -f conf$$subs.awk 20374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20375_ACAWK 20376cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20377 for (key in S) S_is_set[key] = 1 20378 FS = "" 20379 20380} 20381{ 20382 line = $ 0 20383 nfields = split(line, field, "@") 20384 substed = 0 20385 len = length(field[1]) 20386 for (i = 2; i < nfields; i++) { 20387 key = field[i] 20388 keylen = length(key) 20389 if (S_is_set[key]) { 20390 value = S[key] 20391 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20392 len += length(value) + length(field[++i]) 20393 substed = 1 20394 } else 20395 len += 1 + keylen 20396 } 20397 20398 print line 20399} 20400 20401_ACAWK 20402_ACEOF 20403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20404if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20405 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20406else 20407 cat 20408fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20409 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20410_ACEOF 20411 20412# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20413# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20414# trailing colons and then remove the whole line if VPATH becomes empty 20415# (actually we leave an empty line to preserve line numbers). 20416if test "x$srcdir" = x.; then 20417 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20418h 20419s/// 20420s/^/:/ 20421s/[ ]*$/:/ 20422s/:\$(srcdir):/:/g 20423s/:\${srcdir}:/:/g 20424s/:@srcdir@:/:/g 20425s/^:*// 20426s/:*$// 20427x 20428s/\(=[ ]*\).*/\1/ 20429G 20430s/\n// 20431s/^[^=]*=[ ]*$// 20432}' 20433fi 20434 20435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20436fi # test -n "$CONFIG_FILES" 20437 20438# Set up the scripts for CONFIG_HEADERS section. 20439# No need to generate them if there are no CONFIG_HEADERS. 20440# This happens for instance with `./config.status Makefile'. 20441if test -n "$CONFIG_HEADERS"; then 20442cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20443BEGIN { 20444_ACEOF 20445 20446# Transform confdefs.h into an awk script `defines.awk', embedded as 20447# here-document in config.status, that substitutes the proper values into 20448# config.h.in to produce config.h. 20449 20450# Create a delimiter string that does not exist in confdefs.h, to ease 20451# handling of long lines. 20452ac_delim='%!_!# ' 20453for ac_last_try in false false :; do 20454 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20455 if test -z "$ac_tt"; then 20456 break 20457 elif $ac_last_try; then 20458 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20459 else 20460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20461 fi 20462done 20463 20464# For the awk script, D is an array of macro values keyed by name, 20465# likewise P contains macro parameters if any. Preserve backslash 20466# newline sequences. 20467 20468ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20469sed -n ' 20470s/.\{148\}/&'"$ac_delim"'/g 20471t rset 20472:rset 20473s/^[ ]*#[ ]*define[ ][ ]*/ / 20474t def 20475d 20476:def 20477s/\\$// 20478t bsnl 20479s/["\\]/\\&/g 20480s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20481D["\1"]=" \3"/p 20482s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20483d 20484:bsnl 20485s/["\\]/\\&/g 20486s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20487D["\1"]=" \3\\\\\\n"\\/p 20488t cont 20489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20490t cont 20491d 20492:cont 20493n 20494s/.\{148\}/&'"$ac_delim"'/g 20495t clear 20496:clear 20497s/\\$// 20498t bsnlc 20499s/["\\]/\\&/g; s/^/"/; s/$/"/p 20500d 20501:bsnlc 20502s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20503b cont 20504' <confdefs.h | sed ' 20505s/'"$ac_delim"'/"\\\ 20506"/g' >>$CONFIG_STATUS || ac_write_fail=1 20507 20508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20509 for (key in D) D_is_set[key] = 1 20510 FS = "" 20511} 20512/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20513 line = \$ 0 20514 split(line, arg, " ") 20515 if (arg[1] == "#") { 20516 defundef = arg[2] 20517 mac1 = arg[3] 20518 } else { 20519 defundef = substr(arg[1], 2) 20520 mac1 = arg[2] 20521 } 20522 split(mac1, mac2, "(") #) 20523 macro = mac2[1] 20524 prefix = substr(line, 1, index(line, defundef) - 1) 20525 if (D_is_set[macro]) { 20526 # Preserve the white space surrounding the "#". 20527 print prefix "define", macro P[macro] D[macro] 20528 next 20529 } else { 20530 # Replace #undef with comments. This is necessary, for example, 20531 # in the case of _POSIX_SOURCE, which is predefined and required 20532 # on some systems where configure will not decide to define it. 20533 if (defundef == "undef") { 20534 print "/*", prefix defundef, macro, "*/" 20535 next 20536 } 20537 } 20538} 20539{ print } 20540_ACAWK 20541_ACEOF 20542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20543 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20544fi # test -n "$CONFIG_HEADERS" 20545 20546 20547eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20548shift 20549for ac_tag 20550do 20551 case $ac_tag in 20552 :[FHLC]) ac_mode=$ac_tag; continue;; 20553 esac 20554 case $ac_mode$ac_tag in 20555 :[FHL]*:*);; 20556 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20557 :[FH]-) ac_tag=-:-;; 20558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20559 esac 20560 ac_save_IFS=$IFS 20561 IFS=: 20562 set x $ac_tag 20563 IFS=$ac_save_IFS 20564 shift 20565 ac_file=$1 20566 shift 20567 20568 case $ac_mode in 20569 :L) ac_source=$1;; 20570 :[FH]) 20571 ac_file_inputs= 20572 for ac_f 20573 do 20574 case $ac_f in 20575 -) ac_f="$ac_tmp/stdin";; 20576 *) # Look for the file first in the build tree, then in the source tree 20577 # (if the path is not absolute). The absolute path cannot be DOS-style, 20578 # because $ac_f cannot contain `:'. 20579 test -f "$ac_f" || 20580 case $ac_f in 20581 [\\/$]*) false;; 20582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20583 esac || 20584 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20585 esac 20586 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20587 as_fn_append ac_file_inputs " '$ac_f'" 20588 done 20589 20590 # Let's still pretend it is `configure' which instantiates (i.e., don't 20591 # use $as_me), people would be surprised to read: 20592 # /* config.h. Generated by config.status. */ 20593 configure_input='Generated from '` 20594 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20595 `' by configure.' 20596 if test x"$ac_file" != x-; then 20597 configure_input="$ac_file. $configure_input" 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20599$as_echo "$as_me: creating $ac_file" >&6;} 20600 fi 20601 # Neutralize special characters interpreted by sed in replacement strings. 20602 case $configure_input in #( 20603 *\&* | *\|* | *\\* ) 20604 ac_sed_conf_input=`$as_echo "$configure_input" | 20605 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20606 *) ac_sed_conf_input=$configure_input;; 20607 esac 20608 20609 case $ac_tag in 20610 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20612 esac 20613 ;; 20614 esac 20615 20616 ac_dir=`$as_dirname -- "$ac_file" || 20617$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20618 X"$ac_file" : 'X\(//\)[^/]' \| \ 20619 X"$ac_file" : 'X\(//\)$' \| \ 20620 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20621$as_echo X"$ac_file" | 20622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20623 s//\1/ 20624 q 20625 } 20626 /^X\(\/\/\)[^/].*/{ 20627 s//\1/ 20628 q 20629 } 20630 /^X\(\/\/\)$/{ 20631 s//\1/ 20632 q 20633 } 20634 /^X\(\/\).*/{ 20635 s//\1/ 20636 q 20637 } 20638 s/.*/./; q'` 20639 as_dir="$ac_dir"; as_fn_mkdir_p 20640 ac_builddir=. 20641 20642case "$ac_dir" in 20643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20644*) 20645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20646 # A ".." for each directory in $ac_dir_suffix. 20647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20648 case $ac_top_builddir_sub in 20649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20651 esac ;; 20652esac 20653ac_abs_top_builddir=$ac_pwd 20654ac_abs_builddir=$ac_pwd$ac_dir_suffix 20655# for backward compatibility: 20656ac_top_builddir=$ac_top_build_prefix 20657 20658case $srcdir in 20659 .) # We are building in place. 20660 ac_srcdir=. 20661 ac_top_srcdir=$ac_top_builddir_sub 20662 ac_abs_top_srcdir=$ac_pwd ;; 20663 [\\/]* | ?:[\\/]* ) # Absolute name. 20664 ac_srcdir=$srcdir$ac_dir_suffix; 20665 ac_top_srcdir=$srcdir 20666 ac_abs_top_srcdir=$srcdir ;; 20667 *) # Relative name. 20668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20669 ac_top_srcdir=$ac_top_build_prefix$srcdir 20670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20671esac 20672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20673 20674 20675 case $ac_mode in 20676 :F) 20677 # 20678 # CONFIG_FILE 20679 # 20680 20681 case $INSTALL in 20682 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20683 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20684 esac 20685 ac_MKDIR_P=$MKDIR_P 20686 case $MKDIR_P in 20687 [\\/$]* | ?:[\\/]* ) ;; 20688 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20689 esac 20690_ACEOF 20691 20692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20693# If the template does not know about datarootdir, expand it. 20694# FIXME: This hack should be removed a few years after 2.60. 20695ac_datarootdir_hack=; ac_datarootdir_seen= 20696ac_sed_dataroot=' 20697/datarootdir/ { 20698 p 20699 q 20700} 20701/@datadir@/p 20702/@docdir@/p 20703/@infodir@/p 20704/@localedir@/p 20705/@mandir@/p' 20706case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20707*datarootdir*) ac_datarootdir_seen=yes;; 20708*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20710$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20711_ACEOF 20712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20713 ac_datarootdir_hack=' 20714 s&@datadir@&$datadir&g 20715 s&@docdir@&$docdir&g 20716 s&@infodir@&$infodir&g 20717 s&@localedir@&$localedir&g 20718 s&@mandir@&$mandir&g 20719 s&\\\${datarootdir}&$datarootdir&g' ;; 20720esac 20721_ACEOF 20722 20723# Neutralize VPATH when `$srcdir' = `.'. 20724# Shell code in configure.ac might set extrasub. 20725# FIXME: do we really want to maintain this feature? 20726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20727ac_sed_extra="$ac_vpsub 20728$extrasub 20729_ACEOF 20730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20731:t 20732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20733s|@configure_input@|$ac_sed_conf_input|;t t 20734s&@top_builddir@&$ac_top_builddir_sub&;t t 20735s&@top_build_prefix@&$ac_top_build_prefix&;t t 20736s&@srcdir@&$ac_srcdir&;t t 20737s&@abs_srcdir@&$ac_abs_srcdir&;t t 20738s&@top_srcdir@&$ac_top_srcdir&;t t 20739s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20740s&@builddir@&$ac_builddir&;t t 20741s&@abs_builddir@&$ac_abs_builddir&;t t 20742s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20743s&@INSTALL@&$ac_INSTALL&;t t 20744s&@MKDIR_P@&$ac_MKDIR_P&;t t 20745$ac_datarootdir_hack 20746" 20747eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20748 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20749 20750test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20751 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20753 "$ac_tmp/out"`; test -z "$ac_out"; } && 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20755which seems to be undefined. Please make sure it is defined" >&5 20756$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20757which seems to be undefined. Please make sure it is defined" >&2;} 20758 20759 rm -f "$ac_tmp/stdin" 20760 case $ac_file in 20761 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20762 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20763 esac \ 20764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20765 ;; 20766 :H) 20767 # 20768 # CONFIG_HEADER 20769 # 20770 if test x"$ac_file" != x-; then 20771 { 20772 $as_echo "/* $configure_input */" \ 20773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20774 } >"$ac_tmp/config.h" \ 20775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20776 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20778$as_echo "$as_me: $ac_file is unchanged" >&6;} 20779 else 20780 rm -f "$ac_file" 20781 mv "$ac_tmp/config.h" "$ac_file" \ 20782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20783 fi 20784 else 20785 $as_echo "/* $configure_input */" \ 20786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20787 || as_fn_error $? "could not create -" "$LINENO" 5 20788 fi 20789# Compute "$ac_file"'s index in $config_headers. 20790_am_arg="$ac_file" 20791_am_stamp_count=1 20792for _am_header in $config_headers :; do 20793 case $_am_header in 20794 $_am_arg | $_am_arg:* ) 20795 break ;; 20796 * ) 20797 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20798 esac 20799done 20800echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20801$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20802 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20803 X"$_am_arg" : 'X\(//\)$' \| \ 20804 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20805$as_echo X"$_am_arg" | 20806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20807 s//\1/ 20808 q 20809 } 20810 /^X\(\/\/\)[^/].*/{ 20811 s//\1/ 20812 q 20813 } 20814 /^X\(\/\/\)$/{ 20815 s//\1/ 20816 q 20817 } 20818 /^X\(\/\).*/{ 20819 s//\1/ 20820 q 20821 } 20822 s/.*/./; q'`/stamp-h$_am_stamp_count 20823 ;; 20824 20825 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20826$as_echo "$as_me: executing $ac_file commands" >&6;} 20827 ;; 20828 esac 20829 20830 20831 case $ac_file$ac_mode in 20832 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20833 # Older Autoconf quotes --file arguments for eval, but not when files 20834 # are listed without --file. Let's play safe and only enable the eval 20835 # if we detect the quoting. 20836 case $CONFIG_FILES in 20837 *\'*) eval set x "$CONFIG_FILES" ;; 20838 *) set x $CONFIG_FILES ;; 20839 esac 20840 shift 20841 for mf 20842 do 20843 # Strip MF so we end up with the name of the file. 20844 mf=`echo "$mf" | sed -e 's/:.*$//'` 20845 # Check whether this is an Automake generated Makefile or not. 20846 # We used to match only the files named 'Makefile.in', but 20847 # some people rename them; so instead we look at the file content. 20848 # Grep'ing the first line is not enough: some people post-process 20849 # each Makefile.in and add a new line on top of each file to say so. 20850 # Grep'ing the whole file is not good either: AIX grep has a line 20851 # limit of 2048, but all sed's we know have understand at least 4000. 20852 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20853 dirpart=`$as_dirname -- "$mf" || 20854$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20855 X"$mf" : 'X\(//\)[^/]' \| \ 20856 X"$mf" : 'X\(//\)$' \| \ 20857 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20858$as_echo X"$mf" | 20859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20860 s//\1/ 20861 q 20862 } 20863 /^X\(\/\/\)[^/].*/{ 20864 s//\1/ 20865 q 20866 } 20867 /^X\(\/\/\)$/{ 20868 s//\1/ 20869 q 20870 } 20871 /^X\(\/\).*/{ 20872 s//\1/ 20873 q 20874 } 20875 s/.*/./; q'` 20876 else 20877 continue 20878 fi 20879 # Extract the definition of DEPDIR, am__include, and am__quote 20880 # from the Makefile without running 'make'. 20881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20882 test -z "$DEPDIR" && continue 20883 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20884 test -z "$am__include" && continue 20885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20886 # Find all dependency output files, they are included files with 20887 # $(DEPDIR) in their names. We invoke sed twice because it is the 20888 # simplest approach to changing $(DEPDIR) to its actual value in the 20889 # expansion. 20890 for file in `sed -n " 20891 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20893 # Make sure the directory exists. 20894 test -f "$dirpart/$file" && continue 20895 fdir=`$as_dirname -- "$file" || 20896$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20897 X"$file" : 'X\(//\)[^/]' \| \ 20898 X"$file" : 'X\(//\)$' \| \ 20899 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20900$as_echo X"$file" | 20901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20902 s//\1/ 20903 q 20904 } 20905 /^X\(\/\/\)[^/].*/{ 20906 s//\1/ 20907 q 20908 } 20909 /^X\(\/\/\)$/{ 20910 s//\1/ 20911 q 20912 } 20913 /^X\(\/\).*/{ 20914 s//\1/ 20915 q 20916 } 20917 s/.*/./; q'` 20918 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20919 # echo "creating $dirpart/$file" 20920 echo '# dummy' > "$dirpart/$file" 20921 done 20922 done 20923} 20924 ;; 20925 "libtool":C) 20926 20927 # See if we are running on zsh, and set the options that allow our 20928 # commands through without removal of \ escapes. 20929 if test -n "${ZSH_VERSION+set}"; then 20930 setopt NO_GLOB_SUBST 20931 fi 20932 20933 cfgfile=${ofile}T 20934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20935 $RM "$cfgfile" 20936 20937 cat <<_LT_EOF >> "$cfgfile" 20938#! $SHELL 20939# Generated automatically by $as_me ($PACKAGE) $VERSION 20940# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20941# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20942 20943# Provide generalized library-building support services. 20944# Written by Gordon Matzigkeit, 1996 20945 20946# Copyright (C) 2014 Free Software Foundation, Inc. 20947# This is free software; see the source for copying conditions. There is NO 20948# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20949 20950# GNU Libtool is free software; you can redistribute it and/or modify 20951# it under the terms of the GNU General Public License as published by 20952# the Free Software Foundation; either version 2 of of the License, or 20953# (at your option) any later version. 20954# 20955# As a special exception to the GNU General Public License, if you 20956# distribute this file as part of a program or library that is built 20957# using GNU Libtool, you may include this file under the same 20958# distribution terms that you use for the rest of that program. 20959# 20960# GNU Libtool is distributed in the hope that it will be useful, but 20961# WITHOUT ANY WARRANTY; without even the implied warranty of 20962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20963# GNU General Public License for more details. 20964# 20965# You should have received a copy of the GNU General Public License 20966# along with this program. If not, see <http://www.gnu.org/licenses/>. 20967 20968 20969# The names of the tagged configurations supported by this script. 20970available_tags='' 20971 20972# Configured defaults for sys_lib_dlsearch_path munging. 20973: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20974 20975# ### BEGIN LIBTOOL CONFIG 20976 20977# Whether or not to build static libraries. 20978build_old_libs=$enable_static 20979 20980# Which release of libtool.m4 was used? 20981macro_version=$macro_version 20982macro_revision=$macro_revision 20983 20984# Whether or not to build shared libraries. 20985build_libtool_libs=$enable_shared 20986 20987# What type of objects to build. 20988pic_mode=$pic_mode 20989 20990# Whether or not to optimize for fast installation. 20991fast_install=$enable_fast_install 20992 20993# Shared archive member basename,for filename based shared library versioning on AIX. 20994shared_archive_member_spec=$shared_archive_member_spec 20995 20996# Shell to use when invoking shell scripts. 20997SHELL=$lt_SHELL 20998 20999# An echo program that protects backslashes. 21000ECHO=$lt_ECHO 21001 21002# The PATH separator for the build system. 21003PATH_SEPARATOR=$lt_PATH_SEPARATOR 21004 21005# The host system. 21006host_alias=$host_alias 21007host=$host 21008host_os=$host_os 21009 21010# The build system. 21011build_alias=$build_alias 21012build=$build 21013build_os=$build_os 21014 21015# A sed program that does not truncate output. 21016SED=$lt_SED 21017 21018# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21019Xsed="\$SED -e 1s/^X//" 21020 21021# A grep program that handles long lines. 21022GREP=$lt_GREP 21023 21024# An ERE matcher. 21025EGREP=$lt_EGREP 21026 21027# A literal string matcher. 21028FGREP=$lt_FGREP 21029 21030# A BSD- or MS-compatible name lister. 21031NM=$lt_NM 21032 21033# Whether we need soft or hard links. 21034LN_S=$lt_LN_S 21035 21036# What is the maximum length of a command? 21037max_cmd_len=$max_cmd_len 21038 21039# Object file suffix (normally "o"). 21040objext=$ac_objext 21041 21042# Executable file suffix (normally ""). 21043exeext=$exeext 21044 21045# whether the shell understands "unset". 21046lt_unset=$lt_unset 21047 21048# turn spaces into newlines. 21049SP2NL=$lt_lt_SP2NL 21050 21051# turn newlines into spaces. 21052NL2SP=$lt_lt_NL2SP 21053 21054# convert \$build file names to \$host format. 21055to_host_file_cmd=$lt_cv_to_host_file_cmd 21056 21057# convert \$build files to toolchain format. 21058to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21059 21060# An object symbol dumper. 21061OBJDUMP=$lt_OBJDUMP 21062 21063# Method to check whether dependent libraries are shared objects. 21064deplibs_check_method=$lt_deplibs_check_method 21065 21066# Command to use when deplibs_check_method = "file_magic". 21067file_magic_cmd=$lt_file_magic_cmd 21068 21069# How to find potential files when deplibs_check_method = "file_magic". 21070file_magic_glob=$lt_file_magic_glob 21071 21072# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21073want_nocaseglob=$lt_want_nocaseglob 21074 21075# DLL creation program. 21076DLLTOOL=$lt_DLLTOOL 21077 21078# Command to associate shared and link libraries. 21079sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21080 21081# The archiver. 21082AR=$lt_AR 21083 21084# Flags to create an archive. 21085AR_FLAGS=$lt_AR_FLAGS 21086 21087# How to feed a file listing to the archiver. 21088archiver_list_spec=$lt_archiver_list_spec 21089 21090# A symbol stripping program. 21091STRIP=$lt_STRIP 21092 21093# Commands used to install an old-style archive. 21094RANLIB=$lt_RANLIB 21095old_postinstall_cmds=$lt_old_postinstall_cmds 21096old_postuninstall_cmds=$lt_old_postuninstall_cmds 21097 21098# Whether to use a lock for old archive extraction. 21099lock_old_archive_extraction=$lock_old_archive_extraction 21100 21101# A C compiler. 21102LTCC=$lt_CC 21103 21104# LTCC compiler flags. 21105LTCFLAGS=$lt_CFLAGS 21106 21107# Take the output of nm and produce a listing of raw symbols and C names. 21108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21109 21110# Transform the output of nm in a proper C declaration. 21111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21112 21113# Transform the output of nm into a list of symbols to manually relocate. 21114global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21115 21116# Transform the output of nm in a C name address pair. 21117global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21118 21119# Transform the output of nm in a C name address pair when lib prefix is needed. 21120global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21121 21122# The name lister interface. 21123nm_interface=$lt_lt_cv_nm_interface 21124 21125# Specify filename containing input files for \$NM. 21126nm_file_list_spec=$lt_nm_file_list_spec 21127 21128# The root where to search for dependent libraries,and where our libraries should be installed. 21129lt_sysroot=$lt_sysroot 21130 21131# Command to truncate a binary pipe. 21132lt_truncate_bin=$lt_lt_cv_truncate_bin 21133 21134# The name of the directory that contains temporary libtool files. 21135objdir=$objdir 21136 21137# Used to examine libraries when file_magic_cmd begins with "file". 21138MAGIC_CMD=$MAGIC_CMD 21139 21140# Must we lock files when doing compilation? 21141need_locks=$lt_need_locks 21142 21143# Manifest tool. 21144MANIFEST_TOOL=$lt_MANIFEST_TOOL 21145 21146# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21147DSYMUTIL=$lt_DSYMUTIL 21148 21149# Tool to change global to local symbols on Mac OS X. 21150NMEDIT=$lt_NMEDIT 21151 21152# Tool to manipulate fat objects and archives on Mac OS X. 21153LIPO=$lt_LIPO 21154 21155# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21156OTOOL=$lt_OTOOL 21157 21158# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21159OTOOL64=$lt_OTOOL64 21160 21161# Old archive suffix (normally "a"). 21162libext=$libext 21163 21164# Shared library suffix (normally ".so"). 21165shrext_cmds=$lt_shrext_cmds 21166 21167# The commands to extract the exported symbol list from a shared archive. 21168extract_expsyms_cmds=$lt_extract_expsyms_cmds 21169 21170# Variables whose values should be saved in libtool wrapper scripts and 21171# restored at link time. 21172variables_saved_for_relink=$lt_variables_saved_for_relink 21173 21174# Do we need the "lib" prefix for modules? 21175need_lib_prefix=$need_lib_prefix 21176 21177# Do we need a version for libraries? 21178need_version=$need_version 21179 21180# Library versioning type. 21181version_type=$version_type 21182 21183# Shared library runtime path variable. 21184runpath_var=$runpath_var 21185 21186# Shared library path variable. 21187shlibpath_var=$shlibpath_var 21188 21189# Is shlibpath searched before the hard-coded library search path? 21190shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21191 21192# Format of library name prefix. 21193libname_spec=$lt_libname_spec 21194 21195# List of archive names. First name is the real one, the rest are links. 21196# The last name is the one that the linker finds with -lNAME 21197library_names_spec=$lt_library_names_spec 21198 21199# The coded name of the library, if different from the real name. 21200soname_spec=$lt_soname_spec 21201 21202# Permission mode override for installation of shared libraries. 21203install_override_mode=$lt_install_override_mode 21204 21205# Command to use after installation of a shared archive. 21206postinstall_cmds=$lt_postinstall_cmds 21207 21208# Command to use after uninstallation of a shared archive. 21209postuninstall_cmds=$lt_postuninstall_cmds 21210 21211# Commands used to finish a libtool library installation in a directory. 21212finish_cmds=$lt_finish_cmds 21213 21214# As "finish_cmds", except a single script fragment to be evaled but 21215# not shown. 21216finish_eval=$lt_finish_eval 21217 21218# Whether we should hardcode library paths into libraries. 21219hardcode_into_libs=$hardcode_into_libs 21220 21221# Compile-time system search path for libraries. 21222sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21223 21224# Detected run-time system search path for libraries. 21225sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21226 21227# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21228configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21229 21230# Whether dlopen is supported. 21231dlopen_support=$enable_dlopen 21232 21233# Whether dlopen of programs is supported. 21234dlopen_self=$enable_dlopen_self 21235 21236# Whether dlopen of statically linked programs is supported. 21237dlopen_self_static=$enable_dlopen_self_static 21238 21239# Commands to strip libraries. 21240old_striplib=$lt_old_striplib 21241striplib=$lt_striplib 21242 21243 21244# The linker used to build libraries. 21245LD=$lt_LD 21246 21247# How to create reloadable object files. 21248reload_flag=$lt_reload_flag 21249reload_cmds=$lt_reload_cmds 21250 21251# Commands used to build an old-style archive. 21252old_archive_cmds=$lt_old_archive_cmds 21253 21254# A language specific compiler. 21255CC=$lt_compiler 21256 21257# Is the compiler the GNU compiler? 21258with_gcc=$GCC 21259 21260# Compiler flag to turn off builtin functions. 21261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21262 21263# Additional compiler flags for building library objects. 21264pic_flag=$lt_lt_prog_compiler_pic 21265 21266# How to pass a linker flag through the compiler. 21267wl=$lt_lt_prog_compiler_wl 21268 21269# Compiler flag to prevent dynamic linking. 21270link_static_flag=$lt_lt_prog_compiler_static 21271 21272# Does compiler simultaneously support -c and -o options? 21273compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21274 21275# Whether or not to add -lc for building shared libraries. 21276build_libtool_need_lc=$archive_cmds_need_lc 21277 21278# Whether or not to disallow shared libs when runtime libs are static. 21279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21280 21281# Compiler flag to allow reflexive dlopens. 21282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21283 21284# Compiler flag to generate shared objects directly from archives. 21285whole_archive_flag_spec=$lt_whole_archive_flag_spec 21286 21287# Whether the compiler copes with passing no objects directly. 21288compiler_needs_object=$lt_compiler_needs_object 21289 21290# Create an old-style archive from a shared archive. 21291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21292 21293# Create a temporary old-style archive to link instead of a shared archive. 21294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21295 21296# Commands used to build a shared archive. 21297archive_cmds=$lt_archive_cmds 21298archive_expsym_cmds=$lt_archive_expsym_cmds 21299 21300# Commands used to build a loadable module if different from building 21301# a shared archive. 21302module_cmds=$lt_module_cmds 21303module_expsym_cmds=$lt_module_expsym_cmds 21304 21305# Whether we are building with GNU ld or not. 21306with_gnu_ld=$lt_with_gnu_ld 21307 21308# Flag that allows shared libraries with undefined symbols to be built. 21309allow_undefined_flag=$lt_allow_undefined_flag 21310 21311# Flag that enforces no undefined symbols. 21312no_undefined_flag=$lt_no_undefined_flag 21313 21314# Flag to hardcode \$libdir into a binary during linking. 21315# This must work even if \$libdir does not exist 21316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21317 21318# Whether we need a single "-rpath" flag with a separated argument. 21319hardcode_libdir_separator=$lt_hardcode_libdir_separator 21320 21321# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21322# DIR into the resulting binary. 21323hardcode_direct=$hardcode_direct 21324 21325# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21326# DIR into the resulting binary and the resulting library dependency is 21327# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21328# library is relocated. 21329hardcode_direct_absolute=$hardcode_direct_absolute 21330 21331# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21332# into the resulting binary. 21333hardcode_minus_L=$hardcode_minus_L 21334 21335# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21336# into the resulting binary. 21337hardcode_shlibpath_var=$hardcode_shlibpath_var 21338 21339# Set to "yes" if building a shared library automatically hardcodes DIR 21340# into the library and all subsequent libraries and executables linked 21341# against it. 21342hardcode_automatic=$hardcode_automatic 21343 21344# Set to yes if linker adds runtime paths of dependent libraries 21345# to runtime path list. 21346inherit_rpath=$inherit_rpath 21347 21348# Whether libtool must link a program against all its dependency libraries. 21349link_all_deplibs=$link_all_deplibs 21350 21351# Set to "yes" if exported symbols are required. 21352always_export_symbols=$always_export_symbols 21353 21354# The commands to list exported symbols. 21355export_symbols_cmds=$lt_export_symbols_cmds 21356 21357# Symbols that should not be listed in the preloaded symbols. 21358exclude_expsyms=$lt_exclude_expsyms 21359 21360# Symbols that must always be exported. 21361include_expsyms=$lt_include_expsyms 21362 21363# Commands necessary for linking programs (against libraries) with templates. 21364prelink_cmds=$lt_prelink_cmds 21365 21366# Commands necessary for finishing linking programs. 21367postlink_cmds=$lt_postlink_cmds 21368 21369# Specify filename containing input files. 21370file_list_spec=$lt_file_list_spec 21371 21372# How to hardcode a shared library path into an executable. 21373hardcode_action=$hardcode_action 21374 21375# ### END LIBTOOL CONFIG 21376 21377_LT_EOF 21378 21379 cat <<'_LT_EOF' >> "$cfgfile" 21380 21381# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21382 21383# func_munge_path_list VARIABLE PATH 21384# ----------------------------------- 21385# VARIABLE is name of variable containing _space_ separated list of 21386# directories to be munged by the contents of PATH, which is string 21387# having a format: 21388# "DIR[:DIR]:" 21389# string "DIR[ DIR]" will be prepended to VARIABLE 21390# ":DIR[:DIR]" 21391# string "DIR[ DIR]" will be appended to VARIABLE 21392# "DIRP[:DIRP]::[DIRA:]DIRA" 21393# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21394# "DIRA[ DIRA]" will be appended to VARIABLE 21395# "DIR[:DIR]" 21396# VARIABLE will be replaced by "DIR[ DIR]" 21397func_munge_path_list () 21398{ 21399 case x$2 in 21400 x) 21401 ;; 21402 *:) 21403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21404 ;; 21405 x:*) 21406 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21407 ;; 21408 *::*) 21409 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21410 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21411 ;; 21412 *) 21413 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21414 ;; 21415 esac 21416} 21417 21418 21419# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21420func_cc_basename () 21421{ 21422 for cc_temp in $*""; do 21423 case $cc_temp in 21424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21426 \-*) ;; 21427 *) break;; 21428 esac 21429 done 21430 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21431} 21432 21433 21434# ### END FUNCTIONS SHARED WITH CONFIGURE 21435 21436_LT_EOF 21437 21438 case $host_os in 21439 aix3*) 21440 cat <<\_LT_EOF >> "$cfgfile" 21441# AIX sometimes has problems with the GCC collect2 program. For some 21442# reason, if we set the COLLECT_NAMES environment variable, the problems 21443# vanish in a puff of smoke. 21444if test set != "${COLLECT_NAMES+set}"; then 21445 COLLECT_NAMES= 21446 export COLLECT_NAMES 21447fi 21448_LT_EOF 21449 ;; 21450 esac 21451 21452 21453ltmain=$ac_aux_dir/ltmain.sh 21454 21455 21456 # We use sed instead of cat because bash on DJGPP gets confused if 21457 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21458 # text mode, it properly converts lines to CR/LF. This bash problem 21459 # is reportedly fixed, but why not run on old versions too? 21460 sed '$q' "$ltmain" >> "$cfgfile" \ 21461 || (rm -f "$cfgfile"; exit 1) 21462 21463 mv -f "$cfgfile" "$ofile" || 21464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21465 chmod +x "$ofile" 21466 21467 ;; 21468 21469 esac 21470done # for ac_tag 21471 21472 21473as_fn_exit 0 21474_ACEOF 21475ac_clean_files=$ac_clean_files_save 21476 21477test $ac_write_fail = 0 || 21478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21479 21480 21481# configure is writing to config.log, and then calls config.status. 21482# config.status does its own redirection, appending to config.log. 21483# Unfortunately, on DOS this fails, as config.log is still kept open 21484# by configure, so config.status won't be able to write to it; its 21485# output is simply discarded. So we exec the FD to /dev/null, 21486# effectively closing config.log, so it can be properly (re)opened and 21487# appended to by config.status. When coming back to configure, we 21488# need to make the FD available again. 21489if test "$no_create" != yes; then 21490 ac_cs_success=: 21491 ac_config_status_args= 21492 test "$silent" = yes && 21493 ac_config_status_args="$ac_config_status_args --quiet" 21494 exec 5>/dev/null 21495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21496 exec 5>>config.log 21497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21498 # would make configure fail if this is the last instruction. 21499 $ac_cs_success || as_fn_exit 1 21500fi 21501if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21503$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21504fi 21505 21506