configure revision 616f0718
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-chips 1.3.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>. 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://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues 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-chips' 593PACKAGE_TARNAME='xf86-video-chips' 594PACKAGE_VERSION='1.3.0' 595PACKAGE_STRING='xf86-video-chips 1.3.0' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642BUILD_UTILS_FALSE 643BUILD_UTILS_TRUE 644XAA_FALSE 645XAA_TRUE 646XSERVER_LIBPCIACCESS_FALSE 647XSERVER_LIBPCIACCESS_TRUE 648PCIACCESS_LIBS 649PCIACCESS_CFLAGS 650XORG_LIBS 651XORG_CFLAGS 652LT_SYS_LIBRARY_PATH 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670LIBTOOL 671MAN_SUBSTS 672XORG_MAN_PAGE 673ADMIN_MAN_DIR 674DRIVER_MAN_DIR 675MISC_MAN_DIR 676FILE_MAN_DIR 677LIB_MAN_DIR 678APP_MAN_DIR 679ADMIN_MAN_SUFFIX 680DRIVER_MAN_SUFFIX 681MISC_MAN_SUFFIX 682FILE_MAN_SUFFIX 683LIB_MAN_SUFFIX 684APP_MAN_SUFFIX 685SED 686host_os 687host_vendor 688host_cpu 689host 690build_os 691build_vendor 692build_cpu 693build 694INSTALL_CMD 695PKG_CONFIG_LIBDIR 696PKG_CONFIG_PATH 697PKG_CONFIG 698CHANGELOG_CMD 699STRICT_CFLAGS 700CWARNFLAGS 701BASE_CFLAGS 702EGREP 703GREP 704CPP 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768runstatedir 769localstatedir 770sharedstatedir 771sysconfdir 772datadir 773datarootdir 774libexecdir 775sbindir 776bindir 777program_transform_name 778prefix 779exec_prefix 780PACKAGE_URL 781PACKAGE_BUGREPORT 782PACKAGE_STRING 783PACKAGE_VERSION 784PACKAGE_TARNAME 785PACKAGE_NAME 786PATH_SEPARATOR 787SHELL' 788ac_subst_files='' 789ac_user_opts=' 790enable_option_checking 791enable_silent_rules 792enable_dependency_tracking 793enable_selective_werror 794enable_strict_compilation 795enable_static 796enable_shared 797with_pic 798enable_fast_install 799with_aix_soname 800with_gnu_ld 801with_sysroot 802enable_libtool_lock 803with_xorg_module_dir 804enable_xaa 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814CPP 815PKG_CONFIG 816PKG_CONFIG_PATH 817PKG_CONFIG_LIBDIR 818LT_SYS_LIBRARY_PATH 819XORG_CFLAGS 820XORG_LIBS 821PCIACCESS_CFLAGS 822PCIACCESS_LIBS' 823 824 825# Initialize some variables set by options. 826ac_init_help= 827ac_init_version=false 828ac_unrecognized_opts= 829ac_unrecognized_sep= 830# The variables have the same names as the options, with 831# dashes changed to underlines. 832cache_file=/dev/null 833exec_prefix=NONE 834no_create= 835no_recursion= 836prefix=NONE 837program_prefix=NONE 838program_suffix=NONE 839program_transform_name=s,x,x, 840silent= 841site= 842srcdir= 843verbose= 844x_includes=NONE 845x_libraries=NONE 846 847# Installation directory options. 848# These are left unexpanded so users can "make install exec_prefix=/foo" 849# and all the variables that are supposed to be based on exec_prefix 850# by default will actually change. 851# Use braces instead of parens because sh, perl, etc. also accept them. 852# (The list follows the same order as the GNU Coding Standards.) 853bindir='${exec_prefix}/bin' 854sbindir='${exec_prefix}/sbin' 855libexecdir='${exec_prefix}/libexec' 856datarootdir='${prefix}/share' 857datadir='${datarootdir}' 858sysconfdir='${prefix}/etc' 859sharedstatedir='${prefix}/com' 860localstatedir='${prefix}/var' 861runstatedir='${localstatedir}/run' 862includedir='${prefix}/include' 863oldincludedir='/usr/include' 864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 865infodir='${datarootdir}/info' 866htmldir='${docdir}' 867dvidir='${docdir}' 868pdfdir='${docdir}' 869psdir='${docdir}' 870libdir='${exec_prefix}/lib' 871localedir='${datarootdir}/locale' 872mandir='${datarootdir}/man' 873 874ac_prev= 875ac_dashdash= 876for ac_option 877do 878 # If the previous option needs an argument, assign it. 879 if test -n "$ac_prev"; then 880 eval $ac_prev=\$ac_option 881 ac_prev= 882 continue 883 fi 884 885 case $ac_option in 886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 887 *=) ac_optarg= ;; 888 *) ac_optarg=yes ;; 889 esac 890 891 # Accept the important Cygnus configure options, so we can diagnose typos. 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: $ac_useropt" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=no ;; 944 945 -docdir | --docdir | --docdi | --doc | --do) 946 ac_prev=docdir ;; 947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 948 docdir=$ac_optarg ;; 949 950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 951 ac_prev=dvidir ;; 952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 953 dvidir=$ac_optarg ;; 954 955 -enable-* | --enable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=\$ac_optarg ;; 970 971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 973 | --exec | --exe | --ex) 974 ac_prev=exec_prefix ;; 975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 977 | --exec=* | --exe=* | --ex=*) 978 exec_prefix=$ac_optarg ;; 979 980 -gas | --gas | --ga | --g) 981 # Obsolete; use --with-gas. 982 with_gas=yes ;; 983 984 -help | --help | --hel | --he | -h) 985 ac_init_help=long ;; 986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 987 ac_init_help=recursive ;; 988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 989 ac_init_help=short ;; 990 991 -host | --host | --hos | --ho) 992 ac_prev=host_alias ;; 993 -host=* | --host=* | --hos=* | --ho=*) 994 host_alias=$ac_optarg ;; 995 996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 997 ac_prev=htmldir ;; 998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 999 | --ht=*) 1000 htmldir=$ac_optarg ;; 1001 1002 -includedir | --includedir | --includedi | --included | --include \ 1003 | --includ | --inclu | --incl | --inc) 1004 ac_prev=includedir ;; 1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1006 | --includ=* | --inclu=* | --incl=* | --inc=*) 1007 includedir=$ac_optarg ;; 1008 1009 -infodir | --infodir | --infodi | --infod | --info | --inf) 1010 ac_prev=infodir ;; 1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1012 infodir=$ac_optarg ;; 1013 1014 -libdir | --libdir | --libdi | --libd) 1015 ac_prev=libdir ;; 1016 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1017 libdir=$ac_optarg ;; 1018 1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1020 | --libexe | --libex | --libe) 1021 ac_prev=libexecdir ;; 1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1023 | --libexe=* | --libex=* | --libe=*) 1024 libexecdir=$ac_optarg ;; 1025 1026 -localedir | --localedir | --localedi | --localed | --locale) 1027 ac_prev=localedir ;; 1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1029 localedir=$ac_optarg ;; 1030 1031 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1032 | --localstate | --localstat | --localsta | --localst | --locals) 1033 ac_prev=localstatedir ;; 1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1036 localstatedir=$ac_optarg ;; 1037 1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1039 ac_prev=mandir ;; 1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1041 mandir=$ac_optarg ;; 1042 1043 -nfp | --nfp | --nf) 1044 # Obsolete; use --without-fp. 1045 with_fp=no ;; 1046 1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1048 | --no-cr | --no-c | -n) 1049 no_create=yes ;; 1050 1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1053 no_recursion=yes ;; 1054 1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1057 | --oldin | --oldi | --old | --ol | --o) 1058 ac_prev=oldincludedir ;; 1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1062 oldincludedir=$ac_optarg ;; 1063 1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1065 ac_prev=prefix ;; 1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1067 prefix=$ac_optarg ;; 1068 1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1070 | --program-pre | --program-pr | --program-p) 1071 ac_prev=program_prefix ;; 1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1074 program_prefix=$ac_optarg ;; 1075 1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1077 | --program-suf | --program-su | --program-s) 1078 ac_prev=program_suffix ;; 1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1081 program_suffix=$ac_optarg ;; 1082 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 ac_prev=program_transform_name ;; 1091 -program-transform-name=* | --program-transform-name=* \ 1092 | --program-transform-nam=* | --program-transform-na=* \ 1093 | --program-transform-n=* | --program-transform-=* \ 1094 | --program-transform=* | --program-transfor=* \ 1095 | --program-transfo=* | --program-transf=* \ 1096 | --program-trans=* | --program-tran=* \ 1097 | --progr-tra=* | --program-tr=* | --program-t=*) 1098 program_transform_name=$ac_optarg ;; 1099 1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1101 ac_prev=pdfdir ;; 1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1103 pdfdir=$ac_optarg ;; 1104 1105 -psdir | --psdir | --psdi | --psd | --ps) 1106 ac_prev=psdir ;; 1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1108 psdir=$ac_optarg ;; 1109 1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1111 | -silent | --silent | --silen | --sile | --sil) 1112 silent=yes ;; 1113 1114 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1115 | --runstate | --runstat | --runsta | --runst | --runs \ 1116 | --run | --ru | --r) 1117 ac_prev=runstatedir ;; 1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1120 | --run=* | --ru=* | --r=*) 1121 runstatedir=$ac_optarg ;; 1122 1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1124 ac_prev=sbindir ;; 1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1126 | --sbi=* | --sb=*) 1127 sbindir=$ac_optarg ;; 1128 1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1131 | --sharedst | --shareds | --shared | --share | --shar \ 1132 | --sha | --sh) 1133 ac_prev=sharedstatedir ;; 1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1137 | --sha=* | --sh=*) 1138 sharedstatedir=$ac_optarg ;; 1139 1140 -site | --site | --sit) 1141 ac_prev=site ;; 1142 -site=* | --site=* | --sit=*) 1143 site=$ac_optarg ;; 1144 1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1146 ac_prev=srcdir ;; 1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1148 srcdir=$ac_optarg ;; 1149 1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1151 | --syscon | --sysco | --sysc | --sys | --sy) 1152 ac_prev=sysconfdir ;; 1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1155 sysconfdir=$ac_optarg ;; 1156 1157 -target | --target | --targe | --targ | --tar | --ta | --t) 1158 ac_prev=target_alias ;; 1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1160 target_alias=$ac_optarg ;; 1161 1162 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1163 verbose=yes ;; 1164 1165 -version | --version | --versio | --versi | --vers | -V) 1166 ac_init_version=: ;; 1167 1168 -with-* | --with-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=\$ac_optarg ;; 1183 1184 -without-* | --without-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=no ;; 1199 1200 --x) 1201 # Obsolete; use --with-x. 1202 with_x=yes ;; 1203 1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1205 | --x-incl | --x-inc | --x-in | --x-i) 1206 ac_prev=x_includes ;; 1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1209 x_includes=$ac_optarg ;; 1210 1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1213 ac_prev=x_libraries ;; 1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1216 x_libraries=$ac_optarg ;; 1217 1218 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1219Try \`$0 --help' for more information" 1220 ;; 1221 1222 *=*) 1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1224 # Reject names that are not valid shell variable names. 1225 case $ac_envvar in #( 1226 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1228 esac 1229 eval $ac_envvar=\$ac_optarg 1230 export $ac_envvar ;; 1231 1232 *) 1233 # FIXME: should be removed in autoconf 3.0. 1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1238 ;; 1239 1240 esac 1241done 1242 1243if test -n "$ac_prev"; then 1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1245 as_fn_error $? "missing argument to $ac_option" 1246fi 1247 1248if test -n "$ac_unrecognized_opts"; then 1249 case $enable_option_checking in 1250 no) ;; 1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1253 esac 1254fi 1255 1256# Check all directory arguments for consistency. 1257for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1258 datadir sysconfdir sharedstatedir localstatedir includedir \ 1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1260 libdir localedir mandir runstatedir 1261do 1262 eval ac_val=\$$ac_var 1263 # Remove trailing slashes. 1264 case $ac_val in 1265 */ ) 1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1267 eval $ac_var=\$ac_val;; 1268 esac 1269 # Be sure to have absolute directory names. 1270 case $ac_val in 1271 [\\/$]* | ?:[\\/]* ) continue;; 1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1273 esac 1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1275done 1276 1277# There might be people who depend on the old broken behavior: `$host' 1278# used to hold the argument of --host etc. 1279# FIXME: To remove some day. 1280build=$build_alias 1281host=$host_alias 1282target=$target_alias 1283 1284# FIXME: To remove some day. 1285if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 elif test "x$build_alias" != "x$host_alias"; then 1289 cross_compiling=yes 1290 fi 1291fi 1292 1293ac_tool_prefix= 1294test -n "$host_alias" && ac_tool_prefix=$host_alias- 1295 1296test "$silent" = yes && exec 6>/dev/null 1297 1298 1299ac_pwd=`pwd` && test -n "$ac_pwd" && 1300ac_ls_di=`ls -di .` && 1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1302 as_fn_error $? "working directory cannot be determined" 1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1304 as_fn_error $? "pwd does not report name of working directory" 1305 1306 1307# Find the source files, if location was not specified. 1308if test -z "$srcdir"; then 1309 ac_srcdir_defaulted=yes 1310 # Try the directory containing this script, then the parent directory. 1311 ac_confdir=`$as_dirname -- "$as_myself" || 1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1313 X"$as_myself" : 'X\(//\)[^/]' \| \ 1314 X"$as_myself" : 'X\(//\)$' \| \ 1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1316$as_echo X"$as_myself" | 1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)[^/].*/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\).*/{ 1330 s//\1/ 1331 q 1332 } 1333 s/.*/./; q'` 1334 srcdir=$ac_confdir 1335 if test ! -r "$srcdir/$ac_unique_file"; then 1336 srcdir=.. 1337 fi 1338else 1339 ac_srcdir_defaulted=no 1340fi 1341if test ! -r "$srcdir/$ac_unique_file"; then 1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1344fi 1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1346ac_abs_confdir=`( 1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1348 pwd)` 1349# When building in place, set srcdir=. 1350if test "$ac_abs_confdir" = "$ac_pwd"; then 1351 srcdir=. 1352fi 1353# Remove unnecessary trailing slashes from srcdir. 1354# Double slashes in file names in object file debugging info 1355# mess up M-x gdb in Emacs. 1356case $srcdir in 1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1358esac 1359for ac_var in $ac_precious_vars; do 1360 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_env_${ac_var}_value=\$${ac_var} 1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1364done 1365 1366# 1367# Report the --help message. 1368# 1369if test "$ac_init_help" = "long"; then 1370 # Omit some internal or obsolete options to make the list less imposing. 1371 # This message is too long to be a string in the A/UX 3.1 sh. 1372 cat <<_ACEOF 1373\`configure' configures xf86-video-chips 1.3.0 to adapt to many kinds of systems. 1374 1375Usage: $0 [OPTION]... [VAR=VALUE]... 1376 1377To assign environment variables (e.g., CC, CFLAGS...), specify them as 1378VAR=VALUE. See below for descriptions of some of the useful variables. 1379 1380Defaults for the options are specified in brackets. 1381 1382Configuration: 1383 -h, --help display this help and exit 1384 --help=short display options specific to this package 1385 --help=recursive display the short help of all the included packages 1386 -V, --version display version information and exit 1387 -q, --quiet, --silent do not print \`checking ...' messages 1388 --cache-file=FILE cache test results in FILE [disabled] 1389 -C, --config-cache alias for \`--cache-file=config.cache' 1390 -n, --no-create do not create output files 1391 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1392 1393Installation directories: 1394 --prefix=PREFIX install architecture-independent files in PREFIX 1395 [$ac_default_prefix] 1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1397 [PREFIX] 1398 1399By default, \`make install' will install all the files in 1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1401an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1402for instance \`--prefix=\$HOME'. 1403 1404For better control, use the options below. 1405 1406Fine tuning of the installation directories: 1407 --bindir=DIR user executables [EPREFIX/bin] 1408 --sbindir=DIR system admin executables [EPREFIX/sbin] 1409 --libexecdir=DIR program executables [EPREFIX/libexec] 1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root 1423 [DATAROOTDIR/doc/xf86-video-chips] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of xf86-video-chips 1.3.0:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-silent-rules less verbose build output (undo: "make V=1") 1454 --disable-silent-rules verbose build output (undo: "make V=0") 1455 --enable-dependency-tracking 1456 do not reject slow dependency extractors 1457 --disable-dependency-tracking 1458 speeds up one-time build 1459 --disable-selective-werror 1460 Turn off selective compiler errors. (default: 1461 enabled) 1462 --enable-strict-compilation 1463 Enable all warnings from compiler and make them 1464 errors (default: disabled) 1465 --enable-static[=PKGS] build static libraries [default=no] 1466 --enable-shared[=PKGS] build shared libraries [default=yes] 1467 --enable-fast-install[=PKGS] 1468 optimize for fast installation [default=yes] 1469 --disable-libtool-lock avoid locking (might break parallel builds) 1470 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1471 [default=auto] 1472 1473Optional Packages: 1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1476 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1477 both] 1478 --with-aix-soname=aix|svr4|both 1479 shared library versioning (aka "SONAME") variant to 1480 provide on AIX, [default=aix]. 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1483 compiler's sysroot if not specified). 1484 --with-xorg-module-dir=DIR 1485 Default xorg module directory 1486 [[default=$libdir/xorg/modules]] 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 PKG_CONFIG path to pkg-config utility 1498 PKG_CONFIG_PATH 1499 directories to add to pkg-config's search path 1500 PKG_CONFIG_LIBDIR 1501 path overriding pkg-config's built-in search path 1502 LT_SYS_LIBRARY_PATH 1503 User-defined run-time library search path. 1504 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1505 XORG_LIBS linker flags for XORG, overriding pkg-config 1506 PCIACCESS_CFLAGS 1507 C compiler flags for PCIACCESS, overriding pkg-config 1508 PCIACCESS_LIBS 1509 linker flags for PCIACCESS, overriding pkg-config 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577xf86-video-chips configure 1.3.0 1578generated by GNU Autoconf 2.69 1579 1580Copyright (C) 2012 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583_ACEOF 1584 exit 1585fi 1586 1587## ------------------------ ## 1588## Autoconf initialization. ## 1589## ------------------------ ## 1590 1591# ac_fn_c_try_compile LINENO 1592# -------------------------- 1593# Try to compile conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_compile () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 rm -f conftest.$ac_objext 1598 if { { ac_try="$ac_compile" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_compile") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } && { 1614 test -z "$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 } && test -s conftest.$ac_objext; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_compile 1628 1629# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1630# --------------------------------------------- 1631# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1632# accordingly. 1633ac_fn_c_check_decl () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 as_decl_name=`echo $2|sed 's/ *(.*//'` 1637 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1639$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1640if eval \${$3+:} false; then : 1641 $as_echo_n "(cached) " >&6 1642else 1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1644/* end confdefs.h. */ 1645$4 1646int 1647main () 1648{ 1649#ifndef $as_decl_name 1650#ifdef __cplusplus 1651 (void) $as_decl_use; 1652#else 1653 (void) $as_decl_name; 1654#endif 1655#endif 1656 1657 ; 1658 return 0; 1659} 1660_ACEOF 1661if ac_fn_c_try_compile "$LINENO"; then : 1662 eval "$3=yes" 1663else 1664 eval "$3=no" 1665fi 1666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1667fi 1668eval ac_res=\$$3 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670$as_echo "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673} # ac_fn_c_check_decl 1674 1675# ac_fn_c_try_cpp LINENO 1676# ---------------------- 1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_cpp () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_cpp conftest.$ac_ext" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } > conftest.i && { 1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_cpp 1711 1712# ac_fn_c_try_run LINENO 1713# ---------------------- 1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1715# that executables *can* be run. 1716ac_fn_c_try_run () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_link" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>&5 1727 ac_status=$? 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1730 { { case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_try") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; }; }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: program exited with status $ac_status" >&5 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=$ac_status 1747fi 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_run 1753 1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1755# ------------------------------------------------------- 1756# Tests whether HEADER exists and can be compiled using the include files in 1757# INCLUDES, setting the cache variable VAR accordingly. 1758ac_fn_c_check_header_compile () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773else 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_header_compile 1784 1785# ac_fn_c_try_link LINENO 1786# ----------------------- 1787# Try to link conftest.$ac_ext, and return whether this succeeded. 1788ac_fn_c_try_link () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 rm -f conftest.$ac_objext conftest$ac_exeext 1792 if { { ac_try="$ac_link" 1793case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_link") 2>conftest.err 1800 ac_status=$? 1801 if test -s conftest.err; then 1802 grep -v '^ *+' conftest.err >conftest.er1 1803 cat conftest.er1 >&5 1804 mv -f conftest.er1 conftest.err 1805 fi 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { 1808 test -z "$ac_c_werror_flag" || 1809 test ! -s conftest.err 1810 } && test -s conftest$ac_exeext && { 1811 test "$cross_compiling" = yes || 1812 test -x conftest$ac_exeext 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_link 1830 1831# ac_fn_c_check_func LINENO FUNC VAR 1832# ---------------------------------- 1833# Tests whether FUNC exists, setting the cache variable VAR accordingly 1834ac_fn_c_check_func () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846#define $2 innocuous_$2 1847 1848/* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. 1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1851 <limits.h> exists even on freestanding compilers. */ 1852 1853#ifdef __STDC__ 1854# include <limits.h> 1855#else 1856# include <assert.h> 1857#endif 1858 1859#undef $2 1860 1861/* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864#ifdef __cplusplus 1865extern "C" 1866#endif 1867char $2 (); 1868/* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871#if defined __stub_$2 || defined __stub___$2 1872choke me 1873#endif 1874 1875int 1876main () 1877{ 1878return $2 (); 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_link "$LINENO"; then : 1884 eval "$3=yes" 1885else 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897 1898# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1899# ------------------------------------------------------- 1900# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1901# the include files in INCLUDES and setting the cache variable VAR 1902# accordingly. 1903ac_fn_c_check_header_mongrel () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 if eval \${$3+:} false; then : 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1908$as_echo_n "checking for $2... " >&6; } 1909if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915else 1916 # Is the header compilable? 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1918$as_echo_n "checking $2 usability... " >&6; } 1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921$4 1922#include <$2> 1923_ACEOF 1924if ac_fn_c_try_compile "$LINENO"; then : 1925 ac_header_compiler=yes 1926else 1927 ac_header_compiler=no 1928fi 1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1931$as_echo "$ac_header_compiler" >&6; } 1932 1933# Is the header present? 1934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1935$as_echo_n "checking $2 presence... " >&6; } 1936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938#include <$2> 1939_ACEOF 1940if ac_fn_c_try_cpp "$LINENO"; then : 1941 ac_header_preproc=yes 1942else 1943 ac_header_preproc=no 1944fi 1945rm -f conftest.err conftest.i conftest.$ac_ext 1946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1947$as_echo "$ac_header_preproc" >&6; } 1948 1949# So? What about this header? 1950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1951 yes:no: ) 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1953$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1955$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1956 ;; 1957 no:yes:* ) 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1959$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1961$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1963$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1965$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1967$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1968( $as_echo "## --------------------------------------------------------------------------------- ## 1969## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues ## 1970## --------------------------------------------------------------------------------- ##" 1971 ) | sed "s/^/$as_me: WARNING: /" >&2 1972 ;; 1973esac 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1975$as_echo_n "checking for $2... " >&6; } 1976if eval \${$3+:} false; then : 1977 $as_echo_n "(cached) " >&6 1978else 1979 eval "$3=\$ac_header_compiler" 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984fi 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_header_mongrel 1988cat >config.log <<_ACEOF 1989This file contains any messages produced by compilers while 1990running configure, to aid debugging if configure makes a mistake. 1991 1992It was created by xf86-video-chips $as_me 1.3.0, which was 1993generated by GNU Autoconf 2.69. Invocation command line was 1994 1995 $ $0 $@ 1996 1997_ACEOF 1998exec 5>>config.log 1999{ 2000cat <<_ASUNAME 2001## --------- ## 2002## Platform. ## 2003## --------- ## 2004 2005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2006uname -m = `(uname -m) 2>/dev/null || echo unknown` 2007uname -r = `(uname -r) 2>/dev/null || echo unknown` 2008uname -s = `(uname -s) 2>/dev/null || echo unknown` 2009uname -v = `(uname -v) 2>/dev/null || echo unknown` 2010 2011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2013 2014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2017/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2021 2022_ASUNAME 2023 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 $as_echo "PATH: $as_dir" 2030 done 2031IFS=$as_save_IFS 2032 2033} >&5 2034 2035cat >&5 <<_ACEOF 2036 2037 2038## ----------- ## 2039## Core tests. ## 2040## ----------- ## 2041 2042_ACEOF 2043 2044 2045# Keep a trace of the command line. 2046# Strip out --no-create and --no-recursion so they do not pile up. 2047# Strip out --silent because we don't want to record it for future runs. 2048# Also quote any args containing shell meta-characters. 2049# Make two passes to allow for proper duplicate-argument suppression. 2050ac_configure_args= 2051ac_configure_args0= 2052ac_configure_args1= 2053ac_must_keep_next=false 2054for ac_pass in 1 2 2055do 2056 for ac_arg 2057 do 2058 case $ac_arg in 2059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2061 | -silent | --silent | --silen | --sile | --sil) 2062 continue ;; 2063 *\'*) 2064 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2065 esac 2066 case $ac_pass in 2067 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2068 2) 2069 as_fn_append ac_configure_args1 " '$ac_arg'" 2070 if test $ac_must_keep_next = true; then 2071 ac_must_keep_next=false # Got value, back to normal. 2072 else 2073 case $ac_arg in 2074 *=* | --config-cache | -C | -disable-* | --disable-* \ 2075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2077 | -with-* | --with-* | -without-* | --without-* | --x) 2078 case "$ac_configure_args0 " in 2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2080 esac 2081 ;; 2082 -* ) ac_must_keep_next=true ;; 2083 esac 2084 fi 2085 as_fn_append ac_configure_args " '$ac_arg'" 2086 ;; 2087 esac 2088 done 2089done 2090{ ac_configure_args0=; unset ac_configure_args0;} 2091{ ac_configure_args1=; unset ac_configure_args1;} 2092 2093# When interrupted or exit'd, cleanup temporary files, and complete 2094# config.log. We remove comments because anyway the quotes in there 2095# would cause problems or look ugly. 2096# WARNING: Use '\'' to represent an apostrophe within the trap. 2097# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2098trap 'exit_status=$? 2099 # Save into config.log some information that might help in debugging. 2100 { 2101 echo 2102 2103 $as_echo "## ---------------- ## 2104## Cache variables. ## 2105## ---------------- ##" 2106 echo 2107 # The following way of writing the cache mishandles newlines in values, 2108( 2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in #( 2112 *${as_nl}*) 2113 case $ac_var in #( 2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2116 esac 2117 case $ac_var in #( 2118 _ | IFS | as_nl) ;; #( 2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2120 *) { eval $ac_var=; unset $ac_var;} ;; 2121 esac ;; 2122 esac 2123 done 2124 (set) 2>&1 | 2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2126 *${as_nl}ac_space=\ *) 2127 sed -n \ 2128 "s/'\''/'\''\\\\'\'''\''/g; 2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2130 ;; #( 2131 *) 2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2133 ;; 2134 esac | 2135 sort 2136) 2137 echo 2138 2139 $as_echo "## ----------------- ## 2140## Output variables. ## 2141## ----------------- ##" 2142 echo 2143 for ac_var in $ac_subst_vars 2144 do 2145 eval ac_val=\$$ac_var 2146 case $ac_val in 2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2148 esac 2149 $as_echo "$ac_var='\''$ac_val'\''" 2150 done | sort 2151 echo 2152 2153 if test -n "$ac_subst_files"; then 2154 $as_echo "## ------------------- ## 2155## File substitutions. ## 2156## ------------------- ##" 2157 echo 2158 for ac_var in $ac_subst_files 2159 do 2160 eval ac_val=\$$ac_var 2161 case $ac_val in 2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2163 esac 2164 $as_echo "$ac_var='\''$ac_val'\''" 2165 done | sort 2166 echo 2167 fi 2168 2169 if test -s confdefs.h; then 2170 $as_echo "## ----------- ## 2171## confdefs.h. ## 2172## ----------- ##" 2173 echo 2174 cat confdefs.h 2175 echo 2176 fi 2177 test "$ac_signal" != 0 && 2178 $as_echo "$as_me: caught signal $ac_signal" 2179 $as_echo "$as_me: exit $exit_status" 2180 } >&5 2181 rm -f core *.core core.conftest.* && 2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2183 exit $exit_status 2184' 0 2185for ac_signal in 1 2 13 15; do 2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2187done 2188ac_signal=0 2189 2190# confdefs.h avoids OS command line length limits that DEFS can exceed. 2191rm -f -r conftest* confdefs.h 2192 2193$as_echo "/* confdefs.h */" > confdefs.h 2194 2195# Predefined preprocessor variables. 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_NAME "$PACKAGE_NAME" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_VERSION "$PACKAGE_VERSION" 2207_ACEOF 2208 2209cat >>confdefs.h <<_ACEOF 2210#define PACKAGE_STRING "$PACKAGE_STRING" 2211_ACEOF 2212 2213cat >>confdefs.h <<_ACEOF 2214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2215_ACEOF 2216 2217cat >>confdefs.h <<_ACEOF 2218#define PACKAGE_URL "$PACKAGE_URL" 2219_ACEOF 2220 2221 2222# Let the site file select an alternate cache file if it wants to. 2223# Prefer an explicitly selected file to automatically selected ones. 2224ac_site_file1=NONE 2225ac_site_file2=NONE 2226if test -n "$CONFIG_SITE"; then 2227 # We do not want a PATH search for config.site. 2228 case $CONFIG_SITE in #(( 2229 -*) ac_site_file1=./$CONFIG_SITE;; 2230 */*) ac_site_file1=$CONFIG_SITE;; 2231 *) ac_site_file1=./$CONFIG_SITE;; 2232 esac 2233elif test "x$prefix" != xNONE; then 2234 ac_site_file1=$prefix/share/config.site 2235 ac_site_file2=$prefix/etc/config.site 2236else 2237 ac_site_file1=$ac_default_prefix/share/config.site 2238 ac_site_file2=$ac_default_prefix/etc/config.site 2239fi 2240for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2241do 2242 test "x$ac_site_file" = xNONE && continue 2243 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2245$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2246 sed 's/^/| /' "$ac_site_file" >&5 2247 . "$ac_site_file" \ 2248 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2250as_fn_error $? "failed to load site script $ac_site_file 2251See \`config.log' for more details" "$LINENO" 5; } 2252 fi 2253done 2254 2255if test -r "$cache_file"; then 2256 # Some versions of bash will fail to source /dev/null (special files 2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2258 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2260$as_echo "$as_me: loading cache $cache_file" >&6;} 2261 case $cache_file in 2262 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2263 *) . "./$cache_file";; 2264 esac 2265 fi 2266else 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2268$as_echo "$as_me: creating cache $cache_file" >&6;} 2269 >$cache_file 2270fi 2271 2272# Check that the precious variables saved in the cache have kept the same 2273# value. 2274ac_cache_corrupted=false 2275for ac_var in $ac_precious_vars; do 2276 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2277 eval ac_new_set=\$ac_env_${ac_var}_set 2278 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2279 eval ac_new_val=\$ac_env_${ac_var}_value 2280 case $ac_old_set,$ac_new_set in 2281 set,) 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2283$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2284 ac_cache_corrupted=: ;; 2285 ,set) 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2287$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2288 ac_cache_corrupted=: ;; 2289 ,);; 2290 *) 2291 if test "x$ac_old_val" != "x$ac_new_val"; then 2292 # differences in whitespace do not lead to failure. 2293 ac_old_val_w=`echo x $ac_old_val` 2294 ac_new_val_w=`echo x $ac_new_val` 2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2297$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2298 ac_cache_corrupted=: 2299 else 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2301$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2302 eval $ac_var=\$ac_old_val 2303 fi 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2305$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2307$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2308 fi;; 2309 esac 2310 # Pass precious variables to config.status. 2311 if test "$ac_new_set" = set; then 2312 case $ac_new_val in 2313 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2314 *) ac_arg=$ac_var=$ac_new_val ;; 2315 esac 2316 case " $ac_configure_args " in 2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2318 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2319 esac 2320 fi 2321done 2322if $ac_cache_corrupted; then 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2326$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2327 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2328fi 2329## -------------------- ## 2330## Main body of script. ## 2331## -------------------- ## 2332 2333ac_ext=c 2334ac_cpp='$CPP $CPPFLAGS' 2335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2337ac_compiler_gnu=$ac_cv_c_compiler_gnu 2338 2339 2340 2341ac_config_headers="$ac_config_headers config.h" 2342 2343ac_aux_dir= 2344for ac_dir in . "$srcdir"/.; do 2345 if test -f "$ac_dir/install-sh"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/install-sh -c" 2348 break 2349 elif test -f "$ac_dir/install.sh"; then 2350 ac_aux_dir=$ac_dir 2351 ac_install_sh="$ac_aux_dir/install.sh -c" 2352 break 2353 elif test -f "$ac_dir/shtool"; then 2354 ac_aux_dir=$ac_dir 2355 ac_install_sh="$ac_aux_dir/shtool install -c" 2356 break 2357 fi 2358done 2359if test -z "$ac_aux_dir"; then 2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2361fi 2362 2363# These three variables are undocumented and unsupported, 2364# and are intended to be withdrawn in a future Autoconf release. 2365# They can cause serious problems if a builder's source tree is in a directory 2366# whose full name contains unusual characters. 2367ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2368ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2369ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2370 2371 2372 2373# Initialize Automake 2374am__api_version='1.15' 2375 2376# Find a good install program. We prefer a C program (faster), 2377# so one script is as good as another. But avoid the broken or 2378# incompatible versions: 2379# SysV /etc/install, /usr/sbin/install 2380# SunOS /usr/etc/install 2381# IRIX /sbin/install 2382# AIX /bin/install 2383# AmigaOS /C/install, which installs bootblocks on floppy discs 2384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2385# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2387# OS/2's system install, which has a completely different semantic 2388# ./install, which can be erroneously created by make from ./install.sh. 2389# Reject install programs that cannot install multiple files. 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2391$as_echo_n "checking for a BSD-compatible install... " >&6; } 2392if test -z "$INSTALL"; then 2393if ${ac_cv_path_install+:} false; then : 2394 $as_echo_n "(cached) " >&6 2395else 2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 # Account for people who put trailing slashes in PATH elements. 2402case $as_dir/ in #(( 2403 ./ | .// | /[cC]/* | \ 2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2406 /usr/ucb/* ) ;; 2407 *) 2408 # OSF1 and SCO ODT 3.0 have their own names for install. 2409 # Don't use installbsd from OSF since it installs stuff as root 2410 # by default. 2411 for ac_prog in ginstall scoinst install; do 2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2414 if test $ac_prog = install && 2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2416 # AIX install. It has an incompatible calling convention. 2417 : 2418 elif test $ac_prog = install && 2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2420 # program-specific install script used by HP pwplus--don't use. 2421 : 2422 else 2423 rm -rf conftest.one conftest.two conftest.dir 2424 echo one > conftest.one 2425 echo two > conftest.two 2426 mkdir conftest.dir 2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2428 test -s conftest.one && test -s conftest.two && 2429 test -s conftest.dir/conftest.one && 2430 test -s conftest.dir/conftest.two 2431 then 2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2433 break 3 2434 fi 2435 fi 2436 fi 2437 done 2438 done 2439 ;; 2440esac 2441 2442 done 2443IFS=$as_save_IFS 2444 2445rm -rf conftest.one conftest.two conftest.dir 2446 2447fi 2448 if test "${ac_cv_path_install+set}" = set; then 2449 INSTALL=$ac_cv_path_install 2450 else 2451 # As a last resort, use the slow shell script. Don't cache a 2452 # value for INSTALL within a source directory, because that will 2453 # break other packages using the cache if that directory is 2454 # removed, or if the value is a relative name. 2455 INSTALL=$ac_install_sh 2456 fi 2457fi 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2459$as_echo "$INSTALL" >&6; } 2460 2461# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2462# It thinks the first close brace ends the variable substitution. 2463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2464 2465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2466 2467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2468 2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2470$as_echo_n "checking whether build environment is sane... " >&6; } 2471# Reject unsafe characters in $srcdir or the absolute working directory 2472# name. Accept space and tab only in the latter. 2473am_lf=' 2474' 2475case `pwd` in 2476 *[\\\"\#\$\&\'\`$am_lf]*) 2477 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2478esac 2479case $srcdir in 2480 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2481 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2482esac 2483 2484# Do 'set' in a subshell so we don't clobber the current shell's 2485# arguments. Must try -L first in case configure is actually a 2486# symlink; some systems play weird games with the mod time of symlinks 2487# (eg FreeBSD returns the mod time of the symlink's containing 2488# directory). 2489if ( 2490 am_has_slept=no 2491 for am_try in 1 2; do 2492 echo "timestamp, slept: $am_has_slept" > conftest.file 2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2494 if test "$*" = "X"; then 2495 # -L didn't work. 2496 set X `ls -t "$srcdir/configure" conftest.file` 2497 fi 2498 if test "$*" != "X $srcdir/configure conftest.file" \ 2499 && test "$*" != "X conftest.file $srcdir/configure"; then 2500 2501 # If neither matched, then we have a broken ls. This can happen 2502 # if, for instance, CONFIG_SHELL is bash and it inherits a 2503 # broken ls alias from the environment. This has actually 2504 # happened. Such a system could not be considered "sane". 2505 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2506 alias in your environment" "$LINENO" 5 2507 fi 2508 if test "$2" = conftest.file || test $am_try -eq 2; then 2509 break 2510 fi 2511 # Just in case. 2512 sleep 1 2513 am_has_slept=yes 2514 done 2515 test "$2" = conftest.file 2516 ) 2517then 2518 # Ok. 2519 : 2520else 2521 as_fn_error $? "newly created file is older than distributed files! 2522Check your system clock" "$LINENO" 5 2523fi 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2525$as_echo "yes" >&6; } 2526# If we didn't sleep, we still need to ensure time stamps of config.status and 2527# generated files are strictly newer. 2528am_sleep_pid= 2529if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2530 ( sleep 1 ) & 2531 am_sleep_pid=$! 2532fi 2533 2534rm -f conftest.file 2535 2536test "$program_prefix" != NONE && 2537 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2538# Use a double $ so make ignores it. 2539test "$program_suffix" != NONE && 2540 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2541# Double any \ or $. 2542# By default was `s,x,x', remove it if useless. 2543ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2544program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2545 2546# Expand $ac_aux_dir to an absolute path. 2547am_aux_dir=`cd "$ac_aux_dir" && pwd` 2548 2549if test x"${MISSING+set}" != xset; then 2550 case $am_aux_dir in 2551 *\ * | *\ *) 2552 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2553 *) 2554 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2555 esac 2556fi 2557# Use eval to expand $SHELL 2558if eval "$MISSING --is-lightweight"; then 2559 am_missing_run="$MISSING " 2560else 2561 am_missing_run= 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2563$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2564fi 2565 2566if test x"${install_sh+set}" != xset; then 2567 case $am_aux_dir in 2568 *\ * | *\ *) 2569 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2570 *) 2571 install_sh="\${SHELL} $am_aux_dir/install-sh" 2572 esac 2573fi 2574 2575# Installed binaries are usually stripped using 'strip' when the user 2576# run "make install-strip". However 'strip' might not be the right 2577# tool to use in cross-compilation environments, therefore Automake 2578# will honor the 'STRIP' environment variable to overrule this program. 2579if test "$cross_compiling" != no; then 2580 if test -n "$ac_tool_prefix"; then 2581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2582set dummy ${ac_tool_prefix}strip; ac_word=$2 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if ${ac_cv_prog_STRIP+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$STRIP"; then 2589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2598 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603 done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608STRIP=$ac_cv_prog_STRIP 2609if test -n "$STRIP"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2611$as_echo "$STRIP" >&6; } 2612else 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 2618fi 2619if test -z "$ac_cv_prog_STRIP"; then 2620 ac_ct_STRIP=$STRIP 2621 # Extract the first word of "strip", so it can be a program name with args. 2622set dummy strip; ac_word=$2 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$ac_ct_STRIP"; then 2629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2638 ac_cv_prog_ac_ct_STRIP="strip" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643 done 2644IFS=$as_save_IFS 2645 2646fi 2647fi 2648ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2649if test -n "$ac_ct_STRIP"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2651$as_echo "$ac_ct_STRIP" >&6; } 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654$as_echo "no" >&6; } 2655fi 2656 2657 if test "x$ac_ct_STRIP" = x; then 2658 STRIP=":" 2659 else 2660 case $cross_compiling:$ac_tool_warned in 2661yes:) 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2664ac_tool_warned=yes ;; 2665esac 2666 STRIP=$ac_ct_STRIP 2667 fi 2668else 2669 STRIP="$ac_cv_prog_STRIP" 2670fi 2671 2672fi 2673INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2674 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2676$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2677if test -z "$MKDIR_P"; then 2678 if ${ac_cv_path_mkdir+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_prog in mkdir gmkdir; do 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2689 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2690 'mkdir (GNU coreutils) '* | \ 2691 'mkdir (coreutils) '* | \ 2692 'mkdir (fileutils) '4.1*) 2693 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2694 break 3;; 2695 esac 2696 done 2697 done 2698 done 2699IFS=$as_save_IFS 2700 2701fi 2702 2703 test -d ./--version && rmdir ./--version 2704 if test "${ac_cv_path_mkdir+set}" = set; then 2705 MKDIR_P="$ac_cv_path_mkdir -p" 2706 else 2707 # As a last resort, use the slow shell script. Don't cache a 2708 # value for MKDIR_P within a source directory, because that will 2709 # break other packages using the cache if that directory is 2710 # removed, or if the value is a relative name. 2711 MKDIR_P="$ac_install_sh -d" 2712 fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2715$as_echo "$MKDIR_P" >&6; } 2716 2717for ac_prog in gawk mawk nawk awk 2718do 2719 # Extract the first word of "$ac_prog", so it can be a program name with args. 2720set dummy $ac_prog; ac_word=$2 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2722$as_echo_n "checking for $ac_word... " >&6; } 2723if ${ac_cv_prog_AWK+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725else 2726 if test -n "$AWK"; then 2727 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2736 ac_cv_prog_AWK="$ac_prog" 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740done 2741 done 2742IFS=$as_save_IFS 2743 2744fi 2745fi 2746AWK=$ac_cv_prog_AWK 2747if test -n "$AWK"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2749$as_echo "$AWK" >&6; } 2750else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2752$as_echo "no" >&6; } 2753fi 2754 2755 2756 test -n "$AWK" && break 2757done 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2760$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2761set x ${MAKE-make} 2762ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2763if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 cat >conftest.make <<\_ACEOF 2767SHELL = /bin/sh 2768all: 2769 @echo '@@@%%%=$(MAKE)=@@@%%%' 2770_ACEOF 2771# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2772case `${MAKE-make} -f conftest.make 2>/dev/null` in 2773 *@@@%%%=?*=@@@%%%*) 2774 eval ac_cv_prog_make_${ac_make}_set=yes;; 2775 *) 2776 eval ac_cv_prog_make_${ac_make}_set=no;; 2777esac 2778rm -f conftest.make 2779fi 2780if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2782$as_echo "yes" >&6; } 2783 SET_MAKE= 2784else 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786$as_echo "no" >&6; } 2787 SET_MAKE="MAKE=${MAKE-make}" 2788fi 2789 2790rm -rf .tst 2>/dev/null 2791mkdir .tst 2>/dev/null 2792if test -d .tst; then 2793 am__leading_dot=. 2794else 2795 am__leading_dot=_ 2796fi 2797rmdir .tst 2>/dev/null 2798 2799# Check whether --enable-silent-rules was given. 2800if test "${enable_silent_rules+set}" = set; then : 2801 enableval=$enable_silent_rules; 2802fi 2803 2804case $enable_silent_rules in # ((( 2805 yes) AM_DEFAULT_VERBOSITY=0;; 2806 no) AM_DEFAULT_VERBOSITY=1;; 2807 *) AM_DEFAULT_VERBOSITY=1;; 2808esac 2809am_make=${MAKE-make} 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2811$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2812if ${am_cv_make_support_nested_variables+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if $as_echo 'TRUE=$(BAR$(V)) 2816BAR0=false 2817BAR1=true 2818V=1 2819am__doit: 2820 @$(TRUE) 2821.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2822 am_cv_make_support_nested_variables=yes 2823else 2824 am_cv_make_support_nested_variables=no 2825fi 2826fi 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2828$as_echo "$am_cv_make_support_nested_variables" >&6; } 2829if test $am_cv_make_support_nested_variables = yes; then 2830 AM_V='$(V)' 2831 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2832else 2833 AM_V=$AM_DEFAULT_VERBOSITY 2834 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2835fi 2836AM_BACKSLASH='\' 2837 2838if test "`cd $srcdir && pwd`" != "`pwd`"; then 2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2840 # is not polluted with repeated "-I." 2841 am__isrc=' -I$(srcdir)' 2842 # test to see if srcdir already configured 2843 if test -f $srcdir/config.status; then 2844 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2845 fi 2846fi 2847 2848# test whether we have cygpath 2849if test -z "$CYGPATH_W"; then 2850 if (cygpath --version) >/dev/null 2>/dev/null; then 2851 CYGPATH_W='cygpath -w' 2852 else 2853 CYGPATH_W=echo 2854 fi 2855fi 2856 2857 2858# Define the identity of the package. 2859 PACKAGE='xf86-video-chips' 2860 VERSION='1.3.0' 2861 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE "$PACKAGE" 2865_ACEOF 2866 2867 2868cat >>confdefs.h <<_ACEOF 2869#define VERSION "$VERSION" 2870_ACEOF 2871 2872# Some tools Automake needs. 2873 2874ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2875 2876 2877AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2878 2879 2880AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2881 2882 2883AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2884 2885 2886MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2887 2888# For better backward compatibility. To be removed once Automake 1.9.x 2889# dies out for good. For more background, see: 2890# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2891# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2892mkdir_p='$(MKDIR_P)' 2893 2894# We need awk for the "check" target (and possibly the TAP driver). The 2895# system "awk" is bad on some platforms. 2896# Always define AMTAR for backward compatibility. Yes, it's still used 2897# in the wild :-( We should find a proper way to deprecate it ... 2898AMTAR='$${TAR-tar}' 2899 2900 2901# We'll loop over all known methods to create a tar archive until one works. 2902_am_tools='gnutar pax cpio none' 2903 2904am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2905 2906 2907 2908 2909 2910 2911# POSIX will say in a future version that running "rm -f" with no argument 2912# is OK; and we want to be able to make that assumption in our Makefile 2913# recipes. So use an aggressive probe to check that the usage we want is 2914# actually supported "in the wild" to an acceptable degree. 2915# See automake bug#10828. 2916# To make any issue more visible, cause the running configure to be aborted 2917# by default if the 'rm' program in use doesn't match our expectations; the 2918# user can still override this though. 2919if rm -f && rm -fr && rm -rf; then : OK; else 2920 cat >&2 <<'END' 2921Oops! 2922 2923Your 'rm' program seems unable to run without file operands specified 2924on the command line, even when the '-f' option is present. This is contrary 2925to the behaviour of most rm programs out there, and not conforming with 2926the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2927 2928Please tell bug-automake@gnu.org about your system, including the value 2929of your $PATH and any error possibly output before this message. This 2930can help us improve future automake versions. 2931 2932END 2933 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2934 echo 'Configuration will proceed anyway, since you have set the' >&2 2935 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2936 echo >&2 2937 else 2938 cat >&2 <<'END' 2939Aborting the configuration process, to ensure you take notice of the issue. 2940 2941You can download and install GNU coreutils to get an 'rm' implementation 2942that behaves properly: <http://www.gnu.org/software/coreutils/>. 2943 2944If you want to complete the configuration process using your problematic 2945'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2946to "yes", and re-run configure. 2947 2948END 2949 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2950 fi 2951fi 2952 2953 2954# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966DEPDIR="${am__leading_dot}deps" 2967 2968ac_config_commands="$ac_config_commands depfiles" 2969 2970 2971am_make=${MAKE-make} 2972cat > confinc << 'END' 2973am__doit: 2974 @echo this is the am__doit target 2975.PHONY: am__doit 2976END 2977# If we don't find an include directive, just comment out the code. 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2979$as_echo_n "checking for style of include used by $am_make... " >&6; } 2980am__include="#" 2981am__quote= 2982_am_result=none 2983# First try GNU make style include. 2984echo "include confinc" > confmf 2985# Ignore all kinds of additional output from 'make'. 2986case `$am_make -s -f confmf 2> /dev/null` in #( 2987*the\ am__doit\ target*) 2988 am__include=include 2989 am__quote= 2990 _am_result=GNU 2991 ;; 2992esac 2993# Now try BSD make style include. 2994if test "$am__include" = "#"; then 2995 echo '.include "confinc"' > confmf 2996 case `$am_make -s -f confmf 2> /dev/null` in #( 2997 *the\ am__doit\ target*) 2998 am__include=.include 2999 am__quote="\"" 3000 _am_result=BSD 3001 ;; 3002 esac 3003fi 3004 3005 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3007$as_echo "$_am_result" >&6; } 3008rm -f confinc confmf 3009 3010# Check whether --enable-dependency-tracking was given. 3011if test "${enable_dependency_tracking+set}" = set; then : 3012 enableval=$enable_dependency_tracking; 3013fi 3014 3015if test "x$enable_dependency_tracking" != xno; then 3016 am_depcomp="$ac_aux_dir/depcomp" 3017 AMDEPBACKSLASH='\' 3018 am__nodep='_no' 3019fi 3020 if test "x$enable_dependency_tracking" != xno; then 3021 AMDEP_TRUE= 3022 AMDEP_FALSE='#' 3023else 3024 AMDEP_TRUE='#' 3025 AMDEP_FALSE= 3026fi 3027 3028 3029ac_ext=c 3030ac_cpp='$CPP $CPPFLAGS' 3031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3033ac_compiler_gnu=$ac_cv_c_compiler_gnu 3034if test -n "$ac_tool_prefix"; then 3035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3036set dummy ${ac_tool_prefix}gcc; ac_word=$2 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if ${ac_cv_prog_CC+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$CC"; then 3043 ac_cv_prog_CC="$CC" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3052 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062CC=$ac_cv_prog_CC 3063if test -n "$CC"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3065$as_echo "$CC" >&6; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 3072fi 3073if test -z "$ac_cv_prog_CC"; then 3074 ac_ct_CC=$CC 3075 # Extract the first word of "gcc", so it can be a program name with args. 3076set dummy gcc; ac_word=$2 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078$as_echo_n "checking for $ac_word... " >&6; } 3079if ${ac_cv_prog_ac_ct_CC+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 if test -n "$ac_ct_CC"; then 3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3084else 3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3086for as_dir in $PATH 3087do 3088 IFS=$as_save_IFS 3089 test -z "$as_dir" && as_dir=. 3090 for ac_exec_ext in '' $ac_executable_extensions; do 3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3092 ac_cv_prog_ac_ct_CC="gcc" 3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3094 break 2 3095 fi 3096done 3097 done 3098IFS=$as_save_IFS 3099 3100fi 3101fi 3102ac_ct_CC=$ac_cv_prog_ac_ct_CC 3103if test -n "$ac_ct_CC"; then 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3105$as_echo "$ac_ct_CC" >&6; } 3106else 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108$as_echo "no" >&6; } 3109fi 3110 3111 if test "x$ac_ct_CC" = x; then 3112 CC="" 3113 else 3114 case $cross_compiling:$ac_tool_warned in 3115yes:) 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3118ac_tool_warned=yes ;; 3119esac 3120 CC=$ac_ct_CC 3121 fi 3122else 3123 CC="$ac_cv_prog_CC" 3124fi 3125 3126if test -z "$CC"; then 3127 if test -n "$ac_tool_prefix"; then 3128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3129set dummy ${ac_tool_prefix}cc; ac_word=$2 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3131$as_echo_n "checking for $ac_word... " >&6; } 3132if ${ac_cv_prog_CC+:} false; then : 3133 $as_echo_n "(cached) " >&6 3134else 3135 if test -n "$CC"; then 3136 ac_cv_prog_CC="$CC" # Let the user override the test. 3137else 3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139for as_dir in $PATH 3140do 3141 IFS=$as_save_IFS 3142 test -z "$as_dir" && as_dir=. 3143 for ac_exec_ext in '' $ac_executable_extensions; do 3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3145 ac_cv_prog_CC="${ac_tool_prefix}cc" 3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3147 break 2 3148 fi 3149done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154fi 3155CC=$ac_cv_prog_CC 3156if test -n "$CC"; then 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3158$as_echo "$CC" >&6; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162fi 3163 3164 3165 fi 3166fi 3167if test -z "$CC"; then 3168 # Extract the first word of "cc", so it can be a program name with args. 3169set dummy cc; ac_word=$2 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171$as_echo_n "checking for $ac_word... " >&6; } 3172if ${ac_cv_prog_CC+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if test -n "$CC"; then 3176 ac_cv_prog_CC="$CC" # Let the user override the test. 3177else 3178 ac_prog_rejected=no 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3187 ac_prog_rejected=yes 3188 continue 3189 fi 3190 ac_cv_prog_CC="cc" 3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3192 break 2 3193 fi 3194done 3195 done 3196IFS=$as_save_IFS 3197 3198if test $ac_prog_rejected = yes; then 3199 # We found a bogon in the path, so make sure we never use it. 3200 set dummy $ac_cv_prog_CC 3201 shift 3202 if test $# != 0; then 3203 # We chose a different compiler from the bogus one. 3204 # However, it has the same basename, so the bogon will be chosen 3205 # first if we set CC to just the basename; use the full file name. 3206 shift 3207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3208 fi 3209fi 3210fi 3211fi 3212CC=$ac_cv_prog_CC 3213if test -n "$CC"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3215$as_echo "$CC" >&6; } 3216else 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218$as_echo "no" >&6; } 3219fi 3220 3221 3222fi 3223if test -z "$CC"; then 3224 if test -n "$ac_tool_prefix"; then 3225 for ac_prog in cl.exe 3226 do 3227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3228set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3230$as_echo_n "checking for $ac_word... " >&6; } 3231if ${ac_cv_prog_CC+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 if test -n "$CC"; then 3235 ac_cv_prog_CC="$CC" # Let the user override the test. 3236else 3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238for as_dir in $PATH 3239do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3246 break 2 3247 fi 3248done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253fi 3254CC=$ac_cv_prog_CC 3255if test -n "$CC"; then 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3257$as_echo "$CC" >&6; } 3258else 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3260$as_echo "no" >&6; } 3261fi 3262 3263 3264 test -n "$CC" && break 3265 done 3266fi 3267if test -z "$CC"; then 3268 ac_ct_CC=$CC 3269 for ac_prog in cl.exe 3270do 3271 # Extract the first word of "$ac_prog", so it can be a program name with args. 3272set dummy $ac_prog; ac_word=$2 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274$as_echo_n "checking for $ac_word... " >&6; } 3275if ${ac_cv_prog_ac_ct_CC+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if test -n "$ac_ct_CC"; then 3279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3280else 3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282for as_dir in $PATH 3283do 3284 IFS=$as_save_IFS 3285 test -z "$as_dir" && as_dir=. 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_CC="$ac_prog" 3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi 3297fi 3298ac_ct_CC=$ac_cv_prog_ac_ct_CC 3299if test -n "$ac_ct_CC"; then 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3301$as_echo "$ac_ct_CC" >&6; } 3302else 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304$as_echo "no" >&6; } 3305fi 3306 3307 3308 test -n "$ac_ct_CC" && break 3309done 3310 3311 if test "x$ac_ct_CC" = x; then 3312 CC="" 3313 else 3314 case $cross_compiling:$ac_tool_warned in 3315yes:) 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3318ac_tool_warned=yes ;; 3319esac 3320 CC=$ac_ct_CC 3321 fi 3322fi 3323 3324fi 3325 3326 3327test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3329as_fn_error $? "no acceptable C compiler found in \$PATH 3330See \`config.log' for more details" "$LINENO" 5; } 3331 3332# Provide some information about the compiler. 3333$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3334set X $ac_compile 3335ac_compiler=$2 3336for ac_option in --version -v -V -qversion; do 3337 { { ac_try="$ac_compiler $ac_option >&5" 3338case "(($ac_try" in 3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3340 *) ac_try_echo=$ac_try;; 3341esac 3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3343$as_echo "$ac_try_echo"; } >&5 3344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3345 ac_status=$? 3346 if test -s conftest.err; then 3347 sed '10a\ 3348... rest of stderr output deleted ... 3349 10q' conftest.err >conftest.er1 3350 cat conftest.er1 >&5 3351 fi 3352 rm -f conftest.er1 conftest.err 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; } 3355done 3356 3357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3358/* end confdefs.h. */ 3359 3360int 3361main () 3362{ 3363 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368ac_clean_files_save=$ac_clean_files 3369ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3370# Try to create an executable without -o first, disregard a.out. 3371# It will help us diagnose broken compilers, and finding out an intuition 3372# of exeext. 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3374$as_echo_n "checking whether the C compiler works... " >&6; } 3375ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3376 3377# The possible output files: 3378ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3379 3380ac_rmfiles= 3381for ac_file in $ac_files 3382do 3383 case $ac_file in 3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3385 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3386 esac 3387done 3388rm -f $ac_rmfiles 3389 3390if { { ac_try="$ac_link_default" 3391case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396$as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_link_default") 2>&5 3398 ac_status=$? 3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3400 test $ac_status = 0; }; then : 3401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3402# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3403# in a Makefile. We should not override ac_cv_exeext if it was cached, 3404# so that the user can short-circuit this test for compilers unknown to 3405# Autoconf. 3406for ac_file in $ac_files '' 3407do 3408 test -f "$ac_file" || continue 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3411 ;; 3412 [ab].out ) 3413 # We found the default executable, but exeext='' is most 3414 # certainly right. 3415 break;; 3416 *.* ) 3417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3418 then :; else 3419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3420 fi 3421 # We set ac_cv_exeext here because the later test for it is not 3422 # safe: cross compilers may not add the suffix if given an `-o' 3423 # argument, so we may need to know it at that point already. 3424 # Even if this section looks crufty: it has the advantage of 3425 # actually working. 3426 break;; 3427 * ) 3428 break;; 3429 esac 3430done 3431test "$ac_cv_exeext" = no && ac_cv_exeext= 3432 3433else 3434 ac_file='' 3435fi 3436if test -z "$ac_file"; then : 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3438$as_echo "no" >&6; } 3439$as_echo "$as_me: failed program was:" >&5 3440sed 's/^/| /' conftest.$ac_ext >&5 3441 3442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3444as_fn_error 77 "C compiler cannot create executables 3445See \`config.log' for more details" "$LINENO" 5; } 3446else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3448$as_echo "yes" >&6; } 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3451$as_echo_n "checking for C compiler default output file name... " >&6; } 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3453$as_echo "$ac_file" >&6; } 3454ac_exeext=$ac_cv_exeext 3455 3456rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3457ac_clean_files=$ac_clean_files_save 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3459$as_echo_n "checking for suffix of executables... " >&6; } 3460if { { ac_try="$ac_link" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_link") 2>&5 3468 ac_status=$? 3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3470 test $ac_status = 0; }; then : 3471 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3472# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3473# work properly (i.e., refer to `conftest.exe'), while it won't with 3474# `rm'. 3475for ac_file in conftest.exe conftest conftest.*; do 3476 test -f "$ac_file" || continue 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3480 break;; 3481 * ) break;; 3482 esac 3483done 3484else 3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3488See \`config.log' for more details" "$LINENO" 5; } 3489fi 3490rm -f conftest conftest$ac_cv_exeext 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3492$as_echo "$ac_cv_exeext" >&6; } 3493 3494rm -f conftest.$ac_ext 3495EXEEXT=$ac_cv_exeext 3496ac_exeext=$EXEEXT 3497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499#include <stdio.h> 3500int 3501main () 3502{ 3503FILE *f = fopen ("conftest.out", "w"); 3504 return ferror (f) || fclose (f) != 0; 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510ac_clean_files="$ac_clean_files conftest.out" 3511# Check that the compiler produces executables we can run. If not, either 3512# the compiler is broken, or we cross compile. 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3514$as_echo_n "checking whether we are cross compiling... " >&6; } 3515if test "$cross_compiling" != yes; then 3516 { { ac_try="$ac_link" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_link") 2>&5 3524 ac_status=$? 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3526 test $ac_status = 0; } 3527 if { ac_try='./conftest$ac_cv_exeext' 3528 { { case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_try") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; }; }; then 3538 cross_compiling=no 3539 else 3540 if test "$cross_compiling" = maybe; then 3541 cross_compiling=yes 3542 else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545as_fn_error $? "cannot run C compiled programs. 3546If you meant to cross compile, use \`--host'. 3547See \`config.log' for more details" "$LINENO" 5; } 3548 fi 3549 fi 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3552$as_echo "$cross_compiling" >&6; } 3553 3554rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3555ac_clean_files=$ac_clean_files_save 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3557$as_echo_n "checking for suffix of object files... " >&6; } 3558if ${ac_cv_objext+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563 3564int 3565main () 3566{ 3567 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572rm -f conftest.o conftest.obj 3573if { { ac_try="$ac_compile" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579$as_echo "$ac_try_echo"; } >&5 3580 (eval "$ac_compile") 2>&5 3581 ac_status=$? 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; }; then : 3584 for ac_file in conftest.o conftest.obj conftest.*; do 3585 test -f "$ac_file" || continue; 3586 case $ac_file in 3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3589 break;; 3590 esac 3591done 3592else 3593 $as_echo "$as_me: failed program was:" >&5 3594sed 's/^/| /' conftest.$ac_ext >&5 3595 3596{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598as_fn_error $? "cannot compute suffix of object files: cannot compile 3599See \`config.log' for more details" "$LINENO" 5; } 3600fi 3601rm -f conftest.$ac_cv_objext conftest.$ac_ext 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3604$as_echo "$ac_cv_objext" >&6; } 3605OBJEXT=$ac_cv_objext 3606ac_objext=$OBJEXT 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3608$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3609if ${ac_cv_c_compiler_gnu+:} false; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614 3615int 3616main () 3617{ 3618#ifndef __GNUC__ 3619 choke me 3620#endif 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_compiler_gnu=yes 3628else 3629 ac_compiler_gnu=no 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632ac_cv_c_compiler_gnu=$ac_compiler_gnu 3633 3634fi 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3636$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3637if test $ac_compiler_gnu = yes; then 3638 GCC=yes 3639else 3640 GCC= 3641fi 3642ac_test_CFLAGS=${CFLAGS+set} 3643ac_save_CFLAGS=$CFLAGS 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3645$as_echo_n "checking whether $CC accepts -g... " >&6; } 3646if ${ac_cv_prog_cc_g+:} false; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 ac_save_c_werror_flag=$ac_c_werror_flag 3650 ac_c_werror_flag=yes 3651 ac_cv_prog_cc_g=no 3652 CFLAGS="-g" 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655 3656int 3657main () 3658{ 3659 3660 ; 3661 return 0; 3662} 3663_ACEOF 3664if ac_fn_c_try_compile "$LINENO"; then : 3665 ac_cv_prog_cc_g=yes 3666else 3667 CFLAGS="" 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670 3671int 3672main () 3673{ 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679if ac_fn_c_try_compile "$LINENO"; then : 3680 3681else 3682 ac_c_werror_flag=$ac_save_c_werror_flag 3683 CFLAGS="-g" 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_cv_prog_cc_g=yes 3697fi 3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3699fi 3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703 ac_c_werror_flag=$ac_save_c_werror_flag 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3706$as_echo "$ac_cv_prog_cc_g" >&6; } 3707if test "$ac_test_CFLAGS" = set; then 3708 CFLAGS=$ac_save_CFLAGS 3709elif test $ac_cv_prog_cc_g = yes; then 3710 if test "$GCC" = yes; then 3711 CFLAGS="-g -O2" 3712 else 3713 CFLAGS="-g" 3714 fi 3715else 3716 if test "$GCC" = yes; then 3717 CFLAGS="-O2" 3718 else 3719 CFLAGS= 3720 fi 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3723$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3724if ${ac_cv_prog_cc_c89+:} false; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 ac_cv_prog_cc_c89=no 3728ac_save_CC=$CC 3729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731#include <stdarg.h> 3732#include <stdio.h> 3733struct stat; 3734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3735struct buf { int x; }; 3736FILE * (*rcsopen) (struct buf *, struct stat *, int); 3737static char *e (p, i) 3738 char **p; 3739 int i; 3740{ 3741 return p[i]; 3742} 3743static char *f (char * (*g) (char **, int), char **p, ...) 3744{ 3745 char *s; 3746 va_list v; 3747 va_start (v,p); 3748 s = g (p, va_arg (v,int)); 3749 va_end (v); 3750 return s; 3751} 3752 3753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3754 function prototypes and stuff, but not '\xHH' hex character constants. 3755 These don't provoke an error unfortunately, instead are silently treated 3756 as 'x'. The following induces an error, until -std is added to get 3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3758 array size at least. It's necessary to write '\x00'==0 to get something 3759 that's true only with -std. */ 3760int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3761 3762/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3763 inside strings and character constants. */ 3764#define FOO(x) 'x' 3765int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3766 3767int test (int i, double x); 3768struct s1 {int (*f) (int a);}; 3769struct s2 {int (*f) (double a);}; 3770int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3771int argc; 3772char **argv; 3773int 3774main () 3775{ 3776return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3783do 3784 CC="$ac_save_CC $ac_arg" 3785 if ac_fn_c_try_compile "$LINENO"; then : 3786 ac_cv_prog_cc_c89=$ac_arg 3787fi 3788rm -f core conftest.err conftest.$ac_objext 3789 test "x$ac_cv_prog_cc_c89" != "xno" && break 3790done 3791rm -f conftest.$ac_ext 3792CC=$ac_save_CC 3793 3794fi 3795# AC_CACHE_VAL 3796case "x$ac_cv_prog_cc_c89" in 3797 x) 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3799$as_echo "none needed" >&6; } ;; 3800 xno) 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3802$as_echo "unsupported" >&6; } ;; 3803 *) 3804 CC="$CC $ac_cv_prog_cc_c89" 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3806$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3807esac 3808if test "x$ac_cv_prog_cc_c89" != xno; then : 3809 3810fi 3811 3812ac_ext=c 3813ac_cpp='$CPP $CPPFLAGS' 3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3816ac_compiler_gnu=$ac_cv_c_compiler_gnu 3817 3818ac_ext=c 3819ac_cpp='$CPP $CPPFLAGS' 3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3822ac_compiler_gnu=$ac_cv_c_compiler_gnu 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3824$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3825if ${am_cv_prog_cc_c_o+:} false; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839 # Make sure it works both with $CC and with simple cc. 3840 # Following AC_PROG_CC_C_O, we do the test twice because some 3841 # compilers refuse to overwrite an existing .o file with -o, 3842 # though they will create one. 3843 am_cv_prog_cc_c_o=yes 3844 for am_i in 1 2; do 3845 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3846 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); } \ 3850 && test -f conftest2.$ac_objext; then 3851 : OK 3852 else 3853 am_cv_prog_cc_c_o=no 3854 break 3855 fi 3856 done 3857 rm -f core conftest* 3858 unset am_i 3859fi 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3861$as_echo "$am_cv_prog_cc_c_o" >&6; } 3862if test "$am_cv_prog_cc_c_o" != yes; then 3863 # Losing compiler, so override with the script. 3864 # FIXME: It is wrong to rewrite CC. 3865 # But if we don't then we get into trouble of one sort or another. 3866 # A longer-term fix would be to have automake use am__CC in this case, 3867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3868 CC="$am_aux_dir/compile $CC" 3869fi 3870ac_ext=c 3871ac_cpp='$CPP $CPPFLAGS' 3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876 3877depcc="$CC" am_compiler_list= 3878 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3880$as_echo_n "checking dependency style of $depcc... " >&6; } 3881if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3885 # We make a subdir and do the tests there. Otherwise we can end up 3886 # making bogus files that we don't know about and never remove. For 3887 # instance it was reported that on HP-UX the gcc test will end up 3888 # making a dummy file named 'D' -- because '-MD' means "put the output 3889 # in D". 3890 rm -rf conftest.dir 3891 mkdir conftest.dir 3892 # Copy depcomp to subdir because otherwise we won't find it if we're 3893 # using a relative directory. 3894 cp "$am_depcomp" conftest.dir 3895 cd conftest.dir 3896 # We will build objects and dependencies in a subdirectory because 3897 # it helps to detect inapplicable dependency modes. For instance 3898 # both Tru64's cc and ICC support -MD to output dependencies as a 3899 # side effect of compilation, but ICC will put the dependencies in 3900 # the current directory while Tru64 will put them in the object 3901 # directory. 3902 mkdir sub 3903 3904 am_cv_CC_dependencies_compiler_type=none 3905 if test "$am_compiler_list" = ""; then 3906 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3907 fi 3908 am__universal=false 3909 case " $depcc " in #( 3910 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3911 esac 3912 3913 for depmode in $am_compiler_list; do 3914 # Setup a source with many dependencies, because some compilers 3915 # like to wrap large dependency lists on column 80 (with \), and 3916 # we should not choose a depcomp mode which is confused by this. 3917 # 3918 # We need to recreate these files for each test, as the compiler may 3919 # overwrite some of them when testing with obscure command lines. 3920 # This happens at least with the AIX C compiler. 3921 : > sub/conftest.c 3922 for i in 1 2 3 4 5 6; do 3923 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3924 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3925 # Solaris 10 /bin/sh. 3926 echo '/* dummy */' > sub/conftst$i.h 3927 done 3928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3929 3930 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3931 # mode. It turns out that the SunPro C++ compiler does not properly 3932 # handle '-M -o', and we need to detect this. Also, some Intel 3933 # versions had trouble with output in subdirs. 3934 am__obj=sub/conftest.${OBJEXT-o} 3935 am__minus_obj="-o $am__obj" 3936 case $depmode in 3937 gcc) 3938 # This depmode causes a compiler race in universal mode. 3939 test "$am__universal" = false || continue 3940 ;; 3941 nosideeffect) 3942 # After this tag, mechanisms are not by side-effect, so they'll 3943 # only be used when explicitly requested. 3944 if test "x$enable_dependency_tracking" = xyes; then 3945 continue 3946 else 3947 break 3948 fi 3949 ;; 3950 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3951 # This compiler won't grok '-c -o', but also, the minuso test has 3952 # not run yet. These depmodes are late enough in the game, and 3953 # so weak that their functioning should not be impacted. 3954 am__obj=conftest.${OBJEXT-o} 3955 am__minus_obj= 3956 ;; 3957 none) break ;; 3958 esac 3959 if depmode=$depmode \ 3960 source=sub/conftest.c object=$am__obj \ 3961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3962 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3963 >/dev/null 2>conftest.err && 3964 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3966 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3968 # icc doesn't choke on unknown options, it will just issue warnings 3969 # or remarks (even with -Werror). So we grep stderr for any message 3970 # that says an option was ignored or not supported. 3971 # When given -MP, icc 7.0 and 7.1 complain thusly: 3972 # icc: Command line warning: ignoring option '-M'; no argument required 3973 # The diagnosis changed in icc 8.0: 3974 # icc: Command line remark: option '-MP' not supported 3975 if (grep 'ignoring option' conftest.err || 3976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3977 am_cv_CC_dependencies_compiler_type=$depmode 3978 break 3979 fi 3980 fi 3981 done 3982 3983 cd .. 3984 rm -rf conftest.dir 3985else 3986 am_cv_CC_dependencies_compiler_type=none 3987fi 3988 3989fi 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3991$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3992CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3993 3994 if 3995 test "x$enable_dependency_tracking" != xno \ 3996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3997 am__fastdepCC_TRUE= 3998 am__fastdepCC_FALSE='#' 3999else 4000 am__fastdepCC_TRUE='#' 4001 am__fastdepCC_FALSE= 4002fi 4003 4004 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4006$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4007if ${ac_cv_prog_cc_c99+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 ac_cv_prog_cc_c99=no 4011ac_save_CC=$CC 4012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#include <stdarg.h> 4015#include <stdbool.h> 4016#include <stdlib.h> 4017#include <wchar.h> 4018#include <stdio.h> 4019 4020// Check varargs macros. These examples are taken from C99 6.10.3.5. 4021#define debug(...) fprintf (stderr, __VA_ARGS__) 4022#define showlist(...) puts (#__VA_ARGS__) 4023#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4024static void 4025test_varargs_macros (void) 4026{ 4027 int x = 1234; 4028 int y = 5678; 4029 debug ("Flag"); 4030 debug ("X = %d\n", x); 4031 showlist (The first, second, and third items.); 4032 report (x>y, "x is %d but y is %d", x, y); 4033} 4034 4035// Check long long types. 4036#define BIG64 18446744073709551615ull 4037#define BIG32 4294967295ul 4038#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4039#if !BIG_OK 4040 your preprocessor is broken; 4041#endif 4042#if BIG_OK 4043#else 4044 your preprocessor is broken; 4045#endif 4046static long long int bignum = -9223372036854775807LL; 4047static unsigned long long int ubignum = BIG64; 4048 4049struct incomplete_array 4050{ 4051 int datasize; 4052 double data[]; 4053}; 4054 4055struct named_init { 4056 int number; 4057 const wchar_t *name; 4058 double average; 4059}; 4060 4061typedef const char *ccp; 4062 4063static inline int 4064test_restrict (ccp restrict text) 4065{ 4066 // See if C++-style comments work. 4067 // Iterate through items via the restricted pointer. 4068 // Also check for declarations in for loops. 4069 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4070 continue; 4071 return 0; 4072} 4073 4074// Check varargs and va_copy. 4075static void 4076test_varargs (const char *format, ...) 4077{ 4078 va_list args; 4079 va_start (args, format); 4080 va_list args_copy; 4081 va_copy (args_copy, args); 4082 4083 const char *str; 4084 int number; 4085 float fnumber; 4086 4087 while (*format) 4088 { 4089 switch (*format++) 4090 { 4091 case 's': // string 4092 str = va_arg (args_copy, const char *); 4093 break; 4094 case 'd': // int 4095 number = va_arg (args_copy, int); 4096 break; 4097 case 'f': // float 4098 fnumber = va_arg (args_copy, double); 4099 break; 4100 default: 4101 break; 4102 } 4103 } 4104 va_end (args_copy); 4105 va_end (args); 4106} 4107 4108int 4109main () 4110{ 4111 4112 // Check bool. 4113 _Bool success = false; 4114 4115 // Check restrict. 4116 if (test_restrict ("String literal") == 0) 4117 success = true; 4118 char *restrict newvar = "Another string"; 4119 4120 // Check varargs. 4121 test_varargs ("s, d' f .", "string", 65, 34.234); 4122 test_varargs_macros (); 4123 4124 // Check flexible array members. 4125 struct incomplete_array *ia = 4126 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4127 ia->datasize = 10; 4128 for (int i = 0; i < ia->datasize; ++i) 4129 ia->data[i] = i * 1.234; 4130 4131 // Check named initializers. 4132 struct named_init ni = { 4133 .number = 34, 4134 .name = L"Test wide string", 4135 .average = 543.34343, 4136 }; 4137 4138 ni.number = 58; 4139 4140 int dynamic_array[ni.number]; 4141 dynamic_array[ni.number - 1] = 543; 4142 4143 // work around unused variable warnings 4144 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4145 || dynamic_array[ni.number - 1] != 543); 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4152do 4153 CC="$ac_save_CC $ac_arg" 4154 if ac_fn_c_try_compile "$LINENO"; then : 4155 ac_cv_prog_cc_c99=$ac_arg 4156fi 4157rm -f core conftest.err conftest.$ac_objext 4158 test "x$ac_cv_prog_cc_c99" != "xno" && break 4159done 4160rm -f conftest.$ac_ext 4161CC=$ac_save_CC 4162 4163fi 4164# AC_CACHE_VAL 4165case "x$ac_cv_prog_cc_c99" in 4166 x) 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4168$as_echo "none needed" >&6; } ;; 4169 xno) 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4171$as_echo "unsupported" >&6; } ;; 4172 *) 4173 CC="$CC $ac_cv_prog_cc_c99" 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4175$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4176esac 4177if test "x$ac_cv_prog_cc_c99" != xno; then : 4178 4179fi 4180 4181 4182 4183ac_ext=c 4184ac_cpp='$CPP $CPPFLAGS' 4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4187ac_compiler_gnu=$ac_cv_c_compiler_gnu 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4189$as_echo_n "checking how to run the C preprocessor... " >&6; } 4190# On Suns, sometimes $CPP names a directory. 4191if test -n "$CPP" && test -d "$CPP"; then 4192 CPP= 4193fi 4194if test -z "$CPP"; then 4195 if ${ac_cv_prog_CPP+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 # Double quotes because CPP needs to be expanded 4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4200 do 4201 ac_preproc_ok=false 4202for ac_c_preproc_warn_flag in '' yes 4203do 4204 # Use a header file that comes with gcc, so configuring glibc 4205 # with a fresh cross-compiler works. 4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4207 # <limits.h> exists even on freestanding compilers. 4208 # On the NeXT, cc -E runs the code through the compiler's parser, 4209 # not just through cpp. "Syntax error" is here to catch this case. 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212#ifdef __STDC__ 4213# include <limits.h> 4214#else 4215# include <assert.h> 4216#endif 4217 Syntax error 4218_ACEOF 4219if ac_fn_c_try_cpp "$LINENO"; then : 4220 4221else 4222 # Broken: fails on valid input. 4223continue 4224fi 4225rm -f conftest.err conftest.i conftest.$ac_ext 4226 4227 # OK, works on sane cases. Now check whether nonexistent headers 4228 # can be detected and how. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#include <ac_nonexistent.h> 4232_ACEOF 4233if ac_fn_c_try_cpp "$LINENO"; then : 4234 # Broken: success on invalid input. 4235continue 4236else 4237 # Passes both tests. 4238ac_preproc_ok=: 4239break 4240fi 4241rm -f conftest.err conftest.i conftest.$ac_ext 4242 4243done 4244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4245rm -f conftest.i conftest.err conftest.$ac_ext 4246if $ac_preproc_ok; then : 4247 break 4248fi 4249 4250 done 4251 ac_cv_prog_CPP=$CPP 4252 4253fi 4254 CPP=$ac_cv_prog_CPP 4255else 4256 ac_cv_prog_CPP=$CPP 4257fi 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4259$as_echo "$CPP" >&6; } 4260ac_preproc_ok=false 4261for ac_c_preproc_warn_flag in '' yes 4262do 4263 # Use a header file that comes with gcc, so configuring glibc 4264 # with a fresh cross-compiler works. 4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4266 # <limits.h> exists even on freestanding compilers. 4267 # On the NeXT, cc -E runs the code through the compiler's parser, 4268 # not just through cpp. "Syntax error" is here to catch this case. 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271#ifdef __STDC__ 4272# include <limits.h> 4273#else 4274# include <assert.h> 4275#endif 4276 Syntax error 4277_ACEOF 4278if ac_fn_c_try_cpp "$LINENO"; then : 4279 4280else 4281 # Broken: fails on valid input. 4282continue 4283fi 4284rm -f conftest.err conftest.i conftest.$ac_ext 4285 4286 # OK, works on sane cases. Now check whether nonexistent headers 4287 # can be detected and how. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <ac_nonexistent.h> 4291_ACEOF 4292if ac_fn_c_try_cpp "$LINENO"; then : 4293 # Broken: success on invalid input. 4294continue 4295else 4296 # Passes both tests. 4297ac_preproc_ok=: 4298break 4299fi 4300rm -f conftest.err conftest.i conftest.$ac_ext 4301 4302done 4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4304rm -f conftest.i conftest.err conftest.$ac_ext 4305if $ac_preproc_ok; then : 4306 4307else 4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4310as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4311See \`config.log' for more details" "$LINENO" 5; } 4312fi 4313 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4322$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4323if ${ac_cv_path_GREP+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 if test -z "$GREP"; then 4327 ac_path_GREP_found=false 4328 # Loop through the user's path and test for each of PROGNAME-LIST 4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4331do 4332 IFS=$as_save_IFS 4333 test -z "$as_dir" && as_dir=. 4334 for ac_prog in grep ggrep; do 4335 for ac_exec_ext in '' $ac_executable_extensions; do 4336 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4337 as_fn_executable_p "$ac_path_GREP" || continue 4338# Check for GNU ac_path_GREP and select it if it is found. 4339 # Check for GNU $ac_path_GREP 4340case `"$ac_path_GREP" --version 2>&1` in 4341*GNU*) 4342 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4343*) 4344 ac_count=0 4345 $as_echo_n 0123456789 >"conftest.in" 4346 while : 4347 do 4348 cat "conftest.in" "conftest.in" >"conftest.tmp" 4349 mv "conftest.tmp" "conftest.in" 4350 cp "conftest.in" "conftest.nl" 4351 $as_echo 'GREP' >> "conftest.nl" 4352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4354 as_fn_arith $ac_count + 1 && ac_count=$as_val 4355 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4356 # Best one so far, save it but keep looking for a better one 4357 ac_cv_path_GREP="$ac_path_GREP" 4358 ac_path_GREP_max=$ac_count 4359 fi 4360 # 10*(2^10) chars as input seems more than enough 4361 test $ac_count -gt 10 && break 4362 done 4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4364esac 4365 4366 $ac_path_GREP_found && break 3 4367 done 4368 done 4369 done 4370IFS=$as_save_IFS 4371 if test -z "$ac_cv_path_GREP"; then 4372 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4373 fi 4374else 4375 ac_cv_path_GREP=$GREP 4376fi 4377 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4380$as_echo "$ac_cv_path_GREP" >&6; } 4381 GREP="$ac_cv_path_GREP" 4382 4383 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4385$as_echo_n "checking for egrep... " >&6; } 4386if ${ac_cv_path_EGREP+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4390 then ac_cv_path_EGREP="$GREP -E" 4391 else 4392 if test -z "$EGREP"; then 4393 ac_path_EGREP_found=false 4394 # Loop through the user's path and test for each of PROGNAME-LIST 4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4397do 4398 IFS=$as_save_IFS 4399 test -z "$as_dir" && as_dir=. 4400 for ac_prog in egrep; do 4401 for ac_exec_ext in '' $ac_executable_extensions; do 4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4403 as_fn_executable_p "$ac_path_EGREP" || continue 4404# Check for GNU ac_path_EGREP and select it if it is found. 4405 # Check for GNU $ac_path_EGREP 4406case `"$ac_path_EGREP" --version 2>&1` in 4407*GNU*) 4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4409*) 4410 ac_count=0 4411 $as_echo_n 0123456789 >"conftest.in" 4412 while : 4413 do 4414 cat "conftest.in" "conftest.in" >"conftest.tmp" 4415 mv "conftest.tmp" "conftest.in" 4416 cp "conftest.in" "conftest.nl" 4417 $as_echo 'EGREP' >> "conftest.nl" 4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4420 as_fn_arith $ac_count + 1 && ac_count=$as_val 4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4422 # Best one so far, save it but keep looking for a better one 4423 ac_cv_path_EGREP="$ac_path_EGREP" 4424 ac_path_EGREP_max=$ac_count 4425 fi 4426 # 10*(2^10) chars as input seems more than enough 4427 test $ac_count -gt 10 && break 4428 done 4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4430esac 4431 4432 $ac_path_EGREP_found && break 3 4433 done 4434 done 4435 done 4436IFS=$as_save_IFS 4437 if test -z "$ac_cv_path_EGREP"; then 4438 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4439 fi 4440else 4441 ac_cv_path_EGREP=$EGREP 4442fi 4443 4444 fi 4445fi 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4447$as_echo "$ac_cv_path_EGREP" >&6; } 4448 EGREP="$ac_cv_path_EGREP" 4449 4450 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4452$as_echo_n "checking for ANSI C header files... " >&6; } 4453if ${ac_cv_header_stdc+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458#include <stdlib.h> 4459#include <stdarg.h> 4460#include <string.h> 4461#include <float.h> 4462 4463int 4464main () 4465{ 4466 4467 ; 4468 return 0; 4469} 4470_ACEOF 4471if ac_fn_c_try_compile "$LINENO"; then : 4472 ac_cv_header_stdc=yes 4473else 4474 ac_cv_header_stdc=no 4475fi 4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4477 4478if test $ac_cv_header_stdc = yes; then 4479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482#include <string.h> 4483 4484_ACEOF 4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4486 $EGREP "memchr" >/dev/null 2>&1; then : 4487 4488else 4489 ac_cv_header_stdc=no 4490fi 4491rm -f conftest* 4492 4493fi 4494 4495if test $ac_cv_header_stdc = yes; then 4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499#include <stdlib.h> 4500 4501_ACEOF 4502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4503 $EGREP "free" >/dev/null 2>&1; then : 4504 4505else 4506 ac_cv_header_stdc=no 4507fi 4508rm -f conftest* 4509 4510fi 4511 4512if test $ac_cv_header_stdc = yes; then 4513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4514 if test "$cross_compiling" = yes; then : 4515 : 4516else 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518/* end confdefs.h. */ 4519#include <ctype.h> 4520#include <stdlib.h> 4521#if ((' ' & 0x0FF) == 0x020) 4522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4524#else 4525# define ISLOWER(c) \ 4526 (('a' <= (c) && (c) <= 'i') \ 4527 || ('j' <= (c) && (c) <= 'r') \ 4528 || ('s' <= (c) && (c) <= 'z')) 4529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4530#endif 4531 4532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4533int 4534main () 4535{ 4536 int i; 4537 for (i = 0; i < 256; i++) 4538 if (XOR (islower (i), ISLOWER (i)) 4539 || toupper (i) != TOUPPER (i)) 4540 return 2; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_run "$LINENO"; then : 4545 4546else 4547 ac_cv_header_stdc=no 4548fi 4549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4550 conftest.$ac_objext conftest.beam conftest.$ac_ext 4551fi 4552 4553fi 4554fi 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4556$as_echo "$ac_cv_header_stdc" >&6; } 4557if test $ac_cv_header_stdc = yes; then 4558 4559$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4560 4561fi 4562 4563# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4565 inttypes.h stdint.h unistd.h 4566do : 4567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4569" 4570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4571 cat >>confdefs.h <<_ACEOF 4572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4573_ACEOF 4574 4575fi 4576 4577done 4578 4579 4580 4581 4582 4583 4584ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4585if test "x$ac_cv_have_decl___clang__" = xyes; then : 4586 CLANGCC="yes" 4587else 4588 CLANGCC="no" 4589fi 4590 4591ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4592if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4593 INTELCC="yes" 4594else 4595 INTELCC="no" 4596fi 4597 4598ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4599if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4600 SUNCC="yes" 4601else 4602 SUNCC="no" 4603fi 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4614 if test -n "$ac_tool_prefix"; then 4615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4616set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4618$as_echo_n "checking for $ac_word... " >&6; } 4619if ${ac_cv_path_PKG_CONFIG+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 case $PKG_CONFIG in 4623 [\\/]* | ?:[\\/]*) 4624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4625 ;; 4626 *) 4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642 ;; 4643esac 4644fi 4645PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4646if test -n "$PKG_CONFIG"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4648$as_echo "$PKG_CONFIG" >&6; } 4649else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651$as_echo "no" >&6; } 4652fi 4653 4654 4655fi 4656if test -z "$ac_cv_path_PKG_CONFIG"; then 4657 ac_pt_PKG_CONFIG=$PKG_CONFIG 4658 # Extract the first word of "pkg-config", so it can be a program name with args. 4659set dummy pkg-config; ac_word=$2 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4661$as_echo_n "checking for $ac_word... " >&6; } 4662if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4663 $as_echo_n "(cached) " >&6 4664else 4665 case $ac_pt_PKG_CONFIG in 4666 [\\/]* | ?:[\\/]*) 4667 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4668 ;; 4669 *) 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4677 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681done 4682 done 4683IFS=$as_save_IFS 4684 4685 ;; 4686esac 4687fi 4688ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4689if test -n "$ac_pt_PKG_CONFIG"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4691$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4694$as_echo "no" >&6; } 4695fi 4696 4697 if test "x$ac_pt_PKG_CONFIG" = x; then 4698 PKG_CONFIG="" 4699 else 4700 case $cross_compiling:$ac_tool_warned in 4701yes:) 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4704ac_tool_warned=yes ;; 4705esac 4706 PKG_CONFIG=$ac_pt_PKG_CONFIG 4707 fi 4708else 4709 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4710fi 4711 4712fi 4713if test -n "$PKG_CONFIG"; then 4714 _pkg_min_version=0.9.0 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4716$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4717 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4719$as_echo "yes" >&6; } 4720 else 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4722$as_echo "no" >&6; } 4723 PKG_CONFIG="" 4724 fi 4725fi 4726# Make sure we can run config.sub. 4727$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4728 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4731$as_echo_n "checking build system type... " >&6; } 4732if ${ac_cv_build+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 ac_build_alias=$build_alias 4736test "x$ac_build_alias" = x && 4737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4738test "x$ac_build_alias" = x && 4739 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4740ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4742 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4745$as_echo "$ac_cv_build" >&6; } 4746case $ac_cv_build in 4747*-*-*) ;; 4748*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4749esac 4750build=$ac_cv_build 4751ac_save_IFS=$IFS; IFS='-' 4752set x $ac_cv_build 4753shift 4754build_cpu=$1 4755build_vendor=$2 4756shift; shift 4757# Remember, the first character of IFS is used to create $*, 4758# except with old shells: 4759build_os=$* 4760IFS=$ac_save_IFS 4761case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4762 4763 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4765$as_echo_n "checking host system type... " >&6; } 4766if ${ac_cv_host+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 if test "x$host_alias" = x; then 4770 ac_cv_host=$ac_cv_build 4771else 4772 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4774fi 4775 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4778$as_echo "$ac_cv_host" >&6; } 4779case $ac_cv_host in 4780*-*-*) ;; 4781*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4782esac 4783host=$ac_cv_host 4784ac_save_IFS=$IFS; IFS='-' 4785set x $ac_cv_host 4786shift 4787host_cpu=$1 4788host_vendor=$2 4789shift; shift 4790# Remember, the first character of IFS is used to create $*, 4791# except with old shells: 4792host_os=$* 4793IFS=$ac_save_IFS 4794case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4795 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4798$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4799if ${ac_cv_path_SED+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4803 for ac_i in 1 2 3 4 5 6 7; do 4804 ac_script="$ac_script$as_nl$ac_script" 4805 done 4806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4807 { ac_script=; unset ac_script;} 4808 if test -z "$SED"; then 4809 ac_path_SED_found=false 4810 # Loop through the user's path and test for each of PROGNAME-LIST 4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4812for as_dir in $PATH 4813do 4814 IFS=$as_save_IFS 4815 test -z "$as_dir" && as_dir=. 4816 for ac_prog in sed gsed; do 4817 for ac_exec_ext in '' $ac_executable_extensions; do 4818 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4819 as_fn_executable_p "$ac_path_SED" || continue 4820# Check for GNU ac_path_SED and select it if it is found. 4821 # Check for GNU $ac_path_SED 4822case `"$ac_path_SED" --version 2>&1` in 4823*GNU*) 4824 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4825*) 4826 ac_count=0 4827 $as_echo_n 0123456789 >"conftest.in" 4828 while : 4829 do 4830 cat "conftest.in" "conftest.in" >"conftest.tmp" 4831 mv "conftest.tmp" "conftest.in" 4832 cp "conftest.in" "conftest.nl" 4833 $as_echo '' >> "conftest.nl" 4834 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4836 as_fn_arith $ac_count + 1 && ac_count=$as_val 4837 if test $ac_count -gt ${ac_path_SED_max-0}; then 4838 # Best one so far, save it but keep looking for a better one 4839 ac_cv_path_SED="$ac_path_SED" 4840 ac_path_SED_max=$ac_count 4841 fi 4842 # 10*(2^10) chars as input seems more than enough 4843 test $ac_count -gt 10 && break 4844 done 4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4846esac 4847 4848 $ac_path_SED_found && break 3 4849 done 4850 done 4851 done 4852IFS=$as_save_IFS 4853 if test -z "$ac_cv_path_SED"; then 4854 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4855 fi 4856else 4857 ac_cv_path_SED=$SED 4858fi 4859 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4862$as_echo "$ac_cv_path_SED" >&6; } 4863 SED="$ac_cv_path_SED" 4864 rm -f conftest.sed 4865 4866 4867 4868 4869 4870 4871# Check whether --enable-selective-werror was given. 4872if test "${enable_selective_werror+set}" = set; then : 4873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4874else 4875 SELECTIVE_WERROR=yes 4876fi 4877 4878 4879 4880 4881 4882# -v is too short to test reliably with XORG_TESTSET_CFLAG 4883if test "x$SUNCC" = "xyes"; then 4884 BASE_CFLAGS="-v" 4885else 4886 BASE_CFLAGS="" 4887fi 4888 4889# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903xorg_testset_save_CFLAGS="$CFLAGS" 4904 4905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914int i; 4915_ACEOF 4916if ac_fn_c_try_compile "$LINENO"; then : 4917 xorg_cv_cc_flag_unknown_warning_option=yes 4918else 4919 xorg_cv_cc_flag_unknown_warning_option=no 4920fi 4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4926 CFLAGS="$xorg_testset_save_CFLAGS" 4927fi 4928 4929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4932 fi 4933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4937 $as_echo_n "(cached) " >&6 4938else 4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4940/* end confdefs.h. */ 4941int i; 4942_ACEOF 4943if ac_fn_c_try_compile "$LINENO"; then : 4944 xorg_cv_cc_flag_unused_command_line_argument=yes 4945else 4946 xorg_cv_cc_flag_unused_command_line_argument=no 4947fi 4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4949fi 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4953 CFLAGS="$xorg_testset_save_CFLAGS" 4954fi 4955 4956found="no" 4957 4958 if test $found = "no" ; then 4959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4961 fi 4962 4963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4965 fi 4966 4967 CFLAGS="$CFLAGS -Wall" 4968 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4970$as_echo_n "checking if $CC supports -Wall... " >&6; } 4971 cacheid=xorg_cv_cc_flag__Wall 4972 if eval \${$cacheid+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977int i; 4978int 4979main () 4980{ 4981 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986if ac_fn_c_try_link "$LINENO"; then : 4987 eval $cacheid=yes 4988else 4989 eval $cacheid=no 4990fi 4991rm -f core conftest.err conftest.$ac_objext \ 4992 conftest$ac_exeext conftest.$ac_ext 4993fi 4994 4995 4996 CFLAGS="$xorg_testset_save_CFLAGS" 4997 4998 eval supported=\$$cacheid 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5000$as_echo "$supported" >&6; } 5001 if test "$supported" = "yes" ; then 5002 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5003 found="yes" 5004 fi 5005 fi 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021xorg_testset_save_CFLAGS="$CFLAGS" 5022 5023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032int i; 5033_ACEOF 5034if ac_fn_c_try_compile "$LINENO"; then : 5035 xorg_cv_cc_flag_unknown_warning_option=yes 5036else 5037 xorg_cv_cc_flag_unknown_warning_option=no 5038fi 5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5044 CFLAGS="$xorg_testset_save_CFLAGS" 5045fi 5046 5047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 fi 5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058/* end confdefs.h. */ 5059int i; 5060_ACEOF 5061if ac_fn_c_try_compile "$LINENO"; then : 5062 xorg_cv_cc_flag_unused_command_line_argument=yes 5063else 5064 xorg_cv_cc_flag_unused_command_line_argument=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072fi 5073 5074found="no" 5075 5076 if test $found = "no" ; then 5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 5081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5083 fi 5084 5085 CFLAGS="$CFLAGS -Wpointer-arith" 5086 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5088$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5089 cacheid=xorg_cv_cc_flag__Wpointer_arith 5090 if eval \${$cacheid+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094/* end confdefs.h. */ 5095int i; 5096int 5097main () 5098{ 5099 5100 ; 5101 return 0; 5102} 5103_ACEOF 5104if ac_fn_c_try_link "$LINENO"; then : 5105 eval $cacheid=yes 5106else 5107 eval $cacheid=no 5108fi 5109rm -f core conftest.err conftest.$ac_objext \ 5110 conftest$ac_exeext conftest.$ac_ext 5111fi 5112 5113 5114 CFLAGS="$xorg_testset_save_CFLAGS" 5115 5116 eval supported=\$$cacheid 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5118$as_echo "$supported" >&6; } 5119 if test "$supported" = "yes" ; then 5120 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5121 found="yes" 5122 fi 5123 fi 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139xorg_testset_save_CFLAGS="$CFLAGS" 5140 5141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5146 $as_echo_n "(cached) " >&6 5147else 5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5149/* end confdefs.h. */ 5150int i; 5151_ACEOF 5152if ac_fn_c_try_compile "$LINENO"; then : 5153 xorg_cv_cc_flag_unknown_warning_option=yes 5154else 5155 xorg_cv_cc_flag_unknown_warning_option=no 5156fi 5157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5162 CFLAGS="$xorg_testset_save_CFLAGS" 5163fi 5164 5165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5168 fi 5169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176/* end confdefs.h. */ 5177int i; 5178_ACEOF 5179if ac_fn_c_try_compile "$LINENO"; then : 5180 xorg_cv_cc_flag_unused_command_line_argument=yes 5181else 5182 xorg_cv_cc_flag_unused_command_line_argument=no 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5185fi 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5189 CFLAGS="$xorg_testset_save_CFLAGS" 5190fi 5191 5192found="no" 5193 5194 if test $found = "no" ; then 5195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5197 fi 5198 5199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5201 fi 5202 5203 CFLAGS="$CFLAGS -Wmissing-declarations" 5204 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5206$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5207 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5208 if eval \${$cacheid+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213int i; 5214int 5215main () 5216{ 5217 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222if ac_fn_c_try_link "$LINENO"; then : 5223 eval $cacheid=yes 5224else 5225 eval $cacheid=no 5226fi 5227rm -f core conftest.err conftest.$ac_objext \ 5228 conftest$ac_exeext conftest.$ac_ext 5229fi 5230 5231 5232 CFLAGS="$xorg_testset_save_CFLAGS" 5233 5234 eval supported=\$$cacheid 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5236$as_echo "$supported" >&6; } 5237 if test "$supported" = "yes" ; then 5238 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5239 found="yes" 5240 fi 5241 fi 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257xorg_testset_save_CFLAGS="$CFLAGS" 5258 5259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265else 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267/* end confdefs.h. */ 5268int i; 5269_ACEOF 5270if ac_fn_c_try_compile "$LINENO"; then : 5271 xorg_cv_cc_flag_unknown_warning_option=yes 5272else 5273 xorg_cv_cc_flag_unknown_warning_option=no 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5280 CFLAGS="$xorg_testset_save_CFLAGS" 5281fi 5282 5283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 fi 5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294/* end confdefs.h. */ 5295int i; 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO"; then : 5298 xorg_cv_cc_flag_unused_command_line_argument=yes 5299else 5300 xorg_cv_cc_flag_unused_command_line_argument=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310found="no" 5311 5312 if test $found = "no" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5319 fi 5320 5321 CFLAGS="$CFLAGS -Wformat=2" 5322 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5324$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5325 cacheid=xorg_cv_cc_flag__Wformat_2 5326 if eval \${$cacheid+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331int i; 5332int 5333main () 5334{ 5335 5336 ; 5337 return 0; 5338} 5339_ACEOF 5340if ac_fn_c_try_link "$LINENO"; then : 5341 eval $cacheid=yes 5342else 5343 eval $cacheid=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext \ 5346 conftest$ac_exeext conftest.$ac_ext 5347fi 5348 5349 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351 5352 eval supported=\$$cacheid 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5354$as_echo "$supported" >&6; } 5355 if test "$supported" = "yes" ; then 5356 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5357 found="yes" 5358 fi 5359 fi 5360 5361 if test $found = "no" ; then 5362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5364 fi 5365 5366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5368 fi 5369 5370 CFLAGS="$CFLAGS -Wformat" 5371 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5373$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5374 cacheid=xorg_cv_cc_flag__Wformat 5375 if eval \${$cacheid+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5379/* end confdefs.h. */ 5380int i; 5381int 5382main () 5383{ 5384 5385 ; 5386 return 0; 5387} 5388_ACEOF 5389if ac_fn_c_try_link "$LINENO"; then : 5390 eval $cacheid=yes 5391else 5392 eval $cacheid=no 5393fi 5394rm -f core conftest.err conftest.$ac_objext \ 5395 conftest$ac_exeext conftest.$ac_ext 5396fi 5397 5398 5399 CFLAGS="$xorg_testset_save_CFLAGS" 5400 5401 eval supported=\$$cacheid 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5403$as_echo "$supported" >&6; } 5404 if test "$supported" = "yes" ; then 5405 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5406 found="yes" 5407 fi 5408 fi 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426xorg_testset_save_CFLAGS="$CFLAGS" 5427 5428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437int i; 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO"; then : 5440 xorg_cv_cc_flag_unknown_warning_option=yes 5441else 5442 xorg_cv_cc_flag_unknown_warning_option=no 5443fi 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445fi 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5449 CFLAGS="$xorg_testset_save_CFLAGS" 5450fi 5451 5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5455 fi 5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463/* end confdefs.h. */ 5464int i; 5465_ACEOF 5466if ac_fn_c_try_compile "$LINENO"; then : 5467 xorg_cv_cc_flag_unused_command_line_argument=yes 5468else 5469 xorg_cv_cc_flag_unused_command_line_argument=no 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5472fi 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477fi 5478 5479found="no" 5480 5481 if test $found = "no" ; then 5482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5484 fi 5485 5486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5488 fi 5489 5490 CFLAGS="$CFLAGS -Wstrict-prototypes" 5491 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5493$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5494 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5495 if eval \${$cacheid+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499/* end confdefs.h. */ 5500int i; 5501int 5502main () 5503{ 5504 5505 ; 5506 return 0; 5507} 5508_ACEOF 5509if ac_fn_c_try_link "$LINENO"; then : 5510 eval $cacheid=yes 5511else 5512 eval $cacheid=no 5513fi 5514rm -f core conftest.err conftest.$ac_objext \ 5515 conftest$ac_exeext conftest.$ac_ext 5516fi 5517 5518 5519 CFLAGS="$xorg_testset_save_CFLAGS" 5520 5521 eval supported=\$$cacheid 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5523$as_echo "$supported" >&6; } 5524 if test "$supported" = "yes" ; then 5525 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5526 found="yes" 5527 fi 5528 fi 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544xorg_testset_save_CFLAGS="$CFLAGS" 5545 5546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555int i; 5556_ACEOF 5557if ac_fn_c_try_compile "$LINENO"; then : 5558 xorg_cv_cc_flag_unknown_warning_option=yes 5559else 5560 xorg_cv_cc_flag_unknown_warning_option=no 5561fi 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563fi 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568fi 5569 5570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5573 fi 5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5581/* end confdefs.h. */ 5582int i; 5583_ACEOF 5584if ac_fn_c_try_compile "$LINENO"; then : 5585 xorg_cv_cc_flag_unused_command_line_argument=yes 5586else 5587 xorg_cv_cc_flag_unused_command_line_argument=no 5588fi 5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595fi 5596 5597found="no" 5598 5599 if test $found = "no" ; then 5600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5602 fi 5603 5604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5606 fi 5607 5608 CFLAGS="$CFLAGS -Wmissing-prototypes" 5609 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5611$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5612 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5613 if eval \${$cacheid+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618int i; 5619int 5620main () 5621{ 5622 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627if ac_fn_c_try_link "$LINENO"; then : 5628 eval $cacheid=yes 5629else 5630 eval $cacheid=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext \ 5633 conftest$ac_exeext conftest.$ac_ext 5634fi 5635 5636 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638 5639 eval supported=\$$cacheid 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5641$as_echo "$supported" >&6; } 5642 if test "$supported" = "yes" ; then 5643 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5644 found="yes" 5645 fi 5646 fi 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662xorg_testset_save_CFLAGS="$CFLAGS" 5663 5664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672/* end confdefs.h. */ 5673int i; 5674_ACEOF 5675if ac_fn_c_try_compile "$LINENO"; then : 5676 xorg_cv_cc_flag_unknown_warning_option=yes 5677else 5678 xorg_cv_cc_flag_unknown_warning_option=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681fi 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686fi 5687 5688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO"; then : 5703 xorg_cv_cc_flag_unused_command_line_argument=yes 5704else 5705 xorg_cv_cc_flag_unused_command_line_argument=no 5706fi 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5712 CFLAGS="$xorg_testset_save_CFLAGS" 5713fi 5714 5715found="no" 5716 5717 if test $found = "no" ; then 5718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5720 fi 5721 5722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5724 fi 5725 5726 CFLAGS="$CFLAGS -Wnested-externs" 5727 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5729$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5730 cacheid=xorg_cv_cc_flag__Wnested_externs 5731 if eval \${$cacheid+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736int i; 5737int 5738main () 5739{ 5740 5741 ; 5742 return 0; 5743} 5744_ACEOF 5745if ac_fn_c_try_link "$LINENO"; then : 5746 eval $cacheid=yes 5747else 5748 eval $cacheid=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext \ 5751 conftest$ac_exeext conftest.$ac_ext 5752fi 5753 5754 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756 5757 eval supported=\$$cacheid 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5759$as_echo "$supported" >&6; } 5760 if test "$supported" = "yes" ; then 5761 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5762 found="yes" 5763 fi 5764 fi 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780xorg_testset_save_CFLAGS="$CFLAGS" 5781 5782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791int i; 5792_ACEOF 5793if ac_fn_c_try_compile "$LINENO"; then : 5794 xorg_cv_cc_flag_unknown_warning_option=yes 5795else 5796 xorg_cv_cc_flag_unknown_warning_option=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5799fi 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804fi 5805 5806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5809 fi 5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819_ACEOF 5820if ac_fn_c_try_compile "$LINENO"; then : 5821 xorg_cv_cc_flag_unused_command_line_argument=yes 5822else 5823 xorg_cv_cc_flag_unused_command_line_argument=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5826fi 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5830 CFLAGS="$xorg_testset_save_CFLAGS" 5831fi 5832 5833found="no" 5834 5835 if test $found = "no" ; then 5836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5838 fi 5839 5840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5842 fi 5843 5844 CFLAGS="$CFLAGS -Wbad-function-cast" 5845 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5847$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5848 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5849 if eval \${$cacheid+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854int i; 5855int 5856main () 5857{ 5858 5859 ; 5860 return 0; 5861} 5862_ACEOF 5863if ac_fn_c_try_link "$LINENO"; then : 5864 eval $cacheid=yes 5865else 5866 eval $cacheid=no 5867fi 5868rm -f core conftest.err conftest.$ac_objext \ 5869 conftest$ac_exeext conftest.$ac_ext 5870fi 5871 5872 5873 CFLAGS="$xorg_testset_save_CFLAGS" 5874 5875 eval supported=\$$cacheid 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5877$as_echo "$supported" >&6; } 5878 if test "$supported" = "yes" ; then 5879 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5880 found="yes" 5881 fi 5882 fi 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898xorg_testset_save_CFLAGS="$CFLAGS" 5899 5900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910_ACEOF 5911if ac_fn_c_try_compile "$LINENO"; then : 5912 xorg_cv_cc_flag_unknown_warning_option=yes 5913else 5914 xorg_cv_cc_flag_unknown_warning_option=no 5915fi 5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5921 CFLAGS="$xorg_testset_save_CFLAGS" 5922fi 5923 5924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 fi 5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935/* end confdefs.h. */ 5936int i; 5937_ACEOF 5938if ac_fn_c_try_compile "$LINENO"; then : 5939 xorg_cv_cc_flag_unused_command_line_argument=yes 5940else 5941 xorg_cv_cc_flag_unused_command_line_argument=no 5942fi 5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5944fi 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5948 CFLAGS="$xorg_testset_save_CFLAGS" 5949fi 5950 5951found="no" 5952 5953 if test $found = "no" ; then 5954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5956 fi 5957 5958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5960 fi 5961 5962 CFLAGS="$CFLAGS -Wold-style-definition" 5963 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5965$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5966 cacheid=xorg_cv_cc_flag__Wold_style_definition 5967 if eval \${$cacheid+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972int i; 5973int 5974main () 5975{ 5976 5977 ; 5978 return 0; 5979} 5980_ACEOF 5981if ac_fn_c_try_link "$LINENO"; then : 5982 eval $cacheid=yes 5983else 5984 eval $cacheid=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext \ 5987 conftest$ac_exeext conftest.$ac_ext 5988fi 5989 5990 5991 CFLAGS="$xorg_testset_save_CFLAGS" 5992 5993 eval supported=\$$cacheid 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5995$as_echo "$supported" >&6; } 5996 if test "$supported" = "yes" ; then 5997 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5998 found="yes" 5999 fi 6000 fi 6001 6002 if test $found = "no" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6009 fi 6010 6011 CFLAGS="$CFLAGS -fd" 6012 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6014$as_echo_n "checking if $CC supports -fd... " >&6; } 6015 cacheid=xorg_cv_cc_flag__fd 6016 if eval \${$cacheid+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022int 6023main () 6024{ 6025 6026 ; 6027 return 0; 6028} 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO"; then : 6031 eval $cacheid=yes 6032else 6033 eval $cacheid=no 6034fi 6035rm -f core conftest.err conftest.$ac_objext \ 6036 conftest$ac_exeext conftest.$ac_ext 6037fi 6038 6039 6040 CFLAGS="$xorg_testset_save_CFLAGS" 6041 6042 eval supported=\$$cacheid 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6044$as_echo "$supported" >&6; } 6045 if test "$supported" = "yes" ; then 6046 BASE_CFLAGS="$BASE_CFLAGS -fd" 6047 found="yes" 6048 fi 6049 fi 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065xorg_testset_save_CFLAGS="$CFLAGS" 6066 6067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6071if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 6080else 6081 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 6086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6088 CFLAGS="$xorg_testset_save_CFLAGS" 6089fi 6090 6091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 fi 6095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103int i; 6104_ACEOF 6105if ac_fn_c_try_compile "$LINENO"; then : 6106 xorg_cv_cc_flag_unused_command_line_argument=yes 6107else 6108 xorg_cv_cc_flag_unused_command_line_argument=no 6109fi 6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6111fi 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6115 CFLAGS="$xorg_testset_save_CFLAGS" 6116fi 6117 6118found="no" 6119 6120 if test $found = "no" ; then 6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6123 fi 6124 6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6127 fi 6128 6129 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6130 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6132$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6133 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6134 if eval \${$cacheid+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140int 6141main () 6142{ 6143 6144 ; 6145 return 0; 6146} 6147_ACEOF 6148if ac_fn_c_try_link "$LINENO"; then : 6149 eval $cacheid=yes 6150else 6151 eval $cacheid=no 6152fi 6153rm -f core conftest.err conftest.$ac_objext \ 6154 conftest$ac_exeext conftest.$ac_ext 6155fi 6156 6157 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 6160 eval supported=\$$cacheid 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6162$as_echo "$supported" >&6; } 6163 if test "$supported" = "yes" ; then 6164 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6165 found="yes" 6166 fi 6167 fi 6168 6169 6170 6171 6172 6173# This chunk adds additional warnings that could catch undesired effects. 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187xorg_testset_save_CFLAGS="$CFLAGS" 6188 6189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198int i; 6199_ACEOF 6200if ac_fn_c_try_compile "$LINENO"; then : 6201 xorg_cv_cc_flag_unknown_warning_option=yes 6202else 6203 xorg_cv_cc_flag_unknown_warning_option=no 6204fi 6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6206fi 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6210 CFLAGS="$xorg_testset_save_CFLAGS" 6211fi 6212 6213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6216 fi 6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222else 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224/* end confdefs.h. */ 6225int i; 6226_ACEOF 6227if ac_fn_c_try_compile "$LINENO"; then : 6228 xorg_cv_cc_flag_unused_command_line_argument=yes 6229else 6230 xorg_cv_cc_flag_unused_command_line_argument=no 6231fi 6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238fi 6239 6240found="no" 6241 6242 if test $found = "no" ; then 6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 fi 6246 6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 fi 6250 6251 CFLAGS="$CFLAGS -Wunused" 6252 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6254$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6255 cacheid=xorg_cv_cc_flag__Wunused 6256 if eval \${$cacheid+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262int 6263main () 6264{ 6265 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270if ac_fn_c_try_link "$LINENO"; then : 6271 eval $cacheid=yes 6272else 6273 eval $cacheid=no 6274fi 6275rm -f core conftest.err conftest.$ac_objext \ 6276 conftest$ac_exeext conftest.$ac_ext 6277fi 6278 6279 6280 CFLAGS="$xorg_testset_save_CFLAGS" 6281 6282 eval supported=\$$cacheid 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6284$as_echo "$supported" >&6; } 6285 if test "$supported" = "yes" ; then 6286 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6287 found="yes" 6288 fi 6289 fi 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305xorg_testset_save_CFLAGS="$CFLAGS" 6306 6307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315/* end confdefs.h. */ 6316int i; 6317_ACEOF 6318if ac_fn_c_try_compile "$LINENO"; then : 6319 xorg_cv_cc_flag_unknown_warning_option=yes 6320else 6321 xorg_cv_cc_flag_unknown_warning_option=no 6322fi 6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6324fi 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6328 CFLAGS="$xorg_testset_save_CFLAGS" 6329fi 6330 6331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 fi 6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343int i; 6344_ACEOF 6345if ac_fn_c_try_compile "$LINENO"; then : 6346 xorg_cv_cc_flag_unused_command_line_argument=yes 6347else 6348 xorg_cv_cc_flag_unused_command_line_argument=no 6349fi 6350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6351fi 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356fi 6357 6358found="no" 6359 6360 if test $found = "no" ; then 6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 fi 6364 6365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6367 fi 6368 6369 CFLAGS="$CFLAGS -Wuninitialized" 6370 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6372$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6373 cacheid=xorg_cv_cc_flag__Wuninitialized 6374 if eval \${$cacheid+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379int i; 6380int 6381main () 6382{ 6383 6384 ; 6385 return 0; 6386} 6387_ACEOF 6388if ac_fn_c_try_link "$LINENO"; then : 6389 eval $cacheid=yes 6390else 6391 eval $cacheid=no 6392fi 6393rm -f core conftest.err conftest.$ac_objext \ 6394 conftest$ac_exeext conftest.$ac_ext 6395fi 6396 6397 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399 6400 eval supported=\$$cacheid 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6402$as_echo "$supported" >&6; } 6403 if test "$supported" = "yes" ; then 6404 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6405 found="yes" 6406 fi 6407 fi 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423xorg_testset_save_CFLAGS="$CFLAGS" 6424 6425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434int i; 6435_ACEOF 6436if ac_fn_c_try_compile "$LINENO"; then : 6437 xorg_cv_cc_flag_unknown_warning_option=yes 6438else 6439 xorg_cv_cc_flag_unknown_warning_option=no 6440fi 6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6442fi 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6446 CFLAGS="$xorg_testset_save_CFLAGS" 6447fi 6448 6449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6452 fi 6453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461int i; 6462_ACEOF 6463if ac_fn_c_try_compile "$LINENO"; then : 6464 xorg_cv_cc_flag_unused_command_line_argument=yes 6465else 6466 xorg_cv_cc_flag_unused_command_line_argument=no 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6469fi 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6473 CFLAGS="$xorg_testset_save_CFLAGS" 6474fi 6475 6476found="no" 6477 6478 if test $found = "no" ; then 6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6481 fi 6482 6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6485 fi 6486 6487 CFLAGS="$CFLAGS -Wshadow" 6488 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6490$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6491 cacheid=xorg_cv_cc_flag__Wshadow 6492 if eval \${$cacheid+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497int i; 6498int 6499main () 6500{ 6501 6502 ; 6503 return 0; 6504} 6505_ACEOF 6506if ac_fn_c_try_link "$LINENO"; then : 6507 eval $cacheid=yes 6508else 6509 eval $cacheid=no 6510fi 6511rm -f core conftest.err conftest.$ac_objext \ 6512 conftest$ac_exeext conftest.$ac_ext 6513fi 6514 6515 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517 6518 eval supported=\$$cacheid 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6520$as_echo "$supported" >&6; } 6521 if test "$supported" = "yes" ; then 6522 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6523 found="yes" 6524 fi 6525 fi 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541xorg_testset_save_CFLAGS="$CFLAGS" 6542 6543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552int i; 6553_ACEOF 6554if ac_fn_c_try_compile "$LINENO"; then : 6555 xorg_cv_cc_flag_unknown_warning_option=yes 6556else 6557 xorg_cv_cc_flag_unknown_warning_option=no 6558fi 6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6564 CFLAGS="$xorg_testset_save_CFLAGS" 6565fi 6566 6567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 fi 6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579int i; 6580_ACEOF 6581if ac_fn_c_try_compile "$LINENO"; then : 6582 xorg_cv_cc_flag_unused_command_line_argument=yes 6583else 6584 xorg_cv_cc_flag_unused_command_line_argument=no 6585fi 6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6587fi 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592fi 6593 6594found="no" 6595 6596 if test $found = "no" ; then 6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 fi 6600 6601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6603 fi 6604 6605 CFLAGS="$CFLAGS -Wmissing-noreturn" 6606 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6608$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6609 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6610 if eval \${$cacheid+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616int 6617main () 6618{ 6619 6620 ; 6621 return 0; 6622} 6623_ACEOF 6624if ac_fn_c_try_link "$LINENO"; then : 6625 eval $cacheid=yes 6626else 6627 eval $cacheid=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext \ 6630 conftest$ac_exeext conftest.$ac_ext 6631fi 6632 6633 6634 CFLAGS="$xorg_testset_save_CFLAGS" 6635 6636 eval supported=\$$cacheid 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6638$as_echo "$supported" >&6; } 6639 if test "$supported" = "yes" ; then 6640 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6641 found="yes" 6642 fi 6643 fi 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659xorg_testset_save_CFLAGS="$CFLAGS" 6660 6661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671_ACEOF 6672if ac_fn_c_try_compile "$LINENO"; then : 6673 xorg_cv_cc_flag_unknown_warning_option=yes 6674else 6675 xorg_cv_cc_flag_unknown_warning_option=no 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6682 CFLAGS="$xorg_testset_save_CFLAGS" 6683fi 6684 6685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6688 fi 6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697int i; 6698_ACEOF 6699if ac_fn_c_try_compile "$LINENO"; then : 6700 xorg_cv_cc_flag_unused_command_line_argument=yes 6701else 6702 xorg_cv_cc_flag_unused_command_line_argument=no 6703fi 6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6705fi 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6709 CFLAGS="$xorg_testset_save_CFLAGS" 6710fi 6711 6712found="no" 6713 6714 if test $found = "no" ; then 6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6717 fi 6718 6719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6721 fi 6722 6723 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6724 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6726$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6727 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6728 if eval \${$cacheid+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732/* end confdefs.h. */ 6733int i; 6734int 6735main () 6736{ 6737 6738 ; 6739 return 0; 6740} 6741_ACEOF 6742if ac_fn_c_try_link "$LINENO"; then : 6743 eval $cacheid=yes 6744else 6745 eval $cacheid=no 6746fi 6747rm -f core conftest.err conftest.$ac_objext \ 6748 conftest$ac_exeext conftest.$ac_ext 6749fi 6750 6751 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753 6754 eval supported=\$$cacheid 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6756$as_echo "$supported" >&6; } 6757 if test "$supported" = "yes" ; then 6758 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6759 found="yes" 6760 fi 6761 fi 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777xorg_testset_save_CFLAGS="$CFLAGS" 6778 6779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788int i; 6789_ACEOF 6790if ac_fn_c_try_compile "$LINENO"; then : 6791 xorg_cv_cc_flag_unknown_warning_option=yes 6792else 6793 xorg_cv_cc_flag_unknown_warning_option=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801fi 6802 6803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 fi 6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815int i; 6816_ACEOF 6817if ac_fn_c_try_compile "$LINENO"; then : 6818 xorg_cv_cc_flag_unused_command_line_argument=yes 6819else 6820 xorg_cv_cc_flag_unused_command_line_argument=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828fi 6829 6830found="no" 6831 6832 if test $found = "no" ; then 6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6835 fi 6836 6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6839 fi 6840 6841 CFLAGS="$CFLAGS -Wredundant-decls" 6842 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6844$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6845 cacheid=xorg_cv_cc_flag__Wredundant_decls 6846 if eval \${$cacheid+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850/* end confdefs.h. */ 6851int i; 6852int 6853main () 6854{ 6855 6856 ; 6857 return 0; 6858} 6859_ACEOF 6860if ac_fn_c_try_link "$LINENO"; then : 6861 eval $cacheid=yes 6862else 6863 eval $cacheid=no 6864fi 6865rm -f core conftest.err conftest.$ac_objext \ 6866 conftest$ac_exeext conftest.$ac_ext 6867fi 6868 6869 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871 6872 eval supported=\$$cacheid 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6874$as_echo "$supported" >&6; } 6875 if test "$supported" = "yes" ; then 6876 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6877 found="yes" 6878 fi 6879 fi 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895xorg_testset_save_CFLAGS="$CFLAGS" 6896 6897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907_ACEOF 6908if ac_fn_c_try_compile "$LINENO"; then : 6909 xorg_cv_cc_flag_unknown_warning_option=yes 6910else 6911 xorg_cv_cc_flag_unknown_warning_option=no 6912fi 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6914fi 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6918 CFLAGS="$xorg_testset_save_CFLAGS" 6919fi 6920 6921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6924 fi 6925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO"; then : 6936 xorg_cv_cc_flag_unused_command_line_argument=yes 6937else 6938 xorg_cv_cc_flag_unused_command_line_argument=no 6939fi 6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6941fi 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946fi 6947 6948found="no" 6949 6950 if test $found = "no" ; then 6951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6953 fi 6954 6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957 fi 6958 6959 CFLAGS="$CFLAGS -Wlogical-op" 6960 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6962$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6963 cacheid=xorg_cv_cc_flag__Wlogical_op 6964 if eval \${$cacheid+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969int i; 6970int 6971main () 6972{ 6973 6974 ; 6975 return 0; 6976} 6977_ACEOF 6978if ac_fn_c_try_link "$LINENO"; then : 6979 eval $cacheid=yes 6980else 6981 eval $cacheid=no 6982fi 6983rm -f core conftest.err conftest.$ac_objext \ 6984 conftest$ac_exeext conftest.$ac_ext 6985fi 6986 6987 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989 6990 eval supported=\$$cacheid 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6992$as_echo "$supported" >&6; } 6993 if test "$supported" = "yes" ; then 6994 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6995 found="yes" 6996 fi 6997 fi 6998 6999 7000 7001# These are currently disabled because they are noisy. They will be enabled 7002# in the future once the codebase is sufficiently modernized to silence 7003# them. For now, I don't want them to drown out the other warnings. 7004# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7005# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7006# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7007 7008# Turn some warnings into errors, so we don't accidently get successful builds 7009# when there are problems that should be fixed. 7010 7011if test "x$SELECTIVE_WERROR" = "xyes" ; then 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025xorg_testset_save_CFLAGS="$CFLAGS" 7026 7027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7035/* end confdefs.h. */ 7036int i; 7037_ACEOF 7038if ac_fn_c_try_compile "$LINENO"; then : 7039 xorg_cv_cc_flag_unknown_warning_option=yes 7040else 7041 xorg_cv_cc_flag_unknown_warning_option=no 7042fi 7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7044fi 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7048 CFLAGS="$xorg_testset_save_CFLAGS" 7049fi 7050 7051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 fi 7055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063int i; 7064_ACEOF 7065if ac_fn_c_try_compile "$LINENO"; then : 7066 xorg_cv_cc_flag_unused_command_line_argument=yes 7067else 7068 xorg_cv_cc_flag_unused_command_line_argument=no 7069fi 7070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7071fi 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7075 CFLAGS="$xorg_testset_save_CFLAGS" 7076fi 7077 7078found="no" 7079 7080 if test $found = "no" ; then 7081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7083 fi 7084 7085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 fi 7088 7089 CFLAGS="$CFLAGS -Werror=implicit" 7090 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7092$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7093 cacheid=xorg_cv_cc_flag__Werror_implicit 7094 if eval \${$cacheid+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099int i; 7100int 7101main () 7102{ 7103 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108if ac_fn_c_try_link "$LINENO"; then : 7109 eval $cacheid=yes 7110else 7111 eval $cacheid=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext \ 7114 conftest$ac_exeext conftest.$ac_ext 7115fi 7116 7117 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119 7120 eval supported=\$$cacheid 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7122$as_echo "$supported" >&6; } 7123 if test "$supported" = "yes" ; then 7124 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7125 found="yes" 7126 fi 7127 fi 7128 7129 if test $found = "no" ; then 7130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7132 fi 7133 7134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7136 fi 7137 7138 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7139 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7141$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7142 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7143 if eval \${$cacheid+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148int i; 7149int 7150main () 7151{ 7152 7153 ; 7154 return 0; 7155} 7156_ACEOF 7157if ac_fn_c_try_link "$LINENO"; then : 7158 eval $cacheid=yes 7159else 7160 eval $cacheid=no 7161fi 7162rm -f core conftest.err conftest.$ac_objext \ 7163 conftest$ac_exeext conftest.$ac_ext 7164fi 7165 7166 7167 CFLAGS="$xorg_testset_save_CFLAGS" 7168 7169 eval supported=\$$cacheid 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7171$as_echo "$supported" >&6; } 7172 if test "$supported" = "yes" ; then 7173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7174 found="yes" 7175 fi 7176 fi 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192xorg_testset_save_CFLAGS="$CFLAGS" 7193 7194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203int i; 7204_ACEOF 7205if ac_fn_c_try_compile "$LINENO"; then : 7206 xorg_cv_cc_flag_unknown_warning_option=yes 7207else 7208 xorg_cv_cc_flag_unknown_warning_option=no 7209fi 7210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7211fi 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7215 CFLAGS="$xorg_testset_save_CFLAGS" 7216fi 7217 7218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7221 fi 7222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230int i; 7231_ACEOF 7232if ac_fn_c_try_compile "$LINENO"; then : 7233 xorg_cv_cc_flag_unused_command_line_argument=yes 7234else 7235 xorg_cv_cc_flag_unused_command_line_argument=no 7236fi 7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7238fi 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7242 CFLAGS="$xorg_testset_save_CFLAGS" 7243fi 7244 7245found="no" 7246 7247 if test $found = "no" ; then 7248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7250 fi 7251 7252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7254 fi 7255 7256 CFLAGS="$CFLAGS -Werror=nonnull" 7257 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7259$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7260 cacheid=xorg_cv_cc_flag__Werror_nonnull 7261 if eval \${$cacheid+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263else 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266int i; 7267int 7268main () 7269{ 7270 7271 ; 7272 return 0; 7273} 7274_ACEOF 7275if ac_fn_c_try_link "$LINENO"; then : 7276 eval $cacheid=yes 7277else 7278 eval $cacheid=no 7279fi 7280rm -f core conftest.err conftest.$ac_objext \ 7281 conftest$ac_exeext conftest.$ac_ext 7282fi 7283 7284 7285 CFLAGS="$xorg_testset_save_CFLAGS" 7286 7287 eval supported=\$$cacheid 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7289$as_echo "$supported" >&6; } 7290 if test "$supported" = "yes" ; then 7291 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7292 found="yes" 7293 fi 7294 fi 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310xorg_testset_save_CFLAGS="$CFLAGS" 7311 7312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7317 $as_echo_n "(cached) " >&6 7318else 7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320/* end confdefs.h. */ 7321int i; 7322_ACEOF 7323if ac_fn_c_try_compile "$LINENO"; then : 7324 xorg_cv_cc_flag_unknown_warning_option=yes 7325else 7326 xorg_cv_cc_flag_unknown_warning_option=no 7327fi 7328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7329fi 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7333 CFLAGS="$xorg_testset_save_CFLAGS" 7334fi 7335 7336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 fi 7340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348int i; 7349_ACEOF 7350if ac_fn_c_try_compile "$LINENO"; then : 7351 xorg_cv_cc_flag_unused_command_line_argument=yes 7352else 7353 xorg_cv_cc_flag_unused_command_line_argument=no 7354fi 7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7356fi 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7360 CFLAGS="$xorg_testset_save_CFLAGS" 7361fi 7362 7363found="no" 7364 7365 if test $found = "no" ; then 7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7368 fi 7369 7370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7372 fi 7373 7374 CFLAGS="$CFLAGS -Werror=init-self" 7375 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7377$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7378 cacheid=xorg_cv_cc_flag__Werror_init_self 7379 if eval \${$cacheid+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381else 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384int i; 7385int 7386main () 7387{ 7388 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO"; then : 7394 eval $cacheid=yes 7395else 7396 eval $cacheid=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext \ 7399 conftest$ac_exeext conftest.$ac_ext 7400fi 7401 7402 7403 CFLAGS="$xorg_testset_save_CFLAGS" 7404 7405 eval supported=\$$cacheid 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7407$as_echo "$supported" >&6; } 7408 if test "$supported" = "yes" ; then 7409 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7410 found="yes" 7411 fi 7412 fi 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428xorg_testset_save_CFLAGS="$CFLAGS" 7429 7430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439int i; 7440_ACEOF 7441if ac_fn_c_try_compile "$LINENO"; then : 7442 xorg_cv_cc_flag_unknown_warning_option=yes 7443else 7444 xorg_cv_cc_flag_unknown_warning_option=no 7445fi 7446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7447fi 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7451 CFLAGS="$xorg_testset_save_CFLAGS" 7452fi 7453 7454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7457 fi 7458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7462 $as_echo_n "(cached) " >&6 7463else 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466int i; 7467_ACEOF 7468if ac_fn_c_try_compile "$LINENO"; then : 7469 xorg_cv_cc_flag_unused_command_line_argument=yes 7470else 7471 xorg_cv_cc_flag_unused_command_line_argument=no 7472fi 7473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7478 CFLAGS="$xorg_testset_save_CFLAGS" 7479fi 7480 7481found="no" 7482 7483 if test $found = "no" ; then 7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7486 fi 7487 7488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7490 fi 7491 7492 CFLAGS="$CFLAGS -Werror=main" 7493 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7495$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7496 cacheid=xorg_cv_cc_flag__Werror_main 7497 if eval \${$cacheid+:} false; then : 7498 $as_echo_n "(cached) " >&6 7499else 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503int 7504main () 7505{ 7506 7507 ; 7508 return 0; 7509} 7510_ACEOF 7511if ac_fn_c_try_link "$LINENO"; then : 7512 eval $cacheid=yes 7513else 7514 eval $cacheid=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext \ 7517 conftest$ac_exeext conftest.$ac_ext 7518fi 7519 7520 7521 CFLAGS="$xorg_testset_save_CFLAGS" 7522 7523 eval supported=\$$cacheid 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7525$as_echo "$supported" >&6; } 7526 if test "$supported" = "yes" ; then 7527 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7528 found="yes" 7529 fi 7530 fi 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546xorg_testset_save_CFLAGS="$CFLAGS" 7547 7548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556/* end confdefs.h. */ 7557int i; 7558_ACEOF 7559if ac_fn_c_try_compile "$LINENO"; then : 7560 xorg_cv_cc_flag_unknown_warning_option=yes 7561else 7562 xorg_cv_cc_flag_unknown_warning_option=no 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7565fi 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7569 CFLAGS="$xorg_testset_save_CFLAGS" 7570fi 7571 7572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7575 fi 7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7583/* end confdefs.h. */ 7584int i; 7585_ACEOF 7586if ac_fn_c_try_compile "$LINENO"; then : 7587 xorg_cv_cc_flag_unused_command_line_argument=yes 7588else 7589 xorg_cv_cc_flag_unused_command_line_argument=no 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7596 CFLAGS="$xorg_testset_save_CFLAGS" 7597fi 7598 7599found="no" 7600 7601 if test $found = "no" ; then 7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7604 fi 7605 7606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7608 fi 7609 7610 CFLAGS="$CFLAGS -Werror=missing-braces" 7611 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7613$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7614 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7615 if eval \${$cacheid+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617else 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620int i; 7621int 7622main () 7623{ 7624 7625 ; 7626 return 0; 7627} 7628_ACEOF 7629if ac_fn_c_try_link "$LINENO"; then : 7630 eval $cacheid=yes 7631else 7632 eval $cacheid=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext \ 7635 conftest$ac_exeext conftest.$ac_ext 7636fi 7637 7638 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640 7641 eval supported=\$$cacheid 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7643$as_echo "$supported" >&6; } 7644 if test "$supported" = "yes" ; then 7645 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7646 found="yes" 7647 fi 7648 fi 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664xorg_testset_save_CFLAGS="$CFLAGS" 7665 7666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676_ACEOF 7677if ac_fn_c_try_compile "$LINENO"; then : 7678 xorg_cv_cc_flag_unknown_warning_option=yes 7679else 7680 xorg_cv_cc_flag_unknown_warning_option=no 7681fi 7682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7683fi 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7687 CFLAGS="$xorg_testset_save_CFLAGS" 7688fi 7689 7690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7693 fi 7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702int i; 7703_ACEOF 7704if ac_fn_c_try_compile "$LINENO"; then : 7705 xorg_cv_cc_flag_unused_command_line_argument=yes 7706else 7707 xorg_cv_cc_flag_unused_command_line_argument=no 7708fi 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7710fi 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7714 CFLAGS="$xorg_testset_save_CFLAGS" 7715fi 7716 7717found="no" 7718 7719 if test $found = "no" ; then 7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7722 fi 7723 7724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7726 fi 7727 7728 CFLAGS="$CFLAGS -Werror=sequence-point" 7729 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7731$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7732 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7733 if eval \${$cacheid+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738int i; 7739int 7740main () 7741{ 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 eval $cacheid=yes 7749else 7750 eval $cacheid=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext \ 7753 conftest$ac_exeext conftest.$ac_ext 7754fi 7755 7756 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758 7759 eval supported=\$$cacheid 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7761$as_echo "$supported" >&6; } 7762 if test "$supported" = "yes" ; then 7763 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7764 found="yes" 7765 fi 7766 fi 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782xorg_testset_save_CFLAGS="$CFLAGS" 7783 7784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793int i; 7794_ACEOF 7795if ac_fn_c_try_compile "$LINENO"; then : 7796 xorg_cv_cc_flag_unknown_warning_option=yes 7797else 7798 xorg_cv_cc_flag_unknown_warning_option=no 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7801fi 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7805 CFLAGS="$xorg_testset_save_CFLAGS" 7806fi 7807 7808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 fi 7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO"; then : 7823 xorg_cv_cc_flag_unused_command_line_argument=yes 7824else 7825 xorg_cv_cc_flag_unused_command_line_argument=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7832 CFLAGS="$xorg_testset_save_CFLAGS" 7833fi 7834 7835found="no" 7836 7837 if test $found = "no" ; then 7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 fi 7841 7842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7844 fi 7845 7846 CFLAGS="$CFLAGS -Werror=return-type" 7847 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7849$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7850 cacheid=xorg_cv_cc_flag__Werror_return_type 7851 if eval \${$cacheid+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855/* end confdefs.h. */ 7856int i; 7857int 7858main () 7859{ 7860 7861 ; 7862 return 0; 7863} 7864_ACEOF 7865if ac_fn_c_try_link "$LINENO"; then : 7866 eval $cacheid=yes 7867else 7868 eval $cacheid=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext \ 7871 conftest$ac_exeext conftest.$ac_ext 7872fi 7873 7874 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876 7877 eval supported=\$$cacheid 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7879$as_echo "$supported" >&6; } 7880 if test "$supported" = "yes" ; then 7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7882 found="yes" 7883 fi 7884 fi 7885 7886 if test $found = "no" ; then 7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7889 fi 7890 7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7893 fi 7894 7895 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7896 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7898$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7899 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7900 if eval \${$cacheid+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904/* end confdefs.h. */ 7905int i; 7906int 7907main () 7908{ 7909 7910 ; 7911 return 0; 7912} 7913_ACEOF 7914if ac_fn_c_try_link "$LINENO"; then : 7915 eval $cacheid=yes 7916else 7917 eval $cacheid=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext \ 7920 conftest$ac_exeext conftest.$ac_ext 7921fi 7922 7923 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925 7926 eval supported=\$$cacheid 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7928$as_echo "$supported" >&6; } 7929 if test "$supported" = "yes" ; then 7930 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7931 found="yes" 7932 fi 7933 fi 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949xorg_testset_save_CFLAGS="$CFLAGS" 7950 7951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7959/* end confdefs.h. */ 7960int i; 7961_ACEOF 7962if ac_fn_c_try_compile "$LINENO"; then : 7963 xorg_cv_cc_flag_unknown_warning_option=yes 7964else 7965 xorg_cv_cc_flag_unknown_warning_option=no 7966fi 7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7968fi 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7972 CFLAGS="$xorg_testset_save_CFLAGS" 7973fi 7974 7975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7983 $as_echo_n "(cached) " >&6 7984else 7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986/* end confdefs.h. */ 7987int i; 7988_ACEOF 7989if ac_fn_c_try_compile "$LINENO"; then : 7990 xorg_cv_cc_flag_unused_command_line_argument=yes 7991else 7992 xorg_cv_cc_flag_unused_command_line_argument=no 7993fi 7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7995fi 7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7999 CFLAGS="$xorg_testset_save_CFLAGS" 8000fi 8001 8002found="no" 8003 8004 if test $found = "no" ; then 8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8007 fi 8008 8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8011 fi 8012 8013 CFLAGS="$CFLAGS -Werror=trigraphs" 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8016$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8017 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8018 if eval \${$cacheid+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023int i; 8024int 8025main () 8026{ 8027 8028 ; 8029 return 0; 8030} 8031_ACEOF 8032if ac_fn_c_try_link "$LINENO"; then : 8033 eval $cacheid=yes 8034else 8035 eval $cacheid=no 8036fi 8037rm -f core conftest.err conftest.$ac_objext \ 8038 conftest$ac_exeext conftest.$ac_ext 8039fi 8040 8041 8042 CFLAGS="$xorg_testset_save_CFLAGS" 8043 8044 eval supported=\$$cacheid 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8046$as_echo "$supported" >&6; } 8047 if test "$supported" = "yes" ; then 8048 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8049 found="yes" 8050 fi 8051 fi 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067xorg_testset_save_CFLAGS="$CFLAGS" 8068 8069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078int i; 8079_ACEOF 8080if ac_fn_c_try_compile "$LINENO"; then : 8081 xorg_cv_cc_flag_unknown_warning_option=yes 8082else 8083 xorg_cv_cc_flag_unknown_warning_option=no 8084fi 8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8086fi 8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8090 CFLAGS="$xorg_testset_save_CFLAGS" 8091fi 8092 8093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8096 fi 8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105int i; 8106_ACEOF 8107if ac_fn_c_try_compile "$LINENO"; then : 8108 xorg_cv_cc_flag_unused_command_line_argument=yes 8109else 8110 xorg_cv_cc_flag_unused_command_line_argument=no 8111fi 8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8113fi 8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118fi 8119 8120found="no" 8121 8122 if test $found = "no" ; then 8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8125 fi 8126 8127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8129 fi 8130 8131 CFLAGS="$CFLAGS -Werror=array-bounds" 8132 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8134$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8135 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8136 if eval \${$cacheid+:} false; then : 8137 $as_echo_n "(cached) " >&6 8138else 8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8140/* end confdefs.h. */ 8141int i; 8142int 8143main () 8144{ 8145 8146 ; 8147 return 0; 8148} 8149_ACEOF 8150if ac_fn_c_try_link "$LINENO"; then : 8151 eval $cacheid=yes 8152else 8153 eval $cacheid=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext \ 8156 conftest$ac_exeext conftest.$ac_ext 8157fi 8158 8159 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161 8162 eval supported=\$$cacheid 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8164$as_echo "$supported" >&6; } 8165 if test "$supported" = "yes" ; then 8166 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8167 found="yes" 8168 fi 8169 fi 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185xorg_testset_save_CFLAGS="$CFLAGS" 8186 8187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8192 $as_echo_n "(cached) " >&6 8193else 8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196int i; 8197_ACEOF 8198if ac_fn_c_try_compile "$LINENO"; then : 8199 xorg_cv_cc_flag_unknown_warning_option=yes 8200else 8201 xorg_cv_cc_flag_unknown_warning_option=no 8202fi 8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8204fi 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8208 CFLAGS="$xorg_testset_save_CFLAGS" 8209fi 8210 8211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8214 fi 8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int i; 8224_ACEOF 8225if ac_fn_c_try_compile "$LINENO"; then : 8226 xorg_cv_cc_flag_unused_command_line_argument=yes 8227else 8228 xorg_cv_cc_flag_unused_command_line_argument=no 8229fi 8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8235 CFLAGS="$xorg_testset_save_CFLAGS" 8236fi 8237 8238found="no" 8239 8240 if test $found = "no" ; then 8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 fi 8244 8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 fi 8248 8249 CFLAGS="$CFLAGS -Werror=write-strings" 8250 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8252$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8253 cacheid=xorg_cv_cc_flag__Werror_write_strings 8254 if eval \${$cacheid+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259int i; 8260int 8261main () 8262{ 8263 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268if ac_fn_c_try_link "$LINENO"; then : 8269 eval $cacheid=yes 8270else 8271 eval $cacheid=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275fi 8276 8277 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279 8280 eval supported=\$$cacheid 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8282$as_echo "$supported" >&6; } 8283 if test "$supported" = "yes" ; then 8284 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8285 found="yes" 8286 fi 8287 fi 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303xorg_testset_save_CFLAGS="$CFLAGS" 8304 8305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315_ACEOF 8316if ac_fn_c_try_compile "$LINENO"; then : 8317 xorg_cv_cc_flag_unknown_warning_option=yes 8318else 8319 xorg_cv_cc_flag_unknown_warning_option=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8326 CFLAGS="$xorg_testset_save_CFLAGS" 8327fi 8328 8329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342_ACEOF 8343if ac_fn_c_try_compile "$LINENO"; then : 8344 xorg_cv_cc_flag_unused_command_line_argument=yes 8345else 8346 xorg_cv_cc_flag_unused_command_line_argument=no 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349fi 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354fi 8355 8356found="no" 8357 8358 if test $found = "no" ; then 8359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8361 fi 8362 8363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8365 fi 8366 8367 CFLAGS="$CFLAGS -Werror=address" 8368 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8370$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8371 cacheid=xorg_cv_cc_flag__Werror_address 8372 if eval \${$cacheid+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377int i; 8378int 8379main () 8380{ 8381 8382 ; 8383 return 0; 8384} 8385_ACEOF 8386if ac_fn_c_try_link "$LINENO"; then : 8387 eval $cacheid=yes 8388else 8389 eval $cacheid=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext \ 8392 conftest$ac_exeext conftest.$ac_ext 8393fi 8394 8395 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397 8398 eval supported=\$$cacheid 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8400$as_echo "$supported" >&6; } 8401 if test "$supported" = "yes" ; then 8402 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8403 found="yes" 8404 fi 8405 fi 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421xorg_testset_save_CFLAGS="$CFLAGS" 8422 8423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432int i; 8433_ACEOF 8434if ac_fn_c_try_compile "$LINENO"; then : 8435 xorg_cv_cc_flag_unknown_warning_option=yes 8436else 8437 xorg_cv_cc_flag_unknown_warning_option=no 8438fi 8439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8440fi 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8444 CFLAGS="$xorg_testset_save_CFLAGS" 8445fi 8446 8447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8450 fi 8451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459int i; 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO"; then : 8462 xorg_cv_cc_flag_unused_command_line_argument=yes 8463else 8464 xorg_cv_cc_flag_unused_command_line_argument=no 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472fi 8473 8474found="no" 8475 8476 if test $found = "no" ; then 8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 fi 8480 8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8483 fi 8484 8485 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8486 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8488$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8489 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8490 if eval \${$cacheid+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8494/* end confdefs.h. */ 8495int i; 8496int 8497main () 8498{ 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504if ac_fn_c_try_link "$LINENO"; then : 8505 eval $cacheid=yes 8506else 8507 eval $cacheid=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext \ 8510 conftest$ac_exeext conftest.$ac_ext 8511fi 8512 8513 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515 8516 eval supported=\$$cacheid 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8518$as_echo "$supported" >&6; } 8519 if test "$supported" = "yes" ; then 8520 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8521 found="yes" 8522 fi 8523 fi 8524 8525 if test $found = "no" ; then 8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8528 fi 8529 8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532 fi 8533 8534 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8535 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8537$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8538 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8539 if eval \${$cacheid+:} false; then : 8540 $as_echo_n "(cached) " >&6 8541else 8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8543/* end confdefs.h. */ 8544int i; 8545int 8546main () 8547{ 8548 8549 ; 8550 return 0; 8551} 8552_ACEOF 8553if ac_fn_c_try_link "$LINENO"; then : 8554 eval $cacheid=yes 8555else 8556 eval $cacheid=no 8557fi 8558rm -f core conftest.err conftest.$ac_objext \ 8559 conftest$ac_exeext conftest.$ac_ext 8560fi 8561 8562 8563 CFLAGS="$xorg_testset_save_CFLAGS" 8564 8565 eval supported=\$$cacheid 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8567$as_echo "$supported" >&6; } 8568 if test "$supported" = "yes" ; then 8569 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8570 found="yes" 8571 fi 8572 fi 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588xorg_testset_save_CFLAGS="$CFLAGS" 8589 8590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599int i; 8600_ACEOF 8601if ac_fn_c_try_compile "$LINENO"; then : 8602 xorg_cv_cc_flag_unknown_warning_option=yes 8603else 8604 xorg_cv_cc_flag_unknown_warning_option=no 8605fi 8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8607fi 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8611 CFLAGS="$xorg_testset_save_CFLAGS" 8612fi 8613 8614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8617 fi 8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8622 $as_echo_n "(cached) " >&6 8623else 8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8625/* end confdefs.h. */ 8626int i; 8627_ACEOF 8628if ac_fn_c_try_compile "$LINENO"; then : 8629 xorg_cv_cc_flag_unused_command_line_argument=yes 8630else 8631 xorg_cv_cc_flag_unused_command_line_argument=no 8632fi 8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8634fi 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8638 CFLAGS="$xorg_testset_save_CFLAGS" 8639fi 8640 8641found="no" 8642 8643 if test $found = "no" ; then 8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646 fi 8647 8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 fi 8651 8652 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8653 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8655$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8656 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8657 if eval \${$cacheid+:} false; then : 8658 $as_echo_n "(cached) " >&6 8659else 8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8661/* end confdefs.h. */ 8662int i; 8663int 8664main () 8665{ 8666 8667 ; 8668 return 0; 8669} 8670_ACEOF 8671if ac_fn_c_try_link "$LINENO"; then : 8672 eval $cacheid=yes 8673else 8674 eval $cacheid=no 8675fi 8676rm -f core conftest.err conftest.$ac_objext \ 8677 conftest$ac_exeext conftest.$ac_ext 8678fi 8679 8680 8681 CFLAGS="$xorg_testset_save_CFLAGS" 8682 8683 eval supported=\$$cacheid 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8685$as_echo "$supported" >&6; } 8686 if test "$supported" = "yes" ; then 8687 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8688 found="yes" 8689 fi 8690 fi 8691 8692 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8693else 8694{ $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 8695$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;} 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709xorg_testset_save_CFLAGS="$CFLAGS" 8710 8711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719/* end confdefs.h. */ 8720int i; 8721_ACEOF 8722if ac_fn_c_try_compile "$LINENO"; then : 8723 xorg_cv_cc_flag_unknown_warning_option=yes 8724else 8725 xorg_cv_cc_flag_unknown_warning_option=no 8726fi 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8728fi 8729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8732 CFLAGS="$xorg_testset_save_CFLAGS" 8733fi 8734 8735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8738 fi 8739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746/* end confdefs.h. */ 8747int i; 8748_ACEOF 8749if ac_fn_c_try_compile "$LINENO"; then : 8750 xorg_cv_cc_flag_unused_command_line_argument=yes 8751else 8752 xorg_cv_cc_flag_unused_command_line_argument=no 8753fi 8754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8755fi 8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8759 CFLAGS="$xorg_testset_save_CFLAGS" 8760fi 8761 8762found="no" 8763 8764 if test $found = "no" ; then 8765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8767 fi 8768 8769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8771 fi 8772 8773 CFLAGS="$CFLAGS -Wimplicit" 8774 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8776$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8777 cacheid=xorg_cv_cc_flag__Wimplicit 8778 if eval \${$cacheid+:} false; then : 8779 $as_echo_n "(cached) " >&6 8780else 8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783int i; 8784int 8785main () 8786{ 8787 8788 ; 8789 return 0; 8790} 8791_ACEOF 8792if ac_fn_c_try_link "$LINENO"; then : 8793 eval $cacheid=yes 8794else 8795 eval $cacheid=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext \ 8798 conftest$ac_exeext conftest.$ac_ext 8799fi 8800 8801 8802 CFLAGS="$xorg_testset_save_CFLAGS" 8803 8804 eval supported=\$$cacheid 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8806$as_echo "$supported" >&6; } 8807 if test "$supported" = "yes" ; then 8808 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8809 found="yes" 8810 fi 8811 fi 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827xorg_testset_save_CFLAGS="$CFLAGS" 8828 8829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838int i; 8839_ACEOF 8840if ac_fn_c_try_compile "$LINENO"; then : 8841 xorg_cv_cc_flag_unknown_warning_option=yes 8842else 8843 xorg_cv_cc_flag_unknown_warning_option=no 8844fi 8845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8846fi 8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8850 CFLAGS="$xorg_testset_save_CFLAGS" 8851fi 8852 8853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 fi 8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865int i; 8866_ACEOF 8867if ac_fn_c_try_compile "$LINENO"; then : 8868 xorg_cv_cc_flag_unused_command_line_argument=yes 8869else 8870 xorg_cv_cc_flag_unused_command_line_argument=no 8871fi 8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8873fi 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8877 CFLAGS="$xorg_testset_save_CFLAGS" 8878fi 8879 8880found="no" 8881 8882 if test $found = "no" ; then 8883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8885 fi 8886 8887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8889 fi 8890 8891 CFLAGS="$CFLAGS -Wnonnull" 8892 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8894$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8895 cacheid=xorg_cv_cc_flag__Wnonnull 8896 if eval \${$cacheid+:} false; then : 8897 $as_echo_n "(cached) " >&6 8898else 8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8900/* end confdefs.h. */ 8901int i; 8902int 8903main () 8904{ 8905 8906 ; 8907 return 0; 8908} 8909_ACEOF 8910if ac_fn_c_try_link "$LINENO"; then : 8911 eval $cacheid=yes 8912else 8913 eval $cacheid=no 8914fi 8915rm -f core conftest.err conftest.$ac_objext \ 8916 conftest$ac_exeext conftest.$ac_ext 8917fi 8918 8919 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921 8922 eval supported=\$$cacheid 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8924$as_echo "$supported" >&6; } 8925 if test "$supported" = "yes" ; then 8926 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8927 found="yes" 8928 fi 8929 fi 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945xorg_testset_save_CFLAGS="$CFLAGS" 8946 8947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953else 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957_ACEOF 8958if ac_fn_c_try_compile "$LINENO"; then : 8959 xorg_cv_cc_flag_unknown_warning_option=yes 8960else 8961 xorg_cv_cc_flag_unknown_warning_option=no 8962fi 8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8964fi 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8968 CFLAGS="$xorg_testset_save_CFLAGS" 8969fi 8970 8971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 fi 8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8979 $as_echo_n "(cached) " >&6 8980else 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983int i; 8984_ACEOF 8985if ac_fn_c_try_compile "$LINENO"; then : 8986 xorg_cv_cc_flag_unused_command_line_argument=yes 8987else 8988 xorg_cv_cc_flag_unused_command_line_argument=no 8989fi 8990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8991fi 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996fi 8997 8998found="no" 8999 9000 if test $found = "no" ; then 9001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9003 fi 9004 9005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9007 fi 9008 9009 CFLAGS="$CFLAGS -Winit-self" 9010 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9012$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9013 cacheid=xorg_cv_cc_flag__Winit_self 9014 if eval \${$cacheid+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9018/* end confdefs.h. */ 9019int i; 9020int 9021main () 9022{ 9023 9024 ; 9025 return 0; 9026} 9027_ACEOF 9028if ac_fn_c_try_link "$LINENO"; then : 9029 eval $cacheid=yes 9030else 9031 eval $cacheid=no 9032fi 9033rm -f core conftest.err conftest.$ac_objext \ 9034 conftest$ac_exeext conftest.$ac_ext 9035fi 9036 9037 9038 CFLAGS="$xorg_testset_save_CFLAGS" 9039 9040 eval supported=\$$cacheid 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9042$as_echo "$supported" >&6; } 9043 if test "$supported" = "yes" ; then 9044 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9045 found="yes" 9046 fi 9047 fi 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063xorg_testset_save_CFLAGS="$CFLAGS" 9064 9065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9070 $as_echo_n "(cached) " >&6 9071else 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074int i; 9075_ACEOF 9076if ac_fn_c_try_compile "$LINENO"; then : 9077 xorg_cv_cc_flag_unknown_warning_option=yes 9078else 9079 xorg_cv_cc_flag_unknown_warning_option=no 9080fi 9081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9082fi 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9086 CFLAGS="$xorg_testset_save_CFLAGS" 9087fi 9088 9089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 fi 9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100/* end confdefs.h. */ 9101int i; 9102_ACEOF 9103if ac_fn_c_try_compile "$LINENO"; then : 9104 xorg_cv_cc_flag_unused_command_line_argument=yes 9105else 9106 xorg_cv_cc_flag_unused_command_line_argument=no 9107fi 9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9109fi 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9113 CFLAGS="$xorg_testset_save_CFLAGS" 9114fi 9115 9116found="no" 9117 9118 if test $found = "no" ; then 9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9121 fi 9122 9123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9125 fi 9126 9127 CFLAGS="$CFLAGS -Wmain" 9128 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9130$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9131 cacheid=xorg_cv_cc_flag__Wmain 9132 if eval \${$cacheid+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9136/* end confdefs.h. */ 9137int i; 9138int 9139main () 9140{ 9141 9142 ; 9143 return 0; 9144} 9145_ACEOF 9146if ac_fn_c_try_link "$LINENO"; then : 9147 eval $cacheid=yes 9148else 9149 eval $cacheid=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext \ 9152 conftest$ac_exeext conftest.$ac_ext 9153fi 9154 9155 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157 9158 eval supported=\$$cacheid 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9160$as_echo "$supported" >&6; } 9161 if test "$supported" = "yes" ; then 9162 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9163 found="yes" 9164 fi 9165 fi 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181xorg_testset_save_CFLAGS="$CFLAGS" 9182 9183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9191/* end confdefs.h. */ 9192int i; 9193_ACEOF 9194if ac_fn_c_try_compile "$LINENO"; then : 9195 xorg_cv_cc_flag_unknown_warning_option=yes 9196else 9197 xorg_cv_cc_flag_unknown_warning_option=no 9198fi 9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9200fi 9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9204 CFLAGS="$xorg_testset_save_CFLAGS" 9205fi 9206 9207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 fi 9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220_ACEOF 9221if ac_fn_c_try_compile "$LINENO"; then : 9222 xorg_cv_cc_flag_unused_command_line_argument=yes 9223else 9224 xorg_cv_cc_flag_unused_command_line_argument=no 9225fi 9226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9227fi 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9231 CFLAGS="$xorg_testset_save_CFLAGS" 9232fi 9233 9234found="no" 9235 9236 if test $found = "no" ; then 9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9239 fi 9240 9241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9243 fi 9244 9245 CFLAGS="$CFLAGS -Wmissing-braces" 9246 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9248$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9249 cacheid=xorg_cv_cc_flag__Wmissing_braces 9250 if eval \${$cacheid+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255int i; 9256int 9257main () 9258{ 9259 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264if ac_fn_c_try_link "$LINENO"; then : 9265 eval $cacheid=yes 9266else 9267 eval $cacheid=no 9268fi 9269rm -f core conftest.err conftest.$ac_objext \ 9270 conftest$ac_exeext conftest.$ac_ext 9271fi 9272 9273 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275 9276 eval supported=\$$cacheid 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9278$as_echo "$supported" >&6; } 9279 if test "$supported" = "yes" ; then 9280 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9281 found="yes" 9282 fi 9283 fi 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299xorg_testset_save_CFLAGS="$CFLAGS" 9300 9301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9306 $as_echo_n "(cached) " >&6 9307else 9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309/* end confdefs.h. */ 9310int i; 9311_ACEOF 9312if ac_fn_c_try_compile "$LINENO"; then : 9313 xorg_cv_cc_flag_unknown_warning_option=yes 9314else 9315 xorg_cv_cc_flag_unknown_warning_option=no 9316fi 9317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9318fi 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9322 CFLAGS="$xorg_testset_save_CFLAGS" 9323fi 9324 9325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9328 fi 9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9336/* end confdefs.h. */ 9337int i; 9338_ACEOF 9339if ac_fn_c_try_compile "$LINENO"; then : 9340 xorg_cv_cc_flag_unused_command_line_argument=yes 9341else 9342 xorg_cv_cc_flag_unused_command_line_argument=no 9343fi 9344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9345fi 9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9349 CFLAGS="$xorg_testset_save_CFLAGS" 9350fi 9351 9352found="no" 9353 9354 if test $found = "no" ; then 9355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9357 fi 9358 9359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9361 fi 9362 9363 CFLAGS="$CFLAGS -Wsequence-point" 9364 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9366$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9367 cacheid=xorg_cv_cc_flag__Wsequence_point 9368 if eval \${$cacheid+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373int i; 9374int 9375main () 9376{ 9377 9378 ; 9379 return 0; 9380} 9381_ACEOF 9382if ac_fn_c_try_link "$LINENO"; then : 9383 eval $cacheid=yes 9384else 9385 eval $cacheid=no 9386fi 9387rm -f core conftest.err conftest.$ac_objext \ 9388 conftest$ac_exeext conftest.$ac_ext 9389fi 9390 9391 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393 9394 eval supported=\$$cacheid 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9396$as_echo "$supported" >&6; } 9397 if test "$supported" = "yes" ; then 9398 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9399 found="yes" 9400 fi 9401 fi 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417xorg_testset_save_CFLAGS="$CFLAGS" 9418 9419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428int i; 9429_ACEOF 9430if ac_fn_c_try_compile "$LINENO"; then : 9431 xorg_cv_cc_flag_unknown_warning_option=yes 9432else 9433 xorg_cv_cc_flag_unknown_warning_option=no 9434fi 9435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9436fi 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9440 CFLAGS="$xorg_testset_save_CFLAGS" 9441fi 9442 9443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9446 fi 9447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9451 $as_echo_n "(cached) " >&6 9452else 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454/* end confdefs.h. */ 9455int i; 9456_ACEOF 9457if ac_fn_c_try_compile "$LINENO"; then : 9458 xorg_cv_cc_flag_unused_command_line_argument=yes 9459else 9460 xorg_cv_cc_flag_unused_command_line_argument=no 9461fi 9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9463fi 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9467 CFLAGS="$xorg_testset_save_CFLAGS" 9468fi 9469 9470found="no" 9471 9472 if test $found = "no" ; then 9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9475 fi 9476 9477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9479 fi 9480 9481 CFLAGS="$CFLAGS -Wreturn-type" 9482 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9484$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9485 cacheid=xorg_cv_cc_flag__Wreturn_type 9486 if eval \${$cacheid+:} false; then : 9487 $as_echo_n "(cached) " >&6 9488else 9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491int i; 9492int 9493main () 9494{ 9495 9496 ; 9497 return 0; 9498} 9499_ACEOF 9500if ac_fn_c_try_link "$LINENO"; then : 9501 eval $cacheid=yes 9502else 9503 eval $cacheid=no 9504fi 9505rm -f core conftest.err conftest.$ac_objext \ 9506 conftest$ac_exeext conftest.$ac_ext 9507fi 9508 9509 9510 CFLAGS="$xorg_testset_save_CFLAGS" 9511 9512 eval supported=\$$cacheid 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9514$as_echo "$supported" >&6; } 9515 if test "$supported" = "yes" ; then 9516 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9517 found="yes" 9518 fi 9519 fi 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535xorg_testset_save_CFLAGS="$CFLAGS" 9536 9537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546int i; 9547_ACEOF 9548if ac_fn_c_try_compile "$LINENO"; then : 9549 xorg_cv_cc_flag_unknown_warning_option=yes 9550else 9551 xorg_cv_cc_flag_unknown_warning_option=no 9552fi 9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9554fi 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9558 CFLAGS="$xorg_testset_save_CFLAGS" 9559fi 9560 9561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9564 fi 9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9569 $as_echo_n "(cached) " >&6 9570else 9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9572/* end confdefs.h. */ 9573int i; 9574_ACEOF 9575if ac_fn_c_try_compile "$LINENO"; then : 9576 xorg_cv_cc_flag_unused_command_line_argument=yes 9577else 9578 xorg_cv_cc_flag_unused_command_line_argument=no 9579fi 9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9581fi 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9585 CFLAGS="$xorg_testset_save_CFLAGS" 9586fi 9587 9588found="no" 9589 9590 if test $found = "no" ; then 9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9593 fi 9594 9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9597 fi 9598 9599 CFLAGS="$CFLAGS -Wtrigraphs" 9600 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9602$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9603 cacheid=xorg_cv_cc_flag__Wtrigraphs 9604 if eval \${$cacheid+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610int 9611main () 9612{ 9613 9614 ; 9615 return 0; 9616} 9617_ACEOF 9618if ac_fn_c_try_link "$LINENO"; then : 9619 eval $cacheid=yes 9620else 9621 eval $cacheid=no 9622fi 9623rm -f core conftest.err conftest.$ac_objext \ 9624 conftest$ac_exeext conftest.$ac_ext 9625fi 9626 9627 9628 CFLAGS="$xorg_testset_save_CFLAGS" 9629 9630 eval supported=\$$cacheid 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9632$as_echo "$supported" >&6; } 9633 if test "$supported" = "yes" ; then 9634 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9635 found="yes" 9636 fi 9637 fi 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653xorg_testset_save_CFLAGS="$CFLAGS" 9654 9655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661else 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665_ACEOF 9666if ac_fn_c_try_compile "$LINENO"; then : 9667 xorg_cv_cc_flag_unknown_warning_option=yes 9668else 9669 xorg_cv_cc_flag_unknown_warning_option=no 9670fi 9671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9672fi 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9676 CFLAGS="$xorg_testset_save_CFLAGS" 9677fi 9678 9679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9682 fi 9683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9687 $as_echo_n "(cached) " >&6 9688else 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691int i; 9692_ACEOF 9693if ac_fn_c_try_compile "$LINENO"; then : 9694 xorg_cv_cc_flag_unused_command_line_argument=yes 9695else 9696 xorg_cv_cc_flag_unused_command_line_argument=no 9697fi 9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9699fi 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704fi 9705 9706found="no" 9707 9708 if test $found = "no" ; then 9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9711 fi 9712 9713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9715 fi 9716 9717 CFLAGS="$CFLAGS -Warray-bounds" 9718 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9720$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9721 cacheid=xorg_cv_cc_flag__Warray_bounds 9722 if eval \${$cacheid+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727int i; 9728int 9729main () 9730{ 9731 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736if ac_fn_c_try_link "$LINENO"; then : 9737 eval $cacheid=yes 9738else 9739 eval $cacheid=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext \ 9742 conftest$ac_exeext conftest.$ac_ext 9743fi 9744 9745 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747 9748 eval supported=\$$cacheid 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9750$as_echo "$supported" >&6; } 9751 if test "$supported" = "yes" ; then 9752 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9753 found="yes" 9754 fi 9755 fi 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771xorg_testset_save_CFLAGS="$CFLAGS" 9772 9773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9778 $as_echo_n "(cached) " >&6 9779else 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782int i; 9783_ACEOF 9784if ac_fn_c_try_compile "$LINENO"; then : 9785 xorg_cv_cc_flag_unknown_warning_option=yes 9786else 9787 xorg_cv_cc_flag_unknown_warning_option=no 9788fi 9789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9790fi 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9794 CFLAGS="$xorg_testset_save_CFLAGS" 9795fi 9796 9797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9800 fi 9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9808/* end confdefs.h. */ 9809int i; 9810_ACEOF 9811if ac_fn_c_try_compile "$LINENO"; then : 9812 xorg_cv_cc_flag_unused_command_line_argument=yes 9813else 9814 xorg_cv_cc_flag_unused_command_line_argument=no 9815fi 9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9817fi 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9821 CFLAGS="$xorg_testset_save_CFLAGS" 9822fi 9823 9824found="no" 9825 9826 if test $found = "no" ; then 9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9829 fi 9830 9831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9833 fi 9834 9835 CFLAGS="$CFLAGS -Wwrite-strings" 9836 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9838$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9839 cacheid=xorg_cv_cc_flag__Wwrite_strings 9840 if eval \${$cacheid+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842else 9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9844/* end confdefs.h. */ 9845int i; 9846int 9847main () 9848{ 9849 9850 ; 9851 return 0; 9852} 9853_ACEOF 9854if ac_fn_c_try_link "$LINENO"; then : 9855 eval $cacheid=yes 9856else 9857 eval $cacheid=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext \ 9860 conftest$ac_exeext conftest.$ac_ext 9861fi 9862 9863 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865 9866 eval supported=\$$cacheid 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9868$as_echo "$supported" >&6; } 9869 if test "$supported" = "yes" ; then 9870 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9871 found="yes" 9872 fi 9873 fi 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889xorg_testset_save_CFLAGS="$CFLAGS" 9890 9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900int i; 9901_ACEOF 9902if ac_fn_c_try_compile "$LINENO"; then : 9903 xorg_cv_cc_flag_unknown_warning_option=yes 9904else 9905 xorg_cv_cc_flag_unknown_warning_option=no 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9908fi 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913fi 9914 9915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9918 fi 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927int i; 9928_ACEOF 9929if ac_fn_c_try_compile "$LINENO"; then : 9930 xorg_cv_cc_flag_unused_command_line_argument=yes 9931else 9932 xorg_cv_cc_flag_unused_command_line_argument=no 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942found="no" 9943 9944 if test $found = "no" ; then 9945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9947 fi 9948 9949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9951 fi 9952 9953 CFLAGS="$CFLAGS -Waddress" 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9956$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9957 cacheid=xorg_cv_cc_flag__Waddress 9958 if eval \${$cacheid+:} false; then : 9959 $as_echo_n "(cached) " >&6 9960else 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964int 9965main () 9966{ 9967 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_link "$LINENO"; then : 9973 eval $cacheid=yes 9974else 9975 eval $cacheid=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979fi 9980 9981 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983 9984 eval supported=\$$cacheid 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9986$as_echo "$supported" >&6; } 9987 if test "$supported" = "yes" ; then 9988 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9989 found="yes" 9990 fi 9991 fi 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007xorg_testset_save_CFLAGS="$CFLAGS" 10008 10009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018int i; 10019_ACEOF 10020if ac_fn_c_try_compile "$LINENO"; then : 10021 xorg_cv_cc_flag_unknown_warning_option=yes 10022else 10023 xorg_cv_cc_flag_unknown_warning_option=no 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10026fi 10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10041 $as_echo_n "(cached) " >&6 10042else 10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044/* end confdefs.h. */ 10045int i; 10046_ACEOF 10047if ac_fn_c_try_compile "$LINENO"; then : 10048 xorg_cv_cc_flag_unused_command_line_argument=yes 10049else 10050 xorg_cv_cc_flag_unused_command_line_argument=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058fi 10059 10060found="no" 10061 10062 if test $found = "no" ; then 10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10065 fi 10066 10067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10069 fi 10070 10071 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10072 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10074$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10075 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10076 if eval \${$cacheid+:} false; then : 10077 $as_echo_n "(cached) " >&6 10078else 10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10080/* end confdefs.h. */ 10081int i; 10082int 10083main () 10084{ 10085 10086 ; 10087 return 0; 10088} 10089_ACEOF 10090if ac_fn_c_try_link "$LINENO"; then : 10091 eval $cacheid=yes 10092else 10093 eval $cacheid=no 10094fi 10095rm -f core conftest.err conftest.$ac_objext \ 10096 conftest$ac_exeext conftest.$ac_ext 10097fi 10098 10099 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101 10102 eval supported=\$$cacheid 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10104$as_echo "$supported" >&6; } 10105 if test "$supported" = "yes" ; then 10106 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10107 found="yes" 10108 fi 10109 fi 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125xorg_testset_save_CFLAGS="$CFLAGS" 10126 10127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136int i; 10137_ACEOF 10138if ac_fn_c_try_compile "$LINENO"; then : 10139 xorg_cv_cc_flag_unknown_warning_option=yes 10140else 10141 xorg_cv_cc_flag_unknown_warning_option=no 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10144fi 10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10148 CFLAGS="$xorg_testset_save_CFLAGS" 10149fi 10150 10151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10154 fi 10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164_ACEOF 10165if ac_fn_c_try_compile "$LINENO"; then : 10166 xorg_cv_cc_flag_unused_command_line_argument=yes 10167else 10168 xorg_cv_cc_flag_unused_command_line_argument=no 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10171fi 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10175 CFLAGS="$xorg_testset_save_CFLAGS" 10176fi 10177 10178found="no" 10179 10180 if test $found = "no" ; then 10181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10183 fi 10184 10185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10187 fi 10188 10189 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10190 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10192$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10193 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10194 if eval \${$cacheid+:} false; then : 10195 $as_echo_n "(cached) " >&6 10196else 10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10198/* end confdefs.h. */ 10199int i; 10200int 10201main () 10202{ 10203 10204 ; 10205 return 0; 10206} 10207_ACEOF 10208if ac_fn_c_try_link "$LINENO"; then : 10209 eval $cacheid=yes 10210else 10211 eval $cacheid=no 10212fi 10213rm -f core conftest.err conftest.$ac_objext \ 10214 conftest$ac_exeext conftest.$ac_ext 10215fi 10216 10217 10218 CFLAGS="$xorg_testset_save_CFLAGS" 10219 10220 eval supported=\$$cacheid 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10222$as_echo "$supported" >&6; } 10223 if test "$supported" = "yes" ; then 10224 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10225 found="yes" 10226 fi 10227 fi 10228 10229 10230fi 10231 10232 10233 10234 10235 10236 10237 10238 CWARNFLAGS="$BASE_CFLAGS" 10239 if test "x$GCC" = xyes ; then 10240 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10241 fi 10242 10243 10244 10245 10246 10247 10248 10249 10250# Check whether --enable-strict-compilation was given. 10251if test "${enable_strict_compilation+set}" = set; then : 10252 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10253else 10254 STRICT_COMPILE=no 10255fi 10256 10257 10258 10259 10260 10261 10262STRICT_CFLAGS="" 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276xorg_testset_save_CFLAGS="$CFLAGS" 10277 10278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288_ACEOF 10289if ac_fn_c_try_compile "$LINENO"; then : 10290 xorg_cv_cc_flag_unknown_warning_option=yes 10291else 10292 xorg_cv_cc_flag_unknown_warning_option=no 10293fi 10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10295fi 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10299 CFLAGS="$xorg_testset_save_CFLAGS" 10300fi 10301 10302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311else 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314int i; 10315_ACEOF 10316if ac_fn_c_try_compile "$LINENO"; then : 10317 xorg_cv_cc_flag_unused_command_line_argument=yes 10318else 10319 xorg_cv_cc_flag_unused_command_line_argument=no 10320fi 10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322fi 10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327fi 10328 10329found="no" 10330 10331 if test $found = "no" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 fi 10339 10340 CFLAGS="$CFLAGS -pedantic" 10341 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10343$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10344 cacheid=xorg_cv_cc_flag__pedantic 10345 if eval \${$cacheid+:} false; then : 10346 $as_echo_n "(cached) " >&6 10347else 10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349/* end confdefs.h. */ 10350int i; 10351int 10352main () 10353{ 10354 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359if ac_fn_c_try_link "$LINENO"; then : 10360 eval $cacheid=yes 10361else 10362 eval $cacheid=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext \ 10365 conftest$ac_exeext conftest.$ac_ext 10366fi 10367 10368 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 10371 eval supported=\$$cacheid 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10373$as_echo "$supported" >&6; } 10374 if test "$supported" = "yes" ; then 10375 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10376 found="yes" 10377 fi 10378 fi 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394xorg_testset_save_CFLAGS="$CFLAGS" 10395 10396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10401 $as_echo_n "(cached) " >&6 10402else 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405int i; 10406_ACEOF 10407if ac_fn_c_try_compile "$LINENO"; then : 10408 xorg_cv_cc_flag_unknown_warning_option=yes 10409else 10410 xorg_cv_cc_flag_unknown_warning_option=no 10411fi 10412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10413fi 10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10417 CFLAGS="$xorg_testset_save_CFLAGS" 10418fi 10419 10420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10423 fi 10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10428 $as_echo_n "(cached) " >&6 10429else 10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432int i; 10433_ACEOF 10434if ac_fn_c_try_compile "$LINENO"; then : 10435 xorg_cv_cc_flag_unused_command_line_argument=yes 10436else 10437 xorg_cv_cc_flag_unused_command_line_argument=no 10438fi 10439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10440fi 10441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10444 CFLAGS="$xorg_testset_save_CFLAGS" 10445fi 10446 10447found="no" 10448 10449 if test $found = "no" ; then 10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10452 fi 10453 10454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10456 fi 10457 10458 CFLAGS="$CFLAGS -Werror" 10459 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10461$as_echo_n "checking if $CC supports -Werror... " >&6; } 10462 cacheid=xorg_cv_cc_flag__Werror 10463 if eval \${$cacheid+:} false; then : 10464 $as_echo_n "(cached) " >&6 10465else 10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10467/* end confdefs.h. */ 10468int i; 10469int 10470main () 10471{ 10472 10473 ; 10474 return 0; 10475} 10476_ACEOF 10477if ac_fn_c_try_link "$LINENO"; then : 10478 eval $cacheid=yes 10479else 10480 eval $cacheid=no 10481fi 10482rm -f core conftest.err conftest.$ac_objext \ 10483 conftest$ac_exeext conftest.$ac_ext 10484fi 10485 10486 10487 CFLAGS="$xorg_testset_save_CFLAGS" 10488 10489 eval supported=\$$cacheid 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10491$as_echo "$supported" >&6; } 10492 if test "$supported" = "yes" ; then 10493 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10494 found="yes" 10495 fi 10496 fi 10497 10498 if test $found = "no" ; then 10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10501 fi 10502 10503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10505 fi 10506 10507 CFLAGS="$CFLAGS -errwarn" 10508 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10510$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10511 cacheid=xorg_cv_cc_flag__errwarn 10512 if eval \${$cacheid+:} false; then : 10513 $as_echo_n "(cached) " >&6 10514else 10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10516/* end confdefs.h. */ 10517int i; 10518int 10519main () 10520{ 10521 10522 ; 10523 return 0; 10524} 10525_ACEOF 10526if ac_fn_c_try_link "$LINENO"; then : 10527 eval $cacheid=yes 10528else 10529 eval $cacheid=no 10530fi 10531rm -f core conftest.err conftest.$ac_objext \ 10532 conftest$ac_exeext conftest.$ac_ext 10533fi 10534 10535 10536 CFLAGS="$xorg_testset_save_CFLAGS" 10537 10538 eval supported=\$$cacheid 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10540$as_echo "$supported" >&6; } 10541 if test "$supported" = "yes" ; then 10542 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10543 found="yes" 10544 fi 10545 fi 10546 10547 10548 10549# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10550# activate it with -Werror, so we add it here explicitly. 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564xorg_testset_save_CFLAGS="$CFLAGS" 10565 10566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10571 $as_echo_n "(cached) " >&6 10572else 10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575int i; 10576_ACEOF 10577if ac_fn_c_try_compile "$LINENO"; then : 10578 xorg_cv_cc_flag_unknown_warning_option=yes 10579else 10580 xorg_cv_cc_flag_unknown_warning_option=no 10581fi 10582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10583fi 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10587 CFLAGS="$xorg_testset_save_CFLAGS" 10588fi 10589 10590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10593 fi 10594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10598 $as_echo_n "(cached) " >&6 10599else 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602int i; 10603_ACEOF 10604if ac_fn_c_try_compile "$LINENO"; then : 10605 xorg_cv_cc_flag_unused_command_line_argument=yes 10606else 10607 xorg_cv_cc_flag_unused_command_line_argument=no 10608fi 10609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10610fi 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10614 CFLAGS="$xorg_testset_save_CFLAGS" 10615fi 10616 10617found="no" 10618 10619 if test $found = "no" ; then 10620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10622 fi 10623 10624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10626 fi 10627 10628 CFLAGS="$CFLAGS -Werror=attributes" 10629 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10631$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10632 cacheid=xorg_cv_cc_flag__Werror_attributes 10633 if eval \${$cacheid+:} false; then : 10634 $as_echo_n "(cached) " >&6 10635else 10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637/* end confdefs.h. */ 10638int i; 10639int 10640main () 10641{ 10642 10643 ; 10644 return 0; 10645} 10646_ACEOF 10647if ac_fn_c_try_link "$LINENO"; then : 10648 eval $cacheid=yes 10649else 10650 eval $cacheid=no 10651fi 10652rm -f core conftest.err conftest.$ac_objext \ 10653 conftest$ac_exeext conftest.$ac_ext 10654fi 10655 10656 10657 CFLAGS="$xorg_testset_save_CFLAGS" 10658 10659 eval supported=\$$cacheid 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10661$as_echo "$supported" >&6; } 10662 if test "$supported" = "yes" ; then 10663 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10664 found="yes" 10665 fi 10666 fi 10667 10668 10669 10670if test "x$STRICT_COMPILE" = "xyes"; then 10671 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10672 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10673fi 10674 10675 10676 10677 10678 10679 10680cat >>confdefs.h <<_ACEOF 10681#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10682_ACEOF 10683 10684 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10685 if test "x$PVM" = "x"; then 10686 PVM="0" 10687 fi 10688 10689cat >>confdefs.h <<_ACEOF 10690#define PACKAGE_VERSION_MINOR $PVM 10691_ACEOF 10692 10693 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10694 if test "x$PVP" = "x"; then 10695 PVP="0" 10696 fi 10697 10698cat >>confdefs.h <<_ACEOF 10699#define PACKAGE_VERSION_PATCHLEVEL $PVP 10700_ACEOF 10701 10702 10703 10704CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10705mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10706|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10707echo 'git directory not found: installing possibly empty changelog.' >&2)" 10708 10709 10710 10711 10712macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10713INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10714mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10715|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10716echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10717 10718 10719 10720 10721 10722 10723if test x$APP_MAN_SUFFIX = x ; then 10724 APP_MAN_SUFFIX=1 10725fi 10726if test x$APP_MAN_DIR = x ; then 10727 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10728fi 10729 10730if test x$LIB_MAN_SUFFIX = x ; then 10731 LIB_MAN_SUFFIX=3 10732fi 10733if test x$LIB_MAN_DIR = x ; then 10734 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10735fi 10736 10737if test x$FILE_MAN_SUFFIX = x ; then 10738 case $host_os in 10739 solaris*) FILE_MAN_SUFFIX=4 ;; 10740 *) FILE_MAN_SUFFIX=5 ;; 10741 esac 10742fi 10743if test x$FILE_MAN_DIR = x ; then 10744 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10745fi 10746 10747if test x$MISC_MAN_SUFFIX = x ; then 10748 case $host_os in 10749 solaris*) MISC_MAN_SUFFIX=5 ;; 10750 *) MISC_MAN_SUFFIX=7 ;; 10751 esac 10752fi 10753if test x$MISC_MAN_DIR = x ; then 10754 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10755fi 10756 10757if test x$DRIVER_MAN_SUFFIX = x ; then 10758 case $host_os in 10759 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10760 *) DRIVER_MAN_SUFFIX=4 ;; 10761 esac 10762fi 10763if test x$DRIVER_MAN_DIR = x ; then 10764 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10765fi 10766 10767if test x$ADMIN_MAN_SUFFIX = x ; then 10768 case $host_os in 10769 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10770 *) ADMIN_MAN_SUFFIX=8 ;; 10771 esac 10772fi 10773if test x$ADMIN_MAN_DIR = x ; then 10774 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10775fi 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791XORG_MAN_PAGE="X Version 11" 10792 10793MAN_SUBSTS="\ 10794 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10795 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10796 -e 's|__xservername__|Xorg|g' \ 10797 -e 's|__xconfigfile__|xorg.conf|g' \ 10798 -e 's|__projectroot__|\$(prefix)|g' \ 10799 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10800 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10801 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10802 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10803 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10804 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10805 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10806 10807 10808 10809# Check whether --enable-silent-rules was given. 10810if test "${enable_silent_rules+set}" = set; then : 10811 enableval=$enable_silent_rules; 10812fi 10813 10814case $enable_silent_rules in # ((( 10815 yes) AM_DEFAULT_VERBOSITY=0;; 10816 no) AM_DEFAULT_VERBOSITY=1;; 10817 *) AM_DEFAULT_VERBOSITY=0;; 10818esac 10819am_make=${MAKE-make} 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10821$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10822if ${am_cv_make_support_nested_variables+:} false; then : 10823 $as_echo_n "(cached) " >&6 10824else 10825 if $as_echo 'TRUE=$(BAR$(V)) 10826BAR0=false 10827BAR1=true 10828V=1 10829am__doit: 10830 @$(TRUE) 10831.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10832 am_cv_make_support_nested_variables=yes 10833else 10834 am_cv_make_support_nested_variables=no 10835fi 10836fi 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10838$as_echo "$am_cv_make_support_nested_variables" >&6; } 10839if test $am_cv_make_support_nested_variables = yes; then 10840 AM_V='$(V)' 10841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10842else 10843 AM_V=$AM_DEFAULT_VERBOSITY 10844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10845fi 10846AM_BACKSLASH='\' 10847 10848 10849 10850# Initialize libtool 10851# Check whether --enable-static was given. 10852if test "${enable_static+set}" = set; then : 10853 enableval=$enable_static; p=${PACKAGE-default} 10854 case $enableval in 10855 yes) enable_static=yes ;; 10856 no) enable_static=no ;; 10857 *) 10858 enable_static=no 10859 # Look at the argument we got. We use all the common list separators. 10860 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10861 for pkg in $enableval; do 10862 IFS=$lt_save_ifs 10863 if test "X$pkg" = "X$p"; then 10864 enable_static=yes 10865 fi 10866 done 10867 IFS=$lt_save_ifs 10868 ;; 10869 esac 10870else 10871 enable_static=no 10872fi 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882case `pwd` in 10883 *\ * | *\ *) 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10885$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10886esac 10887 10888 10889 10890macro_version='2.4.6' 10891macro_revision='2.4.6' 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905ltmain=$ac_aux_dir/ltmain.sh 10906 10907# Backslashify metacharacters that are still active within 10908# double-quoted strings. 10909sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10910 10911# Same as above, but do not quote variable references. 10912double_quote_subst='s/\(["`\\]\)/\\\1/g' 10913 10914# Sed substitution to delay expansion of an escaped shell variable in a 10915# double_quote_subst'ed string. 10916delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10917 10918# Sed substitution to delay expansion of an escaped single quote. 10919delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10920 10921# Sed substitution to avoid accidental globbing in evaled expressions 10922no_glob_subst='s/\*/\\\*/g' 10923 10924ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10926ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10927 10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10929$as_echo_n "checking how to print strings... " >&6; } 10930# Test print first, because it will be a builtin if present. 10931if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10933 ECHO='print -r --' 10934elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10935 ECHO='printf %s\n' 10936else 10937 # Use this function as a fallback that always works. 10938 func_fallback_echo () 10939 { 10940 eval 'cat <<_LTECHO_EOF 10941$1 10942_LTECHO_EOF' 10943 } 10944 ECHO='func_fallback_echo' 10945fi 10946 10947# func_echo_all arg... 10948# Invoke $ECHO with all args, space-separated. 10949func_echo_all () 10950{ 10951 $ECHO "" 10952} 10953 10954case $ECHO in 10955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10956$as_echo "printf" >&6; } ;; 10957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10958$as_echo "print -r" >&6; } ;; 10959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10960$as_echo "cat" >&6; } ;; 10961esac 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10977$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10978if ${ac_cv_path_SED+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980else 10981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10982 for ac_i in 1 2 3 4 5 6 7; do 10983 ac_script="$ac_script$as_nl$ac_script" 10984 done 10985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10986 { ac_script=; unset ac_script;} 10987 if test -z "$SED"; then 10988 ac_path_SED_found=false 10989 # Loop through the user's path and test for each of PROGNAME-LIST 10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10991for as_dir in $PATH 10992do 10993 IFS=$as_save_IFS 10994 test -z "$as_dir" && as_dir=. 10995 for ac_prog in sed gsed; do 10996 for ac_exec_ext in '' $ac_executable_extensions; do 10997 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10998 as_fn_executable_p "$ac_path_SED" || continue 10999# Check for GNU ac_path_SED and select it if it is found. 11000 # Check for GNU $ac_path_SED 11001case `"$ac_path_SED" --version 2>&1` in 11002*GNU*) 11003 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11004*) 11005 ac_count=0 11006 $as_echo_n 0123456789 >"conftest.in" 11007 while : 11008 do 11009 cat "conftest.in" "conftest.in" >"conftest.tmp" 11010 mv "conftest.tmp" "conftest.in" 11011 cp "conftest.in" "conftest.nl" 11012 $as_echo '' >> "conftest.nl" 11013 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11015 as_fn_arith $ac_count + 1 && ac_count=$as_val 11016 if test $ac_count -gt ${ac_path_SED_max-0}; then 11017 # Best one so far, save it but keep looking for a better one 11018 ac_cv_path_SED="$ac_path_SED" 11019 ac_path_SED_max=$ac_count 11020 fi 11021 # 10*(2^10) chars as input seems more than enough 11022 test $ac_count -gt 10 && break 11023 done 11024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11025esac 11026 11027 $ac_path_SED_found && break 3 11028 done 11029 done 11030 done 11031IFS=$as_save_IFS 11032 if test -z "$ac_cv_path_SED"; then 11033 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11034 fi 11035else 11036 ac_cv_path_SED=$SED 11037fi 11038 11039fi 11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11041$as_echo "$ac_cv_path_SED" >&6; } 11042 SED="$ac_cv_path_SED" 11043 rm -f conftest.sed 11044 11045test -z "$SED" && SED=sed 11046Xsed="$SED -e 1s/^X//" 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11059$as_echo_n "checking for fgrep... " >&6; } 11060if ${ac_cv_path_FGREP+:} false; then : 11061 $as_echo_n "(cached) " >&6 11062else 11063 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11064 then ac_cv_path_FGREP="$GREP -F" 11065 else 11066 if test -z "$FGREP"; then 11067 ac_path_FGREP_found=false 11068 # Loop through the user's path and test for each of PROGNAME-LIST 11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11071do 11072 IFS=$as_save_IFS 11073 test -z "$as_dir" && as_dir=. 11074 for ac_prog in fgrep; do 11075 for ac_exec_ext in '' $ac_executable_extensions; do 11076 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11077 as_fn_executable_p "$ac_path_FGREP" || continue 11078# Check for GNU ac_path_FGREP and select it if it is found. 11079 # Check for GNU $ac_path_FGREP 11080case `"$ac_path_FGREP" --version 2>&1` in 11081*GNU*) 11082 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11083*) 11084 ac_count=0 11085 $as_echo_n 0123456789 >"conftest.in" 11086 while : 11087 do 11088 cat "conftest.in" "conftest.in" >"conftest.tmp" 11089 mv "conftest.tmp" "conftest.in" 11090 cp "conftest.in" "conftest.nl" 11091 $as_echo 'FGREP' >> "conftest.nl" 11092 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11094 as_fn_arith $ac_count + 1 && ac_count=$as_val 11095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11096 # Best one so far, save it but keep looking for a better one 11097 ac_cv_path_FGREP="$ac_path_FGREP" 11098 ac_path_FGREP_max=$ac_count 11099 fi 11100 # 10*(2^10) chars as input seems more than enough 11101 test $ac_count -gt 10 && break 11102 done 11103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11104esac 11105 11106 $ac_path_FGREP_found && break 3 11107 done 11108 done 11109 done 11110IFS=$as_save_IFS 11111 if test -z "$ac_cv_path_FGREP"; then 11112 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11113 fi 11114else 11115 ac_cv_path_FGREP=$FGREP 11116fi 11117 11118 fi 11119fi 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11121$as_echo "$ac_cv_path_FGREP" >&6; } 11122 FGREP="$ac_cv_path_FGREP" 11123 11124 11125test -z "$GREP" && GREP=grep 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145# Check whether --with-gnu-ld was given. 11146if test "${with_gnu_ld+set}" = set; then : 11147 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11148else 11149 with_gnu_ld=no 11150fi 11151 11152ac_prog=ld 11153if test yes = "$GCC"; then 11154 # Check if gcc -print-prog-name=ld gives a path. 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11156$as_echo_n "checking for ld used by $CC... " >&6; } 11157 case $host in 11158 *-*-mingw*) 11159 # gcc leaves a trailing carriage return, which upsets mingw 11160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11161 *) 11162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11163 esac 11164 case $ac_prog in 11165 # Accept absolute paths. 11166 [\\/]* | ?:[\\/]*) 11167 re_direlt='/[^/][^/]*/\.\./' 11168 # Canonicalize the pathname of ld 11169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11172 done 11173 test -z "$LD" && LD=$ac_prog 11174 ;; 11175 "") 11176 # If it fails, then pretend we aren't using GCC. 11177 ac_prog=ld 11178 ;; 11179 *) 11180 # If it is relative, then search for the first ld in PATH. 11181 with_gnu_ld=unknown 11182 ;; 11183 esac 11184elif test yes = "$with_gnu_ld"; then 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11186$as_echo_n "checking for GNU ld... " >&6; } 11187else 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11189$as_echo_n "checking for non-GNU ld... " >&6; } 11190fi 11191if ${lt_cv_path_LD+:} false; then : 11192 $as_echo_n "(cached) " >&6 11193else 11194 if test -z "$LD"; then 11195 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11196 for ac_dir in $PATH; do 11197 IFS=$lt_save_ifs 11198 test -z "$ac_dir" && ac_dir=. 11199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11200 lt_cv_path_LD=$ac_dir/$ac_prog 11201 # Check to see if the program is GNU ld. I'd rather use --version, 11202 # but apparently some variants of GNU ld only accept -v. 11203 # Break only if it was the GNU/non-GNU ld that we prefer. 11204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11205 *GNU* | *'with BFD'*) 11206 test no != "$with_gnu_ld" && break 11207 ;; 11208 *) 11209 test yes != "$with_gnu_ld" && break 11210 ;; 11211 esac 11212 fi 11213 done 11214 IFS=$lt_save_ifs 11215else 11216 lt_cv_path_LD=$LD # Let the user override the test with a path. 11217fi 11218fi 11219 11220LD=$lt_cv_path_LD 11221if test -n "$LD"; then 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11223$as_echo "$LD" >&6; } 11224else 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11226$as_echo "no" >&6; } 11227fi 11228test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11230$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11231if ${lt_cv_prog_gnu_ld+:} false; then : 11232 $as_echo_n "(cached) " >&6 11233else 11234 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11235case `$LD -v 2>&1 </dev/null` in 11236*GNU* | *'with BFD'*) 11237 lt_cv_prog_gnu_ld=yes 11238 ;; 11239*) 11240 lt_cv_prog_gnu_ld=no 11241 ;; 11242esac 11243fi 11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11245$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11246with_gnu_ld=$lt_cv_prog_gnu_ld 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11257$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11258if ${lt_cv_path_NM+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 if test -n "$NM"; then 11262 # Let the user override the test. 11263 lt_cv_path_NM=$NM 11264else 11265 lt_nm_to_check=${ac_tool_prefix}nm 11266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11267 lt_nm_to_check="$lt_nm_to_check nm" 11268 fi 11269 for lt_tmp_nm in $lt_nm_to_check; do 11270 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11272 IFS=$lt_save_ifs 11273 test -z "$ac_dir" && ac_dir=. 11274 tmp_nm=$ac_dir/$lt_tmp_nm 11275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11276 # Check to see if the nm accepts a BSD-compat flag. 11277 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11278 # nm: unknown option "B" ignored 11279 # Tru64's nm complains that /dev/null is an invalid object file 11280 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11281 case $build_os in 11282 mingw*) lt_bad_file=conftest.nm/nofile ;; 11283 *) lt_bad_file=/dev/null ;; 11284 esac 11285 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11286 *$lt_bad_file* | *'Invalid file or object type'*) 11287 lt_cv_path_NM="$tmp_nm -B" 11288 break 2 11289 ;; 11290 *) 11291 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11292 */dev/null*) 11293 lt_cv_path_NM="$tmp_nm -p" 11294 break 2 11295 ;; 11296 *) 11297 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11298 continue # so that we can try to find one that supports BSD flags 11299 ;; 11300 esac 11301 ;; 11302 esac 11303 fi 11304 done 11305 IFS=$lt_save_ifs 11306 done 11307 : ${lt_cv_path_NM=no} 11308fi 11309fi 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11311$as_echo "$lt_cv_path_NM" >&6; } 11312if test no != "$lt_cv_path_NM"; then 11313 NM=$lt_cv_path_NM 11314else 11315 # Didn't find any BSD compatible name lister, look for dumpbin. 11316 if test -n "$DUMPBIN"; then : 11317 # Let the user override the test. 11318 else 11319 if test -n "$ac_tool_prefix"; then 11320 for ac_prog in dumpbin "link -dump" 11321 do 11322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11323set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11325$as_echo_n "checking for $ac_word... " >&6; } 11326if ${ac_cv_prog_DUMPBIN+:} false; then : 11327 $as_echo_n "(cached) " >&6 11328else 11329 if test -n "$DUMPBIN"; then 11330 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11331else 11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11333for as_dir in $PATH 11334do 11335 IFS=$as_save_IFS 11336 test -z "$as_dir" && as_dir=. 11337 for ac_exec_ext in '' $ac_executable_extensions; do 11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11339 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11341 break 2 11342 fi 11343done 11344 done 11345IFS=$as_save_IFS 11346 11347fi 11348fi 11349DUMPBIN=$ac_cv_prog_DUMPBIN 11350if test -n "$DUMPBIN"; then 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11352$as_echo "$DUMPBIN" >&6; } 11353else 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11355$as_echo "no" >&6; } 11356fi 11357 11358 11359 test -n "$DUMPBIN" && break 11360 done 11361fi 11362if test -z "$DUMPBIN"; then 11363 ac_ct_DUMPBIN=$DUMPBIN 11364 for ac_prog in dumpbin "link -dump" 11365do 11366 # Extract the first word of "$ac_prog", so it can be a program name with args. 11367set dummy $ac_prog; ac_word=$2 11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11369$as_echo_n "checking for $ac_word... " >&6; } 11370if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372else 11373 if test -n "$ac_ct_DUMPBIN"; then 11374 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11375else 11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11377for as_dir in $PATH 11378do 11379 IFS=$as_save_IFS 11380 test -z "$as_dir" && as_dir=. 11381 for ac_exec_ext in '' $ac_executable_extensions; do 11382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11383 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11385 break 2 11386 fi 11387done 11388 done 11389IFS=$as_save_IFS 11390 11391fi 11392fi 11393ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11394if test -n "$ac_ct_DUMPBIN"; then 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11396$as_echo "$ac_ct_DUMPBIN" >&6; } 11397else 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11399$as_echo "no" >&6; } 11400fi 11401 11402 11403 test -n "$ac_ct_DUMPBIN" && break 11404done 11405 11406 if test "x$ac_ct_DUMPBIN" = x; then 11407 DUMPBIN=":" 11408 else 11409 case $cross_compiling:$ac_tool_warned in 11410yes:) 11411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11413ac_tool_warned=yes ;; 11414esac 11415 DUMPBIN=$ac_ct_DUMPBIN 11416 fi 11417fi 11418 11419 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11420 *COFF*) 11421 DUMPBIN="$DUMPBIN -symbols -headers" 11422 ;; 11423 *) 11424 DUMPBIN=: 11425 ;; 11426 esac 11427 fi 11428 11429 if test : != "$DUMPBIN"; then 11430 NM=$DUMPBIN 11431 fi 11432fi 11433test -z "$NM" && NM=nm 11434 11435 11436 11437 11438 11439 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11441$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11442if ${lt_cv_nm_interface+:} false; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 lt_cv_nm_interface="BSD nm" 11446 echo "int some_variable = 0;" > conftest.$ac_ext 11447 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11448 (eval "$ac_compile" 2>conftest.err) 11449 cat conftest.err >&5 11450 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11451 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11452 cat conftest.err >&5 11453 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11454 cat conftest.out >&5 11455 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11456 lt_cv_nm_interface="MS dumpbin" 11457 fi 11458 rm -f conftest* 11459fi 11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11461$as_echo "$lt_cv_nm_interface" >&6; } 11462 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11464$as_echo_n "checking whether ln -s works... " >&6; } 11465LN_S=$as_ln_s 11466if test "$LN_S" = "ln -s"; then 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11468$as_echo "yes" >&6; } 11469else 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11471$as_echo "no, using $LN_S" >&6; } 11472fi 11473 11474# find the maximum length of command line arguments 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11476$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11477if ${lt_cv_sys_max_cmd_len+:} false; then : 11478 $as_echo_n "(cached) " >&6 11479else 11480 i=0 11481 teststring=ABCD 11482 11483 case $build_os in 11484 msdosdjgpp*) 11485 # On DJGPP, this test can blow up pretty badly due to problems in libc 11486 # (any single argument exceeding 2000 bytes causes a buffer overrun 11487 # during glob expansion). Even if it were fixed, the result of this 11488 # check would be larger than it should be. 11489 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11490 ;; 11491 11492 gnu*) 11493 # Under GNU Hurd, this test is not required because there is 11494 # no limit to the length of command line arguments. 11495 # Libtool will interpret -1 as no limit whatsoever 11496 lt_cv_sys_max_cmd_len=-1; 11497 ;; 11498 11499 cygwin* | mingw* | cegcc*) 11500 # On Win9x/ME, this test blows up -- it succeeds, but takes 11501 # about 5 minutes as the teststring grows exponentially. 11502 # Worse, since 9x/ME are not pre-emptively multitasking, 11503 # you end up with a "frozen" computer, even though with patience 11504 # the test eventually succeeds (with a max line length of 256k). 11505 # Instead, let's just punt: use the minimum linelength reported by 11506 # all of the supported platforms: 8192 (on NT/2K/XP). 11507 lt_cv_sys_max_cmd_len=8192; 11508 ;; 11509 11510 mint*) 11511 # On MiNT this can take a long time and run out of memory. 11512 lt_cv_sys_max_cmd_len=8192; 11513 ;; 11514 11515 amigaos*) 11516 # On AmigaOS with pdksh, this test takes hours, literally. 11517 # So we just punt and use a minimum line length of 8192. 11518 lt_cv_sys_max_cmd_len=8192; 11519 ;; 11520 11521 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11522 # This has been around since 386BSD, at least. Likely further. 11523 if test -x /sbin/sysctl; then 11524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11525 elif test -x /usr/sbin/sysctl; then 11526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11527 else 11528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11529 fi 11530 # And add a safety zone 11531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11533 ;; 11534 11535 interix*) 11536 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11537 lt_cv_sys_max_cmd_len=196608 11538 ;; 11539 11540 os2*) 11541 # The test takes a long time on OS/2. 11542 lt_cv_sys_max_cmd_len=8192 11543 ;; 11544 11545 osf*) 11546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11548 # nice to cause kernel panics so lets avoid the loop below. 11549 # First set a reasonable default. 11550 lt_cv_sys_max_cmd_len=16384 11551 # 11552 if test -x /sbin/sysconfig; then 11553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11554 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11555 esac 11556 fi 11557 ;; 11558 sco3.2v5*) 11559 lt_cv_sys_max_cmd_len=102400 11560 ;; 11561 sysv5* | sco5v6* | sysv4.2uw2*) 11562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11563 if test -n "$kargmax"; then 11564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11565 else 11566 lt_cv_sys_max_cmd_len=32768 11567 fi 11568 ;; 11569 *) 11570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11571 if test -n "$lt_cv_sys_max_cmd_len" && \ 11572 test undefined != "$lt_cv_sys_max_cmd_len"; then 11573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11575 else 11576 # Make teststring a little bigger before we do anything with it. 11577 # a 1K string should be a reasonable start. 11578 for i in 1 2 3 4 5 6 7 8; do 11579 teststring=$teststring$teststring 11580 done 11581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11582 # If test is not a shell built-in, we'll probably end up computing a 11583 # maximum length that is only half of the actual maximum length, but 11584 # we can't tell. 11585 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11586 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11587 test 17 != "$i" # 1/2 MB should be enough 11588 do 11589 i=`expr $i + 1` 11590 teststring=$teststring$teststring 11591 done 11592 # Only check the string length outside the loop. 11593 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11594 teststring= 11595 # Add a significant safety factor because C++ compilers can tack on 11596 # massive amounts of additional arguments before passing them to the 11597 # linker. It appears as though 1/2 is a usable value. 11598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11599 fi 11600 ;; 11601 esac 11602 11603fi 11604 11605if test -n "$lt_cv_sys_max_cmd_len"; then 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11607$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11608else 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11610$as_echo "none" >&6; } 11611fi 11612max_cmd_len=$lt_cv_sys_max_cmd_len 11613 11614 11615 11616 11617 11618 11619: ${CP="cp -f"} 11620: ${MV="mv -f"} 11621: ${RM="rm -f"} 11622 11623if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11624 lt_unset=unset 11625else 11626 lt_unset=false 11627fi 11628 11629 11630 11631 11632 11633# test EBCDIC or ASCII 11634case `echo X|tr X '\101'` in 11635 A) # ASCII based system 11636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11637 lt_SP2NL='tr \040 \012' 11638 lt_NL2SP='tr \015\012 \040\040' 11639 ;; 11640 *) # EBCDIC based system 11641 lt_SP2NL='tr \100 \n' 11642 lt_NL2SP='tr \r\n \100\100' 11643 ;; 11644esac 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11655$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11656if ${lt_cv_to_host_file_cmd+:} false; then : 11657 $as_echo_n "(cached) " >&6 11658else 11659 case $host in 11660 *-*-mingw* ) 11661 case $build in 11662 *-*-mingw* ) # actually msys 11663 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11664 ;; 11665 *-*-cygwin* ) 11666 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11667 ;; 11668 * ) # otherwise, assume *nix 11669 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11670 ;; 11671 esac 11672 ;; 11673 *-*-cygwin* ) 11674 case $build in 11675 *-*-mingw* ) # actually msys 11676 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11677 ;; 11678 *-*-cygwin* ) 11679 lt_cv_to_host_file_cmd=func_convert_file_noop 11680 ;; 11681 * ) # otherwise, assume *nix 11682 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11683 ;; 11684 esac 11685 ;; 11686 * ) # unhandled hosts (and "normal" native builds) 11687 lt_cv_to_host_file_cmd=func_convert_file_noop 11688 ;; 11689esac 11690 11691fi 11692 11693to_host_file_cmd=$lt_cv_to_host_file_cmd 11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11695$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11696 11697 11698 11699 11700 11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11702$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11703if ${lt_cv_to_tool_file_cmd+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 #assume ordinary cross tools, or native build. 11707lt_cv_to_tool_file_cmd=func_convert_file_noop 11708case $host in 11709 *-*-mingw* ) 11710 case $build in 11711 *-*-mingw* ) # actually msys 11712 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11713 ;; 11714 esac 11715 ;; 11716esac 11717 11718fi 11719 11720to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11722$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11723 11724 11725 11726 11727 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11729$as_echo_n "checking for $LD option to reload object files... " >&6; } 11730if ${lt_cv_ld_reload_flag+:} false; then : 11731 $as_echo_n "(cached) " >&6 11732else 11733 lt_cv_ld_reload_flag='-r' 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11736$as_echo "$lt_cv_ld_reload_flag" >&6; } 11737reload_flag=$lt_cv_ld_reload_flag 11738case $reload_flag in 11739"" | " "*) ;; 11740*) reload_flag=" $reload_flag" ;; 11741esac 11742reload_cmds='$LD$reload_flag -o $output$reload_objs' 11743case $host_os in 11744 cygwin* | mingw* | pw32* | cegcc*) 11745 if test yes != "$GCC"; then 11746 reload_cmds=false 11747 fi 11748 ;; 11749 darwin*) 11750 if test yes = "$GCC"; then 11751 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11752 else 11753 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11754 fi 11755 ;; 11756esac 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766if test -n "$ac_tool_prefix"; then 11767 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11768set dummy ${ac_tool_prefix}objdump; ac_word=$2 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11770$as_echo_n "checking for $ac_word... " >&6; } 11771if ${ac_cv_prog_OBJDUMP+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 if test -n "$OBJDUMP"; then 11775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11776else 11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11778for as_dir in $PATH 11779do 11780 IFS=$as_save_IFS 11781 test -z "$as_dir" && as_dir=. 11782 for ac_exec_ext in '' $ac_executable_extensions; do 11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11784 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11786 break 2 11787 fi 11788done 11789 done 11790IFS=$as_save_IFS 11791 11792fi 11793fi 11794OBJDUMP=$ac_cv_prog_OBJDUMP 11795if test -n "$OBJDUMP"; then 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11797$as_echo "$OBJDUMP" >&6; } 11798else 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11800$as_echo "no" >&6; } 11801fi 11802 11803 11804fi 11805if test -z "$ac_cv_prog_OBJDUMP"; then 11806 ac_ct_OBJDUMP=$OBJDUMP 11807 # Extract the first word of "objdump", so it can be a program name with args. 11808set dummy objdump; ac_word=$2 11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11810$as_echo_n "checking for $ac_word... " >&6; } 11811if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11812 $as_echo_n "(cached) " >&6 11813else 11814 if test -n "$ac_ct_OBJDUMP"; then 11815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11816else 11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11818for as_dir in $PATH 11819do 11820 IFS=$as_save_IFS 11821 test -z "$as_dir" && as_dir=. 11822 for ac_exec_ext in '' $ac_executable_extensions; do 11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11824 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11826 break 2 11827 fi 11828done 11829 done 11830IFS=$as_save_IFS 11831 11832fi 11833fi 11834ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11835if test -n "$ac_ct_OBJDUMP"; then 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11837$as_echo "$ac_ct_OBJDUMP" >&6; } 11838else 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11840$as_echo "no" >&6; } 11841fi 11842 11843 if test "x$ac_ct_OBJDUMP" = x; then 11844 OBJDUMP="false" 11845 else 11846 case $cross_compiling:$ac_tool_warned in 11847yes:) 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11850ac_tool_warned=yes ;; 11851esac 11852 OBJDUMP=$ac_ct_OBJDUMP 11853 fi 11854else 11855 OBJDUMP="$ac_cv_prog_OBJDUMP" 11856fi 11857 11858test -z "$OBJDUMP" && OBJDUMP=objdump 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11869$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11870if ${lt_cv_deplibs_check_method+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872else 11873 lt_cv_file_magic_cmd='$MAGIC_CMD' 11874lt_cv_file_magic_test_file= 11875lt_cv_deplibs_check_method='unknown' 11876# Need to set the preceding variable on all platforms that support 11877# interlibrary dependencies. 11878# 'none' -- dependencies not supported. 11879# 'unknown' -- same as none, but documents that we really don't know. 11880# 'pass_all' -- all dependencies passed with no checks. 11881# 'test_compile' -- check by making test program. 11882# 'file_magic [[regex]]' -- check by looking for files in library path 11883# that responds to the $file_magic_cmd with a given extended regex. 11884# If you have 'file' or equivalent on your system and you're not sure 11885# whether 'pass_all' will *always* work, you probably want this one. 11886 11887case $host_os in 11888aix[4-9]*) 11889 lt_cv_deplibs_check_method=pass_all 11890 ;; 11891 11892beos*) 11893 lt_cv_deplibs_check_method=pass_all 11894 ;; 11895 11896bsdi[45]*) 11897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11898 lt_cv_file_magic_cmd='/usr/bin/file -L' 11899 lt_cv_file_magic_test_file=/shlib/libc.so 11900 ;; 11901 11902cygwin*) 11903 # func_win32_libid is a shell function defined in ltmain.sh 11904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11905 lt_cv_file_magic_cmd='func_win32_libid' 11906 ;; 11907 11908mingw* | pw32*) 11909 # Base MSYS/MinGW do not provide the 'file' command needed by 11910 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11911 # unless we find 'file', for example because we are cross-compiling. 11912 if ( file / ) >/dev/null 2>&1; then 11913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11914 lt_cv_file_magic_cmd='func_win32_libid' 11915 else 11916 # Keep this pattern in sync with the one in func_win32_libid. 11917 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11918 lt_cv_file_magic_cmd='$OBJDUMP -f' 11919 fi 11920 ;; 11921 11922cegcc*) 11923 # use the weaker test based on 'objdump'. See mingw*. 11924 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11925 lt_cv_file_magic_cmd='$OBJDUMP -f' 11926 ;; 11927 11928darwin* | rhapsody*) 11929 lt_cv_deplibs_check_method=pass_all 11930 ;; 11931 11932freebsd* | dragonfly*) 11933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11934 case $host_cpu in 11935 i*86 ) 11936 # Not sure whether the presence of OpenBSD here was a mistake. 11937 # Let's accept both of them until this is cleared up. 11938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11939 lt_cv_file_magic_cmd=/usr/bin/file 11940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11941 ;; 11942 esac 11943 else 11944 lt_cv_deplibs_check_method=pass_all 11945 fi 11946 ;; 11947 11948haiku*) 11949 lt_cv_deplibs_check_method=pass_all 11950 ;; 11951 11952hpux10.20* | hpux11*) 11953 lt_cv_file_magic_cmd=/usr/bin/file 11954 case $host_cpu in 11955 ia64*) 11956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11957 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11958 ;; 11959 hppa*64*) 11960 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]' 11961 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11962 ;; 11963 *) 11964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11965 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11966 ;; 11967 esac 11968 ;; 11969 11970interix[3-9]*) 11971 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11973 ;; 11974 11975irix5* | irix6* | nonstopux*) 11976 case $LD in 11977 *-32|*"-32 ") libmagic=32-bit;; 11978 *-n32|*"-n32 ") libmagic=N32;; 11979 *-64|*"-64 ") libmagic=64-bit;; 11980 *) libmagic=never-match;; 11981 esac 11982 lt_cv_deplibs_check_method=pass_all 11983 ;; 11984 11985# This must be glibc/ELF. 11986linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11987 lt_cv_deplibs_check_method=pass_all 11988 ;; 11989 11990netbsd* | netbsdelf*-gnu) 11991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11993 else 11994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11995 fi 11996 ;; 11997 11998newos6*) 11999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12000 lt_cv_file_magic_cmd=/usr/bin/file 12001 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12002 ;; 12003 12004*nto* | *qnx*) 12005 lt_cv_deplibs_check_method=pass_all 12006 ;; 12007 12008openbsd* | bitrig*) 12009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12011 else 12012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12013 fi 12014 ;; 12015 12016osf3* | osf4* | osf5*) 12017 lt_cv_deplibs_check_method=pass_all 12018 ;; 12019 12020rdos*) 12021 lt_cv_deplibs_check_method=pass_all 12022 ;; 12023 12024solaris*) 12025 lt_cv_deplibs_check_method=pass_all 12026 ;; 12027 12028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12029 lt_cv_deplibs_check_method=pass_all 12030 ;; 12031 12032sysv4 | sysv4.3*) 12033 case $host_vendor in 12034 motorola) 12035 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]' 12036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12037 ;; 12038 ncr) 12039 lt_cv_deplibs_check_method=pass_all 12040 ;; 12041 sequent) 12042 lt_cv_file_magic_cmd='/bin/file' 12043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12044 ;; 12045 sni) 12046 lt_cv_file_magic_cmd='/bin/file' 12047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12048 lt_cv_file_magic_test_file=/lib/libc.so 12049 ;; 12050 siemens) 12051 lt_cv_deplibs_check_method=pass_all 12052 ;; 12053 pc) 12054 lt_cv_deplibs_check_method=pass_all 12055 ;; 12056 esac 12057 ;; 12058 12059tpf*) 12060 lt_cv_deplibs_check_method=pass_all 12061 ;; 12062os2*) 12063 lt_cv_deplibs_check_method=pass_all 12064 ;; 12065esac 12066 12067fi 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12069$as_echo "$lt_cv_deplibs_check_method" >&6; } 12070 12071file_magic_glob= 12072want_nocaseglob=no 12073if test "$build" = "$host"; then 12074 case $host_os in 12075 mingw* | pw32*) 12076 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12077 want_nocaseglob=yes 12078 else 12079 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12080 fi 12081 ;; 12082 esac 12083fi 12084 12085file_magic_cmd=$lt_cv_file_magic_cmd 12086deplibs_check_method=$lt_cv_deplibs_check_method 12087test -z "$deplibs_check_method" && deplibs_check_method=unknown 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110if test -n "$ac_tool_prefix"; then 12111 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12112set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12114$as_echo_n "checking for $ac_word... " >&6; } 12115if ${ac_cv_prog_DLLTOOL+:} false; then : 12116 $as_echo_n "(cached) " >&6 12117else 12118 if test -n "$DLLTOOL"; then 12119 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12120else 12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12122for as_dir in $PATH 12123do 12124 IFS=$as_save_IFS 12125 test -z "$as_dir" && as_dir=. 12126 for ac_exec_ext in '' $ac_executable_extensions; do 12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12128 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12130 break 2 12131 fi 12132done 12133 done 12134IFS=$as_save_IFS 12135 12136fi 12137fi 12138DLLTOOL=$ac_cv_prog_DLLTOOL 12139if test -n "$DLLTOOL"; then 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12141$as_echo "$DLLTOOL" >&6; } 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12144$as_echo "no" >&6; } 12145fi 12146 12147 12148fi 12149if test -z "$ac_cv_prog_DLLTOOL"; then 12150 ac_ct_DLLTOOL=$DLLTOOL 12151 # Extract the first word of "dlltool", so it can be a program name with args. 12152set dummy dlltool; ac_word=$2 12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12154$as_echo_n "checking for $ac_word... " >&6; } 12155if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157else 12158 if test -n "$ac_ct_DLLTOOL"; then 12159 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12160else 12161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12162for as_dir in $PATH 12163do 12164 IFS=$as_save_IFS 12165 test -z "$as_dir" && as_dir=. 12166 for ac_exec_ext in '' $ac_executable_extensions; do 12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12168 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12170 break 2 12171 fi 12172done 12173 done 12174IFS=$as_save_IFS 12175 12176fi 12177fi 12178ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12179if test -n "$ac_ct_DLLTOOL"; then 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12181$as_echo "$ac_ct_DLLTOOL" >&6; } 12182else 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12184$as_echo "no" >&6; } 12185fi 12186 12187 if test "x$ac_ct_DLLTOOL" = x; then 12188 DLLTOOL="false" 12189 else 12190 case $cross_compiling:$ac_tool_warned in 12191yes:) 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12194ac_tool_warned=yes ;; 12195esac 12196 DLLTOOL=$ac_ct_DLLTOOL 12197 fi 12198else 12199 DLLTOOL="$ac_cv_prog_DLLTOOL" 12200fi 12201 12202test -z "$DLLTOOL" && DLLTOOL=dlltool 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12214$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12215if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 lt_cv_sharedlib_from_linklib_cmd='unknown' 12219 12220case $host_os in 12221cygwin* | mingw* | pw32* | cegcc*) 12222 # two different shell functions defined in ltmain.sh; 12223 # decide which one to use based on capabilities of $DLLTOOL 12224 case `$DLLTOOL --help 2>&1` in 12225 *--identify-strict*) 12226 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12227 ;; 12228 *) 12229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12230 ;; 12231 esac 12232 ;; 12233*) 12234 # fallback: assume linklib IS sharedlib 12235 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12236 ;; 12237esac 12238 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12241$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12242sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12243test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12244 12245 12246 12247 12248 12249 12250 12251if test -n "$ac_tool_prefix"; then 12252 for ac_prog in ar 12253 do 12254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12255set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12257$as_echo_n "checking for $ac_word... " >&6; } 12258if ${ac_cv_prog_AR+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 if test -n "$AR"; then 12262 ac_cv_prog_AR="$AR" # Let the user override the test. 12263else 12264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12265for as_dir in $PATH 12266do 12267 IFS=$as_save_IFS 12268 test -z "$as_dir" && as_dir=. 12269 for ac_exec_ext in '' $ac_executable_extensions; do 12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12271 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12273 break 2 12274 fi 12275done 12276 done 12277IFS=$as_save_IFS 12278 12279fi 12280fi 12281AR=$ac_cv_prog_AR 12282if test -n "$AR"; then 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12284$as_echo "$AR" >&6; } 12285else 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12287$as_echo "no" >&6; } 12288fi 12289 12290 12291 test -n "$AR" && break 12292 done 12293fi 12294if test -z "$AR"; then 12295 ac_ct_AR=$AR 12296 for ac_prog in ar 12297do 12298 # Extract the first word of "$ac_prog", so it can be a program name with args. 12299set dummy $ac_prog; ac_word=$2 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12301$as_echo_n "checking for $ac_word... " >&6; } 12302if ${ac_cv_prog_ac_ct_AR+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 if test -n "$ac_ct_AR"; then 12306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12307else 12308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12309for as_dir in $PATH 12310do 12311 IFS=$as_save_IFS 12312 test -z "$as_dir" && as_dir=. 12313 for ac_exec_ext in '' $ac_executable_extensions; do 12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12315 ac_cv_prog_ac_ct_AR="$ac_prog" 12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12317 break 2 12318 fi 12319done 12320 done 12321IFS=$as_save_IFS 12322 12323fi 12324fi 12325ac_ct_AR=$ac_cv_prog_ac_ct_AR 12326if test -n "$ac_ct_AR"; then 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12328$as_echo "$ac_ct_AR" >&6; } 12329else 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12331$as_echo "no" >&6; } 12332fi 12333 12334 12335 test -n "$ac_ct_AR" && break 12336done 12337 12338 if test "x$ac_ct_AR" = x; then 12339 AR="false" 12340 else 12341 case $cross_compiling:$ac_tool_warned in 12342yes:) 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12345ac_tool_warned=yes ;; 12346esac 12347 AR=$ac_ct_AR 12348 fi 12349fi 12350 12351: ${AR=ar} 12352: ${AR_FLAGS=cru} 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12365$as_echo_n "checking for archiver @FILE support... " >&6; } 12366if ${lt_cv_ar_at_file+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 lt_cv_ar_at_file=no 12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371/* end confdefs.h. */ 12372 12373int 12374main () 12375{ 12376 12377 ; 12378 return 0; 12379} 12380_ACEOF 12381if ac_fn_c_try_compile "$LINENO"; then : 12382 echo conftest.$ac_objext > conftest.lst 12383 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12385 (eval $lt_ar_try) 2>&5 12386 ac_status=$? 12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12388 test $ac_status = 0; } 12389 if test 0 -eq "$ac_status"; then 12390 # Ensure the archiver fails upon bogus file names. 12391 rm -f conftest.$ac_objext libconftest.a 12392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12393 (eval $lt_ar_try) 2>&5 12394 ac_status=$? 12395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12396 test $ac_status = 0; } 12397 if test 0 -ne "$ac_status"; then 12398 lt_cv_ar_at_file=@ 12399 fi 12400 fi 12401 rm -f conftest.* libconftest.a 12402 12403fi 12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12405 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12408$as_echo "$lt_cv_ar_at_file" >&6; } 12409 12410if test no = "$lt_cv_ar_at_file"; then 12411 archiver_list_spec= 12412else 12413 archiver_list_spec=$lt_cv_ar_at_file 12414fi 12415 12416 12417 12418 12419 12420 12421 12422if test -n "$ac_tool_prefix"; then 12423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12424set dummy ${ac_tool_prefix}strip; ac_word=$2 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12426$as_echo_n "checking for $ac_word... " >&6; } 12427if ${ac_cv_prog_STRIP+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 if test -n "$STRIP"; then 12431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12432else 12433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12434for as_dir in $PATH 12435do 12436 IFS=$as_save_IFS 12437 test -z "$as_dir" && as_dir=. 12438 for ac_exec_ext in '' $ac_executable_extensions; do 12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12440 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12442 break 2 12443 fi 12444done 12445 done 12446IFS=$as_save_IFS 12447 12448fi 12449fi 12450STRIP=$ac_cv_prog_STRIP 12451if test -n "$STRIP"; then 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12453$as_echo "$STRIP" >&6; } 12454else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12456$as_echo "no" >&6; } 12457fi 12458 12459 12460fi 12461if test -z "$ac_cv_prog_STRIP"; then 12462 ac_ct_STRIP=$STRIP 12463 # Extract the first word of "strip", so it can be a program name with args. 12464set dummy strip; ac_word=$2 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12466$as_echo_n "checking for $ac_word... " >&6; } 12467if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 if test -n "$ac_ct_STRIP"; then 12471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12472else 12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474for as_dir in $PATH 12475do 12476 IFS=$as_save_IFS 12477 test -z "$as_dir" && as_dir=. 12478 for ac_exec_ext in '' $ac_executable_extensions; do 12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12480 ac_cv_prog_ac_ct_STRIP="strip" 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12482 break 2 12483 fi 12484done 12485 done 12486IFS=$as_save_IFS 12487 12488fi 12489fi 12490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12491if test -n "$ac_ct_STRIP"; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12493$as_echo "$ac_ct_STRIP" >&6; } 12494else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496$as_echo "no" >&6; } 12497fi 12498 12499 if test "x$ac_ct_STRIP" = x; then 12500 STRIP=":" 12501 else 12502 case $cross_compiling:$ac_tool_warned in 12503yes:) 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12506ac_tool_warned=yes ;; 12507esac 12508 STRIP=$ac_ct_STRIP 12509 fi 12510else 12511 STRIP="$ac_cv_prog_STRIP" 12512fi 12513 12514test -z "$STRIP" && STRIP=: 12515 12516 12517 12518 12519 12520 12521if test -n "$ac_tool_prefix"; then 12522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12523set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12525$as_echo_n "checking for $ac_word... " >&6; } 12526if ${ac_cv_prog_RANLIB+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 if test -n "$RANLIB"; then 12530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12531else 12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12533for as_dir in $PATH 12534do 12535 IFS=$as_save_IFS 12536 test -z "$as_dir" && as_dir=. 12537 for ac_exec_ext in '' $ac_executable_extensions; do 12538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12541 break 2 12542 fi 12543done 12544 done 12545IFS=$as_save_IFS 12546 12547fi 12548fi 12549RANLIB=$ac_cv_prog_RANLIB 12550if test -n "$RANLIB"; then 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12552$as_echo "$RANLIB" >&6; } 12553else 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12555$as_echo "no" >&6; } 12556fi 12557 12558 12559fi 12560if test -z "$ac_cv_prog_RANLIB"; then 12561 ac_ct_RANLIB=$RANLIB 12562 # Extract the first word of "ranlib", so it can be a program name with args. 12563set dummy ranlib; ac_word=$2 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12565$as_echo_n "checking for $ac_word... " >&6; } 12566if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 if test -n "$ac_ct_RANLIB"; then 12570 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12571else 12572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12573for as_dir in $PATH 12574do 12575 IFS=$as_save_IFS 12576 test -z "$as_dir" && as_dir=. 12577 for ac_exec_ext in '' $ac_executable_extensions; do 12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12579 ac_cv_prog_ac_ct_RANLIB="ranlib" 12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12581 break 2 12582 fi 12583done 12584 done 12585IFS=$as_save_IFS 12586 12587fi 12588fi 12589ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12590if test -n "$ac_ct_RANLIB"; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12592$as_echo "$ac_ct_RANLIB" >&6; } 12593else 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12595$as_echo "no" >&6; } 12596fi 12597 12598 if test "x$ac_ct_RANLIB" = x; then 12599 RANLIB=":" 12600 else 12601 case $cross_compiling:$ac_tool_warned in 12602yes:) 12603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12605ac_tool_warned=yes ;; 12606esac 12607 RANLIB=$ac_ct_RANLIB 12608 fi 12609else 12610 RANLIB="$ac_cv_prog_RANLIB" 12611fi 12612 12613test -z "$RANLIB" && RANLIB=: 12614 12615 12616 12617 12618 12619 12620# Determine commands to create old-style static archives. 12621old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12622old_postinstall_cmds='chmod 644 $oldlib' 12623old_postuninstall_cmds= 12624 12625if test -n "$RANLIB"; then 12626 case $host_os in 12627 bitrig* | openbsd*) 12628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12629 ;; 12630 *) 12631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12632 ;; 12633 esac 12634 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12635fi 12636 12637case $host_os in 12638 darwin*) 12639 lock_old_archive_extraction=yes ;; 12640 *) 12641 lock_old_archive_extraction=no ;; 12642esac 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682# If no C compiler was specified, use CC. 12683LTCC=${LTCC-"$CC"} 12684 12685# If no C compiler flags were specified, use CFLAGS. 12686LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12687 12688# Allow CC to be a program name with arguments. 12689compiler=$CC 12690 12691 12692# Check for command to grab the raw symbol name followed by C symbol from nm. 12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12694$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12695if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 12699# These are sane defaults that work on at least a few old systems. 12700# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12701 12702# Character class describing NM global symbol codes. 12703symcode='[BCDEGRST]' 12704 12705# Regexp to match symbols that can be accessed directly from C. 12706sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12707 12708# Define system-specific variables. 12709case $host_os in 12710aix*) 12711 symcode='[BCDT]' 12712 ;; 12713cygwin* | mingw* | pw32* | cegcc*) 12714 symcode='[ABCDGISTW]' 12715 ;; 12716hpux*) 12717 if test ia64 = "$host_cpu"; then 12718 symcode='[ABCDEGRST]' 12719 fi 12720 ;; 12721irix* | nonstopux*) 12722 symcode='[BCDEGRST]' 12723 ;; 12724osf*) 12725 symcode='[BCDEGQRST]' 12726 ;; 12727solaris*) 12728 symcode='[BDRT]' 12729 ;; 12730sco3.2v5*) 12731 symcode='[DT]' 12732 ;; 12733sysv4.2uw2*) 12734 symcode='[DT]' 12735 ;; 12736sysv5* | sco5v6* | unixware* | OpenUNIX*) 12737 symcode='[ABDT]' 12738 ;; 12739sysv4) 12740 symcode='[DFNSTU]' 12741 ;; 12742esac 12743 12744# If we're using GNU nm, then use its standard symbol codes. 12745case `$NM -V 2>&1` in 12746*GNU* | *'with BFD'*) 12747 symcode='[ABCDGIRSTW]' ;; 12748esac 12749 12750if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12751 # Gets list of data symbols to import. 12752 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12753 # Adjust the below global symbol transforms to fixup imported variables. 12754 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12755 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12756 lt_c_name_lib_hook="\ 12757 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12758 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12759else 12760 # Disable hooks by default. 12761 lt_cv_sys_global_symbol_to_import= 12762 lt_cdecl_hook= 12763 lt_c_name_hook= 12764 lt_c_name_lib_hook= 12765fi 12766 12767# Transform an extracted symbol line into a proper C declaration. 12768# Some systems (esp. on ia64) link data and code symbols differently, 12769# so use this general approach. 12770lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12771$lt_cdecl_hook\ 12772" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12773" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12774 12775# Transform an extracted symbol line into symbol name and symbol address 12776lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12777$lt_c_name_hook\ 12778" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12779" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12780 12781# Transform an extracted symbol line into symbol name with lib prefix and 12782# symbol address. 12783lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12784$lt_c_name_lib_hook\ 12785" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12786" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12787" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12788 12789# Handle CRLF in mingw tool chain 12790opt_cr= 12791case $build_os in 12792mingw*) 12793 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12794 ;; 12795esac 12796 12797# Try without a prefix underscore, then with it. 12798for ac_symprfx in "" "_"; do 12799 12800 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12801 symxfrm="\\1 $ac_symprfx\\2 \\2" 12802 12803 # Write the raw and C identifiers. 12804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12805 # Fake it for dumpbin and say T for any non-static function, 12806 # D for any global variable and I for any imported variable. 12807 # Also find C++ and __fastcall symbols from MSVC++, 12808 # which start with @ or ?. 12809 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12810" {last_section=section; section=\$ 3};"\ 12811" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12812" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12813" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12814" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12815" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12816" \$ 0!~/External *\|/{next};"\ 12817" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12818" {if(hide[section]) next};"\ 12819" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12820" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12821" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12822" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12823" ' prfx=^$ac_symprfx" 12824 else 12825 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12826 fi 12827 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12828 12829 # Check to see that the pipe works correctly. 12830 pipe_works=no 12831 12832 rm -f conftest* 12833 cat > conftest.$ac_ext <<_LT_EOF 12834#ifdef __cplusplus 12835extern "C" { 12836#endif 12837char nm_test_var; 12838void nm_test_func(void); 12839void nm_test_func(void){} 12840#ifdef __cplusplus 12841} 12842#endif 12843int main(){nm_test_var='a';nm_test_func();return(0);} 12844_LT_EOF 12845 12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12847 (eval $ac_compile) 2>&5 12848 ac_status=$? 12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12850 test $ac_status = 0; }; then 12851 # Now try to grab the symbols. 12852 nlist=conftest.nm 12853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12854 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12855 ac_status=$? 12856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12857 test $ac_status = 0; } && test -s "$nlist"; then 12858 # Try sorting and uniquifying the output. 12859 if sort "$nlist" | uniq > "$nlist"T; then 12860 mv -f "$nlist"T "$nlist" 12861 else 12862 rm -f "$nlist"T 12863 fi 12864 12865 # Make sure that we snagged all the symbols we need. 12866 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12867 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12868 cat <<_LT_EOF > conftest.$ac_ext 12869/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12870#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12871/* DATA imports from DLLs on WIN32 can't be const, because runtime 12872 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12873# define LT_DLSYM_CONST 12874#elif defined __osf__ 12875/* This system does not cope well with relocations in const data. */ 12876# define LT_DLSYM_CONST 12877#else 12878# define LT_DLSYM_CONST const 12879#endif 12880 12881#ifdef __cplusplus 12882extern "C" { 12883#endif 12884 12885_LT_EOF 12886 # Now generate the symbol file. 12887 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12888 12889 cat <<_LT_EOF >> conftest.$ac_ext 12890 12891/* The mapping between symbol names and symbols. */ 12892LT_DLSYM_CONST struct { 12893 const char *name; 12894 void *address; 12895} 12896lt__PROGRAM__LTX_preloaded_symbols[] = 12897{ 12898 { "@PROGRAM@", (void *) 0 }, 12899_LT_EOF 12900 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12901 cat <<\_LT_EOF >> conftest.$ac_ext 12902 {0, (void *) 0} 12903}; 12904 12905/* This works around a problem in FreeBSD linker */ 12906#ifdef FREEBSD_WORKAROUND 12907static const void *lt_preloaded_setup() { 12908 return lt__PROGRAM__LTX_preloaded_symbols; 12909} 12910#endif 12911 12912#ifdef __cplusplus 12913} 12914#endif 12915_LT_EOF 12916 # Now try linking the two files. 12917 mv conftest.$ac_objext conftstm.$ac_objext 12918 lt_globsym_save_LIBS=$LIBS 12919 lt_globsym_save_CFLAGS=$CFLAGS 12920 LIBS=conftstm.$ac_objext 12921 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12923 (eval $ac_link) 2>&5 12924 ac_status=$? 12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12926 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12927 pipe_works=yes 12928 fi 12929 LIBS=$lt_globsym_save_LIBS 12930 CFLAGS=$lt_globsym_save_CFLAGS 12931 else 12932 echo "cannot find nm_test_func in $nlist" >&5 12933 fi 12934 else 12935 echo "cannot find nm_test_var in $nlist" >&5 12936 fi 12937 else 12938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12939 fi 12940 else 12941 echo "$progname: failed program was:" >&5 12942 cat conftest.$ac_ext >&5 12943 fi 12944 rm -rf conftest* conftst* 12945 12946 # Do not use the global_symbol_pipe unless it works. 12947 if test yes = "$pipe_works"; then 12948 break 12949 else 12950 lt_cv_sys_global_symbol_pipe= 12951 fi 12952done 12953 12954fi 12955 12956if test -z "$lt_cv_sys_global_symbol_pipe"; then 12957 lt_cv_sys_global_symbol_to_cdecl= 12958fi 12959if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12961$as_echo "failed" >&6; } 12962else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12964$as_echo "ok" >&6; } 12965fi 12966 12967# Response file support. 12968if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12969 nm_file_list_spec='@' 12970elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12971 nm_file_list_spec='@' 12972fi 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13011$as_echo_n "checking for sysroot... " >&6; } 13012 13013# Check whether --with-sysroot was given. 13014if test "${with_sysroot+set}" = set; then : 13015 withval=$with_sysroot; 13016else 13017 with_sysroot=no 13018fi 13019 13020 13021lt_sysroot= 13022case $with_sysroot in #( 13023 yes) 13024 if test yes = "$GCC"; then 13025 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13026 fi 13027 ;; #( 13028 /*) 13029 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13030 ;; #( 13031 no|'') 13032 ;; #( 13033 *) 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13035$as_echo "$with_sysroot" >&6; } 13036 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13037 ;; 13038esac 13039 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13041$as_echo "${lt_sysroot:-no}" >&6; } 13042 13043 13044 13045 13046 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13048$as_echo_n "checking for a working dd... " >&6; } 13049if ${ac_cv_path_lt_DD+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 printf 0123456789abcdef0123456789abcdef >conftest.i 13053cat conftest.i conftest.i >conftest2.i 13054: ${lt_DD:=$DD} 13055if test -z "$lt_DD"; then 13056 ac_path_lt_DD_found=false 13057 # Loop through the user's path and test for each of PROGNAME-LIST 13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13059for as_dir in $PATH 13060do 13061 IFS=$as_save_IFS 13062 test -z "$as_dir" && as_dir=. 13063 for ac_prog in dd; do 13064 for ac_exec_ext in '' $ac_executable_extensions; do 13065 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13066 as_fn_executable_p "$ac_path_lt_DD" || continue 13067if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13068 cmp -s conftest.i conftest.out \ 13069 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13070fi 13071 $ac_path_lt_DD_found && break 3 13072 done 13073 done 13074 done 13075IFS=$as_save_IFS 13076 if test -z "$ac_cv_path_lt_DD"; then 13077 : 13078 fi 13079else 13080 ac_cv_path_lt_DD=$lt_DD 13081fi 13082 13083rm -f conftest.i conftest2.i conftest.out 13084fi 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13086$as_echo "$ac_cv_path_lt_DD" >&6; } 13087 13088 13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13090$as_echo_n "checking how to truncate binary pipes... " >&6; } 13091if ${lt_cv_truncate_bin+:} false; then : 13092 $as_echo_n "(cached) " >&6 13093else 13094 printf 0123456789abcdef0123456789abcdef >conftest.i 13095cat conftest.i conftest.i >conftest2.i 13096lt_cv_truncate_bin= 13097if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13098 cmp -s conftest.i conftest.out \ 13099 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13100fi 13101rm -f conftest.i conftest2.i conftest.out 13102test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13103fi 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13105$as_echo "$lt_cv_truncate_bin" >&6; } 13106 13107 13108 13109 13110 13111 13112 13113# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13114func_cc_basename () 13115{ 13116 for cc_temp in $*""; do 13117 case $cc_temp in 13118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13120 \-*) ;; 13121 *) break;; 13122 esac 13123 done 13124 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13125} 13126 13127# Check whether --enable-libtool-lock was given. 13128if test "${enable_libtool_lock+set}" = set; then : 13129 enableval=$enable_libtool_lock; 13130fi 13131 13132test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13133 13134# Some flags need to be propagated to the compiler or linker for good 13135# libtool support. 13136case $host in 13137ia64-*-hpux*) 13138 # Find out what ABI is being produced by ac_compile, and set mode 13139 # options accordingly. 13140 echo 'int i;' > conftest.$ac_ext 13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13142 (eval $ac_compile) 2>&5 13143 ac_status=$? 13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13145 test $ac_status = 0; }; then 13146 case `/usr/bin/file conftest.$ac_objext` in 13147 *ELF-32*) 13148 HPUX_IA64_MODE=32 13149 ;; 13150 *ELF-64*) 13151 HPUX_IA64_MODE=64 13152 ;; 13153 esac 13154 fi 13155 rm -rf conftest* 13156 ;; 13157*-*-irix6*) 13158 # Find out what ABI is being produced by ac_compile, and set linker 13159 # options accordingly. 13160 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13162 (eval $ac_compile) 2>&5 13163 ac_status=$? 13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13165 test $ac_status = 0; }; then 13166 if test yes = "$lt_cv_prog_gnu_ld"; then 13167 case `/usr/bin/file conftest.$ac_objext` in 13168 *32-bit*) 13169 LD="${LD-ld} -melf32bsmip" 13170 ;; 13171 *N32*) 13172 LD="${LD-ld} -melf32bmipn32" 13173 ;; 13174 *64-bit*) 13175 LD="${LD-ld} -melf64bmip" 13176 ;; 13177 esac 13178 else 13179 case `/usr/bin/file conftest.$ac_objext` in 13180 *32-bit*) 13181 LD="${LD-ld} -32" 13182 ;; 13183 *N32*) 13184 LD="${LD-ld} -n32" 13185 ;; 13186 *64-bit*) 13187 LD="${LD-ld} -64" 13188 ;; 13189 esac 13190 fi 13191 fi 13192 rm -rf conftest* 13193 ;; 13194 13195mips64*-*linux*) 13196 # Find out what ABI is being produced by ac_compile, and set linker 13197 # options accordingly. 13198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13200 (eval $ac_compile) 2>&5 13201 ac_status=$? 13202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13203 test $ac_status = 0; }; then 13204 emul=elf 13205 case `/usr/bin/file conftest.$ac_objext` in 13206 *32-bit*) 13207 emul="${emul}32" 13208 ;; 13209 *64-bit*) 13210 emul="${emul}64" 13211 ;; 13212 esac 13213 case `/usr/bin/file conftest.$ac_objext` in 13214 *MSB*) 13215 emul="${emul}btsmip" 13216 ;; 13217 *LSB*) 13218 emul="${emul}ltsmip" 13219 ;; 13220 esac 13221 case `/usr/bin/file conftest.$ac_objext` in 13222 *N32*) 13223 emul="${emul}n32" 13224 ;; 13225 esac 13226 LD="${LD-ld} -m $emul" 13227 fi 13228 rm -rf conftest* 13229 ;; 13230 13231x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13232s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13233 # Find out what ABI is being produced by ac_compile, and set linker 13234 # options accordingly. Note that the listed cases only cover the 13235 # situations where additional linker options are needed (such as when 13236 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13237 # vice versa); the common cases where no linker options are needed do 13238 # not appear in the list. 13239 echo 'int i;' > conftest.$ac_ext 13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13241 (eval $ac_compile) 2>&5 13242 ac_status=$? 13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13244 test $ac_status = 0; }; then 13245 case `/usr/bin/file conftest.o` in 13246 *32-bit*) 13247 case $host in 13248 x86_64-*kfreebsd*-gnu) 13249 LD="${LD-ld} -m elf_i386_fbsd" 13250 ;; 13251 x86_64-*linux*) 13252 case `/usr/bin/file conftest.o` in 13253 *x86-64*) 13254 LD="${LD-ld} -m elf32_x86_64" 13255 ;; 13256 *) 13257 LD="${LD-ld} -m elf_i386" 13258 ;; 13259 esac 13260 ;; 13261 powerpc64le-*linux*) 13262 LD="${LD-ld} -m elf32lppclinux" 13263 ;; 13264 powerpc64-*linux*) 13265 LD="${LD-ld} -m elf32ppclinux" 13266 ;; 13267 s390x-*linux*) 13268 LD="${LD-ld} -m elf_s390" 13269 ;; 13270 sparc64-*linux*) 13271 LD="${LD-ld} -m elf32_sparc" 13272 ;; 13273 esac 13274 ;; 13275 *64-bit*) 13276 case $host in 13277 x86_64-*kfreebsd*-gnu) 13278 LD="${LD-ld} -m elf_x86_64_fbsd" 13279 ;; 13280 x86_64-*linux*) 13281 LD="${LD-ld} -m elf_x86_64" 13282 ;; 13283 powerpcle-*linux*) 13284 LD="${LD-ld} -m elf64lppc" 13285 ;; 13286 powerpc-*linux*) 13287 LD="${LD-ld} -m elf64ppc" 13288 ;; 13289 s390*-*linux*|s390*-*tpf*) 13290 LD="${LD-ld} -m elf64_s390" 13291 ;; 13292 sparc*-*linux*) 13293 LD="${LD-ld} -m elf64_sparc" 13294 ;; 13295 esac 13296 ;; 13297 esac 13298 fi 13299 rm -rf conftest* 13300 ;; 13301 13302*-*-sco3.2v5*) 13303 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13304 SAVE_CFLAGS=$CFLAGS 13305 CFLAGS="$CFLAGS -belf" 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13307$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13308if ${lt_cv_cc_needs_belf+:} false; then : 13309 $as_echo_n "(cached) " >&6 13310else 13311 ac_ext=c 13312ac_cpp='$CPP $CPPFLAGS' 13313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13315ac_compiler_gnu=$ac_cv_c_compiler_gnu 13316 13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13318/* end confdefs.h. */ 13319 13320int 13321main () 13322{ 13323 13324 ; 13325 return 0; 13326} 13327_ACEOF 13328if ac_fn_c_try_link "$LINENO"; then : 13329 lt_cv_cc_needs_belf=yes 13330else 13331 lt_cv_cc_needs_belf=no 13332fi 13333rm -f core conftest.err conftest.$ac_objext \ 13334 conftest$ac_exeext conftest.$ac_ext 13335 ac_ext=c 13336ac_cpp='$CPP $CPPFLAGS' 13337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13339ac_compiler_gnu=$ac_cv_c_compiler_gnu 13340 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13343$as_echo "$lt_cv_cc_needs_belf" >&6; } 13344 if test yes != "$lt_cv_cc_needs_belf"; then 13345 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13346 CFLAGS=$SAVE_CFLAGS 13347 fi 13348 ;; 13349*-*solaris*) 13350 # Find out what ABI is being produced by ac_compile, and set linker 13351 # options accordingly. 13352 echo 'int i;' > conftest.$ac_ext 13353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13354 (eval $ac_compile) 2>&5 13355 ac_status=$? 13356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13357 test $ac_status = 0; }; then 13358 case `/usr/bin/file conftest.o` in 13359 *64-bit*) 13360 case $lt_cv_prog_gnu_ld in 13361 yes*) 13362 case $host in 13363 i?86-*-solaris*|x86_64-*-solaris*) 13364 LD="${LD-ld} -m elf_x86_64" 13365 ;; 13366 sparc*-*-solaris*) 13367 LD="${LD-ld} -m elf64_sparc" 13368 ;; 13369 esac 13370 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13371 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13372 LD=${LD-ld}_sol2 13373 fi 13374 ;; 13375 *) 13376 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13377 LD="${LD-ld} -64" 13378 fi 13379 ;; 13380 esac 13381 ;; 13382 esac 13383 fi 13384 rm -rf conftest* 13385 ;; 13386esac 13387 13388need_locks=$enable_libtool_lock 13389 13390if test -n "$ac_tool_prefix"; then 13391 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13392set dummy ${ac_tool_prefix}mt; ac_word=$2 13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13394$as_echo_n "checking for $ac_word... " >&6; } 13395if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13396 $as_echo_n "(cached) " >&6 13397else 13398 if test -n "$MANIFEST_TOOL"; then 13399 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13400else 13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13402for as_dir in $PATH 13403do 13404 IFS=$as_save_IFS 13405 test -z "$as_dir" && as_dir=. 13406 for ac_exec_ext in '' $ac_executable_extensions; do 13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13408 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13410 break 2 13411 fi 13412done 13413 done 13414IFS=$as_save_IFS 13415 13416fi 13417fi 13418MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13419if test -n "$MANIFEST_TOOL"; then 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13421$as_echo "$MANIFEST_TOOL" >&6; } 13422else 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13424$as_echo "no" >&6; } 13425fi 13426 13427 13428fi 13429if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13430 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13431 # Extract the first word of "mt", so it can be a program name with args. 13432set dummy mt; ac_word=$2 13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13434$as_echo_n "checking for $ac_word... " >&6; } 13435if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13436 $as_echo_n "(cached) " >&6 13437else 13438 if test -n "$ac_ct_MANIFEST_TOOL"; then 13439 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13440else 13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13442for as_dir in $PATH 13443do 13444 IFS=$as_save_IFS 13445 test -z "$as_dir" && as_dir=. 13446 for ac_exec_ext in '' $ac_executable_extensions; do 13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13448 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13450 break 2 13451 fi 13452done 13453 done 13454IFS=$as_save_IFS 13455 13456fi 13457fi 13458ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13459if test -n "$ac_ct_MANIFEST_TOOL"; then 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13461$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13462else 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13464$as_echo "no" >&6; } 13465fi 13466 13467 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13468 MANIFEST_TOOL=":" 13469 else 13470 case $cross_compiling:$ac_tool_warned in 13471yes:) 13472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13474ac_tool_warned=yes ;; 13475esac 13476 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13477 fi 13478else 13479 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13480fi 13481 13482test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13484$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13485if ${lt_cv_path_mainfest_tool+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487else 13488 lt_cv_path_mainfest_tool=no 13489 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13490 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13491 cat conftest.err >&5 13492 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13493 lt_cv_path_mainfest_tool=yes 13494 fi 13495 rm -f conftest* 13496fi 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13498$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13499if test yes != "$lt_cv_path_mainfest_tool"; then 13500 MANIFEST_TOOL=: 13501fi 13502 13503 13504 13505 13506 13507 13508 case $host_os in 13509 rhapsody* | darwin*) 13510 if test -n "$ac_tool_prefix"; then 13511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13512set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13514$as_echo_n "checking for $ac_word... " >&6; } 13515if ${ac_cv_prog_DSYMUTIL+:} false; then : 13516 $as_echo_n "(cached) " >&6 13517else 13518 if test -n "$DSYMUTIL"; then 13519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13520else 13521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13522for as_dir in $PATH 13523do 13524 IFS=$as_save_IFS 13525 test -z "$as_dir" && as_dir=. 13526 for ac_exec_ext in '' $ac_executable_extensions; do 13527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13530 break 2 13531 fi 13532done 13533 done 13534IFS=$as_save_IFS 13535 13536fi 13537fi 13538DSYMUTIL=$ac_cv_prog_DSYMUTIL 13539if test -n "$DSYMUTIL"; then 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13541$as_echo "$DSYMUTIL" >&6; } 13542else 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13544$as_echo "no" >&6; } 13545fi 13546 13547 13548fi 13549if test -z "$ac_cv_prog_DSYMUTIL"; then 13550 ac_ct_DSYMUTIL=$DSYMUTIL 13551 # Extract the first word of "dsymutil", so it can be a program name with args. 13552set dummy dsymutil; ac_word=$2 13553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13554$as_echo_n "checking for $ac_word... " >&6; } 13555if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13556 $as_echo_n "(cached) " >&6 13557else 13558 if test -n "$ac_ct_DSYMUTIL"; then 13559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13560else 13561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13562for as_dir in $PATH 13563do 13564 IFS=$as_save_IFS 13565 test -z "$as_dir" && as_dir=. 13566 for ac_exec_ext in '' $ac_executable_extensions; do 13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13570 break 2 13571 fi 13572done 13573 done 13574IFS=$as_save_IFS 13575 13576fi 13577fi 13578ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13579if test -n "$ac_ct_DSYMUTIL"; then 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13581$as_echo "$ac_ct_DSYMUTIL" >&6; } 13582else 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13584$as_echo "no" >&6; } 13585fi 13586 13587 if test "x$ac_ct_DSYMUTIL" = x; then 13588 DSYMUTIL=":" 13589 else 13590 case $cross_compiling:$ac_tool_warned in 13591yes:) 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13594ac_tool_warned=yes ;; 13595esac 13596 DSYMUTIL=$ac_ct_DSYMUTIL 13597 fi 13598else 13599 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13600fi 13601 13602 if test -n "$ac_tool_prefix"; then 13603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13604set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13606$as_echo_n "checking for $ac_word... " >&6; } 13607if ${ac_cv_prog_NMEDIT+:} false; then : 13608 $as_echo_n "(cached) " >&6 13609else 13610 if test -n "$NMEDIT"; then 13611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13612else 13613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13614for as_dir in $PATH 13615do 13616 IFS=$as_save_IFS 13617 test -z "$as_dir" && as_dir=. 13618 for ac_exec_ext in '' $ac_executable_extensions; do 13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13622 break 2 13623 fi 13624done 13625 done 13626IFS=$as_save_IFS 13627 13628fi 13629fi 13630NMEDIT=$ac_cv_prog_NMEDIT 13631if test -n "$NMEDIT"; then 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13633$as_echo "$NMEDIT" >&6; } 13634else 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13636$as_echo "no" >&6; } 13637fi 13638 13639 13640fi 13641if test -z "$ac_cv_prog_NMEDIT"; then 13642 ac_ct_NMEDIT=$NMEDIT 13643 # Extract the first word of "nmedit", so it can be a program name with args. 13644set dummy nmedit; ac_word=$2 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13646$as_echo_n "checking for $ac_word... " >&6; } 13647if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13648 $as_echo_n "(cached) " >&6 13649else 13650 if test -n "$ac_ct_NMEDIT"; then 13651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13652else 13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13654for as_dir in $PATH 13655do 13656 IFS=$as_save_IFS 13657 test -z "$as_dir" && as_dir=. 13658 for ac_exec_ext in '' $ac_executable_extensions; do 13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13660 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13662 break 2 13663 fi 13664done 13665 done 13666IFS=$as_save_IFS 13667 13668fi 13669fi 13670ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13671if test -n "$ac_ct_NMEDIT"; then 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13673$as_echo "$ac_ct_NMEDIT" >&6; } 13674else 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13676$as_echo "no" >&6; } 13677fi 13678 13679 if test "x$ac_ct_NMEDIT" = x; then 13680 NMEDIT=":" 13681 else 13682 case $cross_compiling:$ac_tool_warned in 13683yes:) 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13686ac_tool_warned=yes ;; 13687esac 13688 NMEDIT=$ac_ct_NMEDIT 13689 fi 13690else 13691 NMEDIT="$ac_cv_prog_NMEDIT" 13692fi 13693 13694 if test -n "$ac_tool_prefix"; then 13695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13696set dummy ${ac_tool_prefix}lipo; ac_word=$2 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13698$as_echo_n "checking for $ac_word... " >&6; } 13699if ${ac_cv_prog_LIPO+:} false; then : 13700 $as_echo_n "(cached) " >&6 13701else 13702 if test -n "$LIPO"; then 13703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13704else 13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13706for as_dir in $PATH 13707do 13708 IFS=$as_save_IFS 13709 test -z "$as_dir" && as_dir=. 13710 for ac_exec_ext in '' $ac_executable_extensions; do 13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13714 break 2 13715 fi 13716done 13717 done 13718IFS=$as_save_IFS 13719 13720fi 13721fi 13722LIPO=$ac_cv_prog_LIPO 13723if test -n "$LIPO"; then 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13725$as_echo "$LIPO" >&6; } 13726else 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13728$as_echo "no" >&6; } 13729fi 13730 13731 13732fi 13733if test -z "$ac_cv_prog_LIPO"; then 13734 ac_ct_LIPO=$LIPO 13735 # Extract the first word of "lipo", so it can be a program name with args. 13736set dummy lipo; ac_word=$2 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13738$as_echo_n "checking for $ac_word... " >&6; } 13739if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13740 $as_echo_n "(cached) " >&6 13741else 13742 if test -n "$ac_ct_LIPO"; then 13743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13744else 13745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13746for as_dir in $PATH 13747do 13748 IFS=$as_save_IFS 13749 test -z "$as_dir" && as_dir=. 13750 for ac_exec_ext in '' $ac_executable_extensions; do 13751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13752 ac_cv_prog_ac_ct_LIPO="lipo" 13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13754 break 2 13755 fi 13756done 13757 done 13758IFS=$as_save_IFS 13759 13760fi 13761fi 13762ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13763if test -n "$ac_ct_LIPO"; then 13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13765$as_echo "$ac_ct_LIPO" >&6; } 13766else 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13768$as_echo "no" >&6; } 13769fi 13770 13771 if test "x$ac_ct_LIPO" = x; then 13772 LIPO=":" 13773 else 13774 case $cross_compiling:$ac_tool_warned in 13775yes:) 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13778ac_tool_warned=yes ;; 13779esac 13780 LIPO=$ac_ct_LIPO 13781 fi 13782else 13783 LIPO="$ac_cv_prog_LIPO" 13784fi 13785 13786 if test -n "$ac_tool_prefix"; then 13787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13788set dummy ${ac_tool_prefix}otool; ac_word=$2 13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13790$as_echo_n "checking for $ac_word... " >&6; } 13791if ${ac_cv_prog_OTOOL+:} false; then : 13792 $as_echo_n "(cached) " >&6 13793else 13794 if test -n "$OTOOL"; then 13795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13796else 13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13798for as_dir in $PATH 13799do 13800 IFS=$as_save_IFS 13801 test -z "$as_dir" && as_dir=. 13802 for ac_exec_ext in '' $ac_executable_extensions; do 13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13806 break 2 13807 fi 13808done 13809 done 13810IFS=$as_save_IFS 13811 13812fi 13813fi 13814OTOOL=$ac_cv_prog_OTOOL 13815if test -n "$OTOOL"; then 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13817$as_echo "$OTOOL" >&6; } 13818else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13820$as_echo "no" >&6; } 13821fi 13822 13823 13824fi 13825if test -z "$ac_cv_prog_OTOOL"; then 13826 ac_ct_OTOOL=$OTOOL 13827 # Extract the first word of "otool", so it can be a program name with args. 13828set dummy otool; ac_word=$2 13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13830$as_echo_n "checking for $ac_word... " >&6; } 13831if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 if test -n "$ac_ct_OTOOL"; then 13835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13836else 13837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13838for as_dir in $PATH 13839do 13840 IFS=$as_save_IFS 13841 test -z "$as_dir" && as_dir=. 13842 for ac_exec_ext in '' $ac_executable_extensions; do 13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13844 ac_cv_prog_ac_ct_OTOOL="otool" 13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13846 break 2 13847 fi 13848done 13849 done 13850IFS=$as_save_IFS 13851 13852fi 13853fi 13854ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13855if test -n "$ac_ct_OTOOL"; then 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13857$as_echo "$ac_ct_OTOOL" >&6; } 13858else 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13860$as_echo "no" >&6; } 13861fi 13862 13863 if test "x$ac_ct_OTOOL" = x; then 13864 OTOOL=":" 13865 else 13866 case $cross_compiling:$ac_tool_warned in 13867yes:) 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13870ac_tool_warned=yes ;; 13871esac 13872 OTOOL=$ac_ct_OTOOL 13873 fi 13874else 13875 OTOOL="$ac_cv_prog_OTOOL" 13876fi 13877 13878 if test -n "$ac_tool_prefix"; then 13879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13880set dummy ${ac_tool_prefix}otool64; ac_word=$2 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13882$as_echo_n "checking for $ac_word... " >&6; } 13883if ${ac_cv_prog_OTOOL64+:} false; then : 13884 $as_echo_n "(cached) " >&6 13885else 13886 if test -n "$OTOOL64"; then 13887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13888else 13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13890for as_dir in $PATH 13891do 13892 IFS=$as_save_IFS 13893 test -z "$as_dir" && as_dir=. 13894 for ac_exec_ext in '' $ac_executable_extensions; do 13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13898 break 2 13899 fi 13900done 13901 done 13902IFS=$as_save_IFS 13903 13904fi 13905fi 13906OTOOL64=$ac_cv_prog_OTOOL64 13907if test -n "$OTOOL64"; then 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13909$as_echo "$OTOOL64" >&6; } 13910else 13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13912$as_echo "no" >&6; } 13913fi 13914 13915 13916fi 13917if test -z "$ac_cv_prog_OTOOL64"; then 13918 ac_ct_OTOOL64=$OTOOL64 13919 # Extract the first word of "otool64", so it can be a program name with args. 13920set dummy otool64; ac_word=$2 13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13922$as_echo_n "checking for $ac_word... " >&6; } 13923if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13924 $as_echo_n "(cached) " >&6 13925else 13926 if test -n "$ac_ct_OTOOL64"; then 13927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13928else 13929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13930for as_dir in $PATH 13931do 13932 IFS=$as_save_IFS 13933 test -z "$as_dir" && as_dir=. 13934 for ac_exec_ext in '' $ac_executable_extensions; do 13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13936 ac_cv_prog_ac_ct_OTOOL64="otool64" 13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13938 break 2 13939 fi 13940done 13941 done 13942IFS=$as_save_IFS 13943 13944fi 13945fi 13946ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13947if test -n "$ac_ct_OTOOL64"; then 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13949$as_echo "$ac_ct_OTOOL64" >&6; } 13950else 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13952$as_echo "no" >&6; } 13953fi 13954 13955 if test "x$ac_ct_OTOOL64" = x; then 13956 OTOOL64=":" 13957 else 13958 case $cross_compiling:$ac_tool_warned in 13959yes:) 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13962ac_tool_warned=yes ;; 13963esac 13964 OTOOL64=$ac_ct_OTOOL64 13965 fi 13966else 13967 OTOOL64="$ac_cv_prog_OTOOL64" 13968fi 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13997$as_echo_n "checking for -single_module linker flag... " >&6; } 13998if ${lt_cv_apple_cc_single_mod+:} false; then : 13999 $as_echo_n "(cached) " >&6 14000else 14001 lt_cv_apple_cc_single_mod=no 14002 if test -z "$LT_MULTI_MODULE"; then 14003 # By default we will add the -single_module flag. You can override 14004 # by either setting the environment variable LT_MULTI_MODULE 14005 # non-empty at configure time, or by adding -multi_module to the 14006 # link flags. 14007 rm -rf libconftest.dylib* 14008 echo "int foo(void){return 1;}" > conftest.c 14009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14010-dynamiclib -Wl,-single_module conftest.c" >&5 14011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14013 _lt_result=$? 14014 # If there is a non-empty error log, and "single_module" 14015 # appears in it, assume the flag caused a linker warning 14016 if test -s conftest.err && $GREP single_module conftest.err; then 14017 cat conftest.err >&5 14018 # Otherwise, if the output was created with a 0 exit code from 14019 # the compiler, it worked. 14020 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14021 lt_cv_apple_cc_single_mod=yes 14022 else 14023 cat conftest.err >&5 14024 fi 14025 rm -rf libconftest.dylib* 14026 rm -f conftest.* 14027 fi 14028fi 14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14030$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14031 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14033$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14034if ${lt_cv_ld_exported_symbols_list+:} false; then : 14035 $as_echo_n "(cached) " >&6 14036else 14037 lt_cv_ld_exported_symbols_list=no 14038 save_LDFLAGS=$LDFLAGS 14039 echo "_main" > conftest.sym 14040 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043 14044int 14045main () 14046{ 14047 14048 ; 14049 return 0; 14050} 14051_ACEOF 14052if ac_fn_c_try_link "$LINENO"; then : 14053 lt_cv_ld_exported_symbols_list=yes 14054else 14055 lt_cv_ld_exported_symbols_list=no 14056fi 14057rm -f core conftest.err conftest.$ac_objext \ 14058 conftest$ac_exeext conftest.$ac_ext 14059 LDFLAGS=$save_LDFLAGS 14060 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14063$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14064 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14066$as_echo_n "checking for -force_load linker flag... " >&6; } 14067if ${lt_cv_ld_force_load+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 lt_cv_ld_force_load=no 14071 cat > conftest.c << _LT_EOF 14072int forced_loaded() { return 2;} 14073_LT_EOF 14074 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14075 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14076 echo "$AR cru libconftest.a conftest.o" >&5 14077 $AR cru libconftest.a conftest.o 2>&5 14078 echo "$RANLIB libconftest.a" >&5 14079 $RANLIB libconftest.a 2>&5 14080 cat > conftest.c << _LT_EOF 14081int main() { return 0;} 14082_LT_EOF 14083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14085 _lt_result=$? 14086 if test -s conftest.err && $GREP force_load conftest.err; then 14087 cat conftest.err >&5 14088 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14089 lt_cv_ld_force_load=yes 14090 else 14091 cat conftest.err >&5 14092 fi 14093 rm -f conftest.err libconftest.a conftest conftest.c 14094 rm -rf conftest.dSYM 14095 14096fi 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14098$as_echo "$lt_cv_ld_force_load" >&6; } 14099 case $host_os in 14100 rhapsody* | darwin1.[012]) 14101 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14102 darwin1.*) 14103 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14104 darwin*) # darwin 5.x on 14105 # if running on 10.5 or later, the deployment target defaults 14106 # to the OS version, if on x86, and 10.4, the deployment 14107 # target defaults to 10.4. Don't you love it? 14108 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14109 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14110 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14111 10.[012][,.]*) 14112 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14113 10.*) 14114 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14115 esac 14116 ;; 14117 esac 14118 if test yes = "$lt_cv_apple_cc_single_mod"; then 14119 _lt_dar_single_mod='$single_module' 14120 fi 14121 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14122 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14123 else 14124 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14125 fi 14126 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14127 _lt_dsymutil='~$DSYMUTIL $lib || :' 14128 else 14129 _lt_dsymutil= 14130 fi 14131 ;; 14132 esac 14133 14134# func_munge_path_list VARIABLE PATH 14135# ----------------------------------- 14136# VARIABLE is name of variable containing _space_ separated list of 14137# directories to be munged by the contents of PATH, which is string 14138# having a format: 14139# "DIR[:DIR]:" 14140# string "DIR[ DIR]" will be prepended to VARIABLE 14141# ":DIR[:DIR]" 14142# string "DIR[ DIR]" will be appended to VARIABLE 14143# "DIRP[:DIRP]::[DIRA:]DIRA" 14144# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14145# "DIRA[ DIRA]" will be appended to VARIABLE 14146# "DIR[:DIR]" 14147# VARIABLE will be replaced by "DIR[ DIR]" 14148func_munge_path_list () 14149{ 14150 case x$2 in 14151 x) 14152 ;; 14153 *:) 14154 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14155 ;; 14156 x:*) 14157 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14158 ;; 14159 *::*) 14160 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14161 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14162 ;; 14163 *) 14164 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14165 ;; 14166 esac 14167} 14168 14169for ac_header in dlfcn.h 14170do : 14171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14172" 14173if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14174 cat >>confdefs.h <<_ACEOF 14175#define HAVE_DLFCN_H 1 14176_ACEOF 14177 14178fi 14179 14180done 14181 14182 14183 14184 14185 14186# Set options 14187 14188 14189 14190 enable_dlopen=no 14191 14192 14193 enable_win32_dll=no 14194 14195 14196 # Check whether --enable-shared was given. 14197if test "${enable_shared+set}" = set; then : 14198 enableval=$enable_shared; p=${PACKAGE-default} 14199 case $enableval in 14200 yes) enable_shared=yes ;; 14201 no) enable_shared=no ;; 14202 *) 14203 enable_shared=no 14204 # Look at the argument we got. We use all the common list separators. 14205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14206 for pkg in $enableval; do 14207 IFS=$lt_save_ifs 14208 if test "X$pkg" = "X$p"; then 14209 enable_shared=yes 14210 fi 14211 done 14212 IFS=$lt_save_ifs 14213 ;; 14214 esac 14215else 14216 enable_shared=yes 14217fi 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229# Check whether --with-pic was given. 14230if test "${with_pic+set}" = set; then : 14231 withval=$with_pic; lt_p=${PACKAGE-default} 14232 case $withval in 14233 yes|no) pic_mode=$withval ;; 14234 *) 14235 pic_mode=default 14236 # Look at the argument we got. We use all the common list separators. 14237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14238 for lt_pkg in $withval; do 14239 IFS=$lt_save_ifs 14240 if test "X$lt_pkg" = "X$lt_p"; then 14241 pic_mode=yes 14242 fi 14243 done 14244 IFS=$lt_save_ifs 14245 ;; 14246 esac 14247else 14248 pic_mode=default 14249fi 14250 14251 14252 14253 14254 14255 14256 14257 14258 # Check whether --enable-fast-install was given. 14259if test "${enable_fast_install+set}" = set; then : 14260 enableval=$enable_fast_install; p=${PACKAGE-default} 14261 case $enableval in 14262 yes) enable_fast_install=yes ;; 14263 no) enable_fast_install=no ;; 14264 *) 14265 enable_fast_install=no 14266 # Look at the argument we got. We use all the common list separators. 14267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14268 for pkg in $enableval; do 14269 IFS=$lt_save_ifs 14270 if test "X$pkg" = "X$p"; then 14271 enable_fast_install=yes 14272 fi 14273 done 14274 IFS=$lt_save_ifs 14275 ;; 14276 esac 14277else 14278 enable_fast_install=yes 14279fi 14280 14281 14282 14283 14284 14285 14286 14287 14288 shared_archive_member_spec= 14289case $host,$enable_shared in 14290power*-*-aix[5-9]*,yes) 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14292$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14293 14294# Check whether --with-aix-soname was given. 14295if test "${with_aix_soname+set}" = set; then : 14296 withval=$with_aix_soname; case $withval in 14297 aix|svr4|both) 14298 ;; 14299 *) 14300 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14301 ;; 14302 esac 14303 lt_cv_with_aix_soname=$with_aix_soname 14304else 14305 if ${lt_cv_with_aix_soname+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307else 14308 lt_cv_with_aix_soname=aix 14309fi 14310 14311 with_aix_soname=$lt_cv_with_aix_soname 14312fi 14313 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14315$as_echo "$with_aix_soname" >&6; } 14316 if test aix != "$with_aix_soname"; then 14317 # For the AIX way of multilib, we name the shared archive member 14318 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14319 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14320 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14321 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14322 if test 64 = "${OBJECT_MODE-32}"; then 14323 shared_archive_member_spec=shr_64 14324 else 14325 shared_archive_member_spec=shr 14326 fi 14327 fi 14328 ;; 14329*) 14330 with_aix_soname=aix 14331 ;; 14332esac 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343# This can be used to rebuild libtool when needed 14344LIBTOOL_DEPS=$ltmain 14345 14346# Always use our own libtool. 14347LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378test -z "$LN_S" && LN_S="ln -s" 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393if test -n "${ZSH_VERSION+set}"; then 14394 setopt NO_GLOB_SUBST 14395fi 14396 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14398$as_echo_n "checking for objdir... " >&6; } 14399if ${lt_cv_objdir+:} false; then : 14400 $as_echo_n "(cached) " >&6 14401else 14402 rm -f .libs 2>/dev/null 14403mkdir .libs 2>/dev/null 14404if test -d .libs; then 14405 lt_cv_objdir=.libs 14406else 14407 # MS-DOS does not allow filenames that begin with a dot. 14408 lt_cv_objdir=_libs 14409fi 14410rmdir .libs 2>/dev/null 14411fi 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14413$as_echo "$lt_cv_objdir" >&6; } 14414objdir=$lt_cv_objdir 14415 14416 14417 14418 14419 14420cat >>confdefs.h <<_ACEOF 14421#define LT_OBJDIR "$lt_cv_objdir/" 14422_ACEOF 14423 14424 14425 14426 14427case $host_os in 14428aix3*) 14429 # AIX sometimes has problems with the GCC collect2 program. For some 14430 # reason, if we set the COLLECT_NAMES environment variable, the problems 14431 # vanish in a puff of smoke. 14432 if test set != "${COLLECT_NAMES+set}"; then 14433 COLLECT_NAMES= 14434 export COLLECT_NAMES 14435 fi 14436 ;; 14437esac 14438 14439# Global variables: 14440ofile=libtool 14441can_build_shared=yes 14442 14443# All known linkers require a '.a' archive for static linking (except MSVC, 14444# which needs '.lib'). 14445libext=a 14446 14447with_gnu_ld=$lt_cv_prog_gnu_ld 14448 14449old_CC=$CC 14450old_CFLAGS=$CFLAGS 14451 14452# Set sane defaults for various variables 14453test -z "$CC" && CC=cc 14454test -z "$LTCC" && LTCC=$CC 14455test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14456test -z "$LD" && LD=ld 14457test -z "$ac_objext" && ac_objext=o 14458 14459func_cc_basename $compiler 14460cc_basename=$func_cc_basename_result 14461 14462 14463# Only perform the check for file, if the check method requires it 14464test -z "$MAGIC_CMD" && MAGIC_CMD=file 14465case $deplibs_check_method in 14466file_magic*) 14467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14469$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14470if ${lt_cv_path_MAGIC_CMD+:} false; then : 14471 $as_echo_n "(cached) " >&6 14472else 14473 case $MAGIC_CMD in 14474[\\/*] | ?:[\\/]*) 14475 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14476 ;; 14477*) 14478 lt_save_MAGIC_CMD=$MAGIC_CMD 14479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14481 for ac_dir in $ac_dummy; do 14482 IFS=$lt_save_ifs 14483 test -z "$ac_dir" && ac_dir=. 14484 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14485 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14486 if test -n "$file_magic_test_file"; then 14487 case $deplibs_check_method in 14488 "file_magic "*) 14489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14490 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14492 $EGREP "$file_magic_regex" > /dev/null; then 14493 : 14494 else 14495 cat <<_LT_EOF 1>&2 14496 14497*** Warning: the command libtool uses to detect shared libraries, 14498*** $file_magic_cmd, produces output that libtool cannot recognize. 14499*** The result is that libtool may fail to recognize shared libraries 14500*** as such. This will affect the creation of libtool libraries that 14501*** depend on shared libraries, but programs linked with such libtool 14502*** libraries will work regardless of this problem. Nevertheless, you 14503*** may want to report the problem to your system manager and/or to 14504*** bug-libtool@gnu.org 14505 14506_LT_EOF 14507 fi ;; 14508 esac 14509 fi 14510 break 14511 fi 14512 done 14513 IFS=$lt_save_ifs 14514 MAGIC_CMD=$lt_save_MAGIC_CMD 14515 ;; 14516esac 14517fi 14518 14519MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14520if test -n "$MAGIC_CMD"; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14522$as_echo "$MAGIC_CMD" >&6; } 14523else 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14525$as_echo "no" >&6; } 14526fi 14527 14528 14529 14530 14531 14532if test -z "$lt_cv_path_MAGIC_CMD"; then 14533 if test -n "$ac_tool_prefix"; then 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14535$as_echo_n "checking for file... " >&6; } 14536if ${lt_cv_path_MAGIC_CMD+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 case $MAGIC_CMD in 14540[\\/*] | ?:[\\/]*) 14541 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14542 ;; 14543*) 14544 lt_save_MAGIC_CMD=$MAGIC_CMD 14545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14547 for ac_dir in $ac_dummy; do 14548 IFS=$lt_save_ifs 14549 test -z "$ac_dir" && ac_dir=. 14550 if test -f "$ac_dir/file"; then 14551 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14552 if test -n "$file_magic_test_file"; then 14553 case $deplibs_check_method in 14554 "file_magic "*) 14555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14556 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14558 $EGREP "$file_magic_regex" > /dev/null; then 14559 : 14560 else 14561 cat <<_LT_EOF 1>&2 14562 14563*** Warning: the command libtool uses to detect shared libraries, 14564*** $file_magic_cmd, produces output that libtool cannot recognize. 14565*** The result is that libtool may fail to recognize shared libraries 14566*** as such. This will affect the creation of libtool libraries that 14567*** depend on shared libraries, but programs linked with such libtool 14568*** libraries will work regardless of this problem. Nevertheless, you 14569*** may want to report the problem to your system manager and/or to 14570*** bug-libtool@gnu.org 14571 14572_LT_EOF 14573 fi ;; 14574 esac 14575 fi 14576 break 14577 fi 14578 done 14579 IFS=$lt_save_ifs 14580 MAGIC_CMD=$lt_save_MAGIC_CMD 14581 ;; 14582esac 14583fi 14584 14585MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14586if test -n "$MAGIC_CMD"; then 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14588$as_echo "$MAGIC_CMD" >&6; } 14589else 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14591$as_echo "no" >&6; } 14592fi 14593 14594 14595 else 14596 MAGIC_CMD=: 14597 fi 14598fi 14599 14600 fi 14601 ;; 14602esac 14603 14604# Use C for the default configuration in the libtool script 14605 14606lt_save_CC=$CC 14607ac_ext=c 14608ac_cpp='$CPP $CPPFLAGS' 14609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14611ac_compiler_gnu=$ac_cv_c_compiler_gnu 14612 14613 14614# Source file extension for C test sources. 14615ac_ext=c 14616 14617# Object file extension for compiled C test sources. 14618objext=o 14619objext=$objext 14620 14621# Code to be used in simple compile tests 14622lt_simple_compile_test_code="int some_variable = 0;" 14623 14624# Code to be used in simple link tests 14625lt_simple_link_test_code='int main(){return(0);}' 14626 14627 14628 14629 14630 14631 14632 14633# If no C compiler was specified, use CC. 14634LTCC=${LTCC-"$CC"} 14635 14636# If no C compiler flags were specified, use CFLAGS. 14637LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14638 14639# Allow CC to be a program name with arguments. 14640compiler=$CC 14641 14642# Save the default compiler, since it gets overwritten when the other 14643# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14644compiler_DEFAULT=$CC 14645 14646# save warnings/boilerplate of simple test code 14647ac_outfile=conftest.$ac_objext 14648echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14649eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14650_lt_compiler_boilerplate=`cat conftest.err` 14651$RM conftest* 14652 14653ac_outfile=conftest.$ac_objext 14654echo "$lt_simple_link_test_code" >conftest.$ac_ext 14655eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14656_lt_linker_boilerplate=`cat conftest.err` 14657$RM -r conftest* 14658 14659 14660if test -n "$compiler"; then 14661 14662lt_prog_compiler_no_builtin_flag= 14663 14664if test yes = "$GCC"; then 14665 case $cc_basename in 14666 nvcc*) 14667 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14668 *) 14669 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14670 esac 14671 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14673$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14674if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14675 $as_echo_n "(cached) " >&6 14676else 14677 lt_cv_prog_compiler_rtti_exceptions=no 14678 ac_outfile=conftest.$ac_objext 14679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14680 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14681 # Insert the option either (1) after the last *FLAGS variable, or 14682 # (2) before a word containing "conftest.", or (3) at the end. 14683 # Note that $ac_compile itself does not contain backslashes and begins 14684 # with a dollar sign (not a hyphen), so the echo should work correctly. 14685 # The option is referenced via a variable to avoid confusing sed. 14686 lt_compile=`echo "$ac_compile" | $SED \ 14687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14689 -e 's:$: $lt_compiler_flag:'` 14690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14691 (eval "$lt_compile" 2>conftest.err) 14692 ac_status=$? 14693 cat conftest.err >&5 14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14695 if (exit $ac_status) && test -s "$ac_outfile"; then 14696 # The compiler can only warn and ignore the option if not recognized 14697 # So say no if there are warnings other than the usual output. 14698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14701 lt_cv_prog_compiler_rtti_exceptions=yes 14702 fi 14703 fi 14704 $RM conftest* 14705 14706fi 14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14708$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14709 14710if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14711 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14712else 14713 : 14714fi 14715 14716fi 14717 14718 14719 14720 14721 14722 14723 lt_prog_compiler_wl= 14724lt_prog_compiler_pic= 14725lt_prog_compiler_static= 14726 14727 14728 if test yes = "$GCC"; then 14729 lt_prog_compiler_wl='-Wl,' 14730 lt_prog_compiler_static='-static' 14731 14732 case $host_os in 14733 aix*) 14734 # All AIX code is PIC. 14735 if test ia64 = "$host_cpu"; then 14736 # AIX 5 now supports IA64 processor 14737 lt_prog_compiler_static='-Bstatic' 14738 fi 14739 lt_prog_compiler_pic='-fPIC' 14740 ;; 14741 14742 amigaos*) 14743 case $host_cpu in 14744 powerpc) 14745 # see comment about AmigaOS4 .so support 14746 lt_prog_compiler_pic='-fPIC' 14747 ;; 14748 m68k) 14749 # FIXME: we need at least 68020 code to build shared libraries, but 14750 # adding the '-m68020' flag to GCC prevents building anything better, 14751 # like '-m68040'. 14752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14753 ;; 14754 esac 14755 ;; 14756 14757 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14758 # PIC is the default for these OSes. 14759 ;; 14760 14761 mingw* | cygwin* | pw32* | os2* | cegcc*) 14762 # This hack is so that the source file can tell whether it is being 14763 # built for inclusion in a dll (and should export symbols for example). 14764 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14765 # (--disable-auto-import) libraries 14766 lt_prog_compiler_pic='-DDLL_EXPORT' 14767 case $host_os in 14768 os2*) 14769 lt_prog_compiler_static='$wl-static' 14770 ;; 14771 esac 14772 ;; 14773 14774 darwin* | rhapsody*) 14775 # PIC is the default on this platform 14776 # Common symbols not allowed in MH_DYLIB files 14777 lt_prog_compiler_pic='-fno-common' 14778 ;; 14779 14780 haiku*) 14781 # PIC is the default for Haiku. 14782 # The "-static" flag exists, but is broken. 14783 lt_prog_compiler_static= 14784 ;; 14785 14786 hpux*) 14787 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14788 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14789 # sets the default TLS model and affects inlining. 14790 case $host_cpu in 14791 hppa*64*) 14792 # +Z the default 14793 ;; 14794 *) 14795 lt_prog_compiler_pic='-fPIC' 14796 ;; 14797 esac 14798 ;; 14799 14800 interix[3-9]*) 14801 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14802 # Instead, we relocate shared libraries at runtime. 14803 ;; 14804 14805 msdosdjgpp*) 14806 # Just because we use GCC doesn't mean we suddenly get shared libraries 14807 # on systems that don't support them. 14808 lt_prog_compiler_can_build_shared=no 14809 enable_shared=no 14810 ;; 14811 14812 *nto* | *qnx*) 14813 # QNX uses GNU C++, but need to define -shared option too, otherwise 14814 # it will coredump. 14815 lt_prog_compiler_pic='-fPIC -shared' 14816 ;; 14817 14818 sysv4*MP*) 14819 if test -d /usr/nec; then 14820 lt_prog_compiler_pic=-Kconform_pic 14821 fi 14822 ;; 14823 14824 *) 14825 lt_prog_compiler_pic='-fPIC' 14826 ;; 14827 esac 14828 14829 case $cc_basename in 14830 nvcc*) # Cuda Compiler Driver 2.2 14831 lt_prog_compiler_wl='-Xlinker ' 14832 if test -n "$lt_prog_compiler_pic"; then 14833 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14834 fi 14835 ;; 14836 esac 14837 else 14838 # PORTME Check for flag to pass linker flags through the system compiler. 14839 case $host_os in 14840 aix*) 14841 lt_prog_compiler_wl='-Wl,' 14842 if test ia64 = "$host_cpu"; then 14843 # AIX 5 now supports IA64 processor 14844 lt_prog_compiler_static='-Bstatic' 14845 else 14846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14847 fi 14848 ;; 14849 14850 darwin* | rhapsody*) 14851 # PIC is the default on this platform 14852 # Common symbols not allowed in MH_DYLIB files 14853 lt_prog_compiler_pic='-fno-common' 14854 case $cc_basename in 14855 nagfor*) 14856 # NAG Fortran compiler 14857 lt_prog_compiler_wl='-Wl,-Wl,,' 14858 lt_prog_compiler_pic='-PIC' 14859 lt_prog_compiler_static='-Bstatic' 14860 ;; 14861 esac 14862 ;; 14863 14864 mingw* | cygwin* | pw32* | os2* | cegcc*) 14865 # This hack is so that the source file can tell whether it is being 14866 # built for inclusion in a dll (and should export symbols for example). 14867 lt_prog_compiler_pic='-DDLL_EXPORT' 14868 case $host_os in 14869 os2*) 14870 lt_prog_compiler_static='$wl-static' 14871 ;; 14872 esac 14873 ;; 14874 14875 hpux9* | hpux10* | hpux11*) 14876 lt_prog_compiler_wl='-Wl,' 14877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14878 # not for PA HP-UX. 14879 case $host_cpu in 14880 hppa*64*|ia64*) 14881 # +Z the default 14882 ;; 14883 *) 14884 lt_prog_compiler_pic='+Z' 14885 ;; 14886 esac 14887 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14888 lt_prog_compiler_static='$wl-a ${wl}archive' 14889 ;; 14890 14891 irix5* | irix6* | nonstopux*) 14892 lt_prog_compiler_wl='-Wl,' 14893 # PIC (with -KPIC) is the default. 14894 lt_prog_compiler_static='-non_shared' 14895 ;; 14896 14897 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14898 case $cc_basename in 14899 # old Intel for x86_64, which still supported -KPIC. 14900 ecc*) 14901 lt_prog_compiler_wl='-Wl,' 14902 lt_prog_compiler_pic='-KPIC' 14903 lt_prog_compiler_static='-static' 14904 ;; 14905 # icc used to be incompatible with GCC. 14906 # ICC 10 doesn't accept -KPIC any more. 14907 icc* | ifort*) 14908 lt_prog_compiler_wl='-Wl,' 14909 lt_prog_compiler_pic='-fPIC' 14910 lt_prog_compiler_static='-static' 14911 ;; 14912 # Lahey Fortran 8.1. 14913 lf95*) 14914 lt_prog_compiler_wl='-Wl,' 14915 lt_prog_compiler_pic='--shared' 14916 lt_prog_compiler_static='--static' 14917 ;; 14918 nagfor*) 14919 # NAG Fortran compiler 14920 lt_prog_compiler_wl='-Wl,-Wl,,' 14921 lt_prog_compiler_pic='-PIC' 14922 lt_prog_compiler_static='-Bstatic' 14923 ;; 14924 tcc*) 14925 # Fabrice Bellard et al's Tiny C Compiler 14926 lt_prog_compiler_wl='-Wl,' 14927 lt_prog_compiler_pic='-fPIC' 14928 lt_prog_compiler_static='-static' 14929 ;; 14930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14931 # Portland Group compilers (*not* the Pentium gcc compiler, 14932 # which looks to be a dead project) 14933 lt_prog_compiler_wl='-Wl,' 14934 lt_prog_compiler_pic='-fpic' 14935 lt_prog_compiler_static='-Bstatic' 14936 ;; 14937 ccc*) 14938 lt_prog_compiler_wl='-Wl,' 14939 # All Alpha code is PIC. 14940 lt_prog_compiler_static='-non_shared' 14941 ;; 14942 xl* | bgxl* | bgf* | mpixl*) 14943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14944 lt_prog_compiler_wl='-Wl,' 14945 lt_prog_compiler_pic='-qpic' 14946 lt_prog_compiler_static='-qstaticlink' 14947 ;; 14948 *) 14949 case `$CC -V 2>&1 | sed 5q` in 14950 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14951 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14952 lt_prog_compiler_pic='-KPIC' 14953 lt_prog_compiler_static='-Bstatic' 14954 lt_prog_compiler_wl='' 14955 ;; 14956 *Sun\ F* | *Sun*Fortran*) 14957 lt_prog_compiler_pic='-KPIC' 14958 lt_prog_compiler_static='-Bstatic' 14959 lt_prog_compiler_wl='-Qoption ld ' 14960 ;; 14961 *Sun\ C*) 14962 # Sun C 5.9 14963 lt_prog_compiler_pic='-KPIC' 14964 lt_prog_compiler_static='-Bstatic' 14965 lt_prog_compiler_wl='-Wl,' 14966 ;; 14967 *Intel*\ [CF]*Compiler*) 14968 lt_prog_compiler_wl='-Wl,' 14969 lt_prog_compiler_pic='-fPIC' 14970 lt_prog_compiler_static='-static' 14971 ;; 14972 *Portland\ Group*) 14973 lt_prog_compiler_wl='-Wl,' 14974 lt_prog_compiler_pic='-fpic' 14975 lt_prog_compiler_static='-Bstatic' 14976 ;; 14977 esac 14978 ;; 14979 esac 14980 ;; 14981 14982 newsos6) 14983 lt_prog_compiler_pic='-KPIC' 14984 lt_prog_compiler_static='-Bstatic' 14985 ;; 14986 14987 *nto* | *qnx*) 14988 # QNX uses GNU C++, but need to define -shared option too, otherwise 14989 # it will coredump. 14990 lt_prog_compiler_pic='-fPIC -shared' 14991 ;; 14992 14993 osf3* | osf4* | osf5*) 14994 lt_prog_compiler_wl='-Wl,' 14995 # All OSF/1 code is PIC. 14996 lt_prog_compiler_static='-non_shared' 14997 ;; 14998 14999 rdos*) 15000 lt_prog_compiler_static='-non_shared' 15001 ;; 15002 15003 solaris*) 15004 lt_prog_compiler_pic='-KPIC' 15005 lt_prog_compiler_static='-Bstatic' 15006 case $cc_basename in 15007 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15008 lt_prog_compiler_wl='-Qoption ld ';; 15009 *) 15010 lt_prog_compiler_wl='-Wl,';; 15011 esac 15012 ;; 15013 15014 sunos4*) 15015 lt_prog_compiler_wl='-Qoption ld ' 15016 lt_prog_compiler_pic='-PIC' 15017 lt_prog_compiler_static='-Bstatic' 15018 ;; 15019 15020 sysv4 | sysv4.2uw2* | sysv4.3*) 15021 lt_prog_compiler_wl='-Wl,' 15022 lt_prog_compiler_pic='-KPIC' 15023 lt_prog_compiler_static='-Bstatic' 15024 ;; 15025 15026 sysv4*MP*) 15027 if test -d /usr/nec; then 15028 lt_prog_compiler_pic='-Kconform_pic' 15029 lt_prog_compiler_static='-Bstatic' 15030 fi 15031 ;; 15032 15033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15034 lt_prog_compiler_wl='-Wl,' 15035 lt_prog_compiler_pic='-KPIC' 15036 lt_prog_compiler_static='-Bstatic' 15037 ;; 15038 15039 unicos*) 15040 lt_prog_compiler_wl='-Wl,' 15041 lt_prog_compiler_can_build_shared=no 15042 ;; 15043 15044 uts4*) 15045 lt_prog_compiler_pic='-pic' 15046 lt_prog_compiler_static='-Bstatic' 15047 ;; 15048 15049 *) 15050 lt_prog_compiler_can_build_shared=no 15051 ;; 15052 esac 15053 fi 15054 15055case $host_os in 15056 # For platforms that do not support PIC, -DPIC is meaningless: 15057 *djgpp*) 15058 lt_prog_compiler_pic= 15059 ;; 15060 *) 15061 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15062 ;; 15063esac 15064 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15066$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15067if ${lt_cv_prog_compiler_pic+:} false; then : 15068 $as_echo_n "(cached) " >&6 15069else 15070 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15071fi 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15073$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15074lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15075 15076# 15077# Check to make sure the PIC flag actually works. 15078# 15079if test -n "$lt_prog_compiler_pic"; then 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15081$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15082if ${lt_cv_prog_compiler_pic_works+:} false; then : 15083 $as_echo_n "(cached) " >&6 15084else 15085 lt_cv_prog_compiler_pic_works=no 15086 ac_outfile=conftest.$ac_objext 15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15088 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15089 # Insert the option either (1) after the last *FLAGS variable, or 15090 # (2) before a word containing "conftest.", or (3) at the end. 15091 # Note that $ac_compile itself does not contain backslashes and begins 15092 # with a dollar sign (not a hyphen), so the echo should work correctly. 15093 # The option is referenced via a variable to avoid confusing sed. 15094 lt_compile=`echo "$ac_compile" | $SED \ 15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15097 -e 's:$: $lt_compiler_flag:'` 15098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15099 (eval "$lt_compile" 2>conftest.err) 15100 ac_status=$? 15101 cat conftest.err >&5 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 if (exit $ac_status) && test -s "$ac_outfile"; then 15104 # The compiler can only warn and ignore the option if not recognized 15105 # So say no if there are warnings other than the usual output. 15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15109 lt_cv_prog_compiler_pic_works=yes 15110 fi 15111 fi 15112 $RM conftest* 15113 15114fi 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15116$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15117 15118if test yes = "$lt_cv_prog_compiler_pic_works"; then 15119 case $lt_prog_compiler_pic in 15120 "" | " "*) ;; 15121 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15122 esac 15123else 15124 lt_prog_compiler_pic= 15125 lt_prog_compiler_can_build_shared=no 15126fi 15127 15128fi 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140# 15141# Check to make sure the static flag actually works. 15142# 15143wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15145$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15146if ${lt_cv_prog_compiler_static_works+:} false; then : 15147 $as_echo_n "(cached) " >&6 15148else 15149 lt_cv_prog_compiler_static_works=no 15150 save_LDFLAGS=$LDFLAGS 15151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15152 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15154 # The linker can only warn and ignore the option if not recognized 15155 # So say no if there are warnings 15156 if test -s conftest.err; then 15157 # Append any errors to the config.log. 15158 cat conftest.err 1>&5 15159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15161 if diff conftest.exp conftest.er2 >/dev/null; then 15162 lt_cv_prog_compiler_static_works=yes 15163 fi 15164 else 15165 lt_cv_prog_compiler_static_works=yes 15166 fi 15167 fi 15168 $RM -r conftest* 15169 LDFLAGS=$save_LDFLAGS 15170 15171fi 15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15173$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15174 15175if test yes = "$lt_cv_prog_compiler_static_works"; then 15176 : 15177else 15178 lt_prog_compiler_static= 15179fi 15180 15181 15182 15183 15184 15185 15186 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15188$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15189if ${lt_cv_prog_compiler_c_o+:} false; then : 15190 $as_echo_n "(cached) " >&6 15191else 15192 lt_cv_prog_compiler_c_o=no 15193 $RM -r conftest 2>/dev/null 15194 mkdir conftest 15195 cd conftest 15196 mkdir out 15197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15198 15199 lt_compiler_flag="-o out/conftest2.$ac_objext" 15200 # Insert the option either (1) after the last *FLAGS variable, or 15201 # (2) before a word containing "conftest.", or (3) at the end. 15202 # Note that $ac_compile itself does not contain backslashes and begins 15203 # with a dollar sign (not a hyphen), so the echo should work correctly. 15204 lt_compile=`echo "$ac_compile" | $SED \ 15205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15207 -e 's:$: $lt_compiler_flag:'` 15208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15209 (eval "$lt_compile" 2>out/conftest.err) 15210 ac_status=$? 15211 cat out/conftest.err >&5 15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15213 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15214 then 15215 # The compiler can only warn and ignore the option if not recognized 15216 # So say no if there are warnings 15217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15220 lt_cv_prog_compiler_c_o=yes 15221 fi 15222 fi 15223 chmod u+w . 2>&5 15224 $RM conftest* 15225 # SGI C++ compiler will create directory out/ii_files/ for 15226 # template instantiation 15227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15228 $RM out/* && rmdir out 15229 cd .. 15230 $RM -r conftest 15231 $RM conftest* 15232 15233fi 15234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15235$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15236 15237 15238 15239 15240 15241 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15243$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15244if ${lt_cv_prog_compiler_c_o+:} false; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 lt_cv_prog_compiler_c_o=no 15248 $RM -r conftest 2>/dev/null 15249 mkdir conftest 15250 cd conftest 15251 mkdir out 15252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15253 15254 lt_compiler_flag="-o out/conftest2.$ac_objext" 15255 # Insert the option either (1) after the last *FLAGS variable, or 15256 # (2) before a word containing "conftest.", or (3) at the end. 15257 # Note that $ac_compile itself does not contain backslashes and begins 15258 # with a dollar sign (not a hyphen), so the echo should work correctly. 15259 lt_compile=`echo "$ac_compile" | $SED \ 15260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15262 -e 's:$: $lt_compiler_flag:'` 15263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15264 (eval "$lt_compile" 2>out/conftest.err) 15265 ac_status=$? 15266 cat out/conftest.err >&5 15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15268 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15269 then 15270 # The compiler can only warn and ignore the option if not recognized 15271 # So say no if there are warnings 15272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15275 lt_cv_prog_compiler_c_o=yes 15276 fi 15277 fi 15278 chmod u+w . 2>&5 15279 $RM conftest* 15280 # SGI C++ compiler will create directory out/ii_files/ for 15281 # template instantiation 15282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15283 $RM out/* && rmdir out 15284 cd .. 15285 $RM -r conftest 15286 $RM conftest* 15287 15288fi 15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15290$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15291 15292 15293 15294 15295hard_links=nottested 15296if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15297 # do not overwrite the value of need_locks provided by the user 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15299$as_echo_n "checking if we can lock with hard links... " >&6; } 15300 hard_links=yes 15301 $RM conftest* 15302 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15303 touch conftest.a 15304 ln conftest.a conftest.b 2>&5 || hard_links=no 15305 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15307$as_echo "$hard_links" >&6; } 15308 if test no = "$hard_links"; then 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15310$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15311 need_locks=warn 15312 fi 15313else 15314 need_locks=no 15315fi 15316 15317 15318 15319 15320 15321 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15323$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15324 15325 runpath_var= 15326 allow_undefined_flag= 15327 always_export_symbols=no 15328 archive_cmds= 15329 archive_expsym_cmds= 15330 compiler_needs_object=no 15331 enable_shared_with_static_runtimes=no 15332 export_dynamic_flag_spec= 15333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15334 hardcode_automatic=no 15335 hardcode_direct=no 15336 hardcode_direct_absolute=no 15337 hardcode_libdir_flag_spec= 15338 hardcode_libdir_separator= 15339 hardcode_minus_L=no 15340 hardcode_shlibpath_var=unsupported 15341 inherit_rpath=no 15342 link_all_deplibs=unknown 15343 module_cmds= 15344 module_expsym_cmds= 15345 old_archive_from_new_cmds= 15346 old_archive_from_expsyms_cmds= 15347 thread_safe_flag_spec= 15348 whole_archive_flag_spec= 15349 # include_expsyms should be a list of space-separated symbols to be *always* 15350 # included in the symbol list 15351 include_expsyms= 15352 # exclude_expsyms can be an extended regexp of symbols to exclude 15353 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15354 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15355 # as well as any symbol that contains 'd'. 15356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15358 # platforms (ab)use it in PIC code, but their linkers get confused if 15359 # the symbol is explicitly referenced. Since portable code cannot 15360 # rely on this symbol name, it's probably fine to never include it in 15361 # preloaded symbol tables. 15362 # Exclude shared library initialization/finalization symbols. 15363 extract_expsyms_cmds= 15364 15365 case $host_os in 15366 cygwin* | mingw* | pw32* | cegcc*) 15367 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15368 # When not using gcc, we currently assume that we are using 15369 # Microsoft Visual C++. 15370 if test yes != "$GCC"; then 15371 with_gnu_ld=no 15372 fi 15373 ;; 15374 interix*) 15375 # we just hope/assume this is gcc and not c89 (= MSVC++) 15376 with_gnu_ld=yes 15377 ;; 15378 openbsd* | bitrig*) 15379 with_gnu_ld=no 15380 ;; 15381 linux* | k*bsd*-gnu | gnu*) 15382 link_all_deplibs=no 15383 ;; 15384 esac 15385 15386 ld_shlibs=yes 15387 15388 # On some targets, GNU ld is compatible enough with the native linker 15389 # that we're better off using the native interface for both. 15390 lt_use_gnu_ld_interface=no 15391 if test yes = "$with_gnu_ld"; then 15392 case $host_os in 15393 aix*) 15394 # The AIX port of GNU ld has always aspired to compatibility 15395 # with the native linker. However, as the warning in the GNU ld 15396 # block says, versions before 2.19.5* couldn't really create working 15397 # shared libraries, regardless of the interface used. 15398 case `$LD -v 2>&1` in 15399 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15400 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15401 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15402 *) 15403 lt_use_gnu_ld_interface=yes 15404 ;; 15405 esac 15406 ;; 15407 *) 15408 lt_use_gnu_ld_interface=yes 15409 ;; 15410 esac 15411 fi 15412 15413 if test yes = "$lt_use_gnu_ld_interface"; then 15414 # If archive_cmds runs LD, not CC, wlarc should be empty 15415 wlarc='$wl' 15416 15417 # Set some defaults for GNU ld with shared library support. These 15418 # are reset later if shared libraries are not supported. Putting them 15419 # here allows them to be overridden if necessary. 15420 runpath_var=LD_RUN_PATH 15421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15422 export_dynamic_flag_spec='$wl--export-dynamic' 15423 # ancient GNU ld didn't support --whole-archive et. al. 15424 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15425 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15426 else 15427 whole_archive_flag_spec= 15428 fi 15429 supports_anon_versioning=no 15430 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15431 *GNU\ gold*) supports_anon_versioning=yes ;; 15432 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15433 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15434 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15435 *\ 2.11.*) ;; # other 2.11 versions 15436 *) supports_anon_versioning=yes ;; 15437 esac 15438 15439 # See if GNU ld supports shared libraries. 15440 case $host_os in 15441 aix[3-9]*) 15442 # On AIX/PPC, the GNU linker is very broken 15443 if test ia64 != "$host_cpu"; then 15444 ld_shlibs=no 15445 cat <<_LT_EOF 1>&2 15446 15447*** Warning: the GNU linker, at least up to release 2.19, is reported 15448*** to be unable to reliably create shared libraries on AIX. 15449*** Therefore, libtool is disabling shared libraries support. If you 15450*** really care for shared libraries, you may want to install binutils 15451*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15452*** You will then need to restart the configuration process. 15453 15454_LT_EOF 15455 fi 15456 ;; 15457 15458 amigaos*) 15459 case $host_cpu in 15460 powerpc) 15461 # see comment about AmigaOS4 .so support 15462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15463 archive_expsym_cmds='' 15464 ;; 15465 m68k) 15466 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)' 15467 hardcode_libdir_flag_spec='-L$libdir' 15468 hardcode_minus_L=yes 15469 ;; 15470 esac 15471 ;; 15472 15473 beos*) 15474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15475 allow_undefined_flag=unsupported 15476 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15477 # support --undefined. This deserves some investigation. FIXME 15478 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15479 else 15480 ld_shlibs=no 15481 fi 15482 ;; 15483 15484 cygwin* | mingw* | pw32* | cegcc*) 15485 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15486 # as there is no search path for DLLs. 15487 hardcode_libdir_flag_spec='-L$libdir' 15488 export_dynamic_flag_spec='$wl--export-all-symbols' 15489 allow_undefined_flag=unsupported 15490 always_export_symbols=no 15491 enable_shared_with_static_runtimes=yes 15492 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' 15493 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15494 15495 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15497 # If the export-symbols file already is a .def file, use it as 15498 # is; otherwise, prepend EXPORTS... 15499 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15500 cp $export_symbols $output_objdir/$soname.def; 15501 else 15502 echo EXPORTS > $output_objdir/$soname.def; 15503 cat $export_symbols >> $output_objdir/$soname.def; 15504 fi~ 15505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15506 else 15507 ld_shlibs=no 15508 fi 15509 ;; 15510 15511 haiku*) 15512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15513 link_all_deplibs=yes 15514 ;; 15515 15516 os2*) 15517 hardcode_libdir_flag_spec='-L$libdir' 15518 hardcode_minus_L=yes 15519 allow_undefined_flag=unsupported 15520 shrext_cmds=.dll 15521 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15524 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15525 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15527 emximp -o $lib $output_objdir/$libname.def' 15528 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15531 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15532 prefix_cmds="$SED"~ 15533 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15534 prefix_cmds="$prefix_cmds -e 1d"; 15535 fi~ 15536 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15537 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15539 emximp -o $lib $output_objdir/$libname.def' 15540 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15541 enable_shared_with_static_runtimes=yes 15542 ;; 15543 15544 interix[3-9]*) 15545 hardcode_direct=no 15546 hardcode_shlibpath_var=no 15547 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15548 export_dynamic_flag_spec='$wl-E' 15549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15550 # Instead, shared libraries are loaded at an image base (0x10000000 by 15551 # default) and relocated if they conflict, which is a slow very memory 15552 # consuming and fragmenting process. To avoid this, we pick a random, 15553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15554 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15556 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' 15557 ;; 15558 15559 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15560 tmp_diet=no 15561 if test linux-dietlibc = "$host_os"; then 15562 case $cc_basename in 15563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15564 esac 15565 fi 15566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15567 && test no = "$tmp_diet" 15568 then 15569 tmp_addflag=' $pic_flag' 15570 tmp_sharedflag='-shared' 15571 case $cc_basename,$host_cpu in 15572 pgcc*) # Portland Group C compiler 15573 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' 15574 tmp_addflag=' $pic_flag' 15575 ;; 15576 pgf77* | pgf90* | pgf95* | pgfortran*) 15577 # Portland Group f77 and f90 compilers 15578 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' 15579 tmp_addflag=' $pic_flag -Mnomain' ;; 15580 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15581 tmp_addflag=' -i_dynamic' ;; 15582 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15583 tmp_addflag=' -i_dynamic -nofor_main' ;; 15584 ifc* | ifort*) # Intel Fortran compiler 15585 tmp_addflag=' -nofor_main' ;; 15586 lf95*) # Lahey Fortran 8.1 15587 whole_archive_flag_spec= 15588 tmp_sharedflag='--shared' ;; 15589 nagfor*) # NAGFOR 5.3 15590 tmp_sharedflag='-Wl,-shared' ;; 15591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15592 tmp_sharedflag='-qmkshrobj' 15593 tmp_addflag= ;; 15594 nvcc*) # Cuda Compiler Driver 2.2 15595 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15596 compiler_needs_object=yes 15597 ;; 15598 esac 15599 case `$CC -V 2>&1 | sed 5q` in 15600 *Sun\ C*) # Sun C 5.9 15601 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' 15602 compiler_needs_object=yes 15603 tmp_sharedflag='-G' ;; 15604 *Sun\ F*) # Sun Fortran 8.3 15605 tmp_sharedflag='-G' ;; 15606 esac 15607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15608 15609 if test yes = "$supports_anon_versioning"; then 15610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15612 echo "local: *; };" >> $output_objdir/$libname.ver~ 15613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15614 fi 15615 15616 case $cc_basename in 15617 tcc*) 15618 export_dynamic_flag_spec='-rdynamic' 15619 ;; 15620 xlf* | bgf* | bgxlf* | mpixlf*) 15621 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15622 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15624 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15625 if test yes = "$supports_anon_versioning"; then 15626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15628 echo "local: *; };" >> $output_objdir/$libname.ver~ 15629 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15630 fi 15631 ;; 15632 esac 15633 else 15634 ld_shlibs=no 15635 fi 15636 ;; 15637 15638 netbsd* | netbsdelf*-gnu) 15639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15641 wlarc= 15642 else 15643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15645 fi 15646 ;; 15647 15648 solaris*) 15649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15650 ld_shlibs=no 15651 cat <<_LT_EOF 1>&2 15652 15653*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15654*** create shared libraries on Solaris systems. Therefore, libtool 15655*** is disabling shared libraries support. We urge you to upgrade GNU 15656*** binutils to release 2.9.1 or newer. Another option is to modify 15657*** your PATH or compiler configuration so that the native linker is 15658*** used, and then restart. 15659 15660_LT_EOF 15661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15664 else 15665 ld_shlibs=no 15666 fi 15667 ;; 15668 15669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15670 case `$LD -v 2>&1` in 15671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15672 ld_shlibs=no 15673 cat <<_LT_EOF 1>&2 15674 15675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15676*** reliably create shared libraries on SCO systems. Therefore, libtool 15677*** is disabling shared libraries support. We urge you to upgrade GNU 15678*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15679*** your PATH or compiler configuration so that the native linker is 15680*** used, and then restart. 15681 15682_LT_EOF 15683 ;; 15684 *) 15685 # For security reasons, it is highly recommended that you always 15686 # use absolute paths for naming shared libraries, and exclude the 15687 # DT_RUNPATH tag from executables and libraries. But doing so 15688 # requires that you compile everything twice, which is a pain. 15689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15693 else 15694 ld_shlibs=no 15695 fi 15696 ;; 15697 esac 15698 ;; 15699 15700 sunos4*) 15701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15702 wlarc= 15703 hardcode_direct=yes 15704 hardcode_shlibpath_var=no 15705 ;; 15706 15707 *) 15708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15710 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15711 else 15712 ld_shlibs=no 15713 fi 15714 ;; 15715 esac 15716 15717 if test no = "$ld_shlibs"; then 15718 runpath_var= 15719 hardcode_libdir_flag_spec= 15720 export_dynamic_flag_spec= 15721 whole_archive_flag_spec= 15722 fi 15723 else 15724 # PORTME fill in a description of your system's linker (not GNU ld) 15725 case $host_os in 15726 aix3*) 15727 allow_undefined_flag=unsupported 15728 always_export_symbols=yes 15729 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' 15730 # Note: this linker hardcodes the directories in LIBPATH if there 15731 # are no directories specified by -L. 15732 hardcode_minus_L=yes 15733 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15734 # Neither direct hardcoding nor static linking is supported with a 15735 # broken collect2. 15736 hardcode_direct=unsupported 15737 fi 15738 ;; 15739 15740 aix[4-9]*) 15741 if test ia64 = "$host_cpu"; then 15742 # On IA64, the linker does run time linking by default, so we don't 15743 # have to do anything special. 15744 aix_use_runtimelinking=no 15745 exp_sym_flag='-Bexport' 15746 no_entry_flag= 15747 else 15748 # If we're using GNU nm, then we don't want the "-C" option. 15749 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15750 # Without the "-l" option, or with the "-B" option, AIX nm treats 15751 # weak defined symbols like other global defined symbols, whereas 15752 # GNU nm marks them as "W". 15753 # While the 'weak' keyword is ignored in the Export File, we need 15754 # it in the Import File for the 'aix-soname' feature, so we have 15755 # to replace the "-B" option with "-P" for AIX nm. 15756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15757 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15758 else 15759 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15760 fi 15761 aix_use_runtimelinking=no 15762 15763 # Test if we are trying to use run time linking or normal 15764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15765 # have runtime linking enabled, and use it for executables. 15766 # For shared libraries, we enable/disable runtime linking 15767 # depending on the kind of the shared library created - 15768 # when "with_aix_soname,aix_use_runtimelinking" is: 15769 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15770 # "aix,yes" lib.so shared, rtl:yes, for executables 15771 # lib.a static archive 15772 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15773 # lib.a(lib.so.V) shared, rtl:no, for executables 15774 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15775 # lib.a(lib.so.V) shared, rtl:no 15776 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15777 # lib.a static archive 15778 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15779 for ld_flag in $LDFLAGS; do 15780 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15781 aix_use_runtimelinking=yes 15782 break 15783 fi 15784 done 15785 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15786 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15787 # so we don't have lib.a shared libs to link our executables. 15788 # We have to force runtime linking in this case. 15789 aix_use_runtimelinking=yes 15790 LDFLAGS="$LDFLAGS -Wl,-brtl" 15791 fi 15792 ;; 15793 esac 15794 15795 exp_sym_flag='-bexport' 15796 no_entry_flag='-bnoentry' 15797 fi 15798 15799 # When large executables or shared objects are built, AIX ld can 15800 # have problems creating the table of contents. If linking a library 15801 # or program results in "error TOC overflow" add -mminimal-toc to 15802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15804 15805 archive_cmds='' 15806 hardcode_direct=yes 15807 hardcode_direct_absolute=yes 15808 hardcode_libdir_separator=':' 15809 link_all_deplibs=yes 15810 file_list_spec='$wl-f,' 15811 case $with_aix_soname,$aix_use_runtimelinking in 15812 aix,*) ;; # traditional, no import file 15813 svr4,* | *,yes) # use import file 15814 # The Import File defines what to hardcode. 15815 hardcode_direct=no 15816 hardcode_direct_absolute=no 15817 ;; 15818 esac 15819 15820 if test yes = "$GCC"; then 15821 case $host_os in aix4.[012]|aix4.[012].*) 15822 # We only want to do this on AIX 4.2 and lower, the check 15823 # below for broken collect2 doesn't work under 4.3+ 15824 collect2name=`$CC -print-prog-name=collect2` 15825 if test -f "$collect2name" && 15826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15827 then 15828 # We have reworked collect2 15829 : 15830 else 15831 # We have old collect2 15832 hardcode_direct=unsupported 15833 # It fails to find uninstalled libraries when the uninstalled 15834 # path is not listed in the libpath. Setting hardcode_minus_L 15835 # to unsupported forces relinking 15836 hardcode_minus_L=yes 15837 hardcode_libdir_flag_spec='-L$libdir' 15838 hardcode_libdir_separator= 15839 fi 15840 ;; 15841 esac 15842 shared_flag='-shared' 15843 if test yes = "$aix_use_runtimelinking"; then 15844 shared_flag="$shared_flag "'$wl-G' 15845 fi 15846 # Need to ensure runtime linking is disabled for the traditional 15847 # shared library, or the linker may eventually find shared libraries 15848 # /with/ Import File - we do not want to mix them. 15849 shared_flag_aix='-shared' 15850 shared_flag_svr4='-shared $wl-G' 15851 else 15852 # not using gcc 15853 if test ia64 = "$host_cpu"; then 15854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15855 # chokes on -Wl,-G. The following line is correct: 15856 shared_flag='-G' 15857 else 15858 if test yes = "$aix_use_runtimelinking"; then 15859 shared_flag='$wl-G' 15860 else 15861 shared_flag='$wl-bM:SRE' 15862 fi 15863 shared_flag_aix='$wl-bM:SRE' 15864 shared_flag_svr4='$wl-G' 15865 fi 15866 fi 15867 15868 export_dynamic_flag_spec='$wl-bexpall' 15869 # It seems that -bexpall does not export symbols beginning with 15870 # underscore (_), so it is better to generate a list of symbols to export. 15871 always_export_symbols=yes 15872 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15873 # Warning - without using the other runtime loading flags (-brtl), 15874 # -berok will link without error, but may produce a broken library. 15875 allow_undefined_flag='-berok' 15876 # Determine the default libpath from the value encoded in an 15877 # empty executable. 15878 if test set = "${lt_cv_aix_libpath+set}"; then 15879 aix_libpath=$lt_cv_aix_libpath 15880else 15881 if ${lt_cv_aix_libpath_+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15885/* end confdefs.h. */ 15886 15887int 15888main () 15889{ 15890 15891 ; 15892 return 0; 15893} 15894_ACEOF 15895if ac_fn_c_try_link "$LINENO"; then : 15896 15897 lt_aix_libpath_sed=' 15898 /Import File Strings/,/^$/ { 15899 /^0/ { 15900 s/^0 *\([^ ]*\) *$/\1/ 15901 p 15902 } 15903 }' 15904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15905 # Check for a 64-bit object if we didn't find anything. 15906 if test -z "$lt_cv_aix_libpath_"; then 15907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15908 fi 15909fi 15910rm -f core conftest.err conftest.$ac_objext \ 15911 conftest$ac_exeext conftest.$ac_ext 15912 if test -z "$lt_cv_aix_libpath_"; then 15913 lt_cv_aix_libpath_=/usr/lib:/lib 15914 fi 15915 15916fi 15917 15918 aix_libpath=$lt_cv_aix_libpath_ 15919fi 15920 15921 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15922 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 15923 else 15924 if test ia64 = "$host_cpu"; then 15925 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15926 allow_undefined_flag="-z nodefs" 15927 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" 15928 else 15929 # Determine the default libpath from the value encoded in an 15930 # empty executable. 15931 if test set = "${lt_cv_aix_libpath+set}"; then 15932 aix_libpath=$lt_cv_aix_libpath 15933else 15934 if ${lt_cv_aix_libpath_+:} false; then : 15935 $as_echo_n "(cached) " >&6 15936else 15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938/* end confdefs.h. */ 15939 15940int 15941main () 15942{ 15943 15944 ; 15945 return 0; 15946} 15947_ACEOF 15948if ac_fn_c_try_link "$LINENO"; then : 15949 15950 lt_aix_libpath_sed=' 15951 /Import File Strings/,/^$/ { 15952 /^0/ { 15953 s/^0 *\([^ ]*\) *$/\1/ 15954 p 15955 } 15956 }' 15957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15958 # Check for a 64-bit object if we didn't find anything. 15959 if test -z "$lt_cv_aix_libpath_"; then 15960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15961 fi 15962fi 15963rm -f core conftest.err conftest.$ac_objext \ 15964 conftest$ac_exeext conftest.$ac_ext 15965 if test -z "$lt_cv_aix_libpath_"; then 15966 lt_cv_aix_libpath_=/usr/lib:/lib 15967 fi 15968 15969fi 15970 15971 aix_libpath=$lt_cv_aix_libpath_ 15972fi 15973 15974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15975 # Warning - without using the other run time loading flags, 15976 # -berok will link without error, but may produce a broken library. 15977 no_undefined_flag=' $wl-bernotok' 15978 allow_undefined_flag=' $wl-berok' 15979 if test yes = "$with_gnu_ld"; then 15980 # We only use this code for GNU lds that support --whole-archive. 15981 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15982 else 15983 # Exported symbols can be pulled into shared objects from archives 15984 whole_archive_flag_spec='$convenience' 15985 fi 15986 archive_cmds_need_lc=yes 15987 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15988 # -brtl affects multiple linker settings, -berok does not and is overridden later 15989 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15990 if test svr4 != "$with_aix_soname"; then 15991 # This is similar to how AIX traditionally builds its shared libraries. 15992 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15993 fi 15994 if test aix != "$with_aix_soname"; then 15995 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15996 else 15997 # used by -dlpreopen to get the symbols 15998 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15999 fi 16000 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16001 fi 16002 fi 16003 ;; 16004 16005 amigaos*) 16006 case $host_cpu in 16007 powerpc) 16008 # see comment about AmigaOS4 .so support 16009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16010 archive_expsym_cmds='' 16011 ;; 16012 m68k) 16013 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)' 16014 hardcode_libdir_flag_spec='-L$libdir' 16015 hardcode_minus_L=yes 16016 ;; 16017 esac 16018 ;; 16019 16020 bsdi[45]*) 16021 export_dynamic_flag_spec=-rdynamic 16022 ;; 16023 16024 cygwin* | mingw* | pw32* | cegcc*) 16025 # When not using gcc, we currently assume that we are using 16026 # Microsoft Visual C++. 16027 # hardcode_libdir_flag_spec is actually meaningless, as there is 16028 # no search path for DLLs. 16029 case $cc_basename in 16030 cl*) 16031 # Native MSVC 16032 hardcode_libdir_flag_spec=' ' 16033 allow_undefined_flag=unsupported 16034 always_export_symbols=yes 16035 file_list_spec='@' 16036 # Tell ltmain to make .lib files, not .a files. 16037 libext=lib 16038 # Tell ltmain to make .dll files, not .so files. 16039 shrext_cmds=.dll 16040 # FIXME: Setting linknames here is a bad hack. 16041 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16042 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16043 cp "$export_symbols" "$output_objdir/$soname.def"; 16044 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16045 else 16046 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16047 fi~ 16048 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16049 linknames=' 16050 # The linker will not automatically build a static lib if we build a DLL. 16051 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16052 enable_shared_with_static_runtimes=yes 16053 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16055 # Don't use ranlib 16056 old_postinstall_cmds='chmod 644 $oldlib' 16057 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16058 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16059 case $lt_outputfile in 16060 *.exe|*.EXE) ;; 16061 *) 16062 lt_outputfile=$lt_outputfile.exe 16063 lt_tool_outputfile=$lt_tool_outputfile.exe 16064 ;; 16065 esac~ 16066 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16067 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16068 $RM "$lt_outputfile.manifest"; 16069 fi' 16070 ;; 16071 *) 16072 # Assume MSVC wrapper 16073 hardcode_libdir_flag_spec=' ' 16074 allow_undefined_flag=unsupported 16075 # Tell ltmain to make .lib files, not .a files. 16076 libext=lib 16077 # Tell ltmain to make .dll files, not .so files. 16078 shrext_cmds=.dll 16079 # FIXME: Setting linknames here is a bad hack. 16080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16081 # The linker will automatically build a .lib file if we build a DLL. 16082 old_archive_from_new_cmds='true' 16083 # FIXME: Should let the user specify the lib program. 16084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16085 enable_shared_with_static_runtimes=yes 16086 ;; 16087 esac 16088 ;; 16089 16090 darwin* | rhapsody*) 16091 16092 16093 archive_cmds_need_lc=no 16094 hardcode_direct=no 16095 hardcode_automatic=yes 16096 hardcode_shlibpath_var=unsupported 16097 if test yes = "$lt_cv_ld_force_load"; then 16098 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\"`' 16099 16100 else 16101 whole_archive_flag_spec='' 16102 fi 16103 link_all_deplibs=yes 16104 allow_undefined_flag=$_lt_dar_allow_undefined 16105 case $cc_basename in 16106 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16107 *) _lt_dar_can_shared=$GCC ;; 16108 esac 16109 if test yes = "$_lt_dar_can_shared"; then 16110 output_verbose_link_cmd=func_echo_all 16111 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16112 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16113 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" 16114 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" 16115 16116 else 16117 ld_shlibs=no 16118 fi 16119 16120 ;; 16121 16122 dgux*) 16123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16124 hardcode_libdir_flag_spec='-L$libdir' 16125 hardcode_shlibpath_var=no 16126 ;; 16127 16128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16129 # support. Future versions do this automatically, but an explicit c++rt0.o 16130 # does not break anything, and helps significantly (at the cost of a little 16131 # extra space). 16132 freebsd2.2*) 16133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16134 hardcode_libdir_flag_spec='-R$libdir' 16135 hardcode_direct=yes 16136 hardcode_shlibpath_var=no 16137 ;; 16138 16139 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16140 freebsd2.*) 16141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16142 hardcode_direct=yes 16143 hardcode_minus_L=yes 16144 hardcode_shlibpath_var=no 16145 ;; 16146 16147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16148 freebsd* | dragonfly*) 16149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16150 hardcode_libdir_flag_spec='-R$libdir' 16151 hardcode_direct=yes 16152 hardcode_shlibpath_var=no 16153 ;; 16154 16155 hpux9*) 16156 if test yes = "$GCC"; then 16157 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16158 else 16159 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16160 fi 16161 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16162 hardcode_libdir_separator=: 16163 hardcode_direct=yes 16164 16165 # hardcode_minus_L: Not really in the search PATH, 16166 # but as the default location of the library. 16167 hardcode_minus_L=yes 16168 export_dynamic_flag_spec='$wl-E' 16169 ;; 16170 16171 hpux10*) 16172 if test yes,no = "$GCC,$with_gnu_ld"; then 16173 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16174 else 16175 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16176 fi 16177 if test no = "$with_gnu_ld"; then 16178 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16179 hardcode_libdir_separator=: 16180 hardcode_direct=yes 16181 hardcode_direct_absolute=yes 16182 export_dynamic_flag_spec='$wl-E' 16183 # hardcode_minus_L: Not really in the search PATH, 16184 # but as the default location of the library. 16185 hardcode_minus_L=yes 16186 fi 16187 ;; 16188 16189 hpux11*) 16190 if test yes,no = "$GCC,$with_gnu_ld"; then 16191 case $host_cpu in 16192 hppa*64*) 16193 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16194 ;; 16195 ia64*) 16196 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16197 ;; 16198 *) 16199 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16200 ;; 16201 esac 16202 else 16203 case $host_cpu in 16204 hppa*64*) 16205 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16206 ;; 16207 ia64*) 16208 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16209 ;; 16210 *) 16211 16212 # Older versions of the 11.00 compiler do not understand -b yet 16213 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16215$as_echo_n "checking if $CC understands -b... " >&6; } 16216if ${lt_cv_prog_compiler__b+:} false; then : 16217 $as_echo_n "(cached) " >&6 16218else 16219 lt_cv_prog_compiler__b=no 16220 save_LDFLAGS=$LDFLAGS 16221 LDFLAGS="$LDFLAGS -b" 16222 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16224 # The linker can only warn and ignore the option if not recognized 16225 # So say no if there are warnings 16226 if test -s conftest.err; then 16227 # Append any errors to the config.log. 16228 cat conftest.err 1>&5 16229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16231 if diff conftest.exp conftest.er2 >/dev/null; then 16232 lt_cv_prog_compiler__b=yes 16233 fi 16234 else 16235 lt_cv_prog_compiler__b=yes 16236 fi 16237 fi 16238 $RM -r conftest* 16239 LDFLAGS=$save_LDFLAGS 16240 16241fi 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16243$as_echo "$lt_cv_prog_compiler__b" >&6; } 16244 16245if test yes = "$lt_cv_prog_compiler__b"; then 16246 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16247else 16248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16249fi 16250 16251 ;; 16252 esac 16253 fi 16254 if test no = "$with_gnu_ld"; then 16255 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16256 hardcode_libdir_separator=: 16257 16258 case $host_cpu in 16259 hppa*64*|ia64*) 16260 hardcode_direct=no 16261 hardcode_shlibpath_var=no 16262 ;; 16263 *) 16264 hardcode_direct=yes 16265 hardcode_direct_absolute=yes 16266 export_dynamic_flag_spec='$wl-E' 16267 16268 # hardcode_minus_L: Not really in the search PATH, 16269 # but as the default location of the library. 16270 hardcode_minus_L=yes 16271 ;; 16272 esac 16273 fi 16274 ;; 16275 16276 irix5* | irix6* | nonstopux*) 16277 if test yes = "$GCC"; then 16278 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' 16279 # Try to use the -exported_symbol ld option, if it does not 16280 # work, assume that -exports_file does not work either and 16281 # implicitly export all symbols. 16282 # This should be the same for all languages, so no per-tag cache variable. 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16284$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16285if ${lt_cv_irix_exported_symbol+:} false; then : 16286 $as_echo_n "(cached) " >&6 16287else 16288 save_LDFLAGS=$LDFLAGS 16289 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16291/* end confdefs.h. */ 16292int foo (void) { return 0; } 16293_ACEOF 16294if ac_fn_c_try_link "$LINENO"; then : 16295 lt_cv_irix_exported_symbol=yes 16296else 16297 lt_cv_irix_exported_symbol=no 16298fi 16299rm -f core conftest.err conftest.$ac_objext \ 16300 conftest$ac_exeext conftest.$ac_ext 16301 LDFLAGS=$save_LDFLAGS 16302fi 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16304$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16305 if test yes = "$lt_cv_irix_exported_symbol"; then 16306 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' 16307 fi 16308 link_all_deplibs=no 16309 else 16310 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' 16311 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' 16312 fi 16313 archive_cmds_need_lc='no' 16314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16315 hardcode_libdir_separator=: 16316 inherit_rpath=yes 16317 link_all_deplibs=yes 16318 ;; 16319 16320 linux*) 16321 case $cc_basename in 16322 tcc*) 16323 # Fabrice Bellard et al's Tiny C Compiler 16324 ld_shlibs=yes 16325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16326 ;; 16327 esac 16328 ;; 16329 16330 netbsd* | netbsdelf*-gnu) 16331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16333 else 16334 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16335 fi 16336 hardcode_libdir_flag_spec='-R$libdir' 16337 hardcode_direct=yes 16338 hardcode_shlibpath_var=no 16339 ;; 16340 16341 newsos6) 16342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16343 hardcode_direct=yes 16344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16345 hardcode_libdir_separator=: 16346 hardcode_shlibpath_var=no 16347 ;; 16348 16349 *nto* | *qnx*) 16350 ;; 16351 16352 openbsd* | bitrig*) 16353 if test -f /usr/libexec/ld.so; then 16354 hardcode_direct=yes 16355 hardcode_shlibpath_var=no 16356 hardcode_direct_absolute=yes 16357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16359 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16360 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16361 export_dynamic_flag_spec='$wl-E' 16362 else 16363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16364 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16365 fi 16366 else 16367 ld_shlibs=no 16368 fi 16369 ;; 16370 16371 os2*) 16372 hardcode_libdir_flag_spec='-L$libdir' 16373 hardcode_minus_L=yes 16374 allow_undefined_flag=unsupported 16375 shrext_cmds=.dll 16376 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16377 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16378 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16379 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16380 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16381 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16382 emximp -o $lib $output_objdir/$libname.def' 16383 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16384 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16385 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16386 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16387 prefix_cmds="$SED"~ 16388 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16389 prefix_cmds="$prefix_cmds -e 1d"; 16390 fi~ 16391 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16392 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16393 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16394 emximp -o $lib $output_objdir/$libname.def' 16395 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16396 enable_shared_with_static_runtimes=yes 16397 ;; 16398 16399 osf3*) 16400 if test yes = "$GCC"; then 16401 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16402 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' 16403 else 16404 allow_undefined_flag=' -expect_unresolved \*' 16405 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' 16406 fi 16407 archive_cmds_need_lc='no' 16408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16409 hardcode_libdir_separator=: 16410 ;; 16411 16412 osf4* | osf5*) # as osf3* with the addition of -msym flag 16413 if test yes = "$GCC"; then 16414 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16415 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' 16416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16417 else 16418 allow_undefined_flag=' -expect_unresolved \*' 16419 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' 16420 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~ 16421 $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' 16422 16423 # Both c and cxx compiler support -rpath directly 16424 hardcode_libdir_flag_spec='-rpath $libdir' 16425 fi 16426 archive_cmds_need_lc='no' 16427 hardcode_libdir_separator=: 16428 ;; 16429 16430 solaris*) 16431 no_undefined_flag=' -z defs' 16432 if test yes = "$GCC"; then 16433 wlarc='$wl' 16434 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16436 $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' 16437 else 16438 case `$CC -V 2>&1` in 16439 *"Compilers 5.0"*) 16440 wlarc='' 16441 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16443 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16444 ;; 16445 *) 16446 wlarc='$wl' 16447 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16449 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16450 ;; 16451 esac 16452 fi 16453 hardcode_libdir_flag_spec='-R$libdir' 16454 hardcode_shlibpath_var=no 16455 case $host_os in 16456 solaris2.[0-5] | solaris2.[0-5].*) ;; 16457 *) 16458 # The compiler driver will combine and reorder linker options, 16459 # but understands '-z linker_flag'. GCC discards it without '$wl', 16460 # but is careful enough not to reorder. 16461 # Supported since Solaris 2.6 (maybe 2.5.1?) 16462 if test yes = "$GCC"; then 16463 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16464 else 16465 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16466 fi 16467 ;; 16468 esac 16469 link_all_deplibs=yes 16470 ;; 16471 16472 sunos4*) 16473 if test sequent = "$host_vendor"; then 16474 # Use $CC to link under sequent, because it throws in some extra .o 16475 # files that make .init and .fini sections work. 16476 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16477 else 16478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16479 fi 16480 hardcode_libdir_flag_spec='-L$libdir' 16481 hardcode_direct=yes 16482 hardcode_minus_L=yes 16483 hardcode_shlibpath_var=no 16484 ;; 16485 16486 sysv4) 16487 case $host_vendor in 16488 sni) 16489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16490 hardcode_direct=yes # is this really true??? 16491 ;; 16492 siemens) 16493 ## LD is ld it makes a PLAMLIB 16494 ## CC just makes a GrossModule. 16495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16496 reload_cmds='$CC -r -o $output$reload_objs' 16497 hardcode_direct=no 16498 ;; 16499 motorola) 16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16501 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16502 ;; 16503 esac 16504 runpath_var='LD_RUN_PATH' 16505 hardcode_shlibpath_var=no 16506 ;; 16507 16508 sysv4.3*) 16509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16510 hardcode_shlibpath_var=no 16511 export_dynamic_flag_spec='-Bexport' 16512 ;; 16513 16514 sysv4*MP*) 16515 if test -d /usr/nec; then 16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16517 hardcode_shlibpath_var=no 16518 runpath_var=LD_RUN_PATH 16519 hardcode_runpath_var=yes 16520 ld_shlibs=yes 16521 fi 16522 ;; 16523 16524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16525 no_undefined_flag='$wl-z,text' 16526 archive_cmds_need_lc=no 16527 hardcode_shlibpath_var=no 16528 runpath_var='LD_RUN_PATH' 16529 16530 if test yes = "$GCC"; then 16531 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16532 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16533 else 16534 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16535 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16536 fi 16537 ;; 16538 16539 sysv5* | sco3.2v5* | sco5v6*) 16540 # Note: We CANNOT use -z defs as we might desire, because we do not 16541 # link with -lc, and that would cause any symbols used from libc to 16542 # always be unresolved, which means just about no library would 16543 # ever link correctly. If we're not using GNU ld we use -z text 16544 # though, which does catch some bad symbols but isn't as heavy-handed 16545 # as -z defs. 16546 no_undefined_flag='$wl-z,text' 16547 allow_undefined_flag='$wl-z,nodefs' 16548 archive_cmds_need_lc=no 16549 hardcode_shlibpath_var=no 16550 hardcode_libdir_flag_spec='$wl-R,$libdir' 16551 hardcode_libdir_separator=':' 16552 link_all_deplibs=yes 16553 export_dynamic_flag_spec='$wl-Bexport' 16554 runpath_var='LD_RUN_PATH' 16555 16556 if test yes = "$GCC"; then 16557 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16558 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16559 else 16560 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16561 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16562 fi 16563 ;; 16564 16565 uts4*) 16566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16567 hardcode_libdir_flag_spec='-L$libdir' 16568 hardcode_shlibpath_var=no 16569 ;; 16570 16571 *) 16572 ld_shlibs=no 16573 ;; 16574 esac 16575 16576 if test sni = "$host_vendor"; then 16577 case $host in 16578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16579 export_dynamic_flag_spec='$wl-Blargedynsym' 16580 ;; 16581 esac 16582 fi 16583 fi 16584 16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16586$as_echo "$ld_shlibs" >&6; } 16587test no = "$ld_shlibs" && can_build_shared=no 16588 16589with_gnu_ld=$with_gnu_ld 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605# 16606# Do we need to explicitly link libc? 16607# 16608case "x$archive_cmds_need_lc" in 16609x|xyes) 16610 # Assume -lc should be added 16611 archive_cmds_need_lc=yes 16612 16613 if test yes,yes = "$GCC,$enable_shared"; then 16614 case $archive_cmds in 16615 *'~'*) 16616 # FIXME: we may have to deal with multi-command sequences. 16617 ;; 16618 '$CC '*) 16619 # Test whether the compiler implicitly links with -lc since on some 16620 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16621 # to ld, don't add -lc before -lgcc. 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16623$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16624if ${lt_cv_archive_cmds_need_lc+:} false; then : 16625 $as_echo_n "(cached) " >&6 16626else 16627 $RM conftest* 16628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16629 16630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16631 (eval $ac_compile) 2>&5 16632 ac_status=$? 16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16634 test $ac_status = 0; } 2>conftest.err; then 16635 soname=conftest 16636 lib=conftest 16637 libobjs=conftest.$ac_objext 16638 deplibs= 16639 wl=$lt_prog_compiler_wl 16640 pic_flag=$lt_prog_compiler_pic 16641 compiler_flags=-v 16642 linker_flags=-v 16643 verstring= 16644 output_objdir=. 16645 libname=conftest 16646 lt_save_allow_undefined_flag=$allow_undefined_flag 16647 allow_undefined_flag= 16648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16649 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16650 ac_status=$? 16651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16652 test $ac_status = 0; } 16653 then 16654 lt_cv_archive_cmds_need_lc=no 16655 else 16656 lt_cv_archive_cmds_need_lc=yes 16657 fi 16658 allow_undefined_flag=$lt_save_allow_undefined_flag 16659 else 16660 cat conftest.err 1>&5 16661 fi 16662 $RM conftest* 16663 16664fi 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16666$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16667 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16668 ;; 16669 esac 16670 fi 16671 ;; 16672esac 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16826$as_echo_n "checking dynamic linker characteristics... " >&6; } 16827 16828if test yes = "$GCC"; then 16829 case $host_os in 16830 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16831 *) lt_awk_arg='/^libraries:/' ;; 16832 esac 16833 case $host_os in 16834 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16835 *) lt_sed_strip_eq='s|=/|/|g' ;; 16836 esac 16837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16838 case $lt_search_path_spec in 16839 *\;*) 16840 # if the path contains ";" then we assume it to be the separator 16841 # otherwise default to the standard path separator (i.e. ":") - it is 16842 # assumed that no part of a normal pathname contains ";" but that should 16843 # okay in the real world where ";" in dirpaths is itself problematic. 16844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16845 ;; 16846 *) 16847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16848 ;; 16849 esac 16850 # Ok, now we have the path, separated by spaces, we can step through it 16851 # and add multilib dir if necessary... 16852 lt_tmp_lt_search_path_spec= 16853 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16854 # ...but if some path component already ends with the multilib dir we assume 16855 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16856 case "$lt_multi_os_dir; $lt_search_path_spec " in 16857 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16858 lt_multi_os_dir= 16859 ;; 16860 esac 16861 for lt_sys_path in $lt_search_path_spec; do 16862 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16864 elif test -n "$lt_multi_os_dir"; then 16865 test -d "$lt_sys_path" && \ 16866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16867 fi 16868 done 16869 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16870BEGIN {RS = " "; FS = "/|\n";} { 16871 lt_foo = ""; 16872 lt_count = 0; 16873 for (lt_i = NF; lt_i > 0; lt_i--) { 16874 if ($lt_i != "" && $lt_i != ".") { 16875 if ($lt_i == "..") { 16876 lt_count++; 16877 } else { 16878 if (lt_count == 0) { 16879 lt_foo = "/" $lt_i lt_foo; 16880 } else { 16881 lt_count--; 16882 } 16883 } 16884 } 16885 } 16886 if (lt_foo != "") { lt_freq[lt_foo]++; } 16887 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16888}'` 16889 # AWK program above erroneously prepends '/' to C:/dos/paths 16890 # for these hosts. 16891 case $host_os in 16892 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16893 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16894 esac 16895 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16896else 16897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16898fi 16899library_names_spec= 16900libname_spec='lib$name' 16901soname_spec= 16902shrext_cmds=.so 16903postinstall_cmds= 16904postuninstall_cmds= 16905finish_cmds= 16906finish_eval= 16907shlibpath_var= 16908shlibpath_overrides_runpath=unknown 16909version_type=none 16910dynamic_linker="$host_os ld.so" 16911sys_lib_dlsearch_path_spec="/lib /usr/lib" 16912need_lib_prefix=unknown 16913hardcode_into_libs=no 16914 16915# when you set need_version to no, make sure it does not cause -set_version 16916# flags to be left without arguments 16917need_version=unknown 16918 16919 16920 16921case $host_os in 16922aix3*) 16923 version_type=linux # correct to gnu/linux during the next big refactor 16924 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16925 shlibpath_var=LIBPATH 16926 16927 # AIX 3 has no versioning support, so we append a major version to the name. 16928 soname_spec='$libname$release$shared_ext$major' 16929 ;; 16930 16931aix[4-9]*) 16932 version_type=linux # correct to gnu/linux during the next big refactor 16933 need_lib_prefix=no 16934 need_version=no 16935 hardcode_into_libs=yes 16936 if test ia64 = "$host_cpu"; then 16937 # AIX 5 supports IA64 16938 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16939 shlibpath_var=LD_LIBRARY_PATH 16940 else 16941 # With GCC up to 2.95.x, collect2 would create an import file 16942 # for dependence libraries. The import file would start with 16943 # the line '#! .'. This would cause the generated library to 16944 # depend on '.', always an invalid library. This was fixed in 16945 # development snapshots of GCC prior to 3.0. 16946 case $host_os in 16947 aix4 | aix4.[01] | aix4.[01].*) 16948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16949 echo ' yes ' 16950 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16951 : 16952 else 16953 can_build_shared=no 16954 fi 16955 ;; 16956 esac 16957 # Using Import Files as archive members, it is possible to support 16958 # filename-based versioning of shared library archives on AIX. While 16959 # this would work for both with and without runtime linking, it will 16960 # prevent static linking of such archives. So we do filename-based 16961 # shared library versioning with .so extension only, which is used 16962 # when both runtime linking and shared linking is enabled. 16963 # Unfortunately, runtime linking may impact performance, so we do 16964 # not want this to be the default eventually. Also, we use the 16965 # versioned .so libs for executables only if there is the -brtl 16966 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16967 # To allow for filename-based versioning support, we need to create 16968 # libNAME.so.V as an archive file, containing: 16969 # *) an Import File, referring to the versioned filename of the 16970 # archive as well as the shared archive member, telling the 16971 # bitwidth (32 or 64) of that shared object, and providing the 16972 # list of exported symbols of that shared object, eventually 16973 # decorated with the 'weak' keyword 16974 # *) the shared object with the F_LOADONLY flag set, to really avoid 16975 # it being seen by the linker. 16976 # At run time we better use the real file rather than another symlink, 16977 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16978 16979 case $with_aix_soname,$aix_use_runtimelinking in 16980 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16981 # soname into executable. Probably we can add versioning support to 16982 # collect2, so additional links can be useful in future. 16983 aix,yes) # traditional libtool 16984 dynamic_linker='AIX unversionable lib.so' 16985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16986 # instead of lib<name>.a to let people know that these are not 16987 # typical AIX shared libraries. 16988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16989 ;; 16990 aix,no) # traditional AIX only 16991 dynamic_linker='AIX lib.a(lib.so.V)' 16992 # We preserve .a as extension for shared libraries through AIX4.2 16993 # and later when we are not doing run time linking. 16994 library_names_spec='$libname$release.a $libname.a' 16995 soname_spec='$libname$release$shared_ext$major' 16996 ;; 16997 svr4,*) # full svr4 only 16998 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16999 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17000 # We do not specify a path in Import Files, so LIBPATH fires. 17001 shlibpath_overrides_runpath=yes 17002 ;; 17003 *,yes) # both, prefer svr4 17004 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17005 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17006 # unpreferred sharedlib libNAME.a needs extra handling 17007 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17008 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17009 # We do not specify a path in Import Files, so LIBPATH fires. 17010 shlibpath_overrides_runpath=yes 17011 ;; 17012 *,no) # both, prefer aix 17013 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17014 library_names_spec='$libname$release.a $libname.a' 17015 soname_spec='$libname$release$shared_ext$major' 17016 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17017 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17018 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17019 ;; 17020 esac 17021 shlibpath_var=LIBPATH 17022 fi 17023 ;; 17024 17025amigaos*) 17026 case $host_cpu in 17027 powerpc) 17028 # Since July 2007 AmigaOS4 officially supports .so libraries. 17029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17031 ;; 17032 m68k) 17033 library_names_spec='$libname.ixlibrary $libname.a' 17034 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17035 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17036 ;; 17037 esac 17038 ;; 17039 17040beos*) 17041 library_names_spec='$libname$shared_ext' 17042 dynamic_linker="$host_os ld.so" 17043 shlibpath_var=LIBRARY_PATH 17044 ;; 17045 17046bsdi[45]*) 17047 version_type=linux # correct to gnu/linux during the next big refactor 17048 need_version=no 17049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17050 soname_spec='$libname$release$shared_ext$major' 17051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17052 shlibpath_var=LD_LIBRARY_PATH 17053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17055 # the default ld.so.conf also contains /usr/contrib/lib and 17056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17057 # libtool to hard-code these into programs 17058 ;; 17059 17060cygwin* | mingw* | pw32* | cegcc*) 17061 version_type=windows 17062 shrext_cmds=.dll 17063 need_version=no 17064 need_lib_prefix=no 17065 17066 case $GCC,$cc_basename in 17067 yes,*) 17068 # gcc 17069 library_names_spec='$libname.dll.a' 17070 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17071 postinstall_cmds='base_file=`basename \$file`~ 17072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17073 dldir=$destdir/`dirname \$dlpath`~ 17074 test -d \$dldir || mkdir -p \$dldir~ 17075 $install_prog $dir/$dlname \$dldir/$dlname~ 17076 chmod a+x \$dldir/$dlname~ 17077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17079 fi' 17080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17081 dlpath=$dir/\$dldll~ 17082 $RM \$dlpath' 17083 shlibpath_overrides_runpath=yes 17084 17085 case $host_os in 17086 cygwin*) 17087 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17088 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17089 17090 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17091 ;; 17092 mingw* | cegcc*) 17093 # MinGW DLLs use traditional 'lib' prefix 17094 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17095 ;; 17096 pw32*) 17097 # pw32 DLLs use 'pw' prefix rather than 'lib' 17098 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17099 ;; 17100 esac 17101 dynamic_linker='Win32 ld.exe' 17102 ;; 17103 17104 *,cl*) 17105 # Native MSVC 17106 libname_spec='$name' 17107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17108 library_names_spec='$libname.dll.lib' 17109 17110 case $build_os in 17111 mingw*) 17112 sys_lib_search_path_spec= 17113 lt_save_ifs=$IFS 17114 IFS=';' 17115 for lt_path in $LIB 17116 do 17117 IFS=$lt_save_ifs 17118 # Let DOS variable expansion print the short 8.3 style file name. 17119 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17120 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17121 done 17122 IFS=$lt_save_ifs 17123 # Convert to MSYS style. 17124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17125 ;; 17126 cygwin*) 17127 # Convert to unix form, then to dos form, then back to unix form 17128 # but this time dos style (no spaces!) so that the unix form looks 17129 # like /cygdrive/c/PROGRA~1:/cygdr... 17130 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17131 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17132 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17133 ;; 17134 *) 17135 sys_lib_search_path_spec=$LIB 17136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17137 # It is most probably a Windows format PATH. 17138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17139 else 17140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17141 fi 17142 # FIXME: find the short name or the path components, as spaces are 17143 # common. (e.g. "Program Files" -> "PROGRA~1") 17144 ;; 17145 esac 17146 17147 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17148 postinstall_cmds='base_file=`basename \$file`~ 17149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17150 dldir=$destdir/`dirname \$dlpath`~ 17151 test -d \$dldir || mkdir -p \$dldir~ 17152 $install_prog $dir/$dlname \$dldir/$dlname' 17153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17154 dlpath=$dir/\$dldll~ 17155 $RM \$dlpath' 17156 shlibpath_overrides_runpath=yes 17157 dynamic_linker='Win32 link.exe' 17158 ;; 17159 17160 *) 17161 # Assume MSVC wrapper 17162 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17163 dynamic_linker='Win32 ld.exe' 17164 ;; 17165 esac 17166 # FIXME: first we should search . and the directory the executable is in 17167 shlibpath_var=PATH 17168 ;; 17169 17170darwin* | rhapsody*) 17171 dynamic_linker="$host_os dyld" 17172 version_type=darwin 17173 need_lib_prefix=no 17174 need_version=no 17175 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17176 soname_spec='$libname$release$major$shared_ext' 17177 shlibpath_overrides_runpath=yes 17178 shlibpath_var=DYLD_LIBRARY_PATH 17179 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17180 17181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17183 ;; 17184 17185dgux*) 17186 version_type=linux # correct to gnu/linux during the next big refactor 17187 need_lib_prefix=no 17188 need_version=no 17189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17190 soname_spec='$libname$release$shared_ext$major' 17191 shlibpath_var=LD_LIBRARY_PATH 17192 ;; 17193 17194freebsd* | dragonfly*) 17195 # DragonFly does not have aout. When/if they implement a new 17196 # versioning mechanism, adjust this. 17197 if test -x /usr/bin/objformat; then 17198 objformat=`/usr/bin/objformat` 17199 else 17200 case $host_os in 17201 freebsd[23].*) objformat=aout ;; 17202 *) objformat=elf ;; 17203 esac 17204 fi 17205 version_type=freebsd-$objformat 17206 case $version_type in 17207 freebsd-elf*) 17208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17209 soname_spec='$libname$release$shared_ext$major' 17210 need_version=no 17211 need_lib_prefix=no 17212 ;; 17213 freebsd-*) 17214 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17215 need_version=yes 17216 ;; 17217 esac 17218 shlibpath_var=LD_LIBRARY_PATH 17219 case $host_os in 17220 freebsd2.*) 17221 shlibpath_overrides_runpath=yes 17222 ;; 17223 freebsd3.[01]* | freebsdelf3.[01]*) 17224 shlibpath_overrides_runpath=yes 17225 hardcode_into_libs=yes 17226 ;; 17227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17229 shlibpath_overrides_runpath=no 17230 hardcode_into_libs=yes 17231 ;; 17232 *) # from 4.6 on, and DragonFly 17233 shlibpath_overrides_runpath=yes 17234 hardcode_into_libs=yes 17235 ;; 17236 esac 17237 ;; 17238 17239haiku*) 17240 version_type=linux # correct to gnu/linux during the next big refactor 17241 need_lib_prefix=no 17242 need_version=no 17243 dynamic_linker="$host_os runtime_loader" 17244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17245 soname_spec='$libname$release$shared_ext$major' 17246 shlibpath_var=LIBRARY_PATH 17247 shlibpath_overrides_runpath=no 17248 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17249 hardcode_into_libs=yes 17250 ;; 17251 17252hpux9* | hpux10* | hpux11*) 17253 # Give a soname corresponding to the major version so that dld.sl refuses to 17254 # link against other versions. 17255 version_type=sunos 17256 need_lib_prefix=no 17257 need_version=no 17258 case $host_cpu in 17259 ia64*) 17260 shrext_cmds='.so' 17261 hardcode_into_libs=yes 17262 dynamic_linker="$host_os dld.so" 17263 shlibpath_var=LD_LIBRARY_PATH 17264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17266 soname_spec='$libname$release$shared_ext$major' 17267 if test 32 = "$HPUX_IA64_MODE"; then 17268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17269 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17270 else 17271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17272 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17273 fi 17274 ;; 17275 hppa*64*) 17276 shrext_cmds='.sl' 17277 hardcode_into_libs=yes 17278 dynamic_linker="$host_os dld.sl" 17279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17282 soname_spec='$libname$release$shared_ext$major' 17283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17285 ;; 17286 *) 17287 shrext_cmds='.sl' 17288 dynamic_linker="$host_os dld.sl" 17289 shlibpath_var=SHLIB_PATH 17290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17292 soname_spec='$libname$release$shared_ext$major' 17293 ;; 17294 esac 17295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17296 postinstall_cmds='chmod 555 $lib' 17297 # or fails outright, so override atomically: 17298 install_override_mode=555 17299 ;; 17300 17301interix[3-9]*) 17302 version_type=linux # correct to gnu/linux during the next big refactor 17303 need_lib_prefix=no 17304 need_version=no 17305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17306 soname_spec='$libname$release$shared_ext$major' 17307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17308 shlibpath_var=LD_LIBRARY_PATH 17309 shlibpath_overrides_runpath=no 17310 hardcode_into_libs=yes 17311 ;; 17312 17313irix5* | irix6* | nonstopux*) 17314 case $host_os in 17315 nonstopux*) version_type=nonstopux ;; 17316 *) 17317 if test yes = "$lt_cv_prog_gnu_ld"; then 17318 version_type=linux # correct to gnu/linux during the next big refactor 17319 else 17320 version_type=irix 17321 fi ;; 17322 esac 17323 need_lib_prefix=no 17324 need_version=no 17325 soname_spec='$libname$release$shared_ext$major' 17326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17327 case $host_os in 17328 irix5* | nonstopux*) 17329 libsuff= shlibsuff= 17330 ;; 17331 *) 17332 case $LD in # libtool.m4 will add one of these switches to LD 17333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17334 libsuff= shlibsuff= libmagic=32-bit;; 17335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17336 libsuff=32 shlibsuff=N32 libmagic=N32;; 17337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17338 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17339 *) libsuff= shlibsuff= libmagic=never-match;; 17340 esac 17341 ;; 17342 esac 17343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17344 shlibpath_overrides_runpath=no 17345 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17346 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17347 hardcode_into_libs=yes 17348 ;; 17349 17350# No shared lib support for Linux oldld, aout, or coff. 17351linux*oldld* | linux*aout* | linux*coff*) 17352 dynamic_linker=no 17353 ;; 17354 17355linux*android*) 17356 version_type=none # Android doesn't support versioned libraries. 17357 need_lib_prefix=no 17358 need_version=no 17359 library_names_spec='$libname$release$shared_ext' 17360 soname_spec='$libname$release$shared_ext' 17361 finish_cmds= 17362 shlibpath_var=LD_LIBRARY_PATH 17363 shlibpath_overrides_runpath=yes 17364 17365 # This implies no fast_install, which is unacceptable. 17366 # Some rework will be needed to allow for fast_install 17367 # before this can be enabled. 17368 hardcode_into_libs=yes 17369 17370 dynamic_linker='Android linker' 17371 # Don't embed -rpath directories since the linker doesn't support them. 17372 hardcode_libdir_flag_spec='-L$libdir' 17373 ;; 17374 17375# This must be glibc/ELF. 17376linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17377 version_type=linux # correct to gnu/linux during the next big refactor 17378 need_lib_prefix=no 17379 need_version=no 17380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17381 soname_spec='$libname$release$shared_ext$major' 17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17383 shlibpath_var=LD_LIBRARY_PATH 17384 shlibpath_overrides_runpath=no 17385 17386 # Some binutils ld are patched to set DT_RUNPATH 17387 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17388 $as_echo_n "(cached) " >&6 17389else 17390 lt_cv_shlibpath_overrides_runpath=no 17391 save_LDFLAGS=$LDFLAGS 17392 save_libdir=$libdir 17393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397 17398int 17399main () 17400{ 17401 17402 ; 17403 return 0; 17404} 17405_ACEOF 17406if ac_fn_c_try_link "$LINENO"; then : 17407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17408 lt_cv_shlibpath_overrides_runpath=yes 17409fi 17410fi 17411rm -f core conftest.err conftest.$ac_objext \ 17412 conftest$ac_exeext conftest.$ac_ext 17413 LDFLAGS=$save_LDFLAGS 17414 libdir=$save_libdir 17415 17416fi 17417 17418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17419 17420 # This implies no fast_install, which is unacceptable. 17421 # Some rework will be needed to allow for fast_install 17422 # before this can be enabled. 17423 hardcode_into_libs=yes 17424 17425 # Ideally, we could use ldconfig to report *all* directores which are 17426 # searched for libraries, however this is still not possible. Aside from not 17427 # being certain /sbin/ldconfig is available, command 17428 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17429 # even though it is searched at run-time. Try to do the best guess by 17430 # appending ld.so.conf contents (and includes) to the search path. 17431 if test -f /etc/ld.so.conf; then 17432 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' ' '` 17433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17434 fi 17435 17436 # We used to test for /lib/ld.so.1 and disable shared libraries on 17437 # powerpc, because MkLinux only supported shared libraries with the 17438 # GNU dynamic linker. Since this was broken with cross compilers, 17439 # most powerpc-linux boxes support dynamic linking these days and 17440 # people can always --disable-shared, the test was removed, and we 17441 # assume the GNU/Linux dynamic linker is in use. 17442 dynamic_linker='GNU/Linux ld.so' 17443 ;; 17444 17445netbsdelf*-gnu) 17446 version_type=linux 17447 need_lib_prefix=no 17448 need_version=no 17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17450 soname_spec='${libname}${release}${shared_ext}$major' 17451 shlibpath_var=LD_LIBRARY_PATH 17452 shlibpath_overrides_runpath=no 17453 hardcode_into_libs=yes 17454 dynamic_linker='NetBSD ld.elf_so' 17455 ;; 17456 17457netbsd*) 17458 version_type=sunos 17459 need_lib_prefix=no 17460 need_version=no 17461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17464 dynamic_linker='NetBSD (a.out) ld.so' 17465 else 17466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17467 soname_spec='$libname$release$shared_ext$major' 17468 dynamic_linker='NetBSD ld.elf_so' 17469 fi 17470 shlibpath_var=LD_LIBRARY_PATH 17471 shlibpath_overrides_runpath=yes 17472 hardcode_into_libs=yes 17473 ;; 17474 17475newsos6) 17476 version_type=linux # correct to gnu/linux during the next big refactor 17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17478 shlibpath_var=LD_LIBRARY_PATH 17479 shlibpath_overrides_runpath=yes 17480 ;; 17481 17482*nto* | *qnx*) 17483 version_type=qnx 17484 need_lib_prefix=no 17485 need_version=no 17486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17487 soname_spec='$libname$release$shared_ext$major' 17488 shlibpath_var=LD_LIBRARY_PATH 17489 shlibpath_overrides_runpath=no 17490 hardcode_into_libs=yes 17491 dynamic_linker='ldqnx.so' 17492 ;; 17493 17494openbsd* | bitrig*) 17495 version_type=sunos 17496 sys_lib_dlsearch_path_spec=/usr/lib 17497 need_lib_prefix=no 17498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17499 need_version=no 17500 else 17501 need_version=yes 17502 fi 17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17505 shlibpath_var=LD_LIBRARY_PATH 17506 shlibpath_overrides_runpath=yes 17507 ;; 17508 17509os2*) 17510 libname_spec='$name' 17511 version_type=windows 17512 shrext_cmds=.dll 17513 need_version=no 17514 need_lib_prefix=no 17515 # OS/2 can only load a DLL with a base name of 8 characters or less. 17516 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17517 v=$($ECHO $release$versuffix | tr -d .-); 17518 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17519 $ECHO $n$v`$shared_ext' 17520 library_names_spec='${libname}_dll.$libext' 17521 dynamic_linker='OS/2 ld.exe' 17522 shlibpath_var=BEGINLIBPATH 17523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17525 postinstall_cmds='base_file=`basename \$file`~ 17526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17527 dldir=$destdir/`dirname \$dlpath`~ 17528 test -d \$dldir || mkdir -p \$dldir~ 17529 $install_prog $dir/$dlname \$dldir/$dlname~ 17530 chmod a+x \$dldir/$dlname~ 17531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17533 fi' 17534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17535 dlpath=$dir/\$dldll~ 17536 $RM \$dlpath' 17537 ;; 17538 17539osf3* | osf4* | osf5*) 17540 version_type=osf 17541 need_lib_prefix=no 17542 need_version=no 17543 soname_spec='$libname$release$shared_ext$major' 17544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17545 shlibpath_var=LD_LIBRARY_PATH 17546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17548 ;; 17549 17550rdos*) 17551 dynamic_linker=no 17552 ;; 17553 17554solaris*) 17555 version_type=linux # correct to gnu/linux during the next big refactor 17556 need_lib_prefix=no 17557 need_version=no 17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17559 soname_spec='$libname$release$shared_ext$major' 17560 shlibpath_var=LD_LIBRARY_PATH 17561 shlibpath_overrides_runpath=yes 17562 hardcode_into_libs=yes 17563 # ldd complains unless libraries are executable 17564 postinstall_cmds='chmod +x $lib' 17565 ;; 17566 17567sunos4*) 17568 version_type=sunos 17569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17571 shlibpath_var=LD_LIBRARY_PATH 17572 shlibpath_overrides_runpath=yes 17573 if test yes = "$with_gnu_ld"; then 17574 need_lib_prefix=no 17575 fi 17576 need_version=yes 17577 ;; 17578 17579sysv4 | sysv4.3*) 17580 version_type=linux # correct to gnu/linux during the next big refactor 17581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17582 soname_spec='$libname$release$shared_ext$major' 17583 shlibpath_var=LD_LIBRARY_PATH 17584 case $host_vendor in 17585 sni) 17586 shlibpath_overrides_runpath=no 17587 need_lib_prefix=no 17588 runpath_var=LD_RUN_PATH 17589 ;; 17590 siemens) 17591 need_lib_prefix=no 17592 ;; 17593 motorola) 17594 need_lib_prefix=no 17595 need_version=no 17596 shlibpath_overrides_runpath=no 17597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17598 ;; 17599 esac 17600 ;; 17601 17602sysv4*MP*) 17603 if test -d /usr/nec; then 17604 version_type=linux # correct to gnu/linux during the next big refactor 17605 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17606 soname_spec='$libname$shared_ext.$major' 17607 shlibpath_var=LD_LIBRARY_PATH 17608 fi 17609 ;; 17610 17611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17612 version_type=sco 17613 need_lib_prefix=no 17614 need_version=no 17615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17616 soname_spec='$libname$release$shared_ext$major' 17617 shlibpath_var=LD_LIBRARY_PATH 17618 shlibpath_overrides_runpath=yes 17619 hardcode_into_libs=yes 17620 if test yes = "$with_gnu_ld"; then 17621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17622 else 17623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17624 case $host_os in 17625 sco3.2v5*) 17626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17627 ;; 17628 esac 17629 fi 17630 sys_lib_dlsearch_path_spec='/usr/lib' 17631 ;; 17632 17633tpf*) 17634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17635 version_type=linux # correct to gnu/linux during the next big refactor 17636 need_lib_prefix=no 17637 need_version=no 17638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17639 shlibpath_var=LD_LIBRARY_PATH 17640 shlibpath_overrides_runpath=no 17641 hardcode_into_libs=yes 17642 ;; 17643 17644uts4*) 17645 version_type=linux # correct to gnu/linux during the next big refactor 17646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17647 soname_spec='$libname$release$shared_ext$major' 17648 shlibpath_var=LD_LIBRARY_PATH 17649 ;; 17650 17651*) 17652 dynamic_linker=no 17653 ;; 17654esac 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17656$as_echo "$dynamic_linker" >&6; } 17657test no = "$dynamic_linker" && can_build_shared=no 17658 17659variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17660if test yes = "$GCC"; then 17661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17662fi 17663 17664if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17665 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17666fi 17667 17668if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17669 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17670fi 17671 17672# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17673configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17674 17675# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17676func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17677 17678# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17679configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17778$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17779hardcode_action= 17780if test -n "$hardcode_libdir_flag_spec" || 17781 test -n "$runpath_var" || 17782 test yes = "$hardcode_automatic"; then 17783 17784 # We can hardcode non-existent directories. 17785 if test no != "$hardcode_direct" && 17786 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17787 # have to relink, otherwise we might link with an installed library 17788 # when we should be linking with a yet-to-be-installed one 17789 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17790 test no != "$hardcode_minus_L"; then 17791 # Linking always hardcodes the temporary library directory. 17792 hardcode_action=relink 17793 else 17794 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17795 hardcode_action=immediate 17796 fi 17797else 17798 # We cannot hardcode anything, or else we can only hardcode existing 17799 # directories. 17800 hardcode_action=unsupported 17801fi 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17803$as_echo "$hardcode_action" >&6; } 17804 17805if test relink = "$hardcode_action" || 17806 test yes = "$inherit_rpath"; then 17807 # Fast installation is not supported 17808 enable_fast_install=no 17809elif test yes = "$shlibpath_overrides_runpath" || 17810 test no = "$enable_shared"; then 17811 # Fast installation is not necessary 17812 enable_fast_install=needless 17813fi 17814 17815 17816 17817 17818 17819 17820 if test yes != "$enable_dlopen"; then 17821 enable_dlopen=unknown 17822 enable_dlopen_self=unknown 17823 enable_dlopen_self_static=unknown 17824else 17825 lt_cv_dlopen=no 17826 lt_cv_dlopen_libs= 17827 17828 case $host_os in 17829 beos*) 17830 lt_cv_dlopen=load_add_on 17831 lt_cv_dlopen_libs= 17832 lt_cv_dlopen_self=yes 17833 ;; 17834 17835 mingw* | pw32* | cegcc*) 17836 lt_cv_dlopen=LoadLibrary 17837 lt_cv_dlopen_libs= 17838 ;; 17839 17840 cygwin*) 17841 lt_cv_dlopen=dlopen 17842 lt_cv_dlopen_libs= 17843 ;; 17844 17845 darwin*) 17846 # if libdl is installed we need to link against it 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17848$as_echo_n "checking for dlopen in -ldl... " >&6; } 17849if ${ac_cv_lib_dl_dlopen+:} false; then : 17850 $as_echo_n "(cached) " >&6 17851else 17852 ac_check_lib_save_LIBS=$LIBS 17853LIBS="-ldl $LIBS" 17854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17855/* end confdefs.h. */ 17856 17857/* Override any GCC internal prototype to avoid an error. 17858 Use char because int might match the return type of a GCC 17859 builtin and then its argument prototype would still apply. */ 17860#ifdef __cplusplus 17861extern "C" 17862#endif 17863char dlopen (); 17864int 17865main () 17866{ 17867return dlopen (); 17868 ; 17869 return 0; 17870} 17871_ACEOF 17872if ac_fn_c_try_link "$LINENO"; then : 17873 ac_cv_lib_dl_dlopen=yes 17874else 17875 ac_cv_lib_dl_dlopen=no 17876fi 17877rm -f core conftest.err conftest.$ac_objext \ 17878 conftest$ac_exeext conftest.$ac_ext 17879LIBS=$ac_check_lib_save_LIBS 17880fi 17881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17882$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17883if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17884 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17885else 17886 17887 lt_cv_dlopen=dyld 17888 lt_cv_dlopen_libs= 17889 lt_cv_dlopen_self=yes 17890 17891fi 17892 17893 ;; 17894 17895 tpf*) 17896 # Don't try to run any link tests for TPF. We know it's impossible 17897 # because TPF is a cross-compiler, and we know how we open DSOs. 17898 lt_cv_dlopen=dlopen 17899 lt_cv_dlopen_libs= 17900 lt_cv_dlopen_self=no 17901 ;; 17902 17903 *) 17904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17905if test "x$ac_cv_func_shl_load" = xyes; then : 17906 lt_cv_dlopen=shl_load 17907else 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17909$as_echo_n "checking for shl_load in -ldld... " >&6; } 17910if ${ac_cv_lib_dld_shl_load+:} false; then : 17911 $as_echo_n "(cached) " >&6 17912else 17913 ac_check_lib_save_LIBS=$LIBS 17914LIBS="-ldld $LIBS" 17915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17916/* end confdefs.h. */ 17917 17918/* Override any GCC internal prototype to avoid an error. 17919 Use char because int might match the return type of a GCC 17920 builtin and then its argument prototype would still apply. */ 17921#ifdef __cplusplus 17922extern "C" 17923#endif 17924char shl_load (); 17925int 17926main () 17927{ 17928return shl_load (); 17929 ; 17930 return 0; 17931} 17932_ACEOF 17933if ac_fn_c_try_link "$LINENO"; then : 17934 ac_cv_lib_dld_shl_load=yes 17935else 17936 ac_cv_lib_dld_shl_load=no 17937fi 17938rm -f core conftest.err conftest.$ac_objext \ 17939 conftest$ac_exeext conftest.$ac_ext 17940LIBS=$ac_check_lib_save_LIBS 17941fi 17942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17943$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17944if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17945 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17946else 17947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17948if test "x$ac_cv_func_dlopen" = xyes; then : 17949 lt_cv_dlopen=dlopen 17950else 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17952$as_echo_n "checking for dlopen in -ldl... " >&6; } 17953if ${ac_cv_lib_dl_dlopen+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 ac_check_lib_save_LIBS=$LIBS 17957LIBS="-ldl $LIBS" 17958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960 17961/* Override any GCC internal prototype to avoid an error. 17962 Use char because int might match the return type of a GCC 17963 builtin and then its argument prototype would still apply. */ 17964#ifdef __cplusplus 17965extern "C" 17966#endif 17967char dlopen (); 17968int 17969main () 17970{ 17971return dlopen (); 17972 ; 17973 return 0; 17974} 17975_ACEOF 17976if ac_fn_c_try_link "$LINENO"; then : 17977 ac_cv_lib_dl_dlopen=yes 17978else 17979 ac_cv_lib_dl_dlopen=no 17980fi 17981rm -f core conftest.err conftest.$ac_objext \ 17982 conftest$ac_exeext conftest.$ac_ext 17983LIBS=$ac_check_lib_save_LIBS 17984fi 17985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17986$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17987if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17989else 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17991$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17992if ${ac_cv_lib_svld_dlopen+:} false; then : 17993 $as_echo_n "(cached) " >&6 17994else 17995 ac_check_lib_save_LIBS=$LIBS 17996LIBS="-lsvld $LIBS" 17997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17998/* end confdefs.h. */ 17999 18000/* Override any GCC internal prototype to avoid an error. 18001 Use char because int might match the return type of a GCC 18002 builtin and then its argument prototype would still apply. */ 18003#ifdef __cplusplus 18004extern "C" 18005#endif 18006char dlopen (); 18007int 18008main () 18009{ 18010return dlopen (); 18011 ; 18012 return 0; 18013} 18014_ACEOF 18015if ac_fn_c_try_link "$LINENO"; then : 18016 ac_cv_lib_svld_dlopen=yes 18017else 18018 ac_cv_lib_svld_dlopen=no 18019fi 18020rm -f core conftest.err conftest.$ac_objext \ 18021 conftest$ac_exeext conftest.$ac_ext 18022LIBS=$ac_check_lib_save_LIBS 18023fi 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18025$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18026if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18028else 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18030$as_echo_n "checking for dld_link in -ldld... " >&6; } 18031if ${ac_cv_lib_dld_dld_link+:} false; then : 18032 $as_echo_n "(cached) " >&6 18033else 18034 ac_check_lib_save_LIBS=$LIBS 18035LIBS="-ldld $LIBS" 18036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18037/* end confdefs.h. */ 18038 18039/* Override any GCC internal prototype to avoid an error. 18040 Use char because int might match the return type of a GCC 18041 builtin and then its argument prototype would still apply. */ 18042#ifdef __cplusplus 18043extern "C" 18044#endif 18045char dld_link (); 18046int 18047main () 18048{ 18049return dld_link (); 18050 ; 18051 return 0; 18052} 18053_ACEOF 18054if ac_fn_c_try_link "$LINENO"; then : 18055 ac_cv_lib_dld_dld_link=yes 18056else 18057 ac_cv_lib_dld_dld_link=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext \ 18060 conftest$ac_exeext conftest.$ac_ext 18061LIBS=$ac_check_lib_save_LIBS 18062fi 18063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18064$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18065if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18066 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18067fi 18068 18069 18070fi 18071 18072 18073fi 18074 18075 18076fi 18077 18078 18079fi 18080 18081 18082fi 18083 18084 ;; 18085 esac 18086 18087 if test no = "$lt_cv_dlopen"; then 18088 enable_dlopen=no 18089 else 18090 enable_dlopen=yes 18091 fi 18092 18093 case $lt_cv_dlopen in 18094 dlopen) 18095 save_CPPFLAGS=$CPPFLAGS 18096 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18097 18098 save_LDFLAGS=$LDFLAGS 18099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18100 18101 save_LIBS=$LIBS 18102 LIBS="$lt_cv_dlopen_libs $LIBS" 18103 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18105$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18106if ${lt_cv_dlopen_self+:} false; then : 18107 $as_echo_n "(cached) " >&6 18108else 18109 if test yes = "$cross_compiling"; then : 18110 lt_cv_dlopen_self=cross 18111else 18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18113 lt_status=$lt_dlunknown 18114 cat > conftest.$ac_ext <<_LT_EOF 18115#line $LINENO "configure" 18116#include "confdefs.h" 18117 18118#if HAVE_DLFCN_H 18119#include <dlfcn.h> 18120#endif 18121 18122#include <stdio.h> 18123 18124#ifdef RTLD_GLOBAL 18125# define LT_DLGLOBAL RTLD_GLOBAL 18126#else 18127# ifdef DL_GLOBAL 18128# define LT_DLGLOBAL DL_GLOBAL 18129# else 18130# define LT_DLGLOBAL 0 18131# endif 18132#endif 18133 18134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18135 find out it does not work in some platform. */ 18136#ifndef LT_DLLAZY_OR_NOW 18137# ifdef RTLD_LAZY 18138# define LT_DLLAZY_OR_NOW RTLD_LAZY 18139# else 18140# ifdef DL_LAZY 18141# define LT_DLLAZY_OR_NOW DL_LAZY 18142# else 18143# ifdef RTLD_NOW 18144# define LT_DLLAZY_OR_NOW RTLD_NOW 18145# else 18146# ifdef DL_NOW 18147# define LT_DLLAZY_OR_NOW DL_NOW 18148# else 18149# define LT_DLLAZY_OR_NOW 0 18150# endif 18151# endif 18152# endif 18153# endif 18154#endif 18155 18156/* When -fvisibility=hidden is used, assume the code has been annotated 18157 correspondingly for the symbols needed. */ 18158#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18159int fnord () __attribute__((visibility("default"))); 18160#endif 18161 18162int fnord () { return 42; } 18163int main () 18164{ 18165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18166 int status = $lt_dlunknown; 18167 18168 if (self) 18169 { 18170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18171 else 18172 { 18173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18174 else puts (dlerror ()); 18175 } 18176 /* dlclose (self); */ 18177 } 18178 else 18179 puts (dlerror ()); 18180 18181 return status; 18182} 18183_LT_EOF 18184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18185 (eval $ac_link) 2>&5 18186 ac_status=$? 18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18188 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18189 (./conftest; exit; ) >&5 2>/dev/null 18190 lt_status=$? 18191 case x$lt_status in 18192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18195 esac 18196 else : 18197 # compilation failed 18198 lt_cv_dlopen_self=no 18199 fi 18200fi 18201rm -fr conftest* 18202 18203 18204fi 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18206$as_echo "$lt_cv_dlopen_self" >&6; } 18207 18208 if test yes = "$lt_cv_dlopen_self"; then 18209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18211$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18212if ${lt_cv_dlopen_self_static+:} false; then : 18213 $as_echo_n "(cached) " >&6 18214else 18215 if test yes = "$cross_compiling"; then : 18216 lt_cv_dlopen_self_static=cross 18217else 18218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18219 lt_status=$lt_dlunknown 18220 cat > conftest.$ac_ext <<_LT_EOF 18221#line $LINENO "configure" 18222#include "confdefs.h" 18223 18224#if HAVE_DLFCN_H 18225#include <dlfcn.h> 18226#endif 18227 18228#include <stdio.h> 18229 18230#ifdef RTLD_GLOBAL 18231# define LT_DLGLOBAL RTLD_GLOBAL 18232#else 18233# ifdef DL_GLOBAL 18234# define LT_DLGLOBAL DL_GLOBAL 18235# else 18236# define LT_DLGLOBAL 0 18237# endif 18238#endif 18239 18240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18241 find out it does not work in some platform. */ 18242#ifndef LT_DLLAZY_OR_NOW 18243# ifdef RTLD_LAZY 18244# define LT_DLLAZY_OR_NOW RTLD_LAZY 18245# else 18246# ifdef DL_LAZY 18247# define LT_DLLAZY_OR_NOW DL_LAZY 18248# else 18249# ifdef RTLD_NOW 18250# define LT_DLLAZY_OR_NOW RTLD_NOW 18251# else 18252# ifdef DL_NOW 18253# define LT_DLLAZY_OR_NOW DL_NOW 18254# else 18255# define LT_DLLAZY_OR_NOW 0 18256# endif 18257# endif 18258# endif 18259# endif 18260#endif 18261 18262/* When -fvisibility=hidden is used, assume the code has been annotated 18263 correspondingly for the symbols needed. */ 18264#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18265int fnord () __attribute__((visibility("default"))); 18266#endif 18267 18268int fnord () { return 42; } 18269int main () 18270{ 18271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18272 int status = $lt_dlunknown; 18273 18274 if (self) 18275 { 18276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18277 else 18278 { 18279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18280 else puts (dlerror ()); 18281 } 18282 /* dlclose (self); */ 18283 } 18284 else 18285 puts (dlerror ()); 18286 18287 return status; 18288} 18289_LT_EOF 18290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18291 (eval $ac_link) 2>&5 18292 ac_status=$? 18293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18294 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18295 (./conftest; exit; ) >&5 2>/dev/null 18296 lt_status=$? 18297 case x$lt_status in 18298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18301 esac 18302 else : 18303 # compilation failed 18304 lt_cv_dlopen_self_static=no 18305 fi 18306fi 18307rm -fr conftest* 18308 18309 18310fi 18311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18312$as_echo "$lt_cv_dlopen_self_static" >&6; } 18313 fi 18314 18315 CPPFLAGS=$save_CPPFLAGS 18316 LDFLAGS=$save_LDFLAGS 18317 LIBS=$save_LIBS 18318 ;; 18319 esac 18320 18321 case $lt_cv_dlopen_self in 18322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18323 *) enable_dlopen_self=unknown ;; 18324 esac 18325 18326 case $lt_cv_dlopen_self_static in 18327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18328 *) enable_dlopen_self_static=unknown ;; 18329 esac 18330fi 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348striplib= 18349old_striplib= 18350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18351$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18352if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18354 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18356$as_echo "yes" >&6; } 18357else 18358# FIXME - insert some real tests, host_os isn't really good enough 18359 case $host_os in 18360 darwin*) 18361 if test -n "$STRIP"; then 18362 striplib="$STRIP -x" 18363 old_striplib="$STRIP -S" 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18365$as_echo "yes" >&6; } 18366 else 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18368$as_echo "no" >&6; } 18369 fi 18370 ;; 18371 *) 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18373$as_echo "no" >&6; } 18374 ;; 18375 esac 18376fi 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 # Report what library types will actually be built 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18391$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18393$as_echo "$can_build_shared" >&6; } 18394 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18396$as_echo_n "checking whether to build shared libraries... " >&6; } 18397 test no = "$can_build_shared" && enable_shared=no 18398 18399 # On AIX, shared libraries and static libraries use the same namespace, and 18400 # are all built from PIC. 18401 case $host_os in 18402 aix3*) 18403 test yes = "$enable_shared" && enable_static=no 18404 if test -n "$RANLIB"; then 18405 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18406 postinstall_cmds='$RANLIB $lib' 18407 fi 18408 ;; 18409 18410 aix[4-9]*) 18411 if test ia64 != "$host_cpu"; then 18412 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18413 yes,aix,yes) ;; # shared object as lib.so file only 18414 yes,svr4,*) ;; # shared object as lib.so archive member only 18415 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18416 esac 18417 fi 18418 ;; 18419 esac 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18421$as_echo "$enable_shared" >&6; } 18422 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18424$as_echo_n "checking whether to build static libraries... " >&6; } 18425 # Make sure either enable_shared or enable_static is yes. 18426 test yes = "$enable_shared" || enable_static=yes 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18428$as_echo "$enable_static" >&6; } 18429 18430 18431 18432 18433fi 18434ac_ext=c 18435ac_cpp='$CPP $CPPFLAGS' 18436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18438ac_compiler_gnu=$ac_cv_c_compiler_gnu 18439 18440CC=$lt_save_CC 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 ac_config_commands="$ac_config_commands libtool" 18457 18458 18459 18460 18461# Only expand once: 18462 18463 18464 18465 18466 18467# Define a configure option for an alternate module directory 18468 18469# Check whether --with-xorg-module-dir was given. 18470if test "${with_xorg_module_dir+set}" = set; then : 18471 withval=$with_xorg_module_dir; moduledir="$withval" 18472else 18473 moduledir="$libdir/xorg/modules" 18474fi 18475 18476 18477# Store the list of server defined optional extensions in REQUIRED_MODULES 18478 18479 18480 SAVE_CFLAGS="$CFLAGS" 18481 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18483/* end confdefs.h. */ 18484 18485#include "xorg-server.h" 18486#if !defined RANDR 18487#error RANDR not defined 18488#endif 18489 18490int 18491main () 18492{ 18493 18494 ; 18495 return 0; 18496} 18497_ACEOF 18498if ac_fn_c_try_compile "$LINENO"; then : 18499 _EXT_CHECK=yes 18500else 18501 _EXT_CHECK=no 18502fi 18503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18504 CFLAGS="$SAVE_CFLAGS" 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18506$as_echo_n "checking if RANDR is defined... " >&6; } 18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18508$as_echo "$_EXT_CHECK" >&6; } 18509 if test "$_EXT_CHECK" != no; then 18510 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18511 fi 18512 18513 18514 18515 SAVE_CFLAGS="$CFLAGS" 18516 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518/* end confdefs.h. */ 18519 18520#include "xorg-server.h" 18521#if !defined RENDER 18522#error RENDER not defined 18523#endif 18524 18525int 18526main () 18527{ 18528 18529 ; 18530 return 0; 18531} 18532_ACEOF 18533if ac_fn_c_try_compile "$LINENO"; then : 18534 _EXT_CHECK=yes 18535else 18536 _EXT_CHECK=no 18537fi 18538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18539 CFLAGS="$SAVE_CFLAGS" 18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18541$as_echo_n "checking if RENDER is defined... " >&6; } 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18543$as_echo "$_EXT_CHECK" >&6; } 18544 if test "$_EXT_CHECK" != no; then 18545 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18546 fi 18547 18548 18549 18550 SAVE_CFLAGS="$CFLAGS" 18551 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18553/* end confdefs.h. */ 18554 18555#include "xorg-server.h" 18556#if !defined XV 18557#error XV not defined 18558#endif 18559 18560int 18561main () 18562{ 18563 18564 ; 18565 return 0; 18566} 18567_ACEOF 18568if ac_fn_c_try_compile "$LINENO"; then : 18569 _EXT_CHECK=yes 18570else 18571 _EXT_CHECK=no 18572fi 18573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18574 CFLAGS="$SAVE_CFLAGS" 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18576$as_echo_n "checking if XV is defined... " >&6; } 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18578$as_echo "$_EXT_CHECK" >&6; } 18579 if test "$_EXT_CHECK" != no; then 18580 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18581 fi 18582 18583 18584 18585 SAVE_CFLAGS="$CFLAGS" 18586 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18588/* end confdefs.h. */ 18589 18590#include "xorg-server.h" 18591#if !defined DPMSExtension 18592#error DPMSExtension not defined 18593#endif 18594 18595int 18596main () 18597{ 18598 18599 ; 18600 return 0; 18601} 18602_ACEOF 18603if ac_fn_c_try_compile "$LINENO"; then : 18604 _EXT_CHECK=yes 18605else 18606 _EXT_CHECK=no 18607fi 18608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18609 CFLAGS="$SAVE_CFLAGS" 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18611$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18613$as_echo "$_EXT_CHECK" >&6; } 18614 if test "$_EXT_CHECK" != no; then 18615 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18616 fi 18617 18618 18619# Obtain compiler/linker options for the driver dependencies 18620 18621pkg_failed=no 18622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18623$as_echo_n "checking for XORG... " >&6; } 18624 18625if test -n "$XORG_CFLAGS"; then 18626 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18627 elif test -n "$PKG_CONFIG"; then 18628 if test -n "$PKG_CONFIG" && \ 18629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18630 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18631 ac_status=$? 18632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18633 test $ac_status = 0; }; then 18634 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18635 test "x$?" != "x0" && pkg_failed=yes 18636else 18637 pkg_failed=yes 18638fi 18639 else 18640 pkg_failed=untried 18641fi 18642if test -n "$XORG_LIBS"; then 18643 pkg_cv_XORG_LIBS="$XORG_LIBS" 18644 elif test -n "$PKG_CONFIG"; then 18645 if test -n "$PKG_CONFIG" && \ 18646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18647 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18648 ac_status=$? 18649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18650 test $ac_status = 0; }; then 18651 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18652 test "x$?" != "x0" && pkg_failed=yes 18653else 18654 pkg_failed=yes 18655fi 18656 else 18657 pkg_failed=untried 18658fi 18659 18660 18661 18662if test $pkg_failed = yes; then 18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18664$as_echo "no" >&6; } 18665 18666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18667 _pkg_short_errors_supported=yes 18668else 18669 _pkg_short_errors_supported=no 18670fi 18671 if test $_pkg_short_errors_supported = yes; then 18672 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18673 else 18674 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18675 fi 18676 # Put the nasty error message in config.log where it belongs 18677 echo "$XORG_PKG_ERRORS" >&5 18678 18679 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18680 18681$XORG_PKG_ERRORS 18682 18683Consider adjusting the PKG_CONFIG_PATH environment variable if you 18684installed software in a non-standard prefix. 18685 18686Alternatively, you may set the environment variables XORG_CFLAGS 18687and XORG_LIBS to avoid the need to call pkg-config. 18688See the pkg-config man page for more details." "$LINENO" 5 18689elif test $pkg_failed = untried; then 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18691$as_echo "no" >&6; } 18692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18694as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18695is in your PATH or set the PKG_CONFIG environment variable to the full 18696path to pkg-config. 18697 18698Alternatively, you may set the environment variables XORG_CFLAGS 18699and XORG_LIBS to avoid the need to call pkg-config. 18700See the pkg-config man page for more details. 18701 18702To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18703See \`config.log' for more details" "$LINENO" 5; } 18704else 18705 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18706 XORG_LIBS=$pkg_cv_XORG_LIBS 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18708$as_echo "yes" >&6; } 18709 18710fi 18711 18712# Checks for libraries. 18713SAVE_CPPFLAGS="$CPPFLAGS" 18714CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18715ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18716" 18717if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18718 XSERVER_LIBPCIACCESS=yes 18719else 18720 XSERVER_LIBPCIACCESS=no 18721fi 18722 18723ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 18724if test "x$ac_cv_header_xf1bpp_h" = xyes; then : 18725 18726$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 18727 18728fi 18729 18730 18731ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 18732if test "x$ac_cv_header_xf4bpp_h" = xyes; then : 18733 18734$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 18735 18736fi 18737 18738 18739CPPFLAGS="$SAVE_CPPFLAGS" 18740 18741if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18742 18743pkg_failed=no 18744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18745$as_echo_n "checking for PCIACCESS... " >&6; } 18746 18747if test -n "$PCIACCESS_CFLAGS"; then 18748 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18749 elif test -n "$PKG_CONFIG"; then 18750 if test -n "$PKG_CONFIG" && \ 18751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18752 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18753 ac_status=$? 18754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18755 test $ac_status = 0; }; then 18756 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18757 test "x$?" != "x0" && pkg_failed=yes 18758else 18759 pkg_failed=yes 18760fi 18761 else 18762 pkg_failed=untried 18763fi 18764if test -n "$PCIACCESS_LIBS"; then 18765 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18766 elif test -n "$PKG_CONFIG"; then 18767 if test -n "$PKG_CONFIG" && \ 18768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18769 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18770 ac_status=$? 18771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18772 test $ac_status = 0; }; then 18773 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18774 test "x$?" != "x0" && pkg_failed=yes 18775else 18776 pkg_failed=yes 18777fi 18778 else 18779 pkg_failed=untried 18780fi 18781 18782 18783 18784if test $pkg_failed = yes; then 18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18786$as_echo "no" >&6; } 18787 18788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18789 _pkg_short_errors_supported=yes 18790else 18791 _pkg_short_errors_supported=no 18792fi 18793 if test $_pkg_short_errors_supported = yes; then 18794 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18795 else 18796 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18797 fi 18798 # Put the nasty error message in config.log where it belongs 18799 echo "$PCIACCESS_PKG_ERRORS" >&5 18800 18801 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18802 18803$PCIACCESS_PKG_ERRORS 18804 18805Consider adjusting the PKG_CONFIG_PATH environment variable if you 18806installed software in a non-standard prefix. 18807 18808Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18809and PCIACCESS_LIBS to avoid the need to call pkg-config. 18810See the pkg-config man page for more details." "$LINENO" 5 18811elif test $pkg_failed = untried; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813$as_echo "no" >&6; } 18814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18816as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18817is in your PATH or set the PKG_CONFIG environment variable to the full 18818path to pkg-config. 18819 18820Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18821and PCIACCESS_LIBS to avoid the need to call pkg-config. 18822See the pkg-config man page for more details. 18823 18824To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18825See \`config.log' for more details" "$LINENO" 5; } 18826else 18827 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18828 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18830$as_echo "yes" >&6; } 18831 18832fi 18833 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18834fi 18835 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18836 XSERVER_LIBPCIACCESS_TRUE= 18837 XSERVER_LIBPCIACCESS_FALSE='#' 18838else 18839 XSERVER_LIBPCIACCESS_TRUE='#' 18840 XSERVER_LIBPCIACCESS_FALSE= 18841fi 18842 18843# Check whether --enable-xaa was given. 18844if test "${enable_xaa+set}" = set; then : 18845 enableval=$enable_xaa; XAA="$enableval" 18846else 18847 XAA=auto 18848fi 18849 18850if test "x$XAA" != xno; then 18851 save_CFLAGS=$CFLAGS 18852 save_CPPFLAGS=$CPPFLAGS 18853 CFLAGS=$XORG_CFLAGS 18854 CPPFLAGS="$XORG_CFLAGS" 18855 for ac_header in xaa.h 18856do : 18857 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18858if test "x$ac_cv_header_xaa_h" = xyes; then : 18859 cat >>confdefs.h <<_ACEOF 18860#define HAVE_XAA_H 1 18861_ACEOF 18862 XAA=yes 18863else 18864 XAA=no 18865fi 18866 18867done 18868 18869 CFLAGS=$save_CFLAGS 18870 CPPFLAGS=$save_CPPFLAGS 18871fi 18872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18873$as_echo_n "checking whether to include XAA support... " >&6; } 18874 if test "x$XAA" = xyes; then 18875 XAA_TRUE= 18876 XAA_FALSE='#' 18877else 18878 XAA_TRUE='#' 18879 XAA_FALSE= 18880fi 18881 18882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18883$as_echo "$XAA" >&6; } 18884 18885save_CFLAGS="$CFLAGS" 18886CFLAGS="$XORG_CFLAGS" 18887ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 18888" 18889if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then : 18890 18891$as_echo "#define HAVE_ISA 1" >>confdefs.h 18892 18893fi 18894 18895CFLAGS="$save_CFLAGS" 18896 18897 18898# Checks for functions (often defined as inlines in compiler.h) 18899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb" >&5 18900$as_echo_n "checking for inb... " >&6; } 18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18902/* end confdefs.h. */ 18903 18904#include "util/AsmMacros.h" 18905 18906int main() { 18907 int x = inb(0); 18908 return x; 18909} 18910 18911_ACEOF 18912if ac_fn_c_try_link "$LINENO"; then : 18913 HAVE_INB=yes 18914else 18915 HAVE_INB=no 18916fi 18917rm -f core conftest.err conftest.$ac_objext \ 18918 conftest$ac_exeext conftest.$ac_ext 18919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5 18920$as_echo "$HAVE_INB" >&6; } 18921 if test x$HAVE_INB = xyes; then 18922 BUILD_UTILS_TRUE= 18923 BUILD_UTILS_FALSE='#' 18924else 18925 BUILD_UTILS_TRUE='#' 18926 BUILD_UTILS_FALSE= 18927fi 18928 18929 18930 18931 18932DRIVER_NAME=chips 18933 18934 18935ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 18936 18937cat >confcache <<\_ACEOF 18938# This file is a shell script that caches the results of configure 18939# tests run on this system so they can be shared between configure 18940# scripts and configure runs, see configure's option --config-cache. 18941# It is not useful on other systems. If it contains results you don't 18942# want to keep, you may remove or edit it. 18943# 18944# config.status only pays attention to the cache file if you give it 18945# the --recheck option to rerun configure. 18946# 18947# `ac_cv_env_foo' variables (set or unset) will be overridden when 18948# loading this file, other *unset* `ac_cv_foo' will be assigned the 18949# following values. 18950 18951_ACEOF 18952 18953# The following way of writing the cache mishandles newlines in values, 18954# but we know of no workaround that is simple, portable, and efficient. 18955# So, we kill variables containing newlines. 18956# Ultrix sh set writes to stderr and can't be redirected directly, 18957# and sets the high bit in the cache file unless we assign to the vars. 18958( 18959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18960 eval ac_val=\$$ac_var 18961 case $ac_val in #( 18962 *${as_nl}*) 18963 case $ac_var in #( 18964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18966 esac 18967 case $ac_var in #( 18968 _ | IFS | as_nl) ;; #( 18969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18970 *) { eval $ac_var=; unset $ac_var;} ;; 18971 esac ;; 18972 esac 18973 done 18974 18975 (set) 2>&1 | 18976 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18977 *${as_nl}ac_space=\ *) 18978 # `set' does not quote correctly, so add quotes: double-quote 18979 # substitution turns \\\\ into \\, and sed turns \\ into \. 18980 sed -n \ 18981 "s/'/'\\\\''/g; 18982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18983 ;; #( 18984 *) 18985 # `set' quotes correctly as required by POSIX, so do not add quotes. 18986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18987 ;; 18988 esac | 18989 sort 18990) | 18991 sed ' 18992 /^ac_cv_env_/b end 18993 t clear 18994 :clear 18995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18996 t end 18997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18998 :end' >>confcache 18999if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19000 if test -w "$cache_file"; then 19001 if test "x$cache_file" != "x/dev/null"; then 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19003$as_echo "$as_me: updating cache $cache_file" >&6;} 19004 if test ! -f "$cache_file" || test -h "$cache_file"; then 19005 cat confcache >"$cache_file" 19006 else 19007 case $cache_file in #( 19008 */* | ?:*) 19009 mv -f confcache "$cache_file"$$ && 19010 mv -f "$cache_file"$$ "$cache_file" ;; #( 19011 *) 19012 mv -f confcache "$cache_file" ;; 19013 esac 19014 fi 19015 fi 19016 else 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19018$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19019 fi 19020fi 19021rm -f confcache 19022 19023test "x$prefix" = xNONE && prefix=$ac_default_prefix 19024# Let make expand exec_prefix. 19025test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19026 19027DEFS=-DHAVE_CONFIG_H 19028 19029ac_libobjs= 19030ac_ltlibobjs= 19031U= 19032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19033 # 1. Remove the extension, and $U if already installed. 19034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19037 # will be set to the directory where LIBOBJS objects are built. 19038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19040done 19041LIBOBJS=$ac_libobjs 19042 19043LTLIBOBJS=$ac_ltlibobjs 19044 19045 19046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19047$as_echo_n "checking that generated files are newer than configure... " >&6; } 19048 if test -n "$am_sleep_pid"; then 19049 # Hide warnings about reused PIDs. 19050 wait $am_sleep_pid 2>/dev/null 19051 fi 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19053$as_echo "done" >&6; } 19054 if test -n "$EXEEXT"; then 19055 am__EXEEXT_TRUE= 19056 am__EXEEXT_FALSE='#' 19057else 19058 am__EXEEXT_TRUE='#' 19059 am__EXEEXT_FALSE= 19060fi 19061 19062if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19063 as_fn_error $? "conditional \"AMDEP\" was never defined. 19064Usually this means the macro was only invoked conditionally." "$LINENO" 5 19065fi 19066if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19067 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19068Usually this means the macro was only invoked conditionally." "$LINENO" 5 19069fi 19070if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19071 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19072Usually this means the macro was only invoked conditionally." "$LINENO" 5 19073fi 19074if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19075 as_fn_error $? "conditional \"XAA\" was never defined. 19076Usually this means the macro was only invoked conditionally." "$LINENO" 5 19077fi 19078if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then 19079 as_fn_error $? "conditional \"BUILD_UTILS\" was never defined. 19080Usually this means the macro was only invoked conditionally." "$LINENO" 5 19081fi 19082 19083: "${CONFIG_STATUS=./config.status}" 19084ac_write_fail=0 19085ac_clean_files_save=$ac_clean_files 19086ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19087{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19088$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19089as_write_fail=0 19090cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19091#! $SHELL 19092# Generated by $as_me. 19093# Run this file to recreate the current configuration. 19094# Compiler output produced by configure, useful for debugging 19095# configure, is in config.log if it exists. 19096 19097debug=false 19098ac_cs_recheck=false 19099ac_cs_silent=false 19100 19101SHELL=\${CONFIG_SHELL-$SHELL} 19102export SHELL 19103_ASEOF 19104cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19105## -------------------- ## 19106## M4sh Initialization. ## 19107## -------------------- ## 19108 19109# Be more Bourne compatible 19110DUALCASE=1; export DUALCASE # for MKS sh 19111if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19112 emulate sh 19113 NULLCMD=: 19114 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19115 # is contrary to our usage. Disable this feature. 19116 alias -g '${1+"$@"}'='"$@"' 19117 setopt NO_GLOB_SUBST 19118else 19119 case `(set -o) 2>/dev/null` in #( 19120 *posix*) : 19121 set -o posix ;; #( 19122 *) : 19123 ;; 19124esac 19125fi 19126 19127 19128as_nl=' 19129' 19130export as_nl 19131# Printing a long string crashes Solaris 7 /usr/bin/printf. 19132as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19133as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19134as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19135# Prefer a ksh shell builtin over an external printf program on Solaris, 19136# but without wasting forks for bash or zsh. 19137if test -z "$BASH_VERSION$ZSH_VERSION" \ 19138 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19139 as_echo='print -r --' 19140 as_echo_n='print -rn --' 19141elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19142 as_echo='printf %s\n' 19143 as_echo_n='printf %s' 19144else 19145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19147 as_echo_n='/usr/ucb/echo -n' 19148 else 19149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19150 as_echo_n_body='eval 19151 arg=$1; 19152 case $arg in #( 19153 *"$as_nl"*) 19154 expr "X$arg" : "X\\(.*\\)$as_nl"; 19155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19156 esac; 19157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19158 ' 19159 export as_echo_n_body 19160 as_echo_n='sh -c $as_echo_n_body as_echo' 19161 fi 19162 export as_echo_body 19163 as_echo='sh -c $as_echo_body as_echo' 19164fi 19165 19166# The user is always right. 19167if test "${PATH_SEPARATOR+set}" != set; then 19168 PATH_SEPARATOR=: 19169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19171 PATH_SEPARATOR=';' 19172 } 19173fi 19174 19175 19176# IFS 19177# We need space, tab and new line, in precisely that order. Quoting is 19178# there to prevent editors from complaining about space-tab. 19179# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19180# splitting by setting IFS to empty value.) 19181IFS=" "" $as_nl" 19182 19183# Find who we are. Look in the path if we contain no directory separator. 19184as_myself= 19185case $0 in #(( 19186 *[\\/]* ) as_myself=$0 ;; 19187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19188for as_dir in $PATH 19189do 19190 IFS=$as_save_IFS 19191 test -z "$as_dir" && as_dir=. 19192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19193 done 19194IFS=$as_save_IFS 19195 19196 ;; 19197esac 19198# We did not find ourselves, most probably we were run as `sh COMMAND' 19199# in which case we are not to be found in the path. 19200if test "x$as_myself" = x; then 19201 as_myself=$0 19202fi 19203if test ! -f "$as_myself"; then 19204 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19205 exit 1 19206fi 19207 19208# Unset variables that we do not need and which cause bugs (e.g. in 19209# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19210# suppresses any "Segmentation fault" message there. '((' could 19211# trigger a bug in pdksh 5.2.14. 19212for as_var in BASH_ENV ENV MAIL MAILPATH 19213do eval test x\${$as_var+set} = xset \ 19214 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19215done 19216PS1='$ ' 19217PS2='> ' 19218PS4='+ ' 19219 19220# NLS nuisances. 19221LC_ALL=C 19222export LC_ALL 19223LANGUAGE=C 19224export LANGUAGE 19225 19226# CDPATH. 19227(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19228 19229 19230# as_fn_error STATUS ERROR [LINENO LOG_FD] 19231# ---------------------------------------- 19232# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19233# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19234# script with STATUS, using 1 if that was 0. 19235as_fn_error () 19236{ 19237 as_status=$1; test $as_status -eq 0 && as_status=1 19238 if test "$4"; then 19239 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19240 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19241 fi 19242 $as_echo "$as_me: error: $2" >&2 19243 as_fn_exit $as_status 19244} # as_fn_error 19245 19246 19247# as_fn_set_status STATUS 19248# ----------------------- 19249# Set $? to STATUS, without forking. 19250as_fn_set_status () 19251{ 19252 return $1 19253} # as_fn_set_status 19254 19255# as_fn_exit STATUS 19256# ----------------- 19257# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19258as_fn_exit () 19259{ 19260 set +e 19261 as_fn_set_status $1 19262 exit $1 19263} # as_fn_exit 19264 19265# as_fn_unset VAR 19266# --------------- 19267# Portably unset VAR. 19268as_fn_unset () 19269{ 19270 { eval $1=; unset $1;} 19271} 19272as_unset=as_fn_unset 19273# as_fn_append VAR VALUE 19274# ---------------------- 19275# Append the text in VALUE to the end of the definition contained in VAR. Take 19276# advantage of any shell optimizations that allow amortized linear growth over 19277# repeated appends, instead of the typical quadratic growth present in naive 19278# implementations. 19279if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19280 eval 'as_fn_append () 19281 { 19282 eval $1+=\$2 19283 }' 19284else 19285 as_fn_append () 19286 { 19287 eval $1=\$$1\$2 19288 } 19289fi # as_fn_append 19290 19291# as_fn_arith ARG... 19292# ------------------ 19293# Perform arithmetic evaluation on the ARGs, and store the result in the 19294# global $as_val. Take advantage of shells that can avoid forks. The arguments 19295# must be portable across $(()) and expr. 19296if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19297 eval 'as_fn_arith () 19298 { 19299 as_val=$(( $* )) 19300 }' 19301else 19302 as_fn_arith () 19303 { 19304 as_val=`expr "$@" || test $? -eq 1` 19305 } 19306fi # as_fn_arith 19307 19308 19309if expr a : '\(a\)' >/dev/null 2>&1 && 19310 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19311 as_expr=expr 19312else 19313 as_expr=false 19314fi 19315 19316if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19317 as_basename=basename 19318else 19319 as_basename=false 19320fi 19321 19322if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19323 as_dirname=dirname 19324else 19325 as_dirname=false 19326fi 19327 19328as_me=`$as_basename -- "$0" || 19329$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19330 X"$0" : 'X\(//\)$' \| \ 19331 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19332$as_echo X/"$0" | 19333 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19334 s//\1/ 19335 q 19336 } 19337 /^X\/\(\/\/\)$/{ 19338 s//\1/ 19339 q 19340 } 19341 /^X\/\(\/\).*/{ 19342 s//\1/ 19343 q 19344 } 19345 s/.*/./; q'` 19346 19347# Avoid depending upon Character Ranges. 19348as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19349as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19350as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19351as_cr_digits='0123456789' 19352as_cr_alnum=$as_cr_Letters$as_cr_digits 19353 19354ECHO_C= ECHO_N= ECHO_T= 19355case `echo -n x` in #((((( 19356-n*) 19357 case `echo 'xy\c'` in 19358 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19359 xy) ECHO_C='\c';; 19360 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19361 ECHO_T=' ';; 19362 esac;; 19363*) 19364 ECHO_N='-n';; 19365esac 19366 19367rm -f conf$$ conf$$.exe conf$$.file 19368if test -d conf$$.dir; then 19369 rm -f conf$$.dir/conf$$.file 19370else 19371 rm -f conf$$.dir 19372 mkdir conf$$.dir 2>/dev/null 19373fi 19374if (echo >conf$$.file) 2>/dev/null; then 19375 if ln -s conf$$.file conf$$ 2>/dev/null; then 19376 as_ln_s='ln -s' 19377 # ... but there are two gotchas: 19378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19380 # In both cases, we have to default to `cp -pR'. 19381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19382 as_ln_s='cp -pR' 19383 elif ln conf$$.file conf$$ 2>/dev/null; then 19384 as_ln_s=ln 19385 else 19386 as_ln_s='cp -pR' 19387 fi 19388else 19389 as_ln_s='cp -pR' 19390fi 19391rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19392rmdir conf$$.dir 2>/dev/null 19393 19394 19395# as_fn_mkdir_p 19396# ------------- 19397# Create "$as_dir" as a directory, including parents if necessary. 19398as_fn_mkdir_p () 19399{ 19400 19401 case $as_dir in #( 19402 -*) as_dir=./$as_dir;; 19403 esac 19404 test -d "$as_dir" || eval $as_mkdir_p || { 19405 as_dirs= 19406 while :; do 19407 case $as_dir in #( 19408 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19409 *) as_qdir=$as_dir;; 19410 esac 19411 as_dirs="'$as_qdir' $as_dirs" 19412 as_dir=`$as_dirname -- "$as_dir" || 19413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19414 X"$as_dir" : 'X\(//\)[^/]' \| \ 19415 X"$as_dir" : 'X\(//\)$' \| \ 19416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19417$as_echo X"$as_dir" | 19418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19419 s//\1/ 19420 q 19421 } 19422 /^X\(\/\/\)[^/].*/{ 19423 s//\1/ 19424 q 19425 } 19426 /^X\(\/\/\)$/{ 19427 s//\1/ 19428 q 19429 } 19430 /^X\(\/\).*/{ 19431 s//\1/ 19432 q 19433 } 19434 s/.*/./; q'` 19435 test -d "$as_dir" && break 19436 done 19437 test -z "$as_dirs" || eval "mkdir $as_dirs" 19438 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19439 19440 19441} # as_fn_mkdir_p 19442if mkdir -p . 2>/dev/null; then 19443 as_mkdir_p='mkdir -p "$as_dir"' 19444else 19445 test -d ./-p && rmdir ./-p 19446 as_mkdir_p=false 19447fi 19448 19449 19450# as_fn_executable_p FILE 19451# ----------------------- 19452# Test if FILE is an executable regular file. 19453as_fn_executable_p () 19454{ 19455 test -f "$1" && test -x "$1" 19456} # as_fn_executable_p 19457as_test_x='test -x' 19458as_executable_p=as_fn_executable_p 19459 19460# Sed expression to map a string onto a valid CPP name. 19461as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19462 19463# Sed expression to map a string onto a valid variable name. 19464as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19465 19466 19467exec 6>&1 19468## ----------------------------------- ## 19469## Main body of $CONFIG_STATUS script. ## 19470## ----------------------------------- ## 19471_ASEOF 19472test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19473 19474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19475# Save the log message, to keep $0 and so on meaningful, and to 19476# report actual input values of CONFIG_FILES etc. instead of their 19477# values after options handling. 19478ac_log=" 19479This file was extended by xf86-video-chips $as_me 1.3.0, which was 19480generated by GNU Autoconf 2.69. Invocation command line was 19481 19482 CONFIG_FILES = $CONFIG_FILES 19483 CONFIG_HEADERS = $CONFIG_HEADERS 19484 CONFIG_LINKS = $CONFIG_LINKS 19485 CONFIG_COMMANDS = $CONFIG_COMMANDS 19486 $ $0 $@ 19487 19488on `(hostname || uname -n) 2>/dev/null | sed 1q` 19489" 19490 19491_ACEOF 19492 19493case $ac_config_files in *" 19494"*) set x $ac_config_files; shift; ac_config_files=$*;; 19495esac 19496 19497case $ac_config_headers in *" 19498"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19499esac 19500 19501 19502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19503# Files that config.status was made for. 19504config_files="$ac_config_files" 19505config_headers="$ac_config_headers" 19506config_commands="$ac_config_commands" 19507 19508_ACEOF 19509 19510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19511ac_cs_usage="\ 19512\`$as_me' instantiates files and other configuration actions 19513from templates according to the current configuration. Unless the files 19514and actions are specified as TAGs, all are instantiated by default. 19515 19516Usage: $0 [OPTION]... [TAG]... 19517 19518 -h, --help print this help, then exit 19519 -V, --version print version number and configuration settings, then exit 19520 --config print configuration, then exit 19521 -q, --quiet, --silent 19522 do not print progress messages 19523 -d, --debug don't remove temporary files 19524 --recheck update $as_me by reconfiguring in the same conditions 19525 --file=FILE[:TEMPLATE] 19526 instantiate the configuration file FILE 19527 --header=FILE[:TEMPLATE] 19528 instantiate the configuration header FILE 19529 19530Configuration files: 19531$config_files 19532 19533Configuration headers: 19534$config_headers 19535 19536Configuration commands: 19537$config_commands 19538 19539Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>." 19540 19541_ACEOF 19542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19543ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19544ac_cs_version="\\ 19545xf86-video-chips config.status 1.3.0 19546configured by $0, generated by GNU Autoconf 2.69, 19547 with options \\"\$ac_cs_config\\" 19548 19549Copyright (C) 2012 Free Software Foundation, Inc. 19550This config.status script is free software; the Free Software Foundation 19551gives unlimited permission to copy, distribute and modify it." 19552 19553ac_pwd='$ac_pwd' 19554srcdir='$srcdir' 19555INSTALL='$INSTALL' 19556MKDIR_P='$MKDIR_P' 19557AWK='$AWK' 19558test -n "\$AWK" || AWK=awk 19559_ACEOF 19560 19561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19562# The default lists apply if the user does not specify any file. 19563ac_need_defaults=: 19564while test $# != 0 19565do 19566 case $1 in 19567 --*=?*) 19568 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19570 ac_shift=: 19571 ;; 19572 --*=) 19573 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19574 ac_optarg= 19575 ac_shift=: 19576 ;; 19577 *) 19578 ac_option=$1 19579 ac_optarg=$2 19580 ac_shift=shift 19581 ;; 19582 esac 19583 19584 case $ac_option in 19585 # Handling of the options. 19586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19587 ac_cs_recheck=: ;; 19588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19589 $as_echo "$ac_cs_version"; exit ;; 19590 --config | --confi | --conf | --con | --co | --c ) 19591 $as_echo "$ac_cs_config"; exit ;; 19592 --debug | --debu | --deb | --de | --d | -d ) 19593 debug=: ;; 19594 --file | --fil | --fi | --f ) 19595 $ac_shift 19596 case $ac_optarg in 19597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19598 '') as_fn_error $? "missing file argument" ;; 19599 esac 19600 as_fn_append CONFIG_FILES " '$ac_optarg'" 19601 ac_need_defaults=false;; 19602 --header | --heade | --head | --hea ) 19603 $ac_shift 19604 case $ac_optarg in 19605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19606 esac 19607 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19608 ac_need_defaults=false;; 19609 --he | --h) 19610 # Conflict between --help and --header 19611 as_fn_error $? "ambiguous option: \`$1' 19612Try \`$0 --help' for more information.";; 19613 --help | --hel | -h ) 19614 $as_echo "$ac_cs_usage"; exit ;; 19615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19616 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19617 ac_cs_silent=: ;; 19618 19619 # This is an error. 19620 -*) as_fn_error $? "unrecognized option: \`$1' 19621Try \`$0 --help' for more information." ;; 19622 19623 *) as_fn_append ac_config_targets " $1" 19624 ac_need_defaults=false ;; 19625 19626 esac 19627 shift 19628done 19629 19630ac_configure_extra_args= 19631 19632if $ac_cs_silent; then 19633 exec 6>/dev/null 19634 ac_configure_extra_args="$ac_configure_extra_args --silent" 19635fi 19636 19637_ACEOF 19638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19639if \$ac_cs_recheck; then 19640 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19641 shift 19642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19643 CONFIG_SHELL='$SHELL' 19644 export CONFIG_SHELL 19645 exec "\$@" 19646fi 19647 19648_ACEOF 19649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19650exec 5>>config.log 19651{ 19652 echo 19653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19654## Running $as_me. ## 19655_ASBOX 19656 $as_echo "$ac_log" 19657} >&5 19658 19659_ACEOF 19660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19661# 19662# INIT-COMMANDS 19663# 19664AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19665 19666 19667# The HP-UX ksh and POSIX shell print the target directory to stdout 19668# if CDPATH is set. 19669(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19670 19671sed_quote_subst='$sed_quote_subst' 19672double_quote_subst='$double_quote_subst' 19673delay_variable_subst='$delay_variable_subst' 19674enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19675macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19676macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19677enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19678pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19679enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19680shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19681SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19682ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19683PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19684host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19685host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19686host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19687build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19688build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19689build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19690SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19691Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19692GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19693EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19694FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19695LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19696NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19697LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19698max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19699ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19700exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19701lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19702lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19703lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19704lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19705lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19706reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19707reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19708OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19709deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19710file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19711file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19712want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19713DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19714sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19715AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19716AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19717archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19718STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19719RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19720old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19721old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19722old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19723lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19724CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19725CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19726compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19727GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19728lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19729lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19730lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19731lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19732lt_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"`' 19733lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19734nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19735lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19736lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19737objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19738MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19739lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19740lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19741lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19742lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19743lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19744need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19745MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19746DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19747NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19748LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19749OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19750OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19751libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19752shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19753extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19754archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19755enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19756export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19757whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19758compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19759old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19760old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19761archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19762archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19763module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19764module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19765with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19766allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19767no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19768hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19769hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19770hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19771hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19772hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19773hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19774hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19775inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19776link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19777always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19778export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19779exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19780include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19781prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19782postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19783file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19784variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19785need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19786need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19787version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19788runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19789shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19790shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19791libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19792library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19793soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19794install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19795postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19796postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19797finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19798finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19799hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19800sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19801configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19802configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19803hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19804enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19805enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19806enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19807old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19808striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19809 19810LTCC='$LTCC' 19811LTCFLAGS='$LTCFLAGS' 19812compiler='$compiler_DEFAULT' 19813 19814# A function that is used when there is no print builtin or printf. 19815func_fallback_echo () 19816{ 19817 eval 'cat <<_LTECHO_EOF 19818\$1 19819_LTECHO_EOF' 19820} 19821 19822# Quote evaled strings. 19823for var in SHELL \ 19824ECHO \ 19825PATH_SEPARATOR \ 19826SED \ 19827GREP \ 19828EGREP \ 19829FGREP \ 19830LD \ 19831NM \ 19832LN_S \ 19833lt_SP2NL \ 19834lt_NL2SP \ 19835reload_flag \ 19836OBJDUMP \ 19837deplibs_check_method \ 19838file_magic_cmd \ 19839file_magic_glob \ 19840want_nocaseglob \ 19841DLLTOOL \ 19842sharedlib_from_linklib_cmd \ 19843AR \ 19844AR_FLAGS \ 19845archiver_list_spec \ 19846STRIP \ 19847RANLIB \ 19848CC \ 19849CFLAGS \ 19850compiler \ 19851lt_cv_sys_global_symbol_pipe \ 19852lt_cv_sys_global_symbol_to_cdecl \ 19853lt_cv_sys_global_symbol_to_import \ 19854lt_cv_sys_global_symbol_to_c_name_address \ 19855lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19856lt_cv_nm_interface \ 19857nm_file_list_spec \ 19858lt_cv_truncate_bin \ 19859lt_prog_compiler_no_builtin_flag \ 19860lt_prog_compiler_pic \ 19861lt_prog_compiler_wl \ 19862lt_prog_compiler_static \ 19863lt_cv_prog_compiler_c_o \ 19864need_locks \ 19865MANIFEST_TOOL \ 19866DSYMUTIL \ 19867NMEDIT \ 19868LIPO \ 19869OTOOL \ 19870OTOOL64 \ 19871shrext_cmds \ 19872export_dynamic_flag_spec \ 19873whole_archive_flag_spec \ 19874compiler_needs_object \ 19875with_gnu_ld \ 19876allow_undefined_flag \ 19877no_undefined_flag \ 19878hardcode_libdir_flag_spec \ 19879hardcode_libdir_separator \ 19880exclude_expsyms \ 19881include_expsyms \ 19882file_list_spec \ 19883variables_saved_for_relink \ 19884libname_spec \ 19885library_names_spec \ 19886soname_spec \ 19887install_override_mode \ 19888finish_eval \ 19889old_striplib \ 19890striplib; do 19891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19892 *[\\\\\\\`\\"\\\$]*) 19893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19894 ;; 19895 *) 19896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19897 ;; 19898 esac 19899done 19900 19901# Double-quote double-evaled strings. 19902for var in reload_cmds \ 19903old_postinstall_cmds \ 19904old_postuninstall_cmds \ 19905old_archive_cmds \ 19906extract_expsyms_cmds \ 19907old_archive_from_new_cmds \ 19908old_archive_from_expsyms_cmds \ 19909archive_cmds \ 19910archive_expsym_cmds \ 19911module_cmds \ 19912module_expsym_cmds \ 19913export_symbols_cmds \ 19914prelink_cmds \ 19915postlink_cmds \ 19916postinstall_cmds \ 19917postuninstall_cmds \ 19918finish_cmds \ 19919sys_lib_search_path_spec \ 19920configure_time_dlsearch_path \ 19921configure_time_lt_sys_library_path; do 19922 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19923 *[\\\\\\\`\\"\\\$]*) 19924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19925 ;; 19926 *) 19927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19928 ;; 19929 esac 19930done 19931 19932ac_aux_dir='$ac_aux_dir' 19933 19934# See if we are running on zsh, and set the options that allow our 19935# commands through without removal of \ escapes INIT. 19936if test -n "\${ZSH_VERSION+set}"; then 19937 setopt NO_GLOB_SUBST 19938fi 19939 19940 19941 PACKAGE='$PACKAGE' 19942 VERSION='$VERSION' 19943 RM='$RM' 19944 ofile='$ofile' 19945 19946 19947 19948 19949_ACEOF 19950 19951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19952 19953# Handling of arguments. 19954for ac_config_target in $ac_config_targets 19955do 19956 case $ac_config_target in 19957 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19958 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19959 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19960 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19961 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19962 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19963 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 19964 19965 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19966 esac 19967done 19968 19969 19970# If the user did not use the arguments to specify the items to instantiate, 19971# then the envvar interface is used. Set only those that are not. 19972# We use the long form for the default assignment because of an extremely 19973# bizarre bug on SunOS 4.1.3. 19974if $ac_need_defaults; then 19975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19978fi 19979 19980# Have a temporary directory for convenience. Make it in the build tree 19981# simply because there is no reason against having it here, and in addition, 19982# creating and moving files from /tmp can sometimes cause problems. 19983# Hook for its removal unless debugging. 19984# Note that there is a small window in which the directory will not be cleaned: 19985# after its creation but before its name has been assigned to `$tmp'. 19986$debug || 19987{ 19988 tmp= ac_tmp= 19989 trap 'exit_status=$? 19990 : "${ac_tmp:=$tmp}" 19991 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19992' 0 19993 trap 'as_fn_exit 1' 1 2 13 15 19994} 19995# Create a (secure) tmp directory for tmp files. 19996 19997{ 19998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19999 test -d "$tmp" 20000} || 20001{ 20002 tmp=./conf$$-$RANDOM 20003 (umask 077 && mkdir "$tmp") 20004} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20005ac_tmp=$tmp 20006 20007# Set up the scripts for CONFIG_FILES section. 20008# No need to generate them if there are no CONFIG_FILES. 20009# This happens for instance with `./config.status config.h'. 20010if test -n "$CONFIG_FILES"; then 20011 20012 20013ac_cr=`echo X | tr X '\015'` 20014# On cygwin, bash can eat \r inside `` if the user requested igncr. 20015# But we know of no other shell where ac_cr would be empty at this 20016# point, so we can use a bashism as a fallback. 20017if test "x$ac_cr" = x; then 20018 eval ac_cr=\$\'\\r\' 20019fi 20020ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20021if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20022 ac_cs_awk_cr='\\r' 20023else 20024 ac_cs_awk_cr=$ac_cr 20025fi 20026 20027echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20028_ACEOF 20029 20030 20031{ 20032 echo "cat >conf$$subs.awk <<_ACEOF" && 20033 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20034 echo "_ACEOF" 20035} >conf$$subs.sh || 20036 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20037ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20038ac_delim='%!_!# ' 20039for ac_last_try in false false false false false :; do 20040 . ./conf$$subs.sh || 20041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20042 20043 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20044 if test $ac_delim_n = $ac_delim_num; then 20045 break 20046 elif $ac_last_try; then 20047 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20048 else 20049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20050 fi 20051done 20052rm -f conf$$subs.sh 20053 20054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20055cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20056_ACEOF 20057sed -n ' 20058h 20059s/^/S["/; s/!.*/"]=/ 20060p 20061g 20062s/^[^!]*!// 20063:repl 20064t repl 20065s/'"$ac_delim"'$// 20066t delim 20067:nl 20068h 20069s/\(.\{148\}\)..*/\1/ 20070t more1 20071s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20072p 20073n 20074b repl 20075:more1 20076s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20077p 20078g 20079s/.\{148\}// 20080t nl 20081:delim 20082h 20083s/\(.\{148\}\)..*/\1/ 20084t more2 20085s/["\\]/\\&/g; s/^/"/; s/$/"/ 20086p 20087b 20088:more2 20089s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20090p 20091g 20092s/.\{148\}// 20093t delim 20094' <conf$$subs.awk | sed ' 20095/^[^""]/{ 20096 N 20097 s/\n// 20098} 20099' >>$CONFIG_STATUS || ac_write_fail=1 20100rm -f conf$$subs.awk 20101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20102_ACAWK 20103cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20104 for (key in S) S_is_set[key] = 1 20105 FS = "" 20106 20107} 20108{ 20109 line = $ 0 20110 nfields = split(line, field, "@") 20111 substed = 0 20112 len = length(field[1]) 20113 for (i = 2; i < nfields; i++) { 20114 key = field[i] 20115 keylen = length(key) 20116 if (S_is_set[key]) { 20117 value = S[key] 20118 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20119 len += length(value) + length(field[++i]) 20120 substed = 1 20121 } else 20122 len += 1 + keylen 20123 } 20124 20125 print line 20126} 20127 20128_ACAWK 20129_ACEOF 20130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20131if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20132 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20133else 20134 cat 20135fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20136 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20137_ACEOF 20138 20139# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20140# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20141# trailing colons and then remove the whole line if VPATH becomes empty 20142# (actually we leave an empty line to preserve line numbers). 20143if test "x$srcdir" = x.; then 20144 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20145h 20146s/// 20147s/^/:/ 20148s/[ ]*$/:/ 20149s/:\$(srcdir):/:/g 20150s/:\${srcdir}:/:/g 20151s/:@srcdir@:/:/g 20152s/^:*// 20153s/:*$// 20154x 20155s/\(=[ ]*\).*/\1/ 20156G 20157s/\n// 20158s/^[^=]*=[ ]*$// 20159}' 20160fi 20161 20162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20163fi # test -n "$CONFIG_FILES" 20164 20165# Set up the scripts for CONFIG_HEADERS section. 20166# No need to generate them if there are no CONFIG_HEADERS. 20167# This happens for instance with `./config.status Makefile'. 20168if test -n "$CONFIG_HEADERS"; then 20169cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20170BEGIN { 20171_ACEOF 20172 20173# Transform confdefs.h into an awk script `defines.awk', embedded as 20174# here-document in config.status, that substitutes the proper values into 20175# config.h.in to produce config.h. 20176 20177# Create a delimiter string that does not exist in confdefs.h, to ease 20178# handling of long lines. 20179ac_delim='%!_!# ' 20180for ac_last_try in false false :; do 20181 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20182 if test -z "$ac_tt"; then 20183 break 20184 elif $ac_last_try; then 20185 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20186 else 20187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20188 fi 20189done 20190 20191# For the awk script, D is an array of macro values keyed by name, 20192# likewise P contains macro parameters if any. Preserve backslash 20193# newline sequences. 20194 20195ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20196sed -n ' 20197s/.\{148\}/&'"$ac_delim"'/g 20198t rset 20199:rset 20200s/^[ ]*#[ ]*define[ ][ ]*/ / 20201t def 20202d 20203:def 20204s/\\$// 20205t bsnl 20206s/["\\]/\\&/g 20207s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20208D["\1"]=" \3"/p 20209s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20210d 20211:bsnl 20212s/["\\]/\\&/g 20213s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20214D["\1"]=" \3\\\\\\n"\\/p 20215t cont 20216s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20217t cont 20218d 20219:cont 20220n 20221s/.\{148\}/&'"$ac_delim"'/g 20222t clear 20223:clear 20224s/\\$// 20225t bsnlc 20226s/["\\]/\\&/g; s/^/"/; s/$/"/p 20227d 20228:bsnlc 20229s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20230b cont 20231' <confdefs.h | sed ' 20232s/'"$ac_delim"'/"\\\ 20233"/g' >>$CONFIG_STATUS || ac_write_fail=1 20234 20235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20236 for (key in D) D_is_set[key] = 1 20237 FS = "" 20238} 20239/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20240 line = \$ 0 20241 split(line, arg, " ") 20242 if (arg[1] == "#") { 20243 defundef = arg[2] 20244 mac1 = arg[3] 20245 } else { 20246 defundef = substr(arg[1], 2) 20247 mac1 = arg[2] 20248 } 20249 split(mac1, mac2, "(") #) 20250 macro = mac2[1] 20251 prefix = substr(line, 1, index(line, defundef) - 1) 20252 if (D_is_set[macro]) { 20253 # Preserve the white space surrounding the "#". 20254 print prefix "define", macro P[macro] D[macro] 20255 next 20256 } else { 20257 # Replace #undef with comments. This is necessary, for example, 20258 # in the case of _POSIX_SOURCE, which is predefined and required 20259 # on some systems where configure will not decide to define it. 20260 if (defundef == "undef") { 20261 print "/*", prefix defundef, macro, "*/" 20262 next 20263 } 20264 } 20265} 20266{ print } 20267_ACAWK 20268_ACEOF 20269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20270 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20271fi # test -n "$CONFIG_HEADERS" 20272 20273 20274eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20275shift 20276for ac_tag 20277do 20278 case $ac_tag in 20279 :[FHLC]) ac_mode=$ac_tag; continue;; 20280 esac 20281 case $ac_mode$ac_tag in 20282 :[FHL]*:*);; 20283 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20284 :[FH]-) ac_tag=-:-;; 20285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20286 esac 20287 ac_save_IFS=$IFS 20288 IFS=: 20289 set x $ac_tag 20290 IFS=$ac_save_IFS 20291 shift 20292 ac_file=$1 20293 shift 20294 20295 case $ac_mode in 20296 :L) ac_source=$1;; 20297 :[FH]) 20298 ac_file_inputs= 20299 for ac_f 20300 do 20301 case $ac_f in 20302 -) ac_f="$ac_tmp/stdin";; 20303 *) # Look for the file first in the build tree, then in the source tree 20304 # (if the path is not absolute). The absolute path cannot be DOS-style, 20305 # because $ac_f cannot contain `:'. 20306 test -f "$ac_f" || 20307 case $ac_f in 20308 [\\/$]*) false;; 20309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20310 esac || 20311 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20312 esac 20313 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20314 as_fn_append ac_file_inputs " '$ac_f'" 20315 done 20316 20317 # Let's still pretend it is `configure' which instantiates (i.e., don't 20318 # use $as_me), people would be surprised to read: 20319 # /* config.h. Generated by config.status. */ 20320 configure_input='Generated from '` 20321 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20322 `' by configure.' 20323 if test x"$ac_file" != x-; then 20324 configure_input="$ac_file. $configure_input" 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20326$as_echo "$as_me: creating $ac_file" >&6;} 20327 fi 20328 # Neutralize special characters interpreted by sed in replacement strings. 20329 case $configure_input in #( 20330 *\&* | *\|* | *\\* ) 20331 ac_sed_conf_input=`$as_echo "$configure_input" | 20332 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20333 *) ac_sed_conf_input=$configure_input;; 20334 esac 20335 20336 case $ac_tag in 20337 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20339 esac 20340 ;; 20341 esac 20342 20343 ac_dir=`$as_dirname -- "$ac_file" || 20344$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20345 X"$ac_file" : 'X\(//\)[^/]' \| \ 20346 X"$ac_file" : 'X\(//\)$' \| \ 20347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20348$as_echo X"$ac_file" | 20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20350 s//\1/ 20351 q 20352 } 20353 /^X\(\/\/\)[^/].*/{ 20354 s//\1/ 20355 q 20356 } 20357 /^X\(\/\/\)$/{ 20358 s//\1/ 20359 q 20360 } 20361 /^X\(\/\).*/{ 20362 s//\1/ 20363 q 20364 } 20365 s/.*/./; q'` 20366 as_dir="$ac_dir"; as_fn_mkdir_p 20367 ac_builddir=. 20368 20369case "$ac_dir" in 20370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20371*) 20372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20373 # A ".." for each directory in $ac_dir_suffix. 20374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20375 case $ac_top_builddir_sub in 20376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20378 esac ;; 20379esac 20380ac_abs_top_builddir=$ac_pwd 20381ac_abs_builddir=$ac_pwd$ac_dir_suffix 20382# for backward compatibility: 20383ac_top_builddir=$ac_top_build_prefix 20384 20385case $srcdir in 20386 .) # We are building in place. 20387 ac_srcdir=. 20388 ac_top_srcdir=$ac_top_builddir_sub 20389 ac_abs_top_srcdir=$ac_pwd ;; 20390 [\\/]* | ?:[\\/]* ) # Absolute name. 20391 ac_srcdir=$srcdir$ac_dir_suffix; 20392 ac_top_srcdir=$srcdir 20393 ac_abs_top_srcdir=$srcdir ;; 20394 *) # Relative name. 20395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20396 ac_top_srcdir=$ac_top_build_prefix$srcdir 20397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20398esac 20399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20400 20401 20402 case $ac_mode in 20403 :F) 20404 # 20405 # CONFIG_FILE 20406 # 20407 20408 case $INSTALL in 20409 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20410 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20411 esac 20412 ac_MKDIR_P=$MKDIR_P 20413 case $MKDIR_P in 20414 [\\/$]* | ?:[\\/]* ) ;; 20415 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20416 esac 20417_ACEOF 20418 20419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20420# If the template does not know about datarootdir, expand it. 20421# FIXME: This hack should be removed a few years after 2.60. 20422ac_datarootdir_hack=; ac_datarootdir_seen= 20423ac_sed_dataroot=' 20424/datarootdir/ { 20425 p 20426 q 20427} 20428/@datadir@/p 20429/@docdir@/p 20430/@infodir@/p 20431/@localedir@/p 20432/@mandir@/p' 20433case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20434*datarootdir*) ac_datarootdir_seen=yes;; 20435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20437$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20438_ACEOF 20439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20440 ac_datarootdir_hack=' 20441 s&@datadir@&$datadir&g 20442 s&@docdir@&$docdir&g 20443 s&@infodir@&$infodir&g 20444 s&@localedir@&$localedir&g 20445 s&@mandir@&$mandir&g 20446 s&\\\${datarootdir}&$datarootdir&g' ;; 20447esac 20448_ACEOF 20449 20450# Neutralize VPATH when `$srcdir' = `.'. 20451# Shell code in configure.ac might set extrasub. 20452# FIXME: do we really want to maintain this feature? 20453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20454ac_sed_extra="$ac_vpsub 20455$extrasub 20456_ACEOF 20457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20458:t 20459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20460s|@configure_input@|$ac_sed_conf_input|;t t 20461s&@top_builddir@&$ac_top_builddir_sub&;t t 20462s&@top_build_prefix@&$ac_top_build_prefix&;t t 20463s&@srcdir@&$ac_srcdir&;t t 20464s&@abs_srcdir@&$ac_abs_srcdir&;t t 20465s&@top_srcdir@&$ac_top_srcdir&;t t 20466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20467s&@builddir@&$ac_builddir&;t t 20468s&@abs_builddir@&$ac_abs_builddir&;t t 20469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20470s&@INSTALL@&$ac_INSTALL&;t t 20471s&@MKDIR_P@&$ac_MKDIR_P&;t t 20472$ac_datarootdir_hack 20473" 20474eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20475 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20476 20477test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20478 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20480 "$ac_tmp/out"`; test -z "$ac_out"; } && 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20482which seems to be undefined. Please make sure it is defined" >&5 20483$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20484which seems to be undefined. Please make sure it is defined" >&2;} 20485 20486 rm -f "$ac_tmp/stdin" 20487 case $ac_file in 20488 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20489 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20490 esac \ 20491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20492 ;; 20493 :H) 20494 # 20495 # CONFIG_HEADER 20496 # 20497 if test x"$ac_file" != x-; then 20498 { 20499 $as_echo "/* $configure_input */" \ 20500 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20501 } >"$ac_tmp/config.h" \ 20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20503 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20504 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20505$as_echo "$as_me: $ac_file is unchanged" >&6;} 20506 else 20507 rm -f "$ac_file" 20508 mv "$ac_tmp/config.h" "$ac_file" \ 20509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20510 fi 20511 else 20512 $as_echo "/* $configure_input */" \ 20513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20514 || as_fn_error $? "could not create -" "$LINENO" 5 20515 fi 20516# Compute "$ac_file"'s index in $config_headers. 20517_am_arg="$ac_file" 20518_am_stamp_count=1 20519for _am_header in $config_headers :; do 20520 case $_am_header in 20521 $_am_arg | $_am_arg:* ) 20522 break ;; 20523 * ) 20524 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20525 esac 20526done 20527echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20528$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20529 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20530 X"$_am_arg" : 'X\(//\)$' \| \ 20531 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20532$as_echo X"$_am_arg" | 20533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20534 s//\1/ 20535 q 20536 } 20537 /^X\(\/\/\)[^/].*/{ 20538 s//\1/ 20539 q 20540 } 20541 /^X\(\/\/\)$/{ 20542 s//\1/ 20543 q 20544 } 20545 /^X\(\/\).*/{ 20546 s//\1/ 20547 q 20548 } 20549 s/.*/./; q'`/stamp-h$_am_stamp_count 20550 ;; 20551 20552 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20553$as_echo "$as_me: executing $ac_file commands" >&6;} 20554 ;; 20555 esac 20556 20557 20558 case $ac_file$ac_mode in 20559 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20560 # Older Autoconf quotes --file arguments for eval, but not when files 20561 # are listed without --file. Let's play safe and only enable the eval 20562 # if we detect the quoting. 20563 case $CONFIG_FILES in 20564 *\'*) eval set x "$CONFIG_FILES" ;; 20565 *) set x $CONFIG_FILES ;; 20566 esac 20567 shift 20568 for mf 20569 do 20570 # Strip MF so we end up with the name of the file. 20571 mf=`echo "$mf" | sed -e 's/:.*$//'` 20572 # Check whether this is an Automake generated Makefile or not. 20573 # We used to match only the files named 'Makefile.in', but 20574 # some people rename them; so instead we look at the file content. 20575 # Grep'ing the first line is not enough: some people post-process 20576 # each Makefile.in and add a new line on top of each file to say so. 20577 # Grep'ing the whole file is not good either: AIX grep has a line 20578 # limit of 2048, but all sed's we know have understand at least 4000. 20579 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20580 dirpart=`$as_dirname -- "$mf" || 20581$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20582 X"$mf" : 'X\(//\)[^/]' \| \ 20583 X"$mf" : 'X\(//\)$' \| \ 20584 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20585$as_echo X"$mf" | 20586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20587 s//\1/ 20588 q 20589 } 20590 /^X\(\/\/\)[^/].*/{ 20591 s//\1/ 20592 q 20593 } 20594 /^X\(\/\/\)$/{ 20595 s//\1/ 20596 q 20597 } 20598 /^X\(\/\).*/{ 20599 s//\1/ 20600 q 20601 } 20602 s/.*/./; q'` 20603 else 20604 continue 20605 fi 20606 # Extract the definition of DEPDIR, am__include, and am__quote 20607 # from the Makefile without running 'make'. 20608 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20609 test -z "$DEPDIR" && continue 20610 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20611 test -z "$am__include" && continue 20612 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20613 # Find all dependency output files, they are included files with 20614 # $(DEPDIR) in their names. We invoke sed twice because it is the 20615 # simplest approach to changing $(DEPDIR) to its actual value in the 20616 # expansion. 20617 for file in `sed -n " 20618 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20619 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20620 # Make sure the directory exists. 20621 test -f "$dirpart/$file" && continue 20622 fdir=`$as_dirname -- "$file" || 20623$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20624 X"$file" : 'X\(//\)[^/]' \| \ 20625 X"$file" : 'X\(//\)$' \| \ 20626 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20627$as_echo X"$file" | 20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20629 s//\1/ 20630 q 20631 } 20632 /^X\(\/\/\)[^/].*/{ 20633 s//\1/ 20634 q 20635 } 20636 /^X\(\/\/\)$/{ 20637 s//\1/ 20638 q 20639 } 20640 /^X\(\/\).*/{ 20641 s//\1/ 20642 q 20643 } 20644 s/.*/./; q'` 20645 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20646 # echo "creating $dirpart/$file" 20647 echo '# dummy' > "$dirpart/$file" 20648 done 20649 done 20650} 20651 ;; 20652 "libtool":C) 20653 20654 # See if we are running on zsh, and set the options that allow our 20655 # commands through without removal of \ escapes. 20656 if test -n "${ZSH_VERSION+set}"; then 20657 setopt NO_GLOB_SUBST 20658 fi 20659 20660 cfgfile=${ofile}T 20661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20662 $RM "$cfgfile" 20663 20664 cat <<_LT_EOF >> "$cfgfile" 20665#! $SHELL 20666# Generated automatically by $as_me ($PACKAGE) $VERSION 20667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20668# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20669 20670# Provide generalized library-building support services. 20671# Written by Gordon Matzigkeit, 1996 20672 20673# Copyright (C) 2014 Free Software Foundation, Inc. 20674# This is free software; see the source for copying conditions. There is NO 20675# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20676 20677# GNU Libtool is free software; you can redistribute it and/or modify 20678# it under the terms of the GNU General Public License as published by 20679# the Free Software Foundation; either version 2 of of the License, or 20680# (at your option) any later version. 20681# 20682# As a special exception to the GNU General Public License, if you 20683# distribute this file as part of a program or library that is built 20684# using GNU Libtool, you may include this file under the same 20685# distribution terms that you use for the rest of that program. 20686# 20687# GNU Libtool is distributed in the hope that it will be useful, but 20688# WITHOUT ANY WARRANTY; without even the implied warranty of 20689# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20690# GNU General Public License for more details. 20691# 20692# You should have received a copy of the GNU General Public License 20693# along with this program. If not, see <http://www.gnu.org/licenses/>. 20694 20695 20696# The names of the tagged configurations supported by this script. 20697available_tags='' 20698 20699# Configured defaults for sys_lib_dlsearch_path munging. 20700: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20701 20702# ### BEGIN LIBTOOL CONFIG 20703 20704# Whether or not to build static libraries. 20705build_old_libs=$enable_static 20706 20707# Which release of libtool.m4 was used? 20708macro_version=$macro_version 20709macro_revision=$macro_revision 20710 20711# Whether or not to build shared libraries. 20712build_libtool_libs=$enable_shared 20713 20714# What type of objects to build. 20715pic_mode=$pic_mode 20716 20717# Whether or not to optimize for fast installation. 20718fast_install=$enable_fast_install 20719 20720# Shared archive member basename,for filename based shared library versioning on AIX. 20721shared_archive_member_spec=$shared_archive_member_spec 20722 20723# Shell to use when invoking shell scripts. 20724SHELL=$lt_SHELL 20725 20726# An echo program that protects backslashes. 20727ECHO=$lt_ECHO 20728 20729# The PATH separator for the build system. 20730PATH_SEPARATOR=$lt_PATH_SEPARATOR 20731 20732# The host system. 20733host_alias=$host_alias 20734host=$host 20735host_os=$host_os 20736 20737# The build system. 20738build_alias=$build_alias 20739build=$build 20740build_os=$build_os 20741 20742# A sed program that does not truncate output. 20743SED=$lt_SED 20744 20745# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20746Xsed="\$SED -e 1s/^X//" 20747 20748# A grep program that handles long lines. 20749GREP=$lt_GREP 20750 20751# An ERE matcher. 20752EGREP=$lt_EGREP 20753 20754# A literal string matcher. 20755FGREP=$lt_FGREP 20756 20757# A BSD- or MS-compatible name lister. 20758NM=$lt_NM 20759 20760# Whether we need soft or hard links. 20761LN_S=$lt_LN_S 20762 20763# What is the maximum length of a command? 20764max_cmd_len=$max_cmd_len 20765 20766# Object file suffix (normally "o"). 20767objext=$ac_objext 20768 20769# Executable file suffix (normally ""). 20770exeext=$exeext 20771 20772# whether the shell understands "unset". 20773lt_unset=$lt_unset 20774 20775# turn spaces into newlines. 20776SP2NL=$lt_lt_SP2NL 20777 20778# turn newlines into spaces. 20779NL2SP=$lt_lt_NL2SP 20780 20781# convert \$build file names to \$host format. 20782to_host_file_cmd=$lt_cv_to_host_file_cmd 20783 20784# convert \$build files to toolchain format. 20785to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20786 20787# An object symbol dumper. 20788OBJDUMP=$lt_OBJDUMP 20789 20790# Method to check whether dependent libraries are shared objects. 20791deplibs_check_method=$lt_deplibs_check_method 20792 20793# Command to use when deplibs_check_method = "file_magic". 20794file_magic_cmd=$lt_file_magic_cmd 20795 20796# How to find potential files when deplibs_check_method = "file_magic". 20797file_magic_glob=$lt_file_magic_glob 20798 20799# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20800want_nocaseglob=$lt_want_nocaseglob 20801 20802# DLL creation program. 20803DLLTOOL=$lt_DLLTOOL 20804 20805# Command to associate shared and link libraries. 20806sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20807 20808# The archiver. 20809AR=$lt_AR 20810 20811# Flags to create an archive. 20812AR_FLAGS=$lt_AR_FLAGS 20813 20814# How to feed a file listing to the archiver. 20815archiver_list_spec=$lt_archiver_list_spec 20816 20817# A symbol stripping program. 20818STRIP=$lt_STRIP 20819 20820# Commands used to install an old-style archive. 20821RANLIB=$lt_RANLIB 20822old_postinstall_cmds=$lt_old_postinstall_cmds 20823old_postuninstall_cmds=$lt_old_postuninstall_cmds 20824 20825# Whether to use a lock for old archive extraction. 20826lock_old_archive_extraction=$lock_old_archive_extraction 20827 20828# A C compiler. 20829LTCC=$lt_CC 20830 20831# LTCC compiler flags. 20832LTCFLAGS=$lt_CFLAGS 20833 20834# Take the output of nm and produce a listing of raw symbols and C names. 20835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20836 20837# Transform the output of nm in a proper C declaration. 20838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20839 20840# Transform the output of nm into a list of symbols to manually relocate. 20841global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20842 20843# Transform the output of nm in a C name address pair. 20844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20845 20846# Transform the output of nm in a C name address pair when lib prefix is needed. 20847global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20848 20849# The name lister interface. 20850nm_interface=$lt_lt_cv_nm_interface 20851 20852# Specify filename containing input files for \$NM. 20853nm_file_list_spec=$lt_nm_file_list_spec 20854 20855# The root where to search for dependent libraries,and where our libraries should be installed. 20856lt_sysroot=$lt_sysroot 20857 20858# Command to truncate a binary pipe. 20859lt_truncate_bin=$lt_lt_cv_truncate_bin 20860 20861# The name of the directory that contains temporary libtool files. 20862objdir=$objdir 20863 20864# Used to examine libraries when file_magic_cmd begins with "file". 20865MAGIC_CMD=$MAGIC_CMD 20866 20867# Must we lock files when doing compilation? 20868need_locks=$lt_need_locks 20869 20870# Manifest tool. 20871MANIFEST_TOOL=$lt_MANIFEST_TOOL 20872 20873# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20874DSYMUTIL=$lt_DSYMUTIL 20875 20876# Tool to change global to local symbols on Mac OS X. 20877NMEDIT=$lt_NMEDIT 20878 20879# Tool to manipulate fat objects and archives on Mac OS X. 20880LIPO=$lt_LIPO 20881 20882# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20883OTOOL=$lt_OTOOL 20884 20885# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20886OTOOL64=$lt_OTOOL64 20887 20888# Old archive suffix (normally "a"). 20889libext=$libext 20890 20891# Shared library suffix (normally ".so"). 20892shrext_cmds=$lt_shrext_cmds 20893 20894# The commands to extract the exported symbol list from a shared archive. 20895extract_expsyms_cmds=$lt_extract_expsyms_cmds 20896 20897# Variables whose values should be saved in libtool wrapper scripts and 20898# restored at link time. 20899variables_saved_for_relink=$lt_variables_saved_for_relink 20900 20901# Do we need the "lib" prefix for modules? 20902need_lib_prefix=$need_lib_prefix 20903 20904# Do we need a version for libraries? 20905need_version=$need_version 20906 20907# Library versioning type. 20908version_type=$version_type 20909 20910# Shared library runtime path variable. 20911runpath_var=$runpath_var 20912 20913# Shared library path variable. 20914shlibpath_var=$shlibpath_var 20915 20916# Is shlibpath searched before the hard-coded library search path? 20917shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20918 20919# Format of library name prefix. 20920libname_spec=$lt_libname_spec 20921 20922# List of archive names. First name is the real one, the rest are links. 20923# The last name is the one that the linker finds with -lNAME 20924library_names_spec=$lt_library_names_spec 20925 20926# The coded name of the library, if different from the real name. 20927soname_spec=$lt_soname_spec 20928 20929# Permission mode override for installation of shared libraries. 20930install_override_mode=$lt_install_override_mode 20931 20932# Command to use after installation of a shared archive. 20933postinstall_cmds=$lt_postinstall_cmds 20934 20935# Command to use after uninstallation of a shared archive. 20936postuninstall_cmds=$lt_postuninstall_cmds 20937 20938# Commands used to finish a libtool library installation in a directory. 20939finish_cmds=$lt_finish_cmds 20940 20941# As "finish_cmds", except a single script fragment to be evaled but 20942# not shown. 20943finish_eval=$lt_finish_eval 20944 20945# Whether we should hardcode library paths into libraries. 20946hardcode_into_libs=$hardcode_into_libs 20947 20948# Compile-time system search path for libraries. 20949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20950 20951# Detected run-time system search path for libraries. 20952sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20953 20954# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20955configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20956 20957# Whether dlopen is supported. 20958dlopen_support=$enable_dlopen 20959 20960# Whether dlopen of programs is supported. 20961dlopen_self=$enable_dlopen_self 20962 20963# Whether dlopen of statically linked programs is supported. 20964dlopen_self_static=$enable_dlopen_self_static 20965 20966# Commands to strip libraries. 20967old_striplib=$lt_old_striplib 20968striplib=$lt_striplib 20969 20970 20971# The linker used to build libraries. 20972LD=$lt_LD 20973 20974# How to create reloadable object files. 20975reload_flag=$lt_reload_flag 20976reload_cmds=$lt_reload_cmds 20977 20978# Commands used to build an old-style archive. 20979old_archive_cmds=$lt_old_archive_cmds 20980 20981# A language specific compiler. 20982CC=$lt_compiler 20983 20984# Is the compiler the GNU compiler? 20985with_gcc=$GCC 20986 20987# Compiler flag to turn off builtin functions. 20988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20989 20990# Additional compiler flags for building library objects. 20991pic_flag=$lt_lt_prog_compiler_pic 20992 20993# How to pass a linker flag through the compiler. 20994wl=$lt_lt_prog_compiler_wl 20995 20996# Compiler flag to prevent dynamic linking. 20997link_static_flag=$lt_lt_prog_compiler_static 20998 20999# Does compiler simultaneously support -c and -o options? 21000compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21001 21002# Whether or not to add -lc for building shared libraries. 21003build_libtool_need_lc=$archive_cmds_need_lc 21004 21005# Whether or not to disallow shared libs when runtime libs are static. 21006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21007 21008# Compiler flag to allow reflexive dlopens. 21009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21010 21011# Compiler flag to generate shared objects directly from archives. 21012whole_archive_flag_spec=$lt_whole_archive_flag_spec 21013 21014# Whether the compiler copes with passing no objects directly. 21015compiler_needs_object=$lt_compiler_needs_object 21016 21017# Create an old-style archive from a shared archive. 21018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21019 21020# Create a temporary old-style archive to link instead of a shared archive. 21021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21022 21023# Commands used to build a shared archive. 21024archive_cmds=$lt_archive_cmds 21025archive_expsym_cmds=$lt_archive_expsym_cmds 21026 21027# Commands used to build a loadable module if different from building 21028# a shared archive. 21029module_cmds=$lt_module_cmds 21030module_expsym_cmds=$lt_module_expsym_cmds 21031 21032# Whether we are building with GNU ld or not. 21033with_gnu_ld=$lt_with_gnu_ld 21034 21035# Flag that allows shared libraries with undefined symbols to be built. 21036allow_undefined_flag=$lt_allow_undefined_flag 21037 21038# Flag that enforces no undefined symbols. 21039no_undefined_flag=$lt_no_undefined_flag 21040 21041# Flag to hardcode \$libdir into a binary during linking. 21042# This must work even if \$libdir does not exist 21043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21044 21045# Whether we need a single "-rpath" flag with a separated argument. 21046hardcode_libdir_separator=$lt_hardcode_libdir_separator 21047 21048# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21049# DIR into the resulting binary. 21050hardcode_direct=$hardcode_direct 21051 21052# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21053# DIR into the resulting binary and the resulting library dependency is 21054# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21055# library is relocated. 21056hardcode_direct_absolute=$hardcode_direct_absolute 21057 21058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21059# into the resulting binary. 21060hardcode_minus_L=$hardcode_minus_L 21061 21062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21063# into the resulting binary. 21064hardcode_shlibpath_var=$hardcode_shlibpath_var 21065 21066# Set to "yes" if building a shared library automatically hardcodes DIR 21067# into the library and all subsequent libraries and executables linked 21068# against it. 21069hardcode_automatic=$hardcode_automatic 21070 21071# Set to yes if linker adds runtime paths of dependent libraries 21072# to runtime path list. 21073inherit_rpath=$inherit_rpath 21074 21075# Whether libtool must link a program against all its dependency libraries. 21076link_all_deplibs=$link_all_deplibs 21077 21078# Set to "yes" if exported symbols are required. 21079always_export_symbols=$always_export_symbols 21080 21081# The commands to list exported symbols. 21082export_symbols_cmds=$lt_export_symbols_cmds 21083 21084# Symbols that should not be listed in the preloaded symbols. 21085exclude_expsyms=$lt_exclude_expsyms 21086 21087# Symbols that must always be exported. 21088include_expsyms=$lt_include_expsyms 21089 21090# Commands necessary for linking programs (against libraries) with templates. 21091prelink_cmds=$lt_prelink_cmds 21092 21093# Commands necessary for finishing linking programs. 21094postlink_cmds=$lt_postlink_cmds 21095 21096# Specify filename containing input files. 21097file_list_spec=$lt_file_list_spec 21098 21099# How to hardcode a shared library path into an executable. 21100hardcode_action=$hardcode_action 21101 21102# ### END LIBTOOL CONFIG 21103 21104_LT_EOF 21105 21106 cat <<'_LT_EOF' >> "$cfgfile" 21107 21108# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21109 21110# func_munge_path_list VARIABLE PATH 21111# ----------------------------------- 21112# VARIABLE is name of variable containing _space_ separated list of 21113# directories to be munged by the contents of PATH, which is string 21114# having a format: 21115# "DIR[:DIR]:" 21116# string "DIR[ DIR]" will be prepended to VARIABLE 21117# ":DIR[:DIR]" 21118# string "DIR[ DIR]" will be appended to VARIABLE 21119# "DIRP[:DIRP]::[DIRA:]DIRA" 21120# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21121# "DIRA[ DIRA]" will be appended to VARIABLE 21122# "DIR[:DIR]" 21123# VARIABLE will be replaced by "DIR[ DIR]" 21124func_munge_path_list () 21125{ 21126 case x$2 in 21127 x) 21128 ;; 21129 *:) 21130 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21131 ;; 21132 x:*) 21133 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21134 ;; 21135 *::*) 21136 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21137 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21138 ;; 21139 *) 21140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21141 ;; 21142 esac 21143} 21144 21145 21146# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21147func_cc_basename () 21148{ 21149 for cc_temp in $*""; do 21150 case $cc_temp in 21151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21153 \-*) ;; 21154 *) break;; 21155 esac 21156 done 21157 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21158} 21159 21160 21161# ### END FUNCTIONS SHARED WITH CONFIGURE 21162 21163_LT_EOF 21164 21165 case $host_os in 21166 aix3*) 21167 cat <<\_LT_EOF >> "$cfgfile" 21168# AIX sometimes has problems with the GCC collect2 program. For some 21169# reason, if we set the COLLECT_NAMES environment variable, the problems 21170# vanish in a puff of smoke. 21171if test set != "${COLLECT_NAMES+set}"; then 21172 COLLECT_NAMES= 21173 export COLLECT_NAMES 21174fi 21175_LT_EOF 21176 ;; 21177 esac 21178 21179 21180ltmain=$ac_aux_dir/ltmain.sh 21181 21182 21183 # We use sed instead of cat because bash on DJGPP gets confused if 21184 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21185 # text mode, it properly converts lines to CR/LF. This bash problem 21186 # is reportedly fixed, but why not run on old versions too? 21187 sed '$q' "$ltmain" >> "$cfgfile" \ 21188 || (rm -f "$cfgfile"; exit 1) 21189 21190 mv -f "$cfgfile" "$ofile" || 21191 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21192 chmod +x "$ofile" 21193 21194 ;; 21195 21196 esac 21197done # for ac_tag 21198 21199 21200as_fn_exit 0 21201_ACEOF 21202ac_clean_files=$ac_clean_files_save 21203 21204test $ac_write_fail = 0 || 21205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21206 21207 21208# configure is writing to config.log, and then calls config.status. 21209# config.status does its own redirection, appending to config.log. 21210# Unfortunately, on DOS this fails, as config.log is still kept open 21211# by configure, so config.status won't be able to write to it; its 21212# output is simply discarded. So we exec the FD to /dev/null, 21213# effectively closing config.log, so it can be properly (re)opened and 21214# appended to by config.status. When coming back to configure, we 21215# need to make the FD available again. 21216if test "$no_create" != yes; then 21217 ac_cs_success=: 21218 ac_config_status_args= 21219 test "$silent" = yes && 21220 ac_config_status_args="$ac_config_status_args --quiet" 21221 exec 5>/dev/null 21222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21223 exec 5>>config.log 21224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21225 # would make configure fail if this is the last instruction. 21226 $ac_cs_success || as_fn_exit 1 21227fi 21228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21231fi 21232 21233