configure revision c97b1c41
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-vesa 2.3.3. 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-vesa' 593PACKAGE_TARNAME='xf86-video-vesa' 594PACKAGE_VERSION='2.3.3' 595PACKAGE_STRING='xf86-video-vesa 2.3.3' 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 641PCIACCESS_LIBS 642PCIACCESS_CFLAGS 643XEXT_LIBS 644XEXT_CFLAGS 645XORG_LIBS 646XORG_CFLAGS 647moduledir 648OTOOL64 649OTOOL 650LIPO 651NMEDIT 652DSYMUTIL 653MANIFEST_TOOL 654RANLIB 655ac_ct_AR 656AR 657DLLTOOL 658OBJDUMP 659LN_S 660NM 661ac_ct_DUMPBIN 662DUMPBIN 663LD 664FGREP 665LIBTOOL 666MAN_SUBSTS 667XORG_MAN_PAGE 668ADMIN_MAN_DIR 669DRIVER_MAN_DIR 670MISC_MAN_DIR 671FILE_MAN_DIR 672LIB_MAN_DIR 673APP_MAN_DIR 674ADMIN_MAN_SUFFIX 675DRIVER_MAN_SUFFIX 676MISC_MAN_SUFFIX 677FILE_MAN_SUFFIX 678LIB_MAN_SUFFIX 679APP_MAN_SUFFIX 680SED 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689INSTALL_CMD 690PKG_CONFIG_LIBDIR 691PKG_CONFIG_PATH 692PKG_CONFIG 693CHANGELOG_CMD 694STRICT_CFLAGS 695CWARNFLAGS 696BASE_CFLAGS 697EGREP 698GREP 699CPP 700am__fastdepCC_FALSE 701am__fastdepCC_TRUE 702CCDEPMODE 703am__nodep 704AMDEPBACKSLASH 705AMDEP_FALSE 706AMDEP_TRUE 707am__quote 708am__include 709DEPDIR 710OBJEXT 711EXEEXT 712ac_ct_CC 713CPPFLAGS 714LDFLAGS 715CFLAGS 716CC 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_silent_rules 786enable_dependency_tracking 787enable_selective_werror 788enable_strict_compilation 789enable_static 790enable_shared 791with_pic 792enable_fast_install 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796with_xorg_module_dir 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CPP 807PKG_CONFIG 808PKG_CONFIG_PATH 809PKG_CONFIG_LIBDIR 810XORG_CFLAGS 811XORG_LIBS 812XEXT_CFLAGS 813XEXT_LIBS 814PCIACCESS_CFLAGS 815PCIACCESS_LIBS' 816 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821ac_unrecognized_opts= 822ac_unrecognized_sep= 823# The variables have the same names as the options, with 824# dashes changed to underlines. 825cache_file=/dev/null 826exec_prefix=NONE 827no_create= 828no_recursion= 829prefix=NONE 830program_prefix=NONE 831program_suffix=NONE 832program_transform_name=s,x,x, 833silent= 834site= 835srcdir= 836verbose= 837x_includes=NONE 838x_libraries=NONE 839 840# Installation directory options. 841# These are left unexpanded so users can "make install exec_prefix=/foo" 842# and all the variables that are supposed to be based on exec_prefix 843# by default will actually change. 844# Use braces instead of parens because sh, perl, etc. also accept them. 845# (The list follows the same order as the GNU Coding Standards.) 846bindir='${exec_prefix}/bin' 847sbindir='${exec_prefix}/sbin' 848libexecdir='${exec_prefix}/libexec' 849datarootdir='${prefix}/share' 850datadir='${datarootdir}' 851sysconfdir='${prefix}/etc' 852sharedstatedir='${prefix}/com' 853localstatedir='${prefix}/var' 854includedir='${prefix}/include' 855oldincludedir='/usr/include' 856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 857infodir='${datarootdir}/info' 858htmldir='${docdir}' 859dvidir='${docdir}' 860pdfdir='${docdir}' 861psdir='${docdir}' 862libdir='${exec_prefix}/lib' 863localedir='${datarootdir}/locale' 864mandir='${datarootdir}/man' 865 866ac_prev= 867ac_dashdash= 868for ac_option 869do 870 # If the previous option needs an argument, assign it. 871 if test -n "$ac_prev"; then 872 eval $ac_prev=\$ac_option 873 ac_prev= 874 continue 875 fi 876 877 case $ac_option in 878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 879 *=) ac_optarg= ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 elif test "x$build_alias" != "x$host_alias"; then 1272 cross_compiling=yes 1273 fi 1274fi 1275 1276ac_tool_prefix= 1277test -n "$host_alias" && ac_tool_prefix=$host_alias- 1278 1279test "$silent" = yes && exec 6>/dev/null 1280 1281 1282ac_pwd=`pwd` && test -n "$ac_pwd" && 1283ac_ls_di=`ls -di .` && 1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1285 as_fn_error $? "working directory cannot be determined" 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1287 as_fn_error $? "pwd does not report name of working directory" 1288 1289 1290# Find the source files, if location was not specified. 1291if test -z "$srcdir"; then 1292 ac_srcdir_defaulted=yes 1293 # Try the directory containing this script, then the parent directory. 1294 ac_confdir=`$as_dirname -- "$as_myself" || 1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1297 X"$as_myself" : 'X\(//\)$' \| \ 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299$as_echo X"$as_myself" | 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)[^/].*/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\).*/{ 1313 s//\1/ 1314 q 1315 } 1316 s/.*/./; q'` 1317 srcdir=$ac_confdir 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 srcdir=.. 1320 fi 1321else 1322 ac_srcdir_defaulted=no 1323fi 1324if test ! -r "$srcdir/$ac_unique_file"; then 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327fi 1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1329ac_abs_confdir=`( 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331 pwd)` 1332# When building in place, set srcdir=. 1333if test "$ac_abs_confdir" = "$ac_pwd"; then 1334 srcdir=. 1335fi 1336# Remove unnecessary trailing slashes from srcdir. 1337# Double slashes in file names in object file debugging info 1338# mess up M-x gdb in Emacs. 1339case $srcdir in 1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341esac 1342for ac_var in $ac_precious_vars; do 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_env_${ac_var}_value=\$${ac_var} 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347done 1348 1349# 1350# Report the --help message. 1351# 1352if test "$ac_init_help" = "long"; then 1353 # Omit some internal or obsolete options to make the list less imposing. 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1355 cat <<_ACEOF 1356\`configure' configures xf86-video-vesa 2.3.3 to adapt to many kinds of systems. 1357 1358Usage: $0 [OPTION]... [VAR=VALUE]... 1359 1360To assign environment variables (e.g., CC, CFLAGS...), specify them as 1361VAR=VALUE. See below for descriptions of some of the useful variables. 1362 1363Defaults for the options are specified in brackets. 1364 1365Configuration: 1366 -h, --help display this help and exit 1367 --help=short display options specific to this package 1368 --help=recursive display the short help of all the included packages 1369 -V, --version display version information and exit 1370 -q, --quiet, --silent do not print \`checking ...' messages 1371 --cache-file=FILE cache test results in FILE [disabled] 1372 -C, --config-cache alias for \`--cache-file=config.cache' 1373 -n, --no-create do not create output files 1374 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1375 1376Installation directories: 1377 --prefix=PREFIX install architecture-independent files in PREFIX 1378 [$ac_default_prefix] 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1380 [PREFIX] 1381 1382By default, \`make install' will install all the files in 1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1384an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1385for instance \`--prefix=\$HOME'. 1386 1387For better control, use the options below. 1388 1389Fine tuning of the installation directories: 1390 --bindir=DIR user executables [EPREFIX/bin] 1391 --sbindir=DIR system admin executables [EPREFIX/sbin] 1392 --libexecdir=DIR program executables [EPREFIX/libexec] 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421_ACEOF 1422fi 1423 1424if test -n "$ac_init_help"; then 1425 case $ac_init_help in 1426 short | recursive ) echo "Configuration of xf86-video-vesa 2.3.3:";; 1427 esac 1428 cat <<\_ACEOF 1429 1430Optional Features: 1431 --disable-option-checking ignore unrecognized --enable/--with options 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --enable-dependency-tracking 1437 do not reject slow dependency extractors 1438 --disable-dependency-tracking 1439 speeds up one-time build 1440 --disable-selective-werror 1441 Turn off selective compiler errors. (default: 1442 enabled) 1443 --enable-strict-compilation 1444 Enable all warnings from compiler and make them 1445 errors (default: disabled) 1446 --enable-static[=PKGS] build static libraries [default=no] 1447 --enable-shared[=PKGS] build shared libraries [default=yes] 1448 --enable-fast-install[=PKGS] 1449 optimize for fast installation [default=yes] 1450 --disable-libtool-lock avoid locking (might break parallel builds) 1451 1452Optional Packages: 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1456 both] 1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1458 --with-sysroot=DIR Search for dependent libraries within DIR 1459 (or the compiler's sysroot if not specified). 1460 --with-xorg-module-dir=DIR 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 CPP C preprocessor 1471 PKG_CONFIG path to pkg-config utility 1472 PKG_CONFIG_PATH 1473 directories to add to pkg-config's search path 1474 PKG_CONFIG_LIBDIR 1475 path overriding pkg-config's built-in search path 1476 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1477 XORG_LIBS linker flags for XORG, overriding pkg-config 1478 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1479 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1480 PCIACCESS_CFLAGS 1481 C compiler flags for PCIACCESS, overriding pkg-config 1482 PCIACCESS_LIBS 1483 linker flags for PCIACCESS, overriding pkg-config 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for guested configure. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551xf86-video-vesa configure 2.3.3 1552generated by GNU Autoconf 2.69 1553 1554Copyright (C) 2012 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565# ac_fn_c_try_compile LINENO 1566# -------------------------- 1567# Try to compile conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601} # ac_fn_c_try_compile 1602 1603# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1604# --------------------------------------------- 1605# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1606# accordingly. 1607ac_fn_c_check_decl () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 as_decl_name=`echo $2|sed 's/ *(.*//'` 1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1613$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1614if eval \${$3+:} false; then : 1615 $as_echo_n "(cached) " >&6 1616else 1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619$4 1620int 1621main () 1622{ 1623#ifndef $as_decl_name 1624#ifdef __cplusplus 1625 (void) $as_decl_use; 1626#else 1627 (void) $as_decl_name; 1628#endif 1629#endif 1630 1631 ; 1632 return 0; 1633} 1634_ACEOF 1635if ac_fn_c_try_compile "$LINENO"; then : 1636 eval "$3=yes" 1637else 1638 eval "$3=no" 1639fi 1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1641fi 1642eval ac_res=\$$3 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644$as_echo "$ac_res" >&6; } 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 1647} # ac_fn_c_check_decl 1648 1649# ac_fn_c_try_cpp LINENO 1650# ---------------------- 1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1652ac_fn_c_try_cpp () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 if { { ac_try="$ac_cpp conftest.$ac_ext" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } > conftest.i && { 1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 }; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_cpp 1685 1686# ac_fn_c_try_run LINENO 1687# ---------------------- 1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1689# that executables *can* be run. 1690ac_fn_c_try_run () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 if { { ac_try="$ac_link" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1704 { { case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_try") 2>&5 1711 ac_status=$? 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; }; }; then : 1714 ac_retval=0 1715else 1716 $as_echo "$as_me: program exited with status $ac_status" >&5 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=$ac_status 1721fi 1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 as_fn_set_status $ac_retval 1725 1726} # ac_fn_c_try_run 1727 1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1729# ------------------------------------------------------- 1730# Tests whether HEADER exists and can be compiled using the include files in 1731# INCLUDES, setting the cache variable VAR accordingly. 1732ac_fn_c_check_header_compile () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743#include <$2> 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO"; then : 1746 eval "$3=yes" 1747else 1748 eval "$3=no" 1749fi 1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1751fi 1752eval ac_res=\$$3 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754$as_echo "$ac_res" >&6; } 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 1757} # ac_fn_c_check_header_compile 1758 1759# ac_fn_c_try_link LINENO 1760# ----------------------- 1761# Try to link conftest.$ac_ext, and return whether this succeeded. 1762ac_fn_c_try_link () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 rm -f conftest.$ac_objext conftest$ac_exeext 1766 if { { ac_try="$ac_link" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_link") 2>conftest.err 1774 ac_status=$? 1775 if test -s conftest.err; then 1776 grep -v '^ *+' conftest.err >conftest.er1 1777 cat conftest.er1 >&5 1778 mv -f conftest.er1 conftest.err 1779 fi 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { 1782 test -z "$ac_c_werror_flag" || 1783 test ! -s conftest.err 1784 } && test -s conftest$ac_exeext && { 1785 test "$cross_compiling" = yes || 1786 test -x conftest$ac_exeext 1787 }; then : 1788 ac_retval=0 1789else 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=1 1794fi 1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1797 # interfere with the next link command; also delete a directory that is 1798 # left behind by Apple's compiler. We do this before executing the actions. 1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_link 1804 1805# ac_fn_c_check_func LINENO FUNC VAR 1806# ---------------------------------- 1807# Tests whether FUNC exists, setting the cache variable VAR accordingly 1808ac_fn_c_check_func () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1820#define $2 innocuous_$2 1821 1822/* System header to define __stub macros and hopefully few prototypes, 1823 which can conflict with char $2 (); below. 1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1825 <limits.h> exists even on freestanding compilers. */ 1826 1827#ifdef __STDC__ 1828# include <limits.h> 1829#else 1830# include <assert.h> 1831#endif 1832 1833#undef $2 1834 1835/* Override any GCC internal prototype to avoid an error. 1836 Use char because int might match the return type of a GCC 1837 builtin and then its argument prototype would still apply. */ 1838#ifdef __cplusplus 1839extern "C" 1840#endif 1841char $2 (); 1842/* The GNU C library defines this for functions which it implements 1843 to always fail with ENOSYS. Some functions are actually named 1844 something starting with __ and the normal name is an alias. */ 1845#if defined __stub_$2 || defined __stub___$2 1846choke me 1847#endif 1848 1849int 1850main () 1851{ 1852return $2 (); 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_link "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext \ 1863 conftest$ac_exeext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_func 1871cat >config.log <<_ACEOF 1872This file contains any messages produced by compilers while 1873running configure, to aid debugging if configure makes a mistake. 1874 1875It was created by xf86-video-vesa $as_me 2.3.3, which was 1876generated by GNU Autoconf 2.69. Invocation command line was 1877 1878 $ $0 $@ 1879 1880_ACEOF 1881exec 5>>config.log 1882{ 1883cat <<_ASUNAME 1884## --------- ## 1885## Platform. ## 1886## --------- ## 1887 1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1889uname -m = `(uname -m) 2>/dev/null || echo unknown` 1890uname -r = `(uname -r) 2>/dev/null || echo unknown` 1891uname -s = `(uname -s) 2>/dev/null || echo unknown` 1892uname -v = `(uname -v) 2>/dev/null || echo unknown` 1893 1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1895/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1896 1897/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1898/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1900/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1901/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1902/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1903/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1904 1905_ASUNAME 1906 1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1908for as_dir in $PATH 1909do 1910 IFS=$as_save_IFS 1911 test -z "$as_dir" && as_dir=. 1912 $as_echo "PATH: $as_dir" 1913 done 1914IFS=$as_save_IFS 1915 1916} >&5 1917 1918cat >&5 <<_ACEOF 1919 1920 1921## ----------- ## 1922## Core tests. ## 1923## ----------- ## 1924 1925_ACEOF 1926 1927 1928# Keep a trace of the command line. 1929# Strip out --no-create and --no-recursion so they do not pile up. 1930# Strip out --silent because we don't want to record it for future runs. 1931# Also quote any args containing shell meta-characters. 1932# Make two passes to allow for proper duplicate-argument suppression. 1933ac_configure_args= 1934ac_configure_args0= 1935ac_configure_args1= 1936ac_must_keep_next=false 1937for ac_pass in 1 2 1938do 1939 for ac_arg 1940 do 1941 case $ac_arg in 1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1944 | -silent | --silent | --silen | --sile | --sil) 1945 continue ;; 1946 *\'*) 1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1948 esac 1949 case $ac_pass in 1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1951 2) 1952 as_fn_append ac_configure_args1 " '$ac_arg'" 1953 if test $ac_must_keep_next = true; then 1954 ac_must_keep_next=false # Got value, back to normal. 1955 else 1956 case $ac_arg in 1957 *=* | --config-cache | -C | -disable-* | --disable-* \ 1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1960 | -with-* | --with-* | -without-* | --without-* | --x) 1961 case "$ac_configure_args0 " in 1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1963 esac 1964 ;; 1965 -* ) ac_must_keep_next=true ;; 1966 esac 1967 fi 1968 as_fn_append ac_configure_args " '$ac_arg'" 1969 ;; 1970 esac 1971 done 1972done 1973{ ac_configure_args0=; unset ac_configure_args0;} 1974{ ac_configure_args1=; unset ac_configure_args1;} 1975 1976# When interrupted or exit'd, cleanup temporary files, and complete 1977# config.log. We remove comments because anyway the quotes in there 1978# would cause problems or look ugly. 1979# WARNING: Use '\'' to represent an apostrophe within the trap. 1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1981trap 'exit_status=$? 1982 # Save into config.log some information that might help in debugging. 1983 { 1984 echo 1985 1986 $as_echo "## ---------------- ## 1987## Cache variables. ## 1988## ---------------- ##" 1989 echo 1990 # The following way of writing the cache mishandles newlines in values, 1991( 1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in #( 1995 *${as_nl}*) 1996 case $ac_var in #( 1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1999 esac 2000 case $ac_var in #( 2001 _ | IFS | as_nl) ;; #( 2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2003 *) { eval $ac_var=; unset $ac_var;} ;; 2004 esac ;; 2005 esac 2006 done 2007 (set) 2>&1 | 2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2009 *${as_nl}ac_space=\ *) 2010 sed -n \ 2011 "s/'\''/'\''\\\\'\'''\''/g; 2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2013 ;; #( 2014 *) 2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2016 ;; 2017 esac | 2018 sort 2019) 2020 echo 2021 2022 $as_echo "## ----------------- ## 2023## Output variables. ## 2024## ----------------- ##" 2025 echo 2026 for ac_var in $ac_subst_vars 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 $as_echo "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 2036 if test -n "$ac_subst_files"; then 2037 $as_echo "## ------------------- ## 2038## File substitutions. ## 2039## ------------------- ##" 2040 echo 2041 for ac_var in $ac_subst_files 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 $as_echo "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 fi 2051 2052 if test -s confdefs.h; then 2053 $as_echo "## ----------- ## 2054## confdefs.h. ## 2055## ----------- ##" 2056 echo 2057 cat confdefs.h 2058 echo 2059 fi 2060 test "$ac_signal" != 0 && 2061 $as_echo "$as_me: caught signal $ac_signal" 2062 $as_echo "$as_me: exit $exit_status" 2063 } >&5 2064 rm -f core *.core core.conftest.* && 2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2066 exit $exit_status 2067' 0 2068for ac_signal in 1 2 13 15; do 2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2070done 2071ac_signal=0 2072 2073# confdefs.h avoids OS command line length limits that DEFS can exceed. 2074rm -f -r conftest* confdefs.h 2075 2076$as_echo "/* confdefs.h */" > confdefs.h 2077 2078# Predefined preprocessor variables. 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_NAME "$PACKAGE_NAME" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_VERSION "$PACKAGE_VERSION" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_STRING "$PACKAGE_STRING" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_URL "$PACKAGE_URL" 2102_ACEOF 2103 2104 2105# Let the site file select an alternate cache file if it wants to. 2106# Prefer an explicitly selected file to automatically selected ones. 2107ac_site_file1=NONE 2108ac_site_file2=NONE 2109if test -n "$CONFIG_SITE"; then 2110 # We do not want a PATH search for config.site. 2111 case $CONFIG_SITE in #(( 2112 -*) ac_site_file1=./$CONFIG_SITE;; 2113 */*) ac_site_file1=$CONFIG_SITE;; 2114 *) ac_site_file1=./$CONFIG_SITE;; 2115 esac 2116elif test "x$prefix" != xNONE; then 2117 ac_site_file1=$prefix/share/config.site 2118 ac_site_file2=$prefix/etc/config.site 2119else 2120 ac_site_file1=$ac_default_prefix/share/config.site 2121 ac_site_file2=$ac_default_prefix/etc/config.site 2122fi 2123for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2124do 2125 test "x$ac_site_file" = xNONE && continue 2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2128$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2129 sed 's/^/| /' "$ac_site_file" >&5 2130 . "$ac_site_file" \ 2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2133as_fn_error $? "failed to load site script $ac_site_file 2134See \`config.log' for more details" "$LINENO" 5; } 2135 fi 2136done 2137 2138if test -r "$cache_file"; then 2139 # Some versions of bash will fail to source /dev/null (special files 2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2143$as_echo "$as_me: loading cache $cache_file" >&6;} 2144 case $cache_file in 2145 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2146 *) . "./$cache_file";; 2147 esac 2148 fi 2149else 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2151$as_echo "$as_me: creating cache $cache_file" >&6;} 2152 >$cache_file 2153fi 2154 2155# Check that the precious variables saved in the cache have kept the same 2156# value. 2157ac_cache_corrupted=false 2158for ac_var in $ac_precious_vars; do 2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2160 eval ac_new_set=\$ac_env_${ac_var}_set 2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2162 eval ac_new_val=\$ac_env_${ac_var}_value 2163 case $ac_old_set,$ac_new_set in 2164 set,) 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2167 ac_cache_corrupted=: ;; 2168 ,set) 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2171 ac_cache_corrupted=: ;; 2172 ,);; 2173 *) 2174 if test "x$ac_old_val" != "x$ac_new_val"; then 2175 # differences in whitespace do not lead to failure. 2176 ac_old_val_w=`echo x $ac_old_val` 2177 ac_new_val_w=`echo x $ac_new_val` 2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2181 ac_cache_corrupted=: 2182 else 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2185 eval $ac_var=\$ac_old_val 2186 fi 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2188$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2190$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2191 fi;; 2192 esac 2193 # Pass precious variables to config.status. 2194 if test "$ac_new_set" = set; then 2195 case $ac_new_val in 2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2197 *) ac_arg=$ac_var=$ac_new_val ;; 2198 esac 2199 case " $ac_configure_args " in 2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2202 esac 2203 fi 2204done 2205if $ac_cache_corrupted; then 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2211fi 2212## -------------------- ## 2213## Main body of script. ## 2214## -------------------- ## 2215 2216ac_ext=c 2217ac_cpp='$CPP $CPPFLAGS' 2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2220ac_compiler_gnu=$ac_cv_c_compiler_gnu 2221 2222 2223 2224ac_config_headers="$ac_config_headers config.h" 2225 2226ac_aux_dir= 2227for ac_dir in . "$srcdir"/.; do 2228 if test -f "$ac_dir/install-sh"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/install-sh -c" 2231 break 2232 elif test -f "$ac_dir/install.sh"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/install.sh -c" 2235 break 2236 elif test -f "$ac_dir/shtool"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/shtool install -c" 2239 break 2240 fi 2241done 2242if test -z "$ac_aux_dir"; then 2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2244fi 2245 2246# These three variables are undocumented and unsupported, 2247# and are intended to be withdrawn in a future Autoconf release. 2248# They can cause serious problems if a builder's source tree is in a directory 2249# whose full name contains unusual characters. 2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2253 2254 2255 2256# Initialize Automake 2257am__api_version='1.13' 2258 2259# Find a good install program. We prefer a C program (faster), 2260# so one script is as good as another. But avoid the broken or 2261# incompatible versions: 2262# SysV /etc/install, /usr/sbin/install 2263# SunOS /usr/etc/install 2264# IRIX /sbin/install 2265# AIX /bin/install 2266# AmigaOS /C/install, which installs bootblocks on floppy discs 2267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2268# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2270# OS/2's system install, which has a completely different semantic 2271# ./install, which can be erroneously created by make from ./install.sh. 2272# Reject install programs that cannot install multiple files. 2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2274$as_echo_n "checking for a BSD-compatible install... " >&6; } 2275if test -z "$INSTALL"; then 2276if ${ac_cv_path_install+:} false; then : 2277 $as_echo_n "(cached) " >&6 2278else 2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 # Account for people who put trailing slashes in PATH elements. 2285case $as_dir/ in #(( 2286 ./ | .// | /[cC]/* | \ 2287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2288 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2289 /usr/ucb/* ) ;; 2290 *) 2291 # OSF1 and SCO ODT 3.0 have their own names for install. 2292 # Don't use installbsd from OSF since it installs stuff as root 2293 # by default. 2294 for ac_prog in ginstall scoinst install; do 2295 for ac_exec_ext in '' $ac_executable_extensions; do 2296 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2297 if test $ac_prog = install && 2298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2299 # AIX install. It has an incompatible calling convention. 2300 : 2301 elif test $ac_prog = install && 2302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2303 # program-specific install script used by HP pwplus--don't use. 2304 : 2305 else 2306 rm -rf conftest.one conftest.two conftest.dir 2307 echo one > conftest.one 2308 echo two > conftest.two 2309 mkdir conftest.dir 2310 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2311 test -s conftest.one && test -s conftest.two && 2312 test -s conftest.dir/conftest.one && 2313 test -s conftest.dir/conftest.two 2314 then 2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2316 break 3 2317 fi 2318 fi 2319 fi 2320 done 2321 done 2322 ;; 2323esac 2324 2325 done 2326IFS=$as_save_IFS 2327 2328rm -rf conftest.one conftest.two conftest.dir 2329 2330fi 2331 if test "${ac_cv_path_install+set}" = set; then 2332 INSTALL=$ac_cv_path_install 2333 else 2334 # As a last resort, use the slow shell script. Don't cache a 2335 # value for INSTALL within a source directory, because that will 2336 # break other packages using the cache if that directory is 2337 # removed, or if the value is a relative name. 2338 INSTALL=$ac_install_sh 2339 fi 2340fi 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2342$as_echo "$INSTALL" >&6; } 2343 2344# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2345# It thinks the first close brace ends the variable substitution. 2346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2347 2348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2349 2350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2351 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2353$as_echo_n "checking whether build environment is sane... " >&6; } 2354# Reject unsafe characters in $srcdir or the absolute working directory 2355# name. Accept space and tab only in the latter. 2356am_lf=' 2357' 2358case `pwd` in 2359 *[\\\"\#\$\&\'\`$am_lf]*) 2360 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2361esac 2362case $srcdir in 2363 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2364 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2365esac 2366 2367# Do 'set' in a subshell so we don't clobber the current shell's 2368# arguments. Must try -L first in case configure is actually a 2369# symlink; some systems play weird games with the mod time of symlinks 2370# (eg FreeBSD returns the mod time of the symlink's containing 2371# directory). 2372if ( 2373 am_has_slept=no 2374 for am_try in 1 2; do 2375 echo "timestamp, slept: $am_has_slept" > conftest.file 2376 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2377 if test "$*" = "X"; then 2378 # -L didn't work. 2379 set X `ls -t "$srcdir/configure" conftest.file` 2380 fi 2381 if test "$*" != "X $srcdir/configure conftest.file" \ 2382 && test "$*" != "X conftest.file $srcdir/configure"; then 2383 2384 # If neither matched, then we have a broken ls. This can happen 2385 # if, for instance, CONFIG_SHELL is bash and it inherits a 2386 # broken ls alias from the environment. This has actually 2387 # happened. Such a system could not be considered "sane". 2388 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2389 alias in your environment" "$LINENO" 5 2390 fi 2391 if test "$2" = conftest.file || test $am_try -eq 2; then 2392 break 2393 fi 2394 # Just in case. 2395 sleep 1 2396 am_has_slept=yes 2397 done 2398 test "$2" = conftest.file 2399 ) 2400then 2401 # Ok. 2402 : 2403else 2404 as_fn_error $? "newly created file is older than distributed files! 2405Check your system clock" "$LINENO" 5 2406fi 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2408$as_echo "yes" >&6; } 2409# If we didn't sleep, we still need to ensure time stamps of config.status and 2410# generated files are strictly newer. 2411am_sleep_pid= 2412if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2413 ( sleep 1 ) & 2414 am_sleep_pid=$! 2415fi 2416 2417rm -f conftest.file 2418 2419test "$program_prefix" != NONE && 2420 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2421# Use a double $ so make ignores it. 2422test "$program_suffix" != NONE && 2423 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2424# Double any \ or $. 2425# By default was `s,x,x', remove it if useless. 2426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2428 2429# expand $ac_aux_dir to an absolute path 2430am_aux_dir=`cd $ac_aux_dir && pwd` 2431 2432if test x"${MISSING+set}" != xset; then 2433 case $am_aux_dir in 2434 *\ * | *\ *) 2435 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2436 *) 2437 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2438 esac 2439fi 2440# Use eval to expand $SHELL 2441if eval "$MISSING --is-lightweight"; then 2442 am_missing_run="$MISSING " 2443else 2444 am_missing_run= 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2446$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2447fi 2448 2449if test x"${install_sh}" != xset; then 2450 case $am_aux_dir in 2451 *\ * | *\ *) 2452 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2453 *) 2454 install_sh="\${SHELL} $am_aux_dir/install-sh" 2455 esac 2456fi 2457 2458# Installed binaries are usually stripped using 'strip' when the user 2459# run "make install-strip". However 'strip' might not be the right 2460# tool to use in cross-compilation environments, therefore Automake 2461# will honor the 'STRIP' environment variable to overrule this program. 2462if test "$cross_compiling" != no; then 2463 if test -n "$ac_tool_prefix"; then 2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2465set dummy ${ac_tool_prefix}strip; ac_word=$2 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2467$as_echo_n "checking for $ac_word... " >&6; } 2468if ${ac_cv_prog_STRIP+:} false; then : 2469 $as_echo_n "(cached) " >&6 2470else 2471 if test -n "$STRIP"; then 2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486 done 2487IFS=$as_save_IFS 2488 2489fi 2490fi 2491STRIP=$ac_cv_prog_STRIP 2492if test -n "$STRIP"; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2494$as_echo "$STRIP" >&6; } 2495else 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2497$as_echo "no" >&6; } 2498fi 2499 2500 2501fi 2502if test -z "$ac_cv_prog_STRIP"; then 2503 ac_ct_STRIP=$STRIP 2504 # Extract the first word of "strip", so it can be a program name with args. 2505set dummy strip; ac_word=$2 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2507$as_echo_n "checking for $ac_word... " >&6; } 2508if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2509 $as_echo_n "(cached) " >&6 2510else 2511 if test -n "$ac_ct_STRIP"; then 2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2521 ac_cv_prog_ac_ct_STRIP="strip" 2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526 done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2532if test -n "$ac_ct_STRIP"; then 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2534$as_echo "$ac_ct_STRIP" >&6; } 2535else 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2537$as_echo "no" >&6; } 2538fi 2539 2540 if test "x$ac_ct_STRIP" = x; then 2541 STRIP=":" 2542 else 2543 case $cross_compiling:$ac_tool_warned in 2544yes:) 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2547ac_tool_warned=yes ;; 2548esac 2549 STRIP=$ac_ct_STRIP 2550 fi 2551else 2552 STRIP="$ac_cv_prog_STRIP" 2553fi 2554 2555fi 2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2557 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2560if test -z "$MKDIR_P"; then 2561 if ${ac_cv_path_mkdir+:} false; then : 2562 $as_echo_n "(cached) " >&6 2563else 2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_prog in mkdir gmkdir; do 2570 for ac_exec_ext in '' $ac_executable_extensions; do 2571 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2573 'mkdir (GNU coreutils) '* | \ 2574 'mkdir (coreutils) '* | \ 2575 'mkdir (fileutils) '4.1*) 2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2577 break 3;; 2578 esac 2579 done 2580 done 2581 done 2582IFS=$as_save_IFS 2583 2584fi 2585 2586 test -d ./--version && rmdir ./--version 2587 if test "${ac_cv_path_mkdir+set}" = set; then 2588 MKDIR_P="$ac_cv_path_mkdir -p" 2589 else 2590 # As a last resort, use the slow shell script. Don't cache a 2591 # value for MKDIR_P within a source directory, because that will 2592 # break other packages using the cache if that directory is 2593 # removed, or if the value is a relative name. 2594 MKDIR_P="$ac_install_sh -d" 2595 fi 2596fi 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2598$as_echo "$MKDIR_P" >&6; } 2599 2600for ac_prog in gawk mawk nawk awk 2601do 2602 # Extract the first word of "$ac_prog", so it can be a program name with args. 2603set dummy $ac_prog; ac_word=$2 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605$as_echo_n "checking for $ac_word... " >&6; } 2606if ${ac_cv_prog_AWK+:} false; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test -n "$AWK"; then 2610 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2611else 2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613for as_dir in $PATH 2614do 2615 IFS=$as_save_IFS 2616 test -z "$as_dir" && as_dir=. 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2619 ac_cv_prog_AWK="$ac_prog" 2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2621 break 2 2622 fi 2623done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628fi 2629AWK=$ac_cv_prog_AWK 2630if test -n "$AWK"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2632$as_echo "$AWK" >&6; } 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636fi 2637 2638 2639 test -n "$AWK" && break 2640done 2641 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2644set x ${MAKE-make} 2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2647 $as_echo_n "(cached) " >&6 2648else 2649 cat >conftest.make <<\_ACEOF 2650SHELL = /bin/sh 2651all: 2652 @echo '@@@%%%=$(MAKE)=@@@%%%' 2653_ACEOF 2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2655case `${MAKE-make} -f conftest.make 2>/dev/null` in 2656 *@@@%%%=?*=@@@%%%*) 2657 eval ac_cv_prog_make_${ac_make}_set=yes;; 2658 *) 2659 eval ac_cv_prog_make_${ac_make}_set=no;; 2660esac 2661rm -f conftest.make 2662fi 2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665$as_echo "yes" >&6; } 2666 SET_MAKE= 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670 SET_MAKE="MAKE=${MAKE-make}" 2671fi 2672 2673rm -rf .tst 2>/dev/null 2674mkdir .tst 2>/dev/null 2675if test -d .tst; then 2676 am__leading_dot=. 2677else 2678 am__leading_dot=_ 2679fi 2680rmdir .tst 2>/dev/null 2681 2682# Check whether --enable-silent-rules was given. 2683if test "${enable_silent_rules+set}" = set; then : 2684 enableval=$enable_silent_rules; 2685fi 2686 2687case $enable_silent_rules in # ((( 2688 yes) AM_DEFAULT_VERBOSITY=0;; 2689 no) AM_DEFAULT_VERBOSITY=1;; 2690 *) AM_DEFAULT_VERBOSITY=1;; 2691esac 2692am_make=${MAKE-make} 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2694$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2695if ${am_cv_make_support_nested_variables+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if $as_echo 'TRUE=$(BAR$(V)) 2699BAR0=false 2700BAR1=true 2701V=1 2702am__doit: 2703 @$(TRUE) 2704.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2705 am_cv_make_support_nested_variables=yes 2706else 2707 am_cv_make_support_nested_variables=no 2708fi 2709fi 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2711$as_echo "$am_cv_make_support_nested_variables" >&6; } 2712if test $am_cv_make_support_nested_variables = yes; then 2713 AM_V='$(V)' 2714 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2715else 2716 AM_V=$AM_DEFAULT_VERBOSITY 2717 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2718fi 2719AM_BACKSLASH='\' 2720 2721if test "`cd $srcdir && pwd`" != "`pwd`"; then 2722 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2723 # is not polluted with repeated "-I." 2724 am__isrc=' -I$(srcdir)' 2725 # test to see if srcdir already configured 2726 if test -f $srcdir/config.status; then 2727 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2728 fi 2729fi 2730 2731# test whether we have cygpath 2732if test -z "$CYGPATH_W"; then 2733 if (cygpath --version) >/dev/null 2>/dev/null; then 2734 CYGPATH_W='cygpath -w' 2735 else 2736 CYGPATH_W=echo 2737 fi 2738fi 2739 2740 2741# Define the identity of the package. 2742 PACKAGE='xf86-video-vesa' 2743 VERSION='2.3.3' 2744 2745 2746cat >>confdefs.h <<_ACEOF 2747#define PACKAGE "$PACKAGE" 2748_ACEOF 2749 2750 2751cat >>confdefs.h <<_ACEOF 2752#define VERSION "$VERSION" 2753_ACEOF 2754 2755# Some tools Automake needs. 2756 2757ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2758 2759 2760AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2761 2762 2763AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2764 2765 2766AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2767 2768 2769MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2770 2771# For better backward compatibility. To be removed once Automake 1.9.x 2772# dies out for good. For more background, see: 2773# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2774# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2775mkdir_p='$(MKDIR_P)' 2776 2777# We need awk for the "check" target. The system "awk" is bad on 2778# some platforms. 2779# Always define AMTAR for backward compatibility. Yes, it's still used 2780# in the wild :-( We should find a proper way to deprecate it ... 2781AMTAR='$${TAR-tar}' 2782 2783 2784# We'll loop over all known methods to create a tar archive until one works. 2785_am_tools='gnutar pax cpio none' 2786 2787am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2788 2789 2790 2791 2792 2793 2794 2795# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807DEPDIR="${am__leading_dot}deps" 2808 2809ac_config_commands="$ac_config_commands depfiles" 2810 2811 2812am_make=${MAKE-make} 2813cat > confinc << 'END' 2814am__doit: 2815 @echo this is the am__doit target 2816.PHONY: am__doit 2817END 2818# If we don't find an include directive, just comment out the code. 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2820$as_echo_n "checking for style of include used by $am_make... " >&6; } 2821am__include="#" 2822am__quote= 2823_am_result=none 2824# First try GNU make style include. 2825echo "include confinc" > confmf 2826# Ignore all kinds of additional output from 'make'. 2827case `$am_make -s -f confmf 2> /dev/null` in #( 2828*the\ am__doit\ target*) 2829 am__include=include 2830 am__quote= 2831 _am_result=GNU 2832 ;; 2833esac 2834# Now try BSD make style include. 2835if test "$am__include" = "#"; then 2836 echo '.include "confinc"' > confmf 2837 case `$am_make -s -f confmf 2> /dev/null` in #( 2838 *the\ am__doit\ target*) 2839 am__include=.include 2840 am__quote="\"" 2841 _am_result=BSD 2842 ;; 2843 esac 2844fi 2845 2846 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2848$as_echo "$_am_result" >&6; } 2849rm -f confinc confmf 2850 2851# Check whether --enable-dependency-tracking was given. 2852if test "${enable_dependency_tracking+set}" = set; then : 2853 enableval=$enable_dependency_tracking; 2854fi 2855 2856if test "x$enable_dependency_tracking" != xno; then 2857 am_depcomp="$ac_aux_dir/depcomp" 2858 AMDEPBACKSLASH='\' 2859 am__nodep='_no' 2860fi 2861 if test "x$enable_dependency_tracking" != xno; then 2862 AMDEP_TRUE= 2863 AMDEP_FALSE='#' 2864else 2865 AMDEP_TRUE='#' 2866 AMDEP_FALSE= 2867fi 2868 2869 2870ac_ext=c 2871ac_cpp='$CPP $CPPFLAGS' 2872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2874ac_compiler_gnu=$ac_cv_c_compiler_gnu 2875if test -n "$ac_tool_prefix"; then 2876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2877set dummy ${ac_tool_prefix}gcc; ac_word=$2 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2879$as_echo_n "checking for $ac_word... " >&6; } 2880if ${ac_cv_prog_CC+:} false; then : 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2893 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2906$as_echo "$CC" >&6; } 2907else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909$as_echo "no" >&6; } 2910fi 2911 2912 2913fi 2914if test -z "$ac_cv_prog_CC"; then 2915 ac_ct_CC=$CC 2916 # Extract the first word of "gcc", so it can be a program name with args. 2917set dummy gcc; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if ${ac_cv_prog_ac_ct_CC+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$ac_ct_CC"; then 2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_ac_ct_CC="gcc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943ac_ct_CC=$ac_cv_prog_ac_ct_CC 2944if test -n "$ac_ct_CC"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2946$as_echo "$ac_ct_CC" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 if test "x$ac_ct_CC" = x; then 2953 CC="" 2954 else 2955 case $cross_compiling:$ac_tool_warned in 2956yes:) 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2959ac_tool_warned=yes ;; 2960esac 2961 CC=$ac_ct_CC 2962 fi 2963else 2964 CC="$ac_cv_prog_CC" 2965fi 2966 2967if test -z "$CC"; then 2968 if test -n "$ac_tool_prefix"; then 2969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2970set dummy ${ac_tool_prefix}cc; ac_word=$2 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972$as_echo_n "checking for $ac_word... " >&6; } 2973if ${ac_cv_prog_CC+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 if test -n "$CC"; then 2977 ac_cv_prog_CC="$CC" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2986 ac_cv_prog_CC="${ac_tool_prefix}cc" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990done 2991 done 2992IFS=$as_save_IFS 2993 2994fi 2995fi 2996CC=$ac_cv_prog_CC 2997if test -n "$CC"; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2999$as_echo "$CC" >&6; } 3000else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002$as_echo "no" >&6; } 3003fi 3004 3005 3006 fi 3007fi 3008if test -z "$CC"; then 3009 # Extract the first word of "cc", so it can be a program name with args. 3010set dummy cc; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$CC"; then 3017 ac_cv_prog_CC="$CC" # Let the user override the test. 3018else 3019 ac_prog_rejected=no 3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021for as_dir in $PATH 3022do 3023 IFS=$as_save_IFS 3024 test -z "$as_dir" && as_dir=. 3025 for ac_exec_ext in '' $ac_executable_extensions; do 3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3028 ac_prog_rejected=yes 3029 continue 3030 fi 3031 ac_cv_prog_CC="cc" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039if test $ac_prog_rejected = yes; then 3040 # We found a bogon in the path, so make sure we never use it. 3041 set dummy $ac_cv_prog_CC 3042 shift 3043 if test $# != 0; then 3044 # We chose a different compiler from the bogus one. 3045 # However, it has the same basename, so the bogon will be chosen 3046 # first if we set CC to just the basename; use the full file name. 3047 shift 3048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3049 fi 3050fi 3051fi 3052fi 3053CC=$ac_cv_prog_CC 3054if test -n "$CC"; then 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3056$as_echo "$CC" >&6; } 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060fi 3061 3062 3063fi 3064if test -z "$CC"; then 3065 if test -n "$ac_tool_prefix"; then 3066 for ac_prog in cl.exe 3067 do 3068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3069set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098$as_echo "$CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 3105 test -n "$CC" && break 3106 done 3107fi 3108if test -z "$CC"; then 3109 ac_ct_CC=$CC 3110 for ac_prog in cl.exe 3111do 3112 # Extract the first word of "$ac_prog", so it can be a program name with args. 3113set dummy $ac_prog; ac_word=$2 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3115$as_echo_n "checking for $ac_word... " >&6; } 3116if ${ac_cv_prog_ac_ct_CC+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 if test -n "$ac_ct_CC"; then 3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3121else 3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH 3124do 3125 IFS=$as_save_IFS 3126 test -z "$as_dir" && as_dir=. 3127 for ac_exec_ext in '' $ac_executable_extensions; do 3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3129 ac_cv_prog_ac_ct_CC="$ac_prog" 3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3131 break 2 3132 fi 3133done 3134 done 3135IFS=$as_save_IFS 3136 3137fi 3138fi 3139ac_ct_CC=$ac_cv_prog_ac_ct_CC 3140if test -n "$ac_ct_CC"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3142$as_echo "$ac_ct_CC" >&6; } 3143else 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145$as_echo "no" >&6; } 3146fi 3147 3148 3149 test -n "$ac_ct_CC" && break 3150done 3151 3152 if test "x$ac_ct_CC" = x; then 3153 CC="" 3154 else 3155 case $cross_compiling:$ac_tool_warned in 3156yes:) 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3159ac_tool_warned=yes ;; 3160esac 3161 CC=$ac_ct_CC 3162 fi 3163fi 3164 3165fi 3166 3167 3168test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3170as_fn_error $? "no acceptable C compiler found in \$PATH 3171See \`config.log' for more details" "$LINENO" 5; } 3172 3173# Provide some information about the compiler. 3174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3175set X $ac_compile 3176ac_compiler=$2 3177for ac_option in --version -v -V -qversion; do 3178 { { ac_try="$ac_compiler $ac_option >&5" 3179case "(($ac_try" in 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3181 *) ac_try_echo=$ac_try;; 3182esac 3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3184$as_echo "$ac_try_echo"; } >&5 3185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3186 ac_status=$? 3187 if test -s conftest.err; then 3188 sed '10a\ 3189... rest of stderr output deleted ... 3190 10q' conftest.err >conftest.er1 3191 cat conftest.er1 >&5 3192 fi 3193 rm -f conftest.er1 conftest.err 3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3195 test $ac_status = 0; } 3196done 3197 3198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3199/* end confdefs.h. */ 3200 3201int 3202main () 3203{ 3204 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209ac_clean_files_save=$ac_clean_files 3210ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3211# Try to create an executable without -o first, disregard a.out. 3212# It will help us diagnose broken compilers, and finding out an intuition 3213# of exeext. 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3215$as_echo_n "checking whether the C compiler works... " >&6; } 3216ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3217 3218# The possible output files: 3219ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3220 3221ac_rmfiles= 3222for ac_file in $ac_files 3223do 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3226 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3227 esac 3228done 3229rm -f $ac_rmfiles 3230 3231if { { ac_try="$ac_link_default" 3232case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237$as_echo "$ac_try_echo"; } >&5 3238 (eval "$ac_link_default") 2>&5 3239 ac_status=$? 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; then : 3242 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3244# in a Makefile. We should not override ac_cv_exeext if it was cached, 3245# so that the user can short-circuit this test for compilers unknown to 3246# Autoconf. 3247for ac_file in $ac_files '' 3248do 3249 test -f "$ac_file" || continue 3250 case $ac_file in 3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3252 ;; 3253 [ab].out ) 3254 # We found the default executable, but exeext='' is most 3255 # certainly right. 3256 break;; 3257 *.* ) 3258 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3259 then :; else 3260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3261 fi 3262 # We set ac_cv_exeext here because the later test for it is not 3263 # safe: cross compilers may not add the suffix if given an `-o' 3264 # argument, so we may need to know it at that point already. 3265 # Even if this section looks crufty: it has the advantage of 3266 # actually working. 3267 break;; 3268 * ) 3269 break;; 3270 esac 3271done 3272test "$ac_cv_exeext" = no && ac_cv_exeext= 3273 3274else 3275 ac_file='' 3276fi 3277if test -z "$ac_file"; then : 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280$as_echo "$as_me: failed program was:" >&5 3281sed 's/^/| /' conftest.$ac_ext >&5 3282 3283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3285as_fn_error 77 "C compiler cannot create executables 3286See \`config.log' for more details" "$LINENO" 5; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3289$as_echo "yes" >&6; } 3290fi 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3292$as_echo_n "checking for C compiler default output file name... " >&6; } 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3294$as_echo "$ac_file" >&6; } 3295ac_exeext=$ac_cv_exeext 3296 3297rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3298ac_clean_files=$ac_clean_files_save 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3300$as_echo_n "checking for suffix of executables... " >&6; } 3301if { { ac_try="$ac_link" 3302case "(($ac_try" in 3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3304 *) ac_try_echo=$ac_try;; 3305esac 3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3307$as_echo "$ac_try_echo"; } >&5 3308 (eval "$ac_link") 2>&5 3309 ac_status=$? 3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3311 test $ac_status = 0; }; then : 3312 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3313# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3314# work properly (i.e., refer to `conftest.exe'), while it won't with 3315# `rm'. 3316for ac_file in conftest.exe conftest conftest.*; do 3317 test -f "$ac_file" || continue 3318 case $ac_file in 3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3321 break;; 3322 * ) break;; 3323 esac 3324done 3325else 3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3329See \`config.log' for more details" "$LINENO" 5; } 3330fi 3331rm -f conftest conftest$ac_cv_exeext 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3333$as_echo "$ac_cv_exeext" >&6; } 3334 3335rm -f conftest.$ac_ext 3336EXEEXT=$ac_cv_exeext 3337ac_exeext=$EXEEXT 3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <stdio.h> 3341int 3342main () 3343{ 3344FILE *f = fopen ("conftest.out", "w"); 3345 return ferror (f) || fclose (f) != 0; 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351ac_clean_files="$ac_clean_files conftest.out" 3352# Check that the compiler produces executables we can run. If not, either 3353# the compiler is broken, or we cross compile. 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3355$as_echo_n "checking whether we are cross compiling... " >&6; } 3356if test "$cross_compiling" != yes; then 3357 { { ac_try="$ac_link" 3358case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361esac 3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3363$as_echo "$ac_try_echo"; } >&5 3364 (eval "$ac_link") 2>&5 3365 ac_status=$? 3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; } 3368 if { ac_try='./conftest$ac_cv_exeext' 3369 { { case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372esac 3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374$as_echo "$ac_try_echo"; } >&5 3375 (eval "$ac_try") 2>&5 3376 ac_status=$? 3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; }; }; then 3379 cross_compiling=no 3380 else 3381 if test "$cross_compiling" = maybe; then 3382 cross_compiling=yes 3383 else 3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error $? "cannot run C compiled programs. 3387If you meant to cross compile, use \`--host'. 3388See \`config.log' for more details" "$LINENO" 5; } 3389 fi 3390 fi 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3393$as_echo "$cross_compiling" >&6; } 3394 3395rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3396ac_clean_files=$ac_clean_files_save 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3398$as_echo_n "checking for suffix of object files... " >&6; } 3399if ${ac_cv_objext+:} false; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413rm -f conftest.o conftest.obj 3414if { { ac_try="$ac_compile" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_compile") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; then : 3425 for ac_file in conftest.o conftest.obj conftest.*; do 3426 test -f "$ac_file" || continue; 3427 case $ac_file in 3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3430 break;; 3431 esac 3432done 3433else 3434 $as_echo "$as_me: failed program was:" >&5 3435sed 's/^/| /' conftest.$ac_ext >&5 3436 3437{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3439as_fn_error $? "cannot compute suffix of object files: cannot compile 3440See \`config.log' for more details" "$LINENO" 5; } 3441fi 3442rm -f conftest.$ac_cv_objext conftest.$ac_ext 3443fi 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3445$as_echo "$ac_cv_objext" >&6; } 3446OBJEXT=$ac_cv_objext 3447ac_objext=$OBJEXT 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3449$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3450if ${ac_cv_c_compiler_gnu+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459#ifndef __GNUC__ 3460 choke me 3461#endif 3462 3463 ; 3464 return 0; 3465} 3466_ACEOF 3467if ac_fn_c_try_compile "$LINENO"; then : 3468 ac_compiler_gnu=yes 3469else 3470 ac_compiler_gnu=no 3471fi 3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473ac_cv_c_compiler_gnu=$ac_compiler_gnu 3474 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3477$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3478if test $ac_compiler_gnu = yes; then 3479 GCC=yes 3480else 3481 GCC= 3482fi 3483ac_test_CFLAGS=${CFLAGS+set} 3484ac_save_CFLAGS=$CFLAGS 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3486$as_echo_n "checking whether $CC accepts -g... " >&6; } 3487if ${ac_cv_prog_cc_g+:} false; then : 3488 $as_echo_n "(cached) " >&6 3489else 3490 ac_save_c_werror_flag=$ac_c_werror_flag 3491 ac_c_werror_flag=yes 3492 ac_cv_prog_cc_g=no 3493 CFLAGS="-g" 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main () 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO"; then : 3506 ac_cv_prog_cc_g=yes 3507else 3508 CFLAGS="" 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520if ac_fn_c_try_compile "$LINENO"; then : 3521 3522else 3523 ac_c_werror_flag=$ac_save_c_werror_flag 3524 CFLAGS="-g" 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527 3528int 3529main () 3530{ 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_cv_prog_cc_g=yes 3538fi 3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542fi 3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3544 ac_c_werror_flag=$ac_save_c_werror_flag 3545fi 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3547$as_echo "$ac_cv_prog_cc_g" >&6; } 3548if test "$ac_test_CFLAGS" = set; then 3549 CFLAGS=$ac_save_CFLAGS 3550elif test $ac_cv_prog_cc_g = yes; then 3551 if test "$GCC" = yes; then 3552 CFLAGS="-g -O2" 3553 else 3554 CFLAGS="-g" 3555 fi 3556else 3557 if test "$GCC" = yes; then 3558 CFLAGS="-O2" 3559 else 3560 CFLAGS= 3561 fi 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3564$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3565if ${ac_cv_prog_cc_c89+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 ac_cv_prog_cc_c89=no 3569ac_save_CC=$CC 3570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572#include <stdarg.h> 3573#include <stdio.h> 3574struct stat; 3575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3576struct buf { int x; }; 3577FILE * (*rcsopen) (struct buf *, struct stat *, int); 3578static char *e (p, i) 3579 char **p; 3580 int i; 3581{ 3582 return p[i]; 3583} 3584static char *f (char * (*g) (char **, int), char **p, ...) 3585{ 3586 char *s; 3587 va_list v; 3588 va_start (v,p); 3589 s = g (p, va_arg (v,int)); 3590 va_end (v); 3591 return s; 3592} 3593 3594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3595 function prototypes and stuff, but not '\xHH' hex character constants. 3596 These don't provoke an error unfortunately, instead are silently treated 3597 as 'x'. The following induces an error, until -std is added to get 3598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3599 array size at least. It's necessary to write '\x00'==0 to get something 3600 that's true only with -std. */ 3601int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3602 3603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3604 inside strings and character constants. */ 3605#define FOO(x) 'x' 3606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3607 3608int test (int i, double x); 3609struct s1 {int (*f) (int a);}; 3610struct s2 {int (*f) (double a);}; 3611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3612int argc; 3613char **argv; 3614int 3615main () 3616{ 3617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3624do 3625 CC="$ac_save_CC $ac_arg" 3626 if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_cv_prog_cc_c89=$ac_arg 3628fi 3629rm -f core conftest.err conftest.$ac_objext 3630 test "x$ac_cv_prog_cc_c89" != "xno" && break 3631done 3632rm -f conftest.$ac_ext 3633CC=$ac_save_CC 3634 3635fi 3636# AC_CACHE_VAL 3637case "x$ac_cv_prog_cc_c89" in 3638 x) 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3640$as_echo "none needed" >&6; } ;; 3641 xno) 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3643$as_echo "unsupported" >&6; } ;; 3644 *) 3645 CC="$CC $ac_cv_prog_cc_c89" 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3647$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3648esac 3649if test "x$ac_cv_prog_cc_c89" != xno; then : 3650 3651fi 3652 3653ac_ext=c 3654ac_cpp='$CPP $CPPFLAGS' 3655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3657ac_compiler_gnu=$ac_cv_c_compiler_gnu 3658 3659depcc="$CC" am_compiler_list= 3660 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3662$as_echo_n "checking dependency style of $depcc... " >&6; } 3663if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3664 $as_echo_n "(cached) " >&6 3665else 3666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3667 # We make a subdir and do the tests there. Otherwise we can end up 3668 # making bogus files that we don't know about and never remove. For 3669 # instance it was reported that on HP-UX the gcc test will end up 3670 # making a dummy file named 'D' -- because '-MD' means "put the output 3671 # in D". 3672 rm -rf conftest.dir 3673 mkdir conftest.dir 3674 # Copy depcomp to subdir because otherwise we won't find it if we're 3675 # using a relative directory. 3676 cp "$am_depcomp" conftest.dir 3677 cd conftest.dir 3678 # We will build objects and dependencies in a subdirectory because 3679 # it helps to detect inapplicable dependency modes. For instance 3680 # both Tru64's cc and ICC support -MD to output dependencies as a 3681 # side effect of compilation, but ICC will put the dependencies in 3682 # the current directory while Tru64 will put them in the object 3683 # directory. 3684 mkdir sub 3685 3686 am_cv_CC_dependencies_compiler_type=none 3687 if test "$am_compiler_list" = ""; then 3688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3689 fi 3690 am__universal=false 3691 case " $depcc " in #( 3692 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3693 esac 3694 3695 for depmode in $am_compiler_list; do 3696 # Setup a source with many dependencies, because some compilers 3697 # like to wrap large dependency lists on column 80 (with \), and 3698 # we should not choose a depcomp mode which is confused by this. 3699 # 3700 # We need to recreate these files for each test, as the compiler may 3701 # overwrite some of them when testing with obscure command lines. 3702 # This happens at least with the AIX C compiler. 3703 : > sub/conftest.c 3704 for i in 1 2 3 4 5 6; do 3705 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3707 # Solaris 10 /bin/sh. 3708 echo '/* dummy */' > sub/conftst$i.h 3709 done 3710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3711 3712 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3713 # mode. It turns out that the SunPro C++ compiler does not properly 3714 # handle '-M -o', and we need to detect this. Also, some Intel 3715 # versions had trouble with output in subdirs. 3716 am__obj=sub/conftest.${OBJEXT-o} 3717 am__minus_obj="-o $am__obj" 3718 case $depmode in 3719 gcc) 3720 # This depmode causes a compiler race in universal mode. 3721 test "$am__universal" = false || continue 3722 ;; 3723 nosideeffect) 3724 # After this tag, mechanisms are not by side-effect, so they'll 3725 # only be used when explicitly requested. 3726 if test "x$enable_dependency_tracking" = xyes; then 3727 continue 3728 else 3729 break 3730 fi 3731 ;; 3732 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3733 # This compiler won't grok '-c -o', but also, the minuso test has 3734 # not run yet. These depmodes are late enough in the game, and 3735 # so weak that their functioning should not be impacted. 3736 am__obj=conftest.${OBJEXT-o} 3737 am__minus_obj= 3738 ;; 3739 none) break ;; 3740 esac 3741 if depmode=$depmode \ 3742 source=sub/conftest.c object=$am__obj \ 3743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3745 >/dev/null 2>conftest.err && 3746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3750 # icc doesn't choke on unknown options, it will just issue warnings 3751 # or remarks (even with -Werror). So we grep stderr for any message 3752 # that says an option was ignored or not supported. 3753 # When given -MP, icc 7.0 and 7.1 complain thusly: 3754 # icc: Command line warning: ignoring option '-M'; no argument required 3755 # The diagnosis changed in icc 8.0: 3756 # icc: Command line remark: option '-MP' not supported 3757 if (grep 'ignoring option' conftest.err || 3758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3759 am_cv_CC_dependencies_compiler_type=$depmode 3760 break 3761 fi 3762 fi 3763 done 3764 3765 cd .. 3766 rm -rf conftest.dir 3767else 3768 am_cv_CC_dependencies_compiler_type=none 3769fi 3770 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3773$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3774CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3775 3776 if 3777 test "x$enable_dependency_tracking" != xno \ 3778 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3779 am__fastdepCC_TRUE= 3780 am__fastdepCC_FALSE='#' 3781else 3782 am__fastdepCC_TRUE='#' 3783 am__fastdepCC_FALSE= 3784fi 3785 3786 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3788$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3789if ${ac_cv_prog_cc_c99+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 ac_cv_prog_cc_c99=no 3793ac_save_CC=$CC 3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796#include <stdarg.h> 3797#include <stdbool.h> 3798#include <stdlib.h> 3799#include <wchar.h> 3800#include <stdio.h> 3801 3802// Check varargs macros. These examples are taken from C99 6.10.3.5. 3803#define debug(...) fprintf (stderr, __VA_ARGS__) 3804#define showlist(...) puts (#__VA_ARGS__) 3805#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3806static void 3807test_varargs_macros (void) 3808{ 3809 int x = 1234; 3810 int y = 5678; 3811 debug ("Flag"); 3812 debug ("X = %d\n", x); 3813 showlist (The first, second, and third items.); 3814 report (x>y, "x is %d but y is %d", x, y); 3815} 3816 3817// Check long long types. 3818#define BIG64 18446744073709551615ull 3819#define BIG32 4294967295ul 3820#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3821#if !BIG_OK 3822 your preprocessor is broken; 3823#endif 3824#if BIG_OK 3825#else 3826 your preprocessor is broken; 3827#endif 3828static long long int bignum = -9223372036854775807LL; 3829static unsigned long long int ubignum = BIG64; 3830 3831struct incomplete_array 3832{ 3833 int datasize; 3834 double data[]; 3835}; 3836 3837struct named_init { 3838 int number; 3839 const wchar_t *name; 3840 double average; 3841}; 3842 3843typedef const char *ccp; 3844 3845static inline int 3846test_restrict (ccp restrict text) 3847{ 3848 // See if C++-style comments work. 3849 // Iterate through items via the restricted pointer. 3850 // Also check for declarations in for loops. 3851 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3852 continue; 3853 return 0; 3854} 3855 3856// Check varargs and va_copy. 3857static void 3858test_varargs (const char *format, ...) 3859{ 3860 va_list args; 3861 va_start (args, format); 3862 va_list args_copy; 3863 va_copy (args_copy, args); 3864 3865 const char *str; 3866 int number; 3867 float fnumber; 3868 3869 while (*format) 3870 { 3871 switch (*format++) 3872 { 3873 case 's': // string 3874 str = va_arg (args_copy, const char *); 3875 break; 3876 case 'd': // int 3877 number = va_arg (args_copy, int); 3878 break; 3879 case 'f': // float 3880 fnumber = va_arg (args_copy, double); 3881 break; 3882 default: 3883 break; 3884 } 3885 } 3886 va_end (args_copy); 3887 va_end (args); 3888} 3889 3890int 3891main () 3892{ 3893 3894 // Check bool. 3895 _Bool success = false; 3896 3897 // Check restrict. 3898 if (test_restrict ("String literal") == 0) 3899 success = true; 3900 char *restrict newvar = "Another string"; 3901 3902 // Check varargs. 3903 test_varargs ("s, d' f .", "string", 65, 34.234); 3904 test_varargs_macros (); 3905 3906 // Check flexible array members. 3907 struct incomplete_array *ia = 3908 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3909 ia->datasize = 10; 3910 for (int i = 0; i < ia->datasize; ++i) 3911 ia->data[i] = i * 1.234; 3912 3913 // Check named initializers. 3914 struct named_init ni = { 3915 .number = 34, 3916 .name = L"Test wide string", 3917 .average = 543.34343, 3918 }; 3919 3920 ni.number = 58; 3921 3922 int dynamic_array[ni.number]; 3923 dynamic_array[ni.number - 1] = 543; 3924 3925 // work around unused variable warnings 3926 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3927 || dynamic_array[ni.number - 1] != 543); 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3934do 3935 CC="$ac_save_CC $ac_arg" 3936 if ac_fn_c_try_compile "$LINENO"; then : 3937 ac_cv_prog_cc_c99=$ac_arg 3938fi 3939rm -f core conftest.err conftest.$ac_objext 3940 test "x$ac_cv_prog_cc_c99" != "xno" && break 3941done 3942rm -f conftest.$ac_ext 3943CC=$ac_save_CC 3944 3945fi 3946# AC_CACHE_VAL 3947case "x$ac_cv_prog_cc_c99" in 3948 x) 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3950$as_echo "none needed" >&6; } ;; 3951 xno) 3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3953$as_echo "unsupported" >&6; } ;; 3954 *) 3955 CC="$CC $ac_cv_prog_cc_c99" 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3957$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3958esac 3959if test "x$ac_cv_prog_cc_c99" != xno; then : 3960 3961fi 3962 3963 3964 3965ac_ext=c 3966ac_cpp='$CPP $CPPFLAGS' 3967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3969ac_compiler_gnu=$ac_cv_c_compiler_gnu 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3971$as_echo_n "checking how to run the C preprocessor... " >&6; } 3972# On Suns, sometimes $CPP names a directory. 3973if test -n "$CPP" && test -d "$CPP"; then 3974 CPP= 3975fi 3976if test -z "$CPP"; then 3977 if ${ac_cv_prog_CPP+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 # Double quotes because CPP needs to be expanded 3981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3982 do 3983 ac_preproc_ok=false 3984for ac_c_preproc_warn_flag in '' yes 3985do 3986 # Use a header file that comes with gcc, so configuring glibc 3987 # with a fresh cross-compiler works. 3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3989 # <limits.h> exists even on freestanding compilers. 3990 # On the NeXT, cc -E runs the code through the compiler's parser, 3991 # not just through cpp. "Syntax error" is here to catch this case. 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994#ifdef __STDC__ 3995# include <limits.h> 3996#else 3997# include <assert.h> 3998#endif 3999 Syntax error 4000_ACEOF 4001if ac_fn_c_try_cpp "$LINENO"; then : 4002 4003else 4004 # Broken: fails on valid input. 4005continue 4006fi 4007rm -f conftest.err conftest.i conftest.$ac_ext 4008 4009 # OK, works on sane cases. Now check whether nonexistent headers 4010 # can be detected and how. 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013#include <ac_nonexistent.h> 4014_ACEOF 4015if ac_fn_c_try_cpp "$LINENO"; then : 4016 # Broken: success on invalid input. 4017continue 4018else 4019 # Passes both tests. 4020ac_preproc_ok=: 4021break 4022fi 4023rm -f conftest.err conftest.i conftest.$ac_ext 4024 4025done 4026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4027rm -f conftest.i conftest.err conftest.$ac_ext 4028if $ac_preproc_ok; then : 4029 break 4030fi 4031 4032 done 4033 ac_cv_prog_CPP=$CPP 4034 4035fi 4036 CPP=$ac_cv_prog_CPP 4037else 4038 ac_cv_prog_CPP=$CPP 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4041$as_echo "$CPP" >&6; } 4042ac_preproc_ok=false 4043for ac_c_preproc_warn_flag in '' yes 4044do 4045 # Use a header file that comes with gcc, so configuring glibc 4046 # with a fresh cross-compiler works. 4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4048 # <limits.h> exists even on freestanding compilers. 4049 # On the NeXT, cc -E runs the code through the compiler's parser, 4050 # not just through cpp. "Syntax error" is here to catch this case. 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053#ifdef __STDC__ 4054# include <limits.h> 4055#else 4056# include <assert.h> 4057#endif 4058 Syntax error 4059_ACEOF 4060if ac_fn_c_try_cpp "$LINENO"; then : 4061 4062else 4063 # Broken: fails on valid input. 4064continue 4065fi 4066rm -f conftest.err conftest.i conftest.$ac_ext 4067 4068 # OK, works on sane cases. Now check whether nonexistent headers 4069 # can be detected and how. 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072#include <ac_nonexistent.h> 4073_ACEOF 4074if ac_fn_c_try_cpp "$LINENO"; then : 4075 # Broken: success on invalid input. 4076continue 4077else 4078 # Passes both tests. 4079ac_preproc_ok=: 4080break 4081fi 4082rm -f conftest.err conftest.i conftest.$ac_ext 4083 4084done 4085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4086rm -f conftest.i conftest.err conftest.$ac_ext 4087if $ac_preproc_ok; then : 4088 4089else 4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4092as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4093See \`config.log' for more details" "$LINENO" 5; } 4094fi 4095 4096ac_ext=c 4097ac_cpp='$CPP $CPPFLAGS' 4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4100ac_compiler_gnu=$ac_cv_c_compiler_gnu 4101 4102 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4104$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4105if ${ac_cv_path_GREP+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 if test -z "$GREP"; then 4109 ac_path_GREP_found=false 4110 # Loop through the user's path and test for each of PROGNAME-LIST 4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_prog in grep ggrep; do 4117 for ac_exec_ext in '' $ac_executable_extensions; do 4118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4119 as_fn_executable_p "$ac_path_GREP" || continue 4120# Check for GNU ac_path_GREP and select it if it is found. 4121 # Check for GNU $ac_path_GREP 4122case `"$ac_path_GREP" --version 2>&1` in 4123*GNU*) 4124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4125*) 4126 ac_count=0 4127 $as_echo_n 0123456789 >"conftest.in" 4128 while : 4129 do 4130 cat "conftest.in" "conftest.in" >"conftest.tmp" 4131 mv "conftest.tmp" "conftest.in" 4132 cp "conftest.in" "conftest.nl" 4133 $as_echo 'GREP' >> "conftest.nl" 4134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4136 as_fn_arith $ac_count + 1 && ac_count=$as_val 4137 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4138 # Best one so far, save it but keep looking for a better one 4139 ac_cv_path_GREP="$ac_path_GREP" 4140 ac_path_GREP_max=$ac_count 4141 fi 4142 # 10*(2^10) chars as input seems more than enough 4143 test $ac_count -gt 10 && break 4144 done 4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4146esac 4147 4148 $ac_path_GREP_found && break 3 4149 done 4150 done 4151 done 4152IFS=$as_save_IFS 4153 if test -z "$ac_cv_path_GREP"; then 4154 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4155 fi 4156else 4157 ac_cv_path_GREP=$GREP 4158fi 4159 4160fi 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4162$as_echo "$ac_cv_path_GREP" >&6; } 4163 GREP="$ac_cv_path_GREP" 4164 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4167$as_echo_n "checking for egrep... " >&6; } 4168if ${ac_cv_path_EGREP+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4172 then ac_cv_path_EGREP="$GREP -E" 4173 else 4174 if test -z "$EGREP"; then 4175 ac_path_EGREP_found=false 4176 # Loop through the user's path and test for each of PROGNAME-LIST 4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4179do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for ac_prog in egrep; do 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4185 as_fn_executable_p "$ac_path_EGREP" || continue 4186# Check for GNU ac_path_EGREP and select it if it is found. 4187 # Check for GNU $ac_path_EGREP 4188case `"$ac_path_EGREP" --version 2>&1` in 4189*GNU*) 4190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4191*) 4192 ac_count=0 4193 $as_echo_n 0123456789 >"conftest.in" 4194 while : 4195 do 4196 cat "conftest.in" "conftest.in" >"conftest.tmp" 4197 mv "conftest.tmp" "conftest.in" 4198 cp "conftest.in" "conftest.nl" 4199 $as_echo 'EGREP' >> "conftest.nl" 4200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4202 as_fn_arith $ac_count + 1 && ac_count=$as_val 4203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4204 # Best one so far, save it but keep looking for a better one 4205 ac_cv_path_EGREP="$ac_path_EGREP" 4206 ac_path_EGREP_max=$ac_count 4207 fi 4208 # 10*(2^10) chars as input seems more than enough 4209 test $ac_count -gt 10 && break 4210 done 4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4212esac 4213 4214 $ac_path_EGREP_found && break 3 4215 done 4216 done 4217 done 4218IFS=$as_save_IFS 4219 if test -z "$ac_cv_path_EGREP"; then 4220 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4221 fi 4222else 4223 ac_cv_path_EGREP=$EGREP 4224fi 4225 4226 fi 4227fi 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4229$as_echo "$ac_cv_path_EGREP" >&6; } 4230 EGREP="$ac_cv_path_EGREP" 4231 4232 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4234$as_echo_n "checking for ANSI C header files... " >&6; } 4235if ${ac_cv_header_stdc+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#include <stdlib.h> 4241#include <stdarg.h> 4242#include <string.h> 4243#include <float.h> 4244 4245int 4246main () 4247{ 4248 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253if ac_fn_c_try_compile "$LINENO"; then : 4254 ac_cv_header_stdc=yes 4255else 4256 ac_cv_header_stdc=no 4257fi 4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4259 4260if test $ac_cv_header_stdc = yes; then 4261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264#include <string.h> 4265 4266_ACEOF 4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4268 $EGREP "memchr" >/dev/null 2>&1; then : 4269 4270else 4271 ac_cv_header_stdc=no 4272fi 4273rm -f conftest* 4274 4275fi 4276 4277if test $ac_cv_header_stdc = yes; then 4278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281#include <stdlib.h> 4282 4283_ACEOF 4284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4285 $EGREP "free" >/dev/null 2>&1; then : 4286 4287else 4288 ac_cv_header_stdc=no 4289fi 4290rm -f conftest* 4291 4292fi 4293 4294if test $ac_cv_header_stdc = yes; then 4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4296 if test "$cross_compiling" = yes; then : 4297 : 4298else 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301#include <ctype.h> 4302#include <stdlib.h> 4303#if ((' ' & 0x0FF) == 0x020) 4304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4306#else 4307# define ISLOWER(c) \ 4308 (('a' <= (c) && (c) <= 'i') \ 4309 || ('j' <= (c) && (c) <= 'r') \ 4310 || ('s' <= (c) && (c) <= 'z')) 4311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4312#endif 4313 4314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4315int 4316main () 4317{ 4318 int i; 4319 for (i = 0; i < 256; i++) 4320 if (XOR (islower (i), ISLOWER (i)) 4321 || toupper (i) != TOUPPER (i)) 4322 return 2; 4323 return 0; 4324} 4325_ACEOF 4326if ac_fn_c_try_run "$LINENO"; then : 4327 4328else 4329 ac_cv_header_stdc=no 4330fi 4331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4332 conftest.$ac_objext conftest.beam conftest.$ac_ext 4333fi 4334 4335fi 4336fi 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4338$as_echo "$ac_cv_header_stdc" >&6; } 4339if test $ac_cv_header_stdc = yes; then 4340 4341$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4342 4343fi 4344 4345# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4347 inttypes.h stdint.h unistd.h 4348do : 4349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4350ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4351" 4352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4353 cat >>confdefs.h <<_ACEOF 4354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4355_ACEOF 4356 4357fi 4358 4359done 4360 4361 4362 4363 4364 4365 4366ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4367if test "x$ac_cv_have_decl___clang__" = xyes; then : 4368 CLANGCC="yes" 4369else 4370 CLANGCC="no" 4371fi 4372 4373ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4374if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4375 INTELCC="yes" 4376else 4377 INTELCC="no" 4378fi 4379 4380ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4381if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4382 SUNCC="yes" 4383else 4384 SUNCC="no" 4385fi 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4396 if test -n "$ac_tool_prefix"; then 4397 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4398set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4400$as_echo_n "checking for $ac_word... " >&6; } 4401if ${ac_cv_path_PKG_CONFIG+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 case $PKG_CONFIG in 4405 [\\/]* | ?:[\\/]*) 4406 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4407 ;; 4408 *) 4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410for as_dir in $PATH 4411do 4412 IFS=$as_save_IFS 4413 test -z "$as_dir" && as_dir=. 4414 for ac_exec_ext in '' $ac_executable_extensions; do 4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4416 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4418 break 2 4419 fi 4420done 4421 done 4422IFS=$as_save_IFS 4423 4424 ;; 4425esac 4426fi 4427PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4428if test -n "$PKG_CONFIG"; then 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4430$as_echo "$PKG_CONFIG" >&6; } 4431else 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4433$as_echo "no" >&6; } 4434fi 4435 4436 4437fi 4438if test -z "$ac_cv_path_PKG_CONFIG"; then 4439 ac_pt_PKG_CONFIG=$PKG_CONFIG 4440 # Extract the first word of "pkg-config", so it can be a program name with args. 4441set dummy pkg-config; ac_word=$2 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443$as_echo_n "checking for $ac_word... " >&6; } 4444if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 case $ac_pt_PKG_CONFIG in 4448 [\\/]* | ?:[\\/]*) 4449 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4450 ;; 4451 *) 4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453for as_dir in $PATH 4454do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4459 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4461 break 2 4462 fi 4463done 4464 done 4465IFS=$as_save_IFS 4466 4467 ;; 4468esac 4469fi 4470ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4471if test -n "$ac_pt_PKG_CONFIG"; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4473$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4474else 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4476$as_echo "no" >&6; } 4477fi 4478 4479 if test "x$ac_pt_PKG_CONFIG" = x; then 4480 PKG_CONFIG="" 4481 else 4482 case $cross_compiling:$ac_tool_warned in 4483yes:) 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4486ac_tool_warned=yes ;; 4487esac 4488 PKG_CONFIG=$ac_pt_PKG_CONFIG 4489 fi 4490else 4491 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4492fi 4493 4494fi 4495if test -n "$PKG_CONFIG"; then 4496 _pkg_min_version=0.9.0 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4498$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4499 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4501$as_echo "yes" >&6; } 4502 else 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4504$as_echo "no" >&6; } 4505 PKG_CONFIG="" 4506 fi 4507fi 4508# Make sure we can run config.sub. 4509$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4513$as_echo_n "checking build system type... " >&6; } 4514if ${ac_cv_build+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 ac_build_alias=$build_alias 4518test "x$ac_build_alias" = x && 4519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4520test "x$ac_build_alias" = x && 4521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4522ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4524 4525fi 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4527$as_echo "$ac_cv_build" >&6; } 4528case $ac_cv_build in 4529*-*-*) ;; 4530*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4531esac 4532build=$ac_cv_build 4533ac_save_IFS=$IFS; IFS='-' 4534set x $ac_cv_build 4535shift 4536build_cpu=$1 4537build_vendor=$2 4538shift; shift 4539# Remember, the first character of IFS is used to create $*, 4540# except with old shells: 4541build_os=$* 4542IFS=$ac_save_IFS 4543case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4547$as_echo_n "checking host system type... " >&6; } 4548if ${ac_cv_host+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test "x$host_alias" = x; then 4552 ac_cv_host=$ac_cv_build 4553else 4554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4556fi 4557 4558fi 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4560$as_echo "$ac_cv_host" >&6; } 4561case $ac_cv_host in 4562*-*-*) ;; 4563*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4564esac 4565host=$ac_cv_host 4566ac_save_IFS=$IFS; IFS='-' 4567set x $ac_cv_host 4568shift 4569host_cpu=$1 4570host_vendor=$2 4571shift; shift 4572# Remember, the first character of IFS is used to create $*, 4573# except with old shells: 4574host_os=$* 4575IFS=$ac_save_IFS 4576case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4580$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4581if ${ac_cv_path_SED+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4585 for ac_i in 1 2 3 4 5 6 7; do 4586 ac_script="$ac_script$as_nl$ac_script" 4587 done 4588 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4589 { ac_script=; unset ac_script;} 4590 if test -z "$SED"; then 4591 ac_path_SED_found=false 4592 # Loop through the user's path and test for each of PROGNAME-LIST 4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_prog in sed gsed; do 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4601 as_fn_executable_p "$ac_path_SED" || continue 4602# Check for GNU ac_path_SED and select it if it is found. 4603 # Check for GNU $ac_path_SED 4604case `"$ac_path_SED" --version 2>&1` in 4605*GNU*) 4606 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4607*) 4608 ac_count=0 4609 $as_echo_n 0123456789 >"conftest.in" 4610 while : 4611 do 4612 cat "conftest.in" "conftest.in" >"conftest.tmp" 4613 mv "conftest.tmp" "conftest.in" 4614 cp "conftest.in" "conftest.nl" 4615 $as_echo '' >> "conftest.nl" 4616 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4618 as_fn_arith $ac_count + 1 && ac_count=$as_val 4619 if test $ac_count -gt ${ac_path_SED_max-0}; then 4620 # Best one so far, save it but keep looking for a better one 4621 ac_cv_path_SED="$ac_path_SED" 4622 ac_path_SED_max=$ac_count 4623 fi 4624 # 10*(2^10) chars as input seems more than enough 4625 test $ac_count -gt 10 && break 4626 done 4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4628esac 4629 4630 $ac_path_SED_found && break 3 4631 done 4632 done 4633 done 4634IFS=$as_save_IFS 4635 if test -z "$ac_cv_path_SED"; then 4636 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4637 fi 4638else 4639 ac_cv_path_SED=$SED 4640fi 4641 4642fi 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4644$as_echo "$ac_cv_path_SED" >&6; } 4645 SED="$ac_cv_path_SED" 4646 rm -f conftest.sed 4647 4648 4649 4650 4651 4652 4653# Check whether --enable-selective-werror was given. 4654if test "${enable_selective_werror+set}" = set; then : 4655 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4656else 4657 SELECTIVE_WERROR=yes 4658fi 4659 4660 4661 4662 4663 4664# -v is too short to test reliably with XORG_TESTSET_CFLAG 4665if test "x$SUNCC" = "xyes"; then 4666 BASE_CFLAGS="-v" 4667else 4668 BASE_CFLAGS="" 4669fi 4670 4671# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685xorg_testset_save_CFLAGS="$CFLAGS" 4686 4687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695/* end confdefs.h. */ 4696int i; 4697_ACEOF 4698if ac_fn_c_try_compile "$LINENO"; then : 4699 xorg_cv_cc_flag_unknown_warning_option=yes 4700else 4701 xorg_cv_cc_flag_unknown_warning_option=no 4702fi 4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4704fi 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4708 CFLAGS="$xorg_testset_save_CFLAGS" 4709fi 4710 4711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4714 fi 4715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723int i; 4724_ACEOF 4725if ac_fn_c_try_compile "$LINENO"; then : 4726 xorg_cv_cc_flag_unused_command_line_argument=yes 4727else 4728 xorg_cv_cc_flag_unused_command_line_argument=no 4729fi 4730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4731fi 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4735 CFLAGS="$xorg_testset_save_CFLAGS" 4736fi 4737 4738found="no" 4739 4740 if test $found = "no" ; then 4741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4743 fi 4744 4745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4747 fi 4748 4749 CFLAGS="$CFLAGS -Wall" 4750 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4752$as_echo_n "checking if $CC supports -Wall... " >&6; } 4753 cacheid=xorg_cv_cc_flag__Wall 4754 if eval \${$cacheid+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759int i; 4760int 4761main () 4762{ 4763 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768if ac_fn_c_try_link "$LINENO"; then : 4769 eval $cacheid=yes 4770else 4771 eval $cacheid=no 4772fi 4773rm -f core conftest.err conftest.$ac_objext \ 4774 conftest$ac_exeext conftest.$ac_ext 4775fi 4776 4777 4778 CFLAGS="$xorg_testset_save_CFLAGS" 4779 4780 eval supported=\$$cacheid 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4782$as_echo "$supported" >&6; } 4783 if test "$supported" = "yes" ; then 4784 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4785 found="yes" 4786 fi 4787 fi 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803xorg_testset_save_CFLAGS="$CFLAGS" 4804 4805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814int i; 4815_ACEOF 4816if ac_fn_c_try_compile "$LINENO"; then : 4817 xorg_cv_cc_flag_unknown_warning_option=yes 4818else 4819 xorg_cv_cc_flag_unknown_warning_option=no 4820fi 4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4826 CFLAGS="$xorg_testset_save_CFLAGS" 4827fi 4828 4829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4832 fi 4833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841int i; 4842_ACEOF 4843if ac_fn_c_try_compile "$LINENO"; then : 4844 xorg_cv_cc_flag_unused_command_line_argument=yes 4845else 4846 xorg_cv_cc_flag_unused_command_line_argument=no 4847fi 4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4849fi 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4853 CFLAGS="$xorg_testset_save_CFLAGS" 4854fi 4855 4856found="no" 4857 4858 if test $found = "no" ; then 4859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4861 fi 4862 4863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4865 fi 4866 4867 CFLAGS="$CFLAGS -Wpointer-arith" 4868 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4870$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4871 cacheid=xorg_cv_cc_flag__Wpointer_arith 4872 if eval \${$cacheid+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877int i; 4878int 4879main () 4880{ 4881 4882 ; 4883 return 0; 4884} 4885_ACEOF 4886if ac_fn_c_try_link "$LINENO"; then : 4887 eval $cacheid=yes 4888else 4889 eval $cacheid=no 4890fi 4891rm -f core conftest.err conftest.$ac_objext \ 4892 conftest$ac_exeext conftest.$ac_ext 4893fi 4894 4895 4896 CFLAGS="$xorg_testset_save_CFLAGS" 4897 4898 eval supported=\$$cacheid 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4900$as_echo "$supported" >&6; } 4901 if test "$supported" = "yes" ; then 4902 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4903 found="yes" 4904 fi 4905 fi 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921xorg_testset_save_CFLAGS="$CFLAGS" 4922 4923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931/* end confdefs.h. */ 4932int i; 4933_ACEOF 4934if ac_fn_c_try_compile "$LINENO"; then : 4935 xorg_cv_cc_flag_unknown_warning_option=yes 4936else 4937 xorg_cv_cc_flag_unknown_warning_option=no 4938fi 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4940fi 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4944 CFLAGS="$xorg_testset_save_CFLAGS" 4945fi 4946 4947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4950 fi 4951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959int i; 4960_ACEOF 4961if ac_fn_c_try_compile "$LINENO"; then : 4962 xorg_cv_cc_flag_unused_command_line_argument=yes 4963else 4964 xorg_cv_cc_flag_unused_command_line_argument=no 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4971 CFLAGS="$xorg_testset_save_CFLAGS" 4972fi 4973 4974found="no" 4975 4976 if test $found = "no" ; then 4977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4979 fi 4980 4981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4983 fi 4984 4985 CFLAGS="$CFLAGS -Wmissing-declarations" 4986 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4988$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4989 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4990 if eval \${$cacheid+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995int i; 4996int 4997main () 4998{ 4999 5000 ; 5001 return 0; 5002} 5003_ACEOF 5004if ac_fn_c_try_link "$LINENO"; then : 5005 eval $cacheid=yes 5006else 5007 eval $cacheid=no 5008fi 5009rm -f core conftest.err conftest.$ac_objext \ 5010 conftest$ac_exeext conftest.$ac_ext 5011fi 5012 5013 5014 CFLAGS="$xorg_testset_save_CFLAGS" 5015 5016 eval supported=\$$cacheid 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5018$as_echo "$supported" >&6; } 5019 if test "$supported" = "yes" ; then 5020 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5021 found="yes" 5022 fi 5023 fi 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039xorg_testset_save_CFLAGS="$CFLAGS" 5040 5041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050int i; 5051_ACEOF 5052if ac_fn_c_try_compile "$LINENO"; then : 5053 xorg_cv_cc_flag_unknown_warning_option=yes 5054else 5055 xorg_cv_cc_flag_unknown_warning_option=no 5056fi 5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5058fi 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5062 CFLAGS="$xorg_testset_save_CFLAGS" 5063fi 5064 5065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5068 fi 5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077int i; 5078_ACEOF 5079if ac_fn_c_try_compile "$LINENO"; then : 5080 xorg_cv_cc_flag_unused_command_line_argument=yes 5081else 5082 xorg_cv_cc_flag_unused_command_line_argument=no 5083fi 5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5085fi 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090fi 5091 5092found="no" 5093 5094 if test $found = "no" ; then 5095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5097 fi 5098 5099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5101 fi 5102 5103 CFLAGS="$CFLAGS -Wformat=2" 5104 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5106$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5107 cacheid=xorg_cv_cc_flag__Wformat_2 5108 if eval \${$cacheid+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114int 5115main () 5116{ 5117 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122if ac_fn_c_try_link "$LINENO"; then : 5123 eval $cacheid=yes 5124else 5125 eval $cacheid=no 5126fi 5127rm -f core conftest.err conftest.$ac_objext \ 5128 conftest$ac_exeext conftest.$ac_ext 5129fi 5130 5131 5132 CFLAGS="$xorg_testset_save_CFLAGS" 5133 5134 eval supported=\$$cacheid 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5136$as_echo "$supported" >&6; } 5137 if test "$supported" = "yes" ; then 5138 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5139 found="yes" 5140 fi 5141 fi 5142 5143 if test $found = "no" ; then 5144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5146 fi 5147 5148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5150 fi 5151 5152 CFLAGS="$CFLAGS -Wformat" 5153 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5155$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5156 cacheid=xorg_cv_cc_flag__Wformat 5157 if eval \${$cacheid+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161/* end confdefs.h. */ 5162int i; 5163int 5164main () 5165{ 5166 5167 ; 5168 return 0; 5169} 5170_ACEOF 5171if ac_fn_c_try_link "$LINENO"; then : 5172 eval $cacheid=yes 5173else 5174 eval $cacheid=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext \ 5177 conftest$ac_exeext conftest.$ac_ext 5178fi 5179 5180 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182 5183 eval supported=\$$cacheid 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5185$as_echo "$supported" >&6; } 5186 if test "$supported" = "yes" ; then 5187 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5188 found="yes" 5189 fi 5190 fi 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208xorg_testset_save_CFLAGS="$CFLAGS" 5209 5210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5218/* end confdefs.h. */ 5219int i; 5220_ACEOF 5221if ac_fn_c_try_compile "$LINENO"; then : 5222 xorg_cv_cc_flag_unknown_warning_option=yes 5223else 5224 xorg_cv_cc_flag_unknown_warning_option=no 5225fi 5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5231 CFLAGS="$xorg_testset_save_CFLAGS" 5232fi 5233 5234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 fi 5238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246int i; 5247_ACEOF 5248if ac_fn_c_try_compile "$LINENO"; then : 5249 xorg_cv_cc_flag_unused_command_line_argument=yes 5250else 5251 xorg_cv_cc_flag_unused_command_line_argument=no 5252fi 5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5254fi 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259fi 5260 5261found="no" 5262 5263 if test $found = "no" ; then 5264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5266 fi 5267 5268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5270 fi 5271 5272 CFLAGS="$CFLAGS -Wstrict-prototypes" 5273 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5275$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5276 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5277 if eval \${$cacheid+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282int i; 5283int 5284main () 5285{ 5286 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291if ac_fn_c_try_link "$LINENO"; then : 5292 eval $cacheid=yes 5293else 5294 eval $cacheid=no 5295fi 5296rm -f core conftest.err conftest.$ac_objext \ 5297 conftest$ac_exeext conftest.$ac_ext 5298fi 5299 5300 5301 CFLAGS="$xorg_testset_save_CFLAGS" 5302 5303 eval supported=\$$cacheid 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5305$as_echo "$supported" >&6; } 5306 if test "$supported" = "yes" ; then 5307 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5308 found="yes" 5309 fi 5310 fi 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326xorg_testset_save_CFLAGS="$CFLAGS" 5327 5328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334else 5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336/* end confdefs.h. */ 5337int i; 5338_ACEOF 5339if ac_fn_c_try_compile "$LINENO"; then : 5340 xorg_cv_cc_flag_unknown_warning_option=yes 5341else 5342 xorg_cv_cc_flag_unknown_warning_option=no 5343fi 5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5345fi 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350fi 5351 5352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5355 fi 5356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364int i; 5365_ACEOF 5366if ac_fn_c_try_compile "$LINENO"; then : 5367 xorg_cv_cc_flag_unused_command_line_argument=yes 5368else 5369 xorg_cv_cc_flag_unused_command_line_argument=no 5370fi 5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5372fi 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377fi 5378 5379found="no" 5380 5381 if test $found = "no" ; then 5382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5384 fi 5385 5386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5388 fi 5389 5390 CFLAGS="$CFLAGS -Wmissing-prototypes" 5391 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5393$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5394 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5395 if eval \${$cacheid+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400int i; 5401int 5402main () 5403{ 5404 5405 ; 5406 return 0; 5407} 5408_ACEOF 5409if ac_fn_c_try_link "$LINENO"; then : 5410 eval $cacheid=yes 5411else 5412 eval $cacheid=no 5413fi 5414rm -f core conftest.err conftest.$ac_objext \ 5415 conftest$ac_exeext conftest.$ac_ext 5416fi 5417 5418 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420 5421 eval supported=\$$cacheid 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5423$as_echo "$supported" >&6; } 5424 if test "$supported" = "yes" ; then 5425 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5426 found="yes" 5427 fi 5428 fi 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444xorg_testset_save_CFLAGS="$CFLAGS" 5445 5446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455int i; 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO"; then : 5458 xorg_cv_cc_flag_unknown_warning_option=yes 5459else 5460 xorg_cv_cc_flag_unknown_warning_option=no 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468fi 5469 5470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 fi 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482int i; 5483_ACEOF 5484if ac_fn_c_try_compile "$LINENO"; then : 5485 xorg_cv_cc_flag_unused_command_line_argument=yes 5486else 5487 xorg_cv_cc_flag_unused_command_line_argument=no 5488fi 5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5490fi 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495fi 5496 5497found="no" 5498 5499 if test $found = "no" ; then 5500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5502 fi 5503 5504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5506 fi 5507 5508 CFLAGS="$CFLAGS -Wnested-externs" 5509 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5511$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5512 cacheid=xorg_cv_cc_flag__Wnested_externs 5513 if eval \${$cacheid+:} false; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517/* end confdefs.h. */ 5518int i; 5519int 5520main () 5521{ 5522 5523 ; 5524 return 0; 5525} 5526_ACEOF 5527if ac_fn_c_try_link "$LINENO"; then : 5528 eval $cacheid=yes 5529else 5530 eval $cacheid=no 5531fi 5532rm -f core conftest.err conftest.$ac_objext \ 5533 conftest$ac_exeext conftest.$ac_ext 5534fi 5535 5536 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538 5539 eval supported=\$$cacheid 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5541$as_echo "$supported" >&6; } 5542 if test "$supported" = "yes" ; then 5543 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5544 found="yes" 5545 fi 5546 fi 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562xorg_testset_save_CFLAGS="$CFLAGS" 5563 5564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573int i; 5574_ACEOF 5575if ac_fn_c_try_compile "$LINENO"; then : 5576 xorg_cv_cc_flag_unknown_warning_option=yes 5577else 5578 xorg_cv_cc_flag_unknown_warning_option=no 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5581fi 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5585 CFLAGS="$xorg_testset_save_CFLAGS" 5586fi 5587 5588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5591 fi 5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597else 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600int i; 5601_ACEOF 5602if ac_fn_c_try_compile "$LINENO"; then : 5603 xorg_cv_cc_flag_unused_command_line_argument=yes 5604else 5605 xorg_cv_cc_flag_unused_command_line_argument=no 5606fi 5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5608fi 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613fi 5614 5615found="no" 5616 5617 if test $found = "no" ; then 5618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5620 fi 5621 5622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5624 fi 5625 5626 CFLAGS="$CFLAGS -Wbad-function-cast" 5627 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5629$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5630 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5631 if eval \${$cacheid+:} false; then : 5632 $as_echo_n "(cached) " >&6 5633else 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636int i; 5637int 5638main () 5639{ 5640 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645if ac_fn_c_try_link "$LINENO"; then : 5646 eval $cacheid=yes 5647else 5648 eval $cacheid=no 5649fi 5650rm -f core conftest.err conftest.$ac_objext \ 5651 conftest$ac_exeext conftest.$ac_ext 5652fi 5653 5654 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656 5657 eval supported=\$$cacheid 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5659$as_echo "$supported" >&6; } 5660 if test "$supported" = "yes" ; then 5661 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5662 found="yes" 5663 fi 5664 fi 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680xorg_testset_save_CFLAGS="$CFLAGS" 5681 5682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691int i; 5692_ACEOF 5693if ac_fn_c_try_compile "$LINENO"; then : 5694 xorg_cv_cc_flag_unknown_warning_option=yes 5695else 5696 xorg_cv_cc_flag_unknown_warning_option=no 5697fi 5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5699fi 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5703 CFLAGS="$xorg_testset_save_CFLAGS" 5704fi 5705 5706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718int i; 5719_ACEOF 5720if ac_fn_c_try_compile "$LINENO"; then : 5721 xorg_cv_cc_flag_unused_command_line_argument=yes 5722else 5723 xorg_cv_cc_flag_unused_command_line_argument=no 5724fi 5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731fi 5732 5733found="no" 5734 5735 if test $found = "no" ; then 5736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5738 fi 5739 5740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5742 fi 5743 5744 CFLAGS="$CFLAGS -Wold-style-definition" 5745 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5747$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5748 cacheid=xorg_cv_cc_flag__Wold_style_definition 5749 if eval \${$cacheid+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754int i; 5755int 5756main () 5757{ 5758 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763if ac_fn_c_try_link "$LINENO"; then : 5764 eval $cacheid=yes 5765else 5766 eval $cacheid=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext \ 5769 conftest$ac_exeext conftest.$ac_ext 5770fi 5771 5772 5773 CFLAGS="$xorg_testset_save_CFLAGS" 5774 5775 eval supported=\$$cacheid 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5777$as_echo "$supported" >&6; } 5778 if test "$supported" = "yes" ; then 5779 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5780 found="yes" 5781 fi 5782 fi 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798xorg_testset_save_CFLAGS="$CFLAGS" 5799 5800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808/* end confdefs.h. */ 5809int i; 5810_ACEOF 5811if ac_fn_c_try_compile "$LINENO"; then : 5812 xorg_cv_cc_flag_unknown_warning_option=yes 5813else 5814 xorg_cv_cc_flag_unknown_warning_option=no 5815fi 5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5817fi 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5821 CFLAGS="$xorg_testset_save_CFLAGS" 5822fi 5823 5824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 fi 5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO"; then : 5839 xorg_cv_cc_flag_unused_command_line_argument=yes 5840else 5841 xorg_cv_cc_flag_unused_command_line_argument=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5844fi 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849fi 5850 5851found="no" 5852 5853 if test $found = "no" ; then 5854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5856 fi 5857 5858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5860 fi 5861 5862 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5863 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5865$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5866 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5867 if eval \${$cacheid+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873int 5874main () 5875{ 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_link "$LINENO"; then : 5882 eval $cacheid=yes 5883else 5884 eval $cacheid=no 5885fi 5886rm -f core conftest.err conftest.$ac_objext \ 5887 conftest$ac_exeext conftest.$ac_ext 5888fi 5889 5890 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892 5893 eval supported=\$$cacheid 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5895$as_echo "$supported" >&6; } 5896 if test "$supported" = "yes" ; then 5897 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5898 found="yes" 5899 fi 5900 fi 5901 5902 5903 5904 5905 5906# This chunk adds additional warnings that could catch undesired effects. 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920xorg_testset_save_CFLAGS="$CFLAGS" 5921 5922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930/* end confdefs.h. */ 5931int i; 5932_ACEOF 5933if ac_fn_c_try_compile "$LINENO"; then : 5934 xorg_cv_cc_flag_unknown_warning_option=yes 5935else 5936 xorg_cv_cc_flag_unknown_warning_option=no 5937fi 5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944fi 5945 5946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959_ACEOF 5960if ac_fn_c_try_compile "$LINENO"; then : 5961 xorg_cv_cc_flag_unused_command_line_argument=yes 5962else 5963 xorg_cv_cc_flag_unused_command_line_argument=no 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5966fi 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5970 CFLAGS="$xorg_testset_save_CFLAGS" 5971fi 5972 5973found="no" 5974 5975 if test $found = "no" ; then 5976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5978 fi 5979 5980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5982 fi 5983 5984 CFLAGS="$CFLAGS -Wunused" 5985 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5987$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5988 cacheid=xorg_cv_cc_flag__Wunused 5989 if eval \${$cacheid+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994int i; 5995int 5996main () 5997{ 5998 5999 ; 6000 return 0; 6001} 6002_ACEOF 6003if ac_fn_c_try_link "$LINENO"; then : 6004 eval $cacheid=yes 6005else 6006 eval $cacheid=no 6007fi 6008rm -f core conftest.err conftest.$ac_objext \ 6009 conftest$ac_exeext conftest.$ac_ext 6010fi 6011 6012 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014 6015 eval supported=\$$cacheid 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6017$as_echo "$supported" >&6; } 6018 if test "$supported" = "yes" ; then 6019 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6020 found="yes" 6021 fi 6022 fi 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038xorg_testset_save_CFLAGS="$CFLAGS" 6039 6040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6048/* end confdefs.h. */ 6049int i; 6050_ACEOF 6051if ac_fn_c_try_compile "$LINENO"; then : 6052 xorg_cv_cc_flag_unknown_warning_option=yes 6053else 6054 xorg_cv_cc_flag_unknown_warning_option=no 6055fi 6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062fi 6063 6064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 fi 6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6072 $as_echo_n "(cached) " >&6 6073else 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076int i; 6077_ACEOF 6078if ac_fn_c_try_compile "$LINENO"; then : 6079 xorg_cv_cc_flag_unused_command_line_argument=yes 6080else 6081 xorg_cv_cc_flag_unused_command_line_argument=no 6082fi 6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6084fi 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6088 CFLAGS="$xorg_testset_save_CFLAGS" 6089fi 6090 6091found="no" 6092 6093 if test $found = "no" ; then 6094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6096 fi 6097 6098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6100 fi 6101 6102 CFLAGS="$CFLAGS -Wuninitialized" 6103 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6105$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6106 cacheid=xorg_cv_cc_flag__Wuninitialized 6107 if eval \${$cacheid+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113int 6114main () 6115{ 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121if ac_fn_c_try_link "$LINENO"; then : 6122 eval $cacheid=yes 6123else 6124 eval $cacheid=no 6125fi 6126rm -f core conftest.err conftest.$ac_objext \ 6127 conftest$ac_exeext conftest.$ac_ext 6128fi 6129 6130 6131 CFLAGS="$xorg_testset_save_CFLAGS" 6132 6133 eval supported=\$$cacheid 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6135$as_echo "$supported" >&6; } 6136 if test "$supported" = "yes" ; then 6137 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6138 found="yes" 6139 fi 6140 fi 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156xorg_testset_save_CFLAGS="$CFLAGS" 6157 6158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6166/* end confdefs.h. */ 6167int i; 6168_ACEOF 6169if ac_fn_c_try_compile "$LINENO"; then : 6170 xorg_cv_cc_flag_unknown_warning_option=yes 6171else 6172 xorg_cv_cc_flag_unknown_warning_option=no 6173fi 6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6175fi 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6179 CFLAGS="$xorg_testset_save_CFLAGS" 6180fi 6181 6182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185 fi 6186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6193/* end confdefs.h. */ 6194int i; 6195_ACEOF 6196if ac_fn_c_try_compile "$LINENO"; then : 6197 xorg_cv_cc_flag_unused_command_line_argument=yes 6198else 6199 xorg_cv_cc_flag_unused_command_line_argument=no 6200fi 6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207fi 6208 6209found="no" 6210 6211 if test $found = "no" ; then 6212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6214 fi 6215 6216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6218 fi 6219 6220 CFLAGS="$CFLAGS -Wshadow" 6221 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6223$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6224 cacheid=xorg_cv_cc_flag__Wshadow 6225 if eval \${$cacheid+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230int i; 6231int 6232main () 6233{ 6234 6235 ; 6236 return 0; 6237} 6238_ACEOF 6239if ac_fn_c_try_link "$LINENO"; then : 6240 eval $cacheid=yes 6241else 6242 eval $cacheid=no 6243fi 6244rm -f core conftest.err conftest.$ac_objext \ 6245 conftest$ac_exeext conftest.$ac_ext 6246fi 6247 6248 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250 6251 eval supported=\$$cacheid 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6253$as_echo "$supported" >&6; } 6254 if test "$supported" = "yes" ; then 6255 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6256 found="yes" 6257 fi 6258 fi 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274xorg_testset_save_CFLAGS="$CFLAGS" 6275 6276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285int i; 6286_ACEOF 6287if ac_fn_c_try_compile "$LINENO"; then : 6288 xorg_cv_cc_flag_unknown_warning_option=yes 6289else 6290 xorg_cv_cc_flag_unknown_warning_option=no 6291fi 6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6293fi 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6297 CFLAGS="$xorg_testset_save_CFLAGS" 6298fi 6299 6300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 fi 6304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312int i; 6313_ACEOF 6314if ac_fn_c_try_compile "$LINENO"; then : 6315 xorg_cv_cc_flag_unused_command_line_argument=yes 6316else 6317 xorg_cv_cc_flag_unused_command_line_argument=no 6318fi 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320fi 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6324 CFLAGS="$xorg_testset_save_CFLAGS" 6325fi 6326 6327found="no" 6328 6329 if test $found = "no" ; then 6330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6332 fi 6333 6334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6336 fi 6337 6338 CFLAGS="$CFLAGS -Wcast-qual" 6339 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6341$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6342 cacheid=xorg_cv_cc_flag__Wcast_qual 6343 if eval \${$cacheid+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348int i; 6349int 6350main () 6351{ 6352 6353 ; 6354 return 0; 6355} 6356_ACEOF 6357if ac_fn_c_try_link "$LINENO"; then : 6358 eval $cacheid=yes 6359else 6360 eval $cacheid=no 6361fi 6362rm -f core conftest.err conftest.$ac_objext \ 6363 conftest$ac_exeext conftest.$ac_ext 6364fi 6365 6366 6367 CFLAGS="$xorg_testset_save_CFLAGS" 6368 6369 eval supported=\$$cacheid 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6371$as_echo "$supported" >&6; } 6372 if test "$supported" = "yes" ; then 6373 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6374 found="yes" 6375 fi 6376 fi 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392xorg_testset_save_CFLAGS="$CFLAGS" 6393 6394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6402/* end confdefs.h. */ 6403int i; 6404_ACEOF 6405if ac_fn_c_try_compile "$LINENO"; then : 6406 xorg_cv_cc_flag_unknown_warning_option=yes 6407else 6408 xorg_cv_cc_flag_unknown_warning_option=no 6409fi 6410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6411fi 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6415 CFLAGS="$xorg_testset_save_CFLAGS" 6416fi 6417 6418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429/* end confdefs.h. */ 6430int i; 6431_ACEOF 6432if ac_fn_c_try_compile "$LINENO"; then : 6433 xorg_cv_cc_flag_unused_command_line_argument=yes 6434else 6435 xorg_cv_cc_flag_unused_command_line_argument=no 6436fi 6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6442 CFLAGS="$xorg_testset_save_CFLAGS" 6443fi 6444 6445found="no" 6446 6447 if test $found = "no" ; then 6448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6450 fi 6451 6452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6454 fi 6455 6456 CFLAGS="$CFLAGS -Wmissing-noreturn" 6457 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6459$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6460 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6461 if eval \${$cacheid+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466int i; 6467int 6468main () 6469{ 6470 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475if ac_fn_c_try_link "$LINENO"; then : 6476 eval $cacheid=yes 6477else 6478 eval $cacheid=no 6479fi 6480rm -f core conftest.err conftest.$ac_objext \ 6481 conftest$ac_exeext conftest.$ac_ext 6482fi 6483 6484 6485 CFLAGS="$xorg_testset_save_CFLAGS" 6486 6487 eval supported=\$$cacheid 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6489$as_echo "$supported" >&6; } 6490 if test "$supported" = "yes" ; then 6491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6492 found="yes" 6493 fi 6494 fi 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510xorg_testset_save_CFLAGS="$CFLAGS" 6511 6512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6520/* end confdefs.h. */ 6521int i; 6522_ACEOF 6523if ac_fn_c_try_compile "$LINENO"; then : 6524 xorg_cv_cc_flag_unknown_warning_option=yes 6525else 6526 xorg_cv_cc_flag_unknown_warning_option=no 6527fi 6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6533 CFLAGS="$xorg_testset_save_CFLAGS" 6534fi 6535 6536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6547/* end confdefs.h. */ 6548int i; 6549_ACEOF 6550if ac_fn_c_try_compile "$LINENO"; then : 6551 xorg_cv_cc_flag_unused_command_line_argument=yes 6552else 6553 xorg_cv_cc_flag_unused_command_line_argument=no 6554fi 6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6556fi 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561fi 6562 6563found="no" 6564 6565 if test $found = "no" ; then 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 fi 6569 6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6572 fi 6573 6574 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6575 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6577$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6578 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6579 if eval \${$cacheid+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581else 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584int i; 6585int 6586main () 6587{ 6588 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 eval $cacheid=yes 6595else 6596 eval $cacheid=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600fi 6601 6602 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604 6605 eval supported=\$$cacheid 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6607$as_echo "$supported" >&6; } 6608 if test "$supported" = "yes" ; then 6609 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6610 found="yes" 6611 fi 6612 fi 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628xorg_testset_save_CFLAGS="$CFLAGS" 6629 6630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639int i; 6640_ACEOF 6641if ac_fn_c_try_compile "$LINENO"; then : 6642 xorg_cv_cc_flag_unknown_warning_option=yes 6643else 6644 xorg_cv_cc_flag_unknown_warning_option=no 6645fi 6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6647fi 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6651 CFLAGS="$xorg_testset_save_CFLAGS" 6652fi 6653 6654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666int i; 6667_ACEOF 6668if ac_fn_c_try_compile "$LINENO"; then : 6669 xorg_cv_cc_flag_unused_command_line_argument=yes 6670else 6671 xorg_cv_cc_flag_unused_command_line_argument=no 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6674fi 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6678 CFLAGS="$xorg_testset_save_CFLAGS" 6679fi 6680 6681found="no" 6682 6683 if test $found = "no" ; then 6684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6686 fi 6687 6688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6690 fi 6691 6692 CFLAGS="$CFLAGS -Wredundant-decls" 6693 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6695$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6696 cacheid=xorg_cv_cc_flag__Wredundant_decls 6697 if eval \${$cacheid+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702int i; 6703int 6704main () 6705{ 6706 6707 ; 6708 return 0; 6709} 6710_ACEOF 6711if ac_fn_c_try_link "$LINENO"; then : 6712 eval $cacheid=yes 6713else 6714 eval $cacheid=no 6715fi 6716rm -f core conftest.err conftest.$ac_objext \ 6717 conftest$ac_exeext conftest.$ac_ext 6718fi 6719 6720 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 6723 eval supported=\$$cacheid 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6725$as_echo "$supported" >&6; } 6726 if test "$supported" = "yes" ; then 6727 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6728 found="yes" 6729 fi 6730 fi 6731 6732 6733 6734# These are currently disabled because they are noisy. They will be enabled 6735# in the future once the codebase is sufficiently modernized to silence 6736# them. For now, I don't want them to drown out the other warnings. 6737# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6738# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6739# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6740 6741# Turn some warnings into errors, so we don't accidently get successful builds 6742# when there are problems that should be fixed. 6743 6744if test "x$SELECTIVE_WERROR" = "xyes" ; then 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=implicit" 6823 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6825$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6826 cacheid=xorg_cv_cc_flag__Werror_implicit 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=implicit" 6858 found="yes" 6859 fi 6860 fi 6861 6862 if test $found = "no" ; then 6863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 fi 6866 6867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6869 fi 6870 6871 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6872 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6874$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6875 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6876 if eval \${$cacheid+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6880/* end confdefs.h. */ 6881int i; 6882int 6883main () 6884{ 6885 6886 ; 6887 return 0; 6888} 6889_ACEOF 6890if ac_fn_c_try_link "$LINENO"; then : 6891 eval $cacheid=yes 6892else 6893 eval $cacheid=no 6894fi 6895rm -f core conftest.err conftest.$ac_objext \ 6896 conftest$ac_exeext conftest.$ac_ext 6897fi 6898 6899 6900 CFLAGS="$xorg_testset_save_CFLAGS" 6901 6902 eval supported=\$$cacheid 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6904$as_echo "$supported" >&6; } 6905 if test "$supported" = "yes" ; then 6906 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6907 found="yes" 6908 fi 6909 fi 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925xorg_testset_save_CFLAGS="$CFLAGS" 6926 6927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6935/* end confdefs.h. */ 6936int i; 6937_ACEOF 6938if ac_fn_c_try_compile "$LINENO"; then : 6939 xorg_cv_cc_flag_unknown_warning_option=yes 6940else 6941 xorg_cv_cc_flag_unknown_warning_option=no 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949fi 6950 6951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int i; 6964_ACEOF 6965if ac_fn_c_try_compile "$LINENO"; then : 6966 xorg_cv_cc_flag_unused_command_line_argument=yes 6967else 6968 xorg_cv_cc_flag_unused_command_line_argument=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976fi 6977 6978found="no" 6979 6980 if test $found = "no" ; then 6981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6983 fi 6984 6985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6987 fi 6988 6989 CFLAGS="$CFLAGS -Werror=nonnull" 6990 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6992$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6993 cacheid=xorg_cv_cc_flag__Werror_nonnull 6994 if eval \${$cacheid+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000int 7001main () 7002{ 7003 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_c_try_link "$LINENO"; then : 7009 eval $cacheid=yes 7010else 7011 eval $cacheid=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext \ 7014 conftest$ac_exeext conftest.$ac_ext 7015fi 7016 7017 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019 7020 eval supported=\$$cacheid 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7022$as_echo "$supported" >&6; } 7023 if test "$supported" = "yes" ; then 7024 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7025 found="yes" 7026 fi 7027 fi 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043xorg_testset_save_CFLAGS="$CFLAGS" 7044 7045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7050 $as_echo_n "(cached) " >&6 7051else 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054int i; 7055_ACEOF 7056if ac_fn_c_try_compile "$LINENO"; then : 7057 xorg_cv_cc_flag_unknown_warning_option=yes 7058else 7059 xorg_cv_cc_flag_unknown_warning_option=no 7060fi 7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7062fi 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7066 CFLAGS="$xorg_testset_save_CFLAGS" 7067fi 7068 7069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7072 fi 7073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082_ACEOF 7083if ac_fn_c_try_compile "$LINENO"; then : 7084 xorg_cv_cc_flag_unused_command_line_argument=yes 7085else 7086 xorg_cv_cc_flag_unused_command_line_argument=no 7087fi 7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7089fi 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7093 CFLAGS="$xorg_testset_save_CFLAGS" 7094fi 7095 7096found="no" 7097 7098 if test $found = "no" ; then 7099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7101 fi 7102 7103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7105 fi 7106 7107 CFLAGS="$CFLAGS -Werror=init-self" 7108 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7110$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7111 cacheid=xorg_cv_cc_flag__Werror_init_self 7112 if eval \${$cacheid+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118int 7119main () 7120{ 7121 7122 ; 7123 return 0; 7124} 7125_ACEOF 7126if ac_fn_c_try_link "$LINENO"; then : 7127 eval $cacheid=yes 7128else 7129 eval $cacheid=no 7130fi 7131rm -f core conftest.err conftest.$ac_objext \ 7132 conftest$ac_exeext conftest.$ac_ext 7133fi 7134 7135 7136 CFLAGS="$xorg_testset_save_CFLAGS" 7137 7138 eval supported=\$$cacheid 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7140$as_echo "$supported" >&6; } 7141 if test "$supported" = "yes" ; then 7142 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7143 found="yes" 7144 fi 7145 fi 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161xorg_testset_save_CFLAGS="$CFLAGS" 7162 7163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7171/* end confdefs.h. */ 7172int i; 7173_ACEOF 7174if ac_fn_c_try_compile "$LINENO"; then : 7175 xorg_cv_cc_flag_unknown_warning_option=yes 7176else 7177 xorg_cv_cc_flag_unknown_warning_option=no 7178fi 7179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7180fi 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7184 CFLAGS="$xorg_testset_save_CFLAGS" 7185fi 7186 7187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 fi 7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198/* end confdefs.h. */ 7199int i; 7200_ACEOF 7201if ac_fn_c_try_compile "$LINENO"; then : 7202 xorg_cv_cc_flag_unused_command_line_argument=yes 7203else 7204 xorg_cv_cc_flag_unused_command_line_argument=no 7205fi 7206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7207fi 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7211 CFLAGS="$xorg_testset_save_CFLAGS" 7212fi 7213 7214found="no" 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 -Werror=main" 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7228$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7229 cacheid=xorg_cv_cc_flag__Werror_main 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 -Werror=main" 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=missing-braces" 7344 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7346$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7347 cacheid=xorg_cv_cc_flag__Werror_missing_braces 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=missing-braces" 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=sequence-point" 7462 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7464$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7465 cacheid=xorg_cv_cc_flag__Werror_sequence_point 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=sequence-point" 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=return-type" 7580 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7582$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7583 cacheid=xorg_cv_cc_flag__Werror_return_type 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=return-type" 7615 found="yes" 7616 fi 7617 fi 7618 7619 if test $found = "no" ; then 7620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7622 fi 7623 7624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7626 fi 7627 7628 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7629 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7631$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7632 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7633 if eval \${$cacheid+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639int 7640main () 7641{ 7642 7643 ; 7644 return 0; 7645} 7646_ACEOF 7647if ac_fn_c_try_link "$LINENO"; then : 7648 eval $cacheid=yes 7649else 7650 eval $cacheid=no 7651fi 7652rm -f core conftest.err conftest.$ac_objext \ 7653 conftest$ac_exeext conftest.$ac_ext 7654fi 7655 7656 7657 CFLAGS="$xorg_testset_save_CFLAGS" 7658 7659 eval supported=\$$cacheid 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7661$as_echo "$supported" >&6; } 7662 if test "$supported" = "yes" ; then 7663 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7664 found="yes" 7665 fi 7666 fi 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682xorg_testset_save_CFLAGS="$CFLAGS" 7683 7684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7687$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7688if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7689 $as_echo_n "(cached) " >&6 7690else 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693int i; 7694_ACEOF 7695if ac_fn_c_try_compile "$LINENO"; then : 7696 xorg_cv_cc_flag_unknown_warning_option=yes 7697else 7698 xorg_cv_cc_flag_unknown_warning_option=no 7699fi 7700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7701fi 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7703$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7705 CFLAGS="$xorg_testset_save_CFLAGS" 7706fi 7707 7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 fi 7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7714$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7715if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721_ACEOF 7722if ac_fn_c_try_compile "$LINENO"; then : 7723 xorg_cv_cc_flag_unused_command_line_argument=yes 7724else 7725 xorg_cv_cc_flag_unused_command_line_argument=no 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7730$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7732 CFLAGS="$xorg_testset_save_CFLAGS" 7733fi 7734 7735found="no" 7736 7737 if test $found = "no" ; then 7738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7740 fi 7741 7742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7744 fi 7745 7746 CFLAGS="$CFLAGS -Werror=trigraphs" 7747 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7749$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7750 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7751 if eval \${$cacheid+:} false; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755/* end confdefs.h. */ 7756int i; 7757int 7758main () 7759{ 7760 7761 ; 7762 return 0; 7763} 7764_ACEOF 7765if ac_fn_c_try_link "$LINENO"; then : 7766 eval $cacheid=yes 7767else 7768 eval $cacheid=no 7769fi 7770rm -f core conftest.err conftest.$ac_objext \ 7771 conftest$ac_exeext conftest.$ac_ext 7772fi 7773 7774 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776 7777 eval supported=\$$cacheid 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7779$as_echo "$supported" >&6; } 7780 if test "$supported" = "yes" ; then 7781 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7782 found="yes" 7783 fi 7784 fi 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800xorg_testset_save_CFLAGS="$CFLAGS" 7801 7802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7807 $as_echo_n "(cached) " >&6 7808else 7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811int i; 7812_ACEOF 7813if ac_fn_c_try_compile "$LINENO"; then : 7814 xorg_cv_cc_flag_unknown_warning_option=yes 7815else 7816 xorg_cv_cc_flag_unknown_warning_option=no 7817fi 7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7819fi 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7823 CFLAGS="$xorg_testset_save_CFLAGS" 7824fi 7825 7826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 fi 7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838int i; 7839_ACEOF 7840if ac_fn_c_try_compile "$LINENO"; then : 7841 xorg_cv_cc_flag_unused_command_line_argument=yes 7842else 7843 xorg_cv_cc_flag_unused_command_line_argument=no 7844fi 7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7850 CFLAGS="$xorg_testset_save_CFLAGS" 7851fi 7852 7853found="no" 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 -Werror=array-bounds" 7865 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7867$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7868 cacheid=xorg_cv_cc_flag__Werror_array_bounds 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 -Werror=array-bounds" 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=write-strings" 7983 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7985$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7986 cacheid=xorg_cv_cc_flag__Werror_write_strings 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=write-strings" 8018 found="yes" 8019 fi 8020 fi 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036xorg_testset_save_CFLAGS="$CFLAGS" 8037 8038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8043 $as_echo_n "(cached) " >&6 8044else 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047int i; 8048_ACEOF 8049if ac_fn_c_try_compile "$LINENO"; then : 8050 xorg_cv_cc_flag_unknown_warning_option=yes 8051else 8052 xorg_cv_cc_flag_unknown_warning_option=no 8053fi 8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8055fi 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8059 CFLAGS="$xorg_testset_save_CFLAGS" 8060fi 8061 8062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8065 fi 8066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074int i; 8075_ACEOF 8076if ac_fn_c_try_compile "$LINENO"; then : 8077 xorg_cv_cc_flag_unused_command_line_argument=yes 8078else 8079 xorg_cv_cc_flag_unused_command_line_argument=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8082fi 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087fi 8088 8089found="no" 8090 8091 if test $found = "no" ; then 8092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8094 fi 8095 8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8098 fi 8099 8100 CFLAGS="$CFLAGS -Werror=address" 8101 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8103$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8104 cacheid=xorg_cv_cc_flag__Werror_address 8105 if eval \${$cacheid+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111int 8112main () 8113{ 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_link "$LINENO"; then : 8120 eval $cacheid=yes 8121else 8122 eval $cacheid=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext \ 8125 conftest$ac_exeext conftest.$ac_ext 8126fi 8127 8128 8129 CFLAGS="$xorg_testset_save_CFLAGS" 8130 8131 eval supported=\$$cacheid 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8133$as_echo "$supported" >&6; } 8134 if test "$supported" = "yes" ; then 8135 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8136 found="yes" 8137 fi 8138 fi 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154xorg_testset_save_CFLAGS="$CFLAGS" 8155 8156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162else 8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8164/* end confdefs.h. */ 8165int i; 8166_ACEOF 8167if ac_fn_c_try_compile "$LINENO"; then : 8168 xorg_cv_cc_flag_unknown_warning_option=yes 8169else 8170 xorg_cv_cc_flag_unknown_warning_option=no 8171fi 8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8173fi 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8177 CFLAGS="$xorg_testset_save_CFLAGS" 8178fi 8179 8180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8183 fi 8184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189else 8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192int i; 8193_ACEOF 8194if ac_fn_c_try_compile "$LINENO"; then : 8195 xorg_cv_cc_flag_unused_command_line_argument=yes 8196else 8197 xorg_cv_cc_flag_unused_command_line_argument=no 8198fi 8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8204 CFLAGS="$xorg_testset_save_CFLAGS" 8205fi 8206 8207found="no" 8208 8209 if test $found = "no" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 8214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216 fi 8217 8218 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8219 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8221$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8222 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8223 if eval \${$cacheid+:} false; then : 8224 $as_echo_n "(cached) " >&6 8225else 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227/* end confdefs.h. */ 8228int i; 8229int 8230main () 8231{ 8232 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237if ac_fn_c_try_link "$LINENO"; then : 8238 eval $cacheid=yes 8239else 8240 eval $cacheid=no 8241fi 8242rm -f core conftest.err conftest.$ac_objext \ 8243 conftest$ac_exeext conftest.$ac_ext 8244fi 8245 8246 8247 CFLAGS="$xorg_testset_save_CFLAGS" 8248 8249 eval supported=\$$cacheid 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8251$as_echo "$supported" >&6; } 8252 if test "$supported" = "yes" ; then 8253 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8254 found="yes" 8255 fi 8256 fi 8257 8258 if test $found = "no" ; then 8259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8261 fi 8262 8263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8265 fi 8266 8267 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8268 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8270$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8271 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8272 if eval \${$cacheid+:} false; then : 8273 $as_echo_n "(cached) " >&6 8274else 8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8276/* end confdefs.h. */ 8277int i; 8278int 8279main () 8280{ 8281 8282 ; 8283 return 0; 8284} 8285_ACEOF 8286if ac_fn_c_try_link "$LINENO"; then : 8287 eval $cacheid=yes 8288else 8289 eval $cacheid=no 8290fi 8291rm -f core conftest.err conftest.$ac_objext \ 8292 conftest$ac_exeext conftest.$ac_ext 8293fi 8294 8295 8296 CFLAGS="$xorg_testset_save_CFLAGS" 8297 8298 eval supported=\$$cacheid 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8300$as_echo "$supported" >&6; } 8301 if test "$supported" = "yes" ; then 8302 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8303 found="yes" 8304 fi 8305 fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321xorg_testset_save_CFLAGS="$CFLAGS" 8322 8323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8331/* end confdefs.h. */ 8332int i; 8333_ACEOF 8334if ac_fn_c_try_compile "$LINENO"; then : 8335 xorg_cv_cc_flag_unknown_warning_option=yes 8336else 8337 xorg_cv_cc_flag_unknown_warning_option=no 8338fi 8339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8340fi 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345fi 8346 8347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO"; then : 8362 xorg_cv_cc_flag_unused_command_line_argument=yes 8363else 8364 xorg_cv_cc_flag_unused_command_line_argument=no 8365fi 8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372fi 8373 8374found="no" 8375 8376 if test $found = "no" ; then 8377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8379 fi 8380 8381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8383 fi 8384 8385 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8388$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8389 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8390 if eval \${$cacheid+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395int i; 8396int 8397main () 8398{ 8399 8400 ; 8401 return 0; 8402} 8403_ACEOF 8404if ac_fn_c_try_link "$LINENO"; then : 8405 eval $cacheid=yes 8406else 8407 eval $cacheid=no 8408fi 8409rm -f core conftest.err conftest.$ac_objext \ 8410 conftest$ac_exeext conftest.$ac_ext 8411fi 8412 8413 8414 CFLAGS="$xorg_testset_save_CFLAGS" 8415 8416 eval supported=\$$cacheid 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8418$as_echo "$supported" >&6; } 8419 if test "$supported" = "yes" ; then 8420 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8421 found="yes" 8422 fi 8423 fi 8424 8425 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8426else 8427{ $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 8428$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;} 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442xorg_testset_save_CFLAGS="$CFLAGS" 8443 8444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452/* end confdefs.h. */ 8453int i; 8454_ACEOF 8455if ac_fn_c_try_compile "$LINENO"; then : 8456 xorg_cv_cc_flag_unknown_warning_option=yes 8457else 8458 xorg_cv_cc_flag_unknown_warning_option=no 8459fi 8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8465 CFLAGS="$xorg_testset_save_CFLAGS" 8466fi 8467 8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 fi 8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477else 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479/* end confdefs.h. */ 8480int i; 8481_ACEOF 8482if ac_fn_c_try_compile "$LINENO"; then : 8483 xorg_cv_cc_flag_unused_command_line_argument=yes 8484else 8485 xorg_cv_cc_flag_unused_command_line_argument=no 8486fi 8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8492 CFLAGS="$xorg_testset_save_CFLAGS" 8493fi 8494 8495found="no" 8496 8497 if test $found = "no" ; then 8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8500 fi 8501 8502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8504 fi 8505 8506 CFLAGS="$CFLAGS -Wimplicit" 8507 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8509$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8510 cacheid=xorg_cv_cc_flag__Wimplicit 8511 if eval \${$cacheid+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517int 8518main () 8519{ 8520 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525if ac_fn_c_try_link "$LINENO"; then : 8526 eval $cacheid=yes 8527else 8528 eval $cacheid=no 8529fi 8530rm -f core conftest.err conftest.$ac_objext \ 8531 conftest$ac_exeext conftest.$ac_ext 8532fi 8533 8534 8535 CFLAGS="$xorg_testset_save_CFLAGS" 8536 8537 eval supported=\$$cacheid 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8539$as_echo "$supported" >&6; } 8540 if test "$supported" = "yes" ; then 8541 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8542 found="yes" 8543 fi 8544 fi 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560xorg_testset_save_CFLAGS="$CFLAGS" 8561 8562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8567 $as_echo_n "(cached) " >&6 8568else 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571int i; 8572_ACEOF 8573if ac_fn_c_try_compile "$LINENO"; then : 8574 xorg_cv_cc_flag_unknown_warning_option=yes 8575else 8576 xorg_cv_cc_flag_unknown_warning_option=no 8577fi 8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8579fi 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8583 CFLAGS="$xorg_testset_save_CFLAGS" 8584fi 8585 8586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 fi 8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595else 8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597/* end confdefs.h. */ 8598int i; 8599_ACEOF 8600if ac_fn_c_try_compile "$LINENO"; then : 8601 xorg_cv_cc_flag_unused_command_line_argument=yes 8602else 8603 xorg_cv_cc_flag_unused_command_line_argument=no 8604fi 8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8610 CFLAGS="$xorg_testset_save_CFLAGS" 8611fi 8612 8613found="no" 8614 8615 if test $found = "no" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 8620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8622 fi 8623 8624 CFLAGS="$CFLAGS -Wnonnull" 8625 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8627$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8628 cacheid=xorg_cv_cc_flag__Wnonnull 8629 if eval \${$cacheid+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8633/* end confdefs.h. */ 8634int i; 8635int 8636main () 8637{ 8638 8639 ; 8640 return 0; 8641} 8642_ACEOF 8643if ac_fn_c_try_link "$LINENO"; then : 8644 eval $cacheid=yes 8645else 8646 eval $cacheid=no 8647fi 8648rm -f core conftest.err conftest.$ac_objext \ 8649 conftest$ac_exeext conftest.$ac_ext 8650fi 8651 8652 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654 8655 eval supported=\$$cacheid 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8657$as_echo "$supported" >&6; } 8658 if test "$supported" = "yes" ; then 8659 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8660 found="yes" 8661 fi 8662 fi 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678xorg_testset_save_CFLAGS="$CFLAGS" 8679 8680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8685 $as_echo_n "(cached) " >&6 8686else 8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688/* end confdefs.h. */ 8689int i; 8690_ACEOF 8691if ac_fn_c_try_compile "$LINENO"; then : 8692 xorg_cv_cc_flag_unknown_warning_option=yes 8693else 8694 xorg_cv_cc_flag_unknown_warning_option=no 8695fi 8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8697fi 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8701 CFLAGS="$xorg_testset_save_CFLAGS" 8702fi 8703 8704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 fi 8708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8712 $as_echo_n "(cached) " >&6 8713else 8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8715/* end confdefs.h. */ 8716int i; 8717_ACEOF 8718if ac_fn_c_try_compile "$LINENO"; then : 8719 xorg_cv_cc_flag_unused_command_line_argument=yes 8720else 8721 xorg_cv_cc_flag_unused_command_line_argument=no 8722fi 8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8724fi 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8728 CFLAGS="$xorg_testset_save_CFLAGS" 8729fi 8730 8731found="no" 8732 8733 if test $found = "no" ; then 8734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8736 fi 8737 8738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8740 fi 8741 8742 CFLAGS="$CFLAGS -Winit-self" 8743 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8745$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8746 cacheid=xorg_cv_cc_flag__Winit_self 8747 if eval \${$cacheid+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753int 8754main () 8755{ 8756 8757 ; 8758 return 0; 8759} 8760_ACEOF 8761if ac_fn_c_try_link "$LINENO"; then : 8762 eval $cacheid=yes 8763else 8764 eval $cacheid=no 8765fi 8766rm -f core conftest.err conftest.$ac_objext \ 8767 conftest$ac_exeext conftest.$ac_ext 8768fi 8769 8770 8771 CFLAGS="$xorg_testset_save_CFLAGS" 8772 8773 eval supported=\$$cacheid 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8775$as_echo "$supported" >&6; } 8776 if test "$supported" = "yes" ; then 8777 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8778 found="yes" 8779 fi 8780 fi 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796xorg_testset_save_CFLAGS="$CFLAGS" 8797 8798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807int i; 8808_ACEOF 8809if ac_fn_c_try_compile "$LINENO"; then : 8810 xorg_cv_cc_flag_unknown_warning_option=yes 8811else 8812 xorg_cv_cc_flag_unknown_warning_option=no 8813fi 8814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8815fi 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8819 CFLAGS="$xorg_testset_save_CFLAGS" 8820fi 8821 8822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 fi 8826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8830 $as_echo_n "(cached) " >&6 8831else 8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834int i; 8835_ACEOF 8836if ac_fn_c_try_compile "$LINENO"; then : 8837 xorg_cv_cc_flag_unused_command_line_argument=yes 8838else 8839 xorg_cv_cc_flag_unused_command_line_argument=no 8840fi 8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8842fi 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8846 CFLAGS="$xorg_testset_save_CFLAGS" 8847fi 8848 8849found="no" 8850 8851 if test $found = "no" ; then 8852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8854 fi 8855 8856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8858 fi 8859 8860 CFLAGS="$CFLAGS -Wmain" 8861 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8863$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8864 cacheid=xorg_cv_cc_flag__Wmain 8865 if eval \${$cacheid+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870int i; 8871int 8872main () 8873{ 8874 8875 ; 8876 return 0; 8877} 8878_ACEOF 8879if ac_fn_c_try_link "$LINENO"; then : 8880 eval $cacheid=yes 8881else 8882 eval $cacheid=no 8883fi 8884rm -f core conftest.err conftest.$ac_objext \ 8885 conftest$ac_exeext conftest.$ac_ext 8886fi 8887 8888 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890 8891 eval supported=\$$cacheid 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8893$as_echo "$supported" >&6; } 8894 if test "$supported" = "yes" ; then 8895 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8896 found="yes" 8897 fi 8898 fi 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914xorg_testset_save_CFLAGS="$CFLAGS" 8915 8916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8924/* end confdefs.h. */ 8925int i; 8926_ACEOF 8927if ac_fn_c_try_compile "$LINENO"; then : 8928 xorg_cv_cc_flag_unknown_warning_option=yes 8929else 8930 xorg_cv_cc_flag_unknown_warning_option=no 8931fi 8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8933fi 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8937 CFLAGS="$xorg_testset_save_CFLAGS" 8938fi 8939 8940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943 fi 8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8948 $as_echo_n "(cached) " >&6 8949else 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951/* end confdefs.h. */ 8952int i; 8953_ACEOF 8954if ac_fn_c_try_compile "$LINENO"; then : 8955 xorg_cv_cc_flag_unused_command_line_argument=yes 8956else 8957 xorg_cv_cc_flag_unused_command_line_argument=no 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8960fi 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965fi 8966 8967found="no" 8968 8969 if test $found = "no" ; then 8970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 fi 8973 8974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8976 fi 8977 8978 CFLAGS="$CFLAGS -Wmissing-braces" 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8981$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8982 cacheid=xorg_cv_cc_flag__Wmissing_braces 8983 if eval \${$cacheid+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988int i; 8989int 8990main () 8991{ 8992 8993 ; 8994 return 0; 8995} 8996_ACEOF 8997if ac_fn_c_try_link "$LINENO"; then : 8998 eval $cacheid=yes 8999else 9000 eval $cacheid=no 9001fi 9002rm -f core conftest.err conftest.$ac_objext \ 9003 conftest$ac_exeext conftest.$ac_ext 9004fi 9005 9006 9007 CFLAGS="$xorg_testset_save_CFLAGS" 9008 9009 eval supported=\$$cacheid 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9011$as_echo "$supported" >&6; } 9012 if test "$supported" = "yes" ; then 9013 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9014 found="yes" 9015 fi 9016 fi 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032xorg_testset_save_CFLAGS="$CFLAGS" 9033 9034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9042/* end confdefs.h. */ 9043int i; 9044_ACEOF 9045if ac_fn_c_try_compile "$LINENO"; then : 9046 xorg_cv_cc_flag_unknown_warning_option=yes 9047else 9048 xorg_cv_cc_flag_unknown_warning_option=no 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9051fi 9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9055 CFLAGS="$xorg_testset_save_CFLAGS" 9056fi 9057 9058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070int i; 9071_ACEOF 9072if ac_fn_c_try_compile "$LINENO"; then : 9073 xorg_cv_cc_flag_unused_command_line_argument=yes 9074else 9075 xorg_cv_cc_flag_unused_command_line_argument=no 9076fi 9077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083fi 9084 9085found="no" 9086 9087 if test $found = "no" ; then 9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 fi 9091 9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9094 fi 9095 9096 CFLAGS="$CFLAGS -Wsequence-point" 9097 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9099$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9100 cacheid=xorg_cv_cc_flag__Wsequence_point 9101 if eval \${$cacheid+:} false; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106int i; 9107int 9108main () 9109{ 9110 9111 ; 9112 return 0; 9113} 9114_ACEOF 9115if ac_fn_c_try_link "$LINENO"; then : 9116 eval $cacheid=yes 9117else 9118 eval $cacheid=no 9119fi 9120rm -f core conftest.err conftest.$ac_objext \ 9121 conftest$ac_exeext conftest.$ac_ext 9122fi 9123 9124 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126 9127 eval supported=\$$cacheid 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9129$as_echo "$supported" >&6; } 9130 if test "$supported" = "yes" ; then 9131 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9132 found="yes" 9133 fi 9134 fi 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150xorg_testset_save_CFLAGS="$CFLAGS" 9151 9152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160/* end confdefs.h. */ 9161int i; 9162_ACEOF 9163if ac_fn_c_try_compile "$LINENO"; then : 9164 xorg_cv_cc_flag_unknown_warning_option=yes 9165else 9166 xorg_cv_cc_flag_unknown_warning_option=no 9167fi 9168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9169fi 9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9173 CFLAGS="$xorg_testset_save_CFLAGS" 9174fi 9175 9176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9179 fi 9180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189_ACEOF 9190if ac_fn_c_try_compile "$LINENO"; then : 9191 xorg_cv_cc_flag_unused_command_line_argument=yes 9192else 9193 xorg_cv_cc_flag_unused_command_line_argument=no 9194fi 9195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9196fi 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9200 CFLAGS="$xorg_testset_save_CFLAGS" 9201fi 9202 9203found="no" 9204 9205 if test $found = "no" ; then 9206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9208 fi 9209 9210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9212 fi 9213 9214 CFLAGS="$CFLAGS -Wreturn-type" 9215 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9217$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9218 cacheid=xorg_cv_cc_flag__Wreturn_type 9219 if eval \${$cacheid+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221else 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224int i; 9225int 9226main () 9227{ 9228 9229 ; 9230 return 0; 9231} 9232_ACEOF 9233if ac_fn_c_try_link "$LINENO"; then : 9234 eval $cacheid=yes 9235else 9236 eval $cacheid=no 9237fi 9238rm -f core conftest.err conftest.$ac_objext \ 9239 conftest$ac_exeext conftest.$ac_ext 9240fi 9241 9242 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244 9245 eval supported=\$$cacheid 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9247$as_echo "$supported" >&6; } 9248 if test "$supported" = "yes" ; then 9249 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9250 found="yes" 9251 fi 9252 fi 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268xorg_testset_save_CFLAGS="$CFLAGS" 9269 9270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9275 $as_echo_n "(cached) " >&6 9276else 9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279int i; 9280_ACEOF 9281if ac_fn_c_try_compile "$LINENO"; then : 9282 xorg_cv_cc_flag_unknown_warning_option=yes 9283else 9284 xorg_cv_cc_flag_unknown_warning_option=no 9285fi 9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9287fi 9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9291 CFLAGS="$xorg_testset_save_CFLAGS" 9292fi 9293 9294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 fi 9298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9305/* end confdefs.h. */ 9306int i; 9307_ACEOF 9308if ac_fn_c_try_compile "$LINENO"; then : 9309 xorg_cv_cc_flag_unused_command_line_argument=yes 9310else 9311 xorg_cv_cc_flag_unused_command_line_argument=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9314fi 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9318 CFLAGS="$xorg_testset_save_CFLAGS" 9319fi 9320 9321found="no" 9322 9323 if test $found = "no" ; then 9324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9326 fi 9327 9328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9330 fi 9331 9332 CFLAGS="$CFLAGS -Wtrigraphs" 9333 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9335$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9336 cacheid=xorg_cv_cc_flag__Wtrigraphs 9337 if eval \${$cacheid+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342int i; 9343int 9344main () 9345{ 9346 9347 ; 9348 return 0; 9349} 9350_ACEOF 9351if ac_fn_c_try_link "$LINENO"; then : 9352 eval $cacheid=yes 9353else 9354 eval $cacheid=no 9355fi 9356rm -f core conftest.err conftest.$ac_objext \ 9357 conftest$ac_exeext conftest.$ac_ext 9358fi 9359 9360 9361 CFLAGS="$xorg_testset_save_CFLAGS" 9362 9363 eval supported=\$$cacheid 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9365$as_echo "$supported" >&6; } 9366 if test "$supported" = "yes" ; then 9367 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9368 found="yes" 9369 fi 9370 fi 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386xorg_testset_save_CFLAGS="$CFLAGS" 9387 9388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9393 $as_echo_n "(cached) " >&6 9394else 9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396/* end confdefs.h. */ 9397int i; 9398_ACEOF 9399if ac_fn_c_try_compile "$LINENO"; then : 9400 xorg_cv_cc_flag_unknown_warning_option=yes 9401else 9402 xorg_cv_cc_flag_unknown_warning_option=no 9403fi 9404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9405fi 9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9409 CFLAGS="$xorg_testset_save_CFLAGS" 9410fi 9411 9412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9415 fi 9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9420 $as_echo_n "(cached) " >&6 9421else 9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9423/* end confdefs.h. */ 9424int i; 9425_ACEOF 9426if ac_fn_c_try_compile "$LINENO"; then : 9427 xorg_cv_cc_flag_unused_command_line_argument=yes 9428else 9429 xorg_cv_cc_flag_unused_command_line_argument=no 9430fi 9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9432fi 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9436 CFLAGS="$xorg_testset_save_CFLAGS" 9437fi 9438 9439found="no" 9440 9441 if test $found = "no" ; then 9442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9444 fi 9445 9446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9448 fi 9449 9450 CFLAGS="$CFLAGS -Warray-bounds" 9451 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9453$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9454 cacheid=xorg_cv_cc_flag__Warray_bounds 9455 if eval \${$cacheid+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461int 9462main () 9463{ 9464 9465 ; 9466 return 0; 9467} 9468_ACEOF 9469if ac_fn_c_try_link "$LINENO"; then : 9470 eval $cacheid=yes 9471else 9472 eval $cacheid=no 9473fi 9474rm -f core conftest.err conftest.$ac_objext \ 9475 conftest$ac_exeext conftest.$ac_ext 9476fi 9477 9478 9479 CFLAGS="$xorg_testset_save_CFLAGS" 9480 9481 eval supported=\$$cacheid 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9483$as_echo "$supported" >&6; } 9484 if test "$supported" = "yes" ; then 9485 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9486 found="yes" 9487 fi 9488 fi 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504xorg_testset_save_CFLAGS="$CFLAGS" 9505 9506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9511 $as_echo_n "(cached) " >&6 9512else 9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9514/* end confdefs.h. */ 9515int i; 9516_ACEOF 9517if ac_fn_c_try_compile "$LINENO"; then : 9518 xorg_cv_cc_flag_unknown_warning_option=yes 9519else 9520 xorg_cv_cc_flag_unknown_warning_option=no 9521fi 9522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9527 CFLAGS="$xorg_testset_save_CFLAGS" 9528fi 9529 9530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 fi 9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9538 $as_echo_n "(cached) " >&6 9539else 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542int i; 9543_ACEOF 9544if ac_fn_c_try_compile "$LINENO"; then : 9545 xorg_cv_cc_flag_unused_command_line_argument=yes 9546else 9547 xorg_cv_cc_flag_unused_command_line_argument=no 9548fi 9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9550fi 9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555fi 9556 9557found="no" 9558 9559 if test $found = "no" ; then 9560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9562 fi 9563 9564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9566 fi 9567 9568 CFLAGS="$CFLAGS -Wwrite-strings" 9569 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9571$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9572 cacheid=xorg_cv_cc_flag__Wwrite_strings 9573 if eval \${$cacheid+:} false; then : 9574 $as_echo_n "(cached) " >&6 9575else 9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579int 9580main () 9581{ 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587if ac_fn_c_try_link "$LINENO"; then : 9588 eval $cacheid=yes 9589else 9590 eval $cacheid=no 9591fi 9592rm -f core conftest.err conftest.$ac_objext \ 9593 conftest$ac_exeext conftest.$ac_ext 9594fi 9595 9596 9597 CFLAGS="$xorg_testset_save_CFLAGS" 9598 9599 eval supported=\$$cacheid 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9601$as_echo "$supported" >&6; } 9602 if test "$supported" = "yes" ; then 9603 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9604 found="yes" 9605 fi 9606 fi 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622xorg_testset_save_CFLAGS="$CFLAGS" 9623 9624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9629 $as_echo_n "(cached) " >&6 9630else 9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633int i; 9634_ACEOF 9635if ac_fn_c_try_compile "$LINENO"; then : 9636 xorg_cv_cc_flag_unknown_warning_option=yes 9637else 9638 xorg_cv_cc_flag_unknown_warning_option=no 9639fi 9640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9641fi 9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9645 CFLAGS="$xorg_testset_save_CFLAGS" 9646fi 9647 9648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 fi 9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9656 $as_echo_n "(cached) " >&6 9657else 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9659/* end confdefs.h. */ 9660int i; 9661_ACEOF 9662if ac_fn_c_try_compile "$LINENO"; then : 9663 xorg_cv_cc_flag_unused_command_line_argument=yes 9664else 9665 xorg_cv_cc_flag_unused_command_line_argument=no 9666fi 9667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9668fi 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673fi 9674 9675found="no" 9676 9677 if test $found = "no" ; then 9678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9680 fi 9681 9682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9684 fi 9685 9686 CFLAGS="$CFLAGS -Waddress" 9687 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9689$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9690 cacheid=xorg_cv_cc_flag__Waddress 9691 if eval \${$cacheid+:} false; then : 9692 $as_echo_n "(cached) " >&6 9693else 9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9695/* end confdefs.h. */ 9696int i; 9697int 9698main () 9699{ 9700 9701 ; 9702 return 0; 9703} 9704_ACEOF 9705if ac_fn_c_try_link "$LINENO"; then : 9706 eval $cacheid=yes 9707else 9708 eval $cacheid=no 9709fi 9710rm -f core conftest.err conftest.$ac_objext \ 9711 conftest$ac_exeext conftest.$ac_ext 9712fi 9713 9714 9715 CFLAGS="$xorg_testset_save_CFLAGS" 9716 9717 eval supported=\$$cacheid 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9719$as_echo "$supported" >&6; } 9720 if test "$supported" = "yes" ; then 9721 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9722 found="yes" 9723 fi 9724 fi 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740xorg_testset_save_CFLAGS="$CFLAGS" 9741 9742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9747 $as_echo_n "(cached) " >&6 9748else 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751int i; 9752_ACEOF 9753if ac_fn_c_try_compile "$LINENO"; then : 9754 xorg_cv_cc_flag_unknown_warning_option=yes 9755else 9756 xorg_cv_cc_flag_unknown_warning_option=no 9757fi 9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9759fi 9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9763 CFLAGS="$xorg_testset_save_CFLAGS" 9764fi 9765 9766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 fi 9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9777/* end confdefs.h. */ 9778int i; 9779_ACEOF 9780if ac_fn_c_try_compile "$LINENO"; then : 9781 xorg_cv_cc_flag_unused_command_line_argument=yes 9782else 9783 xorg_cv_cc_flag_unused_command_line_argument=no 9784fi 9785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9786fi 9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791fi 9792 9793found="no" 9794 9795 if test $found = "no" ; then 9796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9798 fi 9799 9800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9802 fi 9803 9804 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9805 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9807$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9808 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9809 if eval \${$cacheid+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9813/* end confdefs.h. */ 9814int i; 9815int 9816main () 9817{ 9818 9819 ; 9820 return 0; 9821} 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 eval $cacheid=yes 9825else 9826 eval $cacheid=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext \ 9829 conftest$ac_exeext conftest.$ac_ext 9830fi 9831 9832 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834 9835 eval supported=\$$cacheid 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9837$as_echo "$supported" >&6; } 9838 if test "$supported" = "yes" ; then 9839 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9840 found="yes" 9841 fi 9842 fi 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858xorg_testset_save_CFLAGS="$CFLAGS" 9859 9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9868/* end confdefs.h. */ 9869int i; 9870_ACEOF 9871if ac_fn_c_try_compile "$LINENO"; then : 9872 xorg_cv_cc_flag_unknown_warning_option=yes 9873else 9874 xorg_cv_cc_flag_unknown_warning_option=no 9875fi 9876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9877fi 9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9881 CFLAGS="$xorg_testset_save_CFLAGS" 9882fi 9883 9884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 fi 9888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896int i; 9897_ACEOF 9898if ac_fn_c_try_compile "$LINENO"; then : 9899 xorg_cv_cc_flag_unused_command_line_argument=yes 9900else 9901 xorg_cv_cc_flag_unused_command_line_argument=no 9902fi 9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9904fi 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9908 CFLAGS="$xorg_testset_save_CFLAGS" 9909fi 9910 9911found="no" 9912 9913 if test $found = "no" ; then 9914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9916 fi 9917 9918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 fi 9921 9922 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9923 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9925$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9926 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9927 if eval \${$cacheid+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929else 9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933int 9934main () 9935{ 9936 9937 ; 9938 return 0; 9939} 9940_ACEOF 9941if ac_fn_c_try_link "$LINENO"; then : 9942 eval $cacheid=yes 9943else 9944 eval $cacheid=no 9945fi 9946rm -f core conftest.err conftest.$ac_objext \ 9947 conftest$ac_exeext conftest.$ac_ext 9948fi 9949 9950 9951 CFLAGS="$xorg_testset_save_CFLAGS" 9952 9953 eval supported=\$$cacheid 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9955$as_echo "$supported" >&6; } 9956 if test "$supported" = "yes" ; then 9957 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9958 found="yes" 9959 fi 9960 fi 9961 9962 9963fi 9964 9965 9966 9967 9968 9969 9970 9971 CWARNFLAGS="$BASE_CFLAGS" 9972 if test "x$GCC" = xyes ; then 9973 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9974 fi 9975 9976 9977 9978 9979 9980 9981 9982 9983# Check whether --enable-strict-compilation was given. 9984if test "${enable_strict_compilation+set}" = set; then : 9985 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9986else 9987 STRICT_COMPILE=no 9988fi 9989 9990 9991 9992 9993 9994 9995STRICT_CFLAGS="" 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009xorg_testset_save_CFLAGS="$CFLAGS" 10010 10011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10016 $as_echo_n "(cached) " >&6 10017else 10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021_ACEOF 10022if ac_fn_c_try_compile "$LINENO"; then : 10023 xorg_cv_cc_flag_unknown_warning_option=yes 10024else 10025 xorg_cv_cc_flag_unknown_warning_option=no 10026fi 10027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10028fi 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10032 CFLAGS="$xorg_testset_save_CFLAGS" 10033fi 10034 10035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 fi 10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047int i; 10048_ACEOF 10049if ac_fn_c_try_compile "$LINENO"; then : 10050 xorg_cv_cc_flag_unused_command_line_argument=yes 10051else 10052 xorg_cv_cc_flag_unused_command_line_argument=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10055fi 10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060fi 10061 10062found="no" 10063 10064 if test $found = "no" ; then 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 fi 10068 10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 fi 10072 10073 CFLAGS="$CFLAGS -pedantic" 10074 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10076$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10077 cacheid=xorg_cv_cc_flag__pedantic 10078 if eval \${$cacheid+:} false; then : 10079 $as_echo_n "(cached) " >&6 10080else 10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10082/* end confdefs.h. */ 10083int i; 10084int 10085main () 10086{ 10087 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092if ac_fn_c_try_link "$LINENO"; then : 10093 eval $cacheid=yes 10094else 10095 eval $cacheid=no 10096fi 10097rm -f core conftest.err conftest.$ac_objext \ 10098 conftest$ac_exeext conftest.$ac_ext 10099fi 10100 10101 10102 CFLAGS="$xorg_testset_save_CFLAGS" 10103 10104 eval supported=\$$cacheid 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10106$as_echo "$supported" >&6; } 10107 if test "$supported" = "yes" ; then 10108 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10109 found="yes" 10110 fi 10111 fi 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127xorg_testset_save_CFLAGS="$CFLAGS" 10128 10129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10137/* end confdefs.h. */ 10138int i; 10139_ACEOF 10140if ac_fn_c_try_compile "$LINENO"; then : 10141 xorg_cv_cc_flag_unknown_warning_option=yes 10142else 10143 xorg_cv_cc_flag_unknown_warning_option=no 10144fi 10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10146fi 10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10150 CFLAGS="$xorg_testset_save_CFLAGS" 10151fi 10152 10153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 fi 10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10164/* end confdefs.h. */ 10165int i; 10166_ACEOF 10167if ac_fn_c_try_compile "$LINENO"; then : 10168 xorg_cv_cc_flag_unused_command_line_argument=yes 10169else 10170 xorg_cv_cc_flag_unused_command_line_argument=no 10171fi 10172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10173fi 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178fi 10179 10180found="no" 10181 10182 if test $found = "no" ; then 10183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10185 fi 10186 10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10189 fi 10190 10191 CFLAGS="$CFLAGS -Werror" 10192 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10194$as_echo_n "checking if $CC supports -Werror... " >&6; } 10195 cacheid=xorg_cv_cc_flag__Werror 10196 if eval \${$cacheid+:} false; then : 10197 $as_echo_n "(cached) " >&6 10198else 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202int 10203main () 10204{ 10205 10206 ; 10207 return 0; 10208} 10209_ACEOF 10210if ac_fn_c_try_link "$LINENO"; then : 10211 eval $cacheid=yes 10212else 10213 eval $cacheid=no 10214fi 10215rm -f core conftest.err conftest.$ac_objext \ 10216 conftest$ac_exeext conftest.$ac_ext 10217fi 10218 10219 10220 CFLAGS="$xorg_testset_save_CFLAGS" 10221 10222 eval supported=\$$cacheid 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10224$as_echo "$supported" >&6; } 10225 if test "$supported" = "yes" ; then 10226 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10227 found="yes" 10228 fi 10229 fi 10230 10231 if test $found = "no" ; then 10232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10234 fi 10235 10236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10238 fi 10239 10240 CFLAGS="$CFLAGS -errwarn" 10241 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10243$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10244 cacheid=xorg_cv_cc_flag__errwarn 10245 if eval \${$cacheid+:} false; then : 10246 $as_echo_n "(cached) " >&6 10247else 10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10249/* end confdefs.h. */ 10250int i; 10251int 10252main () 10253{ 10254 10255 ; 10256 return 0; 10257} 10258_ACEOF 10259if ac_fn_c_try_link "$LINENO"; then : 10260 eval $cacheid=yes 10261else 10262 eval $cacheid=no 10263fi 10264rm -f core conftest.err conftest.$ac_objext \ 10265 conftest$ac_exeext conftest.$ac_ext 10266fi 10267 10268 10269 CFLAGS="$xorg_testset_save_CFLAGS" 10270 10271 eval supported=\$$cacheid 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10273$as_echo "$supported" >&6; } 10274 if test "$supported" = "yes" ; then 10275 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10276 found="yes" 10277 fi 10278 fi 10279 10280 10281 10282# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10283# activate it with -Werror, so we add it here explicitly. 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297xorg_testset_save_CFLAGS="$CFLAGS" 10298 10299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308int i; 10309_ACEOF 10310if ac_fn_c_try_compile "$LINENO"; then : 10311 xorg_cv_cc_flag_unknown_warning_option=yes 10312else 10313 xorg_cv_cc_flag_unknown_warning_option=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321fi 10322 10323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10326 fi 10327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10331 $as_echo_n "(cached) " >&6 10332else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336_ACEOF 10337if ac_fn_c_try_compile "$LINENO"; then : 10338 xorg_cv_cc_flag_unused_command_line_argument=yes 10339else 10340 xorg_cv_cc_flag_unused_command_line_argument=no 10341fi 10342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10347 CFLAGS="$xorg_testset_save_CFLAGS" 10348fi 10349 10350found="no" 10351 10352 if test $found = "no" ; then 10353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10355 fi 10356 10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10359 fi 10360 10361 CFLAGS="$CFLAGS -Werror=attributes" 10362 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10364$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10365 cacheid=xorg_cv_cc_flag__Werror_attributes 10366 if eval \${$cacheid+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371int i; 10372int 10373main () 10374{ 10375 10376 ; 10377 return 0; 10378} 10379_ACEOF 10380if ac_fn_c_try_link "$LINENO"; then : 10381 eval $cacheid=yes 10382else 10383 eval $cacheid=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext \ 10386 conftest$ac_exeext conftest.$ac_ext 10387fi 10388 10389 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391 10392 eval supported=\$$cacheid 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10394$as_echo "$supported" >&6; } 10395 if test "$supported" = "yes" ; then 10396 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10397 found="yes" 10398 fi 10399 fi 10400 10401 10402 10403if test "x$STRICT_COMPILE" = "xyes"; then 10404 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10405 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10406fi 10407 10408 10409 10410 10411 10412 10413cat >>confdefs.h <<_ACEOF 10414#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10415_ACEOF 10416 10417 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10418 if test "x$PVM" = "x"; then 10419 PVM="0" 10420 fi 10421 10422cat >>confdefs.h <<_ACEOF 10423#define PACKAGE_VERSION_MINOR $PVM 10424_ACEOF 10425 10426 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10427 if test "x$PVP" = "x"; then 10428 PVP="0" 10429 fi 10430 10431cat >>confdefs.h <<_ACEOF 10432#define PACKAGE_VERSION_PATCHLEVEL $PVP 10433_ACEOF 10434 10435 10436 10437CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10438mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10439|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10440echo 'git directory not found: installing possibly empty changelog.' >&2)" 10441 10442 10443 10444 10445macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10446INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10447mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10448|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10449echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10450 10451 10452 10453 10454 10455 10456if test x$APP_MAN_SUFFIX = x ; then 10457 APP_MAN_SUFFIX=1 10458fi 10459if test x$APP_MAN_DIR = x ; then 10460 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10461fi 10462 10463if test x$LIB_MAN_SUFFIX = x ; then 10464 LIB_MAN_SUFFIX=3 10465fi 10466if test x$LIB_MAN_DIR = x ; then 10467 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10468fi 10469 10470if test x$FILE_MAN_SUFFIX = x ; then 10471 case $host_os in 10472 solaris*) FILE_MAN_SUFFIX=4 ;; 10473 *) FILE_MAN_SUFFIX=5 ;; 10474 esac 10475fi 10476if test x$FILE_MAN_DIR = x ; then 10477 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10478fi 10479 10480if test x$MISC_MAN_SUFFIX = x ; then 10481 case $host_os in 10482 solaris*) MISC_MAN_SUFFIX=5 ;; 10483 *) MISC_MAN_SUFFIX=7 ;; 10484 esac 10485fi 10486if test x$MISC_MAN_DIR = x ; then 10487 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10488fi 10489 10490if test x$DRIVER_MAN_SUFFIX = x ; then 10491 case $host_os in 10492 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10493 *) DRIVER_MAN_SUFFIX=4 ;; 10494 esac 10495fi 10496if test x$DRIVER_MAN_DIR = x ; then 10497 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10498fi 10499 10500if test x$ADMIN_MAN_SUFFIX = x ; then 10501 case $host_os in 10502 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10503 *) ADMIN_MAN_SUFFIX=8 ;; 10504 esac 10505fi 10506if test x$ADMIN_MAN_DIR = x ; then 10507 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10508fi 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524XORG_MAN_PAGE="X Version 11" 10525 10526MAN_SUBSTS="\ 10527 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10528 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10529 -e 's|__xservername__|Xorg|g' \ 10530 -e 's|__xconfigfile__|xorg.conf|g' \ 10531 -e 's|__projectroot__|\$(prefix)|g' \ 10532 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10533 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10534 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10535 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10536 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10537 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10538 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10539 10540 10541 10542# Check whether --enable-silent-rules was given. 10543if test "${enable_silent_rules+set}" = set; then : 10544 enableval=$enable_silent_rules; 10545fi 10546 10547case $enable_silent_rules in # ((( 10548 yes) AM_DEFAULT_VERBOSITY=0;; 10549 no) AM_DEFAULT_VERBOSITY=1;; 10550 *) AM_DEFAULT_VERBOSITY=0;; 10551esac 10552am_make=${MAKE-make} 10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10554$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10555if ${am_cv_make_support_nested_variables+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 if $as_echo 'TRUE=$(BAR$(V)) 10559BAR0=false 10560BAR1=true 10561V=1 10562am__doit: 10563 @$(TRUE) 10564.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10565 am_cv_make_support_nested_variables=yes 10566else 10567 am_cv_make_support_nested_variables=no 10568fi 10569fi 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10571$as_echo "$am_cv_make_support_nested_variables" >&6; } 10572if test $am_cv_make_support_nested_variables = yes; then 10573 AM_V='$(V)' 10574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10575else 10576 AM_V=$AM_DEFAULT_VERBOSITY 10577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10578fi 10579AM_BACKSLASH='\' 10580 10581 10582 10583# Initialize libtool 10584# Check whether --enable-static was given. 10585if test "${enable_static+set}" = set; then : 10586 enableval=$enable_static; p=${PACKAGE-default} 10587 case $enableval in 10588 yes) enable_static=yes ;; 10589 no) enable_static=no ;; 10590 *) 10591 enable_static=no 10592 # Look at the argument we got. We use all the common list separators. 10593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10594 for pkg in $enableval; do 10595 IFS="$lt_save_ifs" 10596 if test "X$pkg" = "X$p"; then 10597 enable_static=yes 10598 fi 10599 done 10600 IFS="$lt_save_ifs" 10601 ;; 10602 esac 10603else 10604 enable_static=no 10605fi 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615case `pwd` in 10616 *\ * | *\ *) 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10618$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10619esac 10620 10621 10622 10623macro_version='2.4.2' 10624macro_revision='1.3337' 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638ltmain="$ac_aux_dir/ltmain.sh" 10639 10640# Backslashify metacharacters that are still active within 10641# double-quoted strings. 10642sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10643 10644# Same as above, but do not quote variable references. 10645double_quote_subst='s/\(["`\\]\)/\\\1/g' 10646 10647# Sed substitution to delay expansion of an escaped shell variable in a 10648# double_quote_subst'ed string. 10649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10650 10651# Sed substitution to delay expansion of an escaped single quote. 10652delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10653 10654# Sed substitution to avoid accidental globbing in evaled expressions 10655no_glob_subst='s/\*/\\\*/g' 10656 10657ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10658ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10659ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10660 10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10662$as_echo_n "checking how to print strings... " >&6; } 10663# Test print first, because it will be a builtin if present. 10664if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10665 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10666 ECHO='print -r --' 10667elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10668 ECHO='printf %s\n' 10669else 10670 # Use this function as a fallback that always works. 10671 func_fallback_echo () 10672 { 10673 eval 'cat <<_LTECHO_EOF 10674$1 10675_LTECHO_EOF' 10676 } 10677 ECHO='func_fallback_echo' 10678fi 10679 10680# func_echo_all arg... 10681# Invoke $ECHO with all args, space-separated. 10682func_echo_all () 10683{ 10684 $ECHO "" 10685} 10686 10687case "$ECHO" in 10688 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10689$as_echo "printf" >&6; } ;; 10690 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10691$as_echo "print -r" >&6; } ;; 10692 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10693$as_echo "cat" >&6; } ;; 10694esac 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10710$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10711if ${ac_cv_path_SED+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10715 for ac_i in 1 2 3 4 5 6 7; do 10716 ac_script="$ac_script$as_nl$ac_script" 10717 done 10718 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10719 { ac_script=; unset ac_script;} 10720 if test -z "$SED"; then 10721 ac_path_SED_found=false 10722 # Loop through the user's path and test for each of PROGNAME-LIST 10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10724for as_dir in $PATH 10725do 10726 IFS=$as_save_IFS 10727 test -z "$as_dir" && as_dir=. 10728 for ac_prog in sed gsed; do 10729 for ac_exec_ext in '' $ac_executable_extensions; do 10730 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10731 as_fn_executable_p "$ac_path_SED" || continue 10732# Check for GNU ac_path_SED and select it if it is found. 10733 # Check for GNU $ac_path_SED 10734case `"$ac_path_SED" --version 2>&1` in 10735*GNU*) 10736 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10737*) 10738 ac_count=0 10739 $as_echo_n 0123456789 >"conftest.in" 10740 while : 10741 do 10742 cat "conftest.in" "conftest.in" >"conftest.tmp" 10743 mv "conftest.tmp" "conftest.in" 10744 cp "conftest.in" "conftest.nl" 10745 $as_echo '' >> "conftest.nl" 10746 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10748 as_fn_arith $ac_count + 1 && ac_count=$as_val 10749 if test $ac_count -gt ${ac_path_SED_max-0}; then 10750 # Best one so far, save it but keep looking for a better one 10751 ac_cv_path_SED="$ac_path_SED" 10752 ac_path_SED_max=$ac_count 10753 fi 10754 # 10*(2^10) chars as input seems more than enough 10755 test $ac_count -gt 10 && break 10756 done 10757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10758esac 10759 10760 $ac_path_SED_found && break 3 10761 done 10762 done 10763 done 10764IFS=$as_save_IFS 10765 if test -z "$ac_cv_path_SED"; then 10766 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10767 fi 10768else 10769 ac_cv_path_SED=$SED 10770fi 10771 10772fi 10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10774$as_echo "$ac_cv_path_SED" >&6; } 10775 SED="$ac_cv_path_SED" 10776 rm -f conftest.sed 10777 10778test -z "$SED" && SED=sed 10779Xsed="$SED -e 1s/^X//" 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10792$as_echo_n "checking for fgrep... " >&6; } 10793if ${ac_cv_path_FGREP+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795else 10796 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10797 then ac_cv_path_FGREP="$GREP -F" 10798 else 10799 if test -z "$FGREP"; then 10800 ac_path_FGREP_found=false 10801 # Loop through the user's path and test for each of PROGNAME-LIST 10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10804do 10805 IFS=$as_save_IFS 10806 test -z "$as_dir" && as_dir=. 10807 for ac_prog in fgrep; do 10808 for ac_exec_ext in '' $ac_executable_extensions; do 10809 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10810 as_fn_executable_p "$ac_path_FGREP" || continue 10811# Check for GNU ac_path_FGREP and select it if it is found. 10812 # Check for GNU $ac_path_FGREP 10813case `"$ac_path_FGREP" --version 2>&1` in 10814*GNU*) 10815 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10816*) 10817 ac_count=0 10818 $as_echo_n 0123456789 >"conftest.in" 10819 while : 10820 do 10821 cat "conftest.in" "conftest.in" >"conftest.tmp" 10822 mv "conftest.tmp" "conftest.in" 10823 cp "conftest.in" "conftest.nl" 10824 $as_echo 'FGREP' >> "conftest.nl" 10825 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10827 as_fn_arith $ac_count + 1 && ac_count=$as_val 10828 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10829 # Best one so far, save it but keep looking for a better one 10830 ac_cv_path_FGREP="$ac_path_FGREP" 10831 ac_path_FGREP_max=$ac_count 10832 fi 10833 # 10*(2^10) chars as input seems more than enough 10834 test $ac_count -gt 10 && break 10835 done 10836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10837esac 10838 10839 $ac_path_FGREP_found && break 3 10840 done 10841 done 10842 done 10843IFS=$as_save_IFS 10844 if test -z "$ac_cv_path_FGREP"; then 10845 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10846 fi 10847else 10848 ac_cv_path_FGREP=$FGREP 10849fi 10850 10851 fi 10852fi 10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10854$as_echo "$ac_cv_path_FGREP" >&6; } 10855 FGREP="$ac_cv_path_FGREP" 10856 10857 10858test -z "$GREP" && GREP=grep 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878# Check whether --with-gnu-ld was given. 10879if test "${with_gnu_ld+set}" = set; then : 10880 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10881else 10882 with_gnu_ld=no 10883fi 10884 10885ac_prog=ld 10886if test "$GCC" = yes; then 10887 # Check if gcc -print-prog-name=ld gives a path. 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10889$as_echo_n "checking for ld used by $CC... " >&6; } 10890 case $host in 10891 *-*-mingw*) 10892 # gcc leaves a trailing carriage return which upsets mingw 10893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10894 *) 10895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10896 esac 10897 case $ac_prog in 10898 # Accept absolute paths. 10899 [\\/]* | ?:[\\/]*) 10900 re_direlt='/[^/][^/]*/\.\./' 10901 # Canonicalize the pathname of ld 10902 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10903 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10904 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10905 done 10906 test -z "$LD" && LD="$ac_prog" 10907 ;; 10908 "") 10909 # If it fails, then pretend we aren't using GCC. 10910 ac_prog=ld 10911 ;; 10912 *) 10913 # If it is relative, then search for the first ld in PATH. 10914 with_gnu_ld=unknown 10915 ;; 10916 esac 10917elif test "$with_gnu_ld" = yes; then 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10919$as_echo_n "checking for GNU ld... " >&6; } 10920else 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10922$as_echo_n "checking for non-GNU ld... " >&6; } 10923fi 10924if ${lt_cv_path_LD+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 if test -z "$LD"; then 10928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10929 for ac_dir in $PATH; do 10930 IFS="$lt_save_ifs" 10931 test -z "$ac_dir" && ac_dir=. 10932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10933 lt_cv_path_LD="$ac_dir/$ac_prog" 10934 # Check to see if the program is GNU ld. I'd rather use --version, 10935 # but apparently some variants of GNU ld only accept -v. 10936 # Break only if it was the GNU/non-GNU ld that we prefer. 10937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10938 *GNU* | *'with BFD'*) 10939 test "$with_gnu_ld" != no && break 10940 ;; 10941 *) 10942 test "$with_gnu_ld" != yes && break 10943 ;; 10944 esac 10945 fi 10946 done 10947 IFS="$lt_save_ifs" 10948else 10949 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10950fi 10951fi 10952 10953LD="$lt_cv_path_LD" 10954if test -n "$LD"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10956$as_echo "$LD" >&6; } 10957else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10959$as_echo "no" >&6; } 10960fi 10961test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10963$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10964if ${lt_cv_prog_gnu_ld+:} false; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10968case `$LD -v 2>&1 </dev/null` in 10969*GNU* | *'with BFD'*) 10970 lt_cv_prog_gnu_ld=yes 10971 ;; 10972*) 10973 lt_cv_prog_gnu_ld=no 10974 ;; 10975esac 10976fi 10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 10978$as_echo "$lt_cv_prog_gnu_ld" >&6; } 10979with_gnu_ld=$lt_cv_prog_gnu_ld 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10990$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10991if ${lt_cv_path_NM+:} false; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 if test -n "$NM"; then 10995 # Let the user override the test. 10996 lt_cv_path_NM="$NM" 10997else 10998 lt_nm_to_check="${ac_tool_prefix}nm" 10999 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11000 lt_nm_to_check="$lt_nm_to_check nm" 11001 fi 11002 for lt_tmp_nm in $lt_nm_to_check; do 11003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11005 IFS="$lt_save_ifs" 11006 test -z "$ac_dir" && ac_dir=. 11007 tmp_nm="$ac_dir/$lt_tmp_nm" 11008 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11009 # Check to see if the nm accepts a BSD-compat flag. 11010 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11011 # nm: unknown option "B" ignored 11012 # Tru64's nm complains that /dev/null is an invalid object file 11013 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11014 */dev/null* | *'Invalid file or object type'*) 11015 lt_cv_path_NM="$tmp_nm -B" 11016 break 11017 ;; 11018 *) 11019 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11020 */dev/null*) 11021 lt_cv_path_NM="$tmp_nm -p" 11022 break 11023 ;; 11024 *) 11025 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11026 continue # so that we can try to find one that supports BSD flags 11027 ;; 11028 esac 11029 ;; 11030 esac 11031 fi 11032 done 11033 IFS="$lt_save_ifs" 11034 done 11035 : ${lt_cv_path_NM=no} 11036fi 11037fi 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11039$as_echo "$lt_cv_path_NM" >&6; } 11040if test "$lt_cv_path_NM" != "no"; then 11041 NM="$lt_cv_path_NM" 11042else 11043 # Didn't find any BSD compatible name lister, look for dumpbin. 11044 if test -n "$DUMPBIN"; then : 11045 # Let the user override the test. 11046 else 11047 if test -n "$ac_tool_prefix"; then 11048 for ac_prog in dumpbin "link -dump" 11049 do 11050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11051set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11053$as_echo_n "checking for $ac_word... " >&6; } 11054if ${ac_cv_prog_DUMPBIN+:} false; then : 11055 $as_echo_n "(cached) " >&6 11056else 11057 if test -n "$DUMPBIN"; then 11058 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11059else 11060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11061for as_dir in $PATH 11062do 11063 IFS=$as_save_IFS 11064 test -z "$as_dir" && as_dir=. 11065 for ac_exec_ext in '' $ac_executable_extensions; do 11066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11067 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11069 break 2 11070 fi 11071done 11072 done 11073IFS=$as_save_IFS 11074 11075fi 11076fi 11077DUMPBIN=$ac_cv_prog_DUMPBIN 11078if test -n "$DUMPBIN"; then 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11080$as_echo "$DUMPBIN" >&6; } 11081else 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11083$as_echo "no" >&6; } 11084fi 11085 11086 11087 test -n "$DUMPBIN" && break 11088 done 11089fi 11090if test -z "$DUMPBIN"; then 11091 ac_ct_DUMPBIN=$DUMPBIN 11092 for ac_prog in dumpbin "link -dump" 11093do 11094 # Extract the first word of "$ac_prog", so it can be a program name with args. 11095set dummy $ac_prog; ac_word=$2 11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11097$as_echo_n "checking for $ac_word... " >&6; } 11098if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11099 $as_echo_n "(cached) " >&6 11100else 11101 if test -n "$ac_ct_DUMPBIN"; then 11102 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11103else 11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11105for as_dir in $PATH 11106do 11107 IFS=$as_save_IFS 11108 test -z "$as_dir" && as_dir=. 11109 for ac_exec_ext in '' $ac_executable_extensions; do 11110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11111 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11113 break 2 11114 fi 11115done 11116 done 11117IFS=$as_save_IFS 11118 11119fi 11120fi 11121ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11122if test -n "$ac_ct_DUMPBIN"; then 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11124$as_echo "$ac_ct_DUMPBIN" >&6; } 11125else 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11127$as_echo "no" >&6; } 11128fi 11129 11130 11131 test -n "$ac_ct_DUMPBIN" && break 11132done 11133 11134 if test "x$ac_ct_DUMPBIN" = x; then 11135 DUMPBIN=":" 11136 else 11137 case $cross_compiling:$ac_tool_warned in 11138yes:) 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11141ac_tool_warned=yes ;; 11142esac 11143 DUMPBIN=$ac_ct_DUMPBIN 11144 fi 11145fi 11146 11147 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11148 *COFF*) 11149 DUMPBIN="$DUMPBIN -symbols" 11150 ;; 11151 *) 11152 DUMPBIN=: 11153 ;; 11154 esac 11155 fi 11156 11157 if test "$DUMPBIN" != ":"; then 11158 NM="$DUMPBIN" 11159 fi 11160fi 11161test -z "$NM" && NM=nm 11162 11163 11164 11165 11166 11167 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11169$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11170if ${lt_cv_nm_interface+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 lt_cv_nm_interface="BSD nm" 11174 echo "int some_variable = 0;" > conftest.$ac_ext 11175 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11176 (eval "$ac_compile" 2>conftest.err) 11177 cat conftest.err >&5 11178 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11179 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11180 cat conftest.err >&5 11181 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11182 cat conftest.out >&5 11183 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11184 lt_cv_nm_interface="MS dumpbin" 11185 fi 11186 rm -f conftest* 11187fi 11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11189$as_echo "$lt_cv_nm_interface" >&6; } 11190 11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11192$as_echo_n "checking whether ln -s works... " >&6; } 11193LN_S=$as_ln_s 11194if test "$LN_S" = "ln -s"; then 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11196$as_echo "yes" >&6; } 11197else 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11199$as_echo "no, using $LN_S" >&6; } 11200fi 11201 11202# find the maximum length of command line arguments 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11204$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11205if ${lt_cv_sys_max_cmd_len+:} false; then : 11206 $as_echo_n "(cached) " >&6 11207else 11208 i=0 11209 teststring="ABCD" 11210 11211 case $build_os in 11212 msdosdjgpp*) 11213 # On DJGPP, this test can blow up pretty badly due to problems in libc 11214 # (any single argument exceeding 2000 bytes causes a buffer overrun 11215 # during glob expansion). Even if it were fixed, the result of this 11216 # check would be larger than it should be. 11217 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11218 ;; 11219 11220 gnu*) 11221 # Under GNU Hurd, this test is not required because there is 11222 # no limit to the length of command line arguments. 11223 # Libtool will interpret -1 as no limit whatsoever 11224 lt_cv_sys_max_cmd_len=-1; 11225 ;; 11226 11227 cygwin* | mingw* | cegcc*) 11228 # On Win9x/ME, this test blows up -- it succeeds, but takes 11229 # about 5 minutes as the teststring grows exponentially. 11230 # Worse, since 9x/ME are not pre-emptively multitasking, 11231 # you end up with a "frozen" computer, even though with patience 11232 # the test eventually succeeds (with a max line length of 256k). 11233 # Instead, let's just punt: use the minimum linelength reported by 11234 # all of the supported platforms: 8192 (on NT/2K/XP). 11235 lt_cv_sys_max_cmd_len=8192; 11236 ;; 11237 11238 mint*) 11239 # On MiNT this can take a long time and run out of memory. 11240 lt_cv_sys_max_cmd_len=8192; 11241 ;; 11242 11243 amigaos*) 11244 # On AmigaOS with pdksh, this test takes hours, literally. 11245 # So we just punt and use a minimum line length of 8192. 11246 lt_cv_sys_max_cmd_len=8192; 11247 ;; 11248 11249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11250 # This has been around since 386BSD, at least. Likely further. 11251 if test -x /sbin/sysctl; then 11252 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11253 elif test -x /usr/sbin/sysctl; then 11254 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11255 else 11256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11257 fi 11258 # And add a safety zone 11259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11261 ;; 11262 11263 interix*) 11264 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11265 lt_cv_sys_max_cmd_len=196608 11266 ;; 11267 11268 os2*) 11269 # The test takes a long time on OS/2. 11270 lt_cv_sys_max_cmd_len=8192 11271 ;; 11272 11273 osf*) 11274 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11275 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11276 # nice to cause kernel panics so lets avoid the loop below. 11277 # First set a reasonable default. 11278 lt_cv_sys_max_cmd_len=16384 11279 # 11280 if test -x /sbin/sysconfig; then 11281 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11282 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11283 esac 11284 fi 11285 ;; 11286 sco3.2v5*) 11287 lt_cv_sys_max_cmd_len=102400 11288 ;; 11289 sysv5* | sco5v6* | sysv4.2uw2*) 11290 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11291 if test -n "$kargmax"; then 11292 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11293 else 11294 lt_cv_sys_max_cmd_len=32768 11295 fi 11296 ;; 11297 *) 11298 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11299 if test -n "$lt_cv_sys_max_cmd_len" && \ 11300 test undefined != "$lt_cv_sys_max_cmd_len"; then 11301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11303 else 11304 # Make teststring a little bigger before we do anything with it. 11305 # a 1K string should be a reasonable start. 11306 for i in 1 2 3 4 5 6 7 8 ; do 11307 teststring=$teststring$teststring 11308 done 11309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11310 # If test is not a shell built-in, we'll probably end up computing a 11311 # maximum length that is only half of the actual maximum length, but 11312 # we can't tell. 11313 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11314 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11315 test $i != 17 # 1/2 MB should be enough 11316 do 11317 i=`expr $i + 1` 11318 teststring=$teststring$teststring 11319 done 11320 # Only check the string length outside the loop. 11321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11322 teststring= 11323 # Add a significant safety factor because C++ compilers can tack on 11324 # massive amounts of additional arguments before passing them to the 11325 # linker. It appears as though 1/2 is a usable value. 11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11327 fi 11328 ;; 11329 esac 11330 11331fi 11332 11333if test -n $lt_cv_sys_max_cmd_len ; then 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11335$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11336else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11338$as_echo "none" >&6; } 11339fi 11340max_cmd_len=$lt_cv_sys_max_cmd_len 11341 11342 11343 11344 11345 11346 11347: ${CP="cp -f"} 11348: ${MV="mv -f"} 11349: ${RM="rm -f"} 11350 11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11352$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11353# Try some XSI features 11354xsi_shell=no 11355( _lt_dummy="a/b/c" 11356 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11357 = c,a/b,b/c, \ 11358 && eval 'test $(( 1 + 1 )) -eq 2 \ 11359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11360 && xsi_shell=yes 11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11362$as_echo "$xsi_shell" >&6; } 11363 11364 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11366$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11367lt_shell_append=no 11368( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11369 >/dev/null 2>&1 \ 11370 && lt_shell_append=yes 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11372$as_echo "$lt_shell_append" >&6; } 11373 11374 11375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11376 lt_unset=unset 11377else 11378 lt_unset=false 11379fi 11380 11381 11382 11383 11384 11385# test EBCDIC or ASCII 11386case `echo X|tr X '\101'` in 11387 A) # ASCII based system 11388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11389 lt_SP2NL='tr \040 \012' 11390 lt_NL2SP='tr \015\012 \040\040' 11391 ;; 11392 *) # EBCDIC based system 11393 lt_SP2NL='tr \100 \n' 11394 lt_NL2SP='tr \r\n \100\100' 11395 ;; 11396esac 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11407$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11408if ${lt_cv_to_host_file_cmd+:} false; then : 11409 $as_echo_n "(cached) " >&6 11410else 11411 case $host in 11412 *-*-mingw* ) 11413 case $build in 11414 *-*-mingw* ) # actually msys 11415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11416 ;; 11417 *-*-cygwin* ) 11418 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11419 ;; 11420 * ) # otherwise, assume *nix 11421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11422 ;; 11423 esac 11424 ;; 11425 *-*-cygwin* ) 11426 case $build in 11427 *-*-mingw* ) # actually msys 11428 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11429 ;; 11430 *-*-cygwin* ) 11431 lt_cv_to_host_file_cmd=func_convert_file_noop 11432 ;; 11433 * ) # otherwise, assume *nix 11434 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11435 ;; 11436 esac 11437 ;; 11438 * ) # unhandled hosts (and "normal" native builds) 11439 lt_cv_to_host_file_cmd=func_convert_file_noop 11440 ;; 11441esac 11442 11443fi 11444 11445to_host_file_cmd=$lt_cv_to_host_file_cmd 11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11447$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11448 11449 11450 11451 11452 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11454$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11455if ${lt_cv_to_tool_file_cmd+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 #assume ordinary cross tools, or native build. 11459lt_cv_to_tool_file_cmd=func_convert_file_noop 11460case $host in 11461 *-*-mingw* ) 11462 case $build in 11463 *-*-mingw* ) # actually msys 11464 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11465 ;; 11466 esac 11467 ;; 11468esac 11469 11470fi 11471 11472to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11474$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11475 11476 11477 11478 11479 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11481$as_echo_n "checking for $LD option to reload object files... " >&6; } 11482if ${lt_cv_ld_reload_flag+:} false; then : 11483 $as_echo_n "(cached) " >&6 11484else 11485 lt_cv_ld_reload_flag='-r' 11486fi 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11488$as_echo "$lt_cv_ld_reload_flag" >&6; } 11489reload_flag=$lt_cv_ld_reload_flag 11490case $reload_flag in 11491"" | " "*) ;; 11492*) reload_flag=" $reload_flag" ;; 11493esac 11494reload_cmds='$LD$reload_flag -o $output$reload_objs' 11495case $host_os in 11496 cygwin* | mingw* | pw32* | cegcc*) 11497 if test "$GCC" != yes; then 11498 reload_cmds=false 11499 fi 11500 ;; 11501 darwin*) 11502 if test "$GCC" = yes; then 11503 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11504 else 11505 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11506 fi 11507 ;; 11508esac 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518if test -n "$ac_tool_prefix"; then 11519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11520set dummy ${ac_tool_prefix}objdump; ac_word=$2 11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11522$as_echo_n "checking for $ac_word... " >&6; } 11523if ${ac_cv_prog_OBJDUMP+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525else 11526 if test -n "$OBJDUMP"; then 11527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11528else 11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530for as_dir in $PATH 11531do 11532 IFS=$as_save_IFS 11533 test -z "$as_dir" && as_dir=. 11534 for ac_exec_ext in '' $ac_executable_extensions; do 11535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11538 break 2 11539 fi 11540done 11541 done 11542IFS=$as_save_IFS 11543 11544fi 11545fi 11546OBJDUMP=$ac_cv_prog_OBJDUMP 11547if test -n "$OBJDUMP"; then 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11549$as_echo "$OBJDUMP" >&6; } 11550else 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552$as_echo "no" >&6; } 11553fi 11554 11555 11556fi 11557if test -z "$ac_cv_prog_OBJDUMP"; then 11558 ac_ct_OBJDUMP=$OBJDUMP 11559 # Extract the first word of "objdump", so it can be a program name with args. 11560set dummy objdump; ac_word=$2 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11562$as_echo_n "checking for $ac_word... " >&6; } 11563if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565else 11566 if test -n "$ac_ct_OBJDUMP"; then 11567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11568else 11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11570for as_dir in $PATH 11571do 11572 IFS=$as_save_IFS 11573 test -z "$as_dir" && as_dir=. 11574 for ac_exec_ext in '' $ac_executable_extensions; do 11575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11576 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11578 break 2 11579 fi 11580done 11581 done 11582IFS=$as_save_IFS 11583 11584fi 11585fi 11586ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11587if test -n "$ac_ct_OBJDUMP"; then 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11589$as_echo "$ac_ct_OBJDUMP" >&6; } 11590else 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11592$as_echo "no" >&6; } 11593fi 11594 11595 if test "x$ac_ct_OBJDUMP" = x; then 11596 OBJDUMP="false" 11597 else 11598 case $cross_compiling:$ac_tool_warned in 11599yes:) 11600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11602ac_tool_warned=yes ;; 11603esac 11604 OBJDUMP=$ac_ct_OBJDUMP 11605 fi 11606else 11607 OBJDUMP="$ac_cv_prog_OBJDUMP" 11608fi 11609 11610test -z "$OBJDUMP" && OBJDUMP=objdump 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11621$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11622if ${lt_cv_deplibs_check_method+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 lt_cv_file_magic_cmd='$MAGIC_CMD' 11626lt_cv_file_magic_test_file= 11627lt_cv_deplibs_check_method='unknown' 11628# Need to set the preceding variable on all platforms that support 11629# interlibrary dependencies. 11630# 'none' -- dependencies not supported. 11631# `unknown' -- same as none, but documents that we really don't know. 11632# 'pass_all' -- all dependencies passed with no checks. 11633# 'test_compile' -- check by making test program. 11634# 'file_magic [[regex]]' -- check by looking for files in library path 11635# which responds to the $file_magic_cmd with a given extended regex. 11636# If you have `file' or equivalent on your system and you're not sure 11637# whether `pass_all' will *always* work, you probably want this one. 11638 11639case $host_os in 11640aix[4-9]*) 11641 lt_cv_deplibs_check_method=pass_all 11642 ;; 11643 11644beos*) 11645 lt_cv_deplibs_check_method=pass_all 11646 ;; 11647 11648bsdi[45]*) 11649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11650 lt_cv_file_magic_cmd='/usr/bin/file -L' 11651 lt_cv_file_magic_test_file=/shlib/libc.so 11652 ;; 11653 11654cygwin*) 11655 # func_win32_libid is a shell function defined in ltmain.sh 11656 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11657 lt_cv_file_magic_cmd='func_win32_libid' 11658 ;; 11659 11660mingw* | pw32*) 11661 # Base MSYS/MinGW do not provide the 'file' command needed by 11662 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11663 # unless we find 'file', for example because we are cross-compiling. 11664 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11665 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11667 lt_cv_file_magic_cmd='func_win32_libid' 11668 else 11669 # Keep this pattern in sync with the one in func_win32_libid. 11670 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11671 lt_cv_file_magic_cmd='$OBJDUMP -f' 11672 fi 11673 ;; 11674 11675cegcc*) 11676 # use the weaker test based on 'objdump'. See mingw*. 11677 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11678 lt_cv_file_magic_cmd='$OBJDUMP -f' 11679 ;; 11680 11681darwin* | rhapsody*) 11682 lt_cv_deplibs_check_method=pass_all 11683 ;; 11684 11685freebsd* | dragonfly*) 11686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11687 case $host_cpu in 11688 i*86 ) 11689 # Not sure whether the presence of OpenBSD here was a mistake. 11690 # Let's accept both of them until this is cleared up. 11691 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11692 lt_cv_file_magic_cmd=/usr/bin/file 11693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11694 ;; 11695 esac 11696 else 11697 lt_cv_deplibs_check_method=pass_all 11698 fi 11699 ;; 11700 11701haiku*) 11702 lt_cv_deplibs_check_method=pass_all 11703 ;; 11704 11705hpux10.20* | hpux11*) 11706 lt_cv_file_magic_cmd=/usr/bin/file 11707 case $host_cpu in 11708 ia64*) 11709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11710 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11711 ;; 11712 hppa*64*) 11713 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]' 11714 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11715 ;; 11716 *) 11717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11718 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11719 ;; 11720 esac 11721 ;; 11722 11723interix[3-9]*) 11724 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11726 ;; 11727 11728irix5* | irix6* | nonstopux*) 11729 case $LD in 11730 *-32|*"-32 ") libmagic=32-bit;; 11731 *-n32|*"-n32 ") libmagic=N32;; 11732 *-64|*"-64 ") libmagic=64-bit;; 11733 *) libmagic=never-match;; 11734 esac 11735 lt_cv_deplibs_check_method=pass_all 11736 ;; 11737 11738# This must be glibc/ELF. 11739linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11740 lt_cv_deplibs_check_method=pass_all 11741 ;; 11742 11743netbsd* | netbsdelf*-gnu) 11744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11746 else 11747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11748 fi 11749 ;; 11750 11751newos6*) 11752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11753 lt_cv_file_magic_cmd=/usr/bin/file 11754 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11755 ;; 11756 11757*nto* | *qnx*) 11758 lt_cv_deplibs_check_method=pass_all 11759 ;; 11760 11761openbsd*) 11762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11764 else 11765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11766 fi 11767 ;; 11768 11769osf3* | osf4* | osf5*) 11770 lt_cv_deplibs_check_method=pass_all 11771 ;; 11772 11773rdos*) 11774 lt_cv_deplibs_check_method=pass_all 11775 ;; 11776 11777solaris*) 11778 lt_cv_deplibs_check_method=pass_all 11779 ;; 11780 11781sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11782 lt_cv_deplibs_check_method=pass_all 11783 ;; 11784 11785sysv4 | sysv4.3*) 11786 case $host_vendor in 11787 motorola) 11788 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]' 11789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11790 ;; 11791 ncr) 11792 lt_cv_deplibs_check_method=pass_all 11793 ;; 11794 sequent) 11795 lt_cv_file_magic_cmd='/bin/file' 11796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11797 ;; 11798 sni) 11799 lt_cv_file_magic_cmd='/bin/file' 11800 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11801 lt_cv_file_magic_test_file=/lib/libc.so 11802 ;; 11803 siemens) 11804 lt_cv_deplibs_check_method=pass_all 11805 ;; 11806 pc) 11807 lt_cv_deplibs_check_method=pass_all 11808 ;; 11809 esac 11810 ;; 11811 11812tpf*) 11813 lt_cv_deplibs_check_method=pass_all 11814 ;; 11815esac 11816 11817fi 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11819$as_echo "$lt_cv_deplibs_check_method" >&6; } 11820 11821file_magic_glob= 11822want_nocaseglob=no 11823if test "$build" = "$host"; then 11824 case $host_os in 11825 mingw* | pw32*) 11826 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11827 want_nocaseglob=yes 11828 else 11829 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11830 fi 11831 ;; 11832 esac 11833fi 11834 11835file_magic_cmd=$lt_cv_file_magic_cmd 11836deplibs_check_method=$lt_cv_deplibs_check_method 11837test -z "$deplibs_check_method" && deplibs_check_method=unknown 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860if test -n "$ac_tool_prefix"; then 11861 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11862set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11864$as_echo_n "checking for $ac_word... " >&6; } 11865if ${ac_cv_prog_DLLTOOL+:} false; then : 11866 $as_echo_n "(cached) " >&6 11867else 11868 if test -n "$DLLTOOL"; then 11869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11870else 11871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11872for as_dir in $PATH 11873do 11874 IFS=$as_save_IFS 11875 test -z "$as_dir" && as_dir=. 11876 for ac_exec_ext in '' $ac_executable_extensions; do 11877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11880 break 2 11881 fi 11882done 11883 done 11884IFS=$as_save_IFS 11885 11886fi 11887fi 11888DLLTOOL=$ac_cv_prog_DLLTOOL 11889if test -n "$DLLTOOL"; then 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11891$as_echo "$DLLTOOL" >&6; } 11892else 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11894$as_echo "no" >&6; } 11895fi 11896 11897 11898fi 11899if test -z "$ac_cv_prog_DLLTOOL"; then 11900 ac_ct_DLLTOOL=$DLLTOOL 11901 # Extract the first word of "dlltool", so it can be a program name with args. 11902set dummy dlltool; ac_word=$2 11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11904$as_echo_n "checking for $ac_word... " >&6; } 11905if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11906 $as_echo_n "(cached) " >&6 11907else 11908 if test -n "$ac_ct_DLLTOOL"; then 11909 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11910else 11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11912for as_dir in $PATH 11913do 11914 IFS=$as_save_IFS 11915 test -z "$as_dir" && as_dir=. 11916 for ac_exec_ext in '' $ac_executable_extensions; do 11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11918 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11920 break 2 11921 fi 11922done 11923 done 11924IFS=$as_save_IFS 11925 11926fi 11927fi 11928ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11929if test -n "$ac_ct_DLLTOOL"; then 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11931$as_echo "$ac_ct_DLLTOOL" >&6; } 11932else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11934$as_echo "no" >&6; } 11935fi 11936 11937 if test "x$ac_ct_DLLTOOL" = x; then 11938 DLLTOOL="false" 11939 else 11940 case $cross_compiling:$ac_tool_warned in 11941yes:) 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11944ac_tool_warned=yes ;; 11945esac 11946 DLLTOOL=$ac_ct_DLLTOOL 11947 fi 11948else 11949 DLLTOOL="$ac_cv_prog_DLLTOOL" 11950fi 11951 11952test -z "$DLLTOOL" && DLLTOOL=dlltool 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 11964$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 11965if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 11966 $as_echo_n "(cached) " >&6 11967else 11968 lt_cv_sharedlib_from_linklib_cmd='unknown' 11969 11970case $host_os in 11971cygwin* | mingw* | pw32* | cegcc*) 11972 # two different shell functions defined in ltmain.sh 11973 # decide which to use based on capabilities of $DLLTOOL 11974 case `$DLLTOOL --help 2>&1` in 11975 *--identify-strict*) 11976 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 11977 ;; 11978 *) 11979 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 11980 ;; 11981 esac 11982 ;; 11983*) 11984 # fallback: assume linklib IS sharedlib 11985 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 11986 ;; 11987esac 11988 11989fi 11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 11991$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 11992sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 11993test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 11994 11995 11996 11997 11998 11999 12000 12001if test -n "$ac_tool_prefix"; then 12002 for ac_prog in ar 12003 do 12004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12005set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12007$as_echo_n "checking for $ac_word... " >&6; } 12008if ${ac_cv_prog_AR+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010else 12011 if test -n "$AR"; then 12012 ac_cv_prog_AR="$AR" # Let the user override the test. 12013else 12014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12015for as_dir in $PATH 12016do 12017 IFS=$as_save_IFS 12018 test -z "$as_dir" && as_dir=. 12019 for ac_exec_ext in '' $ac_executable_extensions; do 12020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12021 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12023 break 2 12024 fi 12025done 12026 done 12027IFS=$as_save_IFS 12028 12029fi 12030fi 12031AR=$ac_cv_prog_AR 12032if test -n "$AR"; then 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12034$as_echo "$AR" >&6; } 12035else 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12037$as_echo "no" >&6; } 12038fi 12039 12040 12041 test -n "$AR" && break 12042 done 12043fi 12044if test -z "$AR"; then 12045 ac_ct_AR=$AR 12046 for ac_prog in ar 12047do 12048 # Extract the first word of "$ac_prog", so it can be a program name with args. 12049set dummy $ac_prog; ac_word=$2 12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12051$as_echo_n "checking for $ac_word... " >&6; } 12052if ${ac_cv_prog_ac_ct_AR+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054else 12055 if test -n "$ac_ct_AR"; then 12056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12057else 12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12059for as_dir in $PATH 12060do 12061 IFS=$as_save_IFS 12062 test -z "$as_dir" && as_dir=. 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12065 ac_cv_prog_ac_ct_AR="$ac_prog" 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12067 break 2 12068 fi 12069done 12070 done 12071IFS=$as_save_IFS 12072 12073fi 12074fi 12075ac_ct_AR=$ac_cv_prog_ac_ct_AR 12076if test -n "$ac_ct_AR"; then 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12078$as_echo "$ac_ct_AR" >&6; } 12079else 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12081$as_echo "no" >&6; } 12082fi 12083 12084 12085 test -n "$ac_ct_AR" && break 12086done 12087 12088 if test "x$ac_ct_AR" = x; then 12089 AR="false" 12090 else 12091 case $cross_compiling:$ac_tool_warned in 12092yes:) 12093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12095ac_tool_warned=yes ;; 12096esac 12097 AR=$ac_ct_AR 12098 fi 12099fi 12100 12101: ${AR=ar} 12102: ${AR_FLAGS=cru} 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12115$as_echo_n "checking for archiver @FILE support... " >&6; } 12116if ${lt_cv_ar_at_file+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 lt_cv_ar_at_file=no 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122 12123int 12124main () 12125{ 12126 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131if ac_fn_c_try_compile "$LINENO"; then : 12132 echo conftest.$ac_objext > conftest.lst 12133 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12135 (eval $lt_ar_try) 2>&5 12136 ac_status=$? 12137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12138 test $ac_status = 0; } 12139 if test "$ac_status" -eq 0; then 12140 # Ensure the archiver fails upon bogus file names. 12141 rm -f conftest.$ac_objext libconftest.a 12142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12143 (eval $lt_ar_try) 2>&5 12144 ac_status=$? 12145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12146 test $ac_status = 0; } 12147 if test "$ac_status" -ne 0; then 12148 lt_cv_ar_at_file=@ 12149 fi 12150 fi 12151 rm -f conftest.* libconftest.a 12152 12153fi 12154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12155 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12158$as_echo "$lt_cv_ar_at_file" >&6; } 12159 12160if test "x$lt_cv_ar_at_file" = xno; then 12161 archiver_list_spec= 12162else 12163 archiver_list_spec=$lt_cv_ar_at_file 12164fi 12165 12166 12167 12168 12169 12170 12171 12172if test -n "$ac_tool_prefix"; then 12173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12174set dummy ${ac_tool_prefix}strip; ac_word=$2 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12176$as_echo_n "checking for $ac_word... " >&6; } 12177if ${ac_cv_prog_STRIP+:} false; then : 12178 $as_echo_n "(cached) " >&6 12179else 12180 if test -n "$STRIP"; then 12181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12182else 12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12184for as_dir in $PATH 12185do 12186 IFS=$as_save_IFS 12187 test -z "$as_dir" && as_dir=. 12188 for ac_exec_ext in '' $ac_executable_extensions; do 12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12190 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12192 break 2 12193 fi 12194done 12195 done 12196IFS=$as_save_IFS 12197 12198fi 12199fi 12200STRIP=$ac_cv_prog_STRIP 12201if test -n "$STRIP"; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12203$as_echo "$STRIP" >&6; } 12204else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12206$as_echo "no" >&6; } 12207fi 12208 12209 12210fi 12211if test -z "$ac_cv_prog_STRIP"; then 12212 ac_ct_STRIP=$STRIP 12213 # Extract the first word of "strip", so it can be a program name with args. 12214set dummy strip; ac_word=$2 12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12216$as_echo_n "checking for $ac_word... " >&6; } 12217if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12218 $as_echo_n "(cached) " >&6 12219else 12220 if test -n "$ac_ct_STRIP"; then 12221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12222else 12223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12224for as_dir in $PATH 12225do 12226 IFS=$as_save_IFS 12227 test -z "$as_dir" && as_dir=. 12228 for ac_exec_ext in '' $ac_executable_extensions; do 12229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12230 ac_cv_prog_ac_ct_STRIP="strip" 12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12232 break 2 12233 fi 12234done 12235 done 12236IFS=$as_save_IFS 12237 12238fi 12239fi 12240ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12241if test -n "$ac_ct_STRIP"; then 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12243$as_echo "$ac_ct_STRIP" >&6; } 12244else 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12246$as_echo "no" >&6; } 12247fi 12248 12249 if test "x$ac_ct_STRIP" = x; then 12250 STRIP=":" 12251 else 12252 case $cross_compiling:$ac_tool_warned in 12253yes:) 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12256ac_tool_warned=yes ;; 12257esac 12258 STRIP=$ac_ct_STRIP 12259 fi 12260else 12261 STRIP="$ac_cv_prog_STRIP" 12262fi 12263 12264test -z "$STRIP" && STRIP=: 12265 12266 12267 12268 12269 12270 12271if test -n "$ac_tool_prefix"; then 12272 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12273set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12275$as_echo_n "checking for $ac_word... " >&6; } 12276if ${ac_cv_prog_RANLIB+:} false; then : 12277 $as_echo_n "(cached) " >&6 12278else 12279 if test -n "$RANLIB"; then 12280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12281else 12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12283for as_dir in $PATH 12284do 12285 IFS=$as_save_IFS 12286 test -z "$as_dir" && as_dir=. 12287 for ac_exec_ext in '' $ac_executable_extensions; do 12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12289 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12291 break 2 12292 fi 12293done 12294 done 12295IFS=$as_save_IFS 12296 12297fi 12298fi 12299RANLIB=$ac_cv_prog_RANLIB 12300if test -n "$RANLIB"; then 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12302$as_echo "$RANLIB" >&6; } 12303else 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12305$as_echo "no" >&6; } 12306fi 12307 12308 12309fi 12310if test -z "$ac_cv_prog_RANLIB"; then 12311 ac_ct_RANLIB=$RANLIB 12312 # Extract the first word of "ranlib", so it can be a program name with args. 12313set dummy ranlib; ac_word=$2 12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12315$as_echo_n "checking for $ac_word... " >&6; } 12316if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12317 $as_echo_n "(cached) " >&6 12318else 12319 if test -n "$ac_ct_RANLIB"; then 12320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12321else 12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12323for as_dir in $PATH 12324do 12325 IFS=$as_save_IFS 12326 test -z "$as_dir" && as_dir=. 12327 for ac_exec_ext in '' $ac_executable_extensions; do 12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12329 ac_cv_prog_ac_ct_RANLIB="ranlib" 12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12331 break 2 12332 fi 12333done 12334 done 12335IFS=$as_save_IFS 12336 12337fi 12338fi 12339ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12340if test -n "$ac_ct_RANLIB"; then 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12342$as_echo "$ac_ct_RANLIB" >&6; } 12343else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345$as_echo "no" >&6; } 12346fi 12347 12348 if test "x$ac_ct_RANLIB" = x; then 12349 RANLIB=":" 12350 else 12351 case $cross_compiling:$ac_tool_warned in 12352yes:) 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12355ac_tool_warned=yes ;; 12356esac 12357 RANLIB=$ac_ct_RANLIB 12358 fi 12359else 12360 RANLIB="$ac_cv_prog_RANLIB" 12361fi 12362 12363test -z "$RANLIB" && RANLIB=: 12364 12365 12366 12367 12368 12369 12370# Determine commands to create old-style static archives. 12371old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12372old_postinstall_cmds='chmod 644 $oldlib' 12373old_postuninstall_cmds= 12374 12375if test -n "$RANLIB"; then 12376 case $host_os in 12377 openbsd*) 12378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12379 ;; 12380 *) 12381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12382 ;; 12383 esac 12384 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12385fi 12386 12387case $host_os in 12388 darwin*) 12389 lock_old_archive_extraction=yes ;; 12390 *) 12391 lock_old_archive_extraction=no ;; 12392esac 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432# If no C compiler was specified, use CC. 12433LTCC=${LTCC-"$CC"} 12434 12435# If no C compiler flags were specified, use CFLAGS. 12436LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12437 12438# Allow CC to be a program name with arguments. 12439compiler=$CC 12440 12441 12442# Check for command to grab the raw symbol name followed by C symbol from nm. 12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12444$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12445if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12446 $as_echo_n "(cached) " >&6 12447else 12448 12449# These are sane defaults that work on at least a few old systems. 12450# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12451 12452# Character class describing NM global symbol codes. 12453symcode='[BCDEGRST]' 12454 12455# Regexp to match symbols that can be accessed directly from C. 12456sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12457 12458# Define system-specific variables. 12459case $host_os in 12460aix*) 12461 symcode='[BCDT]' 12462 ;; 12463cygwin* | mingw* | pw32* | cegcc*) 12464 symcode='[ABCDGISTW]' 12465 ;; 12466hpux*) 12467 if test "$host_cpu" = ia64; then 12468 symcode='[ABCDEGRST]' 12469 fi 12470 ;; 12471irix* | nonstopux*) 12472 symcode='[BCDEGRST]' 12473 ;; 12474osf*) 12475 symcode='[BCDEGQRST]' 12476 ;; 12477solaris*) 12478 symcode='[BDRT]' 12479 ;; 12480sco3.2v5*) 12481 symcode='[DT]' 12482 ;; 12483sysv4.2uw2*) 12484 symcode='[DT]' 12485 ;; 12486sysv5* | sco5v6* | unixware* | OpenUNIX*) 12487 symcode='[ABDT]' 12488 ;; 12489sysv4) 12490 symcode='[DFNSTU]' 12491 ;; 12492esac 12493 12494# If we're using GNU nm, then use its standard symbol codes. 12495case `$NM -V 2>&1` in 12496*GNU* | *'with BFD'*) 12497 symcode='[ABCDGIRSTW]' ;; 12498esac 12499 12500# Transform an extracted symbol line into a proper C declaration. 12501# Some systems (esp. on ia64) link data and code symbols differently, 12502# so use this general approach. 12503lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12504 12505# Transform an extracted symbol line into symbol name and symbol address 12506lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12507lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12508 12509# Handle CRLF in mingw tool chain 12510opt_cr= 12511case $build_os in 12512mingw*) 12513 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12514 ;; 12515esac 12516 12517# Try without a prefix underscore, then with it. 12518for ac_symprfx in "" "_"; do 12519 12520 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12521 symxfrm="\\1 $ac_symprfx\\2 \\2" 12522 12523 # Write the raw and C identifiers. 12524 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12525 # Fake it for dumpbin and say T for any non-static function 12526 # and D for any global variable. 12527 # Also find C++ and __fastcall symbols from MSVC++, 12528 # which start with @ or ?. 12529 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12530" {last_section=section; section=\$ 3};"\ 12531" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12532" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12533" \$ 0!~/External *\|/{next};"\ 12534" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12535" {if(hide[section]) next};"\ 12536" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12537" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12538" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12539" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12540" ' prfx=^$ac_symprfx" 12541 else 12542 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12543 fi 12544 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12545 12546 # Check to see that the pipe works correctly. 12547 pipe_works=no 12548 12549 rm -f conftest* 12550 cat > conftest.$ac_ext <<_LT_EOF 12551#ifdef __cplusplus 12552extern "C" { 12553#endif 12554char nm_test_var; 12555void nm_test_func(void); 12556void nm_test_func(void){} 12557#ifdef __cplusplus 12558} 12559#endif 12560int main(){nm_test_var='a';nm_test_func();return(0);} 12561_LT_EOF 12562 12563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12564 (eval $ac_compile) 2>&5 12565 ac_status=$? 12566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12567 test $ac_status = 0; }; then 12568 # Now try to grab the symbols. 12569 nlist=conftest.nm 12570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12571 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12572 ac_status=$? 12573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12574 test $ac_status = 0; } && test -s "$nlist"; then 12575 # Try sorting and uniquifying the output. 12576 if sort "$nlist" | uniq > "$nlist"T; then 12577 mv -f "$nlist"T "$nlist" 12578 else 12579 rm -f "$nlist"T 12580 fi 12581 12582 # Make sure that we snagged all the symbols we need. 12583 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12584 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12585 cat <<_LT_EOF > conftest.$ac_ext 12586/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12587#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12588/* DATA imports from DLLs on WIN32 con't be const, because runtime 12589 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12590# define LT_DLSYM_CONST 12591#elif defined(__osf__) 12592/* This system does not cope well with relocations in const data. */ 12593# define LT_DLSYM_CONST 12594#else 12595# define LT_DLSYM_CONST const 12596#endif 12597 12598#ifdef __cplusplus 12599extern "C" { 12600#endif 12601 12602_LT_EOF 12603 # Now generate the symbol file. 12604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12605 12606 cat <<_LT_EOF >> conftest.$ac_ext 12607 12608/* The mapping between symbol names and symbols. */ 12609LT_DLSYM_CONST struct { 12610 const char *name; 12611 void *address; 12612} 12613lt__PROGRAM__LTX_preloaded_symbols[] = 12614{ 12615 { "@PROGRAM@", (void *) 0 }, 12616_LT_EOF 12617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12618 cat <<\_LT_EOF >> conftest.$ac_ext 12619 {0, (void *) 0} 12620}; 12621 12622/* This works around a problem in FreeBSD linker */ 12623#ifdef FREEBSD_WORKAROUND 12624static const void *lt_preloaded_setup() { 12625 return lt__PROGRAM__LTX_preloaded_symbols; 12626} 12627#endif 12628 12629#ifdef __cplusplus 12630} 12631#endif 12632_LT_EOF 12633 # Now try linking the two files. 12634 mv conftest.$ac_objext conftstm.$ac_objext 12635 lt_globsym_save_LIBS=$LIBS 12636 lt_globsym_save_CFLAGS=$CFLAGS 12637 LIBS="conftstm.$ac_objext" 12638 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12640 (eval $ac_link) 2>&5 12641 ac_status=$? 12642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12643 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12644 pipe_works=yes 12645 fi 12646 LIBS=$lt_globsym_save_LIBS 12647 CFLAGS=$lt_globsym_save_CFLAGS 12648 else 12649 echo "cannot find nm_test_func in $nlist" >&5 12650 fi 12651 else 12652 echo "cannot find nm_test_var in $nlist" >&5 12653 fi 12654 else 12655 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12656 fi 12657 else 12658 echo "$progname: failed program was:" >&5 12659 cat conftest.$ac_ext >&5 12660 fi 12661 rm -rf conftest* conftst* 12662 12663 # Do not use the global_symbol_pipe unless it works. 12664 if test "$pipe_works" = yes; then 12665 break 12666 else 12667 lt_cv_sys_global_symbol_pipe= 12668 fi 12669done 12670 12671fi 12672 12673if test -z "$lt_cv_sys_global_symbol_pipe"; then 12674 lt_cv_sys_global_symbol_to_cdecl= 12675fi 12676if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12678$as_echo "failed" >&6; } 12679else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12681$as_echo "ok" >&6; } 12682fi 12683 12684# Response file support. 12685if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12686 nm_file_list_spec='@' 12687elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12688 nm_file_list_spec='@' 12689fi 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12718$as_echo_n "checking for sysroot... " >&6; } 12719 12720# Check whether --with-sysroot was given. 12721if test "${with_sysroot+set}" = set; then : 12722 withval=$with_sysroot; 12723else 12724 with_sysroot=no 12725fi 12726 12727 12728lt_sysroot= 12729case ${with_sysroot} in #( 12730 yes) 12731 if test "$GCC" = yes; then 12732 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12733 fi 12734 ;; #( 12735 /*) 12736 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12737 ;; #( 12738 no|'') 12739 ;; #( 12740 *) 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12742$as_echo "${with_sysroot}" >&6; } 12743 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12744 ;; 12745esac 12746 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12748$as_echo "${lt_sysroot:-no}" >&6; } 12749 12750 12751 12752 12753 12754# Check whether --enable-libtool-lock was given. 12755if test "${enable_libtool_lock+set}" = set; then : 12756 enableval=$enable_libtool_lock; 12757fi 12758 12759test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12760 12761# Some flags need to be propagated to the compiler or linker for good 12762# libtool support. 12763case $host in 12764ia64-*-hpux*) 12765 # Find out which ABI we are using. 12766 echo 'int i;' > conftest.$ac_ext 12767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12768 (eval $ac_compile) 2>&5 12769 ac_status=$? 12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12771 test $ac_status = 0; }; then 12772 case `/usr/bin/file conftest.$ac_objext` in 12773 *ELF-32*) 12774 HPUX_IA64_MODE="32" 12775 ;; 12776 *ELF-64*) 12777 HPUX_IA64_MODE="64" 12778 ;; 12779 esac 12780 fi 12781 rm -rf conftest* 12782 ;; 12783*-*-irix6*) 12784 # Find out which ABI we are using. 12785 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12787 (eval $ac_compile) 2>&5 12788 ac_status=$? 12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12790 test $ac_status = 0; }; then 12791 if test "$lt_cv_prog_gnu_ld" = yes; then 12792 case `/usr/bin/file conftest.$ac_objext` in 12793 *32-bit*) 12794 LD="${LD-ld} -melf32bsmip" 12795 ;; 12796 *N32*) 12797 LD="${LD-ld} -melf32bmipn32" 12798 ;; 12799 *64-bit*) 12800 LD="${LD-ld} -melf64bmip" 12801 ;; 12802 esac 12803 else 12804 case `/usr/bin/file conftest.$ac_objext` in 12805 *32-bit*) 12806 LD="${LD-ld} -32" 12807 ;; 12808 *N32*) 12809 LD="${LD-ld} -n32" 12810 ;; 12811 *64-bit*) 12812 LD="${LD-ld} -64" 12813 ;; 12814 esac 12815 fi 12816 fi 12817 rm -rf conftest* 12818 ;; 12819 12820x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12821s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12822 # Find out which ABI we are using. 12823 echo 'int i;' > conftest.$ac_ext 12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12825 (eval $ac_compile) 2>&5 12826 ac_status=$? 12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12828 test $ac_status = 0; }; then 12829 case `/usr/bin/file conftest.o` in 12830 *32-bit*) 12831 case $host in 12832 x86_64-*kfreebsd*-gnu) 12833 LD="${LD-ld} -m elf_i386_fbsd" 12834 ;; 12835 x86_64-*linux*) 12836 case `/usr/bin/file conftest.o` in 12837 *x86-64*) 12838 LD="${LD-ld} -m elf32_x86_64" 12839 ;; 12840 *) 12841 LD="${LD-ld} -m elf_i386" 12842 ;; 12843 esac 12844 ;; 12845 ppc64-*linux*|powerpc64-*linux*) 12846 LD="${LD-ld} -m elf32ppclinux" 12847 ;; 12848 s390x-*linux*) 12849 LD="${LD-ld} -m elf_s390" 12850 ;; 12851 sparc64-*linux*) 12852 LD="${LD-ld} -m elf32_sparc" 12853 ;; 12854 esac 12855 ;; 12856 *64-bit*) 12857 case $host in 12858 x86_64-*kfreebsd*-gnu) 12859 LD="${LD-ld} -m elf_x86_64_fbsd" 12860 ;; 12861 x86_64-*linux*) 12862 LD="${LD-ld} -m elf_x86_64" 12863 ;; 12864 ppc*-*linux*|powerpc*-*linux*) 12865 LD="${LD-ld} -m elf64ppc" 12866 ;; 12867 s390*-*linux*|s390*-*tpf*) 12868 LD="${LD-ld} -m elf64_s390" 12869 ;; 12870 sparc*-*linux*) 12871 LD="${LD-ld} -m elf64_sparc" 12872 ;; 12873 esac 12874 ;; 12875 esac 12876 fi 12877 rm -rf conftest* 12878 ;; 12879 12880*-*-sco3.2v5*) 12881 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12882 SAVE_CFLAGS="$CFLAGS" 12883 CFLAGS="$CFLAGS -belf" 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12885$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12886if ${lt_cv_cc_needs_belf+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 ac_ext=c 12890ac_cpp='$CPP $CPPFLAGS' 12891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12893ac_compiler_gnu=$ac_cv_c_compiler_gnu 12894 12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12896/* end confdefs.h. */ 12897 12898int 12899main () 12900{ 12901 12902 ; 12903 return 0; 12904} 12905_ACEOF 12906if ac_fn_c_try_link "$LINENO"; then : 12907 lt_cv_cc_needs_belf=yes 12908else 12909 lt_cv_cc_needs_belf=no 12910fi 12911rm -f core conftest.err conftest.$ac_objext \ 12912 conftest$ac_exeext conftest.$ac_ext 12913 ac_ext=c 12914ac_cpp='$CPP $CPPFLAGS' 12915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12917ac_compiler_gnu=$ac_cv_c_compiler_gnu 12918 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12921$as_echo "$lt_cv_cc_needs_belf" >&6; } 12922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12924 CFLAGS="$SAVE_CFLAGS" 12925 fi 12926 ;; 12927*-*solaris*) 12928 # Find out which ABI we are using. 12929 echo 'int i;' > conftest.$ac_ext 12930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12931 (eval $ac_compile) 2>&5 12932 ac_status=$? 12933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12934 test $ac_status = 0; }; then 12935 case `/usr/bin/file conftest.o` in 12936 *64-bit*) 12937 case $lt_cv_prog_gnu_ld in 12938 yes*) 12939 case $host in 12940 i?86-*-solaris*) 12941 LD="${LD-ld} -m elf_x86_64" 12942 ;; 12943 sparc*-*-solaris*) 12944 LD="${LD-ld} -m elf64_sparc" 12945 ;; 12946 esac 12947 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12948 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12949 LD="${LD-ld}_sol2" 12950 fi 12951 ;; 12952 *) 12953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12954 LD="${LD-ld} -64" 12955 fi 12956 ;; 12957 esac 12958 ;; 12959 esac 12960 fi 12961 rm -rf conftest* 12962 ;; 12963esac 12964 12965need_locks="$enable_libtool_lock" 12966 12967if test -n "$ac_tool_prefix"; then 12968 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12969set dummy ${ac_tool_prefix}mt; ac_word=$2 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12971$as_echo_n "checking for $ac_word... " >&6; } 12972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 12973 $as_echo_n "(cached) " >&6 12974else 12975 if test -n "$MANIFEST_TOOL"; then 12976 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12977else 12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12979for as_dir in $PATH 12980do 12981 IFS=$as_save_IFS 12982 test -z "$as_dir" && as_dir=. 12983 for ac_exec_ext in '' $ac_executable_extensions; do 12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12985 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12987 break 2 12988 fi 12989done 12990 done 12991IFS=$as_save_IFS 12992 12993fi 12994fi 12995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12996if test -n "$MANIFEST_TOOL"; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12998$as_echo "$MANIFEST_TOOL" >&6; } 12999else 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13001$as_echo "no" >&6; } 13002fi 13003 13004 13005fi 13006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13007 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13008 # Extract the first word of "mt", so it can be a program name with args. 13009set dummy mt; ac_word=$2 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13011$as_echo_n "checking for $ac_word... " >&6; } 13012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014else 13015 if test -n "$ac_ct_MANIFEST_TOOL"; then 13016 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13017else 13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019for as_dir in $PATH 13020do 13021 IFS=$as_save_IFS 13022 test -z "$as_dir" && as_dir=. 13023 for ac_exec_ext in '' $ac_executable_extensions; do 13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13025 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13027 break 2 13028 fi 13029done 13030 done 13031IFS=$as_save_IFS 13032 13033fi 13034fi 13035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13036if test -n "$ac_ct_MANIFEST_TOOL"; then 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13039else 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13041$as_echo "no" >&6; } 13042fi 13043 13044 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13045 MANIFEST_TOOL=":" 13046 else 13047 case $cross_compiling:$ac_tool_warned in 13048yes:) 13049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13051ac_tool_warned=yes ;; 13052esac 13053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13054 fi 13055else 13056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13057fi 13058 13059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13062if ${lt_cv_path_mainfest_tool+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064else 13065 lt_cv_path_mainfest_tool=no 13066 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13067 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13068 cat conftest.err >&5 13069 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13070 lt_cv_path_mainfest_tool=yes 13071 fi 13072 rm -f conftest* 13073fi 13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13075$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13076if test "x$lt_cv_path_mainfest_tool" != xyes; then 13077 MANIFEST_TOOL=: 13078fi 13079 13080 13081 13082 13083 13084 13085 case $host_os in 13086 rhapsody* | darwin*) 13087 if test -n "$ac_tool_prefix"; then 13088 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13091$as_echo_n "checking for $ac_word... " >&6; } 13092if ${ac_cv_prog_DSYMUTIL+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 if test -n "$DSYMUTIL"; then 13096 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13097else 13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13099for as_dir in $PATH 13100do 13101 IFS=$as_save_IFS 13102 test -z "$as_dir" && as_dir=. 13103 for ac_exec_ext in '' $ac_executable_extensions; do 13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13105 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13107 break 2 13108 fi 13109done 13110 done 13111IFS=$as_save_IFS 13112 13113fi 13114fi 13115DSYMUTIL=$ac_cv_prog_DSYMUTIL 13116if test -n "$DSYMUTIL"; then 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13118$as_echo "$DSYMUTIL" >&6; } 13119else 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13121$as_echo "no" >&6; } 13122fi 13123 13124 13125fi 13126if test -z "$ac_cv_prog_DSYMUTIL"; then 13127 ac_ct_DSYMUTIL=$DSYMUTIL 13128 # Extract the first word of "dsymutil", so it can be a program name with args. 13129set dummy dsymutil; ac_word=$2 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13131$as_echo_n "checking for $ac_word... " >&6; } 13132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13133 $as_echo_n "(cached) " >&6 13134else 13135 if test -n "$ac_ct_DSYMUTIL"; then 13136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13137else 13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13139for as_dir in $PATH 13140do 13141 IFS=$as_save_IFS 13142 test -z "$as_dir" && as_dir=. 13143 for ac_exec_ext in '' $ac_executable_extensions; do 13144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13145 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13147 break 2 13148 fi 13149done 13150 done 13151IFS=$as_save_IFS 13152 13153fi 13154fi 13155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13156if test -n "$ac_ct_DSYMUTIL"; then 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13158$as_echo "$ac_ct_DSYMUTIL" >&6; } 13159else 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13161$as_echo "no" >&6; } 13162fi 13163 13164 if test "x$ac_ct_DSYMUTIL" = x; then 13165 DSYMUTIL=":" 13166 else 13167 case $cross_compiling:$ac_tool_warned in 13168yes:) 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13171ac_tool_warned=yes ;; 13172esac 13173 DSYMUTIL=$ac_ct_DSYMUTIL 13174 fi 13175else 13176 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13177fi 13178 13179 if test -n "$ac_tool_prefix"; then 13180 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13181set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13183$as_echo_n "checking for $ac_word... " >&6; } 13184if ${ac_cv_prog_NMEDIT+:} false; then : 13185 $as_echo_n "(cached) " >&6 13186else 13187 if test -n "$NMEDIT"; then 13188 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13189else 13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13191for as_dir in $PATH 13192do 13193 IFS=$as_save_IFS 13194 test -z "$as_dir" && as_dir=. 13195 for ac_exec_ext in '' $ac_executable_extensions; do 13196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13197 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13199 break 2 13200 fi 13201done 13202 done 13203IFS=$as_save_IFS 13204 13205fi 13206fi 13207NMEDIT=$ac_cv_prog_NMEDIT 13208if test -n "$NMEDIT"; then 13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13210$as_echo "$NMEDIT" >&6; } 13211else 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13213$as_echo "no" >&6; } 13214fi 13215 13216 13217fi 13218if test -z "$ac_cv_prog_NMEDIT"; then 13219 ac_ct_NMEDIT=$NMEDIT 13220 # Extract the first word of "nmedit", so it can be a program name with args. 13221set dummy nmedit; ac_word=$2 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13223$as_echo_n "checking for $ac_word... " >&6; } 13224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 if test -n "$ac_ct_NMEDIT"; then 13228 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13229else 13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13231for as_dir in $PATH 13232do 13233 IFS=$as_save_IFS 13234 test -z "$as_dir" && as_dir=. 13235 for ac_exec_ext in '' $ac_executable_extensions; do 13236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13237 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13239 break 2 13240 fi 13241done 13242 done 13243IFS=$as_save_IFS 13244 13245fi 13246fi 13247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13248if test -n "$ac_ct_NMEDIT"; then 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13250$as_echo "$ac_ct_NMEDIT" >&6; } 13251else 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13253$as_echo "no" >&6; } 13254fi 13255 13256 if test "x$ac_ct_NMEDIT" = x; then 13257 NMEDIT=":" 13258 else 13259 case $cross_compiling:$ac_tool_warned in 13260yes:) 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13263ac_tool_warned=yes ;; 13264esac 13265 NMEDIT=$ac_ct_NMEDIT 13266 fi 13267else 13268 NMEDIT="$ac_cv_prog_NMEDIT" 13269fi 13270 13271 if test -n "$ac_tool_prefix"; then 13272 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13273set dummy ${ac_tool_prefix}lipo; ac_word=$2 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13275$as_echo_n "checking for $ac_word... " >&6; } 13276if ${ac_cv_prog_LIPO+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 if test -n "$LIPO"; then 13280 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13281else 13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13283for as_dir in $PATH 13284do 13285 IFS=$as_save_IFS 13286 test -z "$as_dir" && as_dir=. 13287 for ac_exec_ext in '' $ac_executable_extensions; do 13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13289 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13291 break 2 13292 fi 13293done 13294 done 13295IFS=$as_save_IFS 13296 13297fi 13298fi 13299LIPO=$ac_cv_prog_LIPO 13300if test -n "$LIPO"; then 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13302$as_echo "$LIPO" >&6; } 13303else 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13305$as_echo "no" >&6; } 13306fi 13307 13308 13309fi 13310if test -z "$ac_cv_prog_LIPO"; then 13311 ac_ct_LIPO=$LIPO 13312 # Extract the first word of "lipo", so it can be a program name with args. 13313set dummy lipo; ac_word=$2 13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13315$as_echo_n "checking for $ac_word... " >&6; } 13316if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13317 $as_echo_n "(cached) " >&6 13318else 13319 if test -n "$ac_ct_LIPO"; then 13320 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13321else 13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13323for as_dir in $PATH 13324do 13325 IFS=$as_save_IFS 13326 test -z "$as_dir" && as_dir=. 13327 for ac_exec_ext in '' $ac_executable_extensions; do 13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13329 ac_cv_prog_ac_ct_LIPO="lipo" 13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13331 break 2 13332 fi 13333done 13334 done 13335IFS=$as_save_IFS 13336 13337fi 13338fi 13339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13340if test -n "$ac_ct_LIPO"; then 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13342$as_echo "$ac_ct_LIPO" >&6; } 13343else 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13345$as_echo "no" >&6; } 13346fi 13347 13348 if test "x$ac_ct_LIPO" = x; then 13349 LIPO=":" 13350 else 13351 case $cross_compiling:$ac_tool_warned in 13352yes:) 13353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13355ac_tool_warned=yes ;; 13356esac 13357 LIPO=$ac_ct_LIPO 13358 fi 13359else 13360 LIPO="$ac_cv_prog_LIPO" 13361fi 13362 13363 if test -n "$ac_tool_prefix"; then 13364 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13365set dummy ${ac_tool_prefix}otool; ac_word=$2 13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13367$as_echo_n "checking for $ac_word... " >&6; } 13368if ${ac_cv_prog_OTOOL+:} false; then : 13369 $as_echo_n "(cached) " >&6 13370else 13371 if test -n "$OTOOL"; then 13372 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13373else 13374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13375for as_dir in $PATH 13376do 13377 IFS=$as_save_IFS 13378 test -z "$as_dir" && as_dir=. 13379 for ac_exec_ext in '' $ac_executable_extensions; do 13380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13381 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13383 break 2 13384 fi 13385done 13386 done 13387IFS=$as_save_IFS 13388 13389fi 13390fi 13391OTOOL=$ac_cv_prog_OTOOL 13392if test -n "$OTOOL"; then 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13394$as_echo "$OTOOL" >&6; } 13395else 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13397$as_echo "no" >&6; } 13398fi 13399 13400 13401fi 13402if test -z "$ac_cv_prog_OTOOL"; then 13403 ac_ct_OTOOL=$OTOOL 13404 # Extract the first word of "otool", so it can be a program name with args. 13405set dummy otool; ac_word=$2 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13407$as_echo_n "checking for $ac_word... " >&6; } 13408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410else 13411 if test -n "$ac_ct_OTOOL"; then 13412 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13413else 13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13415for as_dir in $PATH 13416do 13417 IFS=$as_save_IFS 13418 test -z "$as_dir" && as_dir=. 13419 for ac_exec_ext in '' $ac_executable_extensions; do 13420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13421 ac_cv_prog_ac_ct_OTOOL="otool" 13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13423 break 2 13424 fi 13425done 13426 done 13427IFS=$as_save_IFS 13428 13429fi 13430fi 13431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13432if test -n "$ac_ct_OTOOL"; then 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13434$as_echo "$ac_ct_OTOOL" >&6; } 13435else 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13437$as_echo "no" >&6; } 13438fi 13439 13440 if test "x$ac_ct_OTOOL" = x; then 13441 OTOOL=":" 13442 else 13443 case $cross_compiling:$ac_tool_warned in 13444yes:) 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13447ac_tool_warned=yes ;; 13448esac 13449 OTOOL=$ac_ct_OTOOL 13450 fi 13451else 13452 OTOOL="$ac_cv_prog_OTOOL" 13453fi 13454 13455 if test -n "$ac_tool_prefix"; then 13456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13457set dummy ${ac_tool_prefix}otool64; ac_word=$2 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13459$as_echo_n "checking for $ac_word... " >&6; } 13460if ${ac_cv_prog_OTOOL64+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 if test -n "$OTOOL64"; then 13464 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13465else 13466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13467for as_dir in $PATH 13468do 13469 IFS=$as_save_IFS 13470 test -z "$as_dir" && as_dir=. 13471 for ac_exec_ext in '' $ac_executable_extensions; do 13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13473 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13475 break 2 13476 fi 13477done 13478 done 13479IFS=$as_save_IFS 13480 13481fi 13482fi 13483OTOOL64=$ac_cv_prog_OTOOL64 13484if test -n "$OTOOL64"; then 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13486$as_echo "$OTOOL64" >&6; } 13487else 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13489$as_echo "no" >&6; } 13490fi 13491 13492 13493fi 13494if test -z "$ac_cv_prog_OTOOL64"; then 13495 ac_ct_OTOOL64=$OTOOL64 13496 # Extract the first word of "otool64", so it can be a program name with args. 13497set dummy otool64; ac_word=$2 13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13499$as_echo_n "checking for $ac_word... " >&6; } 13500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 if test -n "$ac_ct_OTOOL64"; then 13504 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13505else 13506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13507for as_dir in $PATH 13508do 13509 IFS=$as_save_IFS 13510 test -z "$as_dir" && as_dir=. 13511 for ac_exec_ext in '' $ac_executable_extensions; do 13512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13513 ac_cv_prog_ac_ct_OTOOL64="otool64" 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13515 break 2 13516 fi 13517done 13518 done 13519IFS=$as_save_IFS 13520 13521fi 13522fi 13523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13524if test -n "$ac_ct_OTOOL64"; then 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13526$as_echo "$ac_ct_OTOOL64" >&6; } 13527else 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13529$as_echo "no" >&6; } 13530fi 13531 13532 if test "x$ac_ct_OTOOL64" = x; then 13533 OTOOL64=":" 13534 else 13535 case $cross_compiling:$ac_tool_warned in 13536yes:) 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13539ac_tool_warned=yes ;; 13540esac 13541 OTOOL64=$ac_ct_OTOOL64 13542 fi 13543else 13544 OTOOL64="$ac_cv_prog_OTOOL64" 13545fi 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13574$as_echo_n "checking for -single_module linker flag... " >&6; } 13575if ${lt_cv_apple_cc_single_mod+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 lt_cv_apple_cc_single_mod=no 13579 if test -z "${LT_MULTI_MODULE}"; then 13580 # By default we will add the -single_module flag. You can override 13581 # by either setting the environment variable LT_MULTI_MODULE 13582 # non-empty at configure time, or by adding -multi_module to the 13583 # link flags. 13584 rm -rf libconftest.dylib* 13585 echo "int foo(void){return 1;}" > conftest.c 13586 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13587-dynamiclib -Wl,-single_module conftest.c" >&5 13588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13589 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13590 _lt_result=$? 13591 # If there is a non-empty error log, and "single_module" 13592 # appears in it, assume the flag caused a linker warning 13593 if test -s conftest.err && $GREP single_module conftest.err; then 13594 cat conftest.err >&5 13595 # Otherwise, if the output was created with a 0 exit code from 13596 # the compiler, it worked. 13597 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13598 lt_cv_apple_cc_single_mod=yes 13599 else 13600 cat conftest.err >&5 13601 fi 13602 rm -rf libconftest.dylib* 13603 rm -f conftest.* 13604 fi 13605fi 13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13607$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13608 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13611if ${lt_cv_ld_exported_symbols_list+:} false; then : 13612 $as_echo_n "(cached) " >&6 13613else 13614 lt_cv_ld_exported_symbols_list=no 13615 save_LDFLAGS=$LDFLAGS 13616 echo "_main" > conftest.sym 13617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13619/* end confdefs.h. */ 13620 13621int 13622main () 13623{ 13624 13625 ; 13626 return 0; 13627} 13628_ACEOF 13629if ac_fn_c_try_link "$LINENO"; then : 13630 lt_cv_ld_exported_symbols_list=yes 13631else 13632 lt_cv_ld_exported_symbols_list=no 13633fi 13634rm -f core conftest.err conftest.$ac_objext \ 13635 conftest$ac_exeext conftest.$ac_ext 13636 LDFLAGS="$save_LDFLAGS" 13637 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13641 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13643$as_echo_n "checking for -force_load linker flag... " >&6; } 13644if ${lt_cv_ld_force_load+:} false; then : 13645 $as_echo_n "(cached) " >&6 13646else 13647 lt_cv_ld_force_load=no 13648 cat > conftest.c << _LT_EOF 13649int forced_loaded() { return 2;} 13650_LT_EOF 13651 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13652 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13653 echo "$AR cru libconftest.a conftest.o" >&5 13654 $AR cru libconftest.a conftest.o 2>&5 13655 echo "$RANLIB libconftest.a" >&5 13656 $RANLIB libconftest.a 2>&5 13657 cat > conftest.c << _LT_EOF 13658int main() { return 0;} 13659_LT_EOF 13660 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13661 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13662 _lt_result=$? 13663 if test -s conftest.err && $GREP force_load conftest.err; then 13664 cat conftest.err >&5 13665 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13666 lt_cv_ld_force_load=yes 13667 else 13668 cat conftest.err >&5 13669 fi 13670 rm -f conftest.err libconftest.a conftest conftest.c 13671 rm -rf conftest.dSYM 13672 13673fi 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13675$as_echo "$lt_cv_ld_force_load" >&6; } 13676 case $host_os in 13677 rhapsody* | darwin1.[012]) 13678 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13679 darwin1.*) 13680 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13681 darwin*) # darwin 5.x on 13682 # if running on 10.5 or later, the deployment target defaults 13683 # to the OS version, if on x86, and 10.4, the deployment 13684 # target defaults to 10.4. Don't you love it? 13685 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13686 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13688 10.[012]*) 13689 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13690 10.*) 13691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13692 esac 13693 ;; 13694 esac 13695 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13696 _lt_dar_single_mod='$single_module' 13697 fi 13698 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13699 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13700 else 13701 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13702 fi 13703 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13704 _lt_dsymutil='~$DSYMUTIL $lib || :' 13705 else 13706 _lt_dsymutil= 13707 fi 13708 ;; 13709 esac 13710 13711for ac_header in dlfcn.h 13712do : 13713 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13714" 13715if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13716 cat >>confdefs.h <<_ACEOF 13717#define HAVE_DLFCN_H 1 13718_ACEOF 13719 13720fi 13721 13722done 13723 13724 13725 13726 13727 13728# Set options 13729 13730 13731 13732 enable_dlopen=no 13733 13734 13735 enable_win32_dll=no 13736 13737 13738 # Check whether --enable-shared was given. 13739if test "${enable_shared+set}" = set; then : 13740 enableval=$enable_shared; p=${PACKAGE-default} 13741 case $enableval in 13742 yes) enable_shared=yes ;; 13743 no) enable_shared=no ;; 13744 *) 13745 enable_shared=no 13746 # Look at the argument we got. We use all the common list separators. 13747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13748 for pkg in $enableval; do 13749 IFS="$lt_save_ifs" 13750 if test "X$pkg" = "X$p"; then 13751 enable_shared=yes 13752 fi 13753 done 13754 IFS="$lt_save_ifs" 13755 ;; 13756 esac 13757else 13758 enable_shared=yes 13759fi 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771# Check whether --with-pic was given. 13772if test "${with_pic+set}" = set; then : 13773 withval=$with_pic; lt_p=${PACKAGE-default} 13774 case $withval in 13775 yes|no) pic_mode=$withval ;; 13776 *) 13777 pic_mode=default 13778 # Look at the argument we got. We use all the common list separators. 13779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13780 for lt_pkg in $withval; do 13781 IFS="$lt_save_ifs" 13782 if test "X$lt_pkg" = "X$lt_p"; then 13783 pic_mode=yes 13784 fi 13785 done 13786 IFS="$lt_save_ifs" 13787 ;; 13788 esac 13789else 13790 pic_mode=default 13791fi 13792 13793 13794test -z "$pic_mode" && pic_mode=default 13795 13796 13797 13798 13799 13800 13801 13802 # Check whether --enable-fast-install was given. 13803if test "${enable_fast_install+set}" = set; then : 13804 enableval=$enable_fast_install; p=${PACKAGE-default} 13805 case $enableval in 13806 yes) enable_fast_install=yes ;; 13807 no) enable_fast_install=no ;; 13808 *) 13809 enable_fast_install=no 13810 # Look at the argument we got. We use all the common list separators. 13811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13812 for pkg in $enableval; do 13813 IFS="$lt_save_ifs" 13814 if test "X$pkg" = "X$p"; then 13815 enable_fast_install=yes 13816 fi 13817 done 13818 IFS="$lt_save_ifs" 13819 ;; 13820 esac 13821else 13822 enable_fast_install=yes 13823fi 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835# This can be used to rebuild libtool when needed 13836LIBTOOL_DEPS="$ltmain" 13837 13838# Always use our own libtool. 13839LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870test -z "$LN_S" && LN_S="ln -s" 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885if test -n "${ZSH_VERSION+set}" ; then 13886 setopt NO_GLOB_SUBST 13887fi 13888 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13890$as_echo_n "checking for objdir... " >&6; } 13891if ${lt_cv_objdir+:} false; then : 13892 $as_echo_n "(cached) " >&6 13893else 13894 rm -f .libs 2>/dev/null 13895mkdir .libs 2>/dev/null 13896if test -d .libs; then 13897 lt_cv_objdir=.libs 13898else 13899 # MS-DOS does not allow filenames that begin with a dot. 13900 lt_cv_objdir=_libs 13901fi 13902rmdir .libs 2>/dev/null 13903fi 13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13905$as_echo "$lt_cv_objdir" >&6; } 13906objdir=$lt_cv_objdir 13907 13908 13909 13910 13911 13912cat >>confdefs.h <<_ACEOF 13913#define LT_OBJDIR "$lt_cv_objdir/" 13914_ACEOF 13915 13916 13917 13918 13919case $host_os in 13920aix3*) 13921 # AIX sometimes has problems with the GCC collect2 program. For some 13922 # reason, if we set the COLLECT_NAMES environment variable, the problems 13923 # vanish in a puff of smoke. 13924 if test "X${COLLECT_NAMES+set}" != Xset; then 13925 COLLECT_NAMES= 13926 export COLLECT_NAMES 13927 fi 13928 ;; 13929esac 13930 13931# Global variables: 13932ofile=libtool 13933can_build_shared=yes 13934 13935# All known linkers require a `.a' archive for static linking (except MSVC, 13936# which needs '.lib'). 13937libext=a 13938 13939with_gnu_ld="$lt_cv_prog_gnu_ld" 13940 13941old_CC="$CC" 13942old_CFLAGS="$CFLAGS" 13943 13944# Set sane defaults for various variables 13945test -z "$CC" && CC=cc 13946test -z "$LTCC" && LTCC=$CC 13947test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13948test -z "$LD" && LD=ld 13949test -z "$ac_objext" && ac_objext=o 13950 13951for cc_temp in $compiler""; do 13952 case $cc_temp in 13953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13955 \-*) ;; 13956 *) break;; 13957 esac 13958done 13959cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13960 13961 13962# Only perform the check for file, if the check method requires it 13963test -z "$MAGIC_CMD" && MAGIC_CMD=file 13964case $deplibs_check_method in 13965file_magic*) 13966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13968$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 13969if ${lt_cv_path_MAGIC_CMD+:} false; then : 13970 $as_echo_n "(cached) " >&6 13971else 13972 case $MAGIC_CMD in 13973[\\/*] | ?:[\\/]*) 13974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13975 ;; 13976*) 13977 lt_save_MAGIC_CMD="$MAGIC_CMD" 13978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13980 for ac_dir in $ac_dummy; do 13981 IFS="$lt_save_ifs" 13982 test -z "$ac_dir" && ac_dir=. 13983 if test -f $ac_dir/${ac_tool_prefix}file; then 13984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13985 if test -n "$file_magic_test_file"; then 13986 case $deplibs_check_method in 13987 "file_magic "*) 13988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13991 $EGREP "$file_magic_regex" > /dev/null; then 13992 : 13993 else 13994 cat <<_LT_EOF 1>&2 13995 13996*** Warning: the command libtool uses to detect shared libraries, 13997*** $file_magic_cmd, produces output that libtool cannot recognize. 13998*** The result is that libtool may fail to recognize shared libraries 13999*** as such. This will affect the creation of libtool libraries that 14000*** depend on shared libraries, but programs linked with such libtool 14001*** libraries will work regardless of this problem. Nevertheless, you 14002*** may want to report the problem to your system manager and/or to 14003*** bug-libtool@gnu.org 14004 14005_LT_EOF 14006 fi ;; 14007 esac 14008 fi 14009 break 14010 fi 14011 done 14012 IFS="$lt_save_ifs" 14013 MAGIC_CMD="$lt_save_MAGIC_CMD" 14014 ;; 14015esac 14016fi 14017 14018MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14019if test -n "$MAGIC_CMD"; then 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14021$as_echo "$MAGIC_CMD" >&6; } 14022else 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14024$as_echo "no" >&6; } 14025fi 14026 14027 14028 14029 14030 14031if test -z "$lt_cv_path_MAGIC_CMD"; then 14032 if test -n "$ac_tool_prefix"; then 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14034$as_echo_n "checking for file... " >&6; } 14035if ${lt_cv_path_MAGIC_CMD+:} false; then : 14036 $as_echo_n "(cached) " >&6 14037else 14038 case $MAGIC_CMD in 14039[\\/*] | ?:[\\/]*) 14040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14041 ;; 14042*) 14043 lt_save_MAGIC_CMD="$MAGIC_CMD" 14044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14046 for ac_dir in $ac_dummy; do 14047 IFS="$lt_save_ifs" 14048 test -z "$ac_dir" && ac_dir=. 14049 if test -f $ac_dir/file; then 14050 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14051 if test -n "$file_magic_test_file"; then 14052 case $deplibs_check_method in 14053 "file_magic "*) 14054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14057 $EGREP "$file_magic_regex" > /dev/null; then 14058 : 14059 else 14060 cat <<_LT_EOF 1>&2 14061 14062*** Warning: the command libtool uses to detect shared libraries, 14063*** $file_magic_cmd, produces output that libtool cannot recognize. 14064*** The result is that libtool may fail to recognize shared libraries 14065*** as such. This will affect the creation of libtool libraries that 14066*** depend on shared libraries, but programs linked with such libtool 14067*** libraries will work regardless of this problem. Nevertheless, you 14068*** may want to report the problem to your system manager and/or to 14069*** bug-libtool@gnu.org 14070 14071_LT_EOF 14072 fi ;; 14073 esac 14074 fi 14075 break 14076 fi 14077 done 14078 IFS="$lt_save_ifs" 14079 MAGIC_CMD="$lt_save_MAGIC_CMD" 14080 ;; 14081esac 14082fi 14083 14084MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14085if test -n "$MAGIC_CMD"; then 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14087$as_echo "$MAGIC_CMD" >&6; } 14088else 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14090$as_echo "no" >&6; } 14091fi 14092 14093 14094 else 14095 MAGIC_CMD=: 14096 fi 14097fi 14098 14099 fi 14100 ;; 14101esac 14102 14103# Use C for the default configuration in the libtool script 14104 14105lt_save_CC="$CC" 14106ac_ext=c 14107ac_cpp='$CPP $CPPFLAGS' 14108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14110ac_compiler_gnu=$ac_cv_c_compiler_gnu 14111 14112 14113# Source file extension for C test sources. 14114ac_ext=c 14115 14116# Object file extension for compiled C test sources. 14117objext=o 14118objext=$objext 14119 14120# Code to be used in simple compile tests 14121lt_simple_compile_test_code="int some_variable = 0;" 14122 14123# Code to be used in simple link tests 14124lt_simple_link_test_code='int main(){return(0);}' 14125 14126 14127 14128 14129 14130 14131 14132# If no C compiler was specified, use CC. 14133LTCC=${LTCC-"$CC"} 14134 14135# If no C compiler flags were specified, use CFLAGS. 14136LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14137 14138# Allow CC to be a program name with arguments. 14139compiler=$CC 14140 14141# Save the default compiler, since it gets overwritten when the other 14142# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14143compiler_DEFAULT=$CC 14144 14145# save warnings/boilerplate of simple test code 14146ac_outfile=conftest.$ac_objext 14147echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14148eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14149_lt_compiler_boilerplate=`cat conftest.err` 14150$RM conftest* 14151 14152ac_outfile=conftest.$ac_objext 14153echo "$lt_simple_link_test_code" >conftest.$ac_ext 14154eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14155_lt_linker_boilerplate=`cat conftest.err` 14156$RM -r conftest* 14157 14158 14159if test -n "$compiler"; then 14160 14161lt_prog_compiler_no_builtin_flag= 14162 14163if test "$GCC" = yes; then 14164 case $cc_basename in 14165 nvcc*) 14166 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14167 *) 14168 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14169 esac 14170 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14172$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14173if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14174 $as_echo_n "(cached) " >&6 14175else 14176 lt_cv_prog_compiler_rtti_exceptions=no 14177 ac_outfile=conftest.$ac_objext 14178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14179 lt_compiler_flag="-fno-rtti -fno-exceptions" 14180 # Insert the option either (1) after the last *FLAGS variable, or 14181 # (2) before a word containing "conftest.", or (3) at the end. 14182 # Note that $ac_compile itself does not contain backslashes and begins 14183 # with a dollar sign (not a hyphen), so the echo should work correctly. 14184 # The option is referenced via a variable to avoid confusing sed. 14185 lt_compile=`echo "$ac_compile" | $SED \ 14186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14188 -e 's:$: $lt_compiler_flag:'` 14189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14190 (eval "$lt_compile" 2>conftest.err) 14191 ac_status=$? 14192 cat conftest.err >&5 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14194 if (exit $ac_status) && test -s "$ac_outfile"; then 14195 # The compiler can only warn and ignore the option if not recognized 14196 # So say no if there are warnings other than the usual output. 14197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14200 lt_cv_prog_compiler_rtti_exceptions=yes 14201 fi 14202 fi 14203 $RM conftest* 14204 14205fi 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14207$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14208 14209if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14210 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14211else 14212 : 14213fi 14214 14215fi 14216 14217 14218 14219 14220 14221 14222 lt_prog_compiler_wl= 14223lt_prog_compiler_pic= 14224lt_prog_compiler_static= 14225 14226 14227 if test "$GCC" = yes; then 14228 lt_prog_compiler_wl='-Wl,' 14229 lt_prog_compiler_static='-static' 14230 14231 case $host_os in 14232 aix*) 14233 # All AIX code is PIC. 14234 if test "$host_cpu" = ia64; then 14235 # AIX 5 now supports IA64 processor 14236 lt_prog_compiler_static='-Bstatic' 14237 fi 14238 ;; 14239 14240 amigaos*) 14241 case $host_cpu in 14242 powerpc) 14243 # see comment about AmigaOS4 .so support 14244 lt_prog_compiler_pic='-fPIC' 14245 ;; 14246 m68k) 14247 # FIXME: we need at least 68020 code to build shared libraries, but 14248 # adding the `-m68020' flag to GCC prevents building anything better, 14249 # like `-m68040'. 14250 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14251 ;; 14252 esac 14253 ;; 14254 14255 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14256 # PIC is the default for these OSes. 14257 ;; 14258 14259 mingw* | cygwin* | pw32* | os2* | cegcc*) 14260 # This hack is so that the source file can tell whether it is being 14261 # built for inclusion in a dll (and should export symbols for example). 14262 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14263 # (--disable-auto-import) libraries 14264 lt_prog_compiler_pic='-DDLL_EXPORT' 14265 ;; 14266 14267 darwin* | rhapsody*) 14268 # PIC is the default on this platform 14269 # Common symbols not allowed in MH_DYLIB files 14270 lt_prog_compiler_pic='-fno-common' 14271 ;; 14272 14273 haiku*) 14274 # PIC is the default for Haiku. 14275 # The "-static" flag exists, but is broken. 14276 lt_prog_compiler_static= 14277 ;; 14278 14279 hpux*) 14280 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14281 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14282 # sets the default TLS model and affects inlining. 14283 case $host_cpu in 14284 hppa*64*) 14285 # +Z the default 14286 ;; 14287 *) 14288 lt_prog_compiler_pic='-fPIC' 14289 ;; 14290 esac 14291 ;; 14292 14293 interix[3-9]*) 14294 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14295 # Instead, we relocate shared libraries at runtime. 14296 ;; 14297 14298 msdosdjgpp*) 14299 # Just because we use GCC doesn't mean we suddenly get shared libraries 14300 # on systems that don't support them. 14301 lt_prog_compiler_can_build_shared=no 14302 enable_shared=no 14303 ;; 14304 14305 *nto* | *qnx*) 14306 # QNX uses GNU C++, but need to define -shared option too, otherwise 14307 # it will coredump. 14308 lt_prog_compiler_pic='-fPIC -shared' 14309 ;; 14310 14311 sysv4*MP*) 14312 if test -d /usr/nec; then 14313 lt_prog_compiler_pic=-Kconform_pic 14314 fi 14315 ;; 14316 14317 *) 14318 lt_prog_compiler_pic='-fPIC' 14319 ;; 14320 esac 14321 14322 case $cc_basename in 14323 nvcc*) # Cuda Compiler Driver 2.2 14324 lt_prog_compiler_wl='-Xlinker ' 14325 if test -n "$lt_prog_compiler_pic"; then 14326 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14327 fi 14328 ;; 14329 esac 14330 else 14331 # PORTME Check for flag to pass linker flags through the system compiler. 14332 case $host_os in 14333 aix*) 14334 lt_prog_compiler_wl='-Wl,' 14335 if test "$host_cpu" = ia64; then 14336 # AIX 5 now supports IA64 processor 14337 lt_prog_compiler_static='-Bstatic' 14338 else 14339 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14340 fi 14341 ;; 14342 14343 mingw* | cygwin* | pw32* | os2* | cegcc*) 14344 # This hack is so that the source file can tell whether it is being 14345 # built for inclusion in a dll (and should export symbols for example). 14346 lt_prog_compiler_pic='-DDLL_EXPORT' 14347 ;; 14348 14349 hpux9* | hpux10* | hpux11*) 14350 lt_prog_compiler_wl='-Wl,' 14351 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14352 # not for PA HP-UX. 14353 case $host_cpu in 14354 hppa*64*|ia64*) 14355 # +Z the default 14356 ;; 14357 *) 14358 lt_prog_compiler_pic='+Z' 14359 ;; 14360 esac 14361 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14362 lt_prog_compiler_static='${wl}-a ${wl}archive' 14363 ;; 14364 14365 irix5* | irix6* | nonstopux*) 14366 lt_prog_compiler_wl='-Wl,' 14367 # PIC (with -KPIC) is the default. 14368 lt_prog_compiler_static='-non_shared' 14369 ;; 14370 14371 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14372 case $cc_basename in 14373 # old Intel for x86_64 which still supported -KPIC. 14374 ecc*) 14375 lt_prog_compiler_wl='-Wl,' 14376 lt_prog_compiler_pic='-KPIC' 14377 lt_prog_compiler_static='-static' 14378 ;; 14379 # icc used to be incompatible with GCC. 14380 # ICC 10 doesn't accept -KPIC any more. 14381 icc* | ifort*) 14382 lt_prog_compiler_wl='-Wl,' 14383 lt_prog_compiler_pic='-fPIC' 14384 lt_prog_compiler_static='-static' 14385 ;; 14386 # Lahey Fortran 8.1. 14387 lf95*) 14388 lt_prog_compiler_wl='-Wl,' 14389 lt_prog_compiler_pic='--shared' 14390 lt_prog_compiler_static='--static' 14391 ;; 14392 nagfor*) 14393 # NAG Fortran compiler 14394 lt_prog_compiler_wl='-Wl,-Wl,,' 14395 lt_prog_compiler_pic='-PIC' 14396 lt_prog_compiler_static='-Bstatic' 14397 ;; 14398 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14399 # Portland Group compilers (*not* the Pentium gcc compiler, 14400 # which looks to be a dead project) 14401 lt_prog_compiler_wl='-Wl,' 14402 lt_prog_compiler_pic='-fpic' 14403 lt_prog_compiler_static='-Bstatic' 14404 ;; 14405 ccc*) 14406 lt_prog_compiler_wl='-Wl,' 14407 # All Alpha code is PIC. 14408 lt_prog_compiler_static='-non_shared' 14409 ;; 14410 xl* | bgxl* | bgf* | mpixl*) 14411 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14412 lt_prog_compiler_wl='-Wl,' 14413 lt_prog_compiler_pic='-qpic' 14414 lt_prog_compiler_static='-qstaticlink' 14415 ;; 14416 *) 14417 case `$CC -V 2>&1 | sed 5q` in 14418 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14419 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14420 lt_prog_compiler_pic='-KPIC' 14421 lt_prog_compiler_static='-Bstatic' 14422 lt_prog_compiler_wl='' 14423 ;; 14424 *Sun\ F* | *Sun*Fortran*) 14425 lt_prog_compiler_pic='-KPIC' 14426 lt_prog_compiler_static='-Bstatic' 14427 lt_prog_compiler_wl='-Qoption ld ' 14428 ;; 14429 *Sun\ C*) 14430 # Sun C 5.9 14431 lt_prog_compiler_pic='-KPIC' 14432 lt_prog_compiler_static='-Bstatic' 14433 lt_prog_compiler_wl='-Wl,' 14434 ;; 14435 *Intel*\ [CF]*Compiler*) 14436 lt_prog_compiler_wl='-Wl,' 14437 lt_prog_compiler_pic='-fPIC' 14438 lt_prog_compiler_static='-static' 14439 ;; 14440 *Portland\ Group*) 14441 lt_prog_compiler_wl='-Wl,' 14442 lt_prog_compiler_pic='-fpic' 14443 lt_prog_compiler_static='-Bstatic' 14444 ;; 14445 esac 14446 ;; 14447 esac 14448 ;; 14449 14450 newsos6) 14451 lt_prog_compiler_pic='-KPIC' 14452 lt_prog_compiler_static='-Bstatic' 14453 ;; 14454 14455 *nto* | *qnx*) 14456 # QNX uses GNU C++, but need to define -shared option too, otherwise 14457 # it will coredump. 14458 lt_prog_compiler_pic='-fPIC -shared' 14459 ;; 14460 14461 osf3* | osf4* | osf5*) 14462 lt_prog_compiler_wl='-Wl,' 14463 # All OSF/1 code is PIC. 14464 lt_prog_compiler_static='-non_shared' 14465 ;; 14466 14467 rdos*) 14468 lt_prog_compiler_static='-non_shared' 14469 ;; 14470 14471 solaris*) 14472 lt_prog_compiler_pic='-KPIC' 14473 lt_prog_compiler_static='-Bstatic' 14474 case $cc_basename in 14475 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14476 lt_prog_compiler_wl='-Qoption ld ';; 14477 *) 14478 lt_prog_compiler_wl='-Wl,';; 14479 esac 14480 ;; 14481 14482 sunos4*) 14483 lt_prog_compiler_wl='-Qoption ld ' 14484 lt_prog_compiler_pic='-PIC' 14485 lt_prog_compiler_static='-Bstatic' 14486 ;; 14487 14488 sysv4 | sysv4.2uw2* | sysv4.3*) 14489 lt_prog_compiler_wl='-Wl,' 14490 lt_prog_compiler_pic='-KPIC' 14491 lt_prog_compiler_static='-Bstatic' 14492 ;; 14493 14494 sysv4*MP*) 14495 if test -d /usr/nec ;then 14496 lt_prog_compiler_pic='-Kconform_pic' 14497 lt_prog_compiler_static='-Bstatic' 14498 fi 14499 ;; 14500 14501 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14502 lt_prog_compiler_wl='-Wl,' 14503 lt_prog_compiler_pic='-KPIC' 14504 lt_prog_compiler_static='-Bstatic' 14505 ;; 14506 14507 unicos*) 14508 lt_prog_compiler_wl='-Wl,' 14509 lt_prog_compiler_can_build_shared=no 14510 ;; 14511 14512 uts4*) 14513 lt_prog_compiler_pic='-pic' 14514 lt_prog_compiler_static='-Bstatic' 14515 ;; 14516 14517 *) 14518 lt_prog_compiler_can_build_shared=no 14519 ;; 14520 esac 14521 fi 14522 14523case $host_os in 14524 # For platforms which do not support PIC, -DPIC is meaningless: 14525 *djgpp*) 14526 lt_prog_compiler_pic= 14527 ;; 14528 *) 14529 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14530 ;; 14531esac 14532 14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14534$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14535if ${lt_cv_prog_compiler_pic+:} false; then : 14536 $as_echo_n "(cached) " >&6 14537else 14538 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14539fi 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14541$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14542lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14543 14544# 14545# Check to make sure the PIC flag actually works. 14546# 14547if test -n "$lt_prog_compiler_pic"; then 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14549$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14550if ${lt_cv_prog_compiler_pic_works+:} false; then : 14551 $as_echo_n "(cached) " >&6 14552else 14553 lt_cv_prog_compiler_pic_works=no 14554 ac_outfile=conftest.$ac_objext 14555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14557 # Insert the option either (1) after the last *FLAGS variable, or 14558 # (2) before a word containing "conftest.", or (3) at the end. 14559 # Note that $ac_compile itself does not contain backslashes and begins 14560 # with a dollar sign (not a hyphen), so the echo should work correctly. 14561 # The option is referenced via a variable to avoid confusing sed. 14562 lt_compile=`echo "$ac_compile" | $SED \ 14563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14565 -e 's:$: $lt_compiler_flag:'` 14566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14567 (eval "$lt_compile" 2>conftest.err) 14568 ac_status=$? 14569 cat conftest.err >&5 14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14571 if (exit $ac_status) && test -s "$ac_outfile"; then 14572 # The compiler can only warn and ignore the option if not recognized 14573 # So say no if there are warnings other than the usual output. 14574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14577 lt_cv_prog_compiler_pic_works=yes 14578 fi 14579 fi 14580 $RM conftest* 14581 14582fi 14583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14584$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14585 14586if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14587 case $lt_prog_compiler_pic in 14588 "" | " "*) ;; 14589 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14590 esac 14591else 14592 lt_prog_compiler_pic= 14593 lt_prog_compiler_can_build_shared=no 14594fi 14595 14596fi 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608# 14609# Check to make sure the static flag actually works. 14610# 14611wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14613$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14614if ${lt_cv_prog_compiler_static_works+:} false; then : 14615 $as_echo_n "(cached) " >&6 14616else 14617 lt_cv_prog_compiler_static_works=no 14618 save_LDFLAGS="$LDFLAGS" 14619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14620 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14622 # The linker can only warn and ignore the option if not recognized 14623 # So say no if there are warnings 14624 if test -s conftest.err; then 14625 # Append any errors to the config.log. 14626 cat conftest.err 1>&5 14627 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14629 if diff conftest.exp conftest.er2 >/dev/null; then 14630 lt_cv_prog_compiler_static_works=yes 14631 fi 14632 else 14633 lt_cv_prog_compiler_static_works=yes 14634 fi 14635 fi 14636 $RM -r conftest* 14637 LDFLAGS="$save_LDFLAGS" 14638 14639fi 14640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14641$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14642 14643if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14644 : 14645else 14646 lt_prog_compiler_static= 14647fi 14648 14649 14650 14651 14652 14653 14654 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14657if ${lt_cv_prog_compiler_c_o+:} false; then : 14658 $as_echo_n "(cached) " >&6 14659else 14660 lt_cv_prog_compiler_c_o=no 14661 $RM -r conftest 2>/dev/null 14662 mkdir conftest 14663 cd conftest 14664 mkdir out 14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14666 14667 lt_compiler_flag="-o out/conftest2.$ac_objext" 14668 # Insert the option either (1) after the last *FLAGS variable, or 14669 # (2) before a word containing "conftest.", or (3) at the end. 14670 # Note that $ac_compile itself does not contain backslashes and begins 14671 # with a dollar sign (not a hyphen), so the echo should work correctly. 14672 lt_compile=`echo "$ac_compile" | $SED \ 14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14675 -e 's:$: $lt_compiler_flag:'` 14676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14677 (eval "$lt_compile" 2>out/conftest.err) 14678 ac_status=$? 14679 cat out/conftest.err >&5 14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14681 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14682 then 14683 # The compiler can only warn and ignore the option if not recognized 14684 # So say no if there are warnings 14685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14688 lt_cv_prog_compiler_c_o=yes 14689 fi 14690 fi 14691 chmod u+w . 2>&5 14692 $RM conftest* 14693 # SGI C++ compiler will create directory out/ii_files/ for 14694 # template instantiation 14695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14696 $RM out/* && rmdir out 14697 cd .. 14698 $RM -r conftest 14699 $RM conftest* 14700 14701fi 14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14703$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14704 14705 14706 14707 14708 14709 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14712if ${lt_cv_prog_compiler_c_o+:} false; then : 14713 $as_echo_n "(cached) " >&6 14714else 14715 lt_cv_prog_compiler_c_o=no 14716 $RM -r conftest 2>/dev/null 14717 mkdir conftest 14718 cd conftest 14719 mkdir out 14720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14721 14722 lt_compiler_flag="-o out/conftest2.$ac_objext" 14723 # Insert the option either (1) after the last *FLAGS variable, or 14724 # (2) before a word containing "conftest.", or (3) at the end. 14725 # Note that $ac_compile itself does not contain backslashes and begins 14726 # with a dollar sign (not a hyphen), so the echo should work correctly. 14727 lt_compile=`echo "$ac_compile" | $SED \ 14728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14730 -e 's:$: $lt_compiler_flag:'` 14731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14732 (eval "$lt_compile" 2>out/conftest.err) 14733 ac_status=$? 14734 cat out/conftest.err >&5 14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14736 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14737 then 14738 # The compiler can only warn and ignore the option if not recognized 14739 # So say no if there are warnings 14740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14743 lt_cv_prog_compiler_c_o=yes 14744 fi 14745 fi 14746 chmod u+w . 2>&5 14747 $RM conftest* 14748 # SGI C++ compiler will create directory out/ii_files/ for 14749 # template instantiation 14750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14751 $RM out/* && rmdir out 14752 cd .. 14753 $RM -r conftest 14754 $RM conftest* 14755 14756fi 14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14758$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14759 14760 14761 14762 14763hard_links="nottested" 14764if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14765 # do not overwrite the value of need_locks provided by the user 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14767$as_echo_n "checking if we can lock with hard links... " >&6; } 14768 hard_links=yes 14769 $RM conftest* 14770 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14771 touch conftest.a 14772 ln conftest.a conftest.b 2>&5 || hard_links=no 14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14775$as_echo "$hard_links" >&6; } 14776 if test "$hard_links" = no; then 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14778$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14779 need_locks=warn 14780 fi 14781else 14782 need_locks=no 14783fi 14784 14785 14786 14787 14788 14789 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14791$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14792 14793 runpath_var= 14794 allow_undefined_flag= 14795 always_export_symbols=no 14796 archive_cmds= 14797 archive_expsym_cmds= 14798 compiler_needs_object=no 14799 enable_shared_with_static_runtimes=no 14800 export_dynamic_flag_spec= 14801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14802 hardcode_automatic=no 14803 hardcode_direct=no 14804 hardcode_direct_absolute=no 14805 hardcode_libdir_flag_spec= 14806 hardcode_libdir_separator= 14807 hardcode_minus_L=no 14808 hardcode_shlibpath_var=unsupported 14809 inherit_rpath=no 14810 link_all_deplibs=unknown 14811 module_cmds= 14812 module_expsym_cmds= 14813 old_archive_from_new_cmds= 14814 old_archive_from_expsyms_cmds= 14815 thread_safe_flag_spec= 14816 whole_archive_flag_spec= 14817 # include_expsyms should be a list of space-separated symbols to be *always* 14818 # included in the symbol list 14819 include_expsyms= 14820 # exclude_expsyms can be an extended regexp of symbols to exclude 14821 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14822 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14823 # as well as any symbol that contains `d'. 14824 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14825 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14826 # platforms (ab)use it in PIC code, but their linkers get confused if 14827 # the symbol is explicitly referenced. Since portable code cannot 14828 # rely on this symbol name, it's probably fine to never include it in 14829 # preloaded symbol tables. 14830 # Exclude shared library initialization/finalization symbols. 14831 extract_expsyms_cmds= 14832 14833 case $host_os in 14834 cygwin* | mingw* | pw32* | cegcc*) 14835 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14836 # When not using gcc, we currently assume that we are using 14837 # Microsoft Visual C++. 14838 if test "$GCC" != yes; then 14839 with_gnu_ld=no 14840 fi 14841 ;; 14842 interix*) 14843 # we just hope/assume this is gcc and not c89 (= MSVC++) 14844 with_gnu_ld=yes 14845 ;; 14846 openbsd*) 14847 with_gnu_ld=no 14848 ;; 14849 linux* | k*bsd*-gnu | gnu*) 14850 link_all_deplibs=no 14851 ;; 14852 esac 14853 14854 ld_shlibs=yes 14855 14856 # On some targets, GNU ld is compatible enough with the native linker 14857 # that we're better off using the native interface for both. 14858 lt_use_gnu_ld_interface=no 14859 if test "$with_gnu_ld" = yes; then 14860 case $host_os in 14861 aix*) 14862 # The AIX port of GNU ld has always aspired to compatibility 14863 # with the native linker. However, as the warning in the GNU ld 14864 # block says, versions before 2.19.5* couldn't really create working 14865 # shared libraries, regardless of the interface used. 14866 case `$LD -v 2>&1` in 14867 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14868 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14869 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14870 *) 14871 lt_use_gnu_ld_interface=yes 14872 ;; 14873 esac 14874 ;; 14875 *) 14876 lt_use_gnu_ld_interface=yes 14877 ;; 14878 esac 14879 fi 14880 14881 if test "$lt_use_gnu_ld_interface" = yes; then 14882 # If archive_cmds runs LD, not CC, wlarc should be empty 14883 wlarc='${wl}' 14884 14885 # Set some defaults for GNU ld with shared library support. These 14886 # are reset later if shared libraries are not supported. Putting them 14887 # here allows them to be overridden if necessary. 14888 runpath_var=LD_RUN_PATH 14889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14890 export_dynamic_flag_spec='${wl}--export-dynamic' 14891 # ancient GNU ld didn't support --whole-archive et. al. 14892 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14893 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14894 else 14895 whole_archive_flag_spec= 14896 fi 14897 supports_anon_versioning=no 14898 case `$LD -v 2>&1` in 14899 *GNU\ gold*) supports_anon_versioning=yes ;; 14900 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14903 *\ 2.11.*) ;; # other 2.11 versions 14904 *) supports_anon_versioning=yes ;; 14905 esac 14906 14907 # See if GNU ld supports shared libraries. 14908 case $host_os in 14909 aix[3-9]*) 14910 # On AIX/PPC, the GNU linker is very broken 14911 if test "$host_cpu" != ia64; then 14912 ld_shlibs=no 14913 cat <<_LT_EOF 1>&2 14914 14915*** Warning: the GNU linker, at least up to release 2.19, is reported 14916*** to be unable to reliably create shared libraries on AIX. 14917*** Therefore, libtool is disabling shared libraries support. If you 14918*** really care for shared libraries, you may want to install binutils 14919*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14920*** You will then need to restart the configuration process. 14921 14922_LT_EOF 14923 fi 14924 ;; 14925 14926 amigaos*) 14927 case $host_cpu in 14928 powerpc) 14929 # see comment about AmigaOS4 .so support 14930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14931 archive_expsym_cmds='' 14932 ;; 14933 m68k) 14934 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)' 14935 hardcode_libdir_flag_spec='-L$libdir' 14936 hardcode_minus_L=yes 14937 ;; 14938 esac 14939 ;; 14940 14941 beos*) 14942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14943 allow_undefined_flag=unsupported 14944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14945 # support --undefined. This deserves some investigation. FIXME 14946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14947 else 14948 ld_shlibs=no 14949 fi 14950 ;; 14951 14952 cygwin* | mingw* | pw32* | cegcc*) 14953 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14954 # as there is no search path for DLLs. 14955 hardcode_libdir_flag_spec='-L$libdir' 14956 export_dynamic_flag_spec='${wl}--export-all-symbols' 14957 allow_undefined_flag=unsupported 14958 always_export_symbols=no 14959 enable_shared_with_static_runtimes=yes 14960 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' 14961 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14962 14963 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14965 # If the export-symbols file already is a .def file (1st line 14966 # is EXPORTS), use it as is; otherwise, prepend... 14967 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14968 cp $export_symbols $output_objdir/$soname.def; 14969 else 14970 echo EXPORTS > $output_objdir/$soname.def; 14971 cat $export_symbols >> $output_objdir/$soname.def; 14972 fi~ 14973 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14974 else 14975 ld_shlibs=no 14976 fi 14977 ;; 14978 14979 haiku*) 14980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14981 link_all_deplibs=yes 14982 ;; 14983 14984 interix[3-9]*) 14985 hardcode_direct=no 14986 hardcode_shlibpath_var=no 14987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14988 export_dynamic_flag_spec='${wl}-E' 14989 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14990 # Instead, shared libraries are loaded at an image base (0x10000000 by 14991 # default) and relocated if they conflict, which is a slow very memory 14992 # consuming and fragmenting process. To avoid this, we pick a random, 14993 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14994 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14996 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' 14997 ;; 14998 14999 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15000 tmp_diet=no 15001 if test "$host_os" = linux-dietlibc; then 15002 case $cc_basename in 15003 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15004 esac 15005 fi 15006 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15007 && test "$tmp_diet" = no 15008 then 15009 tmp_addflag=' $pic_flag' 15010 tmp_sharedflag='-shared' 15011 case $cc_basename,$host_cpu in 15012 pgcc*) # Portland Group C compiler 15013 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' 15014 tmp_addflag=' $pic_flag' 15015 ;; 15016 pgf77* | pgf90* | pgf95* | pgfortran*) 15017 # Portland Group f77 and f90 compilers 15018 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' 15019 tmp_addflag=' $pic_flag -Mnomain' ;; 15020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15021 tmp_addflag=' -i_dynamic' ;; 15022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15023 tmp_addflag=' -i_dynamic -nofor_main' ;; 15024 ifc* | ifort*) # Intel Fortran compiler 15025 tmp_addflag=' -nofor_main' ;; 15026 lf95*) # Lahey Fortran 8.1 15027 whole_archive_flag_spec= 15028 tmp_sharedflag='--shared' ;; 15029 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15030 tmp_sharedflag='-qmkshrobj' 15031 tmp_addflag= ;; 15032 nvcc*) # Cuda Compiler Driver 2.2 15033 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' 15034 compiler_needs_object=yes 15035 ;; 15036 esac 15037 case `$CC -V 2>&1 | sed 5q` in 15038 *Sun\ C*) # Sun C 5.9 15039 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' 15040 compiler_needs_object=yes 15041 tmp_sharedflag='-G' ;; 15042 *Sun\ F*) # Sun Fortran 8.3 15043 tmp_sharedflag='-G' ;; 15044 esac 15045 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15046 15047 if test "x$supports_anon_versioning" = xyes; then 15048 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15050 echo "local: *; };" >> $output_objdir/$libname.ver~ 15051 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15052 fi 15053 15054 case $cc_basename in 15055 xlf* | bgf* | bgxlf* | mpixlf*) 15056 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15057 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15059 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15060 if test "x$supports_anon_versioning" = xyes; then 15061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15063 echo "local: *; };" >> $output_objdir/$libname.ver~ 15064 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15065 fi 15066 ;; 15067 esac 15068 else 15069 ld_shlibs=no 15070 fi 15071 ;; 15072 15073 netbsd* | netbsdelf*-gnu) 15074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15075 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15076 wlarc= 15077 else 15078 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15079 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15080 fi 15081 ;; 15082 15083 solaris*) 15084 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15085 ld_shlibs=no 15086 cat <<_LT_EOF 1>&2 15087 15088*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15089*** create shared libraries on Solaris systems. Therefore, libtool 15090*** is disabling shared libraries support. We urge you to upgrade GNU 15091*** binutils to release 2.9.1 or newer. Another option is to modify 15092*** your PATH or compiler configuration so that the native linker is 15093*** used, and then restart. 15094 15095_LT_EOF 15096 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15097 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15098 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15099 else 15100 ld_shlibs=no 15101 fi 15102 ;; 15103 15104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15105 case `$LD -v 2>&1` in 15106 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15107 ld_shlibs=no 15108 cat <<_LT_EOF 1>&2 15109 15110*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15111*** reliably create shared libraries on SCO systems. Therefore, libtool 15112*** is disabling shared libraries support. We urge you to upgrade GNU 15113*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15114*** your PATH or compiler configuration so that the native linker is 15115*** used, and then restart. 15116 15117_LT_EOF 15118 ;; 15119 *) 15120 # For security reasons, it is highly recommended that you always 15121 # use absolute paths for naming shared libraries, and exclude the 15122 # DT_RUNPATH tag from executables and libraries. But doing so 15123 # requires that you compile everything twice, which is a pain. 15124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15128 else 15129 ld_shlibs=no 15130 fi 15131 ;; 15132 esac 15133 ;; 15134 15135 sunos4*) 15136 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15137 wlarc= 15138 hardcode_direct=yes 15139 hardcode_shlibpath_var=no 15140 ;; 15141 15142 *) 15143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15145 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15146 else 15147 ld_shlibs=no 15148 fi 15149 ;; 15150 esac 15151 15152 if test "$ld_shlibs" = no; then 15153 runpath_var= 15154 hardcode_libdir_flag_spec= 15155 export_dynamic_flag_spec= 15156 whole_archive_flag_spec= 15157 fi 15158 else 15159 # PORTME fill in a description of your system's linker (not GNU ld) 15160 case $host_os in 15161 aix3*) 15162 allow_undefined_flag=unsupported 15163 always_export_symbols=yes 15164 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' 15165 # Note: this linker hardcodes the directories in LIBPATH if there 15166 # are no directories specified by -L. 15167 hardcode_minus_L=yes 15168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15169 # Neither direct hardcoding nor static linking is supported with a 15170 # broken collect2. 15171 hardcode_direct=unsupported 15172 fi 15173 ;; 15174 15175 aix[4-9]*) 15176 if test "$host_cpu" = ia64; then 15177 # On IA64, the linker does run time linking by default, so we don't 15178 # have to do anything special. 15179 aix_use_runtimelinking=no 15180 exp_sym_flag='-Bexport' 15181 no_entry_flag="" 15182 else 15183 # If we're using GNU nm, then we don't want the "-C" option. 15184 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15185 # Also, AIX nm treats weak defined symbols like other global 15186 # defined symbols, whereas GNU nm marks them as "W". 15187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15188 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15189 else 15190 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15191 fi 15192 aix_use_runtimelinking=no 15193 15194 # Test if we are trying to use run time linking or normal 15195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15196 # need to do runtime linking. 15197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15198 for ld_flag in $LDFLAGS; do 15199 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15200 aix_use_runtimelinking=yes 15201 break 15202 fi 15203 done 15204 ;; 15205 esac 15206 15207 exp_sym_flag='-bexport' 15208 no_entry_flag='-bnoentry' 15209 fi 15210 15211 # When large executables or shared objects are built, AIX ld can 15212 # have problems creating the table of contents. If linking a library 15213 # or program results in "error TOC overflow" add -mminimal-toc to 15214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15216 15217 archive_cmds='' 15218 hardcode_direct=yes 15219 hardcode_direct_absolute=yes 15220 hardcode_libdir_separator=':' 15221 link_all_deplibs=yes 15222 file_list_spec='${wl}-f,' 15223 15224 if test "$GCC" = yes; then 15225 case $host_os in aix4.[012]|aix4.[012].*) 15226 # We only want to do this on AIX 4.2 and lower, the check 15227 # below for broken collect2 doesn't work under 4.3+ 15228 collect2name=`${CC} -print-prog-name=collect2` 15229 if test -f "$collect2name" && 15230 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15231 then 15232 # We have reworked collect2 15233 : 15234 else 15235 # We have old collect2 15236 hardcode_direct=unsupported 15237 # It fails to find uninstalled libraries when the uninstalled 15238 # path is not listed in the libpath. Setting hardcode_minus_L 15239 # to unsupported forces relinking 15240 hardcode_minus_L=yes 15241 hardcode_libdir_flag_spec='-L$libdir' 15242 hardcode_libdir_separator= 15243 fi 15244 ;; 15245 esac 15246 shared_flag='-shared' 15247 if test "$aix_use_runtimelinking" = yes; then 15248 shared_flag="$shared_flag "'${wl}-G' 15249 fi 15250 link_all_deplibs=no 15251 else 15252 # not using gcc 15253 if test "$host_cpu" = ia64; then 15254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15255 # chokes on -Wl,-G. The following line is correct: 15256 shared_flag='-G' 15257 else 15258 if test "$aix_use_runtimelinking" = yes; then 15259 shared_flag='${wl}-G' 15260 else 15261 shared_flag='${wl}-bM:SRE' 15262 fi 15263 fi 15264 fi 15265 15266 export_dynamic_flag_spec='${wl}-bexpall' 15267 # It seems that -bexpall does not export symbols beginning with 15268 # underscore (_), so it is better to generate a list of symbols to export. 15269 always_export_symbols=yes 15270 if test "$aix_use_runtimelinking" = yes; then 15271 # Warning - without using the other runtime loading flags (-brtl), 15272 # -berok will link without error, but may produce a broken library. 15273 allow_undefined_flag='-berok' 15274 # Determine the default libpath from the value encoded in an 15275 # empty executable. 15276 if test "${lt_cv_aix_libpath+set}" = set; then 15277 aix_libpath=$lt_cv_aix_libpath 15278else 15279 if ${lt_cv_aix_libpath_+:} false; then : 15280 $as_echo_n "(cached) " >&6 15281else 15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15283/* end confdefs.h. */ 15284 15285int 15286main () 15287{ 15288 15289 ; 15290 return 0; 15291} 15292_ACEOF 15293if ac_fn_c_try_link "$LINENO"; then : 15294 15295 lt_aix_libpath_sed=' 15296 /Import File Strings/,/^$/ { 15297 /^0/ { 15298 s/^0 *\([^ ]*\) *$/\1/ 15299 p 15300 } 15301 }' 15302 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15303 # Check for a 64-bit object if we didn't find anything. 15304 if test -z "$lt_cv_aix_libpath_"; then 15305 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15306 fi 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext conftest.$ac_ext 15310 if test -z "$lt_cv_aix_libpath_"; then 15311 lt_cv_aix_libpath_="/usr/lib:/lib" 15312 fi 15313 15314fi 15315 15316 aix_libpath=$lt_cv_aix_libpath_ 15317fi 15318 15319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15320 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15321 else 15322 if test "$host_cpu" = ia64; then 15323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15324 allow_undefined_flag="-z nodefs" 15325 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" 15326 else 15327 # Determine the default libpath from the value encoded in an 15328 # empty executable. 15329 if test "${lt_cv_aix_libpath+set}" = set; then 15330 aix_libpath=$lt_cv_aix_libpath 15331else 15332 if ${lt_cv_aix_libpath_+:} false; then : 15333 $as_echo_n "(cached) " >&6 15334else 15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15336/* end confdefs.h. */ 15337 15338int 15339main () 15340{ 15341 15342 ; 15343 return 0; 15344} 15345_ACEOF 15346if ac_fn_c_try_link "$LINENO"; then : 15347 15348 lt_aix_libpath_sed=' 15349 /Import File Strings/,/^$/ { 15350 /^0/ { 15351 s/^0 *\([^ ]*\) *$/\1/ 15352 p 15353 } 15354 }' 15355 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15356 # Check for a 64-bit object if we didn't find anything. 15357 if test -z "$lt_cv_aix_libpath_"; then 15358 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15359 fi 15360fi 15361rm -f core conftest.err conftest.$ac_objext \ 15362 conftest$ac_exeext conftest.$ac_ext 15363 if test -z "$lt_cv_aix_libpath_"; then 15364 lt_cv_aix_libpath_="/usr/lib:/lib" 15365 fi 15366 15367fi 15368 15369 aix_libpath=$lt_cv_aix_libpath_ 15370fi 15371 15372 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15373 # Warning - without using the other run time loading flags, 15374 # -berok will link without error, but may produce a broken library. 15375 no_undefined_flag=' ${wl}-bernotok' 15376 allow_undefined_flag=' ${wl}-berok' 15377 if test "$with_gnu_ld" = yes; then 15378 # We only use this code for GNU lds that support --whole-archive. 15379 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15380 else 15381 # Exported symbols can be pulled into shared objects from archives 15382 whole_archive_flag_spec='$convenience' 15383 fi 15384 archive_cmds_need_lc=yes 15385 # This is similar to how AIX traditionally builds its shared libraries. 15386 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15387 fi 15388 fi 15389 ;; 15390 15391 amigaos*) 15392 case $host_cpu in 15393 powerpc) 15394 # see comment about AmigaOS4 .so support 15395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15396 archive_expsym_cmds='' 15397 ;; 15398 m68k) 15399 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)' 15400 hardcode_libdir_flag_spec='-L$libdir' 15401 hardcode_minus_L=yes 15402 ;; 15403 esac 15404 ;; 15405 15406 bsdi[45]*) 15407 export_dynamic_flag_spec=-rdynamic 15408 ;; 15409 15410 cygwin* | mingw* | pw32* | cegcc*) 15411 # When not using gcc, we currently assume that we are using 15412 # Microsoft Visual C++. 15413 # hardcode_libdir_flag_spec is actually meaningless, as there is 15414 # no search path for DLLs. 15415 case $cc_basename in 15416 cl*) 15417 # Native MSVC 15418 hardcode_libdir_flag_spec=' ' 15419 allow_undefined_flag=unsupported 15420 always_export_symbols=yes 15421 file_list_spec='@' 15422 # Tell ltmain to make .lib files, not .a files. 15423 libext=lib 15424 # Tell ltmain to make .dll files, not .so files. 15425 shrext_cmds=".dll" 15426 # FIXME: Setting linknames here is a bad hack. 15427 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15428 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15429 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15430 else 15431 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15432 fi~ 15433 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15434 linknames=' 15435 # The linker will not automatically build a static lib if we build a DLL. 15436 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15437 enable_shared_with_static_runtimes=yes 15438 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15440 # Don't use ranlib 15441 old_postinstall_cmds='chmod 644 $oldlib' 15442 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15443 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15444 case $lt_outputfile in 15445 *.exe|*.EXE) ;; 15446 *) 15447 lt_outputfile="$lt_outputfile.exe" 15448 lt_tool_outputfile="$lt_tool_outputfile.exe" 15449 ;; 15450 esac~ 15451 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15452 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15453 $RM "$lt_outputfile.manifest"; 15454 fi' 15455 ;; 15456 *) 15457 # Assume MSVC wrapper 15458 hardcode_libdir_flag_spec=' ' 15459 allow_undefined_flag=unsupported 15460 # Tell ltmain to make .lib files, not .a files. 15461 libext=lib 15462 # Tell ltmain to make .dll files, not .so files. 15463 shrext_cmds=".dll" 15464 # FIXME: Setting linknames here is a bad hack. 15465 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15466 # The linker will automatically build a .lib file if we build a DLL. 15467 old_archive_from_new_cmds='true' 15468 # FIXME: Should let the user specify the lib program. 15469 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15470 enable_shared_with_static_runtimes=yes 15471 ;; 15472 esac 15473 ;; 15474 15475 darwin* | rhapsody*) 15476 15477 15478 archive_cmds_need_lc=no 15479 hardcode_direct=no 15480 hardcode_automatic=yes 15481 hardcode_shlibpath_var=unsupported 15482 if test "$lt_cv_ld_force_load" = "yes"; then 15483 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\"`' 15484 15485 else 15486 whole_archive_flag_spec='' 15487 fi 15488 link_all_deplibs=yes 15489 allow_undefined_flag="$_lt_dar_allow_undefined" 15490 case $cc_basename in 15491 ifort*) _lt_dar_can_shared=yes ;; 15492 *) _lt_dar_can_shared=$GCC ;; 15493 esac 15494 if test "$_lt_dar_can_shared" = "yes"; then 15495 output_verbose_link_cmd=func_echo_all 15496 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15497 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15498 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}" 15499 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}" 15500 15501 else 15502 ld_shlibs=no 15503 fi 15504 15505 ;; 15506 15507 dgux*) 15508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15509 hardcode_libdir_flag_spec='-L$libdir' 15510 hardcode_shlibpath_var=no 15511 ;; 15512 15513 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15514 # support. Future versions do this automatically, but an explicit c++rt0.o 15515 # does not break anything, and helps significantly (at the cost of a little 15516 # extra space). 15517 freebsd2.2*) 15518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15519 hardcode_libdir_flag_spec='-R$libdir' 15520 hardcode_direct=yes 15521 hardcode_shlibpath_var=no 15522 ;; 15523 15524 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15525 freebsd2.*) 15526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15527 hardcode_direct=yes 15528 hardcode_minus_L=yes 15529 hardcode_shlibpath_var=no 15530 ;; 15531 15532 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15533 freebsd* | dragonfly*) 15534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15535 hardcode_libdir_flag_spec='-R$libdir' 15536 hardcode_direct=yes 15537 hardcode_shlibpath_var=no 15538 ;; 15539 15540 hpux9*) 15541 if test "$GCC" = yes; then 15542 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15543 else 15544 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15545 fi 15546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15547 hardcode_libdir_separator=: 15548 hardcode_direct=yes 15549 15550 # hardcode_minus_L: Not really in the search PATH, 15551 # but as the default location of the library. 15552 hardcode_minus_L=yes 15553 export_dynamic_flag_spec='${wl}-E' 15554 ;; 15555 15556 hpux10*) 15557 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15558 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15559 else 15560 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15561 fi 15562 if test "$with_gnu_ld" = no; then 15563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15564 hardcode_libdir_separator=: 15565 hardcode_direct=yes 15566 hardcode_direct_absolute=yes 15567 export_dynamic_flag_spec='${wl}-E' 15568 # hardcode_minus_L: Not really in the search PATH, 15569 # but as the default location of the library. 15570 hardcode_minus_L=yes 15571 fi 15572 ;; 15573 15574 hpux11*) 15575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15576 case $host_cpu in 15577 hppa*64*) 15578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15579 ;; 15580 ia64*) 15581 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15582 ;; 15583 *) 15584 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15585 ;; 15586 esac 15587 else 15588 case $host_cpu in 15589 hppa*64*) 15590 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15591 ;; 15592 ia64*) 15593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15594 ;; 15595 *) 15596 15597 # Older versions of the 11.00 compiler do not understand -b yet 15598 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15600$as_echo_n "checking if $CC understands -b... " >&6; } 15601if ${lt_cv_prog_compiler__b+:} false; then : 15602 $as_echo_n "(cached) " >&6 15603else 15604 lt_cv_prog_compiler__b=no 15605 save_LDFLAGS="$LDFLAGS" 15606 LDFLAGS="$LDFLAGS -b" 15607 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15609 # The linker can only warn and ignore the option if not recognized 15610 # So say no if there are warnings 15611 if test -s conftest.err; then 15612 # Append any errors to the config.log. 15613 cat conftest.err 1>&5 15614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15616 if diff conftest.exp conftest.er2 >/dev/null; then 15617 lt_cv_prog_compiler__b=yes 15618 fi 15619 else 15620 lt_cv_prog_compiler__b=yes 15621 fi 15622 fi 15623 $RM -r conftest* 15624 LDFLAGS="$save_LDFLAGS" 15625 15626fi 15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15628$as_echo "$lt_cv_prog_compiler__b" >&6; } 15629 15630if test x"$lt_cv_prog_compiler__b" = xyes; then 15631 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15632else 15633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15634fi 15635 15636 ;; 15637 esac 15638 fi 15639 if test "$with_gnu_ld" = no; then 15640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15641 hardcode_libdir_separator=: 15642 15643 case $host_cpu in 15644 hppa*64*|ia64*) 15645 hardcode_direct=no 15646 hardcode_shlibpath_var=no 15647 ;; 15648 *) 15649 hardcode_direct=yes 15650 hardcode_direct_absolute=yes 15651 export_dynamic_flag_spec='${wl}-E' 15652 15653 # hardcode_minus_L: Not really in the search PATH, 15654 # but as the default location of the library. 15655 hardcode_minus_L=yes 15656 ;; 15657 esac 15658 fi 15659 ;; 15660 15661 irix5* | irix6* | nonstopux*) 15662 if test "$GCC" = yes; then 15663 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' 15664 # Try to use the -exported_symbol ld option, if it does not 15665 # work, assume that -exports_file does not work either and 15666 # implicitly export all symbols. 15667 # This should be the same for all languages, so no per-tag cache variable. 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15669$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15670if ${lt_cv_irix_exported_symbol+:} false; then : 15671 $as_echo_n "(cached) " >&6 15672else 15673 save_LDFLAGS="$LDFLAGS" 15674 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15676/* end confdefs.h. */ 15677int foo (void) { return 0; } 15678_ACEOF 15679if ac_fn_c_try_link "$LINENO"; then : 15680 lt_cv_irix_exported_symbol=yes 15681else 15682 lt_cv_irix_exported_symbol=no 15683fi 15684rm -f core conftest.err conftest.$ac_objext \ 15685 conftest$ac_exeext conftest.$ac_ext 15686 LDFLAGS="$save_LDFLAGS" 15687fi 15688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15689$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15690 if test "$lt_cv_irix_exported_symbol" = yes; then 15691 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' 15692 fi 15693 else 15694 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' 15695 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' 15696 fi 15697 archive_cmds_need_lc='no' 15698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15699 hardcode_libdir_separator=: 15700 inherit_rpath=yes 15701 link_all_deplibs=yes 15702 ;; 15703 15704 netbsd* | netbsdelf*-gnu) 15705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15707 else 15708 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15709 fi 15710 hardcode_libdir_flag_spec='-R$libdir' 15711 hardcode_direct=yes 15712 hardcode_shlibpath_var=no 15713 ;; 15714 15715 newsos6) 15716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15717 hardcode_direct=yes 15718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15719 hardcode_libdir_separator=: 15720 hardcode_shlibpath_var=no 15721 ;; 15722 15723 *nto* | *qnx*) 15724 ;; 15725 15726 openbsd*) 15727 if test -f /usr/libexec/ld.so; then 15728 hardcode_direct=yes 15729 hardcode_shlibpath_var=no 15730 hardcode_direct_absolute=yes 15731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15733 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15735 export_dynamic_flag_spec='${wl}-E' 15736 else 15737 case $host_os in 15738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15740 hardcode_libdir_flag_spec='-R$libdir' 15741 ;; 15742 *) 15743 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15744 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15745 ;; 15746 esac 15747 fi 15748 else 15749 ld_shlibs=no 15750 fi 15751 ;; 15752 15753 os2*) 15754 hardcode_libdir_flag_spec='-L$libdir' 15755 hardcode_minus_L=yes 15756 allow_undefined_flag=unsupported 15757 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15758 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15759 ;; 15760 15761 osf3*) 15762 if test "$GCC" = yes; then 15763 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15764 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' 15765 else 15766 allow_undefined_flag=' -expect_unresolved \*' 15767 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' 15768 fi 15769 archive_cmds_need_lc='no' 15770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15771 hardcode_libdir_separator=: 15772 ;; 15773 15774 osf4* | osf5*) # as osf3* with the addition of -msym flag 15775 if test "$GCC" = yes; then 15776 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15777 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' 15778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15779 else 15780 allow_undefined_flag=' -expect_unresolved \*' 15781 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' 15782 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~ 15783 $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' 15784 15785 # Both c and cxx compiler support -rpath directly 15786 hardcode_libdir_flag_spec='-rpath $libdir' 15787 fi 15788 archive_cmds_need_lc='no' 15789 hardcode_libdir_separator=: 15790 ;; 15791 15792 solaris*) 15793 no_undefined_flag=' -z defs' 15794 if test "$GCC" = yes; then 15795 wlarc='${wl}' 15796 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15798 $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' 15799 else 15800 case `$CC -V 2>&1` in 15801 *"Compilers 5.0"*) 15802 wlarc='' 15803 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15806 ;; 15807 *) 15808 wlarc='${wl}' 15809 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15811 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15812 ;; 15813 esac 15814 fi 15815 hardcode_libdir_flag_spec='-R$libdir' 15816 hardcode_shlibpath_var=no 15817 case $host_os in 15818 solaris2.[0-5] | solaris2.[0-5].*) ;; 15819 *) 15820 # The compiler driver will combine and reorder linker options, 15821 # but understands `-z linker_flag'. GCC discards it without `$wl', 15822 # but is careful enough not to reorder. 15823 # Supported since Solaris 2.6 (maybe 2.5.1?) 15824 if test "$GCC" = yes; then 15825 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15826 else 15827 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15828 fi 15829 ;; 15830 esac 15831 link_all_deplibs=yes 15832 ;; 15833 15834 sunos4*) 15835 if test "x$host_vendor" = xsequent; then 15836 # Use $CC to link under sequent, because it throws in some extra .o 15837 # files that make .init and .fini sections work. 15838 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15839 else 15840 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15841 fi 15842 hardcode_libdir_flag_spec='-L$libdir' 15843 hardcode_direct=yes 15844 hardcode_minus_L=yes 15845 hardcode_shlibpath_var=no 15846 ;; 15847 15848 sysv4) 15849 case $host_vendor in 15850 sni) 15851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15852 hardcode_direct=yes # is this really true??? 15853 ;; 15854 siemens) 15855 ## LD is ld it makes a PLAMLIB 15856 ## CC just makes a GrossModule. 15857 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15858 reload_cmds='$CC -r -o $output$reload_objs' 15859 hardcode_direct=no 15860 ;; 15861 motorola) 15862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15863 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15864 ;; 15865 esac 15866 runpath_var='LD_RUN_PATH' 15867 hardcode_shlibpath_var=no 15868 ;; 15869 15870 sysv4.3*) 15871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15872 hardcode_shlibpath_var=no 15873 export_dynamic_flag_spec='-Bexport' 15874 ;; 15875 15876 sysv4*MP*) 15877 if test -d /usr/nec; then 15878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15879 hardcode_shlibpath_var=no 15880 runpath_var=LD_RUN_PATH 15881 hardcode_runpath_var=yes 15882 ld_shlibs=yes 15883 fi 15884 ;; 15885 15886 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15887 no_undefined_flag='${wl}-z,text' 15888 archive_cmds_need_lc=no 15889 hardcode_shlibpath_var=no 15890 runpath_var='LD_RUN_PATH' 15891 15892 if test "$GCC" = yes; then 15893 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15894 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15895 else 15896 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15897 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15898 fi 15899 ;; 15900 15901 sysv5* | sco3.2v5* | sco5v6*) 15902 # Note: We can NOT use -z defs as we might desire, because we do not 15903 # link with -lc, and that would cause any symbols used from libc to 15904 # always be unresolved, which means just about no library would 15905 # ever link correctly. If we're not using GNU ld we use -z text 15906 # though, which does catch some bad symbols but isn't as heavy-handed 15907 # as -z defs. 15908 no_undefined_flag='${wl}-z,text' 15909 allow_undefined_flag='${wl}-z,nodefs' 15910 archive_cmds_need_lc=no 15911 hardcode_shlibpath_var=no 15912 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15913 hardcode_libdir_separator=':' 15914 link_all_deplibs=yes 15915 export_dynamic_flag_spec='${wl}-Bexport' 15916 runpath_var='LD_RUN_PATH' 15917 15918 if test "$GCC" = yes; then 15919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15921 else 15922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15924 fi 15925 ;; 15926 15927 uts4*) 15928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15929 hardcode_libdir_flag_spec='-L$libdir' 15930 hardcode_shlibpath_var=no 15931 ;; 15932 15933 *) 15934 ld_shlibs=no 15935 ;; 15936 esac 15937 15938 if test x$host_vendor = xsni; then 15939 case $host in 15940 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15941 export_dynamic_flag_spec='${wl}-Blargedynsym' 15942 ;; 15943 esac 15944 fi 15945 fi 15946 15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15948$as_echo "$ld_shlibs" >&6; } 15949test "$ld_shlibs" = no && can_build_shared=no 15950 15951with_gnu_ld=$with_gnu_ld 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967# 15968# Do we need to explicitly link libc? 15969# 15970case "x$archive_cmds_need_lc" in 15971x|xyes) 15972 # Assume -lc should be added 15973 archive_cmds_need_lc=yes 15974 15975 if test "$enable_shared" = yes && test "$GCC" = yes; then 15976 case $archive_cmds in 15977 *'~'*) 15978 # FIXME: we may have to deal with multi-command sequences. 15979 ;; 15980 '$CC '*) 15981 # Test whether the compiler implicitly links with -lc since on some 15982 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15983 # to ld, don't add -lc before -lgcc. 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15985$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15986if ${lt_cv_archive_cmds_need_lc+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 $RM conftest* 15990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15991 15992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15993 (eval $ac_compile) 2>&5 15994 ac_status=$? 15995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15996 test $ac_status = 0; } 2>conftest.err; then 15997 soname=conftest 15998 lib=conftest 15999 libobjs=conftest.$ac_objext 16000 deplibs= 16001 wl=$lt_prog_compiler_wl 16002 pic_flag=$lt_prog_compiler_pic 16003 compiler_flags=-v 16004 linker_flags=-v 16005 verstring= 16006 output_objdir=. 16007 libname=conftest 16008 lt_save_allow_undefined_flag=$allow_undefined_flag 16009 allow_undefined_flag= 16010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16011 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16012 ac_status=$? 16013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16014 test $ac_status = 0; } 16015 then 16016 lt_cv_archive_cmds_need_lc=no 16017 else 16018 lt_cv_archive_cmds_need_lc=yes 16019 fi 16020 allow_undefined_flag=$lt_save_allow_undefined_flag 16021 else 16022 cat conftest.err 1>&5 16023 fi 16024 $RM conftest* 16025 16026fi 16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16028$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16029 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16030 ;; 16031 esac 16032 fi 16033 ;; 16034esac 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16188$as_echo_n "checking dynamic linker characteristics... " >&6; } 16189 16190if test "$GCC" = yes; then 16191 case $host_os in 16192 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16193 *) lt_awk_arg="/^libraries:/" ;; 16194 esac 16195 case $host_os in 16196 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16197 *) lt_sed_strip_eq="s,=/,/,g" ;; 16198 esac 16199 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16200 case $lt_search_path_spec in 16201 *\;*) 16202 # if the path contains ";" then we assume it to be the separator 16203 # otherwise default to the standard path separator (i.e. ":") - it is 16204 # assumed that no part of a normal pathname contains ";" but that should 16205 # okay in the real world where ";" in dirpaths is itself problematic. 16206 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16207 ;; 16208 *) 16209 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16210 ;; 16211 esac 16212 # Ok, now we have the path, separated by spaces, we can step through it 16213 # and add multilib dir if necessary. 16214 lt_tmp_lt_search_path_spec= 16215 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16216 for lt_sys_path in $lt_search_path_spec; do 16217 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16219 else 16220 test -d "$lt_sys_path" && \ 16221 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16222 fi 16223 done 16224 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16225BEGIN {RS=" "; FS="/|\n";} { 16226 lt_foo=""; 16227 lt_count=0; 16228 for (lt_i = NF; lt_i > 0; lt_i--) { 16229 if ($lt_i != "" && $lt_i != ".") { 16230 if ($lt_i == "..") { 16231 lt_count++; 16232 } else { 16233 if (lt_count == 0) { 16234 lt_foo="/" $lt_i lt_foo; 16235 } else { 16236 lt_count--; 16237 } 16238 } 16239 } 16240 } 16241 if (lt_foo != "") { lt_freq[lt_foo]++; } 16242 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16243}'` 16244 # AWK program above erroneously prepends '/' to C:/dos/paths 16245 # for these hosts. 16246 case $host_os in 16247 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16248 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16249 esac 16250 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16251else 16252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16253fi 16254library_names_spec= 16255libname_spec='lib$name' 16256soname_spec= 16257shrext_cmds=".so" 16258postinstall_cmds= 16259postuninstall_cmds= 16260finish_cmds= 16261finish_eval= 16262shlibpath_var= 16263shlibpath_overrides_runpath=unknown 16264version_type=none 16265dynamic_linker="$host_os ld.so" 16266sys_lib_dlsearch_path_spec="/lib /usr/lib" 16267need_lib_prefix=unknown 16268hardcode_into_libs=no 16269 16270# when you set need_version to no, make sure it does not cause -set_version 16271# flags to be left without arguments 16272need_version=unknown 16273 16274case $host_os in 16275aix3*) 16276 version_type=linux # correct to gnu/linux during the next big refactor 16277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16278 shlibpath_var=LIBPATH 16279 16280 # AIX 3 has no versioning support, so we append a major version to the name. 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 ;; 16283 16284aix[4-9]*) 16285 version_type=linux # correct to gnu/linux during the next big refactor 16286 need_lib_prefix=no 16287 need_version=no 16288 hardcode_into_libs=yes 16289 if test "$host_cpu" = ia64; then 16290 # AIX 5 supports IA64 16291 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16292 shlibpath_var=LD_LIBRARY_PATH 16293 else 16294 # With GCC up to 2.95.x, collect2 would create an import file 16295 # for dependence libraries. The import file would start with 16296 # the line `#! .'. This would cause the generated library to 16297 # depend on `.', always an invalid library. This was fixed in 16298 # development snapshots of GCC prior to 3.0. 16299 case $host_os in 16300 aix4 | aix4.[01] | aix4.[01].*) 16301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16302 echo ' yes ' 16303 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16304 : 16305 else 16306 can_build_shared=no 16307 fi 16308 ;; 16309 esac 16310 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16311 # soname into executable. Probably we can add versioning support to 16312 # collect2, so additional links can be useful in future. 16313 if test "$aix_use_runtimelinking" = yes; then 16314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16315 # instead of lib<name>.a to let people know that these are not 16316 # typical AIX shared libraries. 16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16318 else 16319 # We preserve .a as extension for shared libraries through AIX4.2 16320 # and later when we are not doing run time linking. 16321 library_names_spec='${libname}${release}.a $libname.a' 16322 soname_spec='${libname}${release}${shared_ext}$major' 16323 fi 16324 shlibpath_var=LIBPATH 16325 fi 16326 ;; 16327 16328amigaos*) 16329 case $host_cpu in 16330 powerpc) 16331 # Since July 2007 AmigaOS4 officially supports .so libraries. 16332 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16334 ;; 16335 m68k) 16336 library_names_spec='$libname.ixlibrary $libname.a' 16337 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16338 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 16339 ;; 16340 esac 16341 ;; 16342 16343beos*) 16344 library_names_spec='${libname}${shared_ext}' 16345 dynamic_linker="$host_os ld.so" 16346 shlibpath_var=LIBRARY_PATH 16347 ;; 16348 16349bsdi[45]*) 16350 version_type=linux # correct to gnu/linux during the next big refactor 16351 need_version=no 16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16353 soname_spec='${libname}${release}${shared_ext}$major' 16354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16358 # the default ld.so.conf also contains /usr/contrib/lib and 16359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16360 # libtool to hard-code these into programs 16361 ;; 16362 16363cygwin* | mingw* | pw32* | cegcc*) 16364 version_type=windows 16365 shrext_cmds=".dll" 16366 need_version=no 16367 need_lib_prefix=no 16368 16369 case $GCC,$cc_basename in 16370 yes,*) 16371 # gcc 16372 library_names_spec='$libname.dll.a' 16373 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16374 postinstall_cmds='base_file=`basename \${file}`~ 16375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16376 dldir=$destdir/`dirname \$dlpath`~ 16377 test -d \$dldir || mkdir -p \$dldir~ 16378 $install_prog $dir/$dlname \$dldir/$dlname~ 16379 chmod a+x \$dldir/$dlname~ 16380 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16381 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16382 fi' 16383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16384 dlpath=$dir/\$dldll~ 16385 $RM \$dlpath' 16386 shlibpath_overrides_runpath=yes 16387 16388 case $host_os in 16389 cygwin*) 16390 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16392 16393 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16394 ;; 16395 mingw* | cegcc*) 16396 # MinGW DLLs use traditional 'lib' prefix 16397 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16398 ;; 16399 pw32*) 16400 # pw32 DLLs use 'pw' prefix rather than 'lib' 16401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16402 ;; 16403 esac 16404 dynamic_linker='Win32 ld.exe' 16405 ;; 16406 16407 *,cl*) 16408 # Native MSVC 16409 libname_spec='$name' 16410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16411 library_names_spec='${libname}.dll.lib' 16412 16413 case $build_os in 16414 mingw*) 16415 sys_lib_search_path_spec= 16416 lt_save_ifs=$IFS 16417 IFS=';' 16418 for lt_path in $LIB 16419 do 16420 IFS=$lt_save_ifs 16421 # Let DOS variable expansion print the short 8.3 style file name. 16422 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16423 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16424 done 16425 IFS=$lt_save_ifs 16426 # Convert to MSYS style. 16427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16428 ;; 16429 cygwin*) 16430 # Convert to unix form, then to dos form, then back to unix form 16431 # but this time dos style (no spaces!) so that the unix form looks 16432 # like /cygdrive/c/PROGRA~1:/cygdr... 16433 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16434 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16435 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16436 ;; 16437 *) 16438 sys_lib_search_path_spec="$LIB" 16439 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16440 # It is most probably a Windows format PATH. 16441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16442 else 16443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16444 fi 16445 # FIXME: find the short name or the path components, as spaces are 16446 # common. (e.g. "Program Files" -> "PROGRA~1") 16447 ;; 16448 esac 16449 16450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16451 postinstall_cmds='base_file=`basename \${file}`~ 16452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16453 dldir=$destdir/`dirname \$dlpath`~ 16454 test -d \$dldir || mkdir -p \$dldir~ 16455 $install_prog $dir/$dlname \$dldir/$dlname' 16456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16457 dlpath=$dir/\$dldll~ 16458 $RM \$dlpath' 16459 shlibpath_overrides_runpath=yes 16460 dynamic_linker='Win32 link.exe' 16461 ;; 16462 16463 *) 16464 # Assume MSVC wrapper 16465 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16466 dynamic_linker='Win32 ld.exe' 16467 ;; 16468 esac 16469 # FIXME: first we should search . and the directory the executable is in 16470 shlibpath_var=PATH 16471 ;; 16472 16473darwin* | rhapsody*) 16474 dynamic_linker="$host_os dyld" 16475 version_type=darwin 16476 need_lib_prefix=no 16477 need_version=no 16478 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16479 soname_spec='${libname}${release}${major}$shared_ext' 16480 shlibpath_overrides_runpath=yes 16481 shlibpath_var=DYLD_LIBRARY_PATH 16482 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16483 16484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16486 ;; 16487 16488dgux*) 16489 version_type=linux # correct to gnu/linux during the next big refactor 16490 need_lib_prefix=no 16491 need_version=no 16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16493 soname_spec='${libname}${release}${shared_ext}$major' 16494 shlibpath_var=LD_LIBRARY_PATH 16495 ;; 16496 16497freebsd* | dragonfly*) 16498 # DragonFly does not have aout. When/if they implement a new 16499 # versioning mechanism, adjust this. 16500 if test -x /usr/bin/objformat; then 16501 objformat=`/usr/bin/objformat` 16502 else 16503 case $host_os in 16504 freebsd[23].*) objformat=aout ;; 16505 *) objformat=elf ;; 16506 esac 16507 fi 16508 version_type=freebsd-$objformat 16509 case $version_type in 16510 freebsd-elf*) 16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16512 need_version=no 16513 need_lib_prefix=no 16514 ;; 16515 freebsd-*) 16516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16517 need_version=yes 16518 ;; 16519 esac 16520 shlibpath_var=LD_LIBRARY_PATH 16521 case $host_os in 16522 freebsd2.*) 16523 shlibpath_overrides_runpath=yes 16524 ;; 16525 freebsd3.[01]* | freebsdelf3.[01]*) 16526 shlibpath_overrides_runpath=yes 16527 hardcode_into_libs=yes 16528 ;; 16529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16531 shlibpath_overrides_runpath=no 16532 hardcode_into_libs=yes 16533 ;; 16534 *) # from 4.6 on, and DragonFly 16535 shlibpath_overrides_runpath=yes 16536 hardcode_into_libs=yes 16537 ;; 16538 esac 16539 ;; 16540 16541haiku*) 16542 version_type=linux # correct to gnu/linux during the next big refactor 16543 need_lib_prefix=no 16544 need_version=no 16545 dynamic_linker="$host_os runtime_loader" 16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16547 soname_spec='${libname}${release}${shared_ext}$major' 16548 shlibpath_var=LIBRARY_PATH 16549 shlibpath_overrides_runpath=yes 16550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16551 hardcode_into_libs=yes 16552 ;; 16553 16554hpux9* | hpux10* | hpux11*) 16555 # Give a soname corresponding to the major version so that dld.sl refuses to 16556 # link against other versions. 16557 version_type=sunos 16558 need_lib_prefix=no 16559 need_version=no 16560 case $host_cpu in 16561 ia64*) 16562 shrext_cmds='.so' 16563 hardcode_into_libs=yes 16564 dynamic_linker="$host_os dld.so" 16565 shlibpath_var=LD_LIBRARY_PATH 16566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16568 soname_spec='${libname}${release}${shared_ext}$major' 16569 if test "X$HPUX_IA64_MODE" = X32; then 16570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16571 else 16572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16573 fi 16574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16575 ;; 16576 hppa*64*) 16577 shrext_cmds='.sl' 16578 hardcode_into_libs=yes 16579 dynamic_linker="$host_os dld.sl" 16580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16583 soname_spec='${libname}${release}${shared_ext}$major' 16584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16586 ;; 16587 *) 16588 shrext_cmds='.sl' 16589 dynamic_linker="$host_os dld.sl" 16590 shlibpath_var=SHLIB_PATH 16591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16593 soname_spec='${libname}${release}${shared_ext}$major' 16594 ;; 16595 esac 16596 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16597 postinstall_cmds='chmod 555 $lib' 16598 # or fails outright, so override atomically: 16599 install_override_mode=555 16600 ;; 16601 16602interix[3-9]*) 16603 version_type=linux # correct to gnu/linux during the next big refactor 16604 need_lib_prefix=no 16605 need_version=no 16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16607 soname_spec='${libname}${release}${shared_ext}$major' 16608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16609 shlibpath_var=LD_LIBRARY_PATH 16610 shlibpath_overrides_runpath=no 16611 hardcode_into_libs=yes 16612 ;; 16613 16614irix5* | irix6* | nonstopux*) 16615 case $host_os in 16616 nonstopux*) version_type=nonstopux ;; 16617 *) 16618 if test "$lt_cv_prog_gnu_ld" = yes; then 16619 version_type=linux # correct to gnu/linux during the next big refactor 16620 else 16621 version_type=irix 16622 fi ;; 16623 esac 16624 need_lib_prefix=no 16625 need_version=no 16626 soname_spec='${libname}${release}${shared_ext}$major' 16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16628 case $host_os in 16629 irix5* | nonstopux*) 16630 libsuff= shlibsuff= 16631 ;; 16632 *) 16633 case $LD in # libtool.m4 will add one of these switches to LD 16634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16635 libsuff= shlibsuff= libmagic=32-bit;; 16636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16637 libsuff=32 shlibsuff=N32 libmagic=N32;; 16638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16639 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16640 *) libsuff= shlibsuff= libmagic=never-match;; 16641 esac 16642 ;; 16643 esac 16644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16645 shlibpath_overrides_runpath=no 16646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16648 hardcode_into_libs=yes 16649 ;; 16650 16651# No shared lib support for Linux oldld, aout, or coff. 16652linux*oldld* | linux*aout* | linux*coff*) 16653 dynamic_linker=no 16654 ;; 16655 16656# This must be glibc/ELF. 16657linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16658 version_type=linux # correct to gnu/linux during the next big refactor 16659 need_lib_prefix=no 16660 need_version=no 16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16662 soname_spec='${libname}${release}${shared_ext}$major' 16663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16664 shlibpath_var=LD_LIBRARY_PATH 16665 shlibpath_overrides_runpath=no 16666 16667 # Some binutils ld are patched to set DT_RUNPATH 16668 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16669 $as_echo_n "(cached) " >&6 16670else 16671 lt_cv_shlibpath_overrides_runpath=no 16672 save_LDFLAGS=$LDFLAGS 16673 save_libdir=$libdir 16674 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16675 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677/* end confdefs.h. */ 16678 16679int 16680main () 16681{ 16682 16683 ; 16684 return 0; 16685} 16686_ACEOF 16687if ac_fn_c_try_link "$LINENO"; then : 16688 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16689 lt_cv_shlibpath_overrides_runpath=yes 16690fi 16691fi 16692rm -f core conftest.err conftest.$ac_objext \ 16693 conftest$ac_exeext conftest.$ac_ext 16694 LDFLAGS=$save_LDFLAGS 16695 libdir=$save_libdir 16696 16697fi 16698 16699 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16700 16701 # This implies no fast_install, which is unacceptable. 16702 # Some rework will be needed to allow for fast_install 16703 # before this can be enabled. 16704 hardcode_into_libs=yes 16705 16706 # Append ld.so.conf contents to the search path 16707 if test -f /etc/ld.so.conf; then 16708 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' ' '` 16709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16710 fi 16711 16712 # We used to test for /lib/ld.so.1 and disable shared libraries on 16713 # powerpc, because MkLinux only supported shared libraries with the 16714 # GNU dynamic linker. Since this was broken with cross compilers, 16715 # most powerpc-linux boxes support dynamic linking these days and 16716 # people can always --disable-shared, the test was removed, and we 16717 # assume the GNU/Linux dynamic linker is in use. 16718 dynamic_linker='GNU/Linux ld.so' 16719 ;; 16720 16721netbsdelf*-gnu) 16722 version_type=linux 16723 need_lib_prefix=no 16724 need_version=no 16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16726 soname_spec='${libname}${release}${shared_ext}$major' 16727 shlibpath_var=LD_LIBRARY_PATH 16728 shlibpath_overrides_runpath=no 16729 hardcode_into_libs=yes 16730 dynamic_linker='NetBSD ld.elf_so' 16731 ;; 16732 16733netbsd*) 16734 version_type=sunos 16735 need_lib_prefix=no 16736 need_version=no 16737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16740 dynamic_linker='NetBSD (a.out) ld.so' 16741 else 16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16743 soname_spec='${libname}${release}${shared_ext}$major' 16744 dynamic_linker='NetBSD ld.elf_so' 16745 fi 16746 shlibpath_var=LD_LIBRARY_PATH 16747 shlibpath_overrides_runpath=yes 16748 hardcode_into_libs=yes 16749 ;; 16750 16751newsos6) 16752 version_type=linux # correct to gnu/linux during the next big refactor 16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16754 shlibpath_var=LD_LIBRARY_PATH 16755 shlibpath_overrides_runpath=yes 16756 ;; 16757 16758*nto* | *qnx*) 16759 version_type=qnx 16760 need_lib_prefix=no 16761 need_version=no 16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16763 soname_spec='${libname}${release}${shared_ext}$major' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 shlibpath_overrides_runpath=no 16766 hardcode_into_libs=yes 16767 dynamic_linker='ldqnx.so' 16768 ;; 16769 16770openbsd*) 16771 version_type=sunos 16772 sys_lib_dlsearch_path_spec="/usr/lib" 16773 need_lib_prefix=no 16774 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16775 case $host_os in 16776 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16777 *) need_version=no ;; 16778 esac 16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16781 shlibpath_var=LD_LIBRARY_PATH 16782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16783 case $host_os in 16784 openbsd2.[89] | openbsd2.[89].*) 16785 shlibpath_overrides_runpath=no 16786 ;; 16787 *) 16788 shlibpath_overrides_runpath=yes 16789 ;; 16790 esac 16791 else 16792 shlibpath_overrides_runpath=yes 16793 fi 16794 ;; 16795 16796os2*) 16797 libname_spec='$name' 16798 shrext_cmds=".dll" 16799 need_lib_prefix=no 16800 library_names_spec='$libname${shared_ext} $libname.a' 16801 dynamic_linker='OS/2 ld.exe' 16802 shlibpath_var=LIBPATH 16803 ;; 16804 16805osf3* | osf4* | osf5*) 16806 version_type=osf 16807 need_lib_prefix=no 16808 need_version=no 16809 soname_spec='${libname}${release}${shared_ext}$major' 16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16811 shlibpath_var=LD_LIBRARY_PATH 16812 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16813 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16814 ;; 16815 16816rdos*) 16817 dynamic_linker=no 16818 ;; 16819 16820solaris*) 16821 version_type=linux # correct to gnu/linux during the next big refactor 16822 need_lib_prefix=no 16823 need_version=no 16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16825 soname_spec='${libname}${release}${shared_ext}$major' 16826 shlibpath_var=LD_LIBRARY_PATH 16827 shlibpath_overrides_runpath=yes 16828 hardcode_into_libs=yes 16829 # ldd complains unless libraries are executable 16830 postinstall_cmds='chmod +x $lib' 16831 ;; 16832 16833sunos4*) 16834 version_type=sunos 16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16836 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16837 shlibpath_var=LD_LIBRARY_PATH 16838 shlibpath_overrides_runpath=yes 16839 if test "$with_gnu_ld" = yes; then 16840 need_lib_prefix=no 16841 fi 16842 need_version=yes 16843 ;; 16844 16845sysv4 | sysv4.3*) 16846 version_type=linux # correct to gnu/linux during the next big refactor 16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16848 soname_spec='${libname}${release}${shared_ext}$major' 16849 shlibpath_var=LD_LIBRARY_PATH 16850 case $host_vendor in 16851 sni) 16852 shlibpath_overrides_runpath=no 16853 need_lib_prefix=no 16854 runpath_var=LD_RUN_PATH 16855 ;; 16856 siemens) 16857 need_lib_prefix=no 16858 ;; 16859 motorola) 16860 need_lib_prefix=no 16861 need_version=no 16862 shlibpath_overrides_runpath=no 16863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16864 ;; 16865 esac 16866 ;; 16867 16868sysv4*MP*) 16869 if test -d /usr/nec ;then 16870 version_type=linux # correct to gnu/linux during the next big refactor 16871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16872 soname_spec='$libname${shared_ext}.$major' 16873 shlibpath_var=LD_LIBRARY_PATH 16874 fi 16875 ;; 16876 16877sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16878 version_type=freebsd-elf 16879 need_lib_prefix=no 16880 need_version=no 16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16882 soname_spec='${libname}${release}${shared_ext}$major' 16883 shlibpath_var=LD_LIBRARY_PATH 16884 shlibpath_overrides_runpath=yes 16885 hardcode_into_libs=yes 16886 if test "$with_gnu_ld" = yes; then 16887 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16888 else 16889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16890 case $host_os in 16891 sco3.2v5*) 16892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16893 ;; 16894 esac 16895 fi 16896 sys_lib_dlsearch_path_spec='/usr/lib' 16897 ;; 16898 16899tpf*) 16900 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16901 version_type=linux # correct to gnu/linux during the next big refactor 16902 need_lib_prefix=no 16903 need_version=no 16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16905 shlibpath_var=LD_LIBRARY_PATH 16906 shlibpath_overrides_runpath=no 16907 hardcode_into_libs=yes 16908 ;; 16909 16910uts4*) 16911 version_type=linux # correct to gnu/linux during the next big refactor 16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16913 soname_spec='${libname}${release}${shared_ext}$major' 16914 shlibpath_var=LD_LIBRARY_PATH 16915 ;; 16916 16917*) 16918 dynamic_linker=no 16919 ;; 16920esac 16921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16922$as_echo "$dynamic_linker" >&6; } 16923test "$dynamic_linker" = no && can_build_shared=no 16924 16925variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16926if test "$GCC" = yes; then 16927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16928fi 16929 16930if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16931 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16932fi 16933if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16934 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16935fi 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17029$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17030hardcode_action= 17031if test -n "$hardcode_libdir_flag_spec" || 17032 test -n "$runpath_var" || 17033 test "X$hardcode_automatic" = "Xyes" ; then 17034 17035 # We can hardcode non-existent directories. 17036 if test "$hardcode_direct" != no && 17037 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17038 # have to relink, otherwise we might link with an installed library 17039 # when we should be linking with a yet-to-be-installed one 17040 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17041 test "$hardcode_minus_L" != no; then 17042 # Linking always hardcodes the temporary library directory. 17043 hardcode_action=relink 17044 else 17045 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17046 hardcode_action=immediate 17047 fi 17048else 17049 # We cannot hardcode anything, or else we can only hardcode existing 17050 # directories. 17051 hardcode_action=unsupported 17052fi 17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17054$as_echo "$hardcode_action" >&6; } 17055 17056if test "$hardcode_action" = relink || 17057 test "$inherit_rpath" = yes; then 17058 # Fast installation is not supported 17059 enable_fast_install=no 17060elif test "$shlibpath_overrides_runpath" = yes || 17061 test "$enable_shared" = no; then 17062 # Fast installation is not necessary 17063 enable_fast_install=needless 17064fi 17065 17066 17067 17068 17069 17070 17071 if test "x$enable_dlopen" != xyes; then 17072 enable_dlopen=unknown 17073 enable_dlopen_self=unknown 17074 enable_dlopen_self_static=unknown 17075else 17076 lt_cv_dlopen=no 17077 lt_cv_dlopen_libs= 17078 17079 case $host_os in 17080 beos*) 17081 lt_cv_dlopen="load_add_on" 17082 lt_cv_dlopen_libs= 17083 lt_cv_dlopen_self=yes 17084 ;; 17085 17086 mingw* | pw32* | cegcc*) 17087 lt_cv_dlopen="LoadLibrary" 17088 lt_cv_dlopen_libs= 17089 ;; 17090 17091 cygwin*) 17092 lt_cv_dlopen="dlopen" 17093 lt_cv_dlopen_libs= 17094 ;; 17095 17096 darwin*) 17097 # if libdl is installed we need to link against it 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17099$as_echo_n "checking for dlopen in -ldl... " >&6; } 17100if ${ac_cv_lib_dl_dlopen+:} false; then : 17101 $as_echo_n "(cached) " >&6 17102else 17103 ac_check_lib_save_LIBS=$LIBS 17104LIBS="-ldl $LIBS" 17105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107 17108/* Override any GCC internal prototype to avoid an error. 17109 Use char because int might match the return type of a GCC 17110 builtin and then its argument prototype would still apply. */ 17111#ifdef __cplusplus 17112extern "C" 17113#endif 17114char dlopen (); 17115int 17116main () 17117{ 17118return dlopen (); 17119 ; 17120 return 0; 17121} 17122_ACEOF 17123if ac_fn_c_try_link "$LINENO"; then : 17124 ac_cv_lib_dl_dlopen=yes 17125else 17126 ac_cv_lib_dl_dlopen=no 17127fi 17128rm -f core conftest.err conftest.$ac_objext \ 17129 conftest$ac_exeext conftest.$ac_ext 17130LIBS=$ac_check_lib_save_LIBS 17131fi 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17133$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17134if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17136else 17137 17138 lt_cv_dlopen="dyld" 17139 lt_cv_dlopen_libs= 17140 lt_cv_dlopen_self=yes 17141 17142fi 17143 17144 ;; 17145 17146 *) 17147 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17148if test "x$ac_cv_func_shl_load" = xyes; then : 17149 lt_cv_dlopen="shl_load" 17150else 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17152$as_echo_n "checking for shl_load in -ldld... " >&6; } 17153if ${ac_cv_lib_dld_shl_load+:} false; then : 17154 $as_echo_n "(cached) " >&6 17155else 17156 ac_check_lib_save_LIBS=$LIBS 17157LIBS="-ldld $LIBS" 17158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159/* end confdefs.h. */ 17160 17161/* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164#ifdef __cplusplus 17165extern "C" 17166#endif 17167char shl_load (); 17168int 17169main () 17170{ 17171return shl_load (); 17172 ; 17173 return 0; 17174} 17175_ACEOF 17176if ac_fn_c_try_link "$LINENO"; then : 17177 ac_cv_lib_dld_shl_load=yes 17178else 17179 ac_cv_lib_dld_shl_load=no 17180fi 17181rm -f core conftest.err conftest.$ac_objext \ 17182 conftest$ac_exeext conftest.$ac_ext 17183LIBS=$ac_check_lib_save_LIBS 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17186$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17187if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17188 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17189else 17190 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17191if test "x$ac_cv_func_dlopen" = xyes; then : 17192 lt_cv_dlopen="dlopen" 17193else 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17195$as_echo_n "checking for dlopen in -ldl... " >&6; } 17196if ${ac_cv_lib_dl_dlopen+:} false; then : 17197 $as_echo_n "(cached) " >&6 17198else 17199 ac_check_lib_save_LIBS=$LIBS 17200LIBS="-ldl $LIBS" 17201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203 17204/* Override any GCC internal prototype to avoid an error. 17205 Use char because int might match the return type of a GCC 17206 builtin and then its argument prototype would still apply. */ 17207#ifdef __cplusplus 17208extern "C" 17209#endif 17210char dlopen (); 17211int 17212main () 17213{ 17214return dlopen (); 17215 ; 17216 return 0; 17217} 17218_ACEOF 17219if ac_fn_c_try_link "$LINENO"; then : 17220 ac_cv_lib_dl_dlopen=yes 17221else 17222 ac_cv_lib_dl_dlopen=no 17223fi 17224rm -f core conftest.err conftest.$ac_objext \ 17225 conftest$ac_exeext conftest.$ac_ext 17226LIBS=$ac_check_lib_save_LIBS 17227fi 17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17229$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17230if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17232else 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17234$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17235if ${ac_cv_lib_svld_dlopen+:} false; then : 17236 $as_echo_n "(cached) " >&6 17237else 17238 ac_check_lib_save_LIBS=$LIBS 17239LIBS="-lsvld $LIBS" 17240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17241/* end confdefs.h. */ 17242 17243/* Override any GCC internal prototype to avoid an error. 17244 Use char because int might match the return type of a GCC 17245 builtin and then its argument prototype would still apply. */ 17246#ifdef __cplusplus 17247extern "C" 17248#endif 17249char dlopen (); 17250int 17251main () 17252{ 17253return dlopen (); 17254 ; 17255 return 0; 17256} 17257_ACEOF 17258if ac_fn_c_try_link "$LINENO"; then : 17259 ac_cv_lib_svld_dlopen=yes 17260else 17261 ac_cv_lib_svld_dlopen=no 17262fi 17263rm -f core conftest.err conftest.$ac_objext \ 17264 conftest$ac_exeext conftest.$ac_ext 17265LIBS=$ac_check_lib_save_LIBS 17266fi 17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17268$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17269if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17271else 17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17273$as_echo_n "checking for dld_link in -ldld... " >&6; } 17274if ${ac_cv_lib_dld_dld_link+:} false; then : 17275 $as_echo_n "(cached) " >&6 17276else 17277 ac_check_lib_save_LIBS=$LIBS 17278LIBS="-ldld $LIBS" 17279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281 17282/* Override any GCC internal prototype to avoid an error. 17283 Use char because int might match the return type of a GCC 17284 builtin and then its argument prototype would still apply. */ 17285#ifdef __cplusplus 17286extern "C" 17287#endif 17288char dld_link (); 17289int 17290main () 17291{ 17292return dld_link (); 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_link "$LINENO"; then : 17298 ac_cv_lib_dld_dld_link=yes 17299else 17300 ac_cv_lib_dld_dld_link=no 17301fi 17302rm -f core conftest.err conftest.$ac_objext \ 17303 conftest$ac_exeext conftest.$ac_ext 17304LIBS=$ac_check_lib_save_LIBS 17305fi 17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17307$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17308if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17310fi 17311 17312 17313fi 17314 17315 17316fi 17317 17318 17319fi 17320 17321 17322fi 17323 17324 17325fi 17326 17327 ;; 17328 esac 17329 17330 if test "x$lt_cv_dlopen" != xno; then 17331 enable_dlopen=yes 17332 else 17333 enable_dlopen=no 17334 fi 17335 17336 case $lt_cv_dlopen in 17337 dlopen) 17338 save_CPPFLAGS="$CPPFLAGS" 17339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17340 17341 save_LDFLAGS="$LDFLAGS" 17342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17343 17344 save_LIBS="$LIBS" 17345 LIBS="$lt_cv_dlopen_libs $LIBS" 17346 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17348$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17349if ${lt_cv_dlopen_self+:} false; then : 17350 $as_echo_n "(cached) " >&6 17351else 17352 if test "$cross_compiling" = yes; then : 17353 lt_cv_dlopen_self=cross 17354else 17355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17356 lt_status=$lt_dlunknown 17357 cat > conftest.$ac_ext <<_LT_EOF 17358#line $LINENO "configure" 17359#include "confdefs.h" 17360 17361#if HAVE_DLFCN_H 17362#include <dlfcn.h> 17363#endif 17364 17365#include <stdio.h> 17366 17367#ifdef RTLD_GLOBAL 17368# define LT_DLGLOBAL RTLD_GLOBAL 17369#else 17370# ifdef DL_GLOBAL 17371# define LT_DLGLOBAL DL_GLOBAL 17372# else 17373# define LT_DLGLOBAL 0 17374# endif 17375#endif 17376 17377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17378 find out it does not work in some platform. */ 17379#ifndef LT_DLLAZY_OR_NOW 17380# ifdef RTLD_LAZY 17381# define LT_DLLAZY_OR_NOW RTLD_LAZY 17382# else 17383# ifdef DL_LAZY 17384# define LT_DLLAZY_OR_NOW DL_LAZY 17385# else 17386# ifdef RTLD_NOW 17387# define LT_DLLAZY_OR_NOW RTLD_NOW 17388# else 17389# ifdef DL_NOW 17390# define LT_DLLAZY_OR_NOW DL_NOW 17391# else 17392# define LT_DLLAZY_OR_NOW 0 17393# endif 17394# endif 17395# endif 17396# endif 17397#endif 17398 17399/* When -fvisbility=hidden is used, assume the code has been annotated 17400 correspondingly for the symbols needed. */ 17401#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17402int fnord () __attribute__((visibility("default"))); 17403#endif 17404 17405int fnord () { return 42; } 17406int main () 17407{ 17408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17409 int status = $lt_dlunknown; 17410 17411 if (self) 17412 { 17413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17414 else 17415 { 17416 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17417 else puts (dlerror ()); 17418 } 17419 /* dlclose (self); */ 17420 } 17421 else 17422 puts (dlerror ()); 17423 17424 return status; 17425} 17426_LT_EOF 17427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17428 (eval $ac_link) 2>&5 17429 ac_status=$? 17430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17431 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17432 (./conftest; exit; ) >&5 2>/dev/null 17433 lt_status=$? 17434 case x$lt_status in 17435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17438 esac 17439 else : 17440 # compilation failed 17441 lt_cv_dlopen_self=no 17442 fi 17443fi 17444rm -fr conftest* 17445 17446 17447fi 17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17449$as_echo "$lt_cv_dlopen_self" >&6; } 17450 17451 if test "x$lt_cv_dlopen_self" = xyes; then 17452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17454$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17455if ${lt_cv_dlopen_self_static+:} false; then : 17456 $as_echo_n "(cached) " >&6 17457else 17458 if test "$cross_compiling" = yes; then : 17459 lt_cv_dlopen_self_static=cross 17460else 17461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17462 lt_status=$lt_dlunknown 17463 cat > conftest.$ac_ext <<_LT_EOF 17464#line $LINENO "configure" 17465#include "confdefs.h" 17466 17467#if HAVE_DLFCN_H 17468#include <dlfcn.h> 17469#endif 17470 17471#include <stdio.h> 17472 17473#ifdef RTLD_GLOBAL 17474# define LT_DLGLOBAL RTLD_GLOBAL 17475#else 17476# ifdef DL_GLOBAL 17477# define LT_DLGLOBAL DL_GLOBAL 17478# else 17479# define LT_DLGLOBAL 0 17480# endif 17481#endif 17482 17483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17484 find out it does not work in some platform. */ 17485#ifndef LT_DLLAZY_OR_NOW 17486# ifdef RTLD_LAZY 17487# define LT_DLLAZY_OR_NOW RTLD_LAZY 17488# else 17489# ifdef DL_LAZY 17490# define LT_DLLAZY_OR_NOW DL_LAZY 17491# else 17492# ifdef RTLD_NOW 17493# define LT_DLLAZY_OR_NOW RTLD_NOW 17494# else 17495# ifdef DL_NOW 17496# define LT_DLLAZY_OR_NOW DL_NOW 17497# else 17498# define LT_DLLAZY_OR_NOW 0 17499# endif 17500# endif 17501# endif 17502# endif 17503#endif 17504 17505/* When -fvisbility=hidden is used, assume the code has been annotated 17506 correspondingly for the symbols needed. */ 17507#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17508int fnord () __attribute__((visibility("default"))); 17509#endif 17510 17511int fnord () { return 42; } 17512int main () 17513{ 17514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17515 int status = $lt_dlunknown; 17516 17517 if (self) 17518 { 17519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17520 else 17521 { 17522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17523 else puts (dlerror ()); 17524 } 17525 /* dlclose (self); */ 17526 } 17527 else 17528 puts (dlerror ()); 17529 17530 return status; 17531} 17532_LT_EOF 17533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17534 (eval $ac_link) 2>&5 17535 ac_status=$? 17536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17537 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17538 (./conftest; exit; ) >&5 2>/dev/null 17539 lt_status=$? 17540 case x$lt_status in 17541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17544 esac 17545 else : 17546 # compilation failed 17547 lt_cv_dlopen_self_static=no 17548 fi 17549fi 17550rm -fr conftest* 17551 17552 17553fi 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17555$as_echo "$lt_cv_dlopen_self_static" >&6; } 17556 fi 17557 17558 CPPFLAGS="$save_CPPFLAGS" 17559 LDFLAGS="$save_LDFLAGS" 17560 LIBS="$save_LIBS" 17561 ;; 17562 esac 17563 17564 case $lt_cv_dlopen_self in 17565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17566 *) enable_dlopen_self=unknown ;; 17567 esac 17568 17569 case $lt_cv_dlopen_self_static in 17570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17571 *) enable_dlopen_self_static=unknown ;; 17572 esac 17573fi 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591striplib= 17592old_striplib= 17593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17594$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17595if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17597 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17599$as_echo "yes" >&6; } 17600else 17601# FIXME - insert some real tests, host_os isn't really good enough 17602 case $host_os in 17603 darwin*) 17604 if test -n "$STRIP" ; then 17605 striplib="$STRIP -x" 17606 old_striplib="$STRIP -S" 17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17608$as_echo "yes" >&6; } 17609 else 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17611$as_echo "no" >&6; } 17612 fi 17613 ;; 17614 *) 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17616$as_echo "no" >&6; } 17617 ;; 17618 esac 17619fi 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 # Report which library types will actually be built 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17634$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17636$as_echo "$can_build_shared" >&6; } 17637 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17639$as_echo_n "checking whether to build shared libraries... " >&6; } 17640 test "$can_build_shared" = "no" && enable_shared=no 17641 17642 # On AIX, shared libraries and static libraries use the same namespace, and 17643 # are all built from PIC. 17644 case $host_os in 17645 aix3*) 17646 test "$enable_shared" = yes && enable_static=no 17647 if test -n "$RANLIB"; then 17648 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17649 postinstall_cmds='$RANLIB $lib' 17650 fi 17651 ;; 17652 17653 aix[4-9]*) 17654 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17655 test "$enable_shared" = yes && enable_static=no 17656 fi 17657 ;; 17658 esac 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17660$as_echo "$enable_shared" >&6; } 17661 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17663$as_echo_n "checking whether to build static libraries... " >&6; } 17664 # Make sure either enable_shared or enable_static is yes. 17665 test "$enable_shared" = yes || enable_static=yes 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17667$as_echo "$enable_static" >&6; } 17668 17669 17670 17671 17672fi 17673ac_ext=c 17674ac_cpp='$CPP $CPPFLAGS' 17675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17677ac_compiler_gnu=$ac_cv_c_compiler_gnu 17678 17679CC="$lt_save_CC" 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 ac_config_commands="$ac_config_commands libtool" 17696 17697 17698 17699 17700# Only expand once: 17701 17702 17703 17704 17705 17706# Define a configure option for an alternate module directory 17707 17708# Check whether --with-xorg-module-dir was given. 17709if test "${with_xorg_module_dir+set}" = set; then : 17710 withval=$with_xorg_module_dir; moduledir="$withval" 17711else 17712 moduledir="$libdir/xorg/modules" 17713fi 17714 17715 17716 17717# Store the list of server defined optional extensions in REQUIRED_MODULES 17718 17719 17720 SAVE_CFLAGS="$CFLAGS" 17721 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724 17725#include "xorg-server.h" 17726#if !defined RANDR 17727#error RANDR not defined 17728#endif 17729 17730int 17731main () 17732{ 17733 17734 ; 17735 return 0; 17736} 17737_ACEOF 17738if ac_fn_c_try_compile "$LINENO"; then : 17739 _EXT_CHECK=yes 17740else 17741 _EXT_CHECK=no 17742fi 17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17744 CFLAGS="$SAVE_CFLAGS" 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17746$as_echo_n "checking if RANDR is defined... " >&6; } 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17748$as_echo "$_EXT_CHECK" >&6; } 17749 if test "$_EXT_CHECK" != no; then 17750 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17751 fi 17752 17753 17754 17755 SAVE_CFLAGS="$CFLAGS" 17756 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758/* end confdefs.h. */ 17759 17760#include "xorg-server.h" 17761#if !defined RENDER 17762#error RENDER not defined 17763#endif 17764 17765int 17766main () 17767{ 17768 17769 ; 17770 return 0; 17771} 17772_ACEOF 17773if ac_fn_c_try_compile "$LINENO"; then : 17774 _EXT_CHECK=yes 17775else 17776 _EXT_CHECK=no 17777fi 17778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17779 CFLAGS="$SAVE_CFLAGS" 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17781$as_echo_n "checking if RENDER is defined... " >&6; } 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17783$as_echo "$_EXT_CHECK" >&6; } 17784 if test "$_EXT_CHECK" != no; then 17785 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17786 fi 17787 17788 17789 17790 SAVE_CFLAGS="$CFLAGS" 17791 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17793/* end confdefs.h. */ 17794 17795#include "xorg-server.h" 17796#if !defined DPMSExtension 17797#error DPMSExtension not defined 17798#endif 17799 17800int 17801main () 17802{ 17803 17804 ; 17805 return 0; 17806} 17807_ACEOF 17808if ac_fn_c_try_compile "$LINENO"; then : 17809 _EXT_CHECK=yes 17810else 17811 _EXT_CHECK=no 17812fi 17813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17814 CFLAGS="$SAVE_CFLAGS" 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17816$as_echo_n "checking if DPMSExtension is defined... " >&6; } 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17818$as_echo "$_EXT_CHECK" >&6; } 17819 if test "$_EXT_CHECK" != no; then 17820 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17821 fi 17822 17823 17824# Obtain compiler/linker options for the driver dependencies 17825 17826pkg_failed=no 17827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17828$as_echo_n "checking for XORG... " >&6; } 17829 17830if test -n "$XORG_CFLAGS"; then 17831 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17832 elif test -n "$PKG_CONFIG"; then 17833 if test -n "$PKG_CONFIG" && \ 17834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17835 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17836 ac_status=$? 17837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17838 test $ac_status = 0; }; then 17839 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17840 test "x$?" != "x0" && pkg_failed=yes 17841else 17842 pkg_failed=yes 17843fi 17844 else 17845 pkg_failed=untried 17846fi 17847if test -n "$XORG_LIBS"; then 17848 pkg_cv_XORG_LIBS="$XORG_LIBS" 17849 elif test -n "$PKG_CONFIG"; then 17850 if test -n "$PKG_CONFIG" && \ 17851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17852 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17853 ac_status=$? 17854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17855 test $ac_status = 0; }; then 17856 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17857 test "x$?" != "x0" && pkg_failed=yes 17858else 17859 pkg_failed=yes 17860fi 17861 else 17862 pkg_failed=untried 17863fi 17864 17865 17866 17867if test $pkg_failed = yes; then 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17869$as_echo "no" >&6; } 17870 17871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17872 _pkg_short_errors_supported=yes 17873else 17874 _pkg_short_errors_supported=no 17875fi 17876 if test $_pkg_short_errors_supported = yes; then 17877 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17878 else 17879 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17880 fi 17881 # Put the nasty error message in config.log where it belongs 17882 echo "$XORG_PKG_ERRORS" >&5 17883 17884 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17885 17886$XORG_PKG_ERRORS 17887 17888Consider adjusting the PKG_CONFIG_PATH environment variable if you 17889installed software in a non-standard prefix. 17890 17891Alternatively, you may set the environment variables XORG_CFLAGS 17892and XORG_LIBS to avoid the need to call pkg-config. 17893See the pkg-config man page for more details." "$LINENO" 5 17894elif test $pkg_failed = untried; then 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17896$as_echo "no" >&6; } 17897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17899as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17900is in your PATH or set the PKG_CONFIG environment variable to the full 17901path to pkg-config. 17902 17903Alternatively, you may set the environment variables XORG_CFLAGS 17904and XORG_LIBS to avoid the need to call pkg-config. 17905See the pkg-config man page for more details. 17906 17907To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17908See \`config.log' for more details" "$LINENO" 5; } 17909else 17910 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17911 XORG_LIBS=$pkg_cv_XORG_LIBS 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17913$as_echo "yes" >&6; } 17914 17915fi 17916 17917pkg_failed=no 17918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 17919$as_echo_n "checking for XEXT... " >&6; } 17920 17921if test -n "$XEXT_CFLAGS"; then 17922 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 17923 elif test -n "$PKG_CONFIG"; then 17924 if test -n "$PKG_CONFIG" && \ 17925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17926 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17927 ac_status=$? 17928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17929 test $ac_status = 0; }; then 17930 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 17931 test "x$?" != "x0" && pkg_failed=yes 17932else 17933 pkg_failed=yes 17934fi 17935 else 17936 pkg_failed=untried 17937fi 17938if test -n "$XEXT_LIBS"; then 17939 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 17940 elif test -n "$PKG_CONFIG"; then 17941 if test -n "$PKG_CONFIG" && \ 17942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17943 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17944 ac_status=$? 17945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17946 test $ac_status = 0; }; then 17947 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 17948 test "x$?" != "x0" && pkg_failed=yes 17949else 17950 pkg_failed=yes 17951fi 17952 else 17953 pkg_failed=untried 17954fi 17955 17956 17957 17958if test $pkg_failed = yes; then 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17960$as_echo "no" >&6; } 17961 17962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17963 _pkg_short_errors_supported=yes 17964else 17965 _pkg_short_errors_supported=no 17966fi 17967 if test $_pkg_short_errors_supported = yes; then 17968 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 17969 else 17970 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 17971 fi 17972 # Put the nasty error message in config.log where it belongs 17973 echo "$XEXT_PKG_ERRORS" >&5 17974 17975 HAVE_XEXTPROTO_71="no" 17976elif test $pkg_failed = untried; then 17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17978$as_echo "no" >&6; } 17979 HAVE_XEXTPROTO_71="no" 17980else 17981 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 17982 XEXT_LIBS=$pkg_cv_XEXT_LIBS 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17984$as_echo "yes" >&6; } 17985 HAVE_XEXTPROTO_71="yes" 17986fi 17987 17988if test "x$HAVE_XEXTPROTO_71" = xyes; then 17989 17990$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 17991 17992fi 17993 17994save_CFLAGS="$CFLAGS" 17995CFLAGS="$XORG_CFLAGS" 17996ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 17997" 17998if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then : 17999 18000$as_echo "#define HAVE_ISA 1" >>confdefs.h 18001 18002fi 18003 18004CFLAGS="$save_CFLAGS" 18005 18006save_CFLAGS="$CFLAGS" 18007CFLAGS="$XORG_CFLAGS" 18008ac_fn_c_check_decl "$LINENO" "VBEReadPanelID" "ac_cv_have_decl_VBEReadPanelID" "#include \"vbe.h\" 18009" 18010if test "x$ac_cv_have_decl_VBEReadPanelID" = xyes; then : 18011 18012$as_echo "#define HAVE_PANELID 1" >>confdefs.h 18013 18014fi 18015 18016CFLAGS="$save_CFLAGS" 18017 18018save_CFLAGS="$CFLAGS" 18019CFLAGS="$XORG_CFLAGS" 18020ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18021" 18022if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18023 XSERVER_LIBPCIACCESS=yes 18024else 18025 XSERVER_LIBPCIACCESS=no 18026fi 18027 18028CFLAGS="$save_CFLAGS" 18029 18030if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18031 18032pkg_failed=no 18033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18034$as_echo_n "checking for PCIACCESS... " >&6; } 18035 18036if test -n "$PCIACCESS_CFLAGS"; then 18037 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18038 elif test -n "$PKG_CONFIG"; then 18039 if test -n "$PKG_CONFIG" && \ 18040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 18041 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 18042 ac_status=$? 18043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18044 test $ac_status = 0; }; then 18045 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 18046 test "x$?" != "x0" && pkg_failed=yes 18047else 18048 pkg_failed=yes 18049fi 18050 else 18051 pkg_failed=untried 18052fi 18053if test -n "$PCIACCESS_LIBS"; then 18054 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18055 elif test -n "$PKG_CONFIG"; then 18056 if test -n "$PKG_CONFIG" && \ 18057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 18058 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 18059 ac_status=$? 18060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18061 test $ac_status = 0; }; then 18062 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 18063 test "x$?" != "x0" && pkg_failed=yes 18064else 18065 pkg_failed=yes 18066fi 18067 else 18068 pkg_failed=untried 18069fi 18070 18071 18072 18073if test $pkg_failed = yes; then 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18075$as_echo "no" >&6; } 18076 18077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18078 _pkg_short_errors_supported=yes 18079else 18080 _pkg_short_errors_supported=no 18081fi 18082 if test $_pkg_short_errors_supported = yes; then 18083 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 18084 else 18085 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 18086 fi 18087 # Put the nasty error message in config.log where it belongs 18088 echo "$PCIACCESS_PKG_ERRORS" >&5 18089 18090 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 18091 18092$PCIACCESS_PKG_ERRORS 18093 18094Consider adjusting the PKG_CONFIG_PATH environment variable if you 18095installed software in a non-standard prefix. 18096 18097Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18098and PCIACCESS_LIBS to avoid the need to call pkg-config. 18099See the pkg-config man page for more details." "$LINENO" 5 18100elif test $pkg_failed = untried; then 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18102$as_echo "no" >&6; } 18103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18105as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18106is in your PATH or set the PKG_CONFIG environment variable to the full 18107path to pkg-config. 18108 18109Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18110and PCIACCESS_LIBS to avoid the need to call pkg-config. 18111See the pkg-config man page for more details. 18112 18113To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18114See \`config.log' for more details" "$LINENO" 5; } 18115else 18116 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18117 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18119$as_echo "yes" >&6; } 18120 18121fi 18122fi 18123 18124# Checks for libraries. 18125 18126DRIVER_NAME=vesa 18127 18128 18129ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18130 18131cat >confcache <<\_ACEOF 18132# This file is a shell script that caches the results of configure 18133# tests run on this system so they can be shared between configure 18134# scripts and configure runs, see configure's option --config-cache. 18135# It is not useful on other systems. If it contains results you don't 18136# want to keep, you may remove or edit it. 18137# 18138# config.status only pays attention to the cache file if you give it 18139# the --recheck option to rerun configure. 18140# 18141# `ac_cv_env_foo' variables (set or unset) will be overridden when 18142# loading this file, other *unset* `ac_cv_foo' will be assigned the 18143# following values. 18144 18145_ACEOF 18146 18147# The following way of writing the cache mishandles newlines in values, 18148# but we know of no workaround that is simple, portable, and efficient. 18149# So, we kill variables containing newlines. 18150# Ultrix sh set writes to stderr and can't be redirected directly, 18151# and sets the high bit in the cache file unless we assign to the vars. 18152( 18153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18154 eval ac_val=\$$ac_var 18155 case $ac_val in #( 18156 *${as_nl}*) 18157 case $ac_var in #( 18158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18159$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18160 esac 18161 case $ac_var in #( 18162 _ | IFS | as_nl) ;; #( 18163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18164 *) { eval $ac_var=; unset $ac_var;} ;; 18165 esac ;; 18166 esac 18167 done 18168 18169 (set) 2>&1 | 18170 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18171 *${as_nl}ac_space=\ *) 18172 # `set' does not quote correctly, so add quotes: double-quote 18173 # substitution turns \\\\ into \\, and sed turns \\ into \. 18174 sed -n \ 18175 "s/'/'\\\\''/g; 18176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18177 ;; #( 18178 *) 18179 # `set' quotes correctly as required by POSIX, so do not add quotes. 18180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18181 ;; 18182 esac | 18183 sort 18184) | 18185 sed ' 18186 /^ac_cv_env_/b end 18187 t clear 18188 :clear 18189 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18190 t end 18191 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18192 :end' >>confcache 18193if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18194 if test -w "$cache_file"; then 18195 if test "x$cache_file" != "x/dev/null"; then 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18197$as_echo "$as_me: updating cache $cache_file" >&6;} 18198 if test ! -f "$cache_file" || test -h "$cache_file"; then 18199 cat confcache >"$cache_file" 18200 else 18201 case $cache_file in #( 18202 */* | ?:*) 18203 mv -f confcache "$cache_file"$$ && 18204 mv -f "$cache_file"$$ "$cache_file" ;; #( 18205 *) 18206 mv -f confcache "$cache_file" ;; 18207 esac 18208 fi 18209 fi 18210 else 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18212$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18213 fi 18214fi 18215rm -f confcache 18216 18217test "x$prefix" = xNONE && prefix=$ac_default_prefix 18218# Let make expand exec_prefix. 18219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18220 18221DEFS=-DHAVE_CONFIG_H 18222 18223ac_libobjs= 18224ac_ltlibobjs= 18225U= 18226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18227 # 1. Remove the extension, and $U if already installed. 18228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18229 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18231 # will be set to the directory where LIBOBJS objects are built. 18232 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18233 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18234done 18235LIBOBJS=$ac_libobjs 18236 18237LTLIBOBJS=$ac_ltlibobjs 18238 18239 18240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18241$as_echo_n "checking that generated files are newer than configure... " >&6; } 18242 if test -n "$am_sleep_pid"; then 18243 # Hide warnings about reused PIDs. 18244 wait $am_sleep_pid 2>/dev/null 18245 fi 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18247$as_echo "done" >&6; } 18248 if test -n "$EXEEXT"; then 18249 am__EXEEXT_TRUE= 18250 am__EXEEXT_FALSE='#' 18251else 18252 am__EXEEXT_TRUE='#' 18253 am__EXEEXT_FALSE= 18254fi 18255 18256if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18257 as_fn_error $? "conditional \"AMDEP\" was never defined. 18258Usually this means the macro was only invoked conditionally." "$LINENO" 5 18259fi 18260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18261 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18262Usually this means the macro was only invoked conditionally." "$LINENO" 5 18263fi 18264 18265: "${CONFIG_STATUS=./config.status}" 18266ac_write_fail=0 18267ac_clean_files_save=$ac_clean_files 18268ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18269{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18270$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18271as_write_fail=0 18272cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18273#! $SHELL 18274# Generated by $as_me. 18275# Run this file to recreate the current configuration. 18276# Compiler output produced by configure, useful for debugging 18277# configure, is in config.log if it exists. 18278 18279debug=false 18280ac_cs_recheck=false 18281ac_cs_silent=false 18282 18283SHELL=\${CONFIG_SHELL-$SHELL} 18284export SHELL 18285_ASEOF 18286cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18287## -------------------- ## 18288## M4sh Initialization. ## 18289## -------------------- ## 18290 18291# Be more Bourne compatible 18292DUALCASE=1; export DUALCASE # for MKS sh 18293if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18294 emulate sh 18295 NULLCMD=: 18296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18297 # is contrary to our usage. Disable this feature. 18298 alias -g '${1+"$@"}'='"$@"' 18299 setopt NO_GLOB_SUBST 18300else 18301 case `(set -o) 2>/dev/null` in #( 18302 *posix*) : 18303 set -o posix ;; #( 18304 *) : 18305 ;; 18306esac 18307fi 18308 18309 18310as_nl=' 18311' 18312export as_nl 18313# Printing a long string crashes Solaris 7 /usr/bin/printf. 18314as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18317# Prefer a ksh shell builtin over an external printf program on Solaris, 18318# but without wasting forks for bash or zsh. 18319if test -z "$BASH_VERSION$ZSH_VERSION" \ 18320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18321 as_echo='print -r --' 18322 as_echo_n='print -rn --' 18323elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18324 as_echo='printf %s\n' 18325 as_echo_n='printf %s' 18326else 18327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18329 as_echo_n='/usr/ucb/echo -n' 18330 else 18331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18332 as_echo_n_body='eval 18333 arg=$1; 18334 case $arg in #( 18335 *"$as_nl"*) 18336 expr "X$arg" : "X\\(.*\\)$as_nl"; 18337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18338 esac; 18339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18340 ' 18341 export as_echo_n_body 18342 as_echo_n='sh -c $as_echo_n_body as_echo' 18343 fi 18344 export as_echo_body 18345 as_echo='sh -c $as_echo_body as_echo' 18346fi 18347 18348# The user is always right. 18349if test "${PATH_SEPARATOR+set}" != set; then 18350 PATH_SEPARATOR=: 18351 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18352 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18353 PATH_SEPARATOR=';' 18354 } 18355fi 18356 18357 18358# IFS 18359# We need space, tab and new line, in precisely that order. Quoting is 18360# there to prevent editors from complaining about space-tab. 18361# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18362# splitting by setting IFS to empty value.) 18363IFS=" "" $as_nl" 18364 18365# Find who we are. Look in the path if we contain no directory separator. 18366as_myself= 18367case $0 in #(( 18368 *[\\/]* ) as_myself=$0 ;; 18369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18370for as_dir in $PATH 18371do 18372 IFS=$as_save_IFS 18373 test -z "$as_dir" && as_dir=. 18374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18375 done 18376IFS=$as_save_IFS 18377 18378 ;; 18379esac 18380# We did not find ourselves, most probably we were run as `sh COMMAND' 18381# in which case we are not to be found in the path. 18382if test "x$as_myself" = x; then 18383 as_myself=$0 18384fi 18385if test ! -f "$as_myself"; then 18386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18387 exit 1 18388fi 18389 18390# Unset variables that we do not need and which cause bugs (e.g. in 18391# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18392# suppresses any "Segmentation fault" message there. '((' could 18393# trigger a bug in pdksh 5.2.14. 18394for as_var in BASH_ENV ENV MAIL MAILPATH 18395do eval test x\${$as_var+set} = xset \ 18396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18397done 18398PS1='$ ' 18399PS2='> ' 18400PS4='+ ' 18401 18402# NLS nuisances. 18403LC_ALL=C 18404export LC_ALL 18405LANGUAGE=C 18406export LANGUAGE 18407 18408# CDPATH. 18409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18410 18411 18412# as_fn_error STATUS ERROR [LINENO LOG_FD] 18413# ---------------------------------------- 18414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18416# script with STATUS, using 1 if that was 0. 18417as_fn_error () 18418{ 18419 as_status=$1; test $as_status -eq 0 && as_status=1 18420 if test "$4"; then 18421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18423 fi 18424 $as_echo "$as_me: error: $2" >&2 18425 as_fn_exit $as_status 18426} # as_fn_error 18427 18428 18429# as_fn_set_status STATUS 18430# ----------------------- 18431# Set $? to STATUS, without forking. 18432as_fn_set_status () 18433{ 18434 return $1 18435} # as_fn_set_status 18436 18437# as_fn_exit STATUS 18438# ----------------- 18439# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18440as_fn_exit () 18441{ 18442 set +e 18443 as_fn_set_status $1 18444 exit $1 18445} # as_fn_exit 18446 18447# as_fn_unset VAR 18448# --------------- 18449# Portably unset VAR. 18450as_fn_unset () 18451{ 18452 { eval $1=; unset $1;} 18453} 18454as_unset=as_fn_unset 18455# as_fn_append VAR VALUE 18456# ---------------------- 18457# Append the text in VALUE to the end of the definition contained in VAR. Take 18458# advantage of any shell optimizations that allow amortized linear growth over 18459# repeated appends, instead of the typical quadratic growth present in naive 18460# implementations. 18461if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18462 eval 'as_fn_append () 18463 { 18464 eval $1+=\$2 18465 }' 18466else 18467 as_fn_append () 18468 { 18469 eval $1=\$$1\$2 18470 } 18471fi # as_fn_append 18472 18473# as_fn_arith ARG... 18474# ------------------ 18475# Perform arithmetic evaluation on the ARGs, and store the result in the 18476# global $as_val. Take advantage of shells that can avoid forks. The arguments 18477# must be portable across $(()) and expr. 18478if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18479 eval 'as_fn_arith () 18480 { 18481 as_val=$(( $* )) 18482 }' 18483else 18484 as_fn_arith () 18485 { 18486 as_val=`expr "$@" || test $? -eq 1` 18487 } 18488fi # as_fn_arith 18489 18490 18491if expr a : '\(a\)' >/dev/null 2>&1 && 18492 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18493 as_expr=expr 18494else 18495 as_expr=false 18496fi 18497 18498if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18499 as_basename=basename 18500else 18501 as_basename=false 18502fi 18503 18504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18505 as_dirname=dirname 18506else 18507 as_dirname=false 18508fi 18509 18510as_me=`$as_basename -- "$0" || 18511$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18512 X"$0" : 'X\(//\)$' \| \ 18513 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18514$as_echo X/"$0" | 18515 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18516 s//\1/ 18517 q 18518 } 18519 /^X\/\(\/\/\)$/{ 18520 s//\1/ 18521 q 18522 } 18523 /^X\/\(\/\).*/{ 18524 s//\1/ 18525 q 18526 } 18527 s/.*/./; q'` 18528 18529# Avoid depending upon Character Ranges. 18530as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18532as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18533as_cr_digits='0123456789' 18534as_cr_alnum=$as_cr_Letters$as_cr_digits 18535 18536ECHO_C= ECHO_N= ECHO_T= 18537case `echo -n x` in #((((( 18538-n*) 18539 case `echo 'xy\c'` in 18540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18541 xy) ECHO_C='\c';; 18542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18543 ECHO_T=' ';; 18544 esac;; 18545*) 18546 ECHO_N='-n';; 18547esac 18548 18549rm -f conf$$ conf$$.exe conf$$.file 18550if test -d conf$$.dir; then 18551 rm -f conf$$.dir/conf$$.file 18552else 18553 rm -f conf$$.dir 18554 mkdir conf$$.dir 2>/dev/null 18555fi 18556if (echo >conf$$.file) 2>/dev/null; then 18557 if ln -s conf$$.file conf$$ 2>/dev/null; then 18558 as_ln_s='ln -s' 18559 # ... but there are two gotchas: 18560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18562 # In both cases, we have to default to `cp -pR'. 18563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18564 as_ln_s='cp -pR' 18565 elif ln conf$$.file conf$$ 2>/dev/null; then 18566 as_ln_s=ln 18567 else 18568 as_ln_s='cp -pR' 18569 fi 18570else 18571 as_ln_s='cp -pR' 18572fi 18573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18574rmdir conf$$.dir 2>/dev/null 18575 18576 18577# as_fn_mkdir_p 18578# ------------- 18579# Create "$as_dir" as a directory, including parents if necessary. 18580as_fn_mkdir_p () 18581{ 18582 18583 case $as_dir in #( 18584 -*) as_dir=./$as_dir;; 18585 esac 18586 test -d "$as_dir" || eval $as_mkdir_p || { 18587 as_dirs= 18588 while :; do 18589 case $as_dir in #( 18590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18591 *) as_qdir=$as_dir;; 18592 esac 18593 as_dirs="'$as_qdir' $as_dirs" 18594 as_dir=`$as_dirname -- "$as_dir" || 18595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18596 X"$as_dir" : 'X\(//\)[^/]' \| \ 18597 X"$as_dir" : 'X\(//\)$' \| \ 18598 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18599$as_echo X"$as_dir" | 18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18601 s//\1/ 18602 q 18603 } 18604 /^X\(\/\/\)[^/].*/{ 18605 s//\1/ 18606 q 18607 } 18608 /^X\(\/\/\)$/{ 18609 s//\1/ 18610 q 18611 } 18612 /^X\(\/\).*/{ 18613 s//\1/ 18614 q 18615 } 18616 s/.*/./; q'` 18617 test -d "$as_dir" && break 18618 done 18619 test -z "$as_dirs" || eval "mkdir $as_dirs" 18620 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18621 18622 18623} # as_fn_mkdir_p 18624if mkdir -p . 2>/dev/null; then 18625 as_mkdir_p='mkdir -p "$as_dir"' 18626else 18627 test -d ./-p && rmdir ./-p 18628 as_mkdir_p=false 18629fi 18630 18631 18632# as_fn_executable_p FILE 18633# ----------------------- 18634# Test if FILE is an executable regular file. 18635as_fn_executable_p () 18636{ 18637 test -f "$1" && test -x "$1" 18638} # as_fn_executable_p 18639as_test_x='test -x' 18640as_executable_p=as_fn_executable_p 18641 18642# Sed expression to map a string onto a valid CPP name. 18643as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18644 18645# Sed expression to map a string onto a valid variable name. 18646as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18647 18648 18649exec 6>&1 18650## ----------------------------------- ## 18651## Main body of $CONFIG_STATUS script. ## 18652## ----------------------------------- ## 18653_ASEOF 18654test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18655 18656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18657# Save the log message, to keep $0 and so on meaningful, and to 18658# report actual input values of CONFIG_FILES etc. instead of their 18659# values after options handling. 18660ac_log=" 18661This file was extended by xf86-video-vesa $as_me 2.3.3, which was 18662generated by GNU Autoconf 2.69. Invocation command line was 18663 18664 CONFIG_FILES = $CONFIG_FILES 18665 CONFIG_HEADERS = $CONFIG_HEADERS 18666 CONFIG_LINKS = $CONFIG_LINKS 18667 CONFIG_COMMANDS = $CONFIG_COMMANDS 18668 $ $0 $@ 18669 18670on `(hostname || uname -n) 2>/dev/null | sed 1q` 18671" 18672 18673_ACEOF 18674 18675case $ac_config_files in *" 18676"*) set x $ac_config_files; shift; ac_config_files=$*;; 18677esac 18678 18679case $ac_config_headers in *" 18680"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18681esac 18682 18683 18684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18685# Files that config.status was made for. 18686config_files="$ac_config_files" 18687config_headers="$ac_config_headers" 18688config_commands="$ac_config_commands" 18689 18690_ACEOF 18691 18692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18693ac_cs_usage="\ 18694\`$as_me' instantiates files and other configuration actions 18695from templates according to the current configuration. Unless the files 18696and actions are specified as TAGs, all are instantiated by default. 18697 18698Usage: $0 [OPTION]... [TAG]... 18699 18700 -h, --help print this help, then exit 18701 -V, --version print version number and configuration settings, then exit 18702 --config print configuration, then exit 18703 -q, --quiet, --silent 18704 do not print progress messages 18705 -d, --debug don't remove temporary files 18706 --recheck update $as_me by reconfiguring in the same conditions 18707 --file=FILE[:TEMPLATE] 18708 instantiate the configuration file FILE 18709 --header=FILE[:TEMPLATE] 18710 instantiate the configuration header FILE 18711 18712Configuration files: 18713$config_files 18714 18715Configuration headers: 18716$config_headers 18717 18718Configuration commands: 18719$config_commands 18720 18721Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18722 18723_ACEOF 18724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18725ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18726ac_cs_version="\\ 18727xf86-video-vesa config.status 2.3.3 18728configured by $0, generated by GNU Autoconf 2.69, 18729 with options \\"\$ac_cs_config\\" 18730 18731Copyright (C) 2012 Free Software Foundation, Inc. 18732This config.status script is free software; the Free Software Foundation 18733gives unlimited permission to copy, distribute and modify it." 18734 18735ac_pwd='$ac_pwd' 18736srcdir='$srcdir' 18737INSTALL='$INSTALL' 18738MKDIR_P='$MKDIR_P' 18739AWK='$AWK' 18740test -n "\$AWK" || AWK=awk 18741_ACEOF 18742 18743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18744# The default lists apply if the user does not specify any file. 18745ac_need_defaults=: 18746while test $# != 0 18747do 18748 case $1 in 18749 --*=?*) 18750 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18752 ac_shift=: 18753 ;; 18754 --*=) 18755 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18756 ac_optarg= 18757 ac_shift=: 18758 ;; 18759 *) 18760 ac_option=$1 18761 ac_optarg=$2 18762 ac_shift=shift 18763 ;; 18764 esac 18765 18766 case $ac_option in 18767 # Handling of the options. 18768 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18769 ac_cs_recheck=: ;; 18770 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18771 $as_echo "$ac_cs_version"; exit ;; 18772 --config | --confi | --conf | --con | --co | --c ) 18773 $as_echo "$ac_cs_config"; exit ;; 18774 --debug | --debu | --deb | --de | --d | -d ) 18775 debug=: ;; 18776 --file | --fil | --fi | --f ) 18777 $ac_shift 18778 case $ac_optarg in 18779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18780 '') as_fn_error $? "missing file argument" ;; 18781 esac 18782 as_fn_append CONFIG_FILES " '$ac_optarg'" 18783 ac_need_defaults=false;; 18784 --header | --heade | --head | --hea ) 18785 $ac_shift 18786 case $ac_optarg in 18787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18788 esac 18789 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18790 ac_need_defaults=false;; 18791 --he | --h) 18792 # Conflict between --help and --header 18793 as_fn_error $? "ambiguous option: \`$1' 18794Try \`$0 --help' for more information.";; 18795 --help | --hel | -h ) 18796 $as_echo "$ac_cs_usage"; exit ;; 18797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18798 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18799 ac_cs_silent=: ;; 18800 18801 # This is an error. 18802 -*) as_fn_error $? "unrecognized option: \`$1' 18803Try \`$0 --help' for more information." ;; 18804 18805 *) as_fn_append ac_config_targets " $1" 18806 ac_need_defaults=false ;; 18807 18808 esac 18809 shift 18810done 18811 18812ac_configure_extra_args= 18813 18814if $ac_cs_silent; then 18815 exec 6>/dev/null 18816 ac_configure_extra_args="$ac_configure_extra_args --silent" 18817fi 18818 18819_ACEOF 18820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18821if \$ac_cs_recheck; then 18822 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18823 shift 18824 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18825 CONFIG_SHELL='$SHELL' 18826 export CONFIG_SHELL 18827 exec "\$@" 18828fi 18829 18830_ACEOF 18831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18832exec 5>>config.log 18833{ 18834 echo 18835 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18836## Running $as_me. ## 18837_ASBOX 18838 $as_echo "$ac_log" 18839} >&5 18840 18841_ACEOF 18842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18843# 18844# INIT-COMMANDS 18845# 18846AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18847 18848 18849# The HP-UX ksh and POSIX shell print the target directory to stdout 18850# if CDPATH is set. 18851(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18852 18853sed_quote_subst='$sed_quote_subst' 18854double_quote_subst='$double_quote_subst' 18855delay_variable_subst='$delay_variable_subst' 18856enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18857macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18858macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18859enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18860pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18861enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18862SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18863ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18864PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18865host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18866host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18867host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18868build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18869build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18870build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18871SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18872Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18873GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18874EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18875FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18876LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18877NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18878LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18879max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18880ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18881exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18882lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18883lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18884lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18885lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18886lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18887reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18888reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18889OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18890deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18891file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18892file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18893want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18894DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18895sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18896AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18897AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18898archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18899STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18900RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18901old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18902old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18903old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18904lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18905CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18906CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18907compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18908GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18909lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18910lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18911lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18912lt_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"`' 18913nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18914lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18915objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18916MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18917lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18918lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18919lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18920lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18921lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18922need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18923MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18924DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18925NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18926LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18927OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18928OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18929libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18930shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18931extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18932archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18933enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18934export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18935whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18936compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18937old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18938old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18939archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18940archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18941module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18942module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18943with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18944allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18945no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18946hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18947hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18948hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18949hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18950hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18951hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18952hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18953inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18954link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18955always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18956export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18957exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18958include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18959prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18960postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18961file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18962variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18963need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18964need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18965version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18966runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18967shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18968shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18969libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18970library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18971soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18972install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18973postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18974postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18975finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18976finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18977hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18978sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18979sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18980hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18981enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18982enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18983enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18984old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18985striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18986 18987LTCC='$LTCC' 18988LTCFLAGS='$LTCFLAGS' 18989compiler='$compiler_DEFAULT' 18990 18991# A function that is used when there is no print builtin or printf. 18992func_fallback_echo () 18993{ 18994 eval 'cat <<_LTECHO_EOF 18995\$1 18996_LTECHO_EOF' 18997} 18998 18999# Quote evaled strings. 19000for var in SHELL \ 19001ECHO \ 19002PATH_SEPARATOR \ 19003SED \ 19004GREP \ 19005EGREP \ 19006FGREP \ 19007LD \ 19008NM \ 19009LN_S \ 19010lt_SP2NL \ 19011lt_NL2SP \ 19012reload_flag \ 19013OBJDUMP \ 19014deplibs_check_method \ 19015file_magic_cmd \ 19016file_magic_glob \ 19017want_nocaseglob \ 19018DLLTOOL \ 19019sharedlib_from_linklib_cmd \ 19020AR \ 19021AR_FLAGS \ 19022archiver_list_spec \ 19023STRIP \ 19024RANLIB \ 19025CC \ 19026CFLAGS \ 19027compiler \ 19028lt_cv_sys_global_symbol_pipe \ 19029lt_cv_sys_global_symbol_to_cdecl \ 19030lt_cv_sys_global_symbol_to_c_name_address \ 19031lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19032nm_file_list_spec \ 19033lt_prog_compiler_no_builtin_flag \ 19034lt_prog_compiler_pic \ 19035lt_prog_compiler_wl \ 19036lt_prog_compiler_static \ 19037lt_cv_prog_compiler_c_o \ 19038need_locks \ 19039MANIFEST_TOOL \ 19040DSYMUTIL \ 19041NMEDIT \ 19042LIPO \ 19043OTOOL \ 19044OTOOL64 \ 19045shrext_cmds \ 19046export_dynamic_flag_spec \ 19047whole_archive_flag_spec \ 19048compiler_needs_object \ 19049with_gnu_ld \ 19050allow_undefined_flag \ 19051no_undefined_flag \ 19052hardcode_libdir_flag_spec \ 19053hardcode_libdir_separator \ 19054exclude_expsyms \ 19055include_expsyms \ 19056file_list_spec \ 19057variables_saved_for_relink \ 19058libname_spec \ 19059library_names_spec \ 19060soname_spec \ 19061install_override_mode \ 19062finish_eval \ 19063old_striplib \ 19064striplib; do 19065 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19066 *[\\\\\\\`\\"\\\$]*) 19067 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19068 ;; 19069 *) 19070 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19071 ;; 19072 esac 19073done 19074 19075# Double-quote double-evaled strings. 19076for var in reload_cmds \ 19077old_postinstall_cmds \ 19078old_postuninstall_cmds \ 19079old_archive_cmds \ 19080extract_expsyms_cmds \ 19081old_archive_from_new_cmds \ 19082old_archive_from_expsyms_cmds \ 19083archive_cmds \ 19084archive_expsym_cmds \ 19085module_cmds \ 19086module_expsym_cmds \ 19087export_symbols_cmds \ 19088prelink_cmds \ 19089postlink_cmds \ 19090postinstall_cmds \ 19091postuninstall_cmds \ 19092finish_cmds \ 19093sys_lib_search_path_spec \ 19094sys_lib_dlsearch_path_spec; do 19095 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19096 *[\\\\\\\`\\"\\\$]*) 19097 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19098 ;; 19099 *) 19100 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19101 ;; 19102 esac 19103done 19104 19105ac_aux_dir='$ac_aux_dir' 19106xsi_shell='$xsi_shell' 19107lt_shell_append='$lt_shell_append' 19108 19109# See if we are running on zsh, and set the options which allow our 19110# commands through without removal of \ escapes INIT. 19111if test -n "\${ZSH_VERSION+set}" ; then 19112 setopt NO_GLOB_SUBST 19113fi 19114 19115 19116 PACKAGE='$PACKAGE' 19117 VERSION='$VERSION' 19118 TIMESTAMP='$TIMESTAMP' 19119 RM='$RM' 19120 ofile='$ofile' 19121 19122 19123 19124 19125_ACEOF 19126 19127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19128 19129# Handling of arguments. 19130for ac_config_target in $ac_config_targets 19131do 19132 case $ac_config_target in 19133 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19135 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19137 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19138 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19139 19140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19141 esac 19142done 19143 19144 19145# If the user did not use the arguments to specify the items to instantiate, 19146# then the envvar interface is used. Set only those that are not. 19147# We use the long form for the default assignment because of an extremely 19148# bizarre bug on SunOS 4.1.3. 19149if $ac_need_defaults; then 19150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19153fi 19154 19155# Have a temporary directory for convenience. Make it in the build tree 19156# simply because there is no reason against having it here, and in addition, 19157# creating and moving files from /tmp can sometimes cause problems. 19158# Hook for its removal unless debugging. 19159# Note that there is a small window in which the directory will not be cleaned: 19160# after its creation but before its name has been assigned to `$tmp'. 19161$debug || 19162{ 19163 tmp= ac_tmp= 19164 trap 'exit_status=$? 19165 : "${ac_tmp:=$tmp}" 19166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19167' 0 19168 trap 'as_fn_exit 1' 1 2 13 15 19169} 19170# Create a (secure) tmp directory for tmp files. 19171 19172{ 19173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19174 test -d "$tmp" 19175} || 19176{ 19177 tmp=./conf$$-$RANDOM 19178 (umask 077 && mkdir "$tmp") 19179} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19180ac_tmp=$tmp 19181 19182# Set up the scripts for CONFIG_FILES section. 19183# No need to generate them if there are no CONFIG_FILES. 19184# This happens for instance with `./config.status config.h'. 19185if test -n "$CONFIG_FILES"; then 19186 19187 19188ac_cr=`echo X | tr X '\015'` 19189# On cygwin, bash can eat \r inside `` if the user requested igncr. 19190# But we know of no other shell where ac_cr would be empty at this 19191# point, so we can use a bashism as a fallback. 19192if test "x$ac_cr" = x; then 19193 eval ac_cr=\$\'\\r\' 19194fi 19195ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19196if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19197 ac_cs_awk_cr='\\r' 19198else 19199 ac_cs_awk_cr=$ac_cr 19200fi 19201 19202echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19203_ACEOF 19204 19205 19206{ 19207 echo "cat >conf$$subs.awk <<_ACEOF" && 19208 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19209 echo "_ACEOF" 19210} >conf$$subs.sh || 19211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19212ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19213ac_delim='%!_!# ' 19214for ac_last_try in false false false false false :; do 19215 . ./conf$$subs.sh || 19216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19217 19218 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19219 if test $ac_delim_n = $ac_delim_num; then 19220 break 19221 elif $ac_last_try; then 19222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19223 else 19224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19225 fi 19226done 19227rm -f conf$$subs.sh 19228 19229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19230cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19231_ACEOF 19232sed -n ' 19233h 19234s/^/S["/; s/!.*/"]=/ 19235p 19236g 19237s/^[^!]*!// 19238:repl 19239t repl 19240s/'"$ac_delim"'$// 19241t delim 19242:nl 19243h 19244s/\(.\{148\}\)..*/\1/ 19245t more1 19246s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19247p 19248n 19249b repl 19250:more1 19251s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19252p 19253g 19254s/.\{148\}// 19255t nl 19256:delim 19257h 19258s/\(.\{148\}\)..*/\1/ 19259t more2 19260s/["\\]/\\&/g; s/^/"/; s/$/"/ 19261p 19262b 19263:more2 19264s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19265p 19266g 19267s/.\{148\}// 19268t delim 19269' <conf$$subs.awk | sed ' 19270/^[^""]/{ 19271 N 19272 s/\n// 19273} 19274' >>$CONFIG_STATUS || ac_write_fail=1 19275rm -f conf$$subs.awk 19276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19277_ACAWK 19278cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19279 for (key in S) S_is_set[key] = 1 19280 FS = "" 19281 19282} 19283{ 19284 line = $ 0 19285 nfields = split(line, field, "@") 19286 substed = 0 19287 len = length(field[1]) 19288 for (i = 2; i < nfields; i++) { 19289 key = field[i] 19290 keylen = length(key) 19291 if (S_is_set[key]) { 19292 value = S[key] 19293 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19294 len += length(value) + length(field[++i]) 19295 substed = 1 19296 } else 19297 len += 1 + keylen 19298 } 19299 19300 print line 19301} 19302 19303_ACAWK 19304_ACEOF 19305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19306if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19307 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19308else 19309 cat 19310fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19311 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19312_ACEOF 19313 19314# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19315# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19316# trailing colons and then remove the whole line if VPATH becomes empty 19317# (actually we leave an empty line to preserve line numbers). 19318if test "x$srcdir" = x.; then 19319 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19320h 19321s/// 19322s/^/:/ 19323s/[ ]*$/:/ 19324s/:\$(srcdir):/:/g 19325s/:\${srcdir}:/:/g 19326s/:@srcdir@:/:/g 19327s/^:*// 19328s/:*$// 19329x 19330s/\(=[ ]*\).*/\1/ 19331G 19332s/\n// 19333s/^[^=]*=[ ]*$// 19334}' 19335fi 19336 19337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19338fi # test -n "$CONFIG_FILES" 19339 19340# Set up the scripts for CONFIG_HEADERS section. 19341# No need to generate them if there are no CONFIG_HEADERS. 19342# This happens for instance with `./config.status Makefile'. 19343if test -n "$CONFIG_HEADERS"; then 19344cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19345BEGIN { 19346_ACEOF 19347 19348# Transform confdefs.h into an awk script `defines.awk', embedded as 19349# here-document in config.status, that substitutes the proper values into 19350# config.h.in to produce config.h. 19351 19352# Create a delimiter string that does not exist in confdefs.h, to ease 19353# handling of long lines. 19354ac_delim='%!_!# ' 19355for ac_last_try in false false :; do 19356 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19357 if test -z "$ac_tt"; then 19358 break 19359 elif $ac_last_try; then 19360 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19361 else 19362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19363 fi 19364done 19365 19366# For the awk script, D is an array of macro values keyed by name, 19367# likewise P contains macro parameters if any. Preserve backslash 19368# newline sequences. 19369 19370ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19371sed -n ' 19372s/.\{148\}/&'"$ac_delim"'/g 19373t rset 19374:rset 19375s/^[ ]*#[ ]*define[ ][ ]*/ / 19376t def 19377d 19378:def 19379s/\\$// 19380t bsnl 19381s/["\\]/\\&/g 19382s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19383D["\1"]=" \3"/p 19384s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19385d 19386:bsnl 19387s/["\\]/\\&/g 19388s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19389D["\1"]=" \3\\\\\\n"\\/p 19390t cont 19391s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19392t cont 19393d 19394:cont 19395n 19396s/.\{148\}/&'"$ac_delim"'/g 19397t clear 19398:clear 19399s/\\$// 19400t bsnlc 19401s/["\\]/\\&/g; s/^/"/; s/$/"/p 19402d 19403:bsnlc 19404s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19405b cont 19406' <confdefs.h | sed ' 19407s/'"$ac_delim"'/"\\\ 19408"/g' >>$CONFIG_STATUS || ac_write_fail=1 19409 19410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19411 for (key in D) D_is_set[key] = 1 19412 FS = "" 19413} 19414/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19415 line = \$ 0 19416 split(line, arg, " ") 19417 if (arg[1] == "#") { 19418 defundef = arg[2] 19419 mac1 = arg[3] 19420 } else { 19421 defundef = substr(arg[1], 2) 19422 mac1 = arg[2] 19423 } 19424 split(mac1, mac2, "(") #) 19425 macro = mac2[1] 19426 prefix = substr(line, 1, index(line, defundef) - 1) 19427 if (D_is_set[macro]) { 19428 # Preserve the white space surrounding the "#". 19429 print prefix "define", macro P[macro] D[macro] 19430 next 19431 } else { 19432 # Replace #undef with comments. This is necessary, for example, 19433 # in the case of _POSIX_SOURCE, which is predefined and required 19434 # on some systems where configure will not decide to define it. 19435 if (defundef == "undef") { 19436 print "/*", prefix defundef, macro, "*/" 19437 next 19438 } 19439 } 19440} 19441{ print } 19442_ACAWK 19443_ACEOF 19444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19445 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19446fi # test -n "$CONFIG_HEADERS" 19447 19448 19449eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19450shift 19451for ac_tag 19452do 19453 case $ac_tag in 19454 :[FHLC]) ac_mode=$ac_tag; continue;; 19455 esac 19456 case $ac_mode$ac_tag in 19457 :[FHL]*:*);; 19458 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19459 :[FH]-) ac_tag=-:-;; 19460 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19461 esac 19462 ac_save_IFS=$IFS 19463 IFS=: 19464 set x $ac_tag 19465 IFS=$ac_save_IFS 19466 shift 19467 ac_file=$1 19468 shift 19469 19470 case $ac_mode in 19471 :L) ac_source=$1;; 19472 :[FH]) 19473 ac_file_inputs= 19474 for ac_f 19475 do 19476 case $ac_f in 19477 -) ac_f="$ac_tmp/stdin";; 19478 *) # Look for the file first in the build tree, then in the source tree 19479 # (if the path is not absolute). The absolute path cannot be DOS-style, 19480 # because $ac_f cannot contain `:'. 19481 test -f "$ac_f" || 19482 case $ac_f in 19483 [\\/$]*) false;; 19484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19485 esac || 19486 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19487 esac 19488 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19489 as_fn_append ac_file_inputs " '$ac_f'" 19490 done 19491 19492 # Let's still pretend it is `configure' which instantiates (i.e., don't 19493 # use $as_me), people would be surprised to read: 19494 # /* config.h. Generated by config.status. */ 19495 configure_input='Generated from '` 19496 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19497 `' by configure.' 19498 if test x"$ac_file" != x-; then 19499 configure_input="$ac_file. $configure_input" 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19501$as_echo "$as_me: creating $ac_file" >&6;} 19502 fi 19503 # Neutralize special characters interpreted by sed in replacement strings. 19504 case $configure_input in #( 19505 *\&* | *\|* | *\\* ) 19506 ac_sed_conf_input=`$as_echo "$configure_input" | 19507 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19508 *) ac_sed_conf_input=$configure_input;; 19509 esac 19510 19511 case $ac_tag in 19512 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19514 esac 19515 ;; 19516 esac 19517 19518 ac_dir=`$as_dirname -- "$ac_file" || 19519$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19520 X"$ac_file" : 'X\(//\)[^/]' \| \ 19521 X"$ac_file" : 'X\(//\)$' \| \ 19522 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19523$as_echo X"$ac_file" | 19524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19525 s//\1/ 19526 q 19527 } 19528 /^X\(\/\/\)[^/].*/{ 19529 s//\1/ 19530 q 19531 } 19532 /^X\(\/\/\)$/{ 19533 s//\1/ 19534 q 19535 } 19536 /^X\(\/\).*/{ 19537 s//\1/ 19538 q 19539 } 19540 s/.*/./; q'` 19541 as_dir="$ac_dir"; as_fn_mkdir_p 19542 ac_builddir=. 19543 19544case "$ac_dir" in 19545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19546*) 19547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19548 # A ".." for each directory in $ac_dir_suffix. 19549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19550 case $ac_top_builddir_sub in 19551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19553 esac ;; 19554esac 19555ac_abs_top_builddir=$ac_pwd 19556ac_abs_builddir=$ac_pwd$ac_dir_suffix 19557# for backward compatibility: 19558ac_top_builddir=$ac_top_build_prefix 19559 19560case $srcdir in 19561 .) # We are building in place. 19562 ac_srcdir=. 19563 ac_top_srcdir=$ac_top_builddir_sub 19564 ac_abs_top_srcdir=$ac_pwd ;; 19565 [\\/]* | ?:[\\/]* ) # Absolute name. 19566 ac_srcdir=$srcdir$ac_dir_suffix; 19567 ac_top_srcdir=$srcdir 19568 ac_abs_top_srcdir=$srcdir ;; 19569 *) # Relative name. 19570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19571 ac_top_srcdir=$ac_top_build_prefix$srcdir 19572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19573esac 19574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19575 19576 19577 case $ac_mode in 19578 :F) 19579 # 19580 # CONFIG_FILE 19581 # 19582 19583 case $INSTALL in 19584 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19585 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19586 esac 19587 ac_MKDIR_P=$MKDIR_P 19588 case $MKDIR_P in 19589 [\\/$]* | ?:[\\/]* ) ;; 19590 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19591 esac 19592_ACEOF 19593 19594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19595# If the template does not know about datarootdir, expand it. 19596# FIXME: This hack should be removed a few years after 2.60. 19597ac_datarootdir_hack=; ac_datarootdir_seen= 19598ac_sed_dataroot=' 19599/datarootdir/ { 19600 p 19601 q 19602} 19603/@datadir@/p 19604/@docdir@/p 19605/@infodir@/p 19606/@localedir@/p 19607/@mandir@/p' 19608case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19609*datarootdir*) ac_datarootdir_seen=yes;; 19610*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19612$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19613_ACEOF 19614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19615 ac_datarootdir_hack=' 19616 s&@datadir@&$datadir&g 19617 s&@docdir@&$docdir&g 19618 s&@infodir@&$infodir&g 19619 s&@localedir@&$localedir&g 19620 s&@mandir@&$mandir&g 19621 s&\\\${datarootdir}&$datarootdir&g' ;; 19622esac 19623_ACEOF 19624 19625# Neutralize VPATH when `$srcdir' = `.'. 19626# Shell code in configure.ac might set extrasub. 19627# FIXME: do we really want to maintain this feature? 19628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19629ac_sed_extra="$ac_vpsub 19630$extrasub 19631_ACEOF 19632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19633:t 19634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19635s|@configure_input@|$ac_sed_conf_input|;t t 19636s&@top_builddir@&$ac_top_builddir_sub&;t t 19637s&@top_build_prefix@&$ac_top_build_prefix&;t t 19638s&@srcdir@&$ac_srcdir&;t t 19639s&@abs_srcdir@&$ac_abs_srcdir&;t t 19640s&@top_srcdir@&$ac_top_srcdir&;t t 19641s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19642s&@builddir@&$ac_builddir&;t t 19643s&@abs_builddir@&$ac_abs_builddir&;t t 19644s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19645s&@INSTALL@&$ac_INSTALL&;t t 19646s&@MKDIR_P@&$ac_MKDIR_P&;t t 19647$ac_datarootdir_hack 19648" 19649eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19650 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19651 19652test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19653 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19654 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19655 "$ac_tmp/out"`; test -z "$ac_out"; } && 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19657which seems to be undefined. Please make sure it is defined" >&5 19658$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19659which seems to be undefined. Please make sure it is defined" >&2;} 19660 19661 rm -f "$ac_tmp/stdin" 19662 case $ac_file in 19663 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19664 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19665 esac \ 19666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19667 ;; 19668 :H) 19669 # 19670 # CONFIG_HEADER 19671 # 19672 if test x"$ac_file" != x-; then 19673 { 19674 $as_echo "/* $configure_input */" \ 19675 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19676 } >"$ac_tmp/config.h" \ 19677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19678 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19679 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19680$as_echo "$as_me: $ac_file is unchanged" >&6;} 19681 else 19682 rm -f "$ac_file" 19683 mv "$ac_tmp/config.h" "$ac_file" \ 19684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19685 fi 19686 else 19687 $as_echo "/* $configure_input */" \ 19688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19689 || as_fn_error $? "could not create -" "$LINENO" 5 19690 fi 19691# Compute "$ac_file"'s index in $config_headers. 19692_am_arg="$ac_file" 19693_am_stamp_count=1 19694for _am_header in $config_headers :; do 19695 case $_am_header in 19696 $_am_arg | $_am_arg:* ) 19697 break ;; 19698 * ) 19699 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19700 esac 19701done 19702echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19703$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19704 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19705 X"$_am_arg" : 'X\(//\)$' \| \ 19706 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19707$as_echo X"$_am_arg" | 19708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19709 s//\1/ 19710 q 19711 } 19712 /^X\(\/\/\)[^/].*/{ 19713 s//\1/ 19714 q 19715 } 19716 /^X\(\/\/\)$/{ 19717 s//\1/ 19718 q 19719 } 19720 /^X\(\/\).*/{ 19721 s//\1/ 19722 q 19723 } 19724 s/.*/./; q'`/stamp-h$_am_stamp_count 19725 ;; 19726 19727 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19728$as_echo "$as_me: executing $ac_file commands" >&6;} 19729 ;; 19730 esac 19731 19732 19733 case $ac_file$ac_mode in 19734 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19735 # Older Autoconf quotes --file arguments for eval, but not when files 19736 # are listed without --file. Let's play safe and only enable the eval 19737 # if we detect the quoting. 19738 case $CONFIG_FILES in 19739 *\'*) eval set x "$CONFIG_FILES" ;; 19740 *) set x $CONFIG_FILES ;; 19741 esac 19742 shift 19743 for mf 19744 do 19745 # Strip MF so we end up with the name of the file. 19746 mf=`echo "$mf" | sed -e 's/:.*$//'` 19747 # Check whether this is an Automake generated Makefile or not. 19748 # We used to match only the files named 'Makefile.in', but 19749 # some people rename them; so instead we look at the file content. 19750 # Grep'ing the first line is not enough: some people post-process 19751 # each Makefile.in and add a new line on top of each file to say so. 19752 # Grep'ing the whole file is not good either: AIX grep has a line 19753 # limit of 2048, but all sed's we know have understand at least 4000. 19754 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19755 dirpart=`$as_dirname -- "$mf" || 19756$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19757 X"$mf" : 'X\(//\)[^/]' \| \ 19758 X"$mf" : 'X\(//\)$' \| \ 19759 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19760$as_echo X"$mf" | 19761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19762 s//\1/ 19763 q 19764 } 19765 /^X\(\/\/\)[^/].*/{ 19766 s//\1/ 19767 q 19768 } 19769 /^X\(\/\/\)$/{ 19770 s//\1/ 19771 q 19772 } 19773 /^X\(\/\).*/{ 19774 s//\1/ 19775 q 19776 } 19777 s/.*/./; q'` 19778 else 19779 continue 19780 fi 19781 # Extract the definition of DEPDIR, am__include, and am__quote 19782 # from the Makefile without running 'make'. 19783 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19784 test -z "$DEPDIR" && continue 19785 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19786 test -z "$am__include" && continue 19787 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19788 # Find all dependency output files, they are included files with 19789 # $(DEPDIR) in their names. We invoke sed twice because it is the 19790 # simplest approach to changing $(DEPDIR) to its actual value in the 19791 # expansion. 19792 for file in `sed -n " 19793 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19794 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19795 # Make sure the directory exists. 19796 test -f "$dirpart/$file" && continue 19797 fdir=`$as_dirname -- "$file" || 19798$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19799 X"$file" : 'X\(//\)[^/]' \| \ 19800 X"$file" : 'X\(//\)$' \| \ 19801 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19802$as_echo X"$file" | 19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19804 s//\1/ 19805 q 19806 } 19807 /^X\(\/\/\)[^/].*/{ 19808 s//\1/ 19809 q 19810 } 19811 /^X\(\/\/\)$/{ 19812 s//\1/ 19813 q 19814 } 19815 /^X\(\/\).*/{ 19816 s//\1/ 19817 q 19818 } 19819 s/.*/./; q'` 19820 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19821 # echo "creating $dirpart/$file" 19822 echo '# dummy' > "$dirpart/$file" 19823 done 19824 done 19825} 19826 ;; 19827 "libtool":C) 19828 19829 # See if we are running on zsh, and set the options which allow our 19830 # commands through without removal of \ escapes. 19831 if test -n "${ZSH_VERSION+set}" ; then 19832 setopt NO_GLOB_SUBST 19833 fi 19834 19835 cfgfile="${ofile}T" 19836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19837 $RM "$cfgfile" 19838 19839 cat <<_LT_EOF >> "$cfgfile" 19840#! $SHELL 19841 19842# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19843# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19845# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19846# 19847# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19848# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19849# Foundation, Inc. 19850# Written by Gordon Matzigkeit, 1996 19851# 19852# This file is part of GNU Libtool. 19853# 19854# GNU Libtool is free software; you can redistribute it and/or 19855# modify it under the terms of the GNU General Public License as 19856# published by the Free Software Foundation; either version 2 of 19857# the License, or (at your option) any later version. 19858# 19859# As a special exception to the GNU General Public License, 19860# if you distribute this file as part of a program or library that 19861# is built using GNU Libtool, you may include this file under the 19862# same distribution terms that you use for the rest of that program. 19863# 19864# GNU Libtool is distributed in the hope that it will be useful, 19865# but WITHOUT ANY WARRANTY; without even the implied warranty of 19866# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19867# GNU General Public License for more details. 19868# 19869# You should have received a copy of the GNU General Public License 19870# along with GNU Libtool; see the file COPYING. If not, a copy 19871# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19872# obtained by writing to the Free Software Foundation, Inc., 19873# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19874 19875 19876# The names of the tagged configurations supported by this script. 19877available_tags="" 19878 19879# ### BEGIN LIBTOOL CONFIG 19880 19881# Whether or not to build static libraries. 19882build_old_libs=$enable_static 19883 19884# Which release of libtool.m4 was used? 19885macro_version=$macro_version 19886macro_revision=$macro_revision 19887 19888# Whether or not to build shared libraries. 19889build_libtool_libs=$enable_shared 19890 19891# What type of objects to build. 19892pic_mode=$pic_mode 19893 19894# Whether or not to optimize for fast installation. 19895fast_install=$enable_fast_install 19896 19897# Shell to use when invoking shell scripts. 19898SHELL=$lt_SHELL 19899 19900# An echo program that protects backslashes. 19901ECHO=$lt_ECHO 19902 19903# The PATH separator for the build system. 19904PATH_SEPARATOR=$lt_PATH_SEPARATOR 19905 19906# The host system. 19907host_alias=$host_alias 19908host=$host 19909host_os=$host_os 19910 19911# The build system. 19912build_alias=$build_alias 19913build=$build 19914build_os=$build_os 19915 19916# A sed program that does not truncate output. 19917SED=$lt_SED 19918 19919# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19920Xsed="\$SED -e 1s/^X//" 19921 19922# A grep program that handles long lines. 19923GREP=$lt_GREP 19924 19925# An ERE matcher. 19926EGREP=$lt_EGREP 19927 19928# A literal string matcher. 19929FGREP=$lt_FGREP 19930 19931# A BSD- or MS-compatible name lister. 19932NM=$lt_NM 19933 19934# Whether we need soft or hard links. 19935LN_S=$lt_LN_S 19936 19937# What is the maximum length of a command? 19938max_cmd_len=$max_cmd_len 19939 19940# Object file suffix (normally "o"). 19941objext=$ac_objext 19942 19943# Executable file suffix (normally ""). 19944exeext=$exeext 19945 19946# whether the shell understands "unset". 19947lt_unset=$lt_unset 19948 19949# turn spaces into newlines. 19950SP2NL=$lt_lt_SP2NL 19951 19952# turn newlines into spaces. 19953NL2SP=$lt_lt_NL2SP 19954 19955# convert \$build file names to \$host format. 19956to_host_file_cmd=$lt_cv_to_host_file_cmd 19957 19958# convert \$build files to toolchain format. 19959to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19960 19961# An object symbol dumper. 19962OBJDUMP=$lt_OBJDUMP 19963 19964# Method to check whether dependent libraries are shared objects. 19965deplibs_check_method=$lt_deplibs_check_method 19966 19967# Command to use when deplibs_check_method = "file_magic". 19968file_magic_cmd=$lt_file_magic_cmd 19969 19970# How to find potential files when deplibs_check_method = "file_magic". 19971file_magic_glob=$lt_file_magic_glob 19972 19973# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19974want_nocaseglob=$lt_want_nocaseglob 19975 19976# DLL creation program. 19977DLLTOOL=$lt_DLLTOOL 19978 19979# Command to associate shared and link libraries. 19980sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19981 19982# The archiver. 19983AR=$lt_AR 19984 19985# Flags to create an archive. 19986AR_FLAGS=$lt_AR_FLAGS 19987 19988# How to feed a file listing to the archiver. 19989archiver_list_spec=$lt_archiver_list_spec 19990 19991# A symbol stripping program. 19992STRIP=$lt_STRIP 19993 19994# Commands used to install an old-style archive. 19995RANLIB=$lt_RANLIB 19996old_postinstall_cmds=$lt_old_postinstall_cmds 19997old_postuninstall_cmds=$lt_old_postuninstall_cmds 19998 19999# Whether to use a lock for old archive extraction. 20000lock_old_archive_extraction=$lock_old_archive_extraction 20001 20002# A C compiler. 20003LTCC=$lt_CC 20004 20005# LTCC compiler flags. 20006LTCFLAGS=$lt_CFLAGS 20007 20008# Take the output of nm and produce a listing of raw symbols and C names. 20009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20010 20011# Transform the output of nm in a proper C declaration. 20012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20013 20014# Transform the output of nm in a C name address pair. 20015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20016 20017# Transform the output of nm in a C name address pair when lib prefix is needed. 20018global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20019 20020# Specify filename containing input files for \$NM. 20021nm_file_list_spec=$lt_nm_file_list_spec 20022 20023# The root where to search for dependent libraries,and in which our libraries should be installed. 20024lt_sysroot=$lt_sysroot 20025 20026# The name of the directory that contains temporary libtool files. 20027objdir=$objdir 20028 20029# Used to examine libraries when file_magic_cmd begins with "file". 20030MAGIC_CMD=$MAGIC_CMD 20031 20032# Must we lock files when doing compilation? 20033need_locks=$lt_need_locks 20034 20035# Manifest tool. 20036MANIFEST_TOOL=$lt_MANIFEST_TOOL 20037 20038# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20039DSYMUTIL=$lt_DSYMUTIL 20040 20041# Tool to change global to local symbols on Mac OS X. 20042NMEDIT=$lt_NMEDIT 20043 20044# Tool to manipulate fat objects and archives on Mac OS X. 20045LIPO=$lt_LIPO 20046 20047# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20048OTOOL=$lt_OTOOL 20049 20050# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20051OTOOL64=$lt_OTOOL64 20052 20053# Old archive suffix (normally "a"). 20054libext=$libext 20055 20056# Shared library suffix (normally ".so"). 20057shrext_cmds=$lt_shrext_cmds 20058 20059# The commands to extract the exported symbol list from a shared archive. 20060extract_expsyms_cmds=$lt_extract_expsyms_cmds 20061 20062# Variables whose values should be saved in libtool wrapper scripts and 20063# restored at link time. 20064variables_saved_for_relink=$lt_variables_saved_for_relink 20065 20066# Do we need the "lib" prefix for modules? 20067need_lib_prefix=$need_lib_prefix 20068 20069# Do we need a version for libraries? 20070need_version=$need_version 20071 20072# Library versioning type. 20073version_type=$version_type 20074 20075# Shared library runtime path variable. 20076runpath_var=$runpath_var 20077 20078# Shared library path variable. 20079shlibpath_var=$shlibpath_var 20080 20081# Is shlibpath searched before the hard-coded library search path? 20082shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20083 20084# Format of library name prefix. 20085libname_spec=$lt_libname_spec 20086 20087# List of archive names. First name is the real one, the rest are links. 20088# The last name is the one that the linker finds with -lNAME 20089library_names_spec=$lt_library_names_spec 20090 20091# The coded name of the library, if different from the real name. 20092soname_spec=$lt_soname_spec 20093 20094# Permission mode override for installation of shared libraries. 20095install_override_mode=$lt_install_override_mode 20096 20097# Command to use after installation of a shared archive. 20098postinstall_cmds=$lt_postinstall_cmds 20099 20100# Command to use after uninstallation of a shared archive. 20101postuninstall_cmds=$lt_postuninstall_cmds 20102 20103# Commands used to finish a libtool library installation in a directory. 20104finish_cmds=$lt_finish_cmds 20105 20106# As "finish_cmds", except a single script fragment to be evaled but 20107# not shown. 20108finish_eval=$lt_finish_eval 20109 20110# Whether we should hardcode library paths into libraries. 20111hardcode_into_libs=$hardcode_into_libs 20112 20113# Compile-time system search path for libraries. 20114sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20115 20116# Run-time system search path for libraries. 20117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20118 20119# Whether dlopen is supported. 20120dlopen_support=$enable_dlopen 20121 20122# Whether dlopen of programs is supported. 20123dlopen_self=$enable_dlopen_self 20124 20125# Whether dlopen of statically linked programs is supported. 20126dlopen_self_static=$enable_dlopen_self_static 20127 20128# Commands to strip libraries. 20129old_striplib=$lt_old_striplib 20130striplib=$lt_striplib 20131 20132 20133# The linker used to build libraries. 20134LD=$lt_LD 20135 20136# How to create reloadable object files. 20137reload_flag=$lt_reload_flag 20138reload_cmds=$lt_reload_cmds 20139 20140# Commands used to build an old-style archive. 20141old_archive_cmds=$lt_old_archive_cmds 20142 20143# A language specific compiler. 20144CC=$lt_compiler 20145 20146# Is the compiler the GNU compiler? 20147with_gcc=$GCC 20148 20149# Compiler flag to turn off builtin functions. 20150no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20151 20152# Additional compiler flags for building library objects. 20153pic_flag=$lt_lt_prog_compiler_pic 20154 20155# How to pass a linker flag through the compiler. 20156wl=$lt_lt_prog_compiler_wl 20157 20158# Compiler flag to prevent dynamic linking. 20159link_static_flag=$lt_lt_prog_compiler_static 20160 20161# Does compiler simultaneously support -c and -o options? 20162compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20163 20164# Whether or not to add -lc for building shared libraries. 20165build_libtool_need_lc=$archive_cmds_need_lc 20166 20167# Whether or not to disallow shared libs when runtime libs are static. 20168allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20169 20170# Compiler flag to allow reflexive dlopens. 20171export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20172 20173# Compiler flag to generate shared objects directly from archives. 20174whole_archive_flag_spec=$lt_whole_archive_flag_spec 20175 20176# Whether the compiler copes with passing no objects directly. 20177compiler_needs_object=$lt_compiler_needs_object 20178 20179# Create an old-style archive from a shared archive. 20180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20181 20182# Create a temporary old-style archive to link instead of a shared archive. 20183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20184 20185# Commands used to build a shared archive. 20186archive_cmds=$lt_archive_cmds 20187archive_expsym_cmds=$lt_archive_expsym_cmds 20188 20189# Commands used to build a loadable module if different from building 20190# a shared archive. 20191module_cmds=$lt_module_cmds 20192module_expsym_cmds=$lt_module_expsym_cmds 20193 20194# Whether we are building with GNU ld or not. 20195with_gnu_ld=$lt_with_gnu_ld 20196 20197# Flag that allows shared libraries with undefined symbols to be built. 20198allow_undefined_flag=$lt_allow_undefined_flag 20199 20200# Flag that enforces no undefined symbols. 20201no_undefined_flag=$lt_no_undefined_flag 20202 20203# Flag to hardcode \$libdir into a binary during linking. 20204# This must work even if \$libdir does not exist 20205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20206 20207# Whether we need a single "-rpath" flag with a separated argument. 20208hardcode_libdir_separator=$lt_hardcode_libdir_separator 20209 20210# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20211# DIR into the resulting binary. 20212hardcode_direct=$hardcode_direct 20213 20214# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20215# DIR into the resulting binary and the resulting library dependency is 20216# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20217# library is relocated. 20218hardcode_direct_absolute=$hardcode_direct_absolute 20219 20220# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20221# into the resulting binary. 20222hardcode_minus_L=$hardcode_minus_L 20223 20224# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20225# into the resulting binary. 20226hardcode_shlibpath_var=$hardcode_shlibpath_var 20227 20228# Set to "yes" if building a shared library automatically hardcodes DIR 20229# into the library and all subsequent libraries and executables linked 20230# against it. 20231hardcode_automatic=$hardcode_automatic 20232 20233# Set to yes if linker adds runtime paths of dependent libraries 20234# to runtime path list. 20235inherit_rpath=$inherit_rpath 20236 20237# Whether libtool must link a program against all its dependency libraries. 20238link_all_deplibs=$link_all_deplibs 20239 20240# Set to "yes" if exported symbols are required. 20241always_export_symbols=$always_export_symbols 20242 20243# The commands to list exported symbols. 20244export_symbols_cmds=$lt_export_symbols_cmds 20245 20246# Symbols that should not be listed in the preloaded symbols. 20247exclude_expsyms=$lt_exclude_expsyms 20248 20249# Symbols that must always be exported. 20250include_expsyms=$lt_include_expsyms 20251 20252# Commands necessary for linking programs (against libraries) with templates. 20253prelink_cmds=$lt_prelink_cmds 20254 20255# Commands necessary for finishing linking programs. 20256postlink_cmds=$lt_postlink_cmds 20257 20258# Specify filename containing input files. 20259file_list_spec=$lt_file_list_spec 20260 20261# How to hardcode a shared library path into an executable. 20262hardcode_action=$hardcode_action 20263 20264# ### END LIBTOOL CONFIG 20265 20266_LT_EOF 20267 20268 case $host_os in 20269 aix3*) 20270 cat <<\_LT_EOF >> "$cfgfile" 20271# AIX sometimes has problems with the GCC collect2 program. For some 20272# reason, if we set the COLLECT_NAMES environment variable, the problems 20273# vanish in a puff of smoke. 20274if test "X${COLLECT_NAMES+set}" != Xset; then 20275 COLLECT_NAMES= 20276 export COLLECT_NAMES 20277fi 20278_LT_EOF 20279 ;; 20280 esac 20281 20282 20283ltmain="$ac_aux_dir/ltmain.sh" 20284 20285 20286 # We use sed instead of cat because bash on DJGPP gets confused if 20287 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20288 # text mode, it properly converts lines to CR/LF. This bash problem 20289 # is reportedly fixed, but why not run on old versions too? 20290 sed '$q' "$ltmain" >> "$cfgfile" \ 20291 || (rm -f "$cfgfile"; exit 1) 20292 20293 if test x"$xsi_shell" = xyes; then 20294 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20295func_dirname ()\ 20296{\ 20297\ case ${1} in\ 20298\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20299\ * ) func_dirname_result="${3}" ;;\ 20300\ esac\ 20301} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20302 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20304test 0 -eq $? || _lt_function_replace_fail=: 20305 20306 20307 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20308func_basename ()\ 20309{\ 20310\ func_basename_result="${1##*/}"\ 20311} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20312 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20314test 0 -eq $? || _lt_function_replace_fail=: 20315 20316 20317 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20318func_dirname_and_basename ()\ 20319{\ 20320\ case ${1} in\ 20321\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20322\ * ) func_dirname_result="${3}" ;;\ 20323\ esac\ 20324\ func_basename_result="${1##*/}"\ 20325} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20326 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20328test 0 -eq $? || _lt_function_replace_fail=: 20329 20330 20331 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20332func_stripname ()\ 20333{\ 20334\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20335\ # positional parameters, so assign one to ordinary parameter first.\ 20336\ func_stripname_result=${3}\ 20337\ func_stripname_result=${func_stripname_result#"${1}"}\ 20338\ func_stripname_result=${func_stripname_result%"${2}"}\ 20339} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20340 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20342test 0 -eq $? || _lt_function_replace_fail=: 20343 20344 20345 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20346func_split_long_opt ()\ 20347{\ 20348\ func_split_long_opt_name=${1%%=*}\ 20349\ func_split_long_opt_arg=${1#*=}\ 20350} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20351 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20353test 0 -eq $? || _lt_function_replace_fail=: 20354 20355 20356 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20357func_split_short_opt ()\ 20358{\ 20359\ func_split_short_opt_arg=${1#??}\ 20360\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20361} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20362 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20364test 0 -eq $? || _lt_function_replace_fail=: 20365 20366 20367 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20368func_lo2o ()\ 20369{\ 20370\ case ${1} in\ 20371\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20372\ *) func_lo2o_result=${1} ;;\ 20373\ esac\ 20374} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20375 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20377test 0 -eq $? || _lt_function_replace_fail=: 20378 20379 20380 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20381func_xform ()\ 20382{\ 20383 func_xform_result=${1%.*}.lo\ 20384} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20385 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20387test 0 -eq $? || _lt_function_replace_fail=: 20388 20389 20390 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20391func_arith ()\ 20392{\ 20393 func_arith_result=$(( $* ))\ 20394} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20395 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20397test 0 -eq $? || _lt_function_replace_fail=: 20398 20399 20400 sed -e '/^func_len ()$/,/^} # func_len /c\ 20401func_len ()\ 20402{\ 20403 func_len_result=${#1}\ 20404} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20405 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20407test 0 -eq $? || _lt_function_replace_fail=: 20408 20409fi 20410 20411if test x"$lt_shell_append" = xyes; then 20412 sed -e '/^func_append ()$/,/^} # func_append /c\ 20413func_append ()\ 20414{\ 20415 eval "${1}+=\\${2}"\ 20416} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20417 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20419test 0 -eq $? || _lt_function_replace_fail=: 20420 20421 20422 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20423func_append_quoted ()\ 20424{\ 20425\ func_quote_for_eval "${2}"\ 20426\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20427} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20428 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20430test 0 -eq $? || _lt_function_replace_fail=: 20431 20432 20433 # Save a `func_append' function call where possible by direct use of '+=' 20434 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20435 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20437 test 0 -eq $? || _lt_function_replace_fail=: 20438else 20439 # Save a `func_append' function call even when '+=' is not available 20440 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20441 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20443 test 0 -eq $? || _lt_function_replace_fail=: 20444fi 20445 20446if test x"$_lt_function_replace_fail" = x":"; then 20447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20448$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20449fi 20450 20451 20452 mv -f "$cfgfile" "$ofile" || 20453 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20454 chmod +x "$ofile" 20455 20456 ;; 20457 20458 esac 20459done # for ac_tag 20460 20461 20462as_fn_exit 0 20463_ACEOF 20464ac_clean_files=$ac_clean_files_save 20465 20466test $ac_write_fail = 0 || 20467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20468 20469 20470# configure is writing to config.log, and then calls config.status. 20471# config.status does its own redirection, appending to config.log. 20472# Unfortunately, on DOS this fails, as config.log is still kept open 20473# by configure, so config.status won't be able to write to it; its 20474# output is simply discarded. So we exec the FD to /dev/null, 20475# effectively closing config.log, so it can be properly (re)opened and 20476# appended to by config.status. When coming back to configure, we 20477# need to make the FD available again. 20478if test "$no_create" != yes; then 20479 ac_cs_success=: 20480 ac_config_status_args= 20481 test "$silent" = yes && 20482 ac_config_status_args="$ac_config_status_args --quiet" 20483 exec 5>/dev/null 20484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20485 exec 5>>config.log 20486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20487 # would make configure fail if this is the last instruction. 20488 $ac_cs_success || as_fn_exit 1 20489fi 20490if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20492$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20493fi 20494 20495