1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-rendition 4.2.7. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-rendition' 593PACKAGE_TARNAME='xf86-video-rendition' 594PACKAGE_VERSION='4.2.7' 595PACKAGE_STRING='xf86-video-rendition 4.2.7' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642XSERVER_LIBPCIACCESS_FALSE 643XSERVER_LIBPCIACCESS_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646XAA_FALSE 647XAA_TRUE 648XORG_LIBS 649XORG_CFLAGS 650LT_SYS_LIBRARY_PATH 651OTOOL64 652OTOOL 653LIPO 654NMEDIT 655DSYMUTIL 656MANIFEST_TOOL 657RANLIB 658ac_ct_AR 659AR 660DLLTOOL 661OBJDUMP 662LN_S 663NM 664ac_ct_DUMPBIN 665DUMPBIN 666LD 667FGREP 668LIBTOOL 669MAN_SUBSTS 670XORG_MAN_PAGE 671ADMIN_MAN_DIR 672DRIVER_MAN_DIR 673MISC_MAN_DIR 674FILE_MAN_DIR 675LIB_MAN_DIR 676APP_MAN_DIR 677ADMIN_MAN_SUFFIX 678DRIVER_MAN_SUFFIX 679MISC_MAN_SUFFIX 680FILE_MAN_SUFFIX 681LIB_MAN_SUFFIX 682APP_MAN_SUFFIX 683SED 684host_os 685host_vendor 686host_cpu 687host 688build_os 689build_vendor 690build_cpu 691build 692INSTALL_CMD 693PKG_CONFIG_LIBDIR 694PKG_CONFIG_PATH 695PKG_CONFIG 696CHANGELOG_CMD 697STRICT_CFLAGS 698CWARNFLAGS 699BASE_CFLAGS 700EGREP 701GREP 702CPP 703am__fastdepCC_FALSE 704am__fastdepCC_TRUE 705CCDEPMODE 706am__nodep 707AMDEPBACKSLASH 708AMDEP_FALSE 709AMDEP_TRUE 710am__quote 711am__include 712DEPDIR 713OBJEXT 714EXEEXT 715ac_ct_CC 716CPPFLAGS 717LDFLAGS 718CFLAGS 719CC 720AM_BACKSLASH 721AM_DEFAULT_VERBOSITY 722AM_DEFAULT_V 723AM_V 724am__untar 725am__tar 726AMTAR 727am__leading_dot 728SET_MAKE 729AWK 730mkdir_p 731MKDIR_P 732INSTALL_STRIP_PROGRAM 733STRIP 734install_sh 735MAKEINFO 736AUTOHEADER 737AUTOMAKE 738AUTOCONF 739ACLOCAL 740VERSION 741PACKAGE 742CYGPATH_W 743am__isrc 744INSTALL_DATA 745INSTALL_SCRIPT 746INSTALL_PROGRAM 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766localstatedir 767sharedstatedir 768sysconfdir 769datadir 770datarootdir 771libexecdir 772sbindir 773bindir 774program_transform_name 775prefix 776exec_prefix 777PACKAGE_URL 778PACKAGE_BUGREPORT 779PACKAGE_STRING 780PACKAGE_VERSION 781PACKAGE_TARNAME 782PACKAGE_NAME 783PATH_SEPARATOR 784SHELL' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_silent_rules 789enable_dependency_tracking 790enable_selective_werror 791enable_strict_compilation 792enable_static 793enable_shared 794with_pic 795enable_fast_install 796with_aix_soname 797with_gnu_ld 798with_sysroot 799enable_libtool_lock 800with_xorg_module_dir 801enable_xaa 802' 803 ac_precious_vars='build_alias 804host_alias 805target_alias 806CC 807CFLAGS 808LDFLAGS 809LIBS 810CPPFLAGS 811CPP 812PKG_CONFIG 813PKG_CONFIG_PATH 814PKG_CONFIG_LIBDIR 815LT_SYS_LIBRARY_PATH 816XORG_CFLAGS 817XORG_LIBS 818PCIACCESS_CFLAGS 819PCIACCESS_LIBS' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858includedir='${prefix}/include' 859oldincludedir='/usr/include' 860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861infodir='${datarootdir}/info' 862htmldir='${docdir}' 863dvidir='${docdir}' 864pdfdir='${docdir}' 865psdir='${docdir}' 866libdir='${exec_prefix}/lib' 867localedir='${datarootdir}/locale' 868mandir='${datarootdir}/man' 869 870ac_prev= 871ac_dashdash= 872for ac_option 873do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *=) ac_optarg= ;; 884 *) ac_optarg=yes ;; 885 esac 886 887 # Accept the important Cygnus configure options, so we can diagnose typos. 888 889 case $ac_dashdash$ac_option in 890 --) 891 ac_dashdash=yes ;; 892 893 -bindir | --bindir | --bindi | --bind | --bin | --bi) 894 ac_prev=bindir ;; 895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 896 bindir=$ac_optarg ;; 897 898 -build | --build | --buil | --bui | --bu) 899 ac_prev=build_alias ;; 900 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 901 build_alias=$ac_optarg ;; 902 903 -cache-file | --cache-file | --cache-fil | --cache-fi \ 904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 905 ac_prev=cache_file ;; 906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 908 cache_file=$ac_optarg ;; 909 910 --config-cache | -C) 911 cache_file=config.cache ;; 912 913 -datadir | --datadir | --datadi | --datad) 914 ac_prev=datadir ;; 915 -datadir=* | --datadir=* | --datadi=* | --datad=*) 916 datadir=$ac_optarg ;; 917 918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 919 | --dataroo | --dataro | --datar) 920 ac_prev=datarootdir ;; 921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 923 datarootdir=$ac_optarg ;; 924 925 -disable-* | --disable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: $ac_useropt" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=\$ac_optarg ;; 966 967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 969 | --exec | --exe | --ex) 970 ac_prev=exec_prefix ;; 971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 973 | --exec=* | --exe=* | --ex=*) 974 exec_prefix=$ac_optarg ;; 975 976 -gas | --gas | --ga | --g) 977 # Obsolete; use --with-gas. 978 with_gas=yes ;; 979 980 -help | --help | --hel | --he | -h) 981 ac_init_help=long ;; 982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 983 ac_init_help=recursive ;; 984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 985 ac_init_help=short ;; 986 987 -host | --host | --hos | --ho) 988 ac_prev=host_alias ;; 989 -host=* | --host=* | --hos=* | --ho=*) 990 host_alias=$ac_optarg ;; 991 992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 993 ac_prev=htmldir ;; 994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 995 | --ht=*) 996 htmldir=$ac_optarg ;; 997 998 -includedir | --includedir | --includedi | --included | --include \ 999 | --includ | --inclu | --incl | --inc) 1000 ac_prev=includedir ;; 1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1002 | --includ=* | --inclu=* | --incl=* | --inc=*) 1003 includedir=$ac_optarg ;; 1004 1005 -infodir | --infodir | --infodi | --infod | --info | --inf) 1006 ac_prev=infodir ;; 1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1008 infodir=$ac_optarg ;; 1009 1010 -libdir | --libdir | --libdi | --libd) 1011 ac_prev=libdir ;; 1012 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1013 libdir=$ac_optarg ;; 1014 1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1016 | --libexe | --libex | --libe) 1017 ac_prev=libexecdir ;; 1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1019 | --libexe=* | --libex=* | --libe=*) 1020 libexecdir=$ac_optarg ;; 1021 1022 -localedir | --localedir | --localedi | --localed | --locale) 1023 ac_prev=localedir ;; 1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1025 localedir=$ac_optarg ;; 1026 1027 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1028 | --localstate | --localstat | --localsta | --localst | --locals) 1029 ac_prev=localstatedir ;; 1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1032 localstatedir=$ac_optarg ;; 1033 1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1035 ac_prev=mandir ;; 1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1037 mandir=$ac_optarg ;; 1038 1039 -nfp | --nfp | --nf) 1040 # Obsolete; use --without-fp. 1041 with_fp=no ;; 1042 1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1044 | --no-cr | --no-c | -n) 1045 no_create=yes ;; 1046 1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1049 no_recursion=yes ;; 1050 1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1053 | --oldin | --oldi | --old | --ol | --o) 1054 ac_prev=oldincludedir ;; 1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1058 oldincludedir=$ac_optarg ;; 1059 1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1061 ac_prev=prefix ;; 1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1063 prefix=$ac_optarg ;; 1064 1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1066 | --program-pre | --program-pr | --program-p) 1067 ac_prev=program_prefix ;; 1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1070 program_prefix=$ac_optarg ;; 1071 1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1073 | --program-suf | --program-su | --program-s) 1074 ac_prev=program_suffix ;; 1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1077 program_suffix=$ac_optarg ;; 1078 1079 -program-transform-name | --program-transform-name \ 1080 | --program-transform-nam | --program-transform-na \ 1081 | --program-transform-n | --program-transform- \ 1082 | --program-transform | --program-transfor \ 1083 | --program-transfo | --program-transf \ 1084 | --program-trans | --program-tran \ 1085 | --progr-tra | --program-tr | --program-t) 1086 ac_prev=program_transform_name ;; 1087 -program-transform-name=* | --program-transform-name=* \ 1088 | --program-transform-nam=* | --program-transform-na=* \ 1089 | --program-transform-n=* | --program-transform-=* \ 1090 | --program-transform=* | --program-transfor=* \ 1091 | --program-transfo=* | --program-transf=* \ 1092 | --program-trans=* | --program-tran=* \ 1093 | --progr-tra=* | --program-tr=* | --program-t=*) 1094 program_transform_name=$ac_optarg ;; 1095 1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1097 ac_prev=pdfdir ;; 1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1099 pdfdir=$ac_optarg ;; 1100 1101 -psdir | --psdir | --psdi | --psd | --ps) 1102 ac_prev=psdir ;; 1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1104 psdir=$ac_optarg ;; 1105 1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1107 | -silent | --silent | --silen | --sile | --sil) 1108 silent=yes ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures xf86-video-rendition 4.2.7 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 [$ac_default_prefix] 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 [PREFIX] 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --libdir=DIR object code libraries [EPREFIX/lib] 1401 --includedir=DIR C header files [PREFIX/include] 1402 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1405 --infodir=DIR info documentation [DATAROOTDIR/info] 1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1407 --mandir=DIR man documentation [DATAROOTDIR/man] 1408 --docdir=DIR documentation root 1409 [DATAROOTDIR/doc/xf86-video-rendition] 1410 --htmldir=DIR html documentation [DOCDIR] 1411 --dvidir=DIR dvi documentation [DOCDIR] 1412 --pdfdir=DIR pdf documentation [DOCDIR] 1413 --psdir=DIR ps documentation [DOCDIR] 1414_ACEOF 1415 1416 cat <<\_ACEOF 1417 1418Program names: 1419 --program-prefix=PREFIX prepend PREFIX to installed program names 1420 --program-suffix=SUFFIX append SUFFIX to installed program names 1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1422 1423System types: 1424 --build=BUILD configure for building on BUILD [guessed] 1425 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1426_ACEOF 1427fi 1428 1429if test -n "$ac_init_help"; then 1430 case $ac_init_help in 1431 short | recursive ) echo "Configuration of xf86-video-rendition 4.2.7:";; 1432 esac 1433 cat <<\_ACEOF 1434 1435Optional Features: 1436 --disable-option-checking ignore unrecognized --enable/--with options 1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1439 --enable-silent-rules less verbose build output (undo: "make V=1") 1440 --disable-silent-rules verbose build output (undo: "make V=0") 1441 --enable-dependency-tracking 1442 do not reject slow dependency extractors 1443 --disable-dependency-tracking 1444 speeds up one-time build 1445 --disable-selective-werror 1446 Turn off selective compiler errors. (default: 1447 enabled) 1448 --enable-strict-compilation 1449 Enable all warnings from compiler and make them 1450 errors (default: disabled) 1451 --enable-static[=PKGS] build static libraries [default=no] 1452 --enable-shared[=PKGS] build shared libraries [default=yes] 1453 --enable-fast-install[=PKGS] 1454 optimize for fast installation [default=yes] 1455 --disable-libtool-lock avoid locking (might break parallel builds) 1456 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1457 [default=auto] 1458 1459Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1463 both] 1464 --with-aix-soname=aix|svr4|both 1465 shared library versioning (aka "SONAME") variant to 1466 provide on AIX, [default=aix]. 1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1468 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1469 compiler's sysroot if not specified). 1470 --with-xorg-module-dir=DIR 1471 Default xorg module directory 1472 [[default=$libdir/xorg/modules]] 1473 1474Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 CPP C preprocessor 1483 PKG_CONFIG path to pkg-config utility 1484 PKG_CONFIG_PATH 1485 directories to add to pkg-config's search path 1486 PKG_CONFIG_LIBDIR 1487 path overriding pkg-config's built-in search path 1488 LT_SYS_LIBRARY_PATH 1489 User-defined run-time library search path. 1490 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1491 XORG_LIBS linker flags for XORG, overriding pkg-config 1492 PCIACCESS_CFLAGS 1493 C compiler flags for PCIACCESS, overriding pkg-config 1494 PCIACCESS_LIBS 1495 linker flags for PCIACCESS, overriding pkg-config 1496 1497Use these variables to override the choices made by `configure' or to help 1498it to find libraries and programs with nonstandard names/locations. 1499 1500Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1501_ACEOF 1502ac_status=$? 1503fi 1504 1505if test "$ac_init_help" = "recursive"; then 1506 # If there are subdirs, report their specific --help. 1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1508 test -d "$ac_dir" || 1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1510 continue 1511 ac_builddir=. 1512 1513case "$ac_dir" in 1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515*) 1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1517 # A ".." for each directory in $ac_dir_suffix. 1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1519 case $ac_top_builddir_sub in 1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1522 esac ;; 1523esac 1524ac_abs_top_builddir=$ac_pwd 1525ac_abs_builddir=$ac_pwd$ac_dir_suffix 1526# for backward compatibility: 1527ac_top_builddir=$ac_top_build_prefix 1528 1529case $srcdir in 1530 .) # We are building in place. 1531 ac_srcdir=. 1532 ac_top_srcdir=$ac_top_builddir_sub 1533 ac_abs_top_srcdir=$ac_pwd ;; 1534 [\\/]* | ?:[\\/]* ) # Absolute name. 1535 ac_srcdir=$srcdir$ac_dir_suffix; 1536 ac_top_srcdir=$srcdir 1537 ac_abs_top_srcdir=$srcdir ;; 1538 *) # Relative name. 1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1540 ac_top_srcdir=$ac_top_build_prefix$srcdir 1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1542esac 1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1544 1545 cd "$ac_dir" || { ac_status=$?; continue; } 1546 # Check for guested configure. 1547 if test -f "$ac_srcdir/configure.gnu"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1550 elif test -f "$ac_srcdir/configure"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure" --help=recursive 1553 else 1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1555 fi || ac_status=$? 1556 cd "$ac_pwd" || { ac_status=$?; break; } 1557 done 1558fi 1559 1560test -n "$ac_init_help" && exit $ac_status 1561if $ac_init_version; then 1562 cat <<\_ACEOF 1563xf86-video-rendition configure 4.2.7 1564generated by GNU Autoconf 2.69 1565 1566Copyright (C) 2012 Free Software Foundation, Inc. 1567This configure script is free software; the Free Software Foundation 1568gives unlimited permission to copy, distribute and modify it. 1569_ACEOF 1570 exit 1571fi 1572 1573## ------------------------ ## 1574## Autoconf initialization. ## 1575## ------------------------ ## 1576 1577# ac_fn_c_try_compile LINENO 1578# -------------------------- 1579# Try to compile conftest.$ac_ext, and return whether this succeeded. 1580ac_fn_c_try_compile () 1581{ 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 rm -f conftest.$ac_objext 1584 if { { ac_try="$ac_compile" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_compile") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { 1600 test -z "$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 } && test -s conftest.$ac_objext; then : 1603 ac_retval=0 1604else 1605 $as_echo "$as_me: failed program was:" >&5 1606sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_compile 1614 1615# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1616# --------------------------------------------- 1617# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1618# accordingly. 1619ac_fn_c_check_decl () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 as_decl_name=`echo $2|sed 's/ *(.*//'` 1623 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1625$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1626if eval \${$3+:} false; then : 1627 $as_echo_n "(cached) " >&6 1628else 1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630/* end confdefs.h. */ 1631$4 1632int 1633main () 1634{ 1635#ifndef $as_decl_name 1636#ifdef __cplusplus 1637 (void) $as_decl_use; 1638#else 1639 (void) $as_decl_name; 1640#endif 1641#endif 1642 1643 ; 1644 return 0; 1645} 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO"; then : 1648 eval "$3=yes" 1649else 1650 eval "$3=no" 1651fi 1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1653fi 1654eval ac_res=\$$3 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1656$as_echo "$ac_res" >&6; } 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 1659} # ac_fn_c_check_decl 1660 1661# ac_fn_c_try_cpp LINENO 1662# ---------------------- 1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_cpp () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if { { ac_try="$ac_cpp conftest.$ac_ext" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } > conftest.i && { 1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_cpp 1697 1698# ac_fn_c_try_run LINENO 1699# ---------------------- 1700# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1701# that executables *can* be run. 1702ac_fn_c_try_run () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 if { { ac_try="$ac_link" 1706case "(($ac_try" in 1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1708 *) ac_try_echo=$ac_try;; 1709esac 1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1711$as_echo "$ac_try_echo"; } >&5 1712 (eval "$ac_link") 2>&5 1713 ac_status=$? 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1716 { { case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_try") 2>&5 1723 ac_status=$? 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; }; }; then : 1726 ac_retval=0 1727else 1728 $as_echo "$as_me: program exited with status $ac_status" >&5 1729 $as_echo "$as_me: failed program was:" >&5 1730sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=$ac_status 1733fi 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_run 1739 1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1741# ------------------------------------------------------- 1742# Tests whether HEADER exists and can be compiled using the include files in 1743# INCLUDES, setting the cache variable VAR accordingly. 1744ac_fn_c_check_header_compile () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748$as_echo_n "checking for $2... " >&6; } 1749if eval \${$3+:} false; then : 1750 $as_echo_n "(cached) " >&6 1751else 1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754$4 1755#include <$2> 1756_ACEOF 1757if ac_fn_c_try_compile "$LINENO"; then : 1758 eval "$3=yes" 1759else 1760 eval "$3=no" 1761fi 1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1763fi 1764eval ac_res=\$$3 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766$as_echo "$ac_res" >&6; } 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 1769} # ac_fn_c_check_header_compile 1770 1771# ac_fn_c_try_link LINENO 1772# ----------------------- 1773# Try to link conftest.$ac_ext, and return whether this succeeded. 1774ac_fn_c_try_link () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 rm -f conftest.$ac_objext conftest$ac_exeext 1778 if { { ac_try="$ac_link" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_link") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { 1794 test -z "$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 } && test -s conftest$ac_exeext && { 1797 test "$cross_compiling" = yes || 1798 test -x conftest$ac_exeext 1799 }; then : 1800 ac_retval=0 1801else 1802 $as_echo "$as_me: failed program was:" >&5 1803sed 's/^/| /' conftest.$ac_ext >&5 1804 1805 ac_retval=1 1806fi 1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1809 # interfere with the next link command; also delete a directory that is 1810 # left behind by Apple's compiler. We do this before executing the actions. 1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 as_fn_set_status $ac_retval 1814 1815} # ac_fn_c_try_link 1816 1817# ac_fn_c_check_func LINENO FUNC VAR 1818# ---------------------------------- 1819# Tests whether FUNC exists, setting the cache variable VAR accordingly 1820ac_fn_c_check_func () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824$as_echo_n "checking for $2... " >&6; } 1825if eval \${$3+:} false; then : 1826 $as_echo_n "(cached) " >&6 1827else 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829/* end confdefs.h. */ 1830/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1832#define $2 innocuous_$2 1833 1834/* System header to define __stub macros and hopefully few prototypes, 1835 which can conflict with char $2 (); below. 1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1837 <limits.h> exists even on freestanding compilers. */ 1838 1839#ifdef __STDC__ 1840# include <limits.h> 1841#else 1842# include <assert.h> 1843#endif 1844 1845#undef $2 1846 1847/* Override any GCC internal prototype to avoid an error. 1848 Use char because int might match the return type of a GCC 1849 builtin and then its argument prototype would still apply. */ 1850#ifdef __cplusplus 1851extern "C" 1852#endif 1853char $2 (); 1854/* The GNU C library defines this for functions which it implements 1855 to always fail with ENOSYS. Some functions are actually named 1856 something starting with __ and the normal name is an alias. */ 1857#if defined __stub_$2 || defined __stub___$2 1858choke me 1859#endif 1860 1861int 1862main () 1863{ 1864return $2 (); 1865 ; 1866 return 0; 1867} 1868_ACEOF 1869if ac_fn_c_try_link "$LINENO"; then : 1870 eval "$3=yes" 1871else 1872 eval "$3=no" 1873fi 1874rm -f core conftest.err conftest.$ac_objext \ 1875 conftest$ac_exeext conftest.$ac_ext 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_func 1883 1884# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1885# ------------------------------------------------------- 1886# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1887# the include files in INCLUDES and setting the cache variable VAR 1888# accordingly. 1889ac_fn_c_check_header_mongrel () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 if eval \${$3+:} false; then : 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897fi 1898eval ac_res=\$$3 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901else 1902 # Is the header compilable? 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1904$as_echo_n "checking $2 usability... " >&6; } 1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908#include <$2> 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 ac_header_compiler=yes 1912else 1913 ac_header_compiler=no 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1917$as_echo "$ac_header_compiler" >&6; } 1918 1919# Is the header present? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1921$as_echo_n "checking $2 presence... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924#include <$2> 1925_ACEOF 1926if ac_fn_c_try_cpp "$LINENO"; then : 1927 ac_header_preproc=yes 1928else 1929 ac_header_preproc=no 1930fi 1931rm -f conftest.err conftest.i conftest.$ac_ext 1932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1933$as_echo "$ac_header_preproc" >&6; } 1934 1935# So? What about this header? 1936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1937 yes:no: ) 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1939$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1942 ;; 1943 no:yes:* ) 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1945$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1947$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1949$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1951$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1954( $as_echo "## ---------------------------------------------------------------------- ## 1955## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1956## ---------------------------------------------------------------------- ##" 1957 ) | sed "s/^/$as_me: WARNING: /" >&2 1958 ;; 1959esac 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1961$as_echo_n "checking for $2... " >&6; } 1962if eval \${$3+:} false; then : 1963 $as_echo_n "(cached) " >&6 1964else 1965 eval "$3=\$ac_header_compiler" 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970fi 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_c_check_header_mongrel 1974cat >config.log <<_ACEOF 1975This file contains any messages produced by compilers while 1976running configure, to aid debugging if configure makes a mistake. 1977 1978It was created by xf86-video-rendition $as_me 4.2.7, which was 1979generated by GNU Autoconf 2.69. Invocation command line was 1980 1981 $ $0 $@ 1982 1983_ACEOF 1984exec 5>>config.log 1985{ 1986cat <<_ASUNAME 1987## --------- ## 1988## Platform. ## 1989## --------- ## 1990 1991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008_ASUNAME 2009 2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 $as_echo "PATH: $as_dir" 2016 done 2017IFS=$as_save_IFS 2018 2019} >&5 2020 2021cat >&5 <<_ACEOF 2022 2023 2024## ----------- ## 2025## Core tests. ## 2026## ----------- ## 2027 2028_ACEOF 2029 2030 2031# Keep a trace of the command line. 2032# Strip out --no-create and --no-recursion so they do not pile up. 2033# Strip out --silent because we don't want to record it for future runs. 2034# Also quote any args containing shell meta-characters. 2035# Make two passes to allow for proper duplicate-argument suppression. 2036ac_configure_args= 2037ac_configure_args0= 2038ac_configure_args1= 2039ac_must_keep_next=false 2040for ac_pass in 1 2 2041do 2042 for ac_arg 2043 do 2044 case $ac_arg in 2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2047 | -silent | --silent | --silen | --sile | --sil) 2048 continue ;; 2049 *\'*) 2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 esac 2052 case $ac_pass in 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2054 2) 2055 as_fn_append ac_configure_args1 " '$ac_arg'" 2056 if test $ac_must_keep_next = true; then 2057 ac_must_keep_next=false # Got value, back to normal. 2058 else 2059 case $ac_arg in 2060 *=* | --config-cache | -C | -disable-* | --disable-* \ 2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2063 | -with-* | --with-* | -without-* | --without-* | --x) 2064 case "$ac_configure_args0 " in 2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2066 esac 2067 ;; 2068 -* ) ac_must_keep_next=true ;; 2069 esac 2070 fi 2071 as_fn_append ac_configure_args " '$ac_arg'" 2072 ;; 2073 esac 2074 done 2075done 2076{ ac_configure_args0=; unset ac_configure_args0;} 2077{ ac_configure_args1=; unset ac_configure_args1;} 2078 2079# When interrupted or exit'd, cleanup temporary files, and complete 2080# config.log. We remove comments because anyway the quotes in there 2081# would cause problems or look ugly. 2082# WARNING: Use '\'' to represent an apostrophe within the trap. 2083# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2084trap 'exit_status=$? 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 $as_echo "## ---------------- ## 2090## Cache variables. ## 2091## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122) 2123 echo 2124 2125 $as_echo "## ----------------- ## 2126## Output variables. ## 2127## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 $as_echo "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 $as_echo "## ------------------- ## 2141## File substitutions. ## 2142## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 $as_echo "## ----------- ## 2157## confdefs.h. ## 2158## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 $as_echo "$as_me: caught signal $ac_signal" 2165 $as_echo "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170' 0 2171for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173done 2174ac_signal=0 2175 2176# confdefs.h avoids OS command line length limits that DEFS can exceed. 2177rm -f -r conftest* confdefs.h 2178 2179$as_echo "/* confdefs.h */" > confdefs.h 2180 2181# Predefined preprocessor variables. 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_NAME "$PACKAGE_NAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_VERSION "$PACKAGE_VERSION" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_STRING "$PACKAGE_STRING" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_URL "$PACKAGE_URL" 2205_ACEOF 2206 2207 2208# Let the site file select an alternate cache file if it wants to. 2209# Prefer an explicitly selected file to automatically selected ones. 2210ac_site_file1=NONE 2211ac_site_file2=NONE 2212if test -n "$CONFIG_SITE"; then 2213 # We do not want a PATH search for config.site. 2214 case $CONFIG_SITE in #(( 2215 -*) ac_site_file1=./$CONFIG_SITE;; 2216 */*) ac_site_file1=$CONFIG_SITE;; 2217 *) ac_site_file1=./$CONFIG_SITE;; 2218 esac 2219elif test "x$prefix" != xNONE; then 2220 ac_site_file1=$prefix/share/config.site 2221 ac_site_file2=$prefix/etc/config.site 2222else 2223 ac_site_file1=$ac_default_prefix/share/config.site 2224 ac_site_file2=$ac_default_prefix/etc/config.site 2225fi 2226for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2227do 2228 test "x$ac_site_file" = xNONE && continue 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2231$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2232 sed 's/^/| /' "$ac_site_file" >&5 2233 . "$ac_site_file" \ 2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236as_fn_error $? "failed to load site script $ac_site_file 2237See \`config.log' for more details" "$LINENO" 5; } 2238 fi 2239done 2240 2241if test -r "$cache_file"; then 2242 # Some versions of bash will fail to source /dev/null (special files 2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2246$as_echo "$as_me: loading cache $cache_file" >&6;} 2247 case $cache_file in 2248 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2249 *) . "./$cache_file";; 2250 esac 2251 fi 2252else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2254$as_echo "$as_me: creating cache $cache_file" >&6;} 2255 >$cache_file 2256fi 2257 2258# Check that the precious variables saved in the cache have kept the same 2259# value. 2260ac_cache_corrupted=false 2261for ac_var in $ac_precious_vars; do 2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2263 eval ac_new_set=\$ac_env_${ac_var}_set 2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2265 eval ac_new_val=\$ac_env_${ac_var}_value 2266 case $ac_old_set,$ac_new_set in 2267 set,) 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2269$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2270 ac_cache_corrupted=: ;; 2271 ,set) 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2273$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2274 ac_cache_corrupted=: ;; 2275 ,);; 2276 *) 2277 if test "x$ac_old_val" != "x$ac_new_val"; then 2278 # differences in whitespace do not lead to failure. 2279 ac_old_val_w=`echo x $ac_old_val` 2280 ac_new_val_w=`echo x $ac_new_val` 2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2283$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2284 ac_cache_corrupted=: 2285 else 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2287$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2288 eval $ac_var=\$ac_old_val 2289 fi 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2291$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2293$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2294 fi;; 2295 esac 2296 # Pass precious variables to config.status. 2297 if test "$ac_new_set" = set; then 2298 case $ac_new_val in 2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2300 *) ac_arg=$ac_var=$ac_new_val ;; 2301 esac 2302 case " $ac_configure_args " in 2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2305 esac 2306 fi 2307done 2308if $ac_cache_corrupted; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2312$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2314fi 2315## -------------------- ## 2316## Main body of script. ## 2317## -------------------- ## 2318 2319ac_ext=c 2320ac_cpp='$CPP $CPPFLAGS' 2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2323ac_compiler_gnu=$ac_cv_c_compiler_gnu 2324 2325 2326 2327ac_config_headers="$ac_config_headers config.h" 2328 2329ac_aux_dir= 2330for ac_dir in . "$srcdir"/.; do 2331 if test -f "$ac_dir/install-sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install-sh -c" 2334 break 2335 elif test -f "$ac_dir/install.sh"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/install.sh -c" 2338 break 2339 elif test -f "$ac_dir/shtool"; then 2340 ac_aux_dir=$ac_dir 2341 ac_install_sh="$ac_aux_dir/shtool install -c" 2342 break 2343 fi 2344done 2345if test -z "$ac_aux_dir"; then 2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2347fi 2348 2349# These three variables are undocumented and unsupported, 2350# and are intended to be withdrawn in a future Autoconf release. 2351# They can cause serious problems if a builder's source tree is in a directory 2352# whose full name contains unusual characters. 2353ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2354ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2355ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2356 2357 2358 2359# Initialize Automake 2360am__api_version='1.15' 2361 2362# Find a good install program. We prefer a C program (faster), 2363# so one script is as good as another. But avoid the broken or 2364# incompatible versions: 2365# SysV /etc/install, /usr/sbin/install 2366# SunOS /usr/etc/install 2367# IRIX /sbin/install 2368# AIX /bin/install 2369# AmigaOS /C/install, which installs bootblocks on floppy discs 2370# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2371# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2372# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2373# OS/2's system install, which has a completely different semantic 2374# ./install, which can be erroneously created by make from ./install.sh. 2375# Reject install programs that cannot install multiple files. 2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2377$as_echo_n "checking for a BSD-compatible install... " >&6; } 2378if test -z "$INSTALL"; then 2379if ${ac_cv_path_install+:} false; then : 2380 $as_echo_n "(cached) " >&6 2381else 2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 # Account for people who put trailing slashes in PATH elements. 2388case $as_dir/ in #(( 2389 ./ | .// | /[cC]/* | \ 2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2392 /usr/ucb/* ) ;; 2393 *) 2394 # OSF1 and SCO ODT 3.0 have their own names for install. 2395 # Don't use installbsd from OSF since it installs stuff as root 2396 # by default. 2397 for ac_prog in ginstall scoinst install; do 2398 for ac_exec_ext in '' $ac_executable_extensions; do 2399 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2400 if test $ac_prog = install && 2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2402 # AIX install. It has an incompatible calling convention. 2403 : 2404 elif test $ac_prog = install && 2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2406 # program-specific install script used by HP pwplus--don't use. 2407 : 2408 else 2409 rm -rf conftest.one conftest.two conftest.dir 2410 echo one > conftest.one 2411 echo two > conftest.two 2412 mkdir conftest.dir 2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2414 test -s conftest.one && test -s conftest.two && 2415 test -s conftest.dir/conftest.one && 2416 test -s conftest.dir/conftest.two 2417 then 2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2419 break 3 2420 fi 2421 fi 2422 fi 2423 done 2424 done 2425 ;; 2426esac 2427 2428 done 2429IFS=$as_save_IFS 2430 2431rm -rf conftest.one conftest.two conftest.dir 2432 2433fi 2434 if test "${ac_cv_path_install+set}" = set; then 2435 INSTALL=$ac_cv_path_install 2436 else 2437 # As a last resort, use the slow shell script. Don't cache a 2438 # value for INSTALL within a source directory, because that will 2439 # break other packages using the cache if that directory is 2440 # removed, or if the value is a relative name. 2441 INSTALL=$ac_install_sh 2442 fi 2443fi 2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2445$as_echo "$INSTALL" >&6; } 2446 2447# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2448# It thinks the first close brace ends the variable substitution. 2449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2450 2451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2452 2453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2454 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2456$as_echo_n "checking whether build environment is sane... " >&6; } 2457# Reject unsafe characters in $srcdir or the absolute working directory 2458# name. Accept space and tab only in the latter. 2459am_lf=' 2460' 2461case `pwd` in 2462 *[\\\"\#\$\&\'\`$am_lf]*) 2463 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2464esac 2465case $srcdir in 2466 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2467 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2468esac 2469 2470# Do 'set' in a subshell so we don't clobber the current shell's 2471# arguments. Must try -L first in case configure is actually a 2472# symlink; some systems play weird games with the mod time of symlinks 2473# (eg FreeBSD returns the mod time of the symlink's containing 2474# directory). 2475if ( 2476 am_has_slept=no 2477 for am_try in 1 2; do 2478 echo "timestamp, slept: $am_has_slept" > conftest.file 2479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2480 if test "$*" = "X"; then 2481 # -L didn't work. 2482 set X `ls -t "$srcdir/configure" conftest.file` 2483 fi 2484 if test "$*" != "X $srcdir/configure conftest.file" \ 2485 && test "$*" != "X conftest.file $srcdir/configure"; then 2486 2487 # If neither matched, then we have a broken ls. This can happen 2488 # if, for instance, CONFIG_SHELL is bash and it inherits a 2489 # broken ls alias from the environment. This has actually 2490 # happened. Such a system could not be considered "sane". 2491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2492 alias in your environment" "$LINENO" 5 2493 fi 2494 if test "$2" = conftest.file || test $am_try -eq 2; then 2495 break 2496 fi 2497 # Just in case. 2498 sleep 1 2499 am_has_slept=yes 2500 done 2501 test "$2" = conftest.file 2502 ) 2503then 2504 # Ok. 2505 : 2506else 2507 as_fn_error $? "newly created file is older than distributed files! 2508Check your system clock" "$LINENO" 5 2509fi 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2511$as_echo "yes" >&6; } 2512# If we didn't sleep, we still need to ensure time stamps of config.status and 2513# generated files are strictly newer. 2514am_sleep_pid= 2515if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2516 ( sleep 1 ) & 2517 am_sleep_pid=$! 2518fi 2519 2520rm -f conftest.file 2521 2522test "$program_prefix" != NONE && 2523 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2524# Use a double $ so make ignores it. 2525test "$program_suffix" != NONE && 2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2527# Double any \ or $. 2528# By default was `s,x,x', remove it if useless. 2529ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2530program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2531 2532# Expand $ac_aux_dir to an absolute path. 2533am_aux_dir=`cd "$ac_aux_dir" && pwd` 2534 2535if test x"${MISSING+set}" != xset; then 2536 case $am_aux_dir in 2537 *\ * | *\ *) 2538 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2539 *) 2540 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2541 esac 2542fi 2543# Use eval to expand $SHELL 2544if eval "$MISSING --is-lightweight"; then 2545 am_missing_run="$MISSING " 2546else 2547 am_missing_run= 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2549$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2550fi 2551 2552if test x"${install_sh+set}" != xset; then 2553 case $am_aux_dir in 2554 *\ * | *\ *) 2555 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2556 *) 2557 install_sh="\${SHELL} $am_aux_dir/install-sh" 2558 esac 2559fi 2560 2561# Installed binaries are usually stripped using 'strip' when the user 2562# run "make install-strip". However 'strip' might not be the right 2563# tool to use in cross-compilation environments, therefore Automake 2564# will honor the 'STRIP' environment variable to overrule this program. 2565if test "$cross_compiling" != no; then 2566 if test -n "$ac_tool_prefix"; then 2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2568set dummy ${ac_tool_prefix}strip; ac_word=$2 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570$as_echo_n "checking for $ac_word... " >&6; } 2571if ${ac_cv_prog_STRIP+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 if test -n "$STRIP"; then 2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2576else 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 break 2 2587 fi 2588done 2589 done 2590IFS=$as_save_IFS 2591 2592fi 2593fi 2594STRIP=$ac_cv_prog_STRIP 2595if test -n "$STRIP"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2597$as_echo "$STRIP" >&6; } 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600$as_echo "no" >&6; } 2601fi 2602 2603 2604fi 2605if test -z "$ac_cv_prog_STRIP"; then 2606 ac_ct_STRIP=$STRIP 2607 # Extract the first word of "strip", so it can be a program name with args. 2608set dummy strip; ac_word=$2 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2610$as_echo_n "checking for $ac_word... " >&6; } 2611if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 if test -n "$ac_ct_STRIP"; then 2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2624 ac_cv_prog_ac_ct_STRIP="strip" 2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629 done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2635if test -n "$ac_ct_STRIP"; then 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2637$as_echo "$ac_ct_STRIP" >&6; } 2638else 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2640$as_echo "no" >&6; } 2641fi 2642 2643 if test "x$ac_ct_STRIP" = x; then 2644 STRIP=":" 2645 else 2646 case $cross_compiling:$ac_tool_warned in 2647yes:) 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2650ac_tool_warned=yes ;; 2651esac 2652 STRIP=$ac_ct_STRIP 2653 fi 2654else 2655 STRIP="$ac_cv_prog_STRIP" 2656fi 2657 2658fi 2659INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2660 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2662$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2663if test -z "$MKDIR_P"; then 2664 if ${ac_cv_path_mkdir+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 for ac_prog in mkdir gmkdir; do 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2675 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2676 'mkdir (GNU coreutils) '* | \ 2677 'mkdir (coreutils) '* | \ 2678 'mkdir (fileutils) '4.1*) 2679 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2680 break 3;; 2681 esac 2682 done 2683 done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688 2689 test -d ./--version && rmdir ./--version 2690 if test "${ac_cv_path_mkdir+set}" = set; then 2691 MKDIR_P="$ac_cv_path_mkdir -p" 2692 else 2693 # As a last resort, use the slow shell script. Don't cache a 2694 # value for MKDIR_P within a source directory, because that will 2695 # break other packages using the cache if that directory is 2696 # removed, or if the value is a relative name. 2697 MKDIR_P="$ac_install_sh -d" 2698 fi 2699fi 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2701$as_echo "$MKDIR_P" >&6; } 2702 2703for ac_prog in gawk mawk nawk awk 2704do 2705 # Extract the first word of "$ac_prog", so it can be a program name with args. 2706set dummy $ac_prog; ac_word=$2 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2708$as_echo_n "checking for $ac_word... " >&6; } 2709if ${ac_cv_prog_AWK+:} false; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 if test -n "$AWK"; then 2713 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2714else 2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 test -z "$as_dir" && as_dir=. 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2722 ac_cv_prog_AWK="$ac_prog" 2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2724 break 2 2725 fi 2726done 2727 done 2728IFS=$as_save_IFS 2729 2730fi 2731fi 2732AWK=$ac_cv_prog_AWK 2733if test -n "$AWK"; then 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2735$as_echo "$AWK" >&6; } 2736else 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2738$as_echo "no" >&6; } 2739fi 2740 2741 2742 test -n "$AWK" && break 2743done 2744 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2746$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2747set x ${MAKE-make} 2748ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2749if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751else 2752 cat >conftest.make <<\_ACEOF 2753SHELL = /bin/sh 2754all: 2755 @echo '@@@%%%=$(MAKE)=@@@%%%' 2756_ACEOF 2757# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2758case `${MAKE-make} -f conftest.make 2>/dev/null` in 2759 *@@@%%%=?*=@@@%%%*) 2760 eval ac_cv_prog_make_${ac_make}_set=yes;; 2761 *) 2762 eval ac_cv_prog_make_${ac_make}_set=no;; 2763esac 2764rm -f conftest.make 2765fi 2766if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2768$as_echo "yes" >&6; } 2769 SET_MAKE= 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2772$as_echo "no" >&6; } 2773 SET_MAKE="MAKE=${MAKE-make}" 2774fi 2775 2776rm -rf .tst 2>/dev/null 2777mkdir .tst 2>/dev/null 2778if test -d .tst; then 2779 am__leading_dot=. 2780else 2781 am__leading_dot=_ 2782fi 2783rmdir .tst 2>/dev/null 2784 2785# Check whether --enable-silent-rules was given. 2786if test "${enable_silent_rules+set}" = set; then : 2787 enableval=$enable_silent_rules; 2788fi 2789 2790case $enable_silent_rules in # ((( 2791 yes) AM_DEFAULT_VERBOSITY=0;; 2792 no) AM_DEFAULT_VERBOSITY=1;; 2793 *) AM_DEFAULT_VERBOSITY=1;; 2794esac 2795am_make=${MAKE-make} 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2797$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2798if ${am_cv_make_support_nested_variables+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if $as_echo 'TRUE=$(BAR$(V)) 2802BAR0=false 2803BAR1=true 2804V=1 2805am__doit: 2806 @$(TRUE) 2807.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2808 am_cv_make_support_nested_variables=yes 2809else 2810 am_cv_make_support_nested_variables=no 2811fi 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2814$as_echo "$am_cv_make_support_nested_variables" >&6; } 2815if test $am_cv_make_support_nested_variables = yes; then 2816 AM_V='$(V)' 2817 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2818else 2819 AM_V=$AM_DEFAULT_VERBOSITY 2820 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2821fi 2822AM_BACKSLASH='\' 2823 2824if test "`cd $srcdir && pwd`" != "`pwd`"; then 2825 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2826 # is not polluted with repeated "-I." 2827 am__isrc=' -I$(srcdir)' 2828 # test to see if srcdir already configured 2829 if test -f $srcdir/config.status; then 2830 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2831 fi 2832fi 2833 2834# test whether we have cygpath 2835if test -z "$CYGPATH_W"; then 2836 if (cygpath --version) >/dev/null 2>/dev/null; then 2837 CYGPATH_W='cygpath -w' 2838 else 2839 CYGPATH_W=echo 2840 fi 2841fi 2842 2843 2844# Define the identity of the package. 2845 PACKAGE='xf86-video-rendition' 2846 VERSION='4.2.7' 2847 2848 2849cat >>confdefs.h <<_ACEOF 2850#define PACKAGE "$PACKAGE" 2851_ACEOF 2852 2853 2854cat >>confdefs.h <<_ACEOF 2855#define VERSION "$VERSION" 2856_ACEOF 2857 2858# Some tools Automake needs. 2859 2860ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2861 2862 2863AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2864 2865 2866AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2867 2868 2869AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2870 2871 2872MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2873 2874# For better backward compatibility. To be removed once Automake 1.9.x 2875# dies out for good. For more background, see: 2876# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2877# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2878mkdir_p='$(MKDIR_P)' 2879 2880# We need awk for the "check" target (and possibly the TAP driver). The 2881# system "awk" is bad on some platforms. 2882# Always define AMTAR for backward compatibility. Yes, it's still used 2883# in the wild :-( We should find a proper way to deprecate it ... 2884AMTAR='$${TAR-tar}' 2885 2886 2887# We'll loop over all known methods to create a tar archive until one works. 2888_am_tools='gnutar pax cpio none' 2889 2890am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2891 2892 2893 2894 2895 2896 2897# POSIX will say in a future version that running "rm -f" with no argument 2898# is OK; and we want to be able to make that assumption in our Makefile 2899# recipes. So use an aggressive probe to check that the usage we want is 2900# actually supported "in the wild" to an acceptable degree. 2901# See automake bug#10828. 2902# To make any issue more visible, cause the running configure to be aborted 2903# by default if the 'rm' program in use doesn't match our expectations; the 2904# user can still override this though. 2905if rm -f && rm -fr && rm -rf; then : OK; else 2906 cat >&2 <<'END' 2907Oops! 2908 2909Your 'rm' program seems unable to run without file operands specified 2910on the command line, even when the '-f' option is present. This is contrary 2911to the behaviour of most rm programs out there, and not conforming with 2912the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2913 2914Please tell bug-automake@gnu.org about your system, including the value 2915of your $PATH and any error possibly output before this message. This 2916can help us improve future automake versions. 2917 2918END 2919 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2920 echo 'Configuration will proceed anyway, since you have set the' >&2 2921 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2922 echo >&2 2923 else 2924 cat >&2 <<'END' 2925Aborting the configuration process, to ensure you take notice of the issue. 2926 2927You can download and install GNU coreutils to get an 'rm' implementation 2928that behaves properly: <http://www.gnu.org/software/coreutils/>. 2929 2930If you want to complete the configuration process using your problematic 2931'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2932to "yes", and re-run configure. 2933 2934END 2935 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2936 fi 2937fi 2938 2939 2940# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952DEPDIR="${am__leading_dot}deps" 2953 2954ac_config_commands="$ac_config_commands depfiles" 2955 2956 2957am_make=${MAKE-make} 2958cat > confinc << 'END' 2959am__doit: 2960 @echo this is the am__doit target 2961.PHONY: am__doit 2962END 2963# If we don't find an include directive, just comment out the code. 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2965$as_echo_n "checking for style of include used by $am_make... " >&6; } 2966am__include="#" 2967am__quote= 2968_am_result=none 2969# First try GNU make style include. 2970echo "include confinc" > confmf 2971# Ignore all kinds of additional output from 'make'. 2972case `$am_make -s -f confmf 2> /dev/null` in #( 2973*the\ am__doit\ target*) 2974 am__include=include 2975 am__quote= 2976 _am_result=GNU 2977 ;; 2978esac 2979# Now try BSD make style include. 2980if test "$am__include" = "#"; then 2981 echo '.include "confinc"' > confmf 2982 case `$am_make -s -f confmf 2> /dev/null` in #( 2983 *the\ am__doit\ target*) 2984 am__include=.include 2985 am__quote="\"" 2986 _am_result=BSD 2987 ;; 2988 esac 2989fi 2990 2991 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2993$as_echo "$_am_result" >&6; } 2994rm -f confinc confmf 2995 2996# Check whether --enable-dependency-tracking was given. 2997if test "${enable_dependency_tracking+set}" = set; then : 2998 enableval=$enable_dependency_tracking; 2999fi 3000 3001if test "x$enable_dependency_tracking" != xno; then 3002 am_depcomp="$ac_aux_dir/depcomp" 3003 AMDEPBACKSLASH='\' 3004 am__nodep='_no' 3005fi 3006 if test "x$enable_dependency_tracking" != xno; then 3007 AMDEP_TRUE= 3008 AMDEP_FALSE='#' 3009else 3010 AMDEP_TRUE='#' 3011 AMDEP_FALSE= 3012fi 3013 3014 3015ac_ext=c 3016ac_cpp='$CPP $CPPFLAGS' 3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3019ac_compiler_gnu=$ac_cv_c_compiler_gnu 3020if test -n "$ac_tool_prefix"; then 3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3022set dummy ${ac_tool_prefix}gcc; ac_word=$2 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024$as_echo_n "checking for $ac_word... " >&6; } 3025if ${ac_cv_prog_CC+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 if test -n "$CC"; then 3029 ac_cv_prog_CC="$CC" # Let the user override the test. 3030else 3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH 3033do 3034 IFS=$as_save_IFS 3035 test -z "$as_dir" && as_dir=. 3036 for ac_exec_ext in '' $ac_executable_extensions; do 3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3038 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 break 2 3041 fi 3042done 3043 done 3044IFS=$as_save_IFS 3045 3046fi 3047fi 3048CC=$ac_cv_prog_CC 3049if test -n "$CC"; then 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3051$as_echo "$CC" >&6; } 3052else 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054$as_echo "no" >&6; } 3055fi 3056 3057 3058fi 3059if test -z "$ac_cv_prog_CC"; then 3060 ac_ct_CC=$CC 3061 # Extract the first word of "gcc", so it can be a program name with args. 3062set dummy gcc; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_ac_ct_CC+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$ac_ct_CC"; then 3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_ac_ct_CC="gcc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088ac_ct_CC=$ac_cv_prog_ac_ct_CC 3089if test -n "$ac_ct_CC"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3091$as_echo "$ac_ct_CC" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 if test "x$ac_ct_CC" = x; then 3098 CC="" 3099 else 3100 case $cross_compiling:$ac_tool_warned in 3101yes:) 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104ac_tool_warned=yes ;; 3105esac 3106 CC=$ac_ct_CC 3107 fi 3108else 3109 CC="$ac_cv_prog_CC" 3110fi 3111 3112if test -z "$CC"; then 3113 if test -n "$ac_tool_prefix"; then 3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3115set dummy ${ac_tool_prefix}cc; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if ${ac_cv_prog_CC+:} false; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$CC"; then 3122 ac_cv_prog_CC="$CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_CC="${ac_tool_prefix}cc" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141CC=$ac_cv_prog_CC 3142if test -n "$CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3144$as_echo "$CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 3151 fi 3152fi 3153if test -z "$CC"; then 3154 # Extract the first word of "cc", so it can be a program name with args. 3155set dummy cc; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if ${ac_cv_prog_CC+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164 ac_prog_rejected=no 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3173 ac_prog_rejected=yes 3174 continue 3175 fi 3176 ac_cv_prog_CC="cc" 3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181 done 3182IFS=$as_save_IFS 3183 3184if test $ac_prog_rejected = yes; then 3185 # We found a bogon in the path, so make sure we never use it. 3186 set dummy $ac_cv_prog_CC 3187 shift 3188 if test $# != 0; then 3189 # We chose a different compiler from the bogus one. 3190 # However, it has the same basename, so the bogon will be chosen 3191 # first if we set CC to just the basename; use the full file name. 3192 shift 3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3194 fi 3195fi 3196fi 3197fi 3198CC=$ac_cv_prog_CC 3199if test -n "$CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3201$as_echo "$CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208fi 3209if test -z "$CC"; then 3210 if test -n "$ac_tool_prefix"; then 3211 for ac_prog in cl.exe 3212 do 3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3214set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3216$as_echo_n "checking for $ac_word... " >&6; } 3217if ${ac_cv_prog_CC+:} false; then : 3218 $as_echo_n "(cached) " >&6 3219else 3220 if test -n "$CC"; then 3221 ac_cv_prog_CC="$CC" # Let the user override the test. 3222else 3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3224for as_dir in $PATH 3225do 3226 IFS=$as_save_IFS 3227 test -z "$as_dir" && as_dir=. 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3232 break 2 3233 fi 3234done 3235 done 3236IFS=$as_save_IFS 3237 3238fi 3239fi 3240CC=$ac_cv_prog_CC 3241if test -n "$CC"; then 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3243$as_echo "$CC" >&6; } 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247fi 3248 3249 3250 test -n "$CC" && break 3251 done 3252fi 3253if test -z "$CC"; then 3254 ac_ct_CC=$CC 3255 for ac_prog in cl.exe 3256do 3257 # Extract the first word of "$ac_prog", so it can be a program name with args. 3258set dummy $ac_prog; ac_word=$2 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3260$as_echo_n "checking for $ac_word... " >&6; } 3261if ${ac_cv_prog_ac_ct_CC+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 if test -n "$ac_ct_CC"; then 3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3266else 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH 3269do 3270 IFS=$as_save_IFS 3271 test -z "$as_dir" && as_dir=. 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3274 ac_cv_prog_ac_ct_CC="$ac_prog" 3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3276 break 2 3277 fi 3278done 3279 done 3280IFS=$as_save_IFS 3281 3282fi 3283fi 3284ac_ct_CC=$ac_cv_prog_ac_ct_CC 3285if test -n "$ac_ct_CC"; then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3287$as_echo "$ac_ct_CC" >&6; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3290$as_echo "no" >&6; } 3291fi 3292 3293 3294 test -n "$ac_ct_CC" && break 3295done 3296 3297 if test "x$ac_ct_CC" = x; then 3298 CC="" 3299 else 3300 case $cross_compiling:$ac_tool_warned in 3301yes:) 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3304ac_tool_warned=yes ;; 3305esac 3306 CC=$ac_ct_CC 3307 fi 3308fi 3309 3310fi 3311 3312 3313test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3315as_fn_error $? "no acceptable C compiler found in \$PATH 3316See \`config.log' for more details" "$LINENO" 5; } 3317 3318# Provide some information about the compiler. 3319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3320set X $ac_compile 3321ac_compiler=$2 3322for ac_option in --version -v -V -qversion; do 3323 { { ac_try="$ac_compiler $ac_option >&5" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3331 ac_status=$? 3332 if test -s conftest.err; then 3333 sed '10a\ 3334... rest of stderr output deleted ... 3335 10q' conftest.err >conftest.er1 3336 cat conftest.er1 >&5 3337 fi 3338 rm -f conftest.er1 conftest.err 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; } 3341done 3342 3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3344/* end confdefs.h. */ 3345 3346int 3347main () 3348{ 3349 3350 ; 3351 return 0; 3352} 3353_ACEOF 3354ac_clean_files_save=$ac_clean_files 3355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3356# Try to create an executable without -o first, disregard a.out. 3357# It will help us diagnose broken compilers, and finding out an intuition 3358# of exeext. 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3360$as_echo_n "checking whether the C compiler works... " >&6; } 3361ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3362 3363# The possible output files: 3364ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3365 3366ac_rmfiles= 3367for ac_file in $ac_files 3368do 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3372 esac 3373done 3374rm -f $ac_rmfiles 3375 3376if { { ac_try="$ac_link_default" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3382$as_echo "$ac_try_echo"; } >&5 3383 (eval "$ac_link_default") 2>&5 3384 ac_status=$? 3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3386 test $ac_status = 0; }; then : 3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3389# in a Makefile. We should not override ac_cv_exeext if it was cached, 3390# so that the user can short-circuit this test for compilers unknown to 3391# Autoconf. 3392for ac_file in $ac_files '' 3393do 3394 test -f "$ac_file" || continue 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3397 ;; 3398 [ab].out ) 3399 # We found the default executable, but exeext='' is most 3400 # certainly right. 3401 break;; 3402 *.* ) 3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3404 then :; else 3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3406 fi 3407 # We set ac_cv_exeext here because the later test for it is not 3408 # safe: cross compilers may not add the suffix if given an `-o' 3409 # argument, so we may need to know it at that point already. 3410 # Even if this section looks crufty: it has the advantage of 3411 # actually working. 3412 break;; 3413 * ) 3414 break;; 3415 esac 3416done 3417test "$ac_cv_exeext" = no && ac_cv_exeext= 3418 3419else 3420 ac_file='' 3421fi 3422if test -z "$ac_file"; then : 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424$as_echo "no" >&6; } 3425$as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3430as_fn_error 77 "C compiler cannot create executables 3431See \`config.log' for more details" "$LINENO" 5; } 3432else 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3434$as_echo "yes" >&6; } 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3437$as_echo_n "checking for C compiler default output file name... " >&6; } 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3439$as_echo "$ac_file" >&6; } 3440ac_exeext=$ac_cv_exeext 3441 3442rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3443ac_clean_files=$ac_clean_files_save 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3445$as_echo_n "checking for suffix of executables... " >&6; } 3446if { { ac_try="$ac_link" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452$as_echo "$ac_try_echo"; } >&5 3453 (eval "$ac_link") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; }; then : 3457 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3458# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3459# work properly (i.e., refer to `conftest.exe'), while it won't with 3460# `rm'. 3461for ac_file in conftest.exe conftest conftest.*; do 3462 test -f "$ac_file" || continue 3463 case $ac_file in 3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3466 break;; 3467 * ) break;; 3468 esac 3469done 3470else 3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3473as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3474See \`config.log' for more details" "$LINENO" 5; } 3475fi 3476rm -f conftest conftest$ac_cv_exeext 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3478$as_echo "$ac_cv_exeext" >&6; } 3479 3480rm -f conftest.$ac_ext 3481EXEEXT=$ac_cv_exeext 3482ac_exeext=$EXEEXT 3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <stdio.h> 3486int 3487main () 3488{ 3489FILE *f = fopen ("conftest.out", "w"); 3490 return ferror (f) || fclose (f) != 0; 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496ac_clean_files="$ac_clean_files conftest.out" 3497# Check that the compiler produces executables we can run. If not, either 3498# the compiler is broken, or we cross compile. 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3500$as_echo_n "checking whether we are cross compiling... " >&6; } 3501if test "$cross_compiling" != yes; then 3502 { { ac_try="$ac_link" 3503case "(($ac_try" in 3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3505 *) ac_try_echo=$ac_try;; 3506esac 3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3508$as_echo "$ac_try_echo"; } >&5 3509 (eval "$ac_link") 2>&5 3510 ac_status=$? 3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3512 test $ac_status = 0; } 3513 if { ac_try='./conftest$ac_cv_exeext' 3514 { { case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_try") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; }; then 3524 cross_compiling=no 3525 else 3526 if test "$cross_compiling" = maybe; then 3527 cross_compiling=yes 3528 else 3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3531as_fn_error $? "cannot run C compiled programs. 3532If you meant to cross compile, use \`--host'. 3533See \`config.log' for more details" "$LINENO" 5; } 3534 fi 3535 fi 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3538$as_echo "$cross_compiling" >&6; } 3539 3540rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3541ac_clean_files=$ac_clean_files_save 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3543$as_echo_n "checking for suffix of object files... " >&6; } 3544if ${ac_cv_objext+:} false; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558rm -f conftest.o conftest.obj 3559if { { ac_try="$ac_compile" 3560case "(($ac_try" in 3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3562 *) ac_try_echo=$ac_try;; 3563esac 3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3565$as_echo "$ac_try_echo"; } >&5 3566 (eval "$ac_compile") 2>&5 3567 ac_status=$? 3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3569 test $ac_status = 0; }; then : 3570 for ac_file in conftest.o conftest.obj conftest.*; do 3571 test -f "$ac_file" || continue; 3572 case $ac_file in 3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3575 break;; 3576 esac 3577done 3578else 3579 $as_echo "$as_me: failed program was:" >&5 3580sed 's/^/| /' conftest.$ac_ext >&5 3581 3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot compute suffix of object files: cannot compile 3585See \`config.log' for more details" "$LINENO" 5; } 3586fi 3587rm -f conftest.$ac_cv_objext conftest.$ac_ext 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3590$as_echo "$ac_cv_objext" >&6; } 3591OBJEXT=$ac_cv_objext 3592ac_objext=$OBJEXT 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3594$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3595if ${ac_cv_c_compiler_gnu+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600 3601int 3602main () 3603{ 3604#ifndef __GNUC__ 3605 choke me 3606#endif 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612if ac_fn_c_try_compile "$LINENO"; then : 3613 ac_compiler_gnu=yes 3614else 3615 ac_compiler_gnu=no 3616fi 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618ac_cv_c_compiler_gnu=$ac_compiler_gnu 3619 3620fi 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3622$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3623if test $ac_compiler_gnu = yes; then 3624 GCC=yes 3625else 3626 GCC= 3627fi 3628ac_test_CFLAGS=${CFLAGS+set} 3629ac_save_CFLAGS=$CFLAGS 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3631$as_echo_n "checking whether $CC accepts -g... " >&6; } 3632if ${ac_cv_prog_cc_g+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 ac_save_c_werror_flag=$ac_c_werror_flag 3636 ac_c_werror_flag=yes 3637 ac_cv_prog_cc_g=no 3638 CFLAGS="-g" 3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642int 3643main () 3644{ 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650if ac_fn_c_try_compile "$LINENO"; then : 3651 ac_cv_prog_cc_g=yes 3652else 3653 CFLAGS="" 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665if ac_fn_c_try_compile "$LINENO"; then : 3666 3667else 3668 ac_c_werror_flag=$ac_save_c_werror_flag 3669 CFLAGS="-g" 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main () 3675{ 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681if ac_fn_c_try_compile "$LINENO"; then : 3682 ac_cv_prog_cc_g=yes 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3685fi 3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3687fi 3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3689 ac_c_werror_flag=$ac_save_c_werror_flag 3690fi 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3692$as_echo "$ac_cv_prog_cc_g" >&6; } 3693if test "$ac_test_CFLAGS" = set; then 3694 CFLAGS=$ac_save_CFLAGS 3695elif test $ac_cv_prog_cc_g = yes; then 3696 if test "$GCC" = yes; then 3697 CFLAGS="-g -O2" 3698 else 3699 CFLAGS="-g" 3700 fi 3701else 3702 if test "$GCC" = yes; then 3703 CFLAGS="-O2" 3704 else 3705 CFLAGS= 3706 fi 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3709$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3710if ${ac_cv_prog_cc_c89+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 ac_cv_prog_cc_c89=no 3714ac_save_CC=$CC 3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717#include <stdarg.h> 3718#include <stdio.h> 3719struct stat; 3720/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3721struct buf { int x; }; 3722FILE * (*rcsopen) (struct buf *, struct stat *, int); 3723static char *e (p, i) 3724 char **p; 3725 int i; 3726{ 3727 return p[i]; 3728} 3729static char *f (char * (*g) (char **, int), char **p, ...) 3730{ 3731 char *s; 3732 va_list v; 3733 va_start (v,p); 3734 s = g (p, va_arg (v,int)); 3735 va_end (v); 3736 return s; 3737} 3738 3739/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3740 function prototypes and stuff, but not '\xHH' hex character constants. 3741 These don't provoke an error unfortunately, instead are silently treated 3742 as 'x'. The following induces an error, until -std is added to get 3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3744 array size at least. It's necessary to write '\x00'==0 to get something 3745 that's true only with -std. */ 3746int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3747 3748/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3749 inside strings and character constants. */ 3750#define FOO(x) 'x' 3751int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3752 3753int test (int i, double x); 3754struct s1 {int (*f) (int a);}; 3755struct s2 {int (*f) (double a);}; 3756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3757int argc; 3758char **argv; 3759int 3760main () 3761{ 3762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3769do 3770 CC="$ac_save_CC $ac_arg" 3771 if ac_fn_c_try_compile "$LINENO"; then : 3772 ac_cv_prog_cc_c89=$ac_arg 3773fi 3774rm -f core conftest.err conftest.$ac_objext 3775 test "x$ac_cv_prog_cc_c89" != "xno" && break 3776done 3777rm -f conftest.$ac_ext 3778CC=$ac_save_CC 3779 3780fi 3781# AC_CACHE_VAL 3782case "x$ac_cv_prog_cc_c89" in 3783 x) 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3785$as_echo "none needed" >&6; } ;; 3786 xno) 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3788$as_echo "unsupported" >&6; } ;; 3789 *) 3790 CC="$CC $ac_cv_prog_cc_c89" 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3792$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3793esac 3794if test "x$ac_cv_prog_cc_c89" != xno; then : 3795 3796fi 3797 3798ac_ext=c 3799ac_cpp='$CPP $CPPFLAGS' 3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3802ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803 3804ac_ext=c 3805ac_cpp='$CPP $CPPFLAGS' 3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3808ac_compiler_gnu=$ac_cv_c_compiler_gnu 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3810$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3811if ${am_cv_prog_cc_c_o+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813else 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816 3817int 3818main () 3819{ 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825 # Make sure it works both with $CC and with simple cc. 3826 # Following AC_PROG_CC_C_O, we do the test twice because some 3827 # compilers refuse to overwrite an existing .o file with -o, 3828 # though they will create one. 3829 am_cv_prog_cc_c_o=yes 3830 for am_i in 1 2; do 3831 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3832 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3833 ac_status=$? 3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3835 (exit $ac_status); } \ 3836 && test -f conftest2.$ac_objext; then 3837 : OK 3838 else 3839 am_cv_prog_cc_c_o=no 3840 break 3841 fi 3842 done 3843 rm -f core conftest* 3844 unset am_i 3845fi 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3847$as_echo "$am_cv_prog_cc_c_o" >&6; } 3848if test "$am_cv_prog_cc_c_o" != yes; then 3849 # Losing compiler, so override with the script. 3850 # FIXME: It is wrong to rewrite CC. 3851 # But if we don't then we get into trouble of one sort or another. 3852 # A longer-term fix would be to have automake use am__CC in this case, 3853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3854 CC="$am_aux_dir/compile $CC" 3855fi 3856ac_ext=c 3857ac_cpp='$CPP $CPPFLAGS' 3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3860ac_compiler_gnu=$ac_cv_c_compiler_gnu 3861 3862 3863depcc="$CC" am_compiler_list= 3864 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3866$as_echo_n "checking dependency style of $depcc... " >&6; } 3867if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3871 # We make a subdir and do the tests there. Otherwise we can end up 3872 # making bogus files that we don't know about and never remove. For 3873 # instance it was reported that on HP-UX the gcc test will end up 3874 # making a dummy file named 'D' -- because '-MD' means "put the output 3875 # in D". 3876 rm -rf conftest.dir 3877 mkdir conftest.dir 3878 # Copy depcomp to subdir because otherwise we won't find it if we're 3879 # using a relative directory. 3880 cp "$am_depcomp" conftest.dir 3881 cd conftest.dir 3882 # We will build objects and dependencies in a subdirectory because 3883 # it helps to detect inapplicable dependency modes. For instance 3884 # both Tru64's cc and ICC support -MD to output dependencies as a 3885 # side effect of compilation, but ICC will put the dependencies in 3886 # the current directory while Tru64 will put them in the object 3887 # directory. 3888 mkdir sub 3889 3890 am_cv_CC_dependencies_compiler_type=none 3891 if test "$am_compiler_list" = ""; then 3892 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3893 fi 3894 am__universal=false 3895 case " $depcc " in #( 3896 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3897 esac 3898 3899 for depmode in $am_compiler_list; do 3900 # Setup a source with many dependencies, because some compilers 3901 # like to wrap large dependency lists on column 80 (with \), and 3902 # we should not choose a depcomp mode which is confused by this. 3903 # 3904 # We need to recreate these files for each test, as the compiler may 3905 # overwrite some of them when testing with obscure command lines. 3906 # This happens at least with the AIX C compiler. 3907 : > sub/conftest.c 3908 for i in 1 2 3 4 5 6; do 3909 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3910 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3911 # Solaris 10 /bin/sh. 3912 echo '/* dummy */' > sub/conftst$i.h 3913 done 3914 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3915 3916 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3917 # mode. It turns out that the SunPro C++ compiler does not properly 3918 # handle '-M -o', and we need to detect this. Also, some Intel 3919 # versions had trouble with output in subdirs. 3920 am__obj=sub/conftest.${OBJEXT-o} 3921 am__minus_obj="-o $am__obj" 3922 case $depmode in 3923 gcc) 3924 # This depmode causes a compiler race in universal mode. 3925 test "$am__universal" = false || continue 3926 ;; 3927 nosideeffect) 3928 # After this tag, mechanisms are not by side-effect, so they'll 3929 # only be used when explicitly requested. 3930 if test "x$enable_dependency_tracking" = xyes; then 3931 continue 3932 else 3933 break 3934 fi 3935 ;; 3936 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3937 # This compiler won't grok '-c -o', but also, the minuso test has 3938 # not run yet. These depmodes are late enough in the game, and 3939 # so weak that their functioning should not be impacted. 3940 am__obj=conftest.${OBJEXT-o} 3941 am__minus_obj= 3942 ;; 3943 none) break ;; 3944 esac 3945 if depmode=$depmode \ 3946 source=sub/conftest.c object=$am__obj \ 3947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3948 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3949 >/dev/null 2>conftest.err && 3950 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3952 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3954 # icc doesn't choke on unknown options, it will just issue warnings 3955 # or remarks (even with -Werror). So we grep stderr for any message 3956 # that says an option was ignored or not supported. 3957 # When given -MP, icc 7.0 and 7.1 complain thusly: 3958 # icc: Command line warning: ignoring option '-M'; no argument required 3959 # The diagnosis changed in icc 8.0: 3960 # icc: Command line remark: option '-MP' not supported 3961 if (grep 'ignoring option' conftest.err || 3962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3963 am_cv_CC_dependencies_compiler_type=$depmode 3964 break 3965 fi 3966 fi 3967 done 3968 3969 cd .. 3970 rm -rf conftest.dir 3971else 3972 am_cv_CC_dependencies_compiler_type=none 3973fi 3974 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3977$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3978CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3979 3980 if 3981 test "x$enable_dependency_tracking" != xno \ 3982 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3983 am__fastdepCC_TRUE= 3984 am__fastdepCC_FALSE='#' 3985else 3986 am__fastdepCC_TRUE='#' 3987 am__fastdepCC_FALSE= 3988fi 3989 3990 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3992$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3993if ${ac_cv_prog_cc_c99+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995else 3996 ac_cv_prog_cc_c99=no 3997ac_save_CC=$CC 3998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000#include <stdarg.h> 4001#include <stdbool.h> 4002#include <stdlib.h> 4003#include <wchar.h> 4004#include <stdio.h> 4005 4006// Check varargs macros. These examples are taken from C99 6.10.3.5. 4007#define debug(...) fprintf (stderr, __VA_ARGS__) 4008#define showlist(...) puts (#__VA_ARGS__) 4009#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4010static void 4011test_varargs_macros (void) 4012{ 4013 int x = 1234; 4014 int y = 5678; 4015 debug ("Flag"); 4016 debug ("X = %d\n", x); 4017 showlist (The first, second, and third items.); 4018 report (x>y, "x is %d but y is %d", x, y); 4019} 4020 4021// Check long long types. 4022#define BIG64 18446744073709551615ull 4023#define BIG32 4294967295ul 4024#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4025#if !BIG_OK 4026 your preprocessor is broken; 4027#endif 4028#if BIG_OK 4029#else 4030 your preprocessor is broken; 4031#endif 4032static long long int bignum = -9223372036854775807LL; 4033static unsigned long long int ubignum = BIG64; 4034 4035struct incomplete_array 4036{ 4037 int datasize; 4038 double data[]; 4039}; 4040 4041struct named_init { 4042 int number; 4043 const wchar_t *name; 4044 double average; 4045}; 4046 4047typedef const char *ccp; 4048 4049static inline int 4050test_restrict (ccp restrict text) 4051{ 4052 // See if C++-style comments work. 4053 // Iterate through items via the restricted pointer. 4054 // Also check for declarations in for loops. 4055 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4056 continue; 4057 return 0; 4058} 4059 4060// Check varargs and va_copy. 4061static void 4062test_varargs (const char *format, ...) 4063{ 4064 va_list args; 4065 va_start (args, format); 4066 va_list args_copy; 4067 va_copy (args_copy, args); 4068 4069 const char *str; 4070 int number; 4071 float fnumber; 4072 4073 while (*format) 4074 { 4075 switch (*format++) 4076 { 4077 case 's': // string 4078 str = va_arg (args_copy, const char *); 4079 break; 4080 case 'd': // int 4081 number = va_arg (args_copy, int); 4082 break; 4083 case 'f': // float 4084 fnumber = va_arg (args_copy, double); 4085 break; 4086 default: 4087 break; 4088 } 4089 } 4090 va_end (args_copy); 4091 va_end (args); 4092} 4093 4094int 4095main () 4096{ 4097 4098 // Check bool. 4099 _Bool success = false; 4100 4101 // Check restrict. 4102 if (test_restrict ("String literal") == 0) 4103 success = true; 4104 char *restrict newvar = "Another string"; 4105 4106 // Check varargs. 4107 test_varargs ("s, d' f .", "string", 65, 34.234); 4108 test_varargs_macros (); 4109 4110 // Check flexible array members. 4111 struct incomplete_array *ia = 4112 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4113 ia->datasize = 10; 4114 for (int i = 0; i < ia->datasize; ++i) 4115 ia->data[i] = i * 1.234; 4116 4117 // Check named initializers. 4118 struct named_init ni = { 4119 .number = 34, 4120 .name = L"Test wide string", 4121 .average = 543.34343, 4122 }; 4123 4124 ni.number = 58; 4125 4126 int dynamic_array[ni.number]; 4127 dynamic_array[ni.number - 1] = 543; 4128 4129 // work around unused variable warnings 4130 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4131 || dynamic_array[ni.number - 1] != 543); 4132 4133 ; 4134 return 0; 4135} 4136_ACEOF 4137for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4138do 4139 CC="$ac_save_CC $ac_arg" 4140 if ac_fn_c_try_compile "$LINENO"; then : 4141 ac_cv_prog_cc_c99=$ac_arg 4142fi 4143rm -f core conftest.err conftest.$ac_objext 4144 test "x$ac_cv_prog_cc_c99" != "xno" && break 4145done 4146rm -f conftest.$ac_ext 4147CC=$ac_save_CC 4148 4149fi 4150# AC_CACHE_VAL 4151case "x$ac_cv_prog_cc_c99" in 4152 x) 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4154$as_echo "none needed" >&6; } ;; 4155 xno) 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4157$as_echo "unsupported" >&6; } ;; 4158 *) 4159 CC="$CC $ac_cv_prog_cc_c99" 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4161$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4162esac 4163if test "x$ac_cv_prog_cc_c99" != xno; then : 4164 4165fi 4166 4167 4168 4169ac_ext=c 4170ac_cpp='$CPP $CPPFLAGS' 4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4173ac_compiler_gnu=$ac_cv_c_compiler_gnu 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4175$as_echo_n "checking how to run the C preprocessor... " >&6; } 4176# On Suns, sometimes $CPP names a directory. 4177if test -n "$CPP" && test -d "$CPP"; then 4178 CPP= 4179fi 4180if test -z "$CPP"; then 4181 if ${ac_cv_prog_CPP+:} false; then : 4182 $as_echo_n "(cached) " >&6 4183else 4184 # Double quotes because CPP needs to be expanded 4185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4186 do 4187 ac_preproc_ok=false 4188for ac_c_preproc_warn_flag in '' yes 4189do 4190 # Use a header file that comes with gcc, so configuring glibc 4191 # with a fresh cross-compiler works. 4192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4193 # <limits.h> exists even on freestanding compilers. 4194 # On the NeXT, cc -E runs the code through the compiler's parser, 4195 # not just through cpp. "Syntax error" is here to catch this case. 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198#ifdef __STDC__ 4199# include <limits.h> 4200#else 4201# include <assert.h> 4202#endif 4203 Syntax error 4204_ACEOF 4205if ac_fn_c_try_cpp "$LINENO"; then : 4206 4207else 4208 # Broken: fails on valid input. 4209continue 4210fi 4211rm -f conftest.err conftest.i conftest.$ac_ext 4212 4213 # OK, works on sane cases. Now check whether nonexistent headers 4214 # can be detected and how. 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216/* end confdefs.h. */ 4217#include <ac_nonexistent.h> 4218_ACEOF 4219if ac_fn_c_try_cpp "$LINENO"; then : 4220 # Broken: success on invalid input. 4221continue 4222else 4223 # Passes both tests. 4224ac_preproc_ok=: 4225break 4226fi 4227rm -f conftest.err conftest.i conftest.$ac_ext 4228 4229done 4230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4231rm -f conftest.i conftest.err conftest.$ac_ext 4232if $ac_preproc_ok; then : 4233 break 4234fi 4235 4236 done 4237 ac_cv_prog_CPP=$CPP 4238 4239fi 4240 CPP=$ac_cv_prog_CPP 4241else 4242 ac_cv_prog_CPP=$CPP 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4245$as_echo "$CPP" >&6; } 4246ac_preproc_ok=false 4247for ac_c_preproc_warn_flag in '' yes 4248do 4249 # Use a header file that comes with gcc, so configuring glibc 4250 # with a fresh cross-compiler works. 4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4252 # <limits.h> exists even on freestanding compilers. 4253 # On the NeXT, cc -E runs the code through the compiler's parser, 4254 # not just through cpp. "Syntax error" is here to catch this case. 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257#ifdef __STDC__ 4258# include <limits.h> 4259#else 4260# include <assert.h> 4261#endif 4262 Syntax error 4263_ACEOF 4264if ac_fn_c_try_cpp "$LINENO"; then : 4265 4266else 4267 # Broken: fails on valid input. 4268continue 4269fi 4270rm -f conftest.err conftest.i conftest.$ac_ext 4271 4272 # OK, works on sane cases. Now check whether nonexistent headers 4273 # can be detected and how. 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276#include <ac_nonexistent.h> 4277_ACEOF 4278if ac_fn_c_try_cpp "$LINENO"; then : 4279 # Broken: success on invalid input. 4280continue 4281else 4282 # Passes both tests. 4283ac_preproc_ok=: 4284break 4285fi 4286rm -f conftest.err conftest.i conftest.$ac_ext 4287 4288done 4289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4290rm -f conftest.i conftest.err conftest.$ac_ext 4291if $ac_preproc_ok; then : 4292 4293else 4294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4296as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4297See \`config.log' for more details" "$LINENO" 5; } 4298fi 4299 4300ac_ext=c 4301ac_cpp='$CPP $CPPFLAGS' 4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4304ac_compiler_gnu=$ac_cv_c_compiler_gnu 4305 4306 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4308$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4309if ${ac_cv_path_GREP+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 if test -z "$GREP"; then 4313 ac_path_GREP_found=false 4314 # Loop through the user's path and test for each of PROGNAME-LIST 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4317do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_prog in grep ggrep; do 4321 for ac_exec_ext in '' $ac_executable_extensions; do 4322 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4323 as_fn_executable_p "$ac_path_GREP" || continue 4324# Check for GNU ac_path_GREP and select it if it is found. 4325 # Check for GNU $ac_path_GREP 4326case `"$ac_path_GREP" --version 2>&1` in 4327*GNU*) 4328 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4329*) 4330 ac_count=0 4331 $as_echo_n 0123456789 >"conftest.in" 4332 while : 4333 do 4334 cat "conftest.in" "conftest.in" >"conftest.tmp" 4335 mv "conftest.tmp" "conftest.in" 4336 cp "conftest.in" "conftest.nl" 4337 $as_echo 'GREP' >> "conftest.nl" 4338 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4340 as_fn_arith $ac_count + 1 && ac_count=$as_val 4341 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4342 # Best one so far, save it but keep looking for a better one 4343 ac_cv_path_GREP="$ac_path_GREP" 4344 ac_path_GREP_max=$ac_count 4345 fi 4346 # 10*(2^10) chars as input seems more than enough 4347 test $ac_count -gt 10 && break 4348 done 4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4350esac 4351 4352 $ac_path_GREP_found && break 3 4353 done 4354 done 4355 done 4356IFS=$as_save_IFS 4357 if test -z "$ac_cv_path_GREP"; then 4358 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4359 fi 4360else 4361 ac_cv_path_GREP=$GREP 4362fi 4363 4364fi 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4366$as_echo "$ac_cv_path_GREP" >&6; } 4367 GREP="$ac_cv_path_GREP" 4368 4369 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4371$as_echo_n "checking for egrep... " >&6; } 4372if ${ac_cv_path_EGREP+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4376 then ac_cv_path_EGREP="$GREP -E" 4377 else 4378 if test -z "$EGREP"; then 4379 ac_path_EGREP_found=false 4380 # Loop through the user's path and test for each of PROGNAME-LIST 4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4383do 4384 IFS=$as_save_IFS 4385 test -z "$as_dir" && as_dir=. 4386 for ac_prog in egrep; do 4387 for ac_exec_ext in '' $ac_executable_extensions; do 4388 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4389 as_fn_executable_p "$ac_path_EGREP" || continue 4390# Check for GNU ac_path_EGREP and select it if it is found. 4391 # Check for GNU $ac_path_EGREP 4392case `"$ac_path_EGREP" --version 2>&1` in 4393*GNU*) 4394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4395*) 4396 ac_count=0 4397 $as_echo_n 0123456789 >"conftest.in" 4398 while : 4399 do 4400 cat "conftest.in" "conftest.in" >"conftest.tmp" 4401 mv "conftest.tmp" "conftest.in" 4402 cp "conftest.in" "conftest.nl" 4403 $as_echo 'EGREP' >> "conftest.nl" 4404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4406 as_fn_arith $ac_count + 1 && ac_count=$as_val 4407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4408 # Best one so far, save it but keep looking for a better one 4409 ac_cv_path_EGREP="$ac_path_EGREP" 4410 ac_path_EGREP_max=$ac_count 4411 fi 4412 # 10*(2^10) chars as input seems more than enough 4413 test $ac_count -gt 10 && break 4414 done 4415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4416esac 4417 4418 $ac_path_EGREP_found && break 3 4419 done 4420 done 4421 done 4422IFS=$as_save_IFS 4423 if test -z "$ac_cv_path_EGREP"; then 4424 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4425 fi 4426else 4427 ac_cv_path_EGREP=$EGREP 4428fi 4429 4430 fi 4431fi 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4433$as_echo "$ac_cv_path_EGREP" >&6; } 4434 EGREP="$ac_cv_path_EGREP" 4435 4436 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4438$as_echo_n "checking for ANSI C header files... " >&6; } 4439if ${ac_cv_header_stdc+:} false; then : 4440 $as_echo_n "(cached) " >&6 4441else 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4443/* end confdefs.h. */ 4444#include <stdlib.h> 4445#include <stdarg.h> 4446#include <string.h> 4447#include <float.h> 4448 4449int 4450main () 4451{ 4452 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457if ac_fn_c_try_compile "$LINENO"; then : 4458 ac_cv_header_stdc=yes 4459else 4460 ac_cv_header_stdc=no 4461fi 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4463 4464if test $ac_cv_header_stdc = yes; then 4465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468#include <string.h> 4469 4470_ACEOF 4471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4472 $EGREP "memchr" >/dev/null 2>&1; then : 4473 4474else 4475 ac_cv_header_stdc=no 4476fi 4477rm -f conftest* 4478 4479fi 4480 4481if test $ac_cv_header_stdc = yes; then 4482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4484/* end confdefs.h. */ 4485#include <stdlib.h> 4486 4487_ACEOF 4488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4489 $EGREP "free" >/dev/null 2>&1; then : 4490 4491else 4492 ac_cv_header_stdc=no 4493fi 4494rm -f conftest* 4495 4496fi 4497 4498if test $ac_cv_header_stdc = yes; then 4499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4500 if test "$cross_compiling" = yes; then : 4501 : 4502else 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <ctype.h> 4506#include <stdlib.h> 4507#if ((' ' & 0x0FF) == 0x020) 4508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4510#else 4511# define ISLOWER(c) \ 4512 (('a' <= (c) && (c) <= 'i') \ 4513 || ('j' <= (c) && (c) <= 'r') \ 4514 || ('s' <= (c) && (c) <= 'z')) 4515# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4516#endif 4517 4518#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4519int 4520main () 4521{ 4522 int i; 4523 for (i = 0; i < 256; i++) 4524 if (XOR (islower (i), ISLOWER (i)) 4525 || toupper (i) != TOUPPER (i)) 4526 return 2; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_c_try_run "$LINENO"; then : 4531 4532else 4533 ac_cv_header_stdc=no 4534fi 4535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4536 conftest.$ac_objext conftest.beam conftest.$ac_ext 4537fi 4538 4539fi 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4542$as_echo "$ac_cv_header_stdc" >&6; } 4543if test $ac_cv_header_stdc = yes; then 4544 4545$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4546 4547fi 4548 4549# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4551 inttypes.h stdint.h unistd.h 4552do : 4553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4554ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4555" 4556if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4557 cat >>confdefs.h <<_ACEOF 4558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4559_ACEOF 4560 4561fi 4562 4563done 4564 4565 4566 4567 4568 4569 4570ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4571if test "x$ac_cv_have_decl___clang__" = xyes; then : 4572 CLANGCC="yes" 4573else 4574 CLANGCC="no" 4575fi 4576 4577ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4578if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4579 INTELCC="yes" 4580else 4581 INTELCC="no" 4582fi 4583 4584ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4585if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4586 SUNCC="yes" 4587else 4588 SUNCC="no" 4589fi 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4600 if test -n "$ac_tool_prefix"; then 4601 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4602set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604$as_echo_n "checking for $ac_word... " >&6; } 4605if ${ac_cv_path_PKG_CONFIG+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 case $PKG_CONFIG in 4609 [\\/]* | ?:[\\/]*) 4610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4611 ;; 4612 *) 4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4614for as_dir in $PATH 4615do 4616 IFS=$as_save_IFS 4617 test -z "$as_dir" && as_dir=. 4618 for ac_exec_ext in '' $ac_executable_extensions; do 4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4622 break 2 4623 fi 4624done 4625 done 4626IFS=$as_save_IFS 4627 4628 ;; 4629esac 4630fi 4631PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4632if test -n "$PKG_CONFIG"; then 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4634$as_echo "$PKG_CONFIG" >&6; } 4635else 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4637$as_echo "no" >&6; } 4638fi 4639 4640 4641fi 4642if test -z "$ac_cv_path_PKG_CONFIG"; then 4643 ac_pt_PKG_CONFIG=$PKG_CONFIG 4644 # Extract the first word of "pkg-config", so it can be a program name with args. 4645set dummy pkg-config; ac_word=$2 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4647$as_echo_n "checking for $ac_word... " >&6; } 4648if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 case $ac_pt_PKG_CONFIG in 4652 [\\/]* | ?:[\\/]*) 4653 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4654 ;; 4655 *) 4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4657for as_dir in $PATH 4658do 4659 IFS=$as_save_IFS 4660 test -z "$as_dir" && as_dir=. 4661 for ac_exec_ext in '' $ac_executable_extensions; do 4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4663 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4665 break 2 4666 fi 4667done 4668 done 4669IFS=$as_save_IFS 4670 4671 ;; 4672esac 4673fi 4674ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4675if test -n "$ac_pt_PKG_CONFIG"; then 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4677$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4678else 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4680$as_echo "no" >&6; } 4681fi 4682 4683 if test "x$ac_pt_PKG_CONFIG" = x; then 4684 PKG_CONFIG="" 4685 else 4686 case $cross_compiling:$ac_tool_warned in 4687yes:) 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4690ac_tool_warned=yes ;; 4691esac 4692 PKG_CONFIG=$ac_pt_PKG_CONFIG 4693 fi 4694else 4695 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4696fi 4697 4698fi 4699if test -n "$PKG_CONFIG"; then 4700 _pkg_min_version=0.9.0 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4702$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4703 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4705$as_echo "yes" >&6; } 4706 else 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4708$as_echo "no" >&6; } 4709 PKG_CONFIG="" 4710 fi 4711fi 4712# Make sure we can run config.sub. 4713$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4714 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4717$as_echo_n "checking build system type... " >&6; } 4718if ${ac_cv_build+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 ac_build_alias=$build_alias 4722test "x$ac_build_alias" = x && 4723 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4724test "x$ac_build_alias" = x && 4725 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4726ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4728 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4731$as_echo "$ac_cv_build" >&6; } 4732case $ac_cv_build in 4733*-*-*) ;; 4734*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4735esac 4736build=$ac_cv_build 4737ac_save_IFS=$IFS; IFS='-' 4738set x $ac_cv_build 4739shift 4740build_cpu=$1 4741build_vendor=$2 4742shift; shift 4743# Remember, the first character of IFS is used to create $*, 4744# except with old shells: 4745build_os=$* 4746IFS=$ac_save_IFS 4747case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4748 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4751$as_echo_n "checking host system type... " >&6; } 4752if ${ac_cv_host+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test "x$host_alias" = x; then 4756 ac_cv_host=$ac_cv_build 4757else 4758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4760fi 4761 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4764$as_echo "$ac_cv_host" >&6; } 4765case $ac_cv_host in 4766*-*-*) ;; 4767*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4768esac 4769host=$ac_cv_host 4770ac_save_IFS=$IFS; IFS='-' 4771set x $ac_cv_host 4772shift 4773host_cpu=$1 4774host_vendor=$2 4775shift; shift 4776# Remember, the first character of IFS is used to create $*, 4777# except with old shells: 4778host_os=$* 4779IFS=$ac_save_IFS 4780case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4781 4782 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4784$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4785if ${ac_cv_path_SED+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4789 for ac_i in 1 2 3 4 5 6 7; do 4790 ac_script="$ac_script$as_nl$ac_script" 4791 done 4792 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4793 { ac_script=; unset ac_script;} 4794 if test -z "$SED"; then 4795 ac_path_SED_found=false 4796 # Loop through the user's path and test for each of PROGNAME-LIST 4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_prog in sed gsed; do 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4805 as_fn_executable_p "$ac_path_SED" || continue 4806# Check for GNU ac_path_SED and select it if it is found. 4807 # Check for GNU $ac_path_SED 4808case `"$ac_path_SED" --version 2>&1` in 4809*GNU*) 4810 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4811*) 4812 ac_count=0 4813 $as_echo_n 0123456789 >"conftest.in" 4814 while : 4815 do 4816 cat "conftest.in" "conftest.in" >"conftest.tmp" 4817 mv "conftest.tmp" "conftest.in" 4818 cp "conftest.in" "conftest.nl" 4819 $as_echo '' >> "conftest.nl" 4820 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4822 as_fn_arith $ac_count + 1 && ac_count=$as_val 4823 if test $ac_count -gt ${ac_path_SED_max-0}; then 4824 # Best one so far, save it but keep looking for a better one 4825 ac_cv_path_SED="$ac_path_SED" 4826 ac_path_SED_max=$ac_count 4827 fi 4828 # 10*(2^10) chars as input seems more than enough 4829 test $ac_count -gt 10 && break 4830 done 4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4832esac 4833 4834 $ac_path_SED_found && break 3 4835 done 4836 done 4837 done 4838IFS=$as_save_IFS 4839 if test -z "$ac_cv_path_SED"; then 4840 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4841 fi 4842else 4843 ac_cv_path_SED=$SED 4844fi 4845 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4848$as_echo "$ac_cv_path_SED" >&6; } 4849 SED="$ac_cv_path_SED" 4850 rm -f conftest.sed 4851 4852 4853 4854 4855 4856 4857# Check whether --enable-selective-werror was given. 4858if test "${enable_selective_werror+set}" = set; then : 4859 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4860else 4861 SELECTIVE_WERROR=yes 4862fi 4863 4864 4865 4866 4867 4868# -v is too short to test reliably with XORG_TESTSET_CFLAG 4869if test "x$SUNCC" = "xyes"; then 4870 BASE_CFLAGS="-v" 4871else 4872 BASE_CFLAGS="" 4873fi 4874 4875# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889xorg_testset_save_CFLAGS="$CFLAGS" 4890 4891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900int i; 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO"; then : 4903 xorg_cv_cc_flag_unknown_warning_option=yes 4904else 4905 xorg_cv_cc_flag_unknown_warning_option=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913fi 4914 4915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4918 fi 4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926/* end confdefs.h. */ 4927int i; 4928_ACEOF 4929if ac_fn_c_try_compile "$LINENO"; then : 4930 xorg_cv_cc_flag_unused_command_line_argument=yes 4931else 4932 xorg_cv_cc_flag_unused_command_line_argument=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4939 CFLAGS="$xorg_testset_save_CFLAGS" 4940fi 4941 4942found="no" 4943 4944 if test $found = "no" ; then 4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4951 fi 4952 4953 CFLAGS="$CFLAGS -Wall" 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4956$as_echo_n "checking if $CC supports -Wall... " >&6; } 4957 cacheid=xorg_cv_cc_flag__Wall 4958 if eval \${$cacheid+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963int i; 4964int 4965main () 4966{ 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_link "$LINENO"; then : 4973 eval $cacheid=yes 4974else 4975 eval $cacheid=no 4976fi 4977rm -f core conftest.err conftest.$ac_objext \ 4978 conftest$ac_exeext conftest.$ac_ext 4979fi 4980 4981 4982 CFLAGS="$xorg_testset_save_CFLAGS" 4983 4984 eval supported=\$$cacheid 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4986$as_echo "$supported" >&6; } 4987 if test "$supported" = "yes" ; then 4988 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4989 found="yes" 4990 fi 4991 fi 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007xorg_testset_save_CFLAGS="$CFLAGS" 5008 5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018int i; 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 xorg_cv_cc_flag_unknown_warning_option=yes 5022else 5023 xorg_cv_cc_flag_unknown_warning_option=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046_ACEOF 5047if ac_fn_c_try_compile "$LINENO"; then : 5048 xorg_cv_cc_flag_unused_command_line_argument=yes 5049else 5050 xorg_cv_cc_flag_unused_command_line_argument=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060found="no" 5061 5062 if test $found = "no" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 5067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 fi 5070 5071 CFLAGS="$CFLAGS -Wpointer-arith" 5072 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5074$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5075 cacheid=xorg_cv_cc_flag__Wpointer_arith 5076 if eval \${$cacheid+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_c_try_link "$LINENO"; then : 5091 eval $cacheid=yes 5092else 5093 eval $cacheid=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098 5099 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101 5102 eval supported=\$$cacheid 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5104$as_echo "$supported" >&6; } 5105 if test "$supported" = "yes" ; then 5106 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5107 found="yes" 5108 fi 5109 fi 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO"; then : 5139 xorg_cv_cc_flag_unknown_warning_option=yes 5140else 5141 xorg_cv_cc_flag_unknown_warning_option=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 xorg_cv_cc_flag_unused_command_line_argument=yes 5167else 5168 xorg_cv_cc_flag_unused_command_line_argument=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176fi 5177 5178found="no" 5179 5180 if test $found = "no" ; then 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 5185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 fi 5188 5189 CFLAGS="$CFLAGS -Wmissing-declarations" 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5192$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5193 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5194 if eval \${$cacheid+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO"; then : 5209 eval $cacheid=yes 5210else 5211 eval $cacheid=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215fi 5216 5217 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219 5220 eval supported=\$$cacheid 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5222$as_echo "$supported" >&6; } 5223 if test "$supported" = "yes" ; then 5224 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5225 found="yes" 5226 fi 5227 fi 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243xorg_testset_save_CFLAGS="$CFLAGS" 5244 5245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255_ACEOF 5256if ac_fn_c_try_compile "$LINENO"; then : 5257 xorg_cv_cc_flag_unknown_warning_option=yes 5258else 5259 xorg_cv_cc_flag_unknown_warning_option=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267fi 5268 5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 fi 5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281int i; 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 xorg_cv_cc_flag_unused_command_line_argument=yes 5285else 5286 xorg_cv_cc_flag_unused_command_line_argument=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5293 CFLAGS="$xorg_testset_save_CFLAGS" 5294fi 5295 5296found="no" 5297 5298 if test $found = "no" ; then 5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 5303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5305 fi 5306 5307 CFLAGS="$CFLAGS -Wformat=2" 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5310$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5311 cacheid=xorg_cv_cc_flag__Wformat_2 5312 if eval \${$cacheid+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318int 5319main () 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326if ac_fn_c_try_link "$LINENO"; then : 5327 eval $cacheid=yes 5328else 5329 eval $cacheid=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext \ 5332 conftest$ac_exeext conftest.$ac_ext 5333fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340$as_echo "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5343 found="yes" 5344 fi 5345 fi 5346 5347 if test $found = "no" ; then 5348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5350 fi 5351 5352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5354 fi 5355 5356 CFLAGS="$CFLAGS -Wformat" 5357 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5359$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5360 cacheid=xorg_cv_cc_flag__Wformat 5361 if eval \${$cacheid+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366int i; 5367int 5368main () 5369{ 5370 5371 ; 5372 return 0; 5373} 5374_ACEOF 5375if ac_fn_c_try_link "$LINENO"; then : 5376 eval $cacheid=yes 5377else 5378 eval $cacheid=no 5379fi 5380rm -f core conftest.err conftest.$ac_objext \ 5381 conftest$ac_exeext conftest.$ac_ext 5382fi 5383 5384 5385 CFLAGS="$xorg_testset_save_CFLAGS" 5386 5387 eval supported=\$$cacheid 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5389$as_echo "$supported" >&6; } 5390 if test "$supported" = "yes" ; then 5391 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5392 found="yes" 5393 fi 5394 fi 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412xorg_testset_save_CFLAGS="$CFLAGS" 5413 5414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 xorg_cv_cc_flag_unknown_warning_option=yes 5427else 5428 xorg_cv_cc_flag_unknown_warning_option=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5435 CFLAGS="$xorg_testset_save_CFLAGS" 5436fi 5437 5438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 fi 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450int i; 5451_ACEOF 5452if ac_fn_c_try_compile "$LINENO"; then : 5453 xorg_cv_cc_flag_unused_command_line_argument=yes 5454else 5455 xorg_cv_cc_flag_unused_command_line_argument=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463fi 5464 5465found="no" 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -Wstrict-prototypes" 5477 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5479$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5480 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5481 if eval \${$cacheid+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_link "$LINENO"; then : 5496 eval $cacheid=yes 5497else 5498 eval $cacheid=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext \ 5501 conftest$ac_exeext conftest.$ac_ext 5502fi 5503 5504 5505 CFLAGS="$xorg_testset_save_CFLAGS" 5506 5507 eval supported=\$$cacheid 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5509$as_echo "$supported" >&6; } 5510 if test "$supported" = "yes" ; then 5511 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5512 found="yes" 5513 fi 5514 fi 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530xorg_testset_save_CFLAGS="$CFLAGS" 5531 5532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541int i; 5542_ACEOF 5543if ac_fn_c_try_compile "$LINENO"; then : 5544 xorg_cv_cc_flag_unknown_warning_option=yes 5545else 5546 xorg_cv_cc_flag_unknown_warning_option=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549fi 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567/* end confdefs.h. */ 5568int i; 5569_ACEOF 5570if ac_fn_c_try_compile "$LINENO"; then : 5571 xorg_cv_cc_flag_unused_command_line_argument=yes 5572else 5573 xorg_cv_cc_flag_unused_command_line_argument=no 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581fi 5582 5583found="no" 5584 5585 if test $found = "no" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5592 fi 5593 5594 CFLAGS="$CFLAGS -Wmissing-prototypes" 5595 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5597$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5598 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5599 if eval \${$cacheid+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604int i; 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_link "$LINENO"; then : 5614 eval $cacheid=yes 5615else 5616 eval $cacheid=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext \ 5619 conftest$ac_exeext conftest.$ac_ext 5620fi 5621 5622 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 5625 eval supported=\$$cacheid 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5627$as_echo "$supported" >&6; } 5628 if test "$supported" = "yes" ; then 5629 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5630 found="yes" 5631 fi 5632 fi 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648xorg_testset_save_CFLAGS="$CFLAGS" 5649 5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659int i; 5660_ACEOF 5661if ac_fn_c_try_compile "$LINENO"; then : 5662 xorg_cv_cc_flag_unknown_warning_option=yes 5663else 5664 xorg_cv_cc_flag_unknown_warning_option=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5667fi 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672fi 5673 5674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5677 fi 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO"; then : 5689 xorg_cv_cc_flag_unused_command_line_argument=yes 5690else 5691 xorg_cv_cc_flag_unused_command_line_argument=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5694fi 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699fi 5700 5701found="no" 5702 5703 if test $found = "no" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5710 fi 5711 5712 CFLAGS="$CFLAGS -Wnested-externs" 5713 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5715$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5716 cacheid=xorg_cv_cc_flag__Wnested_externs 5717 if eval \${$cacheid+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723int 5724main () 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO"; then : 5732 eval $cacheid=yes 5733else 5734 eval $cacheid=no 5735fi 5736rm -f core conftest.err conftest.$ac_objext \ 5737 conftest$ac_exeext conftest.$ac_ext 5738fi 5739 5740 5741 CFLAGS="$xorg_testset_save_CFLAGS" 5742 5743 eval supported=\$$cacheid 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5745$as_echo "$supported" >&6; } 5746 if test "$supported" = "yes" ; then 5747 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5748 found="yes" 5749 fi 5750 fi 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766xorg_testset_save_CFLAGS="$CFLAGS" 5767 5768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777int i; 5778_ACEOF 5779if ac_fn_c_try_compile "$LINENO"; then : 5780 xorg_cv_cc_flag_unknown_warning_option=yes 5781else 5782 xorg_cv_cc_flag_unknown_warning_option=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5785fi 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790fi 5791 5792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5795 fi 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804int i; 5805_ACEOF 5806if ac_fn_c_try_compile "$LINENO"; then : 5807 xorg_cv_cc_flag_unused_command_line_argument=yes 5808else 5809 xorg_cv_cc_flag_unused_command_line_argument=no 5810fi 5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812fi 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5816 CFLAGS="$xorg_testset_save_CFLAGS" 5817fi 5818 5819found="no" 5820 5821 if test $found = "no" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5828 fi 5829 5830 CFLAGS="$CFLAGS -Wbad-function-cast" 5831 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5833$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5834 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5835 if eval \${$cacheid+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5839/* end confdefs.h. */ 5840int i; 5841int 5842main () 5843{ 5844 5845 ; 5846 return 0; 5847} 5848_ACEOF 5849if ac_fn_c_try_link "$LINENO"; then : 5850 eval $cacheid=yes 5851else 5852 eval $cacheid=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext \ 5855 conftest$ac_exeext conftest.$ac_ext 5856fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863$as_echo "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5894/* end confdefs.h. */ 5895int i; 5896_ACEOF 5897if ac_fn_c_try_compile "$LINENO"; then : 5898 xorg_cv_cc_flag_unknown_warning_option=yes 5899else 5900 xorg_cv_cc_flag_unknown_warning_option=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5903fi 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908fi 5909 5910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5913 fi 5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5921/* end confdefs.h. */ 5922int i; 5923_ACEOF 5924if ac_fn_c_try_compile "$LINENO"; then : 5925 xorg_cv_cc_flag_unused_command_line_argument=yes 5926else 5927 xorg_cv_cc_flag_unused_command_line_argument=no 5928fi 5929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5930fi 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5934 CFLAGS="$xorg_testset_save_CFLAGS" 5935fi 5936 5937found="no" 5938 5939 if test $found = "no" ; then 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 fi 5943 5944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5946 fi 5947 5948 CFLAGS="$CFLAGS -Wold-style-definition" 5949 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5951$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5952 cacheid=xorg_cv_cc_flag__Wold_style_definition 5953 if eval \${$cacheid+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959int 5960main () 5961{ 5962 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967if ac_fn_c_try_link "$LINENO"; then : 5968 eval $cacheid=yes 5969else 5970 eval $cacheid=no 5971fi 5972rm -f core conftest.err conftest.$ac_objext \ 5973 conftest$ac_exeext conftest.$ac_ext 5974fi 5975 5976 5977 CFLAGS="$xorg_testset_save_CFLAGS" 5978 5979 eval supported=\$$cacheid 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5981$as_echo "$supported" >&6; } 5982 if test "$supported" = "yes" ; then 5983 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5984 found="yes" 5985 fi 5986 fi 5987 5988 if test $found = "no" ; then 5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 fi 5992 5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995 fi 5996 5997 CFLAGS="$CFLAGS -fd" 5998 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6000$as_echo_n "checking if $CC supports -fd... " >&6; } 6001 cacheid=xorg_cv_cc_flag__fd 6002 if eval \${$cacheid+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008int 6009main () 6010{ 6011 6012 ; 6013 return 0; 6014} 6015_ACEOF 6016if ac_fn_c_try_link "$LINENO"; then : 6017 eval $cacheid=yes 6018else 6019 eval $cacheid=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext \ 6022 conftest$ac_exeext conftest.$ac_ext 6023fi 6024 6025 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027 6028 eval supported=\$$cacheid 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6030$as_echo "$supported" >&6; } 6031 if test "$supported" = "yes" ; then 6032 BASE_CFLAGS="$BASE_CFLAGS -fd" 6033 found="yes" 6034 fi 6035 fi 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051xorg_testset_save_CFLAGS="$CFLAGS" 6052 6053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO"; then : 6065 xorg_cv_cc_flag_unknown_warning_option=yes 6066else 6067 xorg_cv_cc_flag_unknown_warning_option=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6070fi 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075fi 6076 6077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO"; then : 6092 xorg_cv_cc_flag_unused_command_line_argument=yes 6093else 6094 xorg_cv_cc_flag_unused_command_line_argument=no 6095fi 6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6097fi 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6101 CFLAGS="$xorg_testset_save_CFLAGS" 6102fi 6103 6104found="no" 6105 6106 if test $found = "no" ; then 6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6109 fi 6110 6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6113 fi 6114 6115 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6116 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6118$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6119 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6120 if eval \${$cacheid+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125int i; 6126int 6127main () 6128{ 6129 6130 ; 6131 return 0; 6132} 6133_ACEOF 6134if ac_fn_c_try_link "$LINENO"; then : 6135 eval $cacheid=yes 6136else 6137 eval $cacheid=no 6138fi 6139rm -f core conftest.err conftest.$ac_objext \ 6140 conftest$ac_exeext conftest.$ac_ext 6141fi 6142 6143 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 6146 eval supported=\$$cacheid 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6148$as_echo "$supported" >&6; } 6149 if test "$supported" = "yes" ; then 6150 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6151 found="yes" 6152 fi 6153 fi 6154 6155 6156 6157 6158 6159# This chunk adds additional warnings that could catch undesired effects. 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173xorg_testset_save_CFLAGS="$CFLAGS" 6174 6175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int i; 6185_ACEOF 6186if ac_fn_c_try_compile "$LINENO"; then : 6187 xorg_cv_cc_flag_unknown_warning_option=yes 6188else 6189 xorg_cv_cc_flag_unknown_warning_option=no 6190fi 6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6192fi 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6196 CFLAGS="$xorg_testset_save_CFLAGS" 6197fi 6198 6199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6202 fi 6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212_ACEOF 6213if ac_fn_c_try_compile "$LINENO"; then : 6214 xorg_cv_cc_flag_unused_command_line_argument=yes 6215else 6216 xorg_cv_cc_flag_unused_command_line_argument=no 6217fi 6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6219fi 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224fi 6225 6226found="no" 6227 6228 if test $found = "no" ; then 6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 fi 6232 6233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6235 fi 6236 6237 CFLAGS="$CFLAGS -Wunused" 6238 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6240$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6241 cacheid=xorg_cv_cc_flag__Wunused 6242 if eval \${$cacheid+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248int 6249main () 6250{ 6251 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256if ac_fn_c_try_link "$LINENO"; then : 6257 eval $cacheid=yes 6258else 6259 eval $cacheid=no 6260fi 6261rm -f core conftest.err conftest.$ac_objext \ 6262 conftest$ac_exeext conftest.$ac_ext 6263fi 6264 6265 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267 6268 eval supported=\$$cacheid 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6270$as_echo "$supported" >&6; } 6271 if test "$supported" = "yes" ; then 6272 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6273 found="yes" 6274 fi 6275 fi 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291xorg_testset_save_CFLAGS="$CFLAGS" 6292 6293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301/* end confdefs.h. */ 6302int i; 6303_ACEOF 6304if ac_fn_c_try_compile "$LINENO"; then : 6305 xorg_cv_cc_flag_unknown_warning_option=yes 6306else 6307 xorg_cv_cc_flag_unknown_warning_option=no 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6314 CFLAGS="$xorg_testset_save_CFLAGS" 6315fi 6316 6317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329int i; 6330_ACEOF 6331if ac_fn_c_try_compile "$LINENO"; then : 6332 xorg_cv_cc_flag_unused_command_line_argument=yes 6333else 6334 xorg_cv_cc_flag_unused_command_line_argument=no 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6341 CFLAGS="$xorg_testset_save_CFLAGS" 6342fi 6343 6344found="no" 6345 6346 if test $found = "no" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 6351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6353 fi 6354 6355 CFLAGS="$CFLAGS -Wuninitialized" 6356 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6358$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6359 cacheid=xorg_cv_cc_flag__Wuninitialized 6360 if eval \${$cacheid+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366int 6367main () 6368{ 6369 6370 ; 6371 return 0; 6372} 6373_ACEOF 6374if ac_fn_c_try_link "$LINENO"; then : 6375 eval $cacheid=yes 6376else 6377 eval $cacheid=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext \ 6380 conftest$ac_exeext conftest.$ac_ext 6381fi 6382 6383 6384 CFLAGS="$xorg_testset_save_CFLAGS" 6385 6386 eval supported=\$$cacheid 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6388$as_echo "$supported" >&6; } 6389 if test "$supported" = "yes" ; then 6390 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6391 found="yes" 6392 fi 6393 fi 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409xorg_testset_save_CFLAGS="$CFLAGS" 6410 6411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420int i; 6421_ACEOF 6422if ac_fn_c_try_compile "$LINENO"; then : 6423 xorg_cv_cc_flag_unknown_warning_option=yes 6424else 6425 xorg_cv_cc_flag_unknown_warning_option=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6428fi 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6432 CFLAGS="$xorg_testset_save_CFLAGS" 6433fi 6434 6435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6438 fi 6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448_ACEOF 6449if ac_fn_c_try_compile "$LINENO"; then : 6450 xorg_cv_cc_flag_unused_command_line_argument=yes 6451else 6452 xorg_cv_cc_flag_unused_command_line_argument=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455fi 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6459 CFLAGS="$xorg_testset_save_CFLAGS" 6460fi 6461 6462found="no" 6463 6464 if test $found = "no" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6471 fi 6472 6473 CFLAGS="$CFLAGS -Wshadow" 6474 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6476$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6477 cacheid=xorg_cv_cc_flag__Wshadow 6478 if eval \${$cacheid+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484int 6485main () 6486{ 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492if ac_fn_c_try_link "$LINENO"; then : 6493 eval $cacheid=yes 6494else 6495 eval $cacheid=no 6496fi 6497rm -f core conftest.err conftest.$ac_objext \ 6498 conftest$ac_exeext conftest.$ac_ext 6499fi 6500 6501 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503 6504 eval supported=\$$cacheid 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6506$as_echo "$supported" >&6; } 6507 if test "$supported" = "yes" ; then 6508 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6509 found="yes" 6510 fi 6511 fi 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527xorg_testset_save_CFLAGS="$CFLAGS" 6528 6529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6534 $as_echo_n "(cached) " >&6 6535else 6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538int i; 6539_ACEOF 6540if ac_fn_c_try_compile "$LINENO"; then : 6541 xorg_cv_cc_flag_unknown_warning_option=yes 6542else 6543 xorg_cv_cc_flag_unknown_warning_option=no 6544fi 6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6550 CFLAGS="$xorg_testset_save_CFLAGS" 6551fi 6552 6553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6556 fi 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6564/* end confdefs.h. */ 6565int i; 6566_ACEOF 6567if ac_fn_c_try_compile "$LINENO"; then : 6568 xorg_cv_cc_flag_unused_command_line_argument=yes 6569else 6570 xorg_cv_cc_flag_unused_command_line_argument=no 6571fi 6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6573fi 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6577 CFLAGS="$xorg_testset_save_CFLAGS" 6578fi 6579 6580found="no" 6581 6582 if test $found = "no" ; then 6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 fi 6586 6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6589 fi 6590 6591 CFLAGS="$CFLAGS -Wmissing-noreturn" 6592 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6594$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6595 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6596 if eval \${$cacheid+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602int 6603main () 6604{ 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610if ac_fn_c_try_link "$LINENO"; then : 6611 eval $cacheid=yes 6612else 6613 eval $cacheid=no 6614fi 6615rm -f core conftest.err conftest.$ac_objext \ 6616 conftest$ac_exeext conftest.$ac_ext 6617fi 6618 6619 6620 CFLAGS="$xorg_testset_save_CFLAGS" 6621 6622 eval supported=\$$cacheid 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6624$as_echo "$supported" >&6; } 6625 if test "$supported" = "yes" ; then 6626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6627 found="yes" 6628 fi 6629 fi 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645xorg_testset_save_CFLAGS="$CFLAGS" 6646 6647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6652 $as_echo_n "(cached) " >&6 6653else 6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656int i; 6657_ACEOF 6658if ac_fn_c_try_compile "$LINENO"; then : 6659 xorg_cv_cc_flag_unknown_warning_option=yes 6660else 6661 xorg_cv_cc_flag_unknown_warning_option=no 6662fi 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6668 CFLAGS="$xorg_testset_save_CFLAGS" 6669fi 6670 6671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6674 fi 6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684_ACEOF 6685if ac_fn_c_try_compile "$LINENO"; then : 6686 xorg_cv_cc_flag_unused_command_line_argument=yes 6687else 6688 xorg_cv_cc_flag_unused_command_line_argument=no 6689fi 6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6695 CFLAGS="$xorg_testset_save_CFLAGS" 6696fi 6697 6698found="no" 6699 6700 if test $found = "no" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6707 fi 6708 6709 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6710 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6712$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6713 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6714 if eval \${$cacheid+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719int i; 6720int 6721main () 6722{ 6723 6724 ; 6725 return 0; 6726} 6727_ACEOF 6728if ac_fn_c_try_link "$LINENO"; then : 6729 eval $cacheid=yes 6730else 6731 eval $cacheid=no 6732fi 6733rm -f core conftest.err conftest.$ac_objext \ 6734 conftest$ac_exeext conftest.$ac_ext 6735fi 6736 6737 6738 CFLAGS="$xorg_testset_save_CFLAGS" 6739 6740 eval supported=\$$cacheid 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6742$as_echo "$supported" >&6; } 6743 if test "$supported" = "yes" ; then 6744 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6745 found="yes" 6746 fi 6747 fi 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763xorg_testset_save_CFLAGS="$CFLAGS" 6764 6765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774int i; 6775_ACEOF 6776if ac_fn_c_try_compile "$LINENO"; then : 6777 xorg_cv_cc_flag_unknown_warning_option=yes 6778else 6779 xorg_cv_cc_flag_unknown_warning_option=no 6780fi 6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6782fi 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6786 CFLAGS="$xorg_testset_save_CFLAGS" 6787fi 6788 6789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6792 fi 6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801int i; 6802_ACEOF 6803if ac_fn_c_try_compile "$LINENO"; then : 6804 xorg_cv_cc_flag_unused_command_line_argument=yes 6805else 6806 xorg_cv_cc_flag_unused_command_line_argument=no 6807fi 6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6809fi 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6813 CFLAGS="$xorg_testset_save_CFLAGS" 6814fi 6815 6816found="no" 6817 6818 if test $found = "no" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6825 fi 6826 6827 CFLAGS="$CFLAGS -Wredundant-decls" 6828 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6830$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6831 cacheid=xorg_cv_cc_flag__Wredundant_decls 6832 if eval \${$cacheid+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837int i; 6838int 6839main () 6840{ 6841 6842 ; 6843 return 0; 6844} 6845_ACEOF 6846if ac_fn_c_try_link "$LINENO"; then : 6847 eval $cacheid=yes 6848else 6849 eval $cacheid=no 6850fi 6851rm -f core conftest.err conftest.$ac_objext \ 6852 conftest$ac_exeext conftest.$ac_ext 6853fi 6854 6855 6856 CFLAGS="$xorg_testset_save_CFLAGS" 6857 6858 eval supported=\$$cacheid 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6860$as_echo "$supported" >&6; } 6861 if test "$supported" = "yes" ; then 6862 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6863 found="yes" 6864 fi 6865 fi 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881xorg_testset_save_CFLAGS="$CFLAGS" 6882 6883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891/* end confdefs.h. */ 6892int i; 6893_ACEOF 6894if ac_fn_c_try_compile "$LINENO"; then : 6895 xorg_cv_cc_flag_unknown_warning_option=yes 6896else 6897 xorg_cv_cc_flag_unknown_warning_option=no 6898fi 6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6900fi 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6904 CFLAGS="$xorg_testset_save_CFLAGS" 6905fi 6906 6907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6910 fi 6911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920_ACEOF 6921if ac_fn_c_try_compile "$LINENO"; then : 6922 xorg_cv_cc_flag_unused_command_line_argument=yes 6923else 6924 xorg_cv_cc_flag_unused_command_line_argument=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6927fi 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6931 CFLAGS="$xorg_testset_save_CFLAGS" 6932fi 6933 6934found="no" 6935 6936 if test $found = "no" ; then 6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 6941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943 fi 6944 6945 CFLAGS="$CFLAGS -Wlogical-op" 6946 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6948$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6949 cacheid=xorg_cv_cc_flag__Wlogical_op 6950 if eval \${$cacheid+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956int 6957main () 6958{ 6959 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964if ac_fn_c_try_link "$LINENO"; then : 6965 eval $cacheid=yes 6966else 6967 eval $cacheid=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext \ 6970 conftest$ac_exeext conftest.$ac_ext 6971fi 6972 6973 6974 CFLAGS="$xorg_testset_save_CFLAGS" 6975 6976 eval supported=\$$cacheid 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6978$as_echo "$supported" >&6; } 6979 if test "$supported" = "yes" ; then 6980 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6981 found="yes" 6982 fi 6983 fi 6984 6985 6986 6987# These are currently disabled because they are noisy. They will be enabled 6988# in the future once the codebase is sufficiently modernized to silence 6989# them. For now, I don't want them to drown out the other warnings. 6990# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6991# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6992# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6993 6994# Turn some warnings into errors, so we don't accidently get successful builds 6995# when there are problems that should be fixed. 6996 6997if test "x$SELECTIVE_WERROR" = "xyes" ; then 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011xorg_testset_save_CFLAGS="$CFLAGS" 7012 7013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022int i; 7023_ACEOF 7024if ac_fn_c_try_compile "$LINENO"; then : 7025 xorg_cv_cc_flag_unknown_warning_option=yes 7026else 7027 xorg_cv_cc_flag_unknown_warning_option=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7030fi 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7034 CFLAGS="$xorg_testset_save_CFLAGS" 7035fi 7036 7037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7040 fi 7041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048/* end confdefs.h. */ 7049int i; 7050_ACEOF 7051if ac_fn_c_try_compile "$LINENO"; then : 7052 xorg_cv_cc_flag_unused_command_line_argument=yes 7053else 7054 xorg_cv_cc_flag_unused_command_line_argument=no 7055fi 7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7057fi 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7061 CFLAGS="$xorg_testset_save_CFLAGS" 7062fi 7063 7064found="no" 7065 7066 if test $found = "no" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 7071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7073 fi 7074 7075 CFLAGS="$CFLAGS -Werror=implicit" 7076 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7078$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7079 cacheid=xorg_cv_cc_flag__Werror_implicit 7080 if eval \${$cacheid+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085int i; 7086int 7087main () 7088{ 7089 7090 ; 7091 return 0; 7092} 7093_ACEOF 7094if ac_fn_c_try_link "$LINENO"; then : 7095 eval $cacheid=yes 7096else 7097 eval $cacheid=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext \ 7100 conftest$ac_exeext conftest.$ac_ext 7101fi 7102 7103 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105 7106 eval supported=\$$cacheid 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7108$as_echo "$supported" >&6; } 7109 if test "$supported" = "yes" ; then 7110 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7111 found="yes" 7112 fi 7113 fi 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7125 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7127$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7128 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7129 if eval \${$cacheid+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135int 7136main () 7137{ 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143if ac_fn_c_try_link "$LINENO"; then : 7144 eval $cacheid=yes 7145else 7146 eval $cacheid=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext \ 7149 conftest$ac_exeext conftest.$ac_ext 7150fi 7151 7152 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154 7155 eval supported=\$$cacheid 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7157$as_echo "$supported" >&6; } 7158 if test "$supported" = "yes" ; then 7159 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7160 found="yes" 7161 fi 7162 fi 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178xorg_testset_save_CFLAGS="$CFLAGS" 7179 7180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7188/* end confdefs.h. */ 7189int i; 7190_ACEOF 7191if ac_fn_c_try_compile "$LINENO"; then : 7192 xorg_cv_cc_flag_unknown_warning_option=yes 7193else 7194 xorg_cv_cc_flag_unknown_warning_option=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7197fi 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202fi 7203 7204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7207 fi 7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213else 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216int i; 7217_ACEOF 7218if ac_fn_c_try_compile "$LINENO"; then : 7219 xorg_cv_cc_flag_unused_command_line_argument=yes 7220else 7221 xorg_cv_cc_flag_unused_command_line_argument=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224fi 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229fi 7230 7231found="no" 7232 7233 if test $found = "no" ; then 7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 fi 7237 7238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7240 fi 7241 7242 CFLAGS="$CFLAGS -Werror=nonnull" 7243 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7245$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7246 cacheid=xorg_cv_cc_flag__Werror_nonnull 7247 if eval \${$cacheid+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253int 7254main () 7255{ 7256 7257 ; 7258 return 0; 7259} 7260_ACEOF 7261if ac_fn_c_try_link "$LINENO"; then : 7262 eval $cacheid=yes 7263else 7264 eval $cacheid=no 7265fi 7266rm -f core conftest.err conftest.$ac_objext \ 7267 conftest$ac_exeext conftest.$ac_ext 7268fi 7269 7270 7271 CFLAGS="$xorg_testset_save_CFLAGS" 7272 7273 eval supported=\$$cacheid 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7275$as_echo "$supported" >&6; } 7276 if test "$supported" = "yes" ; then 7277 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7278 found="yes" 7279 fi 7280 fi 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296xorg_testset_save_CFLAGS="$CFLAGS" 7297 7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307int i; 7308_ACEOF 7309if ac_fn_c_try_compile "$LINENO"; then : 7310 xorg_cv_cc_flag_unknown_warning_option=yes 7311else 7312 xorg_cv_cc_flag_unknown_warning_option=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320fi 7321 7322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7325 fi 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335_ACEOF 7336if ac_fn_c_try_compile "$LINENO"; then : 7337 xorg_cv_cc_flag_unused_command_line_argument=yes 7338else 7339 xorg_cv_cc_flag_unused_command_line_argument=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347fi 7348 7349found="no" 7350 7351 if test $found = "no" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7358 fi 7359 7360 CFLAGS="$CFLAGS -Werror=init-self" 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7363$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7364 cacheid=xorg_cv_cc_flag__Werror_init_self 7365 if eval \${$cacheid+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371int 7372main () 7373{ 7374 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379if ac_fn_c_try_link "$LINENO"; then : 7380 eval $cacheid=yes 7381else 7382 eval $cacheid=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext \ 7385 conftest$ac_exeext conftest.$ac_ext 7386fi 7387 7388 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 7391 eval supported=\$$cacheid 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7393$as_echo "$supported" >&6; } 7394 if test "$supported" = "yes" ; then 7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7396 found="yes" 7397 fi 7398 fi 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414xorg_testset_save_CFLAGS="$CFLAGS" 7415 7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425int i; 7426_ACEOF 7427if ac_fn_c_try_compile "$LINENO"; then : 7428 xorg_cv_cc_flag_unknown_warning_option=yes 7429else 7430 xorg_cv_cc_flag_unknown_warning_option=no 7431fi 7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433fi 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7437 CFLAGS="$xorg_testset_save_CFLAGS" 7438fi 7439 7440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443 fi 7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453_ACEOF 7454if ac_fn_c_try_compile "$LINENO"; then : 7455 xorg_cv_cc_flag_unused_command_line_argument=yes 7456else 7457 xorg_cv_cc_flag_unused_command_line_argument=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467found="no" 7468 7469 if test $found = "no" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7476 fi 7477 7478 CFLAGS="$CFLAGS -Werror=main" 7479 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7481$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7482 cacheid=xorg_cv_cc_flag__Werror_main 7483 if eval \${$cacheid+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487/* end confdefs.h. */ 7488int i; 7489int 7490main () 7491{ 7492 7493 ; 7494 return 0; 7495} 7496_ACEOF 7497if ac_fn_c_try_link "$LINENO"; then : 7498 eval $cacheid=yes 7499else 7500 eval $cacheid=no 7501fi 7502rm -f core conftest.err conftest.$ac_objext \ 7503 conftest$ac_exeext conftest.$ac_ext 7504fi 7505 7506 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508 7509 eval supported=\$$cacheid 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7511$as_echo "$supported" >&6; } 7512 if test "$supported" = "yes" ; then 7513 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7514 found="yes" 7515 fi 7516 fi 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532xorg_testset_save_CFLAGS="$CFLAGS" 7533 7534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7539 $as_echo_n "(cached) " >&6 7540else 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543int i; 7544_ACEOF 7545if ac_fn_c_try_compile "$LINENO"; then : 7546 xorg_cv_cc_flag_unknown_warning_option=yes 7547else 7548 xorg_cv_cc_flag_unknown_warning_option=no 7549fi 7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556fi 7557 7558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7561 fi 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570int i; 7571_ACEOF 7572if ac_fn_c_try_compile "$LINENO"; then : 7573 xorg_cv_cc_flag_unused_command_line_argument=yes 7574else 7575 xorg_cv_cc_flag_unused_command_line_argument=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7578fi 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583fi 7584 7585found="no" 7586 7587 if test $found = "no" ; then 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 fi 7591 7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7594 fi 7595 7596 CFLAGS="$CFLAGS -Werror=missing-braces" 7597 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7599$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7600 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7601 if eval \${$cacheid+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606int i; 7607int 7608main () 7609{ 7610 7611 ; 7612 return 0; 7613} 7614_ACEOF 7615if ac_fn_c_try_link "$LINENO"; then : 7616 eval $cacheid=yes 7617else 7618 eval $cacheid=no 7619fi 7620rm -f core conftest.err conftest.$ac_objext \ 7621 conftest$ac_exeext conftest.$ac_ext 7622fi 7623 7624 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626 7627 eval supported=\$$cacheid 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7629$as_echo "$supported" >&6; } 7630 if test "$supported" = "yes" ; then 7631 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7632 found="yes" 7633 fi 7634 fi 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650xorg_testset_save_CFLAGS="$CFLAGS" 7651 7652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO"; then : 7664 xorg_cv_cc_flag_unknown_warning_option=yes 7665else 7666 xorg_cv_cc_flag_unknown_warning_option=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674fi 7675 7676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7679 fi 7680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO"; then : 7691 xorg_cv_cc_flag_unused_command_line_argument=yes 7692else 7693 xorg_cv_cc_flag_unused_command_line_argument=no 7694fi 7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7696fi 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7700 CFLAGS="$xorg_testset_save_CFLAGS" 7701fi 7702 7703found="no" 7704 7705 if test $found = "no" ; then 7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 fi 7709 7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7712 fi 7713 7714 CFLAGS="$CFLAGS -Werror=sequence-point" 7715 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7717$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7718 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7719 if eval \${$cacheid+:} false; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724int i; 7725int 7726main () 7727{ 7728 7729 ; 7730 return 0; 7731} 7732_ACEOF 7733if ac_fn_c_try_link "$LINENO"; then : 7734 eval $cacheid=yes 7735else 7736 eval $cacheid=no 7737fi 7738rm -f core conftest.err conftest.$ac_objext \ 7739 conftest$ac_exeext conftest.$ac_ext 7740fi 7741 7742 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744 7745 eval supported=\$$cacheid 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7747$as_echo "$supported" >&6; } 7748 if test "$supported" = "yes" ; then 7749 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7750 found="yes" 7751 fi 7752 fi 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768xorg_testset_save_CFLAGS="$CFLAGS" 7769 7770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780_ACEOF 7781if ac_fn_c_try_compile "$LINENO"; then : 7782 xorg_cv_cc_flag_unknown_warning_option=yes 7783else 7784 xorg_cv_cc_flag_unknown_warning_option=no 7785fi 7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7787fi 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7791 CFLAGS="$xorg_testset_save_CFLAGS" 7792fi 7793 7794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7797 fi 7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806int i; 7807_ACEOF 7808if ac_fn_c_try_compile "$LINENO"; then : 7809 xorg_cv_cc_flag_unused_command_line_argument=yes 7810else 7811 xorg_cv_cc_flag_unused_command_line_argument=no 7812fi 7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7814fi 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7818 CFLAGS="$xorg_testset_save_CFLAGS" 7819fi 7820 7821found="no" 7822 7823 if test $found = "no" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 7828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7830 fi 7831 7832 CFLAGS="$CFLAGS -Werror=return-type" 7833 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7835$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7836 cacheid=xorg_cv_cc_flag__Werror_return_type 7837 if eval \${$cacheid+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842int i; 7843int 7844main () 7845{ 7846 7847 ; 7848 return 0; 7849} 7850_ACEOF 7851if ac_fn_c_try_link "$LINENO"; then : 7852 eval $cacheid=yes 7853else 7854 eval $cacheid=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext \ 7857 conftest$ac_exeext conftest.$ac_ext 7858fi 7859 7860 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862 7863 eval supported=\$$cacheid 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7865$as_echo "$supported" >&6; } 7866 if test "$supported" = "yes" ; then 7867 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7868 found="yes" 7869 fi 7870 fi 7871 7872 if test $found = "no" ; then 7873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 fi 7876 7877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7879 fi 7880 7881 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7882 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7884$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7885 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7886 if eval \${$cacheid+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892int 7893main () 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900if ac_fn_c_try_link "$LINENO"; then : 7901 eval $cacheid=yes 7902else 7903 eval $cacheid=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext \ 7906 conftest$ac_exeext conftest.$ac_ext 7907fi 7908 7909 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 7912 eval supported=\$$cacheid 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7914$as_echo "$supported" >&6; } 7915 if test "$supported" = "yes" ; then 7916 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7917 found="yes" 7918 fi 7919 fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946int i; 7947_ACEOF 7948if ac_fn_c_try_compile "$LINENO"; then : 7949 xorg_cv_cc_flag_unknown_warning_option=yes 7950else 7951 xorg_cv_cc_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7954fi 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977else 7978 xorg_cv_cc_flag_unused_command_line_argument=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988found="no" 7989 7990 if test $found = "no" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7997 fi 7998 7999 CFLAGS="$CFLAGS -Werror=trigraphs" 8000 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8002$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8003 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8004 if eval \${$cacheid+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010int 8011main () 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO"; then : 8019 eval $cacheid=yes 8020else 8021 eval $cacheid=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext \ 8024 conftest$ac_exeext conftest.$ac_ext 8025fi 8026 8027 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 8030 eval supported=\$$cacheid 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8032$as_echo "$supported" >&6; } 8033 if test "$supported" = "yes" ; then 8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8035 found="yes" 8036 fi 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053xorg_testset_save_CFLAGS="$CFLAGS" 8054 8055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int i; 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO"; then : 8067 xorg_cv_cc_flag_unknown_warning_option=yes 8068else 8069 xorg_cv_cc_flag_unknown_warning_option=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8072fi 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8076 CFLAGS="$xorg_testset_save_CFLAGS" 8077fi 8078 8079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8082 fi 8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO"; then : 8094 xorg_cv_cc_flag_unused_command_line_argument=yes 8095else 8096 xorg_cv_cc_flag_unused_command_line_argument=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104fi 8105 8106found="no" 8107 8108 if test $found = "no" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8115 fi 8116 8117 CFLAGS="$CFLAGS -Werror=array-bounds" 8118 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8120$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8121 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8122 if eval \${$cacheid+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127int i; 8128int 8129main () 8130{ 8131 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 eval $cacheid=yes 8138else 8139 eval $cacheid=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143fi 8144 8145 8146 CFLAGS="$xorg_testset_save_CFLAGS" 8147 8148 eval supported=\$$cacheid 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8150$as_echo "$supported" >&6; } 8151 if test "$supported" = "yes" ; then 8152 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8153 found="yes" 8154 fi 8155 fi 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171xorg_testset_save_CFLAGS="$CFLAGS" 8172 8173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182int i; 8183_ACEOF 8184if ac_fn_c_try_compile "$LINENO"; then : 8185 xorg_cv_cc_flag_unknown_warning_option=yes 8186else 8187 xorg_cv_cc_flag_unknown_warning_option=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8190fi 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8194 CFLAGS="$xorg_testset_save_CFLAGS" 8195fi 8196 8197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8200 fi 8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209int i; 8210_ACEOF 8211if ac_fn_c_try_compile "$LINENO"; then : 8212 xorg_cv_cc_flag_unused_command_line_argument=yes 8213else 8214 xorg_cv_cc_flag_unused_command_line_argument=no 8215fi 8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8221 CFLAGS="$xorg_testset_save_CFLAGS" 8222fi 8223 8224found="no" 8225 8226 if test $found = "no" ; then 8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 fi 8230 8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8233 fi 8234 8235 CFLAGS="$CFLAGS -Werror=write-strings" 8236 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8238$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8239 cacheid=xorg_cv_cc_flag__Werror_write_strings 8240 if eval \${$cacheid+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245int i; 8246int 8247main () 8248{ 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_link "$LINENO"; then : 8255 eval $cacheid=yes 8256else 8257 eval $cacheid=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext \ 8260 conftest$ac_exeext conftest.$ac_ext 8261fi 8262 8263 8264 CFLAGS="$xorg_testset_save_CFLAGS" 8265 8266 eval supported=\$$cacheid 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8268$as_echo "$supported" >&6; } 8269 if test "$supported" = "yes" ; then 8270 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8271 found="yes" 8272 fi 8273 fi 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289xorg_testset_save_CFLAGS="$CFLAGS" 8290 8291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO"; then : 8303 xorg_cv_cc_flag_unknown_warning_option=yes 8304else 8305 xorg_cv_cc_flag_unknown_warning_option=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8308fi 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313fi 8314 8315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8318 fi 8319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8323 $as_echo_n "(cached) " >&6 8324else 8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327int i; 8328_ACEOF 8329if ac_fn_c_try_compile "$LINENO"; then : 8330 xorg_cv_cc_flag_unused_command_line_argument=yes 8331else 8332 xorg_cv_cc_flag_unused_command_line_argument=no 8333fi 8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8335fi 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340fi 8341 8342found="no" 8343 8344 if test $found = "no" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 fi 8352 8353 CFLAGS="$CFLAGS -Werror=address" 8354 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8356$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8357 cacheid=xorg_cv_cc_flag__Werror_address 8358 if eval \${$cacheid+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363int i; 8364int 8365main () 8366{ 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372if ac_fn_c_try_link "$LINENO"; then : 8373 eval $cacheid=yes 8374else 8375 eval $cacheid=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext \ 8378 conftest$ac_exeext conftest.$ac_ext 8379fi 8380 8381 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383 8384 eval supported=\$$cacheid 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8386$as_echo "$supported" >&6; } 8387 if test "$supported" = "yes" ; then 8388 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8389 found="yes" 8390 fi 8391 fi 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407xorg_testset_save_CFLAGS="$CFLAGS" 8408 8409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8414 $as_echo_n "(cached) " >&6 8415else 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418int i; 8419_ACEOF 8420if ac_fn_c_try_compile "$LINENO"; then : 8421 xorg_cv_cc_flag_unknown_warning_option=yes 8422else 8423 xorg_cv_cc_flag_unknown_warning_option=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431fi 8432 8433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8436 fi 8437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8441 $as_echo_n "(cached) " >&6 8442else 8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444/* end confdefs.h. */ 8445int i; 8446_ACEOF 8447if ac_fn_c_try_compile "$LINENO"; then : 8448 xorg_cv_cc_flag_unused_command_line_argument=yes 8449else 8450 xorg_cv_cc_flag_unused_command_line_argument=no 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8453fi 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458fi 8459 8460found="no" 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8472 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8474$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8475 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8476 if eval \${$cacheid+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481int i; 8482int 8483main () 8484{ 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490if ac_fn_c_try_link "$LINENO"; then : 8491 eval $cacheid=yes 8492else 8493 eval $cacheid=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext \ 8496 conftest$ac_exeext conftest.$ac_ext 8497fi 8498 8499 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 8502 eval supported=\$$cacheid 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8504$as_echo "$supported" >&6; } 8505 if test "$supported" = "yes" ; then 8506 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8507 found="yes" 8508 fi 8509 fi 8510 8511 if test $found = "no" ; then 8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 fi 8515 8516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8518 fi 8519 8520 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8521 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8523$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8524 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8525 if eval \${$cacheid+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531int 8532main () 8533{ 8534 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539if ac_fn_c_try_link "$LINENO"; then : 8540 eval $cacheid=yes 8541else 8542 eval $cacheid=no 8543fi 8544rm -f core conftest.err conftest.$ac_objext \ 8545 conftest$ac_exeext conftest.$ac_ext 8546fi 8547 8548 8549 CFLAGS="$xorg_testset_save_CFLAGS" 8550 8551 eval supported=\$$cacheid 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8553$as_echo "$supported" >&6; } 8554 if test "$supported" = "yes" ; then 8555 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8556 found="yes" 8557 fi 8558 fi 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574xorg_testset_save_CFLAGS="$CFLAGS" 8575 8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8581 $as_echo_n "(cached) " >&6 8582else 8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584/* end confdefs.h. */ 8585int i; 8586_ACEOF 8587if ac_fn_c_try_compile "$LINENO"; then : 8588 xorg_cv_cc_flag_unknown_warning_option=yes 8589else 8590 xorg_cv_cc_flag_unknown_warning_option=no 8591fi 8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8593fi 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8597 CFLAGS="$xorg_testset_save_CFLAGS" 8598fi 8599 8600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 fi 8604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO"; then : 8615 xorg_cv_cc_flag_unused_command_line_argument=yes 8616else 8617 xorg_cv_cc_flag_unused_command_line_argument=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627found="no" 8628 8629 if test $found = "no" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 8634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 fi 8637 8638 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8639 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8641$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8642 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8643 if eval \${$cacheid+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649int 8650main () 8651{ 8652 8653 ; 8654 return 0; 8655} 8656_ACEOF 8657if ac_fn_c_try_link "$LINENO"; then : 8658 eval $cacheid=yes 8659else 8660 eval $cacheid=no 8661fi 8662rm -f core conftest.err conftest.$ac_objext \ 8663 conftest$ac_exeext conftest.$ac_ext 8664fi 8665 8666 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668 8669 eval supported=\$$cacheid 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8671$as_echo "$supported" >&6; } 8672 if test "$supported" = "yes" ; then 8673 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8674 found="yes" 8675 fi 8676 fi 8677 8678 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8679else 8680{ $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 8681$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;} 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695xorg_testset_save_CFLAGS="$CFLAGS" 8696 8697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706int i; 8707_ACEOF 8708if ac_fn_c_try_compile "$LINENO"; then : 8709 xorg_cv_cc_flag_unknown_warning_option=yes 8710else 8711 xorg_cv_cc_flag_unknown_warning_option=no 8712fi 8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8714fi 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719fi 8720 8721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8724 fi 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733int i; 8734_ACEOF 8735if ac_fn_c_try_compile "$LINENO"; then : 8736 xorg_cv_cc_flag_unused_command_line_argument=yes 8737else 8738 xorg_cv_cc_flag_unused_command_line_argument=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746fi 8747 8748found="no" 8749 8750 if test $found = "no" ; then 8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8753 fi 8754 8755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8757 fi 8758 8759 CFLAGS="$CFLAGS -Wimplicit" 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8762$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8763 cacheid=xorg_cv_cc_flag__Wimplicit 8764 if eval \${$cacheid+:} false; then : 8765 $as_echo_n "(cached) " >&6 8766else 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770int 8771main () 8772{ 8773 8774 ; 8775 return 0; 8776} 8777_ACEOF 8778if ac_fn_c_try_link "$LINENO"; then : 8779 eval $cacheid=yes 8780else 8781 eval $cacheid=no 8782fi 8783rm -f core conftest.err conftest.$ac_objext \ 8784 conftest$ac_exeext conftest.$ac_ext 8785fi 8786 8787 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789 8790 eval supported=\$$cacheid 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8792$as_echo "$supported" >&6; } 8793 if test "$supported" = "yes" ; then 8794 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8795 found="yes" 8796 fi 8797 fi 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813xorg_testset_save_CFLAGS="$CFLAGS" 8814 8815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8823/* end confdefs.h. */ 8824int i; 8825_ACEOF 8826if ac_fn_c_try_compile "$LINENO"; then : 8827 xorg_cv_cc_flag_unknown_warning_option=yes 8828else 8829 xorg_cv_cc_flag_unknown_warning_option=no 8830fi 8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837fi 8838 8839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8842 fi 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852_ACEOF 8853if ac_fn_c_try_compile "$LINENO"; then : 8854 xorg_cv_cc_flag_unused_command_line_argument=yes 8855else 8856 xorg_cv_cc_flag_unused_command_line_argument=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864fi 8865 8866found="no" 8867 8868 if test $found = "no" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 8873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8875 fi 8876 8877 CFLAGS="$CFLAGS -Wnonnull" 8878 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8880$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8881 cacheid=xorg_cv_cc_flag__Wnonnull 8882 if eval \${$cacheid+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888int 8889main () 8890{ 8891 8892 ; 8893 return 0; 8894} 8895_ACEOF 8896if ac_fn_c_try_link "$LINENO"; then : 8897 eval $cacheid=yes 8898else 8899 eval $cacheid=no 8900fi 8901rm -f core conftest.err conftest.$ac_objext \ 8902 conftest$ac_exeext conftest.$ac_ext 8903fi 8904 8905 8906 CFLAGS="$xorg_testset_save_CFLAGS" 8907 8908 eval supported=\$$cacheid 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8910$as_echo "$supported" >&6; } 8911 if test "$supported" = "yes" ; then 8912 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8913 found="yes" 8914 fi 8915 fi 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931xorg_testset_save_CFLAGS="$CFLAGS" 8932 8933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8938 $as_echo_n "(cached) " >&6 8939else 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int i; 8943_ACEOF 8944if ac_fn_c_try_compile "$LINENO"; then : 8945 xorg_cv_cc_flag_unknown_warning_option=yes 8946else 8947 xorg_cv_cc_flag_unknown_warning_option=no 8948fi 8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8950fi 8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8954 CFLAGS="$xorg_testset_save_CFLAGS" 8955fi 8956 8957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8960 fi 8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969int i; 8970_ACEOF 8971if ac_fn_c_try_compile "$LINENO"; then : 8972 xorg_cv_cc_flag_unused_command_line_argument=yes 8973else 8974 xorg_cv_cc_flag_unused_command_line_argument=no 8975fi 8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982fi 8983 8984found="no" 8985 8986 if test $found = "no" ; then 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 fi 8990 8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8993 fi 8994 8995 CFLAGS="$CFLAGS -Winit-self" 8996 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8998$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8999 cacheid=xorg_cv_cc_flag__Winit_self 9000 if eval \${$cacheid+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006int 9007main () 9008{ 9009 9010 ; 9011 return 0; 9012} 9013_ACEOF 9014if ac_fn_c_try_link "$LINENO"; then : 9015 eval $cacheid=yes 9016else 9017 eval $cacheid=no 9018fi 9019rm -f core conftest.err conftest.$ac_objext \ 9020 conftest$ac_exeext conftest.$ac_ext 9021fi 9022 9023 9024 CFLAGS="$xorg_testset_save_CFLAGS" 9025 9026 eval supported=\$$cacheid 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9028$as_echo "$supported" >&6; } 9029 if test "$supported" = "yes" ; then 9030 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9031 found="yes" 9032 fi 9033 fi 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049xorg_testset_save_CFLAGS="$CFLAGS" 9050 9051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9059/* end confdefs.h. */ 9060int i; 9061_ACEOF 9062if ac_fn_c_try_compile "$LINENO"; then : 9063 xorg_cv_cc_flag_unknown_warning_option=yes 9064else 9065 xorg_cv_cc_flag_unknown_warning_option=no 9066fi 9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9068fi 9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9072 CFLAGS="$xorg_testset_save_CFLAGS" 9073fi 9074 9075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9078 fi 9079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088_ACEOF 9089if ac_fn_c_try_compile "$LINENO"; then : 9090 xorg_cv_cc_flag_unused_command_line_argument=yes 9091else 9092 xorg_cv_cc_flag_unused_command_line_argument=no 9093fi 9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9095fi 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9099 CFLAGS="$xorg_testset_save_CFLAGS" 9100fi 9101 9102found="no" 9103 9104 if test $found = "no" ; then 9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 fi 9108 9109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9111 fi 9112 9113 CFLAGS="$CFLAGS -Wmain" 9114 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9116$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9117 cacheid=xorg_cv_cc_flag__Wmain 9118 if eval \${$cacheid+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122/* end confdefs.h. */ 9123int i; 9124int 9125main () 9126{ 9127 9128 ; 9129 return 0; 9130} 9131_ACEOF 9132if ac_fn_c_try_link "$LINENO"; then : 9133 eval $cacheid=yes 9134else 9135 eval $cacheid=no 9136fi 9137rm -f core conftest.err conftest.$ac_objext \ 9138 conftest$ac_exeext conftest.$ac_ext 9139fi 9140 9141 9142 CFLAGS="$xorg_testset_save_CFLAGS" 9143 9144 eval supported=\$$cacheid 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9146$as_echo "$supported" >&6; } 9147 if test "$supported" = "yes" ; then 9148 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9149 found="yes" 9150 fi 9151 fi 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167xorg_testset_save_CFLAGS="$CFLAGS" 9168 9169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178int i; 9179_ACEOF 9180if ac_fn_c_try_compile "$LINENO"; then : 9181 xorg_cv_cc_flag_unknown_warning_option=yes 9182else 9183 xorg_cv_cc_flag_unknown_warning_option=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9186fi 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9190 CFLAGS="$xorg_testset_save_CFLAGS" 9191fi 9192 9193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 fi 9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206_ACEOF 9207if ac_fn_c_try_compile "$LINENO"; then : 9208 xorg_cv_cc_flag_unused_command_line_argument=yes 9209else 9210 xorg_cv_cc_flag_unused_command_line_argument=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9213fi 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218fi 9219 9220found="no" 9221 9222 if test $found = "no" ; then 9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9225 fi 9226 9227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9229 fi 9230 9231 CFLAGS="$CFLAGS -Wmissing-braces" 9232 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9234$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9235 cacheid=xorg_cv_cc_flag__Wmissing_braces 9236 if eval \${$cacheid+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240/* end confdefs.h. */ 9241int i; 9242int 9243main () 9244{ 9245 9246 ; 9247 return 0; 9248} 9249_ACEOF 9250if ac_fn_c_try_link "$LINENO"; then : 9251 eval $cacheid=yes 9252else 9253 eval $cacheid=no 9254fi 9255rm -f core conftest.err conftest.$ac_objext \ 9256 conftest$ac_exeext conftest.$ac_ext 9257fi 9258 9259 9260 CFLAGS="$xorg_testset_save_CFLAGS" 9261 9262 eval supported=\$$cacheid 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9264$as_echo "$supported" >&6; } 9265 if test "$supported" = "yes" ; then 9266 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9267 found="yes" 9268 fi 9269 fi 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285xorg_testset_save_CFLAGS="$CFLAGS" 9286 9287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9295/* end confdefs.h. */ 9296int i; 9297_ACEOF 9298if ac_fn_c_try_compile "$LINENO"; then : 9299 xorg_cv_cc_flag_unknown_warning_option=yes 9300else 9301 xorg_cv_cc_flag_unknown_warning_option=no 9302fi 9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9304fi 9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9308 CFLAGS="$xorg_testset_save_CFLAGS" 9309fi 9310 9311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9314 fi 9315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320else 9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323int i; 9324_ACEOF 9325if ac_fn_c_try_compile "$LINENO"; then : 9326 xorg_cv_cc_flag_unused_command_line_argument=yes 9327else 9328 xorg_cv_cc_flag_unused_command_line_argument=no 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9331fi 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336fi 9337 9338found="no" 9339 9340 if test $found = "no" ; then 9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 fi 9344 9345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9347 fi 9348 9349 CFLAGS="$CFLAGS -Wsequence-point" 9350 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9352$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9353 cacheid=xorg_cv_cc_flag__Wsequence_point 9354 if eval \${$cacheid+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360int 9361main () 9362{ 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368if ac_fn_c_try_link "$LINENO"; then : 9369 eval $cacheid=yes 9370else 9371 eval $cacheid=no 9372fi 9373rm -f core conftest.err conftest.$ac_objext \ 9374 conftest$ac_exeext conftest.$ac_ext 9375fi 9376 9377 9378 CFLAGS="$xorg_testset_save_CFLAGS" 9379 9380 eval supported=\$$cacheid 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9382$as_echo "$supported" >&6; } 9383 if test "$supported" = "yes" ; then 9384 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9385 found="yes" 9386 fi 9387 fi 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403xorg_testset_save_CFLAGS="$CFLAGS" 9404 9405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414int i; 9415_ACEOF 9416if ac_fn_c_try_compile "$LINENO"; then : 9417 xorg_cv_cc_flag_unknown_warning_option=yes 9418else 9419 xorg_cv_cc_flag_unknown_warning_option=no 9420fi 9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9422fi 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9426 CFLAGS="$xorg_testset_save_CFLAGS" 9427fi 9428 9429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9432 fi 9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442_ACEOF 9443if ac_fn_c_try_compile "$LINENO"; then : 9444 xorg_cv_cc_flag_unused_command_line_argument=yes 9445else 9446 xorg_cv_cc_flag_unused_command_line_argument=no 9447fi 9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9449fi 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9453 CFLAGS="$xorg_testset_save_CFLAGS" 9454fi 9455 9456found="no" 9457 9458 if test $found = "no" ; then 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 fi 9462 9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9465 fi 9466 9467 CFLAGS="$CFLAGS -Wreturn-type" 9468 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9470$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9471 cacheid=xorg_cv_cc_flag__Wreturn_type 9472 if eval \${$cacheid+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478int 9479main () 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 eval $cacheid=yes 9488else 9489 eval $cacheid=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext conftest.$ac_ext 9493fi 9494 9495 9496 CFLAGS="$xorg_testset_save_CFLAGS" 9497 9498 eval supported=\$$cacheid 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9500$as_echo "$supported" >&6; } 9501 if test "$supported" = "yes" ; then 9502 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9503 found="yes" 9504 fi 9505 fi 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521xorg_testset_save_CFLAGS="$CFLAGS" 9522 9523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529else 9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9531/* end confdefs.h. */ 9532int i; 9533_ACEOF 9534if ac_fn_c_try_compile "$LINENO"; then : 9535 xorg_cv_cc_flag_unknown_warning_option=yes 9536else 9537 xorg_cv_cc_flag_unknown_warning_option=no 9538fi 9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9540fi 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9544 CFLAGS="$xorg_testset_save_CFLAGS" 9545fi 9546 9547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9550 fi 9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560_ACEOF 9561if ac_fn_c_try_compile "$LINENO"; then : 9562 xorg_cv_cc_flag_unused_command_line_argument=yes 9563else 9564 xorg_cv_cc_flag_unused_command_line_argument=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9571 CFLAGS="$xorg_testset_save_CFLAGS" 9572fi 9573 9574found="no" 9575 9576 if test $found = "no" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 9581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9583 fi 9584 9585 CFLAGS="$CFLAGS -Wtrigraphs" 9586 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9588$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9589 cacheid=xorg_cv_cc_flag__Wtrigraphs 9590 if eval \${$cacheid+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595int i; 9596int 9597main () 9598{ 9599 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604if ac_fn_c_try_link "$LINENO"; then : 9605 eval $cacheid=yes 9606else 9607 eval $cacheid=no 9608fi 9609rm -f core conftest.err conftest.$ac_objext \ 9610 conftest$ac_exeext conftest.$ac_ext 9611fi 9612 9613 9614 CFLAGS="$xorg_testset_save_CFLAGS" 9615 9616 eval supported=\$$cacheid 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9618$as_echo "$supported" >&6; } 9619 if test "$supported" = "yes" ; then 9620 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9621 found="yes" 9622 fi 9623 fi 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639xorg_testset_save_CFLAGS="$CFLAGS" 9640 9641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647else 9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650int i; 9651_ACEOF 9652if ac_fn_c_try_compile "$LINENO"; then : 9653 xorg_cv_cc_flag_unknown_warning_option=yes 9654else 9655 xorg_cv_cc_flag_unknown_warning_option=no 9656fi 9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9662 CFLAGS="$xorg_testset_save_CFLAGS" 9663fi 9664 9665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9668 fi 9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674else 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677int i; 9678_ACEOF 9679if ac_fn_c_try_compile "$LINENO"; then : 9680 xorg_cv_cc_flag_unused_command_line_argument=yes 9681else 9682 xorg_cv_cc_flag_unused_command_line_argument=no 9683fi 9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9685fi 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690fi 9691 9692found="no" 9693 9694 if test $found = "no" ; then 9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 fi 9698 9699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9701 fi 9702 9703 CFLAGS="$CFLAGS -Warray-bounds" 9704 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9706$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9707 cacheid=xorg_cv_cc_flag__Warray_bounds 9708 if eval \${$cacheid+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714int 9715main () 9716{ 9717 9718 ; 9719 return 0; 9720} 9721_ACEOF 9722if ac_fn_c_try_link "$LINENO"; then : 9723 eval $cacheid=yes 9724else 9725 eval $cacheid=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext \ 9728 conftest$ac_exeext conftest.$ac_ext 9729fi 9730 9731 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 9734 eval supported=\$$cacheid 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9736$as_echo "$supported" >&6; } 9737 if test "$supported" = "yes" ; then 9738 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9739 found="yes" 9740 fi 9741 fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757xorg_testset_save_CFLAGS="$CFLAGS" 9758 9759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9764 $as_echo_n "(cached) " >&6 9765else 9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767/* end confdefs.h. */ 9768int i; 9769_ACEOF 9770if ac_fn_c_try_compile "$LINENO"; then : 9771 xorg_cv_cc_flag_unknown_warning_option=yes 9772else 9773 xorg_cv_cc_flag_unknown_warning_option=no 9774fi 9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9776fi 9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9780 CFLAGS="$xorg_testset_save_CFLAGS" 9781fi 9782 9783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9786 fi 9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796_ACEOF 9797if ac_fn_c_try_compile "$LINENO"; then : 9798 xorg_cv_cc_flag_unused_command_line_argument=yes 9799else 9800 xorg_cv_cc_flag_unused_command_line_argument=no 9801fi 9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9807 CFLAGS="$xorg_testset_save_CFLAGS" 9808fi 9809 9810found="no" 9811 9812 if test $found = "no" ; then 9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 fi 9816 9817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9819 fi 9820 9821 CFLAGS="$CFLAGS -Wwrite-strings" 9822 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9824$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9825 cacheid=xorg_cv_cc_flag__Wwrite_strings 9826 if eval \${$cacheid+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828else 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831int i; 9832int 9833main () 9834{ 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO"; then : 9841 eval $cacheid=yes 9842else 9843 eval $cacheid=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext \ 9846 conftest$ac_exeext conftest.$ac_ext 9847fi 9848 9849 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851 9852 eval supported=\$$cacheid 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9854$as_echo "$supported" >&6; } 9855 if test "$supported" = "yes" ; then 9856 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9857 found="yes" 9858 fi 9859 fi 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875xorg_testset_save_CFLAGS="$CFLAGS" 9876 9877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9882 $as_echo_n "(cached) " >&6 9883else 9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886int i; 9887_ACEOF 9888if ac_fn_c_try_compile "$LINENO"; then : 9889 xorg_cv_cc_flag_unknown_warning_option=yes 9890else 9891 xorg_cv_cc_flag_unknown_warning_option=no 9892fi 9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9894fi 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9898 CFLAGS="$xorg_testset_save_CFLAGS" 9899fi 9900 9901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 fi 9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914_ACEOF 9915if ac_fn_c_try_compile "$LINENO"; then : 9916 xorg_cv_cc_flag_unused_command_line_argument=yes 9917else 9918 xorg_cv_cc_flag_unused_command_line_argument=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928found="no" 9929 9930 if test $found = "no" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9937 fi 9938 9939 CFLAGS="$CFLAGS -Waddress" 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9942$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9943 cacheid=xorg_cv_cc_flag__Waddress 9944 if eval \${$cacheid+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949int i; 9950int 9951main () 9952{ 9953 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958if ac_fn_c_try_link "$LINENO"; then : 9959 eval $cacheid=yes 9960else 9961 eval $cacheid=no 9962fi 9963rm -f core conftest.err conftest.$ac_objext \ 9964 conftest$ac_exeext conftest.$ac_ext 9965fi 9966 9967 9968 CFLAGS="$xorg_testset_save_CFLAGS" 9969 9970 eval supported=\$$cacheid 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9972$as_echo "$supported" >&6; } 9973 if test "$supported" = "yes" ; then 9974 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9975 found="yes" 9976 fi 9977 fi 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993xorg_testset_save_CFLAGS="$CFLAGS" 9994 9995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005_ACEOF 10006if ac_fn_c_try_compile "$LINENO"; then : 10007 xorg_cv_cc_flag_unknown_warning_option=yes 10008else 10009 xorg_cv_cc_flag_unknown_warning_option=no 10010fi 10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10012fi 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10016 CFLAGS="$xorg_testset_save_CFLAGS" 10017fi 10018 10019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 fi 10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031int i; 10032_ACEOF 10033if ac_fn_c_try_compile "$LINENO"; then : 10034 xorg_cv_cc_flag_unused_command_line_argument=yes 10035else 10036 xorg_cv_cc_flag_unused_command_line_argument=no 10037fi 10038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044fi 10045 10046found="no" 10047 10048 if test $found = "no" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 fi 10056 10057 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10058 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10060$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10061 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10062 if eval \${$cacheid+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067int i; 10068int 10069main () 10070{ 10071 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_c_try_link "$LINENO"; then : 10077 eval $cacheid=yes 10078else 10079 eval $cacheid=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083fi 10084 10085 10086 CFLAGS="$xorg_testset_save_CFLAGS" 10087 10088 eval supported=\$$cacheid 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10090$as_echo "$supported" >&6; } 10091 if test "$supported" = "yes" ; then 10092 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10093 found="yes" 10094 fi 10095 fi 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111xorg_testset_save_CFLAGS="$CFLAGS" 10112 10113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119else 10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10121/* end confdefs.h. */ 10122int i; 10123_ACEOF 10124if ac_fn_c_try_compile "$LINENO"; then : 10125 xorg_cv_cc_flag_unknown_warning_option=yes 10126else 10127 xorg_cv_cc_flag_unknown_warning_option=no 10128fi 10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10130fi 10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10134 CFLAGS="$xorg_testset_save_CFLAGS" 10135fi 10136 10137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10140 fi 10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10145 $as_echo_n "(cached) " >&6 10146else 10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10148/* end confdefs.h. */ 10149int i; 10150_ACEOF 10151if ac_fn_c_try_compile "$LINENO"; then : 10152 xorg_cv_cc_flag_unused_command_line_argument=yes 10153else 10154 xorg_cv_cc_flag_unused_command_line_argument=no 10155fi 10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10157fi 10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10161 CFLAGS="$xorg_testset_save_CFLAGS" 10162fi 10163 10164found="no" 10165 10166 if test $found = "no" ; then 10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 fi 10170 10171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10173 fi 10174 10175 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10176 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10178$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10179 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10180 if eval \${$cacheid+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186int 10187main () 10188{ 10189 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194if ac_fn_c_try_link "$LINENO"; then : 10195 eval $cacheid=yes 10196else 10197 eval $cacheid=no 10198fi 10199rm -f core conftest.err conftest.$ac_objext \ 10200 conftest$ac_exeext conftest.$ac_ext 10201fi 10202 10203 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205 10206 eval supported=\$$cacheid 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10208$as_echo "$supported" >&6; } 10209 if test "$supported" = "yes" ; then 10210 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10211 found="yes" 10212 fi 10213 fi 10214 10215 10216fi 10217 10218 10219 10220 10221 10222 10223 10224 CWARNFLAGS="$BASE_CFLAGS" 10225 if test "x$GCC" = xyes ; then 10226 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10227 fi 10228 10229 10230 10231 10232 10233 10234 10235 10236# Check whether --enable-strict-compilation was given. 10237if test "${enable_strict_compilation+set}" = set; then : 10238 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10239else 10240 STRICT_COMPILE=no 10241fi 10242 10243 10244 10245 10246 10247 10248STRICT_CFLAGS="" 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262xorg_testset_save_CFLAGS="$CFLAGS" 10263 10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273int i; 10274_ACEOF 10275if ac_fn_c_try_compile "$LINENO"; then : 10276 xorg_cv_cc_flag_unknown_warning_option=yes 10277else 10278 xorg_cv_cc_flag_unknown_warning_option=no 10279fi 10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10285 CFLAGS="$xorg_testset_save_CFLAGS" 10286fi 10287 10288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10291 fi 10292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297else 10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299/* end confdefs.h. */ 10300int i; 10301_ACEOF 10302if ac_fn_c_try_compile "$LINENO"; then : 10303 xorg_cv_cc_flag_unused_command_line_argument=yes 10304else 10305 xorg_cv_cc_flag_unused_command_line_argument=no 10306fi 10307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10308fi 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10312 CFLAGS="$xorg_testset_save_CFLAGS" 10313fi 10314 10315found="no" 10316 10317 if test $found = "no" ; then 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 fi 10321 10322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10324 fi 10325 10326 CFLAGS="$CFLAGS -pedantic" 10327 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10329$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10330 cacheid=xorg_cv_cc_flag__pedantic 10331 if eval \${$cacheid+:} false; then : 10332 $as_echo_n "(cached) " >&6 10333else 10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10335/* end confdefs.h. */ 10336int i; 10337int 10338main () 10339{ 10340 10341 ; 10342 return 0; 10343} 10344_ACEOF 10345if ac_fn_c_try_link "$LINENO"; then : 10346 eval $cacheid=yes 10347else 10348 eval $cacheid=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext \ 10351 conftest$ac_exeext conftest.$ac_ext 10352fi 10353 10354 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 10357 eval supported=\$$cacheid 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10359$as_echo "$supported" >&6; } 10360 if test "$supported" = "yes" ; then 10361 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10362 found="yes" 10363 fi 10364 fi 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380xorg_testset_save_CFLAGS="$CFLAGS" 10381 10382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10387 $as_echo_n "(cached) " >&6 10388else 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391int i; 10392_ACEOF 10393if ac_fn_c_try_compile "$LINENO"; then : 10394 xorg_cv_cc_flag_unknown_warning_option=yes 10395else 10396 xorg_cv_cc_flag_unknown_warning_option=no 10397fi 10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10399fi 10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10403 CFLAGS="$xorg_testset_save_CFLAGS" 10404fi 10405 10406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10409 fi 10410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415else 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419_ACEOF 10420if ac_fn_c_try_compile "$LINENO"; then : 10421 xorg_cv_cc_flag_unused_command_line_argument=yes 10422else 10423 xorg_cv_cc_flag_unused_command_line_argument=no 10424fi 10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10426fi 10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10430 CFLAGS="$xorg_testset_save_CFLAGS" 10431fi 10432 10433found="no" 10434 10435 if test $found = "no" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 10440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10442 fi 10443 10444 CFLAGS="$CFLAGS -Werror" 10445 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10447$as_echo_n "checking if $CC supports -Werror... " >&6; } 10448 cacheid=xorg_cv_cc_flag__Werror 10449 if eval \${$cacheid+:} false; then : 10450 $as_echo_n "(cached) " >&6 10451else 10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10453/* end confdefs.h. */ 10454int i; 10455int 10456main () 10457{ 10458 10459 ; 10460 return 0; 10461} 10462_ACEOF 10463if ac_fn_c_try_link "$LINENO"; then : 10464 eval $cacheid=yes 10465else 10466 eval $cacheid=no 10467fi 10468rm -f core conftest.err conftest.$ac_objext \ 10469 conftest$ac_exeext conftest.$ac_ext 10470fi 10471 10472 10473 CFLAGS="$xorg_testset_save_CFLAGS" 10474 10475 eval supported=\$$cacheid 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10477$as_echo "$supported" >&6; } 10478 if test "$supported" = "yes" ; then 10479 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10480 found="yes" 10481 fi 10482 fi 10483 10484 if test $found = "no" ; then 10485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10487 fi 10488 10489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10491 fi 10492 10493 CFLAGS="$CFLAGS -errwarn" 10494 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10496$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10497 cacheid=xorg_cv_cc_flag__errwarn 10498 if eval \${$cacheid+:} false; then : 10499 $as_echo_n "(cached) " >&6 10500else 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503int i; 10504int 10505main () 10506{ 10507 10508 ; 10509 return 0; 10510} 10511_ACEOF 10512if ac_fn_c_try_link "$LINENO"; then : 10513 eval $cacheid=yes 10514else 10515 eval $cacheid=no 10516fi 10517rm -f core conftest.err conftest.$ac_objext \ 10518 conftest$ac_exeext conftest.$ac_ext 10519fi 10520 10521 10522 CFLAGS="$xorg_testset_save_CFLAGS" 10523 10524 eval supported=\$$cacheid 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10526$as_echo "$supported" >&6; } 10527 if test "$supported" = "yes" ; then 10528 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10529 found="yes" 10530 fi 10531 fi 10532 10533 10534 10535# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10536# activate it with -Werror, so we add it here explicitly. 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550xorg_testset_save_CFLAGS="$CFLAGS" 10551 10552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561int i; 10562_ACEOF 10563if ac_fn_c_try_compile "$LINENO"; then : 10564 xorg_cv_cc_flag_unknown_warning_option=yes 10565else 10566 xorg_cv_cc_flag_unknown_warning_option=no 10567fi 10568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10569fi 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10573 CFLAGS="$xorg_testset_save_CFLAGS" 10574fi 10575 10576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10579 fi 10580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585else 10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10587/* end confdefs.h. */ 10588int i; 10589_ACEOF 10590if ac_fn_c_try_compile "$LINENO"; then : 10591 xorg_cv_cc_flag_unused_command_line_argument=yes 10592else 10593 xorg_cv_cc_flag_unused_command_line_argument=no 10594fi 10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10596fi 10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10600 CFLAGS="$xorg_testset_save_CFLAGS" 10601fi 10602 10603found="no" 10604 10605 if test $found = "no" ; then 10606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10608 fi 10609 10610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10612 fi 10613 10614 CFLAGS="$CFLAGS -Werror=attributes" 10615 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10617$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10618 cacheid=xorg_cv_cc_flag__Werror_attributes 10619 if eval \${$cacheid+:} false; then : 10620 $as_echo_n "(cached) " >&6 10621else 10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623/* end confdefs.h. */ 10624int i; 10625int 10626main () 10627{ 10628 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633if ac_fn_c_try_link "$LINENO"; then : 10634 eval $cacheid=yes 10635else 10636 eval $cacheid=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext \ 10639 conftest$ac_exeext conftest.$ac_ext 10640fi 10641 10642 10643 CFLAGS="$xorg_testset_save_CFLAGS" 10644 10645 eval supported=\$$cacheid 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10647$as_echo "$supported" >&6; } 10648 if test "$supported" = "yes" ; then 10649 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10650 found="yes" 10651 fi 10652 fi 10653 10654 10655 10656if test "x$STRICT_COMPILE" = "xyes"; then 10657 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10658 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10659fi 10660 10661 10662 10663 10664 10665 10666cat >>confdefs.h <<_ACEOF 10667#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10668_ACEOF 10669 10670 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10671 if test "x$PVM" = "x"; then 10672 PVM="0" 10673 fi 10674 10675cat >>confdefs.h <<_ACEOF 10676#define PACKAGE_VERSION_MINOR $PVM 10677_ACEOF 10678 10679 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10680 if test "x$PVP" = "x"; then 10681 PVP="0" 10682 fi 10683 10684cat >>confdefs.h <<_ACEOF 10685#define PACKAGE_VERSION_PATCHLEVEL $PVP 10686_ACEOF 10687 10688 10689 10690CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10691mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10692|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10693echo 'git directory not found: installing possibly empty changelog.' >&2)" 10694 10695 10696 10697 10698macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10699INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10700mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10701|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10702echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10703 10704 10705 10706 10707 10708 10709if test x$APP_MAN_SUFFIX = x ; then 10710 APP_MAN_SUFFIX=1 10711fi 10712if test x$APP_MAN_DIR = x ; then 10713 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10714fi 10715 10716if test x$LIB_MAN_SUFFIX = x ; then 10717 LIB_MAN_SUFFIX=3 10718fi 10719if test x$LIB_MAN_DIR = x ; then 10720 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10721fi 10722 10723if test x$FILE_MAN_SUFFIX = x ; then 10724 case $host_os in 10725 solaris*) FILE_MAN_SUFFIX=4 ;; 10726 *) FILE_MAN_SUFFIX=5 ;; 10727 esac 10728fi 10729if test x$FILE_MAN_DIR = x ; then 10730 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10731fi 10732 10733if test x$MISC_MAN_SUFFIX = x ; then 10734 case $host_os in 10735 solaris*) MISC_MAN_SUFFIX=5 ;; 10736 *) MISC_MAN_SUFFIX=7 ;; 10737 esac 10738fi 10739if test x$MISC_MAN_DIR = x ; then 10740 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10741fi 10742 10743if test x$DRIVER_MAN_SUFFIX = x ; then 10744 case $host_os in 10745 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10746 *) DRIVER_MAN_SUFFIX=4 ;; 10747 esac 10748fi 10749if test x$DRIVER_MAN_DIR = x ; then 10750 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10751fi 10752 10753if test x$ADMIN_MAN_SUFFIX = x ; then 10754 case $host_os in 10755 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10756 *) ADMIN_MAN_SUFFIX=8 ;; 10757 esac 10758fi 10759if test x$ADMIN_MAN_DIR = x ; then 10760 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10761fi 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777XORG_MAN_PAGE="X Version 11" 10778 10779MAN_SUBSTS="\ 10780 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10781 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10782 -e 's|__xservername__|Xorg|g' \ 10783 -e 's|__xconfigfile__|xorg.conf|g' \ 10784 -e 's|__projectroot__|\$(prefix)|g' \ 10785 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10786 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10787 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10788 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10789 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10790 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10791 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10792 10793 10794 10795# Check whether --enable-silent-rules was given. 10796if test "${enable_silent_rules+set}" = set; then : 10797 enableval=$enable_silent_rules; 10798fi 10799 10800case $enable_silent_rules in # ((( 10801 yes) AM_DEFAULT_VERBOSITY=0;; 10802 no) AM_DEFAULT_VERBOSITY=1;; 10803 *) AM_DEFAULT_VERBOSITY=0;; 10804esac 10805am_make=${MAKE-make} 10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10807$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10808if ${am_cv_make_support_nested_variables+:} false; then : 10809 $as_echo_n "(cached) " >&6 10810else 10811 if $as_echo 'TRUE=$(BAR$(V)) 10812BAR0=false 10813BAR1=true 10814V=1 10815am__doit: 10816 @$(TRUE) 10817.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10818 am_cv_make_support_nested_variables=yes 10819else 10820 am_cv_make_support_nested_variables=no 10821fi 10822fi 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10824$as_echo "$am_cv_make_support_nested_variables" >&6; } 10825if test $am_cv_make_support_nested_variables = yes; then 10826 AM_V='$(V)' 10827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10828else 10829 AM_V=$AM_DEFAULT_VERBOSITY 10830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10831fi 10832AM_BACKSLASH='\' 10833 10834 10835 10836# Initialize libtool 10837# Check whether --enable-static was given. 10838if test "${enable_static+set}" = set; then : 10839 enableval=$enable_static; p=${PACKAGE-default} 10840 case $enableval in 10841 yes) enable_static=yes ;; 10842 no) enable_static=no ;; 10843 *) 10844 enable_static=no 10845 # Look at the argument we got. We use all the common list separators. 10846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10847 for pkg in $enableval; do 10848 IFS=$lt_save_ifs 10849 if test "X$pkg" = "X$p"; then 10850 enable_static=yes 10851 fi 10852 done 10853 IFS=$lt_save_ifs 10854 ;; 10855 esac 10856else 10857 enable_static=no 10858fi 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868case `pwd` in 10869 *\ * | *\ *) 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10871$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10872esac 10873 10874 10875 10876macro_version='2.4.6' 10877macro_revision='2.4.6' 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891ltmain=$ac_aux_dir/ltmain.sh 10892 10893# Backslashify metacharacters that are still active within 10894# double-quoted strings. 10895sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10896 10897# Same as above, but do not quote variable references. 10898double_quote_subst='s/\(["`\\]\)/\\\1/g' 10899 10900# Sed substitution to delay expansion of an escaped shell variable in a 10901# double_quote_subst'ed string. 10902delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10903 10904# Sed substitution to delay expansion of an escaped single quote. 10905delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10906 10907# Sed substitution to avoid accidental globbing in evaled expressions 10908no_glob_subst='s/\*/\\\*/g' 10909 10910ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10911ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10912ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10913 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10915$as_echo_n "checking how to print strings... " >&6; } 10916# Test print first, because it will be a builtin if present. 10917if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10918 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10919 ECHO='print -r --' 10920elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10921 ECHO='printf %s\n' 10922else 10923 # Use this function as a fallback that always works. 10924 func_fallback_echo () 10925 { 10926 eval 'cat <<_LTECHO_EOF 10927$1 10928_LTECHO_EOF' 10929 } 10930 ECHO='func_fallback_echo' 10931fi 10932 10933# func_echo_all arg... 10934# Invoke $ECHO with all args, space-separated. 10935func_echo_all () 10936{ 10937 $ECHO "" 10938} 10939 10940case $ECHO in 10941 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10942$as_echo "printf" >&6; } ;; 10943 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10944$as_echo "print -r" >&6; } ;; 10945 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10946$as_echo "cat" >&6; } ;; 10947esac 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10963$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10964if ${ac_cv_path_SED+:} false; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10968 for ac_i in 1 2 3 4 5 6 7; do 10969 ac_script="$ac_script$as_nl$ac_script" 10970 done 10971 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10972 { ac_script=; unset ac_script;} 10973 if test -z "$SED"; then 10974 ac_path_SED_found=false 10975 # Loop through the user's path and test for each of PROGNAME-LIST 10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10977for as_dir in $PATH 10978do 10979 IFS=$as_save_IFS 10980 test -z "$as_dir" && as_dir=. 10981 for ac_prog in sed gsed; do 10982 for ac_exec_ext in '' $ac_executable_extensions; do 10983 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10984 as_fn_executable_p "$ac_path_SED" || continue 10985# Check for GNU ac_path_SED and select it if it is found. 10986 # Check for GNU $ac_path_SED 10987case `"$ac_path_SED" --version 2>&1` in 10988*GNU*) 10989 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10990*) 10991 ac_count=0 10992 $as_echo_n 0123456789 >"conftest.in" 10993 while : 10994 do 10995 cat "conftest.in" "conftest.in" >"conftest.tmp" 10996 mv "conftest.tmp" "conftest.in" 10997 cp "conftest.in" "conftest.nl" 10998 $as_echo '' >> "conftest.nl" 10999 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11001 as_fn_arith $ac_count + 1 && ac_count=$as_val 11002 if test $ac_count -gt ${ac_path_SED_max-0}; then 11003 # Best one so far, save it but keep looking for a better one 11004 ac_cv_path_SED="$ac_path_SED" 11005 ac_path_SED_max=$ac_count 11006 fi 11007 # 10*(2^10) chars as input seems more than enough 11008 test $ac_count -gt 10 && break 11009 done 11010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11011esac 11012 11013 $ac_path_SED_found && break 3 11014 done 11015 done 11016 done 11017IFS=$as_save_IFS 11018 if test -z "$ac_cv_path_SED"; then 11019 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11020 fi 11021else 11022 ac_cv_path_SED=$SED 11023fi 11024 11025fi 11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11027$as_echo "$ac_cv_path_SED" >&6; } 11028 SED="$ac_cv_path_SED" 11029 rm -f conftest.sed 11030 11031test -z "$SED" && SED=sed 11032Xsed="$SED -e 1s/^X//" 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11045$as_echo_n "checking for fgrep... " >&6; } 11046if ${ac_cv_path_FGREP+:} false; then : 11047 $as_echo_n "(cached) " >&6 11048else 11049 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11050 then ac_cv_path_FGREP="$GREP -F" 11051 else 11052 if test -z "$FGREP"; then 11053 ac_path_FGREP_found=false 11054 # Loop through the user's path and test for each of PROGNAME-LIST 11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11056for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11057do 11058 IFS=$as_save_IFS 11059 test -z "$as_dir" && as_dir=. 11060 for ac_prog in fgrep; do 11061 for ac_exec_ext in '' $ac_executable_extensions; do 11062 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11063 as_fn_executable_p "$ac_path_FGREP" || continue 11064# Check for GNU ac_path_FGREP and select it if it is found. 11065 # Check for GNU $ac_path_FGREP 11066case `"$ac_path_FGREP" --version 2>&1` in 11067*GNU*) 11068 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11069*) 11070 ac_count=0 11071 $as_echo_n 0123456789 >"conftest.in" 11072 while : 11073 do 11074 cat "conftest.in" "conftest.in" >"conftest.tmp" 11075 mv "conftest.tmp" "conftest.in" 11076 cp "conftest.in" "conftest.nl" 11077 $as_echo 'FGREP' >> "conftest.nl" 11078 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11080 as_fn_arith $ac_count + 1 && ac_count=$as_val 11081 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11082 # Best one so far, save it but keep looking for a better one 11083 ac_cv_path_FGREP="$ac_path_FGREP" 11084 ac_path_FGREP_max=$ac_count 11085 fi 11086 # 10*(2^10) chars as input seems more than enough 11087 test $ac_count -gt 10 && break 11088 done 11089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11090esac 11091 11092 $ac_path_FGREP_found && break 3 11093 done 11094 done 11095 done 11096IFS=$as_save_IFS 11097 if test -z "$ac_cv_path_FGREP"; then 11098 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11099 fi 11100else 11101 ac_cv_path_FGREP=$FGREP 11102fi 11103 11104 fi 11105fi 11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11107$as_echo "$ac_cv_path_FGREP" >&6; } 11108 FGREP="$ac_cv_path_FGREP" 11109 11110 11111test -z "$GREP" && GREP=grep 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131# Check whether --with-gnu-ld was given. 11132if test "${with_gnu_ld+set}" = set; then : 11133 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11134else 11135 with_gnu_ld=no 11136fi 11137 11138ac_prog=ld 11139if test yes = "$GCC"; then 11140 # Check if gcc -print-prog-name=ld gives a path. 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11142$as_echo_n "checking for ld used by $CC... " >&6; } 11143 case $host in 11144 *-*-mingw*) 11145 # gcc leaves a trailing carriage return, which upsets mingw 11146 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11147 *) 11148 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11149 esac 11150 case $ac_prog in 11151 # Accept absolute paths. 11152 [\\/]* | ?:[\\/]*) 11153 re_direlt='/[^/][^/]*/\.\./' 11154 # Canonicalize the pathname of ld 11155 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11156 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11157 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11158 done 11159 test -z "$LD" && LD=$ac_prog 11160 ;; 11161 "") 11162 # If it fails, then pretend we aren't using GCC. 11163 ac_prog=ld 11164 ;; 11165 *) 11166 # If it is relative, then search for the first ld in PATH. 11167 with_gnu_ld=unknown 11168 ;; 11169 esac 11170elif test yes = "$with_gnu_ld"; then 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11172$as_echo_n "checking for GNU ld... " >&6; } 11173else 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11175$as_echo_n "checking for non-GNU ld... " >&6; } 11176fi 11177if ${lt_cv_path_LD+:} false; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 if test -z "$LD"; then 11181 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11182 for ac_dir in $PATH; do 11183 IFS=$lt_save_ifs 11184 test -z "$ac_dir" && ac_dir=. 11185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11186 lt_cv_path_LD=$ac_dir/$ac_prog 11187 # Check to see if the program is GNU ld. I'd rather use --version, 11188 # but apparently some variants of GNU ld only accept -v. 11189 # Break only if it was the GNU/non-GNU ld that we prefer. 11190 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11191 *GNU* | *'with BFD'*) 11192 test no != "$with_gnu_ld" && break 11193 ;; 11194 *) 11195 test yes != "$with_gnu_ld" && break 11196 ;; 11197 esac 11198 fi 11199 done 11200 IFS=$lt_save_ifs 11201else 11202 lt_cv_path_LD=$LD # Let the user override the test with a path. 11203fi 11204fi 11205 11206LD=$lt_cv_path_LD 11207if test -n "$LD"; then 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11209$as_echo "$LD" >&6; } 11210else 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11212$as_echo "no" >&6; } 11213fi 11214test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11216$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11217if ${lt_cv_prog_gnu_ld+:} false; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11221case `$LD -v 2>&1 </dev/null` in 11222*GNU* | *'with BFD'*) 11223 lt_cv_prog_gnu_ld=yes 11224 ;; 11225*) 11226 lt_cv_prog_gnu_ld=no 11227 ;; 11228esac 11229fi 11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11231$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11232with_gnu_ld=$lt_cv_prog_gnu_ld 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11243$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11244if ${lt_cv_path_NM+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 if test -n "$NM"; then 11248 # Let the user override the test. 11249 lt_cv_path_NM=$NM 11250else 11251 lt_nm_to_check=${ac_tool_prefix}nm 11252 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11253 lt_nm_to_check="$lt_nm_to_check nm" 11254 fi 11255 for lt_tmp_nm in $lt_nm_to_check; do 11256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11257 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11258 IFS=$lt_save_ifs 11259 test -z "$ac_dir" && ac_dir=. 11260 tmp_nm=$ac_dir/$lt_tmp_nm 11261 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11262 # Check to see if the nm accepts a BSD-compat flag. 11263 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11264 # nm: unknown option "B" ignored 11265 # Tru64's nm complains that /dev/null is an invalid object file 11266 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11267 case $build_os in 11268 mingw*) lt_bad_file=conftest.nm/nofile ;; 11269 *) lt_bad_file=/dev/null ;; 11270 esac 11271 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11272 *$lt_bad_file* | *'Invalid file or object type'*) 11273 lt_cv_path_NM="$tmp_nm -B" 11274 break 2 11275 ;; 11276 *) 11277 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11278 */dev/null*) 11279 lt_cv_path_NM="$tmp_nm -p" 11280 break 2 11281 ;; 11282 *) 11283 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11284 continue # so that we can try to find one that supports BSD flags 11285 ;; 11286 esac 11287 ;; 11288 esac 11289 fi 11290 done 11291 IFS=$lt_save_ifs 11292 done 11293 : ${lt_cv_path_NM=no} 11294fi 11295fi 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11297$as_echo "$lt_cv_path_NM" >&6; } 11298if test no != "$lt_cv_path_NM"; then 11299 NM=$lt_cv_path_NM 11300else 11301 # Didn't find any BSD compatible name lister, look for dumpbin. 11302 if test -n "$DUMPBIN"; then : 11303 # Let the user override the test. 11304 else 11305 if test -n "$ac_tool_prefix"; then 11306 for ac_prog in dumpbin "link -dump" 11307 do 11308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11311$as_echo_n "checking for $ac_word... " >&6; } 11312if ${ac_cv_prog_DUMPBIN+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314else 11315 if test -n "$DUMPBIN"; then 11316 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11317else 11318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11319for as_dir in $PATH 11320do 11321 IFS=$as_save_IFS 11322 test -z "$as_dir" && as_dir=. 11323 for ac_exec_ext in '' $ac_executable_extensions; do 11324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11325 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11327 break 2 11328 fi 11329done 11330 done 11331IFS=$as_save_IFS 11332 11333fi 11334fi 11335DUMPBIN=$ac_cv_prog_DUMPBIN 11336if test -n "$DUMPBIN"; then 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11338$as_echo "$DUMPBIN" >&6; } 11339else 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341$as_echo "no" >&6; } 11342fi 11343 11344 11345 test -n "$DUMPBIN" && break 11346 done 11347fi 11348if test -z "$DUMPBIN"; then 11349 ac_ct_DUMPBIN=$DUMPBIN 11350 for ac_prog in dumpbin "link -dump" 11351do 11352 # Extract the first word of "$ac_prog", so it can be a program name with args. 11353set dummy $ac_prog; ac_word=$2 11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11355$as_echo_n "checking for $ac_word... " >&6; } 11356if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11357 $as_echo_n "(cached) " >&6 11358else 11359 if test -n "$ac_ct_DUMPBIN"; then 11360 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11361else 11362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11363for as_dir in $PATH 11364do 11365 IFS=$as_save_IFS 11366 test -z "$as_dir" && as_dir=. 11367 for ac_exec_ext in '' $ac_executable_extensions; do 11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11369 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11371 break 2 11372 fi 11373done 11374 done 11375IFS=$as_save_IFS 11376 11377fi 11378fi 11379ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11380if test -n "$ac_ct_DUMPBIN"; then 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11382$as_echo "$ac_ct_DUMPBIN" >&6; } 11383else 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11385$as_echo "no" >&6; } 11386fi 11387 11388 11389 test -n "$ac_ct_DUMPBIN" && break 11390done 11391 11392 if test "x$ac_ct_DUMPBIN" = x; then 11393 DUMPBIN=":" 11394 else 11395 case $cross_compiling:$ac_tool_warned in 11396yes:) 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11399ac_tool_warned=yes ;; 11400esac 11401 DUMPBIN=$ac_ct_DUMPBIN 11402 fi 11403fi 11404 11405 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11406 *COFF*) 11407 DUMPBIN="$DUMPBIN -symbols -headers" 11408 ;; 11409 *) 11410 DUMPBIN=: 11411 ;; 11412 esac 11413 fi 11414 11415 if test : != "$DUMPBIN"; then 11416 NM=$DUMPBIN 11417 fi 11418fi 11419test -z "$NM" && NM=nm 11420 11421 11422 11423 11424 11425 11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11427$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11428if ${lt_cv_nm_interface+:} false; then : 11429 $as_echo_n "(cached) " >&6 11430else 11431 lt_cv_nm_interface="BSD nm" 11432 echo "int some_variable = 0;" > conftest.$ac_ext 11433 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11434 (eval "$ac_compile" 2>conftest.err) 11435 cat conftest.err >&5 11436 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11437 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11438 cat conftest.err >&5 11439 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11440 cat conftest.out >&5 11441 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11442 lt_cv_nm_interface="MS dumpbin" 11443 fi 11444 rm -f conftest* 11445fi 11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11447$as_echo "$lt_cv_nm_interface" >&6; } 11448 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11450$as_echo_n "checking whether ln -s works... " >&6; } 11451LN_S=$as_ln_s 11452if test "$LN_S" = "ln -s"; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11454$as_echo "yes" >&6; } 11455else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11457$as_echo "no, using $LN_S" >&6; } 11458fi 11459 11460# find the maximum length of command line arguments 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11462$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11463if ${lt_cv_sys_max_cmd_len+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 i=0 11467 teststring=ABCD 11468 11469 case $build_os in 11470 msdosdjgpp*) 11471 # On DJGPP, this test can blow up pretty badly due to problems in libc 11472 # (any single argument exceeding 2000 bytes causes a buffer overrun 11473 # during glob expansion). Even if it were fixed, the result of this 11474 # check would be larger than it should be. 11475 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11476 ;; 11477 11478 gnu*) 11479 # Under GNU Hurd, this test is not required because there is 11480 # no limit to the length of command line arguments. 11481 # Libtool will interpret -1 as no limit whatsoever 11482 lt_cv_sys_max_cmd_len=-1; 11483 ;; 11484 11485 cygwin* | mingw* | cegcc*) 11486 # On Win9x/ME, this test blows up -- it succeeds, but takes 11487 # about 5 minutes as the teststring grows exponentially. 11488 # Worse, since 9x/ME are not pre-emptively multitasking, 11489 # you end up with a "frozen" computer, even though with patience 11490 # the test eventually succeeds (with a max line length of 256k). 11491 # Instead, let's just punt: use the minimum linelength reported by 11492 # all of the supported platforms: 8192 (on NT/2K/XP). 11493 lt_cv_sys_max_cmd_len=8192; 11494 ;; 11495 11496 mint*) 11497 # On MiNT this can take a long time and run out of memory. 11498 lt_cv_sys_max_cmd_len=8192; 11499 ;; 11500 11501 amigaos*) 11502 # On AmigaOS with pdksh, this test takes hours, literally. 11503 # So we just punt and use a minimum line length of 8192. 11504 lt_cv_sys_max_cmd_len=8192; 11505 ;; 11506 11507 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11508 # This has been around since 386BSD, at least. Likely further. 11509 if test -x /sbin/sysctl; then 11510 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11511 elif test -x /usr/sbin/sysctl; then 11512 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11513 else 11514 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11515 fi 11516 # And add a safety zone 11517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11519 ;; 11520 11521 interix*) 11522 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11523 lt_cv_sys_max_cmd_len=196608 11524 ;; 11525 11526 os2*) 11527 # The test takes a long time on OS/2. 11528 lt_cv_sys_max_cmd_len=8192 11529 ;; 11530 11531 osf*) 11532 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11533 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11534 # nice to cause kernel panics so lets avoid the loop below. 11535 # First set a reasonable default. 11536 lt_cv_sys_max_cmd_len=16384 11537 # 11538 if test -x /sbin/sysconfig; then 11539 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11540 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11541 esac 11542 fi 11543 ;; 11544 sco3.2v5*) 11545 lt_cv_sys_max_cmd_len=102400 11546 ;; 11547 sysv5* | sco5v6* | sysv4.2uw2*) 11548 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11549 if test -n "$kargmax"; then 11550 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11551 else 11552 lt_cv_sys_max_cmd_len=32768 11553 fi 11554 ;; 11555 *) 11556 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11557 if test -n "$lt_cv_sys_max_cmd_len" && \ 11558 test undefined != "$lt_cv_sys_max_cmd_len"; then 11559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11561 else 11562 # Make teststring a little bigger before we do anything with it. 11563 # a 1K string should be a reasonable start. 11564 for i in 1 2 3 4 5 6 7 8; do 11565 teststring=$teststring$teststring 11566 done 11567 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11568 # If test is not a shell built-in, we'll probably end up computing a 11569 # maximum length that is only half of the actual maximum length, but 11570 # we can't tell. 11571 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11572 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11573 test 17 != "$i" # 1/2 MB should be enough 11574 do 11575 i=`expr $i + 1` 11576 teststring=$teststring$teststring 11577 done 11578 # Only check the string length outside the loop. 11579 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11580 teststring= 11581 # Add a significant safety factor because C++ compilers can tack on 11582 # massive amounts of additional arguments before passing them to the 11583 # linker. It appears as though 1/2 is a usable value. 11584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11585 fi 11586 ;; 11587 esac 11588 11589fi 11590 11591if test -n "$lt_cv_sys_max_cmd_len"; then 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11593$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11594else 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11596$as_echo "none" >&6; } 11597fi 11598max_cmd_len=$lt_cv_sys_max_cmd_len 11599 11600 11601 11602 11603 11604 11605: ${CP="cp -f"} 11606: ${MV="mv -f"} 11607: ${RM="rm -f"} 11608 11609if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11610 lt_unset=unset 11611else 11612 lt_unset=false 11613fi 11614 11615 11616 11617 11618 11619# test EBCDIC or ASCII 11620case `echo X|tr X '\101'` in 11621 A) # ASCII based system 11622 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11623 lt_SP2NL='tr \040 \012' 11624 lt_NL2SP='tr \015\012 \040\040' 11625 ;; 11626 *) # EBCDIC based system 11627 lt_SP2NL='tr \100 \n' 11628 lt_NL2SP='tr \r\n \100\100' 11629 ;; 11630esac 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11641$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11642if ${lt_cv_to_host_file_cmd+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644else 11645 case $host in 11646 *-*-mingw* ) 11647 case $build in 11648 *-*-mingw* ) # actually msys 11649 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11650 ;; 11651 *-*-cygwin* ) 11652 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11653 ;; 11654 * ) # otherwise, assume *nix 11655 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11656 ;; 11657 esac 11658 ;; 11659 *-*-cygwin* ) 11660 case $build in 11661 *-*-mingw* ) # actually msys 11662 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11663 ;; 11664 *-*-cygwin* ) 11665 lt_cv_to_host_file_cmd=func_convert_file_noop 11666 ;; 11667 * ) # otherwise, assume *nix 11668 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11669 ;; 11670 esac 11671 ;; 11672 * ) # unhandled hosts (and "normal" native builds) 11673 lt_cv_to_host_file_cmd=func_convert_file_noop 11674 ;; 11675esac 11676 11677fi 11678 11679to_host_file_cmd=$lt_cv_to_host_file_cmd 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11681$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11682 11683 11684 11685 11686 11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11688$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11689if ${lt_cv_to_tool_file_cmd+:} false; then : 11690 $as_echo_n "(cached) " >&6 11691else 11692 #assume ordinary cross tools, or native build. 11693lt_cv_to_tool_file_cmd=func_convert_file_noop 11694case $host in 11695 *-*-mingw* ) 11696 case $build in 11697 *-*-mingw* ) # actually msys 11698 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11699 ;; 11700 esac 11701 ;; 11702esac 11703 11704fi 11705 11706to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11708$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11709 11710 11711 11712 11713 11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11715$as_echo_n "checking for $LD option to reload object files... " >&6; } 11716if ${lt_cv_ld_reload_flag+:} false; then : 11717 $as_echo_n "(cached) " >&6 11718else 11719 lt_cv_ld_reload_flag='-r' 11720fi 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11722$as_echo "$lt_cv_ld_reload_flag" >&6; } 11723reload_flag=$lt_cv_ld_reload_flag 11724case $reload_flag in 11725"" | " "*) ;; 11726*) reload_flag=" $reload_flag" ;; 11727esac 11728reload_cmds='$LD$reload_flag -o $output$reload_objs' 11729case $host_os in 11730 cygwin* | mingw* | pw32* | cegcc*) 11731 if test yes != "$GCC"; then 11732 reload_cmds=false 11733 fi 11734 ;; 11735 darwin*) 11736 if test yes = "$GCC"; then 11737 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11738 else 11739 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11740 fi 11741 ;; 11742esac 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752if test -n "$ac_tool_prefix"; then 11753 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11754set dummy ${ac_tool_prefix}objdump; ac_word=$2 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11756$as_echo_n "checking for $ac_word... " >&6; } 11757if ${ac_cv_prog_OBJDUMP+:} false; then : 11758 $as_echo_n "(cached) " >&6 11759else 11760 if test -n "$OBJDUMP"; then 11761 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11762else 11763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11764for as_dir in $PATH 11765do 11766 IFS=$as_save_IFS 11767 test -z "$as_dir" && as_dir=. 11768 for ac_exec_ext in '' $ac_executable_extensions; do 11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11770 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11772 break 2 11773 fi 11774done 11775 done 11776IFS=$as_save_IFS 11777 11778fi 11779fi 11780OBJDUMP=$ac_cv_prog_OBJDUMP 11781if test -n "$OBJDUMP"; then 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11783$as_echo "$OBJDUMP" >&6; } 11784else 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11786$as_echo "no" >&6; } 11787fi 11788 11789 11790fi 11791if test -z "$ac_cv_prog_OBJDUMP"; then 11792 ac_ct_OBJDUMP=$OBJDUMP 11793 # Extract the first word of "objdump", so it can be a program name with args. 11794set dummy objdump; ac_word=$2 11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11796$as_echo_n "checking for $ac_word... " >&6; } 11797if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11798 $as_echo_n "(cached) " >&6 11799else 11800 if test -n "$ac_ct_OBJDUMP"; then 11801 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11802else 11803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11804for as_dir in $PATH 11805do 11806 IFS=$as_save_IFS 11807 test -z "$as_dir" && as_dir=. 11808 for ac_exec_ext in '' $ac_executable_extensions; do 11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11810 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11812 break 2 11813 fi 11814done 11815 done 11816IFS=$as_save_IFS 11817 11818fi 11819fi 11820ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11821if test -n "$ac_ct_OBJDUMP"; then 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11823$as_echo "$ac_ct_OBJDUMP" >&6; } 11824else 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11826$as_echo "no" >&6; } 11827fi 11828 11829 if test "x$ac_ct_OBJDUMP" = x; then 11830 OBJDUMP="false" 11831 else 11832 case $cross_compiling:$ac_tool_warned in 11833yes:) 11834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11836ac_tool_warned=yes ;; 11837esac 11838 OBJDUMP=$ac_ct_OBJDUMP 11839 fi 11840else 11841 OBJDUMP="$ac_cv_prog_OBJDUMP" 11842fi 11843 11844test -z "$OBJDUMP" && OBJDUMP=objdump 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11855$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11856if ${lt_cv_deplibs_check_method+:} false; then : 11857 $as_echo_n "(cached) " >&6 11858else 11859 lt_cv_file_magic_cmd='$MAGIC_CMD' 11860lt_cv_file_magic_test_file= 11861lt_cv_deplibs_check_method='unknown' 11862# Need to set the preceding variable on all platforms that support 11863# interlibrary dependencies. 11864# 'none' -- dependencies not supported. 11865# 'unknown' -- same as none, but documents that we really don't know. 11866# 'pass_all' -- all dependencies passed with no checks. 11867# 'test_compile' -- check by making test program. 11868# 'file_magic [[regex]]' -- check by looking for files in library path 11869# that responds to the $file_magic_cmd with a given extended regex. 11870# If you have 'file' or equivalent on your system and you're not sure 11871# whether 'pass_all' will *always* work, you probably want this one. 11872 11873case $host_os in 11874aix[4-9]*) 11875 lt_cv_deplibs_check_method=pass_all 11876 ;; 11877 11878beos*) 11879 lt_cv_deplibs_check_method=pass_all 11880 ;; 11881 11882bsdi[45]*) 11883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11884 lt_cv_file_magic_cmd='/usr/bin/file -L' 11885 lt_cv_file_magic_test_file=/shlib/libc.so 11886 ;; 11887 11888cygwin*) 11889 # func_win32_libid is a shell function defined in ltmain.sh 11890 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11891 lt_cv_file_magic_cmd='func_win32_libid' 11892 ;; 11893 11894mingw* | pw32*) 11895 # Base MSYS/MinGW do not provide the 'file' command needed by 11896 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11897 # unless we find 'file', for example because we are cross-compiling. 11898 if ( file / ) >/dev/null 2>&1; then 11899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11900 lt_cv_file_magic_cmd='func_win32_libid' 11901 else 11902 # Keep this pattern in sync with the one in func_win32_libid. 11903 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11904 lt_cv_file_magic_cmd='$OBJDUMP -f' 11905 fi 11906 ;; 11907 11908cegcc*) 11909 # use the weaker test based on 'objdump'. See mingw*. 11910 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11911 lt_cv_file_magic_cmd='$OBJDUMP -f' 11912 ;; 11913 11914darwin* | rhapsody*) 11915 lt_cv_deplibs_check_method=pass_all 11916 ;; 11917 11918freebsd* | dragonfly*) 11919 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11920 case $host_cpu in 11921 i*86 ) 11922 # Not sure whether the presence of OpenBSD here was a mistake. 11923 # Let's accept both of them until this is cleared up. 11924 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11925 lt_cv_file_magic_cmd=/usr/bin/file 11926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11927 ;; 11928 esac 11929 else 11930 lt_cv_deplibs_check_method=pass_all 11931 fi 11932 ;; 11933 11934haiku*) 11935 lt_cv_deplibs_check_method=pass_all 11936 ;; 11937 11938hpux10.20* | hpux11*) 11939 lt_cv_file_magic_cmd=/usr/bin/file 11940 case $host_cpu in 11941 ia64*) 11942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11943 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11944 ;; 11945 hppa*64*) 11946 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]' 11947 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11948 ;; 11949 *) 11950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11951 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11952 ;; 11953 esac 11954 ;; 11955 11956interix[3-9]*) 11957 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11959 ;; 11960 11961irix5* | irix6* | nonstopux*) 11962 case $LD in 11963 *-32|*"-32 ") libmagic=32-bit;; 11964 *-n32|*"-n32 ") libmagic=N32;; 11965 *-64|*"-64 ") libmagic=64-bit;; 11966 *) libmagic=never-match;; 11967 esac 11968 lt_cv_deplibs_check_method=pass_all 11969 ;; 11970 11971# This must be glibc/ELF. 11972linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11973 lt_cv_deplibs_check_method=pass_all 11974 ;; 11975 11976netbsd*) 11977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11979 else 11980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11981 fi 11982 ;; 11983 11984newos6*) 11985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11986 lt_cv_file_magic_cmd=/usr/bin/file 11987 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11988 ;; 11989 11990*nto* | *qnx*) 11991 lt_cv_deplibs_check_method=pass_all 11992 ;; 11993 11994openbsd* | bitrig*) 11995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11997 else 11998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11999 fi 12000 ;; 12001 12002osf3* | osf4* | osf5*) 12003 lt_cv_deplibs_check_method=pass_all 12004 ;; 12005 12006rdos*) 12007 lt_cv_deplibs_check_method=pass_all 12008 ;; 12009 12010solaris*) 12011 lt_cv_deplibs_check_method=pass_all 12012 ;; 12013 12014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12015 lt_cv_deplibs_check_method=pass_all 12016 ;; 12017 12018sysv4 | sysv4.3*) 12019 case $host_vendor in 12020 motorola) 12021 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]' 12022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12023 ;; 12024 ncr) 12025 lt_cv_deplibs_check_method=pass_all 12026 ;; 12027 sequent) 12028 lt_cv_file_magic_cmd='/bin/file' 12029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12030 ;; 12031 sni) 12032 lt_cv_file_magic_cmd='/bin/file' 12033 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12034 lt_cv_file_magic_test_file=/lib/libc.so 12035 ;; 12036 siemens) 12037 lt_cv_deplibs_check_method=pass_all 12038 ;; 12039 pc) 12040 lt_cv_deplibs_check_method=pass_all 12041 ;; 12042 esac 12043 ;; 12044 12045tpf*) 12046 lt_cv_deplibs_check_method=pass_all 12047 ;; 12048os2*) 12049 lt_cv_deplibs_check_method=pass_all 12050 ;; 12051esac 12052 12053fi 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12055$as_echo "$lt_cv_deplibs_check_method" >&6; } 12056 12057file_magic_glob= 12058want_nocaseglob=no 12059if test "$build" = "$host"; then 12060 case $host_os in 12061 mingw* | pw32*) 12062 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12063 want_nocaseglob=yes 12064 else 12065 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12066 fi 12067 ;; 12068 esac 12069fi 12070 12071file_magic_cmd=$lt_cv_file_magic_cmd 12072deplibs_check_method=$lt_cv_deplibs_check_method 12073test -z "$deplibs_check_method" && deplibs_check_method=unknown 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096if test -n "$ac_tool_prefix"; then 12097 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12098set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12100$as_echo_n "checking for $ac_word... " >&6; } 12101if ${ac_cv_prog_DLLTOOL+:} false; then : 12102 $as_echo_n "(cached) " >&6 12103else 12104 if test -n "$DLLTOOL"; then 12105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12106else 12107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12108for as_dir in $PATH 12109do 12110 IFS=$as_save_IFS 12111 test -z "$as_dir" && as_dir=. 12112 for ac_exec_ext in '' $ac_executable_extensions; do 12113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12114 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12116 break 2 12117 fi 12118done 12119 done 12120IFS=$as_save_IFS 12121 12122fi 12123fi 12124DLLTOOL=$ac_cv_prog_DLLTOOL 12125if test -n "$DLLTOOL"; then 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12127$as_echo "$DLLTOOL" >&6; } 12128else 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12130$as_echo "no" >&6; } 12131fi 12132 12133 12134fi 12135if test -z "$ac_cv_prog_DLLTOOL"; then 12136 ac_ct_DLLTOOL=$DLLTOOL 12137 # Extract the first word of "dlltool", so it can be a program name with args. 12138set dummy dlltool; ac_word=$2 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12140$as_echo_n "checking for $ac_word... " >&6; } 12141if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143else 12144 if test -n "$ac_ct_DLLTOOL"; then 12145 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12146else 12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12148for as_dir in $PATH 12149do 12150 IFS=$as_save_IFS 12151 test -z "$as_dir" && as_dir=. 12152 for ac_exec_ext in '' $ac_executable_extensions; do 12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12154 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12156 break 2 12157 fi 12158done 12159 done 12160IFS=$as_save_IFS 12161 12162fi 12163fi 12164ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12165if test -n "$ac_ct_DLLTOOL"; then 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12167$as_echo "$ac_ct_DLLTOOL" >&6; } 12168else 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12170$as_echo "no" >&6; } 12171fi 12172 12173 if test "x$ac_ct_DLLTOOL" = x; then 12174 DLLTOOL="false" 12175 else 12176 case $cross_compiling:$ac_tool_warned in 12177yes:) 12178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12180ac_tool_warned=yes ;; 12181esac 12182 DLLTOOL=$ac_ct_DLLTOOL 12183 fi 12184else 12185 DLLTOOL="$ac_cv_prog_DLLTOOL" 12186fi 12187 12188test -z "$DLLTOOL" && DLLTOOL=dlltool 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12200$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12201if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 lt_cv_sharedlib_from_linklib_cmd='unknown' 12205 12206case $host_os in 12207cygwin* | mingw* | pw32* | cegcc*) 12208 # two different shell functions defined in ltmain.sh; 12209 # decide which one to use based on capabilities of $DLLTOOL 12210 case `$DLLTOOL --help 2>&1` in 12211 *--identify-strict*) 12212 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12213 ;; 12214 *) 12215 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12216 ;; 12217 esac 12218 ;; 12219*) 12220 # fallback: assume linklib IS sharedlib 12221 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12222 ;; 12223esac 12224 12225fi 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12227$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12228sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12229test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12230 12231 12232 12233 12234 12235 12236 12237if test -n "$ac_tool_prefix"; then 12238 for ac_prog in ar 12239 do 12240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12241set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12243$as_echo_n "checking for $ac_word... " >&6; } 12244if ${ac_cv_prog_AR+:} false; then : 12245 $as_echo_n "(cached) " >&6 12246else 12247 if test -n "$AR"; then 12248 ac_cv_prog_AR="$AR" # Let the user override the test. 12249else 12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12251for as_dir in $PATH 12252do 12253 IFS=$as_save_IFS 12254 test -z "$as_dir" && as_dir=. 12255 for ac_exec_ext in '' $ac_executable_extensions; do 12256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12257 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12259 break 2 12260 fi 12261done 12262 done 12263IFS=$as_save_IFS 12264 12265fi 12266fi 12267AR=$ac_cv_prog_AR 12268if test -n "$AR"; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12270$as_echo "$AR" >&6; } 12271else 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12273$as_echo "no" >&6; } 12274fi 12275 12276 12277 test -n "$AR" && break 12278 done 12279fi 12280if test -z "$AR"; then 12281 ac_ct_AR=$AR 12282 for ac_prog in ar 12283do 12284 # Extract the first word of "$ac_prog", so it can be a program name with args. 12285set dummy $ac_prog; ac_word=$2 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12287$as_echo_n "checking for $ac_word... " >&6; } 12288if ${ac_cv_prog_ac_ct_AR+:} false; then : 12289 $as_echo_n "(cached) " >&6 12290else 12291 if test -n "$ac_ct_AR"; then 12292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12293else 12294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12295for as_dir in $PATH 12296do 12297 IFS=$as_save_IFS 12298 test -z "$as_dir" && as_dir=. 12299 for ac_exec_ext in '' $ac_executable_extensions; do 12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12301 ac_cv_prog_ac_ct_AR="$ac_prog" 12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12303 break 2 12304 fi 12305done 12306 done 12307IFS=$as_save_IFS 12308 12309fi 12310fi 12311ac_ct_AR=$ac_cv_prog_ac_ct_AR 12312if test -n "$ac_ct_AR"; then 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12314$as_echo "$ac_ct_AR" >&6; } 12315else 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12317$as_echo "no" >&6; } 12318fi 12319 12320 12321 test -n "$ac_ct_AR" && break 12322done 12323 12324 if test "x$ac_ct_AR" = x; then 12325 AR="false" 12326 else 12327 case $cross_compiling:$ac_tool_warned in 12328yes:) 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12331ac_tool_warned=yes ;; 12332esac 12333 AR=$ac_ct_AR 12334 fi 12335fi 12336 12337: ${AR=ar} 12338: ${AR_FLAGS=cru} 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12351$as_echo_n "checking for archiver @FILE support... " >&6; } 12352if ${lt_cv_ar_at_file+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 lt_cv_ar_at_file=no 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357/* end confdefs.h. */ 12358 12359int 12360main () 12361{ 12362 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367if ac_fn_c_try_compile "$LINENO"; then : 12368 echo conftest.$ac_objext > conftest.lst 12369 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12371 (eval $lt_ar_try) 2>&5 12372 ac_status=$? 12373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12374 test $ac_status = 0; } 12375 if test 0 -eq "$ac_status"; then 12376 # Ensure the archiver fails upon bogus file names. 12377 rm -f conftest.$ac_objext libconftest.a 12378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12379 (eval $lt_ar_try) 2>&5 12380 ac_status=$? 12381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12382 test $ac_status = 0; } 12383 if test 0 -ne "$ac_status"; then 12384 lt_cv_ar_at_file=@ 12385 fi 12386 fi 12387 rm -f conftest.* libconftest.a 12388 12389fi 12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12391 12392fi 12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12394$as_echo "$lt_cv_ar_at_file" >&6; } 12395 12396if test no = "$lt_cv_ar_at_file"; then 12397 archiver_list_spec= 12398else 12399 archiver_list_spec=$lt_cv_ar_at_file 12400fi 12401 12402 12403 12404 12405 12406 12407 12408if test -n "$ac_tool_prefix"; then 12409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12410set dummy ${ac_tool_prefix}strip; ac_word=$2 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12412$as_echo_n "checking for $ac_word... " >&6; } 12413if ${ac_cv_prog_STRIP+:} false; then : 12414 $as_echo_n "(cached) " >&6 12415else 12416 if test -n "$STRIP"; then 12417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12418else 12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12420for as_dir in $PATH 12421do 12422 IFS=$as_save_IFS 12423 test -z "$as_dir" && as_dir=. 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12426 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430done 12431 done 12432IFS=$as_save_IFS 12433 12434fi 12435fi 12436STRIP=$ac_cv_prog_STRIP 12437if test -n "$STRIP"; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12439$as_echo "$STRIP" >&6; } 12440else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12442$as_echo "no" >&6; } 12443fi 12444 12445 12446fi 12447if test -z "$ac_cv_prog_STRIP"; then 12448 ac_ct_STRIP=$STRIP 12449 # Extract the first word of "strip", so it can be a program name with args. 12450set dummy strip; ac_word=$2 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12452$as_echo_n "checking for $ac_word... " >&6; } 12453if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12454 $as_echo_n "(cached) " >&6 12455else 12456 if test -n "$ac_ct_STRIP"; then 12457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12458else 12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12460for as_dir in $PATH 12461do 12462 IFS=$as_save_IFS 12463 test -z "$as_dir" && as_dir=. 12464 for ac_exec_ext in '' $ac_executable_extensions; do 12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12466 ac_cv_prog_ac_ct_STRIP="strip" 12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12468 break 2 12469 fi 12470done 12471 done 12472IFS=$as_save_IFS 12473 12474fi 12475fi 12476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12477if test -n "$ac_ct_STRIP"; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12479$as_echo "$ac_ct_STRIP" >&6; } 12480else 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12482$as_echo "no" >&6; } 12483fi 12484 12485 if test "x$ac_ct_STRIP" = x; then 12486 STRIP=":" 12487 else 12488 case $cross_compiling:$ac_tool_warned in 12489yes:) 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12492ac_tool_warned=yes ;; 12493esac 12494 STRIP=$ac_ct_STRIP 12495 fi 12496else 12497 STRIP="$ac_cv_prog_STRIP" 12498fi 12499 12500test -z "$STRIP" && STRIP=: 12501 12502 12503 12504 12505 12506 12507if test -n "$ac_tool_prefix"; then 12508 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12509set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12511$as_echo_n "checking for $ac_word... " >&6; } 12512if ${ac_cv_prog_RANLIB+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514else 12515 if test -n "$RANLIB"; then 12516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12517else 12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $PATH 12520do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12525 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529done 12530 done 12531IFS=$as_save_IFS 12532 12533fi 12534fi 12535RANLIB=$ac_cv_prog_RANLIB 12536if test -n "$RANLIB"; then 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12538$as_echo "$RANLIB" >&6; } 12539else 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12541$as_echo "no" >&6; } 12542fi 12543 12544 12545fi 12546if test -z "$ac_cv_prog_RANLIB"; then 12547 ac_ct_RANLIB=$RANLIB 12548 # Extract the first word of "ranlib", so it can be a program name with args. 12549set dummy ranlib; ac_word=$2 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12551$as_echo_n "checking for $ac_word... " >&6; } 12552if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 if test -n "$ac_ct_RANLIB"; then 12556 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12557else 12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12559for as_dir in $PATH 12560do 12561 IFS=$as_save_IFS 12562 test -z "$as_dir" && as_dir=. 12563 for ac_exec_ext in '' $ac_executable_extensions; do 12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12565 ac_cv_prog_ac_ct_RANLIB="ranlib" 12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12567 break 2 12568 fi 12569done 12570 done 12571IFS=$as_save_IFS 12572 12573fi 12574fi 12575ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12576if test -n "$ac_ct_RANLIB"; then 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12578$as_echo "$ac_ct_RANLIB" >&6; } 12579else 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12581$as_echo "no" >&6; } 12582fi 12583 12584 if test "x$ac_ct_RANLIB" = x; then 12585 RANLIB=":" 12586 else 12587 case $cross_compiling:$ac_tool_warned in 12588yes:) 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12591ac_tool_warned=yes ;; 12592esac 12593 RANLIB=$ac_ct_RANLIB 12594 fi 12595else 12596 RANLIB="$ac_cv_prog_RANLIB" 12597fi 12598 12599test -z "$RANLIB" && RANLIB=: 12600 12601 12602 12603 12604 12605 12606# Determine commands to create old-style static archives. 12607old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12608old_postinstall_cmds='chmod 644 $oldlib' 12609old_postuninstall_cmds= 12610 12611if test -n "$RANLIB"; then 12612 case $host_os in 12613 bitrig* | openbsd*) 12614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12615 ;; 12616 *) 12617 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12618 ;; 12619 esac 12620 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12621fi 12622 12623case $host_os in 12624 darwin*) 12625 lock_old_archive_extraction=yes ;; 12626 *) 12627 lock_old_archive_extraction=no ;; 12628esac 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 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# If no C compiler was specified, use CC. 12669LTCC=${LTCC-"$CC"} 12670 12671# If no C compiler flags were specified, use CFLAGS. 12672LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12673 12674# Allow CC to be a program name with arguments. 12675compiler=$CC 12676 12677 12678# Check for command to grab the raw symbol name followed by C symbol from nm. 12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12680$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12681if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683else 12684 12685# These are sane defaults that work on at least a few old systems. 12686# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12687 12688# Character class describing NM global symbol codes. 12689symcode='[BCDEGRST]' 12690 12691# Regexp to match symbols that can be accessed directly from C. 12692sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12693 12694# Define system-specific variables. 12695case $host_os in 12696aix*) 12697 symcode='[BCDT]' 12698 ;; 12699cygwin* | mingw* | pw32* | cegcc*) 12700 symcode='[ABCDGISTW]' 12701 ;; 12702hpux*) 12703 if test ia64 = "$host_cpu"; then 12704 symcode='[ABCDEGRST]' 12705 fi 12706 ;; 12707irix* | nonstopux*) 12708 symcode='[BCDEGRST]' 12709 ;; 12710osf*) 12711 symcode='[BCDEGQRST]' 12712 ;; 12713solaris*) 12714 symcode='[BDRT]' 12715 ;; 12716sco3.2v5*) 12717 symcode='[DT]' 12718 ;; 12719sysv4.2uw2*) 12720 symcode='[DT]' 12721 ;; 12722sysv5* | sco5v6* | unixware* | OpenUNIX*) 12723 symcode='[ABDT]' 12724 ;; 12725sysv4) 12726 symcode='[DFNSTU]' 12727 ;; 12728esac 12729 12730# If we're using GNU nm, then use its standard symbol codes. 12731case `$NM -V 2>&1` in 12732*GNU* | *'with BFD'*) 12733 symcode='[ABCDGIRSTW]' ;; 12734esac 12735 12736if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12737 # Gets list of data symbols to import. 12738 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12739 # Adjust the below global symbol transforms to fixup imported variables. 12740 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12741 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12742 lt_c_name_lib_hook="\ 12743 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12744 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12745else 12746 # Disable hooks by default. 12747 lt_cv_sys_global_symbol_to_import= 12748 lt_cdecl_hook= 12749 lt_c_name_hook= 12750 lt_c_name_lib_hook= 12751fi 12752 12753# Transform an extracted symbol line into a proper C declaration. 12754# Some systems (esp. on ia64) link data and code symbols differently, 12755# so use this general approach. 12756lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12757$lt_cdecl_hook\ 12758" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12759" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12760 12761# Transform an extracted symbol line into symbol name and symbol address 12762lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12763$lt_c_name_hook\ 12764" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12765" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12766 12767# Transform an extracted symbol line into symbol name with lib prefix and 12768# symbol address. 12769lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12770$lt_c_name_lib_hook\ 12771" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12772" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12773" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12774 12775# Handle CRLF in mingw tool chain 12776opt_cr= 12777case $build_os in 12778mingw*) 12779 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12780 ;; 12781esac 12782 12783# Try without a prefix underscore, then with it. 12784for ac_symprfx in "" "_"; do 12785 12786 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12787 symxfrm="\\1 $ac_symprfx\\2 \\2" 12788 12789 # Write the raw and C identifiers. 12790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12791 # Fake it for dumpbin and say T for any non-static function, 12792 # D for any global variable and I for any imported variable. 12793 # Also find C++ and __fastcall symbols from MSVC++, 12794 # which start with @ or ?. 12795 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12796" {last_section=section; section=\$ 3};"\ 12797" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12798" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12799" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12800" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12801" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12802" \$ 0!~/External *\|/{next};"\ 12803" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12804" {if(hide[section]) next};"\ 12805" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12806" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12807" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12808" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12809" ' prfx=^$ac_symprfx" 12810 else 12811 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12812 fi 12813 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12814 12815 # Check to see that the pipe works correctly. 12816 pipe_works=no 12817 12818 rm -f conftest* 12819 cat > conftest.$ac_ext <<_LT_EOF 12820#ifdef __cplusplus 12821extern "C" { 12822#endif 12823char nm_test_var; 12824void nm_test_func(void); 12825void nm_test_func(void){} 12826#ifdef __cplusplus 12827} 12828#endif 12829int main(){nm_test_var='a';nm_test_func();return(0);} 12830_LT_EOF 12831 12832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12833 (eval $ac_compile) 2>&5 12834 ac_status=$? 12835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12836 test $ac_status = 0; }; then 12837 # Now try to grab the symbols. 12838 nlist=conftest.nm 12839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12840 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12841 ac_status=$? 12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12843 test $ac_status = 0; } && test -s "$nlist"; then 12844 # Try sorting and uniquifying the output. 12845 if sort "$nlist" | uniq > "$nlist"T; then 12846 mv -f "$nlist"T "$nlist" 12847 else 12848 rm -f "$nlist"T 12849 fi 12850 12851 # Make sure that we snagged all the symbols we need. 12852 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12853 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12854 cat <<_LT_EOF > conftest.$ac_ext 12855/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12856#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12857/* DATA imports from DLLs on WIN32 can't be const, because runtime 12858 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12859# define LT_DLSYM_CONST 12860#elif defined __osf__ 12861/* This system does not cope well with relocations in const data. */ 12862# define LT_DLSYM_CONST 12863#else 12864# define LT_DLSYM_CONST const 12865#endif 12866 12867#ifdef __cplusplus 12868extern "C" { 12869#endif 12870 12871_LT_EOF 12872 # Now generate the symbol file. 12873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12874 12875 cat <<_LT_EOF >> conftest.$ac_ext 12876 12877/* The mapping between symbol names and symbols. */ 12878LT_DLSYM_CONST struct { 12879 const char *name; 12880 void *address; 12881} 12882lt__PROGRAM__LTX_preloaded_symbols[] = 12883{ 12884 { "@PROGRAM@", (void *) 0 }, 12885_LT_EOF 12886 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12887 cat <<\_LT_EOF >> conftest.$ac_ext 12888 {0, (void *) 0} 12889}; 12890 12891/* This works around a problem in FreeBSD linker */ 12892#ifdef FREEBSD_WORKAROUND 12893static const void *lt_preloaded_setup() { 12894 return lt__PROGRAM__LTX_preloaded_symbols; 12895} 12896#endif 12897 12898#ifdef __cplusplus 12899} 12900#endif 12901_LT_EOF 12902 # Now try linking the two files. 12903 mv conftest.$ac_objext conftstm.$ac_objext 12904 lt_globsym_save_LIBS=$LIBS 12905 lt_globsym_save_CFLAGS=$CFLAGS 12906 LIBS=conftstm.$ac_objext 12907 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12909 (eval $ac_link) 2>&5 12910 ac_status=$? 12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12912 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12913 pipe_works=yes 12914 fi 12915 LIBS=$lt_globsym_save_LIBS 12916 CFLAGS=$lt_globsym_save_CFLAGS 12917 else 12918 echo "cannot find nm_test_func in $nlist" >&5 12919 fi 12920 else 12921 echo "cannot find nm_test_var in $nlist" >&5 12922 fi 12923 else 12924 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12925 fi 12926 else 12927 echo "$progname: failed program was:" >&5 12928 cat conftest.$ac_ext >&5 12929 fi 12930 rm -rf conftest* conftst* 12931 12932 # Do not use the global_symbol_pipe unless it works. 12933 if test yes = "$pipe_works"; then 12934 break 12935 else 12936 lt_cv_sys_global_symbol_pipe= 12937 fi 12938done 12939 12940fi 12941 12942if test -z "$lt_cv_sys_global_symbol_pipe"; then 12943 lt_cv_sys_global_symbol_to_cdecl= 12944fi 12945if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12947$as_echo "failed" >&6; } 12948else 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12950$as_echo "ok" >&6; } 12951fi 12952 12953# Response file support. 12954if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12955 nm_file_list_spec='@' 12956elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12957 nm_file_list_spec='@' 12958fi 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12997$as_echo_n "checking for sysroot... " >&6; } 12998 12999# Check whether --with-sysroot was given. 13000if test "${with_sysroot+set}" = set; then : 13001 withval=$with_sysroot; 13002else 13003 with_sysroot=no 13004fi 13005 13006 13007lt_sysroot= 13008case $with_sysroot in #( 13009 yes) 13010 if test yes = "$GCC"; then 13011 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13012 fi 13013 ;; #( 13014 /*) 13015 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13016 ;; #( 13017 no|'') 13018 ;; #( 13019 *) 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13021$as_echo "$with_sysroot" >&6; } 13022 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13023 ;; 13024esac 13025 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13027$as_echo "${lt_sysroot:-no}" >&6; } 13028 13029 13030 13031 13032 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13034$as_echo_n "checking for a working dd... " >&6; } 13035if ${ac_cv_path_lt_DD+:} false; then : 13036 $as_echo_n "(cached) " >&6 13037else 13038 printf 0123456789abcdef0123456789abcdef >conftest.i 13039cat conftest.i conftest.i >conftest2.i 13040: ${lt_DD:=$DD} 13041if test -z "$lt_DD"; then 13042 ac_path_lt_DD_found=false 13043 # Loop through the user's path and test for each of PROGNAME-LIST 13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13045for as_dir in $PATH 13046do 13047 IFS=$as_save_IFS 13048 test -z "$as_dir" && as_dir=. 13049 for ac_prog in dd; do 13050 for ac_exec_ext in '' $ac_executable_extensions; do 13051 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13052 as_fn_executable_p "$ac_path_lt_DD" || continue 13053if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13054 cmp -s conftest.i conftest.out \ 13055 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13056fi 13057 $ac_path_lt_DD_found && break 3 13058 done 13059 done 13060 done 13061IFS=$as_save_IFS 13062 if test -z "$ac_cv_path_lt_DD"; then 13063 : 13064 fi 13065else 13066 ac_cv_path_lt_DD=$lt_DD 13067fi 13068 13069rm -f conftest.i conftest2.i conftest.out 13070fi 13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13072$as_echo "$ac_cv_path_lt_DD" >&6; } 13073 13074 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13076$as_echo_n "checking how to truncate binary pipes... " >&6; } 13077if ${lt_cv_truncate_bin+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079else 13080 printf 0123456789abcdef0123456789abcdef >conftest.i 13081cat conftest.i conftest.i >conftest2.i 13082lt_cv_truncate_bin= 13083if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13084 cmp -s conftest.i conftest.out \ 13085 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13086fi 13087rm -f conftest.i conftest2.i conftest.out 13088test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13089fi 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13091$as_echo "$lt_cv_truncate_bin" >&6; } 13092 13093 13094 13095 13096 13097 13098 13099# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13100func_cc_basename () 13101{ 13102 for cc_temp in $*""; do 13103 case $cc_temp in 13104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13106 \-*) ;; 13107 *) break;; 13108 esac 13109 done 13110 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13111} 13112 13113# Check whether --enable-libtool-lock was given. 13114if test "${enable_libtool_lock+set}" = set; then : 13115 enableval=$enable_libtool_lock; 13116fi 13117 13118test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13119 13120# Some flags need to be propagated to the compiler or linker for good 13121# libtool support. 13122case $host in 13123ia64-*-hpux*) 13124 # Find out what ABI is being produced by ac_compile, and set mode 13125 # options accordingly. 13126 echo 'int i;' > conftest.$ac_ext 13127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13128 (eval $ac_compile) 2>&5 13129 ac_status=$? 13130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13131 test $ac_status = 0; }; then 13132 case `/usr/bin/file conftest.$ac_objext` in 13133 *ELF-32*) 13134 HPUX_IA64_MODE=32 13135 ;; 13136 *ELF-64*) 13137 HPUX_IA64_MODE=64 13138 ;; 13139 esac 13140 fi 13141 rm -rf conftest* 13142 ;; 13143*-*-irix6*) 13144 # Find out what ABI is being produced by ac_compile, and set linker 13145 # options accordingly. 13146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13148 (eval $ac_compile) 2>&5 13149 ac_status=$? 13150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13151 test $ac_status = 0; }; then 13152 if test yes = "$lt_cv_prog_gnu_ld"; then 13153 case `/usr/bin/file conftest.$ac_objext` in 13154 *32-bit*) 13155 LD="${LD-ld} -melf32bsmip" 13156 ;; 13157 *N32*) 13158 LD="${LD-ld} -melf32bmipn32" 13159 ;; 13160 *64-bit*) 13161 LD="${LD-ld} -melf64bmip" 13162 ;; 13163 esac 13164 else 13165 case `/usr/bin/file conftest.$ac_objext` in 13166 *32-bit*) 13167 LD="${LD-ld} -32" 13168 ;; 13169 *N32*) 13170 LD="${LD-ld} -n32" 13171 ;; 13172 *64-bit*) 13173 LD="${LD-ld} -64" 13174 ;; 13175 esac 13176 fi 13177 fi 13178 rm -rf conftest* 13179 ;; 13180 13181mips64*-*linux*) 13182 # Find out what ABI is being produced by ac_compile, and set linker 13183 # options accordingly. 13184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13186 (eval $ac_compile) 2>&5 13187 ac_status=$? 13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13189 test $ac_status = 0; }; then 13190 emul=elf 13191 case `/usr/bin/file conftest.$ac_objext` in 13192 *32-bit*) 13193 emul="${emul}32" 13194 ;; 13195 *64-bit*) 13196 emul="${emul}64" 13197 ;; 13198 esac 13199 case `/usr/bin/file conftest.$ac_objext` in 13200 *MSB*) 13201 emul="${emul}btsmip" 13202 ;; 13203 *LSB*) 13204 emul="${emul}ltsmip" 13205 ;; 13206 esac 13207 case `/usr/bin/file conftest.$ac_objext` in 13208 *N32*) 13209 emul="${emul}n32" 13210 ;; 13211 esac 13212 LD="${LD-ld} -m $emul" 13213 fi 13214 rm -rf conftest* 13215 ;; 13216 13217x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13218s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13219 # Find out what ABI is being produced by ac_compile, and set linker 13220 # options accordingly. Note that the listed cases only cover the 13221 # situations where additional linker options are needed (such as when 13222 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13223 # vice versa); the common cases where no linker options are needed do 13224 # not appear in the list. 13225 echo 'int i;' > conftest.$ac_ext 13226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13227 (eval $ac_compile) 2>&5 13228 ac_status=$? 13229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13230 test $ac_status = 0; }; then 13231 case `/usr/bin/file conftest.o` in 13232 *32-bit*) 13233 case $host in 13234 x86_64-*kfreebsd*-gnu) 13235 LD="${LD-ld} -m elf_i386_fbsd" 13236 ;; 13237 x86_64-*linux*) 13238 case `/usr/bin/file conftest.o` in 13239 *x86-64*) 13240 LD="${LD-ld} -m elf32_x86_64" 13241 ;; 13242 *) 13243 LD="${LD-ld} -m elf_i386" 13244 ;; 13245 esac 13246 ;; 13247 powerpc64le-*linux*) 13248 LD="${LD-ld} -m elf32lppclinux" 13249 ;; 13250 powerpc64-*linux*) 13251 LD="${LD-ld} -m elf32ppclinux" 13252 ;; 13253 s390x-*linux*) 13254 LD="${LD-ld} -m elf_s390" 13255 ;; 13256 sparc64-*linux*) 13257 LD="${LD-ld} -m elf32_sparc" 13258 ;; 13259 esac 13260 ;; 13261 *64-bit*) 13262 case $host in 13263 x86_64-*kfreebsd*-gnu) 13264 LD="${LD-ld} -m elf_x86_64_fbsd" 13265 ;; 13266 x86_64-*linux*) 13267 LD="${LD-ld} -m elf_x86_64" 13268 ;; 13269 powerpcle-*linux*) 13270 LD="${LD-ld} -m elf64lppc" 13271 ;; 13272 powerpc-*linux*) 13273 LD="${LD-ld} -m elf64ppc" 13274 ;; 13275 s390*-*linux*|s390*-*tpf*) 13276 LD="${LD-ld} -m elf64_s390" 13277 ;; 13278 sparc*-*linux*) 13279 LD="${LD-ld} -m elf64_sparc" 13280 ;; 13281 esac 13282 ;; 13283 esac 13284 fi 13285 rm -rf conftest* 13286 ;; 13287 13288*-*-sco3.2v5*) 13289 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13290 SAVE_CFLAGS=$CFLAGS 13291 CFLAGS="$CFLAGS -belf" 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13293$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13294if ${lt_cv_cc_needs_belf+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 ac_ext=c 13298ac_cpp='$CPP $CPPFLAGS' 13299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13301ac_compiler_gnu=$ac_cv_c_compiler_gnu 13302 13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13304/* end confdefs.h. */ 13305 13306int 13307main () 13308{ 13309 13310 ; 13311 return 0; 13312} 13313_ACEOF 13314if ac_fn_c_try_link "$LINENO"; then : 13315 lt_cv_cc_needs_belf=yes 13316else 13317 lt_cv_cc_needs_belf=no 13318fi 13319rm -f core conftest.err conftest.$ac_objext \ 13320 conftest$ac_exeext conftest.$ac_ext 13321 ac_ext=c 13322ac_cpp='$CPP $CPPFLAGS' 13323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13325ac_compiler_gnu=$ac_cv_c_compiler_gnu 13326 13327fi 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13329$as_echo "$lt_cv_cc_needs_belf" >&6; } 13330 if test yes != "$lt_cv_cc_needs_belf"; then 13331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13332 CFLAGS=$SAVE_CFLAGS 13333 fi 13334 ;; 13335*-*solaris*) 13336 # Find out what ABI is being produced by ac_compile, and set linker 13337 # options accordingly. 13338 echo 'int i;' > conftest.$ac_ext 13339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13340 (eval $ac_compile) 2>&5 13341 ac_status=$? 13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13343 test $ac_status = 0; }; then 13344 case `/usr/bin/file conftest.o` in 13345 *64-bit*) 13346 case $lt_cv_prog_gnu_ld in 13347 yes*) 13348 case $host in 13349 i?86-*-solaris*|x86_64-*-solaris*) 13350 LD="${LD-ld} -m elf_x86_64" 13351 ;; 13352 sparc*-*-solaris*) 13353 LD="${LD-ld} -m elf64_sparc" 13354 ;; 13355 esac 13356 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13357 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13358 LD=${LD-ld}_sol2 13359 fi 13360 ;; 13361 *) 13362 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13363 LD="${LD-ld} -64" 13364 fi 13365 ;; 13366 esac 13367 ;; 13368 esac 13369 fi 13370 rm -rf conftest* 13371 ;; 13372esac 13373 13374need_locks=$enable_libtool_lock 13375 13376if test -n "$ac_tool_prefix"; then 13377 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13378set dummy ${ac_tool_prefix}mt; ac_word=$2 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13380$as_echo_n "checking for $ac_word... " >&6; } 13381if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 if test -n "$MANIFEST_TOOL"; then 13385 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13386else 13387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13388for as_dir in $PATH 13389do 13390 IFS=$as_save_IFS 13391 test -z "$as_dir" && as_dir=. 13392 for ac_exec_ext in '' $ac_executable_extensions; do 13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13394 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13396 break 2 13397 fi 13398done 13399 done 13400IFS=$as_save_IFS 13401 13402fi 13403fi 13404MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13405if test -n "$MANIFEST_TOOL"; then 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13407$as_echo "$MANIFEST_TOOL" >&6; } 13408else 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13410$as_echo "no" >&6; } 13411fi 13412 13413 13414fi 13415if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13417 # Extract the first word of "mt", so it can be a program name with args. 13418set dummy mt; ac_word=$2 13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13420$as_echo_n "checking for $ac_word... " >&6; } 13421if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 if test -n "$ac_ct_MANIFEST_TOOL"; then 13425 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13426else 13427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13428for as_dir in $PATH 13429do 13430 IFS=$as_save_IFS 13431 test -z "$as_dir" && as_dir=. 13432 for ac_exec_ext in '' $ac_executable_extensions; do 13433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13434 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13436 break 2 13437 fi 13438done 13439 done 13440IFS=$as_save_IFS 13441 13442fi 13443fi 13444ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13445if test -n "$ac_ct_MANIFEST_TOOL"; then 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13447$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13448else 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13450$as_echo "no" >&6; } 13451fi 13452 13453 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13454 MANIFEST_TOOL=":" 13455 else 13456 case $cross_compiling:$ac_tool_warned in 13457yes:) 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13460ac_tool_warned=yes ;; 13461esac 13462 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13463 fi 13464else 13465 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13466fi 13467 13468test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13470$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13471if ${lt_cv_path_mainfest_tool+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 lt_cv_path_mainfest_tool=no 13475 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13476 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13477 cat conftest.err >&5 13478 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13479 lt_cv_path_mainfest_tool=yes 13480 fi 13481 rm -f conftest* 13482fi 13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13484$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13485if test yes != "$lt_cv_path_mainfest_tool"; then 13486 MANIFEST_TOOL=: 13487fi 13488 13489 13490 13491 13492 13493 13494 case $host_os in 13495 rhapsody* | darwin*) 13496 if test -n "$ac_tool_prefix"; then 13497 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13498set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13500$as_echo_n "checking for $ac_word... " >&6; } 13501if ${ac_cv_prog_DSYMUTIL+:} false; then : 13502 $as_echo_n "(cached) " >&6 13503else 13504 if test -n "$DSYMUTIL"; then 13505 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13506else 13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13508for as_dir in $PATH 13509do 13510 IFS=$as_save_IFS 13511 test -z "$as_dir" && as_dir=. 13512 for ac_exec_ext in '' $ac_executable_extensions; do 13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13514 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13516 break 2 13517 fi 13518done 13519 done 13520IFS=$as_save_IFS 13521 13522fi 13523fi 13524DSYMUTIL=$ac_cv_prog_DSYMUTIL 13525if test -n "$DSYMUTIL"; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13527$as_echo "$DSYMUTIL" >&6; } 13528else 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530$as_echo "no" >&6; } 13531fi 13532 13533 13534fi 13535if test -z "$ac_cv_prog_DSYMUTIL"; then 13536 ac_ct_DSYMUTIL=$DSYMUTIL 13537 # Extract the first word of "dsymutil", so it can be a program name with args. 13538set dummy dsymutil; ac_word=$2 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13540$as_echo_n "checking for $ac_word... " >&6; } 13541if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543else 13544 if test -n "$ac_ct_DSYMUTIL"; then 13545 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13546else 13547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13548for as_dir in $PATH 13549do 13550 IFS=$as_save_IFS 13551 test -z "$as_dir" && as_dir=. 13552 for ac_exec_ext in '' $ac_executable_extensions; do 13553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13554 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13556 break 2 13557 fi 13558done 13559 done 13560IFS=$as_save_IFS 13561 13562fi 13563fi 13564ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13565if test -n "$ac_ct_DSYMUTIL"; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13567$as_echo "$ac_ct_DSYMUTIL" >&6; } 13568else 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13570$as_echo "no" >&6; } 13571fi 13572 13573 if test "x$ac_ct_DSYMUTIL" = x; then 13574 DSYMUTIL=":" 13575 else 13576 case $cross_compiling:$ac_tool_warned in 13577yes:) 13578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13580ac_tool_warned=yes ;; 13581esac 13582 DSYMUTIL=$ac_ct_DSYMUTIL 13583 fi 13584else 13585 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13586fi 13587 13588 if test -n "$ac_tool_prefix"; then 13589 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13590set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13592$as_echo_n "checking for $ac_word... " >&6; } 13593if ${ac_cv_prog_NMEDIT+:} false; then : 13594 $as_echo_n "(cached) " >&6 13595else 13596 if test -n "$NMEDIT"; then 13597 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13598else 13599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13600for as_dir in $PATH 13601do 13602 IFS=$as_save_IFS 13603 test -z "$as_dir" && as_dir=. 13604 for ac_exec_ext in '' $ac_executable_extensions; do 13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13606 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13608 break 2 13609 fi 13610done 13611 done 13612IFS=$as_save_IFS 13613 13614fi 13615fi 13616NMEDIT=$ac_cv_prog_NMEDIT 13617if test -n "$NMEDIT"; then 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13619$as_echo "$NMEDIT" >&6; } 13620else 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13622$as_echo "no" >&6; } 13623fi 13624 13625 13626fi 13627if test -z "$ac_cv_prog_NMEDIT"; then 13628 ac_ct_NMEDIT=$NMEDIT 13629 # Extract the first word of "nmedit", so it can be a program name with args. 13630set dummy nmedit; ac_word=$2 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13632$as_echo_n "checking for $ac_word... " >&6; } 13633if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 if test -n "$ac_ct_NMEDIT"; then 13637 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13638else 13639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13640for as_dir in $PATH 13641do 13642 IFS=$as_save_IFS 13643 test -z "$as_dir" && as_dir=. 13644 for ac_exec_ext in '' $ac_executable_extensions; do 13645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13646 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13648 break 2 13649 fi 13650done 13651 done 13652IFS=$as_save_IFS 13653 13654fi 13655fi 13656ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13657if test -n "$ac_ct_NMEDIT"; then 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13659$as_echo "$ac_ct_NMEDIT" >&6; } 13660else 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13662$as_echo "no" >&6; } 13663fi 13664 13665 if test "x$ac_ct_NMEDIT" = x; then 13666 NMEDIT=":" 13667 else 13668 case $cross_compiling:$ac_tool_warned in 13669yes:) 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13672ac_tool_warned=yes ;; 13673esac 13674 NMEDIT=$ac_ct_NMEDIT 13675 fi 13676else 13677 NMEDIT="$ac_cv_prog_NMEDIT" 13678fi 13679 13680 if test -n "$ac_tool_prefix"; then 13681 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13682set dummy ${ac_tool_prefix}lipo; ac_word=$2 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13684$as_echo_n "checking for $ac_word... " >&6; } 13685if ${ac_cv_prog_LIPO+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 if test -n "$LIPO"; then 13689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13690else 13691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13692for as_dir in $PATH 13693do 13694 IFS=$as_save_IFS 13695 test -z "$as_dir" && as_dir=. 13696 for ac_exec_ext in '' $ac_executable_extensions; do 13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13698 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13700 break 2 13701 fi 13702done 13703 done 13704IFS=$as_save_IFS 13705 13706fi 13707fi 13708LIPO=$ac_cv_prog_LIPO 13709if test -n "$LIPO"; then 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13711$as_echo "$LIPO" >&6; } 13712else 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13714$as_echo "no" >&6; } 13715fi 13716 13717 13718fi 13719if test -z "$ac_cv_prog_LIPO"; then 13720 ac_ct_LIPO=$LIPO 13721 # Extract the first word of "lipo", so it can be a program name with args. 13722set dummy lipo; ac_word=$2 13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13724$as_echo_n "checking for $ac_word... " >&6; } 13725if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13726 $as_echo_n "(cached) " >&6 13727else 13728 if test -n "$ac_ct_LIPO"; then 13729 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13730else 13731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13732for as_dir in $PATH 13733do 13734 IFS=$as_save_IFS 13735 test -z "$as_dir" && as_dir=. 13736 for ac_exec_ext in '' $ac_executable_extensions; do 13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13738 ac_cv_prog_ac_ct_LIPO="lipo" 13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13740 break 2 13741 fi 13742done 13743 done 13744IFS=$as_save_IFS 13745 13746fi 13747fi 13748ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13749if test -n "$ac_ct_LIPO"; then 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13751$as_echo "$ac_ct_LIPO" >&6; } 13752else 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13754$as_echo "no" >&6; } 13755fi 13756 13757 if test "x$ac_ct_LIPO" = x; then 13758 LIPO=":" 13759 else 13760 case $cross_compiling:$ac_tool_warned in 13761yes:) 13762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13764ac_tool_warned=yes ;; 13765esac 13766 LIPO=$ac_ct_LIPO 13767 fi 13768else 13769 LIPO="$ac_cv_prog_LIPO" 13770fi 13771 13772 if test -n "$ac_tool_prefix"; then 13773 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13774set dummy ${ac_tool_prefix}otool; ac_word=$2 13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13776$as_echo_n "checking for $ac_word... " >&6; } 13777if ${ac_cv_prog_OTOOL+:} false; then : 13778 $as_echo_n "(cached) " >&6 13779else 13780 if test -n "$OTOOL"; then 13781 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13782else 13783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13784for as_dir in $PATH 13785do 13786 IFS=$as_save_IFS 13787 test -z "$as_dir" && as_dir=. 13788 for ac_exec_ext in '' $ac_executable_extensions; do 13789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13790 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13792 break 2 13793 fi 13794done 13795 done 13796IFS=$as_save_IFS 13797 13798fi 13799fi 13800OTOOL=$ac_cv_prog_OTOOL 13801if test -n "$OTOOL"; then 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13803$as_echo "$OTOOL" >&6; } 13804else 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13806$as_echo "no" >&6; } 13807fi 13808 13809 13810fi 13811if test -z "$ac_cv_prog_OTOOL"; then 13812 ac_ct_OTOOL=$OTOOL 13813 # Extract the first word of "otool", so it can be a program name with args. 13814set dummy otool; ac_word=$2 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13816$as_echo_n "checking for $ac_word... " >&6; } 13817if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13818 $as_echo_n "(cached) " >&6 13819else 13820 if test -n "$ac_ct_OTOOL"; then 13821 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13822else 13823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13824for as_dir in $PATH 13825do 13826 IFS=$as_save_IFS 13827 test -z "$as_dir" && as_dir=. 13828 for ac_exec_ext in '' $ac_executable_extensions; do 13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13830 ac_cv_prog_ac_ct_OTOOL="otool" 13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13832 break 2 13833 fi 13834done 13835 done 13836IFS=$as_save_IFS 13837 13838fi 13839fi 13840ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13841if test -n "$ac_ct_OTOOL"; then 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13843$as_echo "$ac_ct_OTOOL" >&6; } 13844else 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13846$as_echo "no" >&6; } 13847fi 13848 13849 if test "x$ac_ct_OTOOL" = x; then 13850 OTOOL=":" 13851 else 13852 case $cross_compiling:$ac_tool_warned in 13853yes:) 13854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13856ac_tool_warned=yes ;; 13857esac 13858 OTOOL=$ac_ct_OTOOL 13859 fi 13860else 13861 OTOOL="$ac_cv_prog_OTOOL" 13862fi 13863 13864 if test -n "$ac_tool_prefix"; then 13865 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13866set dummy ${ac_tool_prefix}otool64; ac_word=$2 13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13868$as_echo_n "checking for $ac_word... " >&6; } 13869if ${ac_cv_prog_OTOOL64+:} false; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 if test -n "$OTOOL64"; then 13873 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13874else 13875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13876for as_dir in $PATH 13877do 13878 IFS=$as_save_IFS 13879 test -z "$as_dir" && as_dir=. 13880 for ac_exec_ext in '' $ac_executable_extensions; do 13881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13882 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13884 break 2 13885 fi 13886done 13887 done 13888IFS=$as_save_IFS 13889 13890fi 13891fi 13892OTOOL64=$ac_cv_prog_OTOOL64 13893if test -n "$OTOOL64"; then 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13895$as_echo "$OTOOL64" >&6; } 13896else 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13898$as_echo "no" >&6; } 13899fi 13900 13901 13902fi 13903if test -z "$ac_cv_prog_OTOOL64"; then 13904 ac_ct_OTOOL64=$OTOOL64 13905 # Extract the first word of "otool64", so it can be a program name with args. 13906set dummy otool64; ac_word=$2 13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13908$as_echo_n "checking for $ac_word... " >&6; } 13909if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 if test -n "$ac_ct_OTOOL64"; then 13913 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13914else 13915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13916for as_dir in $PATH 13917do 13918 IFS=$as_save_IFS 13919 test -z "$as_dir" && as_dir=. 13920 for ac_exec_ext in '' $ac_executable_extensions; do 13921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13922 ac_cv_prog_ac_ct_OTOOL64="otool64" 13923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13924 break 2 13925 fi 13926done 13927 done 13928IFS=$as_save_IFS 13929 13930fi 13931fi 13932ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13933if test -n "$ac_ct_OTOOL64"; then 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13935$as_echo "$ac_ct_OTOOL64" >&6; } 13936else 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13938$as_echo "no" >&6; } 13939fi 13940 13941 if test "x$ac_ct_OTOOL64" = x; then 13942 OTOOL64=":" 13943 else 13944 case $cross_compiling:$ac_tool_warned in 13945yes:) 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13948ac_tool_warned=yes ;; 13949esac 13950 OTOOL64=$ac_ct_OTOOL64 13951 fi 13952else 13953 OTOOL64="$ac_cv_prog_OTOOL64" 13954fi 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13983$as_echo_n "checking for -single_module linker flag... " >&6; } 13984if ${lt_cv_apple_cc_single_mod+:} false; then : 13985 $as_echo_n "(cached) " >&6 13986else 13987 lt_cv_apple_cc_single_mod=no 13988 if test -z "$LT_MULTI_MODULE"; then 13989 # By default we will add the -single_module flag. You can override 13990 # by either setting the environment variable LT_MULTI_MODULE 13991 # non-empty at configure time, or by adding -multi_module to the 13992 # link flags. 13993 rm -rf libconftest.dylib* 13994 echo "int foo(void){return 1;}" > conftest.c 13995 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13996-dynamiclib -Wl,-single_module conftest.c" >&5 13997 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13998 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13999 _lt_result=$? 14000 # If there is a non-empty error log, and "single_module" 14001 # appears in it, assume the flag caused a linker warning 14002 if test -s conftest.err && $GREP single_module conftest.err; then 14003 cat conftest.err >&5 14004 # Otherwise, if the output was created with a 0 exit code from 14005 # the compiler, it worked. 14006 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14007 lt_cv_apple_cc_single_mod=yes 14008 else 14009 cat conftest.err >&5 14010 fi 14011 rm -rf libconftest.dylib* 14012 rm -f conftest.* 14013 fi 14014fi 14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14016$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14017 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14019$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14020if ${lt_cv_ld_exported_symbols_list+:} false; then : 14021 $as_echo_n "(cached) " >&6 14022else 14023 lt_cv_ld_exported_symbols_list=no 14024 save_LDFLAGS=$LDFLAGS 14025 echo "_main" > conftest.sym 14026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029 14030int 14031main () 14032{ 14033 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038if ac_fn_c_try_link "$LINENO"; then : 14039 lt_cv_ld_exported_symbols_list=yes 14040else 14041 lt_cv_ld_exported_symbols_list=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext \ 14044 conftest$ac_exeext conftest.$ac_ext 14045 LDFLAGS=$save_LDFLAGS 14046 14047fi 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14049$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14050 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14052$as_echo_n "checking for -force_load linker flag... " >&6; } 14053if ${lt_cv_ld_force_load+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055else 14056 lt_cv_ld_force_load=no 14057 cat > conftest.c << _LT_EOF 14058int forced_loaded() { return 2;} 14059_LT_EOF 14060 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14061 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14062 echo "$AR cru libconftest.a conftest.o" >&5 14063 $AR cru libconftest.a conftest.o 2>&5 14064 echo "$RANLIB libconftest.a" >&5 14065 $RANLIB libconftest.a 2>&5 14066 cat > conftest.c << _LT_EOF 14067int main() { return 0;} 14068_LT_EOF 14069 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14070 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14071 _lt_result=$? 14072 if test -s conftest.err && $GREP force_load conftest.err; then 14073 cat conftest.err >&5 14074 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14075 lt_cv_ld_force_load=yes 14076 else 14077 cat conftest.err >&5 14078 fi 14079 rm -f conftest.err libconftest.a conftest conftest.c 14080 rm -rf conftest.dSYM 14081 14082fi 14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14084$as_echo "$lt_cv_ld_force_load" >&6; } 14085 case $host_os in 14086 rhapsody* | darwin1.[012]) 14087 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14088 darwin1.*) 14089 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14090 darwin*) # darwin 5.x on 14091 # if running on 10.5 or later, the deployment target defaults 14092 # to the OS version, if on x86, and 10.4, the deployment 14093 # target defaults to 10.4. Don't you love it? 14094 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14095 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14096 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14097 10.[012][,.]*) 14098 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14099 10.*) 14100 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14101 esac 14102 ;; 14103 esac 14104 if test yes = "$lt_cv_apple_cc_single_mod"; then 14105 _lt_dar_single_mod='$single_module' 14106 fi 14107 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14108 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14109 else 14110 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14111 fi 14112 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14113 _lt_dsymutil='~$DSYMUTIL $lib || :' 14114 else 14115 _lt_dsymutil= 14116 fi 14117 ;; 14118 esac 14119 14120# func_munge_path_list VARIABLE PATH 14121# ----------------------------------- 14122# VARIABLE is name of variable containing _space_ separated list of 14123# directories to be munged by the contents of PATH, which is string 14124# having a format: 14125# "DIR[:DIR]:" 14126# string "DIR[ DIR]" will be prepended to VARIABLE 14127# ":DIR[:DIR]" 14128# string "DIR[ DIR]" will be appended to VARIABLE 14129# "DIRP[:DIRP]::[DIRA:]DIRA" 14130# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14131# "DIRA[ DIRA]" will be appended to VARIABLE 14132# "DIR[:DIR]" 14133# VARIABLE will be replaced by "DIR[ DIR]" 14134func_munge_path_list () 14135{ 14136 case x$2 in 14137 x) 14138 ;; 14139 *:) 14140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14141 ;; 14142 x:*) 14143 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14144 ;; 14145 *::*) 14146 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14147 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14148 ;; 14149 *) 14150 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14151 ;; 14152 esac 14153} 14154 14155for ac_header in dlfcn.h 14156do : 14157 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14158" 14159if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14160 cat >>confdefs.h <<_ACEOF 14161#define HAVE_DLFCN_H 1 14162_ACEOF 14163 14164fi 14165 14166done 14167 14168 14169 14170 14171 14172# Set options 14173 14174 14175 14176 enable_dlopen=no 14177 14178 14179 enable_win32_dll=no 14180 14181 14182 # Check whether --enable-shared was given. 14183if test "${enable_shared+set}" = set; then : 14184 enableval=$enable_shared; p=${PACKAGE-default} 14185 case $enableval in 14186 yes) enable_shared=yes ;; 14187 no) enable_shared=no ;; 14188 *) 14189 enable_shared=no 14190 # Look at the argument we got. We use all the common list separators. 14191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14192 for pkg in $enableval; do 14193 IFS=$lt_save_ifs 14194 if test "X$pkg" = "X$p"; then 14195 enable_shared=yes 14196 fi 14197 done 14198 IFS=$lt_save_ifs 14199 ;; 14200 esac 14201else 14202 enable_shared=yes 14203fi 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215# Check whether --with-pic was given. 14216if test "${with_pic+set}" = set; then : 14217 withval=$with_pic; lt_p=${PACKAGE-default} 14218 case $withval in 14219 yes|no) pic_mode=$withval ;; 14220 *) 14221 pic_mode=default 14222 # Look at the argument we got. We use all the common list separators. 14223 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14224 for lt_pkg in $withval; do 14225 IFS=$lt_save_ifs 14226 if test "X$lt_pkg" = "X$lt_p"; then 14227 pic_mode=yes 14228 fi 14229 done 14230 IFS=$lt_save_ifs 14231 ;; 14232 esac 14233else 14234 pic_mode=default 14235fi 14236 14237 14238 14239 14240 14241 14242 14243 14244 # Check whether --enable-fast-install was given. 14245if test "${enable_fast_install+set}" = set; then : 14246 enableval=$enable_fast_install; p=${PACKAGE-default} 14247 case $enableval in 14248 yes) enable_fast_install=yes ;; 14249 no) enable_fast_install=no ;; 14250 *) 14251 enable_fast_install=no 14252 # Look at the argument we got. We use all the common list separators. 14253 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14254 for pkg in $enableval; do 14255 IFS=$lt_save_ifs 14256 if test "X$pkg" = "X$p"; then 14257 enable_fast_install=yes 14258 fi 14259 done 14260 IFS=$lt_save_ifs 14261 ;; 14262 esac 14263else 14264 enable_fast_install=yes 14265fi 14266 14267 14268 14269 14270 14271 14272 14273 14274 shared_archive_member_spec= 14275case $host,$enable_shared in 14276power*-*-aix[5-9]*,yes) 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14278$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14279 14280# Check whether --with-aix-soname was given. 14281if test "${with_aix_soname+set}" = set; then : 14282 withval=$with_aix_soname; case $withval in 14283 aix|svr4|both) 14284 ;; 14285 *) 14286 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14287 ;; 14288 esac 14289 lt_cv_with_aix_soname=$with_aix_soname 14290else 14291 if ${lt_cv_with_aix_soname+:} false; then : 14292 $as_echo_n "(cached) " >&6 14293else 14294 lt_cv_with_aix_soname=aix 14295fi 14296 14297 with_aix_soname=$lt_cv_with_aix_soname 14298fi 14299 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14301$as_echo "$with_aix_soname" >&6; } 14302 if test aix != "$with_aix_soname"; then 14303 # For the AIX way of multilib, we name the shared archive member 14304 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14305 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14306 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14307 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14308 if test 64 = "${OBJECT_MODE-32}"; then 14309 shared_archive_member_spec=shr_64 14310 else 14311 shared_archive_member_spec=shr 14312 fi 14313 fi 14314 ;; 14315*) 14316 with_aix_soname=aix 14317 ;; 14318esac 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329# This can be used to rebuild libtool when needed 14330LIBTOOL_DEPS=$ltmain 14331 14332# Always use our own libtool. 14333LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364test -z "$LN_S" && LN_S="ln -s" 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379if test -n "${ZSH_VERSION+set}"; then 14380 setopt NO_GLOB_SUBST 14381fi 14382 14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14384$as_echo_n "checking for objdir... " >&6; } 14385if ${lt_cv_objdir+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387else 14388 rm -f .libs 2>/dev/null 14389mkdir .libs 2>/dev/null 14390if test -d .libs; then 14391 lt_cv_objdir=.libs 14392else 14393 # MS-DOS does not allow filenames that begin with a dot. 14394 lt_cv_objdir=_libs 14395fi 14396rmdir .libs 2>/dev/null 14397fi 14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14399$as_echo "$lt_cv_objdir" >&6; } 14400objdir=$lt_cv_objdir 14401 14402 14403 14404 14405 14406cat >>confdefs.h <<_ACEOF 14407#define LT_OBJDIR "$lt_cv_objdir/" 14408_ACEOF 14409 14410 14411 14412 14413case $host_os in 14414aix3*) 14415 # AIX sometimes has problems with the GCC collect2 program. For some 14416 # reason, if we set the COLLECT_NAMES environment variable, the problems 14417 # vanish in a puff of smoke. 14418 if test set != "${COLLECT_NAMES+set}"; then 14419 COLLECT_NAMES= 14420 export COLLECT_NAMES 14421 fi 14422 ;; 14423esac 14424 14425# Global variables: 14426ofile=libtool 14427can_build_shared=yes 14428 14429# All known linkers require a '.a' archive for static linking (except MSVC, 14430# which needs '.lib'). 14431libext=a 14432 14433with_gnu_ld=$lt_cv_prog_gnu_ld 14434 14435old_CC=$CC 14436old_CFLAGS=$CFLAGS 14437 14438# Set sane defaults for various variables 14439test -z "$CC" && CC=cc 14440test -z "$LTCC" && LTCC=$CC 14441test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14442test -z "$LD" && LD=ld 14443test -z "$ac_objext" && ac_objext=o 14444 14445func_cc_basename $compiler 14446cc_basename=$func_cc_basename_result 14447 14448 14449# Only perform the check for file, if the check method requires it 14450test -z "$MAGIC_CMD" && MAGIC_CMD=file 14451case $deplibs_check_method in 14452file_magic*) 14453 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14455$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14456if ${lt_cv_path_MAGIC_CMD+:} false; then : 14457 $as_echo_n "(cached) " >&6 14458else 14459 case $MAGIC_CMD in 14460[\\/*] | ?:[\\/]*) 14461 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14462 ;; 14463*) 14464 lt_save_MAGIC_CMD=$MAGIC_CMD 14465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14467 for ac_dir in $ac_dummy; do 14468 IFS=$lt_save_ifs 14469 test -z "$ac_dir" && ac_dir=. 14470 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14471 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14472 if test -n "$file_magic_test_file"; then 14473 case $deplibs_check_method in 14474 "file_magic "*) 14475 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14476 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14478 $EGREP "$file_magic_regex" > /dev/null; then 14479 : 14480 else 14481 cat <<_LT_EOF 1>&2 14482 14483*** Warning: the command libtool uses to detect shared libraries, 14484*** $file_magic_cmd, produces output that libtool cannot recognize. 14485*** The result is that libtool may fail to recognize shared libraries 14486*** as such. This will affect the creation of libtool libraries that 14487*** depend on shared libraries, but programs linked with such libtool 14488*** libraries will work regardless of this problem. Nevertheless, you 14489*** may want to report the problem to your system manager and/or to 14490*** bug-libtool@gnu.org 14491 14492_LT_EOF 14493 fi ;; 14494 esac 14495 fi 14496 break 14497 fi 14498 done 14499 IFS=$lt_save_ifs 14500 MAGIC_CMD=$lt_save_MAGIC_CMD 14501 ;; 14502esac 14503fi 14504 14505MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14506if test -n "$MAGIC_CMD"; then 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14508$as_echo "$MAGIC_CMD" >&6; } 14509else 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14511$as_echo "no" >&6; } 14512fi 14513 14514 14515 14516 14517 14518if test -z "$lt_cv_path_MAGIC_CMD"; then 14519 if test -n "$ac_tool_prefix"; then 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14521$as_echo_n "checking for file... " >&6; } 14522if ${lt_cv_path_MAGIC_CMD+:} false; then : 14523 $as_echo_n "(cached) " >&6 14524else 14525 case $MAGIC_CMD in 14526[\\/*] | ?:[\\/]*) 14527 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14528 ;; 14529*) 14530 lt_save_MAGIC_CMD=$MAGIC_CMD 14531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14533 for ac_dir in $ac_dummy; do 14534 IFS=$lt_save_ifs 14535 test -z "$ac_dir" && ac_dir=. 14536 if test -f "$ac_dir/file"; then 14537 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14538 if test -n "$file_magic_test_file"; then 14539 case $deplibs_check_method in 14540 "file_magic "*) 14541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14542 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14544 $EGREP "$file_magic_regex" > /dev/null; then 14545 : 14546 else 14547 cat <<_LT_EOF 1>&2 14548 14549*** Warning: the command libtool uses to detect shared libraries, 14550*** $file_magic_cmd, produces output that libtool cannot recognize. 14551*** The result is that libtool may fail to recognize shared libraries 14552*** as such. This will affect the creation of libtool libraries that 14553*** depend on shared libraries, but programs linked with such libtool 14554*** libraries will work regardless of this problem. Nevertheless, you 14555*** may want to report the problem to your system manager and/or to 14556*** bug-libtool@gnu.org 14557 14558_LT_EOF 14559 fi ;; 14560 esac 14561 fi 14562 break 14563 fi 14564 done 14565 IFS=$lt_save_ifs 14566 MAGIC_CMD=$lt_save_MAGIC_CMD 14567 ;; 14568esac 14569fi 14570 14571MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14572if test -n "$MAGIC_CMD"; then 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14574$as_echo "$MAGIC_CMD" >&6; } 14575else 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14577$as_echo "no" >&6; } 14578fi 14579 14580 14581 else 14582 MAGIC_CMD=: 14583 fi 14584fi 14585 14586 fi 14587 ;; 14588esac 14589 14590# Use C for the default configuration in the libtool script 14591 14592lt_save_CC=$CC 14593ac_ext=c 14594ac_cpp='$CPP $CPPFLAGS' 14595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14597ac_compiler_gnu=$ac_cv_c_compiler_gnu 14598 14599 14600# Source file extension for C test sources. 14601ac_ext=c 14602 14603# Object file extension for compiled C test sources. 14604objext=o 14605objext=$objext 14606 14607# Code to be used in simple compile tests 14608lt_simple_compile_test_code="int some_variable = 0;" 14609 14610# Code to be used in simple link tests 14611lt_simple_link_test_code='int main(){return(0);}' 14612 14613 14614 14615 14616 14617 14618 14619# If no C compiler was specified, use CC. 14620LTCC=${LTCC-"$CC"} 14621 14622# If no C compiler flags were specified, use CFLAGS. 14623LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14624 14625# Allow CC to be a program name with arguments. 14626compiler=$CC 14627 14628# Save the default compiler, since it gets overwritten when the other 14629# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14630compiler_DEFAULT=$CC 14631 14632# save warnings/boilerplate of simple test code 14633ac_outfile=conftest.$ac_objext 14634echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14635eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14636_lt_compiler_boilerplate=`cat conftest.err` 14637$RM conftest* 14638 14639ac_outfile=conftest.$ac_objext 14640echo "$lt_simple_link_test_code" >conftest.$ac_ext 14641eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14642_lt_linker_boilerplate=`cat conftest.err` 14643$RM -r conftest* 14644 14645 14646if test -n "$compiler"; then 14647 14648lt_prog_compiler_no_builtin_flag= 14649 14650if test yes = "$GCC"; then 14651 case $cc_basename in 14652 nvcc*) 14653 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14654 *) 14655 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14656 esac 14657 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14659$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14660if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14661 $as_echo_n "(cached) " >&6 14662else 14663 lt_cv_prog_compiler_rtti_exceptions=no 14664 ac_outfile=conftest.$ac_objext 14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14666 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14667 # Insert the option either (1) after the last *FLAGS variable, or 14668 # (2) before a word containing "conftest.", or (3) at the end. 14669 # Note that $ac_compile itself does not contain backslashes and begins 14670 # with a dollar sign (not a hyphen), so the echo should work correctly. 14671 # The option is referenced via a variable to avoid confusing sed. 14672 lt_compile=`echo "$ac_compile" | $SED \ 14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14675 -e 's:$: $lt_compiler_flag:'` 14676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14677 (eval "$lt_compile" 2>conftest.err) 14678 ac_status=$? 14679 cat conftest.err >&5 14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14681 if (exit $ac_status) && test -s "$ac_outfile"; then 14682 # The compiler can only warn and ignore the option if not recognized 14683 # So say no if there are warnings other than the usual output. 14684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14687 lt_cv_prog_compiler_rtti_exceptions=yes 14688 fi 14689 fi 14690 $RM conftest* 14691 14692fi 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14694$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14695 14696if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14698else 14699 : 14700fi 14701 14702fi 14703 14704 14705 14706 14707 14708 14709 lt_prog_compiler_wl= 14710lt_prog_compiler_pic= 14711lt_prog_compiler_static= 14712 14713 14714 if test yes = "$GCC"; then 14715 lt_prog_compiler_wl='-Wl,' 14716 lt_prog_compiler_static='-static' 14717 14718 case $host_os in 14719 aix*) 14720 # All AIX code is PIC. 14721 if test ia64 = "$host_cpu"; then 14722 # AIX 5 now supports IA64 processor 14723 lt_prog_compiler_static='-Bstatic' 14724 fi 14725 lt_prog_compiler_pic='-fPIC' 14726 ;; 14727 14728 amigaos*) 14729 case $host_cpu in 14730 powerpc) 14731 # see comment about AmigaOS4 .so support 14732 lt_prog_compiler_pic='-fPIC' 14733 ;; 14734 m68k) 14735 # FIXME: we need at least 68020 code to build shared libraries, but 14736 # adding the '-m68020' flag to GCC prevents building anything better, 14737 # like '-m68040'. 14738 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14739 ;; 14740 esac 14741 ;; 14742 14743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14744 # PIC is the default for these OSes. 14745 ;; 14746 14747 mingw* | cygwin* | pw32* | os2* | cegcc*) 14748 # This hack is so that the source file can tell whether it is being 14749 # built for inclusion in a dll (and should export symbols for example). 14750 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14751 # (--disable-auto-import) libraries 14752 lt_prog_compiler_pic='-DDLL_EXPORT' 14753 case $host_os in 14754 os2*) 14755 lt_prog_compiler_static='$wl-static' 14756 ;; 14757 esac 14758 ;; 14759 14760 darwin* | rhapsody*) 14761 # PIC is the default on this platform 14762 # Common symbols not allowed in MH_DYLIB files 14763 lt_prog_compiler_pic='-fno-common' 14764 ;; 14765 14766 haiku*) 14767 # PIC is the default for Haiku. 14768 # The "-static" flag exists, but is broken. 14769 lt_prog_compiler_static= 14770 ;; 14771 14772 hpux*) 14773 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14774 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14775 # sets the default TLS model and affects inlining. 14776 case $host_cpu in 14777 hppa*64*) 14778 # +Z the default 14779 ;; 14780 *) 14781 lt_prog_compiler_pic='-fPIC' 14782 ;; 14783 esac 14784 ;; 14785 14786 interix[3-9]*) 14787 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14788 # Instead, we relocate shared libraries at runtime. 14789 ;; 14790 14791 msdosdjgpp*) 14792 # Just because we use GCC doesn't mean we suddenly get shared libraries 14793 # on systems that don't support them. 14794 lt_prog_compiler_can_build_shared=no 14795 enable_shared=no 14796 ;; 14797 14798 *nto* | *qnx*) 14799 # QNX uses GNU C++, but need to define -shared option too, otherwise 14800 # it will coredump. 14801 lt_prog_compiler_pic='-fPIC -shared' 14802 ;; 14803 14804 sysv4*MP*) 14805 if test -d /usr/nec; then 14806 lt_prog_compiler_pic=-Kconform_pic 14807 fi 14808 ;; 14809 14810 *) 14811 lt_prog_compiler_pic='-fPIC' 14812 ;; 14813 esac 14814 14815 case $cc_basename in 14816 nvcc*) # Cuda Compiler Driver 2.2 14817 lt_prog_compiler_wl='-Xlinker ' 14818 if test -n "$lt_prog_compiler_pic"; then 14819 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14820 fi 14821 ;; 14822 esac 14823 else 14824 # PORTME Check for flag to pass linker flags through the system compiler. 14825 case $host_os in 14826 aix*) 14827 lt_prog_compiler_wl='-Wl,' 14828 if test ia64 = "$host_cpu"; then 14829 # AIX 5 now supports IA64 processor 14830 lt_prog_compiler_static='-Bstatic' 14831 else 14832 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14833 fi 14834 ;; 14835 14836 darwin* | rhapsody*) 14837 # PIC is the default on this platform 14838 # Common symbols not allowed in MH_DYLIB files 14839 lt_prog_compiler_pic='-fno-common' 14840 case $cc_basename in 14841 nagfor*) 14842 # NAG Fortran compiler 14843 lt_prog_compiler_wl='-Wl,-Wl,,' 14844 lt_prog_compiler_pic='-PIC' 14845 lt_prog_compiler_static='-Bstatic' 14846 ;; 14847 esac 14848 ;; 14849 14850 mingw* | cygwin* | pw32* | os2* | cegcc*) 14851 # This hack is so that the source file can tell whether it is being 14852 # built for inclusion in a dll (and should export symbols for example). 14853 lt_prog_compiler_pic='-DDLL_EXPORT' 14854 case $host_os in 14855 os2*) 14856 lt_prog_compiler_static='$wl-static' 14857 ;; 14858 esac 14859 ;; 14860 14861 hpux9* | hpux10* | hpux11*) 14862 lt_prog_compiler_wl='-Wl,' 14863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14864 # not for PA HP-UX. 14865 case $host_cpu in 14866 hppa*64*|ia64*) 14867 # +Z the default 14868 ;; 14869 *) 14870 lt_prog_compiler_pic='+Z' 14871 ;; 14872 esac 14873 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14874 lt_prog_compiler_static='$wl-a ${wl}archive' 14875 ;; 14876 14877 irix5* | irix6* | nonstopux*) 14878 lt_prog_compiler_wl='-Wl,' 14879 # PIC (with -KPIC) is the default. 14880 lt_prog_compiler_static='-non_shared' 14881 ;; 14882 14883 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14884 case $cc_basename in 14885 # old Intel for x86_64, which still supported -KPIC. 14886 ecc*) 14887 lt_prog_compiler_wl='-Wl,' 14888 lt_prog_compiler_pic='-KPIC' 14889 lt_prog_compiler_static='-static' 14890 ;; 14891 # icc used to be incompatible with GCC. 14892 # ICC 10 doesn't accept -KPIC any more. 14893 icc* | ifort*) 14894 lt_prog_compiler_wl='-Wl,' 14895 lt_prog_compiler_pic='-fPIC' 14896 lt_prog_compiler_static='-static' 14897 ;; 14898 # Lahey Fortran 8.1. 14899 lf95*) 14900 lt_prog_compiler_wl='-Wl,' 14901 lt_prog_compiler_pic='--shared' 14902 lt_prog_compiler_static='--static' 14903 ;; 14904 nagfor*) 14905 # NAG Fortran compiler 14906 lt_prog_compiler_wl='-Wl,-Wl,,' 14907 lt_prog_compiler_pic='-PIC' 14908 lt_prog_compiler_static='-Bstatic' 14909 ;; 14910 tcc*) 14911 # Fabrice Bellard et al's Tiny C Compiler 14912 lt_prog_compiler_wl='-Wl,' 14913 lt_prog_compiler_pic='-fPIC' 14914 lt_prog_compiler_static='-static' 14915 ;; 14916 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14917 # Portland Group compilers (*not* the Pentium gcc compiler, 14918 # which looks to be a dead project) 14919 lt_prog_compiler_wl='-Wl,' 14920 lt_prog_compiler_pic='-fpic' 14921 lt_prog_compiler_static='-Bstatic' 14922 ;; 14923 ccc*) 14924 lt_prog_compiler_wl='-Wl,' 14925 # All Alpha code is PIC. 14926 lt_prog_compiler_static='-non_shared' 14927 ;; 14928 xl* | bgxl* | bgf* | mpixl*) 14929 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14930 lt_prog_compiler_wl='-Wl,' 14931 lt_prog_compiler_pic='-qpic' 14932 lt_prog_compiler_static='-qstaticlink' 14933 ;; 14934 *) 14935 case `$CC -V 2>&1 | sed 5q` in 14936 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14937 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14938 lt_prog_compiler_pic='-KPIC' 14939 lt_prog_compiler_static='-Bstatic' 14940 lt_prog_compiler_wl='' 14941 ;; 14942 *Sun\ F* | *Sun*Fortran*) 14943 lt_prog_compiler_pic='-KPIC' 14944 lt_prog_compiler_static='-Bstatic' 14945 lt_prog_compiler_wl='-Qoption ld ' 14946 ;; 14947 *Sun\ C*) 14948 # Sun C 5.9 14949 lt_prog_compiler_pic='-KPIC' 14950 lt_prog_compiler_static='-Bstatic' 14951 lt_prog_compiler_wl='-Wl,' 14952 ;; 14953 *Intel*\ [CF]*Compiler*) 14954 lt_prog_compiler_wl='-Wl,' 14955 lt_prog_compiler_pic='-fPIC' 14956 lt_prog_compiler_static='-static' 14957 ;; 14958 *Portland\ Group*) 14959 lt_prog_compiler_wl='-Wl,' 14960 lt_prog_compiler_pic='-fpic' 14961 lt_prog_compiler_static='-Bstatic' 14962 ;; 14963 esac 14964 ;; 14965 esac 14966 ;; 14967 14968 newsos6) 14969 lt_prog_compiler_pic='-KPIC' 14970 lt_prog_compiler_static='-Bstatic' 14971 ;; 14972 14973 *nto* | *qnx*) 14974 # QNX uses GNU C++, but need to define -shared option too, otherwise 14975 # it will coredump. 14976 lt_prog_compiler_pic='-fPIC -shared' 14977 ;; 14978 14979 osf3* | osf4* | osf5*) 14980 lt_prog_compiler_wl='-Wl,' 14981 # All OSF/1 code is PIC. 14982 lt_prog_compiler_static='-non_shared' 14983 ;; 14984 14985 rdos*) 14986 lt_prog_compiler_static='-non_shared' 14987 ;; 14988 14989 solaris*) 14990 lt_prog_compiler_pic='-KPIC' 14991 lt_prog_compiler_static='-Bstatic' 14992 case $cc_basename in 14993 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14994 lt_prog_compiler_wl='-Qoption ld ';; 14995 *) 14996 lt_prog_compiler_wl='-Wl,';; 14997 esac 14998 ;; 14999 15000 sunos4*) 15001 lt_prog_compiler_wl='-Qoption ld ' 15002 lt_prog_compiler_pic='-PIC' 15003 lt_prog_compiler_static='-Bstatic' 15004 ;; 15005 15006 sysv4 | sysv4.2uw2* | sysv4.3*) 15007 lt_prog_compiler_wl='-Wl,' 15008 lt_prog_compiler_pic='-KPIC' 15009 lt_prog_compiler_static='-Bstatic' 15010 ;; 15011 15012 sysv4*MP*) 15013 if test -d /usr/nec; then 15014 lt_prog_compiler_pic='-Kconform_pic' 15015 lt_prog_compiler_static='-Bstatic' 15016 fi 15017 ;; 15018 15019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15020 lt_prog_compiler_wl='-Wl,' 15021 lt_prog_compiler_pic='-KPIC' 15022 lt_prog_compiler_static='-Bstatic' 15023 ;; 15024 15025 unicos*) 15026 lt_prog_compiler_wl='-Wl,' 15027 lt_prog_compiler_can_build_shared=no 15028 ;; 15029 15030 uts4*) 15031 lt_prog_compiler_pic='-pic' 15032 lt_prog_compiler_static='-Bstatic' 15033 ;; 15034 15035 *) 15036 lt_prog_compiler_can_build_shared=no 15037 ;; 15038 esac 15039 fi 15040 15041case $host_os in 15042 # For platforms that do not support PIC, -DPIC is meaningless: 15043 *djgpp*) 15044 lt_prog_compiler_pic= 15045 ;; 15046 *) 15047 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15048 ;; 15049esac 15050 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15052$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15053if ${lt_cv_prog_compiler_pic+:} false; then : 15054 $as_echo_n "(cached) " >&6 15055else 15056 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15057fi 15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15059$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15060lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15061 15062# 15063# Check to make sure the PIC flag actually works. 15064# 15065if test -n "$lt_prog_compiler_pic"; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15067$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15068if ${lt_cv_prog_compiler_pic_works+:} false; then : 15069 $as_echo_n "(cached) " >&6 15070else 15071 lt_cv_prog_compiler_pic_works=no 15072 ac_outfile=conftest.$ac_objext 15073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15074 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15075 # Insert the option either (1) after the last *FLAGS variable, or 15076 # (2) before a word containing "conftest.", or (3) at the end. 15077 # Note that $ac_compile itself does not contain backslashes and begins 15078 # with a dollar sign (not a hyphen), so the echo should work correctly. 15079 # The option is referenced via a variable to avoid confusing sed. 15080 lt_compile=`echo "$ac_compile" | $SED \ 15081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15083 -e 's:$: $lt_compiler_flag:'` 15084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15085 (eval "$lt_compile" 2>conftest.err) 15086 ac_status=$? 15087 cat conftest.err >&5 15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 if (exit $ac_status) && test -s "$ac_outfile"; then 15090 # The compiler can only warn and ignore the option if not recognized 15091 # So say no if there are warnings other than the usual output. 15092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15095 lt_cv_prog_compiler_pic_works=yes 15096 fi 15097 fi 15098 $RM conftest* 15099 15100fi 15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15102$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15103 15104if test yes = "$lt_cv_prog_compiler_pic_works"; then 15105 case $lt_prog_compiler_pic in 15106 "" | " "*) ;; 15107 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15108 esac 15109else 15110 lt_prog_compiler_pic= 15111 lt_prog_compiler_can_build_shared=no 15112fi 15113 15114fi 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126# 15127# Check to make sure the static flag actually works. 15128# 15129wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15131$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15132if ${lt_cv_prog_compiler_static_works+:} false; then : 15133 $as_echo_n "(cached) " >&6 15134else 15135 lt_cv_prog_compiler_static_works=no 15136 save_LDFLAGS=$LDFLAGS 15137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15138 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15140 # The linker can only warn and ignore the option if not recognized 15141 # So say no if there are warnings 15142 if test -s conftest.err; then 15143 # Append any errors to the config.log. 15144 cat conftest.err 1>&5 15145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15147 if diff conftest.exp conftest.er2 >/dev/null; then 15148 lt_cv_prog_compiler_static_works=yes 15149 fi 15150 else 15151 lt_cv_prog_compiler_static_works=yes 15152 fi 15153 fi 15154 $RM -r conftest* 15155 LDFLAGS=$save_LDFLAGS 15156 15157fi 15158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15159$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15160 15161if test yes = "$lt_cv_prog_compiler_static_works"; then 15162 : 15163else 15164 lt_prog_compiler_static= 15165fi 15166 15167 15168 15169 15170 15171 15172 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15175if ${lt_cv_prog_compiler_c_o+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 lt_cv_prog_compiler_c_o=no 15179 $RM -r conftest 2>/dev/null 15180 mkdir conftest 15181 cd conftest 15182 mkdir out 15183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15184 15185 lt_compiler_flag="-o out/conftest2.$ac_objext" 15186 # Insert the option either (1) after the last *FLAGS variable, or 15187 # (2) before a word containing "conftest.", or (3) at the end. 15188 # Note that $ac_compile itself does not contain backslashes and begins 15189 # with a dollar sign (not a hyphen), so the echo should work correctly. 15190 lt_compile=`echo "$ac_compile" | $SED \ 15191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15193 -e 's:$: $lt_compiler_flag:'` 15194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15195 (eval "$lt_compile" 2>out/conftest.err) 15196 ac_status=$? 15197 cat out/conftest.err >&5 15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15199 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15200 then 15201 # The compiler can only warn and ignore the option if not recognized 15202 # So say no if there are warnings 15203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15206 lt_cv_prog_compiler_c_o=yes 15207 fi 15208 fi 15209 chmod u+w . 2>&5 15210 $RM conftest* 15211 # SGI C++ compiler will create directory out/ii_files/ for 15212 # template instantiation 15213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15214 $RM out/* && rmdir out 15215 cd .. 15216 $RM -r conftest 15217 $RM conftest* 15218 15219fi 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15221$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15222 15223 15224 15225 15226 15227 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15229$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15230if ${lt_cv_prog_compiler_c_o+:} false; then : 15231 $as_echo_n "(cached) " >&6 15232else 15233 lt_cv_prog_compiler_c_o=no 15234 $RM -r conftest 2>/dev/null 15235 mkdir conftest 15236 cd conftest 15237 mkdir out 15238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15239 15240 lt_compiler_flag="-o out/conftest2.$ac_objext" 15241 # Insert the option either (1) after the last *FLAGS variable, or 15242 # (2) before a word containing "conftest.", or (3) at the end. 15243 # Note that $ac_compile itself does not contain backslashes and begins 15244 # with a dollar sign (not a hyphen), so the echo should work correctly. 15245 lt_compile=`echo "$ac_compile" | $SED \ 15246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15248 -e 's:$: $lt_compiler_flag:'` 15249 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15250 (eval "$lt_compile" 2>out/conftest.err) 15251 ac_status=$? 15252 cat out/conftest.err >&5 15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15254 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15255 then 15256 # The compiler can only warn and ignore the option if not recognized 15257 # So say no if there are warnings 15258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15261 lt_cv_prog_compiler_c_o=yes 15262 fi 15263 fi 15264 chmod u+w . 2>&5 15265 $RM conftest* 15266 # SGI C++ compiler will create directory out/ii_files/ for 15267 # template instantiation 15268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15269 $RM out/* && rmdir out 15270 cd .. 15271 $RM -r conftest 15272 $RM conftest* 15273 15274fi 15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15276$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15277 15278 15279 15280 15281hard_links=nottested 15282if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15283 # do not overwrite the value of need_locks provided by the user 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15285$as_echo_n "checking if we can lock with hard links... " >&6; } 15286 hard_links=yes 15287 $RM conftest* 15288 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15289 touch conftest.a 15290 ln conftest.a conftest.b 2>&5 || hard_links=no 15291 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15293$as_echo "$hard_links" >&6; } 15294 if test no = "$hard_links"; then 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15296$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15297 need_locks=warn 15298 fi 15299else 15300 need_locks=no 15301fi 15302 15303 15304 15305 15306 15307 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15309$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15310 15311 runpath_var= 15312 allow_undefined_flag= 15313 always_export_symbols=no 15314 archive_cmds= 15315 archive_expsym_cmds= 15316 compiler_needs_object=no 15317 enable_shared_with_static_runtimes=no 15318 export_dynamic_flag_spec= 15319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15320 hardcode_automatic=no 15321 hardcode_direct=no 15322 hardcode_direct_absolute=no 15323 hardcode_libdir_flag_spec= 15324 hardcode_libdir_separator= 15325 hardcode_minus_L=no 15326 hardcode_shlibpath_var=unsupported 15327 inherit_rpath=no 15328 link_all_deplibs=unknown 15329 module_cmds= 15330 module_expsym_cmds= 15331 old_archive_from_new_cmds= 15332 old_archive_from_expsyms_cmds= 15333 thread_safe_flag_spec= 15334 whole_archive_flag_spec= 15335 # include_expsyms should be a list of space-separated symbols to be *always* 15336 # included in the symbol list 15337 include_expsyms= 15338 # exclude_expsyms can be an extended regexp of symbols to exclude 15339 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15340 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15341 # as well as any symbol that contains 'd'. 15342 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15343 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15344 # platforms (ab)use it in PIC code, but their linkers get confused if 15345 # the symbol is explicitly referenced. Since portable code cannot 15346 # rely on this symbol name, it's probably fine to never include it in 15347 # preloaded symbol tables. 15348 # Exclude shared library initialization/finalization symbols. 15349 extract_expsyms_cmds= 15350 15351 case $host_os in 15352 cygwin* | mingw* | pw32* | cegcc*) 15353 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15354 # When not using gcc, we currently assume that we are using 15355 # Microsoft Visual C++. 15356 if test yes != "$GCC"; then 15357 with_gnu_ld=no 15358 fi 15359 ;; 15360 interix*) 15361 # we just hope/assume this is gcc and not c89 (= MSVC++) 15362 with_gnu_ld=yes 15363 ;; 15364 openbsd* | bitrig*) 15365 with_gnu_ld=no 15366 ;; 15367 esac 15368 15369 ld_shlibs=yes 15370 15371 # On some targets, GNU ld is compatible enough with the native linker 15372 # that we're better off using the native interface for both. 15373 lt_use_gnu_ld_interface=no 15374 if test yes = "$with_gnu_ld"; then 15375 case $host_os in 15376 aix*) 15377 # The AIX port of GNU ld has always aspired to compatibility 15378 # with the native linker. However, as the warning in the GNU ld 15379 # block says, versions before 2.19.5* couldn't really create working 15380 # shared libraries, regardless of the interface used. 15381 case `$LD -v 2>&1` in 15382 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15383 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15384 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15385 *) 15386 lt_use_gnu_ld_interface=yes 15387 ;; 15388 esac 15389 ;; 15390 *) 15391 lt_use_gnu_ld_interface=yes 15392 ;; 15393 esac 15394 fi 15395 15396 if test yes = "$lt_use_gnu_ld_interface"; then 15397 # If archive_cmds runs LD, not CC, wlarc should be empty 15398 wlarc='$wl' 15399 15400 # Set some defaults for GNU ld with shared library support. These 15401 # are reset later if shared libraries are not supported. Putting them 15402 # here allows them to be overridden if necessary. 15403 runpath_var=LD_RUN_PATH 15404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15405 export_dynamic_flag_spec='$wl--export-dynamic' 15406 # ancient GNU ld didn't support --whole-archive et. al. 15407 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15408 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15409 else 15410 whole_archive_flag_spec= 15411 fi 15412 supports_anon_versioning=no 15413 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15414 *GNU\ gold*) supports_anon_versioning=yes ;; 15415 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15416 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15417 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15418 *\ 2.11.*) ;; # other 2.11 versions 15419 *) supports_anon_versioning=yes ;; 15420 esac 15421 15422 # See if GNU ld supports shared libraries. 15423 case $host_os in 15424 aix[3-9]*) 15425 # On AIX/PPC, the GNU linker is very broken 15426 if test ia64 != "$host_cpu"; then 15427 ld_shlibs=no 15428 cat <<_LT_EOF 1>&2 15429 15430*** Warning: the GNU linker, at least up to release 2.19, is reported 15431*** to be unable to reliably create shared libraries on AIX. 15432*** Therefore, libtool is disabling shared libraries support. If you 15433*** really care for shared libraries, you may want to install binutils 15434*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15435*** You will then need to restart the configuration process. 15436 15437_LT_EOF 15438 fi 15439 ;; 15440 15441 amigaos*) 15442 case $host_cpu in 15443 powerpc) 15444 # see comment about AmigaOS4 .so support 15445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15446 archive_expsym_cmds='' 15447 ;; 15448 m68k) 15449 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)' 15450 hardcode_libdir_flag_spec='-L$libdir' 15451 hardcode_minus_L=yes 15452 ;; 15453 esac 15454 ;; 15455 15456 beos*) 15457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15458 allow_undefined_flag=unsupported 15459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15460 # support --undefined. This deserves some investigation. FIXME 15461 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15462 else 15463 ld_shlibs=no 15464 fi 15465 ;; 15466 15467 cygwin* | mingw* | pw32* | cegcc*) 15468 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15469 # as there is no search path for DLLs. 15470 hardcode_libdir_flag_spec='-L$libdir' 15471 export_dynamic_flag_spec='$wl--export-all-symbols' 15472 allow_undefined_flag=unsupported 15473 always_export_symbols=no 15474 enable_shared_with_static_runtimes=yes 15475 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' 15476 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15477 15478 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15480 # If the export-symbols file already is a .def file, use it as 15481 # is; otherwise, prepend EXPORTS... 15482 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15483 cp $export_symbols $output_objdir/$soname.def; 15484 else 15485 echo EXPORTS > $output_objdir/$soname.def; 15486 cat $export_symbols >> $output_objdir/$soname.def; 15487 fi~ 15488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15489 else 15490 ld_shlibs=no 15491 fi 15492 ;; 15493 15494 haiku*) 15495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15496 link_all_deplibs=yes 15497 ;; 15498 15499 os2*) 15500 hardcode_libdir_flag_spec='-L$libdir' 15501 hardcode_minus_L=yes 15502 allow_undefined_flag=unsupported 15503 shrext_cmds=.dll 15504 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15505 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15506 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15507 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15508 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15509 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15510 emximp -o $lib $output_objdir/$libname.def' 15511 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15512 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15513 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15514 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15515 prefix_cmds="$SED"~ 15516 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15517 prefix_cmds="$prefix_cmds -e 1d"; 15518 fi~ 15519 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15520 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15521 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15522 emximp -o $lib $output_objdir/$libname.def' 15523 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15524 enable_shared_with_static_runtimes=yes 15525 ;; 15526 15527 interix[3-9]*) 15528 hardcode_direct=no 15529 hardcode_shlibpath_var=no 15530 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15531 export_dynamic_flag_spec='$wl-E' 15532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15533 # Instead, shared libraries are loaded at an image base (0x10000000 by 15534 # default) and relocated if they conflict, which is a slow very memory 15535 # consuming and fragmenting process. To avoid this, we pick a random, 15536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15537 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15539 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' 15540 ;; 15541 15542 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15543 tmp_diet=no 15544 if test linux-dietlibc = "$host_os"; then 15545 case $cc_basename in 15546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15547 esac 15548 fi 15549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15550 && test no = "$tmp_diet" 15551 then 15552 tmp_addflag=' $pic_flag' 15553 tmp_sharedflag='-shared' 15554 case $cc_basename,$host_cpu in 15555 pgcc*) # Portland Group C compiler 15556 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' 15557 tmp_addflag=' $pic_flag' 15558 ;; 15559 pgf77* | pgf90* | pgf95* | pgfortran*) 15560 # Portland Group f77 and f90 compilers 15561 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' 15562 tmp_addflag=' $pic_flag -Mnomain' ;; 15563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15564 tmp_addflag=' -i_dynamic' ;; 15565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15566 tmp_addflag=' -i_dynamic -nofor_main' ;; 15567 ifc* | ifort*) # Intel Fortran compiler 15568 tmp_addflag=' -nofor_main' ;; 15569 lf95*) # Lahey Fortran 8.1 15570 whole_archive_flag_spec= 15571 tmp_sharedflag='--shared' ;; 15572 nagfor*) # NAGFOR 5.3 15573 tmp_sharedflag='-Wl,-shared' ;; 15574 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15575 tmp_sharedflag='-qmkshrobj' 15576 tmp_addflag= ;; 15577 nvcc*) # Cuda Compiler Driver 2.2 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 compiler_needs_object=yes 15580 ;; 15581 esac 15582 case `$CC -V 2>&1 | sed 5q` in 15583 *Sun\ C*) # Sun C 5.9 15584 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' 15585 compiler_needs_object=yes 15586 tmp_sharedflag='-G' ;; 15587 *Sun\ F*) # Sun Fortran 8.3 15588 tmp_sharedflag='-G' ;; 15589 esac 15590 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15591 15592 if test yes = "$supports_anon_versioning"; then 15593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15595 echo "local: *; };" >> $output_objdir/$libname.ver~ 15596 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15597 fi 15598 15599 case $cc_basename in 15600 tcc*) 15601 export_dynamic_flag_spec='-rdynamic' 15602 ;; 15603 xlf* | bgf* | bgxlf* | mpixlf*) 15604 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15605 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15607 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15608 if test yes = "$supports_anon_versioning"; then 15609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15611 echo "local: *; };" >> $output_objdir/$libname.ver~ 15612 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15613 fi 15614 ;; 15615 esac 15616 else 15617 ld_shlibs=no 15618 fi 15619 ;; 15620 15621 netbsd*) 15622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15623 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15624 wlarc= 15625 else 15626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15628 fi 15629 ;; 15630 15631 solaris*) 15632 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15633 ld_shlibs=no 15634 cat <<_LT_EOF 1>&2 15635 15636*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15637*** create shared libraries on Solaris systems. Therefore, libtool 15638*** is disabling shared libraries support. We urge you to upgrade GNU 15639*** binutils to release 2.9.1 or newer. Another option is to modify 15640*** your PATH or compiler configuration so that the native linker is 15641*** used, and then restart. 15642 15643_LT_EOF 15644 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15646 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15647 else 15648 ld_shlibs=no 15649 fi 15650 ;; 15651 15652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15653 case `$LD -v 2>&1` in 15654 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15655 ld_shlibs=no 15656 cat <<_LT_EOF 1>&2 15657 15658*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15659*** reliably create shared libraries on SCO systems. Therefore, libtool 15660*** is disabling shared libraries support. We urge you to upgrade GNU 15661*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15662*** your PATH or compiler configuration so that the native linker is 15663*** used, and then restart. 15664 15665_LT_EOF 15666 ;; 15667 *) 15668 # For security reasons, it is highly recommended that you always 15669 # use absolute paths for naming shared libraries, and exclude the 15670 # DT_RUNPATH tag from executables and libraries. But doing so 15671 # requires that you compile everything twice, which is a pain. 15672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15676 else 15677 ld_shlibs=no 15678 fi 15679 ;; 15680 esac 15681 ;; 15682 15683 sunos4*) 15684 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15685 wlarc= 15686 hardcode_direct=yes 15687 hardcode_shlibpath_var=no 15688 ;; 15689 15690 *) 15691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15694 else 15695 ld_shlibs=no 15696 fi 15697 ;; 15698 esac 15699 15700 if test no = "$ld_shlibs"; then 15701 runpath_var= 15702 hardcode_libdir_flag_spec= 15703 export_dynamic_flag_spec= 15704 whole_archive_flag_spec= 15705 fi 15706 else 15707 # PORTME fill in a description of your system's linker (not GNU ld) 15708 case $host_os in 15709 aix3*) 15710 allow_undefined_flag=unsupported 15711 always_export_symbols=yes 15712 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' 15713 # Note: this linker hardcodes the directories in LIBPATH if there 15714 # are no directories specified by -L. 15715 hardcode_minus_L=yes 15716 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15717 # Neither direct hardcoding nor static linking is supported with a 15718 # broken collect2. 15719 hardcode_direct=unsupported 15720 fi 15721 ;; 15722 15723 aix[4-9]*) 15724 if test ia64 = "$host_cpu"; then 15725 # On IA64, the linker does run time linking by default, so we don't 15726 # have to do anything special. 15727 aix_use_runtimelinking=no 15728 exp_sym_flag='-Bexport' 15729 no_entry_flag= 15730 else 15731 # If we're using GNU nm, then we don't want the "-C" option. 15732 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15733 # Without the "-l" option, or with the "-B" option, AIX nm treats 15734 # weak defined symbols like other global defined symbols, whereas 15735 # GNU nm marks them as "W". 15736 # While the 'weak' keyword is ignored in the Export File, we need 15737 # it in the Import File for the 'aix-soname' feature, so we have 15738 # to replace the "-B" option with "-P" for AIX nm. 15739 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15740 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' 15741 else 15742 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' 15743 fi 15744 aix_use_runtimelinking=no 15745 15746 # Test if we are trying to use run time linking or normal 15747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15748 # have runtime linking enabled, and use it for executables. 15749 # For shared libraries, we enable/disable runtime linking 15750 # depending on the kind of the shared library created - 15751 # when "with_aix_soname,aix_use_runtimelinking" is: 15752 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15753 # "aix,yes" lib.so shared, rtl:yes, for executables 15754 # lib.a static archive 15755 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15756 # lib.a(lib.so.V) shared, rtl:no, for executables 15757 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15758 # lib.a(lib.so.V) shared, rtl:no 15759 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15760 # lib.a static archive 15761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15762 for ld_flag in $LDFLAGS; do 15763 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15764 aix_use_runtimelinking=yes 15765 break 15766 fi 15767 done 15768 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15769 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15770 # so we don't have lib.a shared libs to link our executables. 15771 # We have to force runtime linking in this case. 15772 aix_use_runtimelinking=yes 15773 LDFLAGS="$LDFLAGS -Wl,-brtl" 15774 fi 15775 ;; 15776 esac 15777 15778 exp_sym_flag='-bexport' 15779 no_entry_flag='-bnoentry' 15780 fi 15781 15782 # When large executables or shared objects are built, AIX ld can 15783 # have problems creating the table of contents. If linking a library 15784 # or program results in "error TOC overflow" add -mminimal-toc to 15785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15787 15788 archive_cmds='' 15789 hardcode_direct=yes 15790 hardcode_direct_absolute=yes 15791 hardcode_libdir_separator=':' 15792 link_all_deplibs=yes 15793 file_list_spec='$wl-f,' 15794 case $with_aix_soname,$aix_use_runtimelinking in 15795 aix,*) ;; # traditional, no import file 15796 svr4,* | *,yes) # use import file 15797 # The Import File defines what to hardcode. 15798 hardcode_direct=no 15799 hardcode_direct_absolute=no 15800 ;; 15801 esac 15802 15803 if test yes = "$GCC"; then 15804 case $host_os in aix4.[012]|aix4.[012].*) 15805 # We only want to do this on AIX 4.2 and lower, the check 15806 # below for broken collect2 doesn't work under 4.3+ 15807 collect2name=`$CC -print-prog-name=collect2` 15808 if test -f "$collect2name" && 15809 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15810 then 15811 # We have reworked collect2 15812 : 15813 else 15814 # We have old collect2 15815 hardcode_direct=unsupported 15816 # It fails to find uninstalled libraries when the uninstalled 15817 # path is not listed in the libpath. Setting hardcode_minus_L 15818 # to unsupported forces relinking 15819 hardcode_minus_L=yes 15820 hardcode_libdir_flag_spec='-L$libdir' 15821 hardcode_libdir_separator= 15822 fi 15823 ;; 15824 esac 15825 shared_flag='-shared' 15826 if test yes = "$aix_use_runtimelinking"; then 15827 shared_flag="$shared_flag "'$wl-G' 15828 fi 15829 # Need to ensure runtime linking is disabled for the traditional 15830 # shared library, or the linker may eventually find shared libraries 15831 # /with/ Import File - we do not want to mix them. 15832 shared_flag_aix='-shared' 15833 shared_flag_svr4='-shared $wl-G' 15834 else 15835 # not using gcc 15836 if test ia64 = "$host_cpu"; then 15837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15838 # chokes on -Wl,-G. The following line is correct: 15839 shared_flag='-G' 15840 else 15841 if test yes = "$aix_use_runtimelinking"; then 15842 shared_flag='$wl-G' 15843 else 15844 shared_flag='$wl-bM:SRE' 15845 fi 15846 shared_flag_aix='$wl-bM:SRE' 15847 shared_flag_svr4='$wl-G' 15848 fi 15849 fi 15850 15851 export_dynamic_flag_spec='$wl-bexpall' 15852 # It seems that -bexpall does not export symbols beginning with 15853 # underscore (_), so it is better to generate a list of symbols to export. 15854 always_export_symbols=yes 15855 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15856 # Warning - without using the other runtime loading flags (-brtl), 15857 # -berok will link without error, but may produce a broken library. 15858 allow_undefined_flag='-berok' 15859 # Determine the default libpath from the value encoded in an 15860 # empty executable. 15861 if test set = "${lt_cv_aix_libpath+set}"; then 15862 aix_libpath=$lt_cv_aix_libpath 15863else 15864 if ${lt_cv_aix_libpath_+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866else 15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15868/* end confdefs.h. */ 15869 15870int 15871main () 15872{ 15873 15874 ; 15875 return 0; 15876} 15877_ACEOF 15878if ac_fn_c_try_link "$LINENO"; then : 15879 15880 lt_aix_libpath_sed=' 15881 /Import File Strings/,/^$/ { 15882 /^0/ { 15883 s/^0 *\([^ ]*\) *$/\1/ 15884 p 15885 } 15886 }' 15887 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15888 # Check for a 64-bit object if we didn't find anything. 15889 if test -z "$lt_cv_aix_libpath_"; then 15890 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15891 fi 15892fi 15893rm -f core conftest.err conftest.$ac_objext \ 15894 conftest$ac_exeext conftest.$ac_ext 15895 if test -z "$lt_cv_aix_libpath_"; then 15896 lt_cv_aix_libpath_=/usr/lib:/lib 15897 fi 15898 15899fi 15900 15901 aix_libpath=$lt_cv_aix_libpath_ 15902fi 15903 15904 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15905 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 15906 else 15907 if test ia64 = "$host_cpu"; then 15908 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15909 allow_undefined_flag="-z nodefs" 15910 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" 15911 else 15912 # Determine the default libpath from the value encoded in an 15913 # empty executable. 15914 if test set = "${lt_cv_aix_libpath+set}"; then 15915 aix_libpath=$lt_cv_aix_libpath 15916else 15917 if ${lt_cv_aix_libpath_+:} false; then : 15918 $as_echo_n "(cached) " >&6 15919else 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922 15923int 15924main () 15925{ 15926 15927 ; 15928 return 0; 15929} 15930_ACEOF 15931if ac_fn_c_try_link "$LINENO"; then : 15932 15933 lt_aix_libpath_sed=' 15934 /Import File Strings/,/^$/ { 15935 /^0/ { 15936 s/^0 *\([^ ]*\) *$/\1/ 15937 p 15938 } 15939 }' 15940 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15941 # Check for a 64-bit object if we didn't find anything. 15942 if test -z "$lt_cv_aix_libpath_"; then 15943 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15944 fi 15945fi 15946rm -f core conftest.err conftest.$ac_objext \ 15947 conftest$ac_exeext conftest.$ac_ext 15948 if test -z "$lt_cv_aix_libpath_"; then 15949 lt_cv_aix_libpath_=/usr/lib:/lib 15950 fi 15951 15952fi 15953 15954 aix_libpath=$lt_cv_aix_libpath_ 15955fi 15956 15957 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15958 # Warning - without using the other run time loading flags, 15959 # -berok will link without error, but may produce a broken library. 15960 no_undefined_flag=' $wl-bernotok' 15961 allow_undefined_flag=' $wl-berok' 15962 if test yes = "$with_gnu_ld"; then 15963 # We only use this code for GNU lds that support --whole-archive. 15964 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15965 else 15966 # Exported symbols can be pulled into shared objects from archives 15967 whole_archive_flag_spec='$convenience' 15968 fi 15969 archive_cmds_need_lc=yes 15970 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15971 # -brtl affects multiple linker settings, -berok does not and is overridden later 15972 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15973 if test svr4 != "$with_aix_soname"; then 15974 # This is similar to how AIX traditionally builds its shared libraries. 15975 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' 15976 fi 15977 if test aix != "$with_aix_soname"; then 15978 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' 15979 else 15980 # used by -dlpreopen to get the symbols 15981 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15982 fi 15983 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 15984 fi 15985 fi 15986 ;; 15987 15988 amigaos*) 15989 case $host_cpu in 15990 powerpc) 15991 # see comment about AmigaOS4 .so support 15992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15993 archive_expsym_cmds='' 15994 ;; 15995 m68k) 15996 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)' 15997 hardcode_libdir_flag_spec='-L$libdir' 15998 hardcode_minus_L=yes 15999 ;; 16000 esac 16001 ;; 16002 16003 bsdi[45]*) 16004 export_dynamic_flag_spec=-rdynamic 16005 ;; 16006 16007 cygwin* | mingw* | pw32* | cegcc*) 16008 # When not using gcc, we currently assume that we are using 16009 # Microsoft Visual C++. 16010 # hardcode_libdir_flag_spec is actually meaningless, as there is 16011 # no search path for DLLs. 16012 case $cc_basename in 16013 cl*) 16014 # Native MSVC 16015 hardcode_libdir_flag_spec=' ' 16016 allow_undefined_flag=unsupported 16017 always_export_symbols=yes 16018 file_list_spec='@' 16019 # Tell ltmain to make .lib files, not .a files. 16020 libext=lib 16021 # Tell ltmain to make .dll files, not .so files. 16022 shrext_cmds=.dll 16023 # FIXME: Setting linknames here is a bad hack. 16024 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16025 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16026 cp "$export_symbols" "$output_objdir/$soname.def"; 16027 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16028 else 16029 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16030 fi~ 16031 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16032 linknames=' 16033 # The linker will not automatically build a static lib if we build a DLL. 16034 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16035 enable_shared_with_static_runtimes=yes 16036 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16038 # Don't use ranlib 16039 old_postinstall_cmds='chmod 644 $oldlib' 16040 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16041 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16042 case $lt_outputfile in 16043 *.exe|*.EXE) ;; 16044 *) 16045 lt_outputfile=$lt_outputfile.exe 16046 lt_tool_outputfile=$lt_tool_outputfile.exe 16047 ;; 16048 esac~ 16049 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16050 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16051 $RM "$lt_outputfile.manifest"; 16052 fi' 16053 ;; 16054 *) 16055 # Assume MSVC wrapper 16056 hardcode_libdir_flag_spec=' ' 16057 allow_undefined_flag=unsupported 16058 # Tell ltmain to make .lib files, not .a files. 16059 libext=lib 16060 # Tell ltmain to make .dll files, not .so files. 16061 shrext_cmds=.dll 16062 # FIXME: Setting linknames here is a bad hack. 16063 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16064 # The linker will automatically build a .lib file if we build a DLL. 16065 old_archive_from_new_cmds='true' 16066 # FIXME: Should let the user specify the lib program. 16067 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16068 enable_shared_with_static_runtimes=yes 16069 ;; 16070 esac 16071 ;; 16072 16073 darwin* | rhapsody*) 16074 16075 16076 archive_cmds_need_lc=no 16077 hardcode_direct=no 16078 hardcode_automatic=yes 16079 hardcode_shlibpath_var=unsupported 16080 if test yes = "$lt_cv_ld_force_load"; then 16081 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\"`' 16082 16083 else 16084 whole_archive_flag_spec='' 16085 fi 16086 link_all_deplibs=yes 16087 allow_undefined_flag=$_lt_dar_allow_undefined 16088 case $cc_basename in 16089 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16090 *) _lt_dar_can_shared=$GCC ;; 16091 esac 16092 if test yes = "$_lt_dar_can_shared"; then 16093 output_verbose_link_cmd=func_echo_all 16094 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16095 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16096 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" 16097 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" 16098 16099 else 16100 ld_shlibs=no 16101 fi 16102 16103 ;; 16104 16105 dgux*) 16106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16107 hardcode_libdir_flag_spec='-L$libdir' 16108 hardcode_shlibpath_var=no 16109 ;; 16110 16111 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16112 # support. Future versions do this automatically, but an explicit c++rt0.o 16113 # does not break anything, and helps significantly (at the cost of a little 16114 # extra space). 16115 freebsd2.2*) 16116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16117 hardcode_libdir_flag_spec='-R$libdir' 16118 hardcode_direct=yes 16119 hardcode_shlibpath_var=no 16120 ;; 16121 16122 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16123 freebsd2.*) 16124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16125 hardcode_direct=yes 16126 hardcode_minus_L=yes 16127 hardcode_shlibpath_var=no 16128 ;; 16129 16130 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16131 freebsd* | dragonfly*) 16132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16133 hardcode_libdir_flag_spec='-R$libdir' 16134 hardcode_direct=yes 16135 hardcode_shlibpath_var=no 16136 ;; 16137 16138 hpux9*) 16139 if test yes = "$GCC"; then 16140 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' 16141 else 16142 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' 16143 fi 16144 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16145 hardcode_libdir_separator=: 16146 hardcode_direct=yes 16147 16148 # hardcode_minus_L: Not really in the search PATH, 16149 # but as the default location of the library. 16150 hardcode_minus_L=yes 16151 export_dynamic_flag_spec='$wl-E' 16152 ;; 16153 16154 hpux10*) 16155 if test yes,no = "$GCC,$with_gnu_ld"; then 16156 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16157 else 16158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16159 fi 16160 if test no = "$with_gnu_ld"; then 16161 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16162 hardcode_libdir_separator=: 16163 hardcode_direct=yes 16164 hardcode_direct_absolute=yes 16165 export_dynamic_flag_spec='$wl-E' 16166 # hardcode_minus_L: Not really in the search PATH, 16167 # but as the default location of the library. 16168 hardcode_minus_L=yes 16169 fi 16170 ;; 16171 16172 hpux11*) 16173 if test yes,no = "$GCC,$with_gnu_ld"; then 16174 case $host_cpu in 16175 hppa*64*) 16176 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16177 ;; 16178 ia64*) 16179 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16180 ;; 16181 *) 16182 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16183 ;; 16184 esac 16185 else 16186 case $host_cpu in 16187 hppa*64*) 16188 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16189 ;; 16190 ia64*) 16191 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16192 ;; 16193 *) 16194 16195 # Older versions of the 11.00 compiler do not understand -b yet 16196 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16198$as_echo_n "checking if $CC understands -b... " >&6; } 16199if ${lt_cv_prog_compiler__b+:} false; then : 16200 $as_echo_n "(cached) " >&6 16201else 16202 lt_cv_prog_compiler__b=no 16203 save_LDFLAGS=$LDFLAGS 16204 LDFLAGS="$LDFLAGS -b" 16205 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16207 # The linker can only warn and ignore the option if not recognized 16208 # So say no if there are warnings 16209 if test -s conftest.err; then 16210 # Append any errors to the config.log. 16211 cat conftest.err 1>&5 16212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16214 if diff conftest.exp conftest.er2 >/dev/null; then 16215 lt_cv_prog_compiler__b=yes 16216 fi 16217 else 16218 lt_cv_prog_compiler__b=yes 16219 fi 16220 fi 16221 $RM -r conftest* 16222 LDFLAGS=$save_LDFLAGS 16223 16224fi 16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16226$as_echo "$lt_cv_prog_compiler__b" >&6; } 16227 16228if test yes = "$lt_cv_prog_compiler__b"; then 16229 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16230else 16231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16232fi 16233 16234 ;; 16235 esac 16236 fi 16237 if test no = "$with_gnu_ld"; then 16238 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16239 hardcode_libdir_separator=: 16240 16241 case $host_cpu in 16242 hppa*64*|ia64*) 16243 hardcode_direct=no 16244 hardcode_shlibpath_var=no 16245 ;; 16246 *) 16247 hardcode_direct=yes 16248 hardcode_direct_absolute=yes 16249 export_dynamic_flag_spec='$wl-E' 16250 16251 # hardcode_minus_L: Not really in the search PATH, 16252 # but as the default location of the library. 16253 hardcode_minus_L=yes 16254 ;; 16255 esac 16256 fi 16257 ;; 16258 16259 irix5* | irix6* | nonstopux*) 16260 if test yes = "$GCC"; then 16261 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' 16262 # Try to use the -exported_symbol ld option, if it does not 16263 # work, assume that -exports_file does not work either and 16264 # implicitly export all symbols. 16265 # This should be the same for all languages, so no per-tag cache variable. 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16267$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16268if ${lt_cv_irix_exported_symbol+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 save_LDFLAGS=$LDFLAGS 16272 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274/* end confdefs.h. */ 16275int foo (void) { return 0; } 16276_ACEOF 16277if ac_fn_c_try_link "$LINENO"; then : 16278 lt_cv_irix_exported_symbol=yes 16279else 16280 lt_cv_irix_exported_symbol=no 16281fi 16282rm -f core conftest.err conftest.$ac_objext \ 16283 conftest$ac_exeext conftest.$ac_ext 16284 LDFLAGS=$save_LDFLAGS 16285fi 16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16287$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16288 if test yes = "$lt_cv_irix_exported_symbol"; then 16289 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' 16290 fi 16291 else 16292 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' 16293 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' 16294 fi 16295 archive_cmds_need_lc='no' 16296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16297 hardcode_libdir_separator=: 16298 inherit_rpath=yes 16299 link_all_deplibs=yes 16300 ;; 16301 16302 linux*) 16303 case $cc_basename in 16304 tcc*) 16305 # Fabrice Bellard et al's Tiny C Compiler 16306 ld_shlibs=yes 16307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16308 ;; 16309 esac 16310 ;; 16311 16312 netbsd*) 16313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16315 else 16316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16317 fi 16318 hardcode_libdir_flag_spec='-R$libdir' 16319 hardcode_direct=yes 16320 hardcode_shlibpath_var=no 16321 ;; 16322 16323 newsos6) 16324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16325 hardcode_direct=yes 16326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16327 hardcode_libdir_separator=: 16328 hardcode_shlibpath_var=no 16329 ;; 16330 16331 *nto* | *qnx*) 16332 ;; 16333 16334 openbsd* | bitrig*) 16335 if test -f /usr/libexec/ld.so; then 16336 hardcode_direct=yes 16337 hardcode_shlibpath_var=no 16338 hardcode_direct_absolute=yes 16339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16342 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16343 export_dynamic_flag_spec='$wl-E' 16344 else 16345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16346 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16347 fi 16348 else 16349 ld_shlibs=no 16350 fi 16351 ;; 16352 16353 os2*) 16354 hardcode_libdir_flag_spec='-L$libdir' 16355 hardcode_minus_L=yes 16356 allow_undefined_flag=unsupported 16357 shrext_cmds=.dll 16358 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16361 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16364 emximp -o $lib $output_objdir/$libname.def' 16365 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16368 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16369 prefix_cmds="$SED"~ 16370 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16371 prefix_cmds="$prefix_cmds -e 1d"; 16372 fi~ 16373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16376 emximp -o $lib $output_objdir/$libname.def' 16377 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16378 enable_shared_with_static_runtimes=yes 16379 ;; 16380 16381 osf3*) 16382 if test yes = "$GCC"; then 16383 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16384 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' 16385 else 16386 allow_undefined_flag=' -expect_unresolved \*' 16387 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' 16388 fi 16389 archive_cmds_need_lc='no' 16390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16391 hardcode_libdir_separator=: 16392 ;; 16393 16394 osf4* | osf5*) # as osf3* with the addition of -msym flag 16395 if test yes = "$GCC"; then 16396 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16397 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' 16398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16399 else 16400 allow_undefined_flag=' -expect_unresolved \*' 16401 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' 16402 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~ 16403 $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' 16404 16405 # Both c and cxx compiler support -rpath directly 16406 hardcode_libdir_flag_spec='-rpath $libdir' 16407 fi 16408 archive_cmds_need_lc='no' 16409 hardcode_libdir_separator=: 16410 ;; 16411 16412 solaris*) 16413 no_undefined_flag=' -z defs' 16414 if test yes = "$GCC"; then 16415 wlarc='$wl' 16416 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16418 $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' 16419 else 16420 case `$CC -V 2>&1` in 16421 *"Compilers 5.0"*) 16422 wlarc='' 16423 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16425 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16426 ;; 16427 *) 16428 wlarc='$wl' 16429 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16431 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16432 ;; 16433 esac 16434 fi 16435 hardcode_libdir_flag_spec='-R$libdir' 16436 hardcode_shlibpath_var=no 16437 case $host_os in 16438 solaris2.[0-5] | solaris2.[0-5].*) ;; 16439 *) 16440 # The compiler driver will combine and reorder linker options, 16441 # but understands '-z linker_flag'. GCC discards it without '$wl', 16442 # but is careful enough not to reorder. 16443 # Supported since Solaris 2.6 (maybe 2.5.1?) 16444 if test yes = "$GCC"; then 16445 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16446 else 16447 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16448 fi 16449 ;; 16450 esac 16451 link_all_deplibs=yes 16452 ;; 16453 16454 sunos4*) 16455 if test sequent = "$host_vendor"; then 16456 # Use $CC to link under sequent, because it throws in some extra .o 16457 # files that make .init and .fini sections work. 16458 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16459 else 16460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16461 fi 16462 hardcode_libdir_flag_spec='-L$libdir' 16463 hardcode_direct=yes 16464 hardcode_minus_L=yes 16465 hardcode_shlibpath_var=no 16466 ;; 16467 16468 sysv4) 16469 case $host_vendor in 16470 sni) 16471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16472 hardcode_direct=yes # is this really true??? 16473 ;; 16474 siemens) 16475 ## LD is ld it makes a PLAMLIB 16476 ## CC just makes a GrossModule. 16477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16478 reload_cmds='$CC -r -o $output$reload_objs' 16479 hardcode_direct=no 16480 ;; 16481 motorola) 16482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16484 ;; 16485 esac 16486 runpath_var='LD_RUN_PATH' 16487 hardcode_shlibpath_var=no 16488 ;; 16489 16490 sysv4.3*) 16491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16492 hardcode_shlibpath_var=no 16493 export_dynamic_flag_spec='-Bexport' 16494 ;; 16495 16496 sysv4*MP*) 16497 if test -d /usr/nec; then 16498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16499 hardcode_shlibpath_var=no 16500 runpath_var=LD_RUN_PATH 16501 hardcode_runpath_var=yes 16502 ld_shlibs=yes 16503 fi 16504 ;; 16505 16506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16507 no_undefined_flag='$wl-z,text' 16508 archive_cmds_need_lc=no 16509 hardcode_shlibpath_var=no 16510 runpath_var='LD_RUN_PATH' 16511 16512 if test yes = "$GCC"; then 16513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16515 else 16516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16518 fi 16519 ;; 16520 16521 sysv5* | sco3.2v5* | sco5v6*) 16522 # Note: We CANNOT use -z defs as we might desire, because we do not 16523 # link with -lc, and that would cause any symbols used from libc to 16524 # always be unresolved, which means just about no library would 16525 # ever link correctly. If we're not using GNU ld we use -z text 16526 # though, which does catch some bad symbols but isn't as heavy-handed 16527 # as -z defs. 16528 no_undefined_flag='$wl-z,text' 16529 allow_undefined_flag='$wl-z,nodefs' 16530 archive_cmds_need_lc=no 16531 hardcode_shlibpath_var=no 16532 hardcode_libdir_flag_spec='$wl-R,$libdir' 16533 hardcode_libdir_separator=':' 16534 link_all_deplibs=yes 16535 export_dynamic_flag_spec='$wl-Bexport' 16536 runpath_var='LD_RUN_PATH' 16537 16538 if test yes = "$GCC"; then 16539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16541 else 16542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16544 fi 16545 ;; 16546 16547 uts4*) 16548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16549 hardcode_libdir_flag_spec='-L$libdir' 16550 hardcode_shlibpath_var=no 16551 ;; 16552 16553 *) 16554 ld_shlibs=no 16555 ;; 16556 esac 16557 16558 if test sni = "$host_vendor"; then 16559 case $host in 16560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16561 export_dynamic_flag_spec='$wl-Blargedynsym' 16562 ;; 16563 esac 16564 fi 16565 fi 16566 16567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16568$as_echo "$ld_shlibs" >&6; } 16569test no = "$ld_shlibs" && can_build_shared=no 16570 16571with_gnu_ld=$with_gnu_ld 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587# 16588# Do we need to explicitly link libc? 16589# 16590case "x$archive_cmds_need_lc" in 16591x|xyes) 16592 # Assume -lc should be added 16593 archive_cmds_need_lc=yes 16594 16595 if test yes,yes = "$GCC,$enable_shared"; then 16596 case $archive_cmds in 16597 *'~'*) 16598 # FIXME: we may have to deal with multi-command sequences. 16599 ;; 16600 '$CC '*) 16601 # Test whether the compiler implicitly links with -lc since on some 16602 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16603 # to ld, don't add -lc before -lgcc. 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16605$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16606if ${lt_cv_archive_cmds_need_lc+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 $RM conftest* 16610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16611 16612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16613 (eval $ac_compile) 2>&5 16614 ac_status=$? 16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16616 test $ac_status = 0; } 2>conftest.err; then 16617 soname=conftest 16618 lib=conftest 16619 libobjs=conftest.$ac_objext 16620 deplibs= 16621 wl=$lt_prog_compiler_wl 16622 pic_flag=$lt_prog_compiler_pic 16623 compiler_flags=-v 16624 linker_flags=-v 16625 verstring= 16626 output_objdir=. 16627 libname=conftest 16628 lt_save_allow_undefined_flag=$allow_undefined_flag 16629 allow_undefined_flag= 16630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16631 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16632 ac_status=$? 16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16634 test $ac_status = 0; } 16635 then 16636 lt_cv_archive_cmds_need_lc=no 16637 else 16638 lt_cv_archive_cmds_need_lc=yes 16639 fi 16640 allow_undefined_flag=$lt_save_allow_undefined_flag 16641 else 16642 cat conftest.err 1>&5 16643 fi 16644 $RM conftest* 16645 16646fi 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16648$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16649 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16650 ;; 16651 esac 16652 fi 16653 ;; 16654esac 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16808$as_echo_n "checking dynamic linker characteristics... " >&6; } 16809 16810if test yes = "$GCC"; then 16811 case $host_os in 16812 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16813 *) lt_awk_arg='/^libraries:/' ;; 16814 esac 16815 case $host_os in 16816 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16817 *) lt_sed_strip_eq='s|=/|/|g' ;; 16818 esac 16819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16820 case $lt_search_path_spec in 16821 *\;*) 16822 # if the path contains ";" then we assume it to be the separator 16823 # otherwise default to the standard path separator (i.e. ":") - it is 16824 # assumed that no part of a normal pathname contains ";" but that should 16825 # okay in the real world where ";" in dirpaths is itself problematic. 16826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16827 ;; 16828 *) 16829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16830 ;; 16831 esac 16832 # Ok, now we have the path, separated by spaces, we can step through it 16833 # and add multilib dir if necessary... 16834 lt_tmp_lt_search_path_spec= 16835 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16836 # ...but if some path component already ends with the multilib dir we assume 16837 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16838 case "$lt_multi_os_dir; $lt_search_path_spec " in 16839 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16840 lt_multi_os_dir= 16841 ;; 16842 esac 16843 for lt_sys_path in $lt_search_path_spec; do 16844 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16846 elif test -n "$lt_multi_os_dir"; then 16847 test -d "$lt_sys_path" && \ 16848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16849 fi 16850 done 16851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16852BEGIN {RS = " "; FS = "/|\n";} { 16853 lt_foo = ""; 16854 lt_count = 0; 16855 for (lt_i = NF; lt_i > 0; lt_i--) { 16856 if ($lt_i != "" && $lt_i != ".") { 16857 if ($lt_i == "..") { 16858 lt_count++; 16859 } else { 16860 if (lt_count == 0) { 16861 lt_foo = "/" $lt_i lt_foo; 16862 } else { 16863 lt_count--; 16864 } 16865 } 16866 } 16867 } 16868 if (lt_foo != "") { lt_freq[lt_foo]++; } 16869 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16870}'` 16871 # AWK program above erroneously prepends '/' to C:/dos/paths 16872 # for these hosts. 16873 case $host_os in 16874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16875 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16876 esac 16877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16878else 16879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16880fi 16881library_names_spec= 16882libname_spec='lib$name' 16883soname_spec= 16884shrext_cmds=.so 16885postinstall_cmds= 16886postuninstall_cmds= 16887finish_cmds= 16888finish_eval= 16889shlibpath_var= 16890shlibpath_overrides_runpath=unknown 16891version_type=none 16892dynamic_linker="$host_os ld.so" 16893sys_lib_dlsearch_path_spec="/lib /usr/lib" 16894need_lib_prefix=unknown 16895hardcode_into_libs=no 16896 16897# when you set need_version to no, make sure it does not cause -set_version 16898# flags to be left without arguments 16899need_version=unknown 16900 16901 16902 16903case $host_os in 16904aix3*) 16905 version_type=linux # correct to gnu/linux during the next big refactor 16906 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16907 shlibpath_var=LIBPATH 16908 16909 # AIX 3 has no versioning support, so we append a major version to the name. 16910 soname_spec='$libname$release$shared_ext$major' 16911 ;; 16912 16913aix[4-9]*) 16914 version_type=linux # correct to gnu/linux during the next big refactor 16915 need_lib_prefix=no 16916 need_version=no 16917 hardcode_into_libs=yes 16918 if test ia64 = "$host_cpu"; then 16919 # AIX 5 supports IA64 16920 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16921 shlibpath_var=LD_LIBRARY_PATH 16922 else 16923 # With GCC up to 2.95.x, collect2 would create an import file 16924 # for dependence libraries. The import file would start with 16925 # the line '#! .'. This would cause the generated library to 16926 # depend on '.', always an invalid library. This was fixed in 16927 # development snapshots of GCC prior to 3.0. 16928 case $host_os in 16929 aix4 | aix4.[01] | aix4.[01].*) 16930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16931 echo ' yes ' 16932 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16933 : 16934 else 16935 can_build_shared=no 16936 fi 16937 ;; 16938 esac 16939 # Using Import Files as archive members, it is possible to support 16940 # filename-based versioning of shared library archives on AIX. While 16941 # this would work for both with and without runtime linking, it will 16942 # prevent static linking of such archives. So we do filename-based 16943 # shared library versioning with .so extension only, which is used 16944 # when both runtime linking and shared linking is enabled. 16945 # Unfortunately, runtime linking may impact performance, so we do 16946 # not want this to be the default eventually. Also, we use the 16947 # versioned .so libs for executables only if there is the -brtl 16948 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16949 # To allow for filename-based versioning support, we need to create 16950 # libNAME.so.V as an archive file, containing: 16951 # *) an Import File, referring to the versioned filename of the 16952 # archive as well as the shared archive member, telling the 16953 # bitwidth (32 or 64) of that shared object, and providing the 16954 # list of exported symbols of that shared object, eventually 16955 # decorated with the 'weak' keyword 16956 # *) the shared object with the F_LOADONLY flag set, to really avoid 16957 # it being seen by the linker. 16958 # At run time we better use the real file rather than another symlink, 16959 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16960 16961 case $with_aix_soname,$aix_use_runtimelinking in 16962 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16963 # soname into executable. Probably we can add versioning support to 16964 # collect2, so additional links can be useful in future. 16965 aix,yes) # traditional libtool 16966 dynamic_linker='AIX unversionable lib.so' 16967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16968 # instead of lib<name>.a to let people know that these are not 16969 # typical AIX shared libraries. 16970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16971 ;; 16972 aix,no) # traditional AIX only 16973 dynamic_linker='AIX lib.a(lib.so.V)' 16974 # We preserve .a as extension for shared libraries through AIX4.2 16975 # and later when we are not doing run time linking. 16976 library_names_spec='$libname$release.a $libname.a' 16977 soname_spec='$libname$release$shared_ext$major' 16978 ;; 16979 svr4,*) # full svr4 only 16980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16982 # We do not specify a path in Import Files, so LIBPATH fires. 16983 shlibpath_overrides_runpath=yes 16984 ;; 16985 *,yes) # both, prefer svr4 16986 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16987 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16988 # unpreferred sharedlib libNAME.a needs extra handling 16989 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"' 16990 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"' 16991 # We do not specify a path in Import Files, so LIBPATH fires. 16992 shlibpath_overrides_runpath=yes 16993 ;; 16994 *,no) # both, prefer aix 16995 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16996 library_names_spec='$libname$release.a $libname.a' 16997 soname_spec='$libname$release$shared_ext$major' 16998 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16999 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)' 17000 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"' 17001 ;; 17002 esac 17003 shlibpath_var=LIBPATH 17004 fi 17005 ;; 17006 17007amigaos*) 17008 case $host_cpu in 17009 powerpc) 17010 # Since July 2007 AmigaOS4 officially supports .so libraries. 17011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17013 ;; 17014 m68k) 17015 library_names_spec='$libname.ixlibrary $libname.a' 17016 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17017 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' 17018 ;; 17019 esac 17020 ;; 17021 17022beos*) 17023 library_names_spec='$libname$shared_ext' 17024 dynamic_linker="$host_os ld.so" 17025 shlibpath_var=LIBRARY_PATH 17026 ;; 17027 17028bsdi[45]*) 17029 version_type=linux # correct to gnu/linux during the next big refactor 17030 need_version=no 17031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17032 soname_spec='$libname$release$shared_ext$major' 17033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17034 shlibpath_var=LD_LIBRARY_PATH 17035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17037 # the default ld.so.conf also contains /usr/contrib/lib and 17038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17039 # libtool to hard-code these into programs 17040 ;; 17041 17042cygwin* | mingw* | pw32* | cegcc*) 17043 version_type=windows 17044 shrext_cmds=.dll 17045 need_version=no 17046 need_lib_prefix=no 17047 17048 case $GCC,$cc_basename in 17049 yes,*) 17050 # gcc 17051 library_names_spec='$libname.dll.a' 17052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17053 postinstall_cmds='base_file=`basename \$file`~ 17054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17055 dldir=$destdir/`dirname \$dlpath`~ 17056 test -d \$dldir || mkdir -p \$dldir~ 17057 $install_prog $dir/$dlname \$dldir/$dlname~ 17058 chmod a+x \$dldir/$dlname~ 17059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17061 fi' 17062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17063 dlpath=$dir/\$dldll~ 17064 $RM \$dlpath' 17065 shlibpath_overrides_runpath=yes 17066 17067 case $host_os in 17068 cygwin*) 17069 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17070 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17071 17072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17073 ;; 17074 mingw* | cegcc*) 17075 # MinGW DLLs use traditional 'lib' prefix 17076 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17077 ;; 17078 pw32*) 17079 # pw32 DLLs use 'pw' prefix rather than 'lib' 17080 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17081 ;; 17082 esac 17083 dynamic_linker='Win32 ld.exe' 17084 ;; 17085 17086 *,cl*) 17087 # Native MSVC 17088 libname_spec='$name' 17089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17090 library_names_spec='$libname.dll.lib' 17091 17092 case $build_os in 17093 mingw*) 17094 sys_lib_search_path_spec= 17095 lt_save_ifs=$IFS 17096 IFS=';' 17097 for lt_path in $LIB 17098 do 17099 IFS=$lt_save_ifs 17100 # Let DOS variable expansion print the short 8.3 style file name. 17101 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17102 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17103 done 17104 IFS=$lt_save_ifs 17105 # Convert to MSYS style. 17106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17107 ;; 17108 cygwin*) 17109 # Convert to unix form, then to dos form, then back to unix form 17110 # but this time dos style (no spaces!) so that the unix form looks 17111 # like /cygdrive/c/PROGRA~1:/cygdr... 17112 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17113 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17114 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17115 ;; 17116 *) 17117 sys_lib_search_path_spec=$LIB 17118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17119 # It is most probably a Windows format PATH. 17120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17121 else 17122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17123 fi 17124 # FIXME: find the short name or the path components, as spaces are 17125 # common. (e.g. "Program Files" -> "PROGRA~1") 17126 ;; 17127 esac 17128 17129 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17130 postinstall_cmds='base_file=`basename \$file`~ 17131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17132 dldir=$destdir/`dirname \$dlpath`~ 17133 test -d \$dldir || mkdir -p \$dldir~ 17134 $install_prog $dir/$dlname \$dldir/$dlname' 17135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17136 dlpath=$dir/\$dldll~ 17137 $RM \$dlpath' 17138 shlibpath_overrides_runpath=yes 17139 dynamic_linker='Win32 link.exe' 17140 ;; 17141 17142 *) 17143 # Assume MSVC wrapper 17144 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17145 dynamic_linker='Win32 ld.exe' 17146 ;; 17147 esac 17148 # FIXME: first we should search . and the directory the executable is in 17149 shlibpath_var=PATH 17150 ;; 17151 17152darwin* | rhapsody*) 17153 dynamic_linker="$host_os dyld" 17154 version_type=darwin 17155 need_lib_prefix=no 17156 need_version=no 17157 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17158 soname_spec='$libname$release$major$shared_ext' 17159 shlibpath_overrides_runpath=yes 17160 shlibpath_var=DYLD_LIBRARY_PATH 17161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17162 17163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17165 ;; 17166 17167dgux*) 17168 version_type=linux # correct to gnu/linux during the next big refactor 17169 need_lib_prefix=no 17170 need_version=no 17171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17172 soname_spec='$libname$release$shared_ext$major' 17173 shlibpath_var=LD_LIBRARY_PATH 17174 ;; 17175 17176freebsd* | dragonfly*) 17177 # DragonFly does not have aout. When/if they implement a new 17178 # versioning mechanism, adjust this. 17179 if test -x /usr/bin/objformat; then 17180 objformat=`/usr/bin/objformat` 17181 else 17182 case $host_os in 17183 freebsd[23].*) objformat=aout ;; 17184 *) objformat=elf ;; 17185 esac 17186 fi 17187 version_type=freebsd-$objformat 17188 case $version_type in 17189 freebsd-elf*) 17190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17191 soname_spec='$libname$release$shared_ext$major' 17192 need_version=no 17193 need_lib_prefix=no 17194 ;; 17195 freebsd-*) 17196 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17197 need_version=yes 17198 ;; 17199 esac 17200 shlibpath_var=LD_LIBRARY_PATH 17201 case $host_os in 17202 freebsd2.*) 17203 shlibpath_overrides_runpath=yes 17204 ;; 17205 freebsd3.[01]* | freebsdelf3.[01]*) 17206 shlibpath_overrides_runpath=yes 17207 hardcode_into_libs=yes 17208 ;; 17209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17211 shlibpath_overrides_runpath=no 17212 hardcode_into_libs=yes 17213 ;; 17214 *) # from 4.6 on, and DragonFly 17215 shlibpath_overrides_runpath=yes 17216 hardcode_into_libs=yes 17217 ;; 17218 esac 17219 ;; 17220 17221haiku*) 17222 version_type=linux # correct to gnu/linux during the next big refactor 17223 need_lib_prefix=no 17224 need_version=no 17225 dynamic_linker="$host_os runtime_loader" 17226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17227 soname_spec='$libname$release$shared_ext$major' 17228 shlibpath_var=LIBRARY_PATH 17229 shlibpath_overrides_runpath=no 17230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17231 hardcode_into_libs=yes 17232 ;; 17233 17234hpux9* | hpux10* | hpux11*) 17235 # Give a soname corresponding to the major version so that dld.sl refuses to 17236 # link against other versions. 17237 version_type=sunos 17238 need_lib_prefix=no 17239 need_version=no 17240 case $host_cpu in 17241 ia64*) 17242 shrext_cmds='.so' 17243 hardcode_into_libs=yes 17244 dynamic_linker="$host_os dld.so" 17245 shlibpath_var=LD_LIBRARY_PATH 17246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17248 soname_spec='$libname$release$shared_ext$major' 17249 if test 32 = "$HPUX_IA64_MODE"; then 17250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17252 else 17253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17255 fi 17256 ;; 17257 hppa*64*) 17258 shrext_cmds='.sl' 17259 hardcode_into_libs=yes 17260 dynamic_linker="$host_os dld.sl" 17261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17264 soname_spec='$libname$release$shared_ext$major' 17265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17267 ;; 17268 *) 17269 shrext_cmds='.sl' 17270 dynamic_linker="$host_os dld.sl" 17271 shlibpath_var=SHLIB_PATH 17272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17274 soname_spec='$libname$release$shared_ext$major' 17275 ;; 17276 esac 17277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17278 postinstall_cmds='chmod 555 $lib' 17279 # or fails outright, so override atomically: 17280 install_override_mode=555 17281 ;; 17282 17283interix[3-9]*) 17284 version_type=linux # correct to gnu/linux during the next big refactor 17285 need_lib_prefix=no 17286 need_version=no 17287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17288 soname_spec='$libname$release$shared_ext$major' 17289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17290 shlibpath_var=LD_LIBRARY_PATH 17291 shlibpath_overrides_runpath=no 17292 hardcode_into_libs=yes 17293 ;; 17294 17295irix5* | irix6* | nonstopux*) 17296 case $host_os in 17297 nonstopux*) version_type=nonstopux ;; 17298 *) 17299 if test yes = "$lt_cv_prog_gnu_ld"; then 17300 version_type=linux # correct to gnu/linux during the next big refactor 17301 else 17302 version_type=irix 17303 fi ;; 17304 esac 17305 need_lib_prefix=no 17306 need_version=no 17307 soname_spec='$libname$release$shared_ext$major' 17308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17309 case $host_os in 17310 irix5* | nonstopux*) 17311 libsuff= shlibsuff= 17312 ;; 17313 *) 17314 case $LD in # libtool.m4 will add one of these switches to LD 17315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17316 libsuff= shlibsuff= libmagic=32-bit;; 17317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17318 libsuff=32 shlibsuff=N32 libmagic=N32;; 17319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17320 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17321 *) libsuff= shlibsuff= libmagic=never-match;; 17322 esac 17323 ;; 17324 esac 17325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17326 shlibpath_overrides_runpath=no 17327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17329 hardcode_into_libs=yes 17330 ;; 17331 17332# No shared lib support for Linux oldld, aout, or coff. 17333linux*oldld* | linux*aout* | linux*coff*) 17334 dynamic_linker=no 17335 ;; 17336 17337linux*android*) 17338 version_type=none # Android doesn't support versioned libraries. 17339 need_lib_prefix=no 17340 need_version=no 17341 library_names_spec='$libname$release$shared_ext' 17342 soname_spec='$libname$release$shared_ext' 17343 finish_cmds= 17344 shlibpath_var=LD_LIBRARY_PATH 17345 shlibpath_overrides_runpath=yes 17346 17347 # This implies no fast_install, which is unacceptable. 17348 # Some rework will be needed to allow for fast_install 17349 # before this can be enabled. 17350 hardcode_into_libs=yes 17351 17352 dynamic_linker='Android linker' 17353 # Don't embed -rpath directories since the linker doesn't support them. 17354 hardcode_libdir_flag_spec='-L$libdir' 17355 ;; 17356 17357# This must be glibc/ELF. 17358linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17359 version_type=linux # correct to gnu/linux during the next big refactor 17360 need_lib_prefix=no 17361 need_version=no 17362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17363 soname_spec='$libname$release$shared_ext$major' 17364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17365 shlibpath_var=LD_LIBRARY_PATH 17366 shlibpath_overrides_runpath=no 17367 17368 # Some binutils ld are patched to set DT_RUNPATH 17369 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17370 $as_echo_n "(cached) " >&6 17371else 17372 lt_cv_shlibpath_overrides_runpath=no 17373 save_LDFLAGS=$LDFLAGS 17374 save_libdir=$libdir 17375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17378/* end confdefs.h. */ 17379 17380int 17381main () 17382{ 17383 17384 ; 17385 return 0; 17386} 17387_ACEOF 17388if ac_fn_c_try_link "$LINENO"; then : 17389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17390 lt_cv_shlibpath_overrides_runpath=yes 17391fi 17392fi 17393rm -f core conftest.err conftest.$ac_objext \ 17394 conftest$ac_exeext conftest.$ac_ext 17395 LDFLAGS=$save_LDFLAGS 17396 libdir=$save_libdir 17397 17398fi 17399 17400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17401 17402 # This implies no fast_install, which is unacceptable. 17403 # Some rework will be needed to allow for fast_install 17404 # before this can be enabled. 17405 hardcode_into_libs=yes 17406 17407 # Add ABI-specific directories to the system library path. 17408 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17409 17410 # Ideally, we could use ldconfig to report *all* directores which are 17411 # searched for libraries, however this is still not possible. Aside from not 17412 # being certain /sbin/ldconfig is available, command 17413 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17414 # even though it is searched at run-time. Try to do the best guess by 17415 # appending ld.so.conf contents (and includes) to the search path. 17416 if test -f /etc/ld.so.conf; then 17417 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' ' '` 17418 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17419 fi 17420 17421 # We used to test for /lib/ld.so.1 and disable shared libraries on 17422 # powerpc, because MkLinux only supported shared libraries with the 17423 # GNU dynamic linker. Since this was broken with cross compilers, 17424 # most powerpc-linux boxes support dynamic linking these days and 17425 # people can always --disable-shared, the test was removed, and we 17426 # assume the GNU/Linux dynamic linker is in use. 17427 dynamic_linker='GNU/Linux ld.so' 17428 ;; 17429 17430netbsd*) 17431 version_type=sunos 17432 need_lib_prefix=no 17433 need_version=no 17434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17435 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17437 dynamic_linker='NetBSD (a.out) ld.so' 17438 else 17439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17440 soname_spec='$libname$release$shared_ext$major' 17441 dynamic_linker='NetBSD ld.elf_so' 17442 fi 17443 shlibpath_var=LD_LIBRARY_PATH 17444 shlibpath_overrides_runpath=yes 17445 hardcode_into_libs=yes 17446 ;; 17447 17448newsos6) 17449 version_type=linux # correct to gnu/linux during the next big refactor 17450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17451 shlibpath_var=LD_LIBRARY_PATH 17452 shlibpath_overrides_runpath=yes 17453 ;; 17454 17455*nto* | *qnx*) 17456 version_type=qnx 17457 need_lib_prefix=no 17458 need_version=no 17459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17460 soname_spec='$libname$release$shared_ext$major' 17461 shlibpath_var=LD_LIBRARY_PATH 17462 shlibpath_overrides_runpath=no 17463 hardcode_into_libs=yes 17464 dynamic_linker='ldqnx.so' 17465 ;; 17466 17467openbsd* | bitrig*) 17468 version_type=sunos 17469 sys_lib_dlsearch_path_spec=/usr/lib 17470 need_lib_prefix=no 17471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17472 need_version=no 17473 else 17474 need_version=yes 17475 fi 17476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17478 shlibpath_var=LD_LIBRARY_PATH 17479 shlibpath_overrides_runpath=yes 17480 ;; 17481 17482os2*) 17483 libname_spec='$name' 17484 version_type=windows 17485 shrext_cmds=.dll 17486 need_version=no 17487 need_lib_prefix=no 17488 # OS/2 can only load a DLL with a base name of 8 characters or less. 17489 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17490 v=$($ECHO $release$versuffix | tr -d .-); 17491 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17492 $ECHO $n$v`$shared_ext' 17493 library_names_spec='${libname}_dll.$libext' 17494 dynamic_linker='OS/2 ld.exe' 17495 shlibpath_var=BEGINLIBPATH 17496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17498 postinstall_cmds='base_file=`basename \$file`~ 17499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17500 dldir=$destdir/`dirname \$dlpath`~ 17501 test -d \$dldir || mkdir -p \$dldir~ 17502 $install_prog $dir/$dlname \$dldir/$dlname~ 17503 chmod a+x \$dldir/$dlname~ 17504 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17505 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17506 fi' 17507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17508 dlpath=$dir/\$dldll~ 17509 $RM \$dlpath' 17510 ;; 17511 17512osf3* | osf4* | osf5*) 17513 version_type=osf 17514 need_lib_prefix=no 17515 need_version=no 17516 soname_spec='$libname$release$shared_ext$major' 17517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17518 shlibpath_var=LD_LIBRARY_PATH 17519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17521 ;; 17522 17523rdos*) 17524 dynamic_linker=no 17525 ;; 17526 17527solaris*) 17528 version_type=linux # correct to gnu/linux during the next big refactor 17529 need_lib_prefix=no 17530 need_version=no 17531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17532 soname_spec='$libname$release$shared_ext$major' 17533 shlibpath_var=LD_LIBRARY_PATH 17534 shlibpath_overrides_runpath=yes 17535 hardcode_into_libs=yes 17536 # ldd complains unless libraries are executable 17537 postinstall_cmds='chmod +x $lib' 17538 ;; 17539 17540sunos4*) 17541 version_type=sunos 17542 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17544 shlibpath_var=LD_LIBRARY_PATH 17545 shlibpath_overrides_runpath=yes 17546 if test yes = "$with_gnu_ld"; then 17547 need_lib_prefix=no 17548 fi 17549 need_version=yes 17550 ;; 17551 17552sysv4 | sysv4.3*) 17553 version_type=linux # correct to gnu/linux during the next big refactor 17554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17555 soname_spec='$libname$release$shared_ext$major' 17556 shlibpath_var=LD_LIBRARY_PATH 17557 case $host_vendor in 17558 sni) 17559 shlibpath_overrides_runpath=no 17560 need_lib_prefix=no 17561 runpath_var=LD_RUN_PATH 17562 ;; 17563 siemens) 17564 need_lib_prefix=no 17565 ;; 17566 motorola) 17567 need_lib_prefix=no 17568 need_version=no 17569 shlibpath_overrides_runpath=no 17570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17571 ;; 17572 esac 17573 ;; 17574 17575sysv4*MP*) 17576 if test -d /usr/nec; then 17577 version_type=linux # correct to gnu/linux during the next big refactor 17578 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17579 soname_spec='$libname$shared_ext.$major' 17580 shlibpath_var=LD_LIBRARY_PATH 17581 fi 17582 ;; 17583 17584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17585 version_type=sco 17586 need_lib_prefix=no 17587 need_version=no 17588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17589 soname_spec='$libname$release$shared_ext$major' 17590 shlibpath_var=LD_LIBRARY_PATH 17591 shlibpath_overrides_runpath=yes 17592 hardcode_into_libs=yes 17593 if test yes = "$with_gnu_ld"; then 17594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17595 else 17596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17597 case $host_os in 17598 sco3.2v5*) 17599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17600 ;; 17601 esac 17602 fi 17603 sys_lib_dlsearch_path_spec='/usr/lib' 17604 ;; 17605 17606tpf*) 17607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17608 version_type=linux # correct to gnu/linux during the next big refactor 17609 need_lib_prefix=no 17610 need_version=no 17611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17612 shlibpath_var=LD_LIBRARY_PATH 17613 shlibpath_overrides_runpath=no 17614 hardcode_into_libs=yes 17615 ;; 17616 17617uts4*) 17618 version_type=linux # correct to gnu/linux during the next big refactor 17619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17620 soname_spec='$libname$release$shared_ext$major' 17621 shlibpath_var=LD_LIBRARY_PATH 17622 ;; 17623 17624*) 17625 dynamic_linker=no 17626 ;; 17627esac 17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17629$as_echo "$dynamic_linker" >&6; } 17630test no = "$dynamic_linker" && can_build_shared=no 17631 17632variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17633if test yes = "$GCC"; then 17634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17635fi 17636 17637if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17638 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17639fi 17640 17641if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17642 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17643fi 17644 17645# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17646configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17647 17648# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17649func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17650 17651# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17652configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17751$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17752hardcode_action= 17753if test -n "$hardcode_libdir_flag_spec" || 17754 test -n "$runpath_var" || 17755 test yes = "$hardcode_automatic"; then 17756 17757 # We can hardcode non-existent directories. 17758 if test no != "$hardcode_direct" && 17759 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17760 # have to relink, otherwise we might link with an installed library 17761 # when we should be linking with a yet-to-be-installed one 17762 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17763 test no != "$hardcode_minus_L"; then 17764 # Linking always hardcodes the temporary library directory. 17765 hardcode_action=relink 17766 else 17767 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17768 hardcode_action=immediate 17769 fi 17770else 17771 # We cannot hardcode anything, or else we can only hardcode existing 17772 # directories. 17773 hardcode_action=unsupported 17774fi 17775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17776$as_echo "$hardcode_action" >&6; } 17777 17778if test relink = "$hardcode_action" || 17779 test yes = "$inherit_rpath"; then 17780 # Fast installation is not supported 17781 enable_fast_install=no 17782elif test yes = "$shlibpath_overrides_runpath" || 17783 test no = "$enable_shared"; then 17784 # Fast installation is not necessary 17785 enable_fast_install=needless 17786fi 17787 17788 17789 17790 17791 17792 17793 if test yes != "$enable_dlopen"; then 17794 enable_dlopen=unknown 17795 enable_dlopen_self=unknown 17796 enable_dlopen_self_static=unknown 17797else 17798 lt_cv_dlopen=no 17799 lt_cv_dlopen_libs= 17800 17801 case $host_os in 17802 beos*) 17803 lt_cv_dlopen=load_add_on 17804 lt_cv_dlopen_libs= 17805 lt_cv_dlopen_self=yes 17806 ;; 17807 17808 mingw* | pw32* | cegcc*) 17809 lt_cv_dlopen=LoadLibrary 17810 lt_cv_dlopen_libs= 17811 ;; 17812 17813 cygwin*) 17814 lt_cv_dlopen=dlopen 17815 lt_cv_dlopen_libs= 17816 ;; 17817 17818 darwin*) 17819 # if libdl is installed we need to link against it 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17821$as_echo_n "checking for dlopen in -ldl... " >&6; } 17822if ${ac_cv_lib_dl_dlopen+:} false; then : 17823 $as_echo_n "(cached) " >&6 17824else 17825 ac_check_lib_save_LIBS=$LIBS 17826LIBS="-ldl $LIBS" 17827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17828/* end confdefs.h. */ 17829 17830/* Override any GCC internal prototype to avoid an error. 17831 Use char because int might match the return type of a GCC 17832 builtin and then its argument prototype would still apply. */ 17833#ifdef __cplusplus 17834extern "C" 17835#endif 17836char dlopen (); 17837int 17838main () 17839{ 17840return dlopen (); 17841 ; 17842 return 0; 17843} 17844_ACEOF 17845if ac_fn_c_try_link "$LINENO"; then : 17846 ac_cv_lib_dl_dlopen=yes 17847else 17848 ac_cv_lib_dl_dlopen=no 17849fi 17850rm -f core conftest.err conftest.$ac_objext \ 17851 conftest$ac_exeext conftest.$ac_ext 17852LIBS=$ac_check_lib_save_LIBS 17853fi 17854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17855$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17856if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17857 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17858else 17859 17860 lt_cv_dlopen=dyld 17861 lt_cv_dlopen_libs= 17862 lt_cv_dlopen_self=yes 17863 17864fi 17865 17866 ;; 17867 17868 tpf*) 17869 # Don't try to run any link tests for TPF. We know it's impossible 17870 # because TPF is a cross-compiler, and we know how we open DSOs. 17871 lt_cv_dlopen=dlopen 17872 lt_cv_dlopen_libs= 17873 lt_cv_dlopen_self=no 17874 ;; 17875 17876 *) 17877 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17878if test "x$ac_cv_func_shl_load" = xyes; then : 17879 lt_cv_dlopen=shl_load 17880else 17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17882$as_echo_n "checking for shl_load in -ldld... " >&6; } 17883if ${ac_cv_lib_dld_shl_load+:} false; then : 17884 $as_echo_n "(cached) " >&6 17885else 17886 ac_check_lib_save_LIBS=$LIBS 17887LIBS="-ldld $LIBS" 17888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17889/* end confdefs.h. */ 17890 17891/* Override any GCC internal prototype to avoid an error. 17892 Use char because int might match the return type of a GCC 17893 builtin and then its argument prototype would still apply. */ 17894#ifdef __cplusplus 17895extern "C" 17896#endif 17897char shl_load (); 17898int 17899main () 17900{ 17901return shl_load (); 17902 ; 17903 return 0; 17904} 17905_ACEOF 17906if ac_fn_c_try_link "$LINENO"; then : 17907 ac_cv_lib_dld_shl_load=yes 17908else 17909 ac_cv_lib_dld_shl_load=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext \ 17912 conftest$ac_exeext conftest.$ac_ext 17913LIBS=$ac_check_lib_save_LIBS 17914fi 17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17916$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17917if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17918 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17919else 17920 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17921if test "x$ac_cv_func_dlopen" = xyes; then : 17922 lt_cv_dlopen=dlopen 17923else 17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17925$as_echo_n "checking for dlopen in -ldl... " >&6; } 17926if ${ac_cv_lib_dl_dlopen+:} false; then : 17927 $as_echo_n "(cached) " >&6 17928else 17929 ac_check_lib_save_LIBS=$LIBS 17930LIBS="-ldl $LIBS" 17931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17932/* end confdefs.h. */ 17933 17934/* Override any GCC internal prototype to avoid an error. 17935 Use char because int might match the return type of a GCC 17936 builtin and then its argument prototype would still apply. */ 17937#ifdef __cplusplus 17938extern "C" 17939#endif 17940char dlopen (); 17941int 17942main () 17943{ 17944return dlopen (); 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_link "$LINENO"; then : 17950 ac_cv_lib_dl_dlopen=yes 17951else 17952 ac_cv_lib_dl_dlopen=no 17953fi 17954rm -f core conftest.err conftest.$ac_objext \ 17955 conftest$ac_exeext conftest.$ac_ext 17956LIBS=$ac_check_lib_save_LIBS 17957fi 17958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17959$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17960if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17961 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17962else 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17964$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17965if ${ac_cv_lib_svld_dlopen+:} false; then : 17966 $as_echo_n "(cached) " >&6 17967else 17968 ac_check_lib_save_LIBS=$LIBS 17969LIBS="-lsvld $LIBS" 17970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971/* end confdefs.h. */ 17972 17973/* Override any GCC internal prototype to avoid an error. 17974 Use char because int might match the return type of a GCC 17975 builtin and then its argument prototype would still apply. */ 17976#ifdef __cplusplus 17977extern "C" 17978#endif 17979char dlopen (); 17980int 17981main () 17982{ 17983return dlopen (); 17984 ; 17985 return 0; 17986} 17987_ACEOF 17988if ac_fn_c_try_link "$LINENO"; then : 17989 ac_cv_lib_svld_dlopen=yes 17990else 17991 ac_cv_lib_svld_dlopen=no 17992fi 17993rm -f core conftest.err conftest.$ac_objext \ 17994 conftest$ac_exeext conftest.$ac_ext 17995LIBS=$ac_check_lib_save_LIBS 17996fi 17997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17998$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17999if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18000 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18001else 18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18003$as_echo_n "checking for dld_link in -ldld... " >&6; } 18004if ${ac_cv_lib_dld_dld_link+:} false; then : 18005 $as_echo_n "(cached) " >&6 18006else 18007 ac_check_lib_save_LIBS=$LIBS 18008LIBS="-ldld $LIBS" 18009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18010/* end confdefs.h. */ 18011 18012/* Override any GCC internal prototype to avoid an error. 18013 Use char because int might match the return type of a GCC 18014 builtin and then its argument prototype would still apply. */ 18015#ifdef __cplusplus 18016extern "C" 18017#endif 18018char dld_link (); 18019int 18020main () 18021{ 18022return dld_link (); 18023 ; 18024 return 0; 18025} 18026_ACEOF 18027if ac_fn_c_try_link "$LINENO"; then : 18028 ac_cv_lib_dld_dld_link=yes 18029else 18030 ac_cv_lib_dld_dld_link=no 18031fi 18032rm -f core conftest.err conftest.$ac_objext \ 18033 conftest$ac_exeext conftest.$ac_ext 18034LIBS=$ac_check_lib_save_LIBS 18035fi 18036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18037$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18038if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18039 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18040fi 18041 18042 18043fi 18044 18045 18046fi 18047 18048 18049fi 18050 18051 18052fi 18053 18054 18055fi 18056 18057 ;; 18058 esac 18059 18060 if test no = "$lt_cv_dlopen"; then 18061 enable_dlopen=no 18062 else 18063 enable_dlopen=yes 18064 fi 18065 18066 case $lt_cv_dlopen in 18067 dlopen) 18068 save_CPPFLAGS=$CPPFLAGS 18069 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18070 18071 save_LDFLAGS=$LDFLAGS 18072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18073 18074 save_LIBS=$LIBS 18075 LIBS="$lt_cv_dlopen_libs $LIBS" 18076 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18078$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18079if ${lt_cv_dlopen_self+:} false; then : 18080 $as_echo_n "(cached) " >&6 18081else 18082 if test yes = "$cross_compiling"; then : 18083 lt_cv_dlopen_self=cross 18084else 18085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18086 lt_status=$lt_dlunknown 18087 cat > conftest.$ac_ext <<_LT_EOF 18088#line $LINENO "configure" 18089#include "confdefs.h" 18090 18091#if HAVE_DLFCN_H 18092#include <dlfcn.h> 18093#endif 18094 18095#include <stdio.h> 18096 18097#ifdef RTLD_GLOBAL 18098# define LT_DLGLOBAL RTLD_GLOBAL 18099#else 18100# ifdef DL_GLOBAL 18101# define LT_DLGLOBAL DL_GLOBAL 18102# else 18103# define LT_DLGLOBAL 0 18104# endif 18105#endif 18106 18107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18108 find out it does not work in some platform. */ 18109#ifndef LT_DLLAZY_OR_NOW 18110# ifdef RTLD_LAZY 18111# define LT_DLLAZY_OR_NOW RTLD_LAZY 18112# else 18113# ifdef DL_LAZY 18114# define LT_DLLAZY_OR_NOW DL_LAZY 18115# else 18116# ifdef RTLD_NOW 18117# define LT_DLLAZY_OR_NOW RTLD_NOW 18118# else 18119# ifdef DL_NOW 18120# define LT_DLLAZY_OR_NOW DL_NOW 18121# else 18122# define LT_DLLAZY_OR_NOW 0 18123# endif 18124# endif 18125# endif 18126# endif 18127#endif 18128 18129/* When -fvisibility=hidden is used, assume the code has been annotated 18130 correspondingly for the symbols needed. */ 18131#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18132int fnord () __attribute__((visibility("default"))); 18133#endif 18134 18135int fnord () { return 42; } 18136int main () 18137{ 18138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18139 int status = $lt_dlunknown; 18140 18141 if (self) 18142 { 18143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18144 else 18145 { 18146 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18147 else puts (dlerror ()); 18148 } 18149 /* dlclose (self); */ 18150 } 18151 else 18152 puts (dlerror ()); 18153 18154 return status; 18155} 18156_LT_EOF 18157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18158 (eval $ac_link) 2>&5 18159 ac_status=$? 18160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18161 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18162 (./conftest; exit; ) >&5 2>/dev/null 18163 lt_status=$? 18164 case x$lt_status in 18165 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18166 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18167 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18168 esac 18169 else : 18170 # compilation failed 18171 lt_cv_dlopen_self=no 18172 fi 18173fi 18174rm -fr conftest* 18175 18176 18177fi 18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18179$as_echo "$lt_cv_dlopen_self" >&6; } 18180 18181 if test yes = "$lt_cv_dlopen_self"; then 18182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18184$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18185if ${lt_cv_dlopen_self_static+:} false; then : 18186 $as_echo_n "(cached) " >&6 18187else 18188 if test yes = "$cross_compiling"; then : 18189 lt_cv_dlopen_self_static=cross 18190else 18191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18192 lt_status=$lt_dlunknown 18193 cat > conftest.$ac_ext <<_LT_EOF 18194#line $LINENO "configure" 18195#include "confdefs.h" 18196 18197#if HAVE_DLFCN_H 18198#include <dlfcn.h> 18199#endif 18200 18201#include <stdio.h> 18202 18203#ifdef RTLD_GLOBAL 18204# define LT_DLGLOBAL RTLD_GLOBAL 18205#else 18206# ifdef DL_GLOBAL 18207# define LT_DLGLOBAL DL_GLOBAL 18208# else 18209# define LT_DLGLOBAL 0 18210# endif 18211#endif 18212 18213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18214 find out it does not work in some platform. */ 18215#ifndef LT_DLLAZY_OR_NOW 18216# ifdef RTLD_LAZY 18217# define LT_DLLAZY_OR_NOW RTLD_LAZY 18218# else 18219# ifdef DL_LAZY 18220# define LT_DLLAZY_OR_NOW DL_LAZY 18221# else 18222# ifdef RTLD_NOW 18223# define LT_DLLAZY_OR_NOW RTLD_NOW 18224# else 18225# ifdef DL_NOW 18226# define LT_DLLAZY_OR_NOW DL_NOW 18227# else 18228# define LT_DLLAZY_OR_NOW 0 18229# endif 18230# endif 18231# endif 18232# endif 18233#endif 18234 18235/* When -fvisibility=hidden is used, assume the code has been annotated 18236 correspondingly for the symbols needed. */ 18237#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18238int fnord () __attribute__((visibility("default"))); 18239#endif 18240 18241int fnord () { return 42; } 18242int main () 18243{ 18244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18245 int status = $lt_dlunknown; 18246 18247 if (self) 18248 { 18249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18250 else 18251 { 18252 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18253 else puts (dlerror ()); 18254 } 18255 /* dlclose (self); */ 18256 } 18257 else 18258 puts (dlerror ()); 18259 18260 return status; 18261} 18262_LT_EOF 18263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18264 (eval $ac_link) 2>&5 18265 ac_status=$? 18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18267 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18268 (./conftest; exit; ) >&5 2>/dev/null 18269 lt_status=$? 18270 case x$lt_status in 18271 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18272 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18273 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18274 esac 18275 else : 18276 # compilation failed 18277 lt_cv_dlopen_self_static=no 18278 fi 18279fi 18280rm -fr conftest* 18281 18282 18283fi 18284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18285$as_echo "$lt_cv_dlopen_self_static" >&6; } 18286 fi 18287 18288 CPPFLAGS=$save_CPPFLAGS 18289 LDFLAGS=$save_LDFLAGS 18290 LIBS=$save_LIBS 18291 ;; 18292 esac 18293 18294 case $lt_cv_dlopen_self in 18295 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18296 *) enable_dlopen_self=unknown ;; 18297 esac 18298 18299 case $lt_cv_dlopen_self_static in 18300 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18301 *) enable_dlopen_self_static=unknown ;; 18302 esac 18303fi 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321striplib= 18322old_striplib= 18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18324$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18325if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18326 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18327 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18329$as_echo "yes" >&6; } 18330else 18331# FIXME - insert some real tests, host_os isn't really good enough 18332 case $host_os in 18333 darwin*) 18334 if test -n "$STRIP"; then 18335 striplib="$STRIP -x" 18336 old_striplib="$STRIP -S" 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18338$as_echo "yes" >&6; } 18339 else 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18341$as_echo "no" >&6; } 18342 fi 18343 ;; 18344 *) 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18346$as_echo "no" >&6; } 18347 ;; 18348 esac 18349fi 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 # Report what library types will actually be built 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18364$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18366$as_echo "$can_build_shared" >&6; } 18367 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18369$as_echo_n "checking whether to build shared libraries... " >&6; } 18370 test no = "$can_build_shared" && enable_shared=no 18371 18372 # On AIX, shared libraries and static libraries use the same namespace, and 18373 # are all built from PIC. 18374 case $host_os in 18375 aix3*) 18376 test yes = "$enable_shared" && enable_static=no 18377 if test -n "$RANLIB"; then 18378 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18379 postinstall_cmds='$RANLIB $lib' 18380 fi 18381 ;; 18382 18383 aix[4-9]*) 18384 if test ia64 != "$host_cpu"; then 18385 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18386 yes,aix,yes) ;; # shared object as lib.so file only 18387 yes,svr4,*) ;; # shared object as lib.so archive member only 18388 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18389 esac 18390 fi 18391 ;; 18392 esac 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18394$as_echo "$enable_shared" >&6; } 18395 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18397$as_echo_n "checking whether to build static libraries... " >&6; } 18398 # Make sure either enable_shared or enable_static is yes. 18399 test yes = "$enable_shared" || enable_static=yes 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18401$as_echo "$enable_static" >&6; } 18402 18403 18404 18405 18406fi 18407ac_ext=c 18408ac_cpp='$CPP $CPPFLAGS' 18409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18411ac_compiler_gnu=$ac_cv_c_compiler_gnu 18412 18413CC=$lt_save_CC 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 ac_config_commands="$ac_config_commands libtool" 18430 18431 18432 18433 18434# Only expand once: 18435 18436 18437 18438 18439 18440# Define a configure option for an alternate module directory 18441 18442# Check whether --with-xorg-module-dir was given. 18443if test "${with_xorg_module_dir+set}" = set; then : 18444 withval=$with_xorg_module_dir; moduledir="$withval" 18445else 18446 moduledir="$libdir/xorg/modules" 18447fi 18448 18449 18450# Store the list of server defined optional extensions in REQUIRED_MODULES 18451 18452 18453 SAVE_CFLAGS="$CFLAGS" 18454 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456/* end confdefs.h. */ 18457 18458#include "xorg-server.h" 18459#if !defined RANDR 18460#error RANDR not defined 18461#endif 18462 18463int 18464main () 18465{ 18466 18467 ; 18468 return 0; 18469} 18470_ACEOF 18471if ac_fn_c_try_compile "$LINENO"; then : 18472 _EXT_CHECK=yes 18473else 18474 _EXT_CHECK=no 18475fi 18476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18477 CFLAGS="$SAVE_CFLAGS" 18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18479$as_echo_n "checking if RANDR is defined... " >&6; } 18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18481$as_echo "$_EXT_CHECK" >&6; } 18482 if test "$_EXT_CHECK" != no; then 18483 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18484 fi 18485 18486 18487 18488 SAVE_CFLAGS="$CFLAGS" 18489 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492 18493#include "xorg-server.h" 18494#if !defined RENDER 18495#error RENDER not defined 18496#endif 18497 18498int 18499main () 18500{ 18501 18502 ; 18503 return 0; 18504} 18505_ACEOF 18506if ac_fn_c_try_compile "$LINENO"; then : 18507 _EXT_CHECK=yes 18508else 18509 _EXT_CHECK=no 18510fi 18511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18512 CFLAGS="$SAVE_CFLAGS" 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18514$as_echo_n "checking if RENDER is defined... " >&6; } 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18516$as_echo "$_EXT_CHECK" >&6; } 18517 if test "$_EXT_CHECK" != no; then 18518 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18519 fi 18520 18521 18522 18523 SAVE_CFLAGS="$CFLAGS" 18524 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18526/* end confdefs.h. */ 18527 18528#include "xorg-server.h" 18529#if !defined DPMSExtension 18530#error DPMSExtension not defined 18531#endif 18532 18533int 18534main () 18535{ 18536 18537 ; 18538 return 0; 18539} 18540_ACEOF 18541if ac_fn_c_try_compile "$LINENO"; then : 18542 _EXT_CHECK=yes 18543else 18544 _EXT_CHECK=no 18545fi 18546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18547 CFLAGS="$SAVE_CFLAGS" 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18549$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18551$as_echo "$_EXT_CHECK" >&6; } 18552 if test "$_EXT_CHECK" != no; then 18553 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18554 fi 18555 18556 18557# Obtain compiler/linker options for the driver dependencies 18558 18559pkg_failed=no 18560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18561$as_echo_n "checking for XORG... " >&6; } 18562 18563if test -n "$XORG_CFLAGS"; then 18564 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18565 elif test -n "$PKG_CONFIG"; then 18566 if test -n "$PKG_CONFIG" && \ 18567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18568 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18569 ac_status=$? 18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18571 test $ac_status = 0; }; then 18572 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18573 test "x$?" != "x0" && pkg_failed=yes 18574else 18575 pkg_failed=yes 18576fi 18577 else 18578 pkg_failed=untried 18579fi 18580if test -n "$XORG_LIBS"; then 18581 pkg_cv_XORG_LIBS="$XORG_LIBS" 18582 elif test -n "$PKG_CONFIG"; then 18583 if test -n "$PKG_CONFIG" && \ 18584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18585 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18586 ac_status=$? 18587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18588 test $ac_status = 0; }; then 18589 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18590 test "x$?" != "x0" && pkg_failed=yes 18591else 18592 pkg_failed=yes 18593fi 18594 else 18595 pkg_failed=untried 18596fi 18597 18598 18599 18600if test $pkg_failed = yes; then 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18602$as_echo "no" >&6; } 18603 18604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18605 _pkg_short_errors_supported=yes 18606else 18607 _pkg_short_errors_supported=no 18608fi 18609 if test $_pkg_short_errors_supported = yes; then 18610 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18611 else 18612 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18613 fi 18614 # Put the nasty error message in config.log where it belongs 18615 echo "$XORG_PKG_ERRORS" >&5 18616 18617 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18618 18619$XORG_PKG_ERRORS 18620 18621Consider adjusting the PKG_CONFIG_PATH environment variable if you 18622installed software in a non-standard prefix. 18623 18624Alternatively, you may set the environment variables XORG_CFLAGS 18625and XORG_LIBS to avoid the need to call pkg-config. 18626See the pkg-config man page for more details." "$LINENO" 5 18627elif test $pkg_failed = untried; then 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18629$as_echo "no" >&6; } 18630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18632as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18633is in your PATH or set the PKG_CONFIG environment variable to the full 18634path to pkg-config. 18635 18636Alternatively, you may set the environment variables XORG_CFLAGS 18637and XORG_LIBS to avoid the need to call pkg-config. 18638See the pkg-config man page for more details. 18639 18640To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18641See \`config.log' for more details" "$LINENO" 5; } 18642else 18643 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18644 XORG_LIBS=$pkg_cv_XORG_LIBS 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18646$as_echo "yes" >&6; } 18647 18648fi 18649 18650# Checks for libraries. 18651SAVE_CPPFLAGS="$CPPFLAGS" 18652CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18653ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18654" 18655if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18656 XSERVER_LIBPCIACCESS=yes 18657else 18658 XSERVER_LIBPCIACCESS=no 18659fi 18660 18661ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 18662if test "x$ac_cv_header_xf1bpp_h" = xyes; then : 18663 18664$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 18665 18666fi 18667 18668 18669ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 18670if test "x$ac_cv_header_xf4bpp_h" = xyes; then : 18671 18672$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 18673 18674fi 18675 18676 18677CPPFLAGS="$SAVE_CPPFLAGS" 18678 18679# Check whether --enable-xaa was given. 18680if test "${enable_xaa+set}" = set; then : 18681 enableval=$enable_xaa; XAA="$enableval" 18682else 18683 XAA=auto 18684fi 18685 18686if test "x$XAA" != xno; then 18687 save_CFLAGS=$CFLAGS 18688 save_CPPFLAGS=$CPPFLAGS 18689 CFLAGS=$XORG_CFLAGS 18690 CPPFLAGS="$XORG_CFLAGS" 18691 for ac_header in xaa.h 18692do : 18693 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18694if test "x$ac_cv_header_xaa_h" = xyes; then : 18695 cat >>confdefs.h <<_ACEOF 18696#define HAVE_XAA_H 1 18697_ACEOF 18698 XAA=yes 18699else 18700 XAA=no 18701fi 18702 18703done 18704 18705 CFLAGS=$save_CFLAGS 18706 CPPFLAGS=$save_CPPFLAGS 18707fi 18708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18709$as_echo_n "checking whether to include XAA support... " >&6; } 18710 if test "x$XAA" = xyes; then 18711 XAA_TRUE= 18712 XAA_FALSE='#' 18713else 18714 XAA_TRUE='#' 18715 XAA_FALSE= 18716fi 18717 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18719$as_echo "$XAA" >&6; } 18720 18721if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18722 18723pkg_failed=no 18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18725$as_echo_n "checking for PCIACCESS... " >&6; } 18726 18727if test -n "$PCIACCESS_CFLAGS"; then 18728 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18729 elif test -n "$PKG_CONFIG"; then 18730 if test -n "$PKG_CONFIG" && \ 18731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18732 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18733 ac_status=$? 18734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18735 test $ac_status = 0; }; then 18736 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18737 test "x$?" != "x0" && pkg_failed=yes 18738else 18739 pkg_failed=yes 18740fi 18741 else 18742 pkg_failed=untried 18743fi 18744if test -n "$PCIACCESS_LIBS"; then 18745 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18746 elif test -n "$PKG_CONFIG"; then 18747 if test -n "$PKG_CONFIG" && \ 18748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18749 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18750 ac_status=$? 18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18752 test $ac_status = 0; }; then 18753 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18754 test "x$?" != "x0" && pkg_failed=yes 18755else 18756 pkg_failed=yes 18757fi 18758 else 18759 pkg_failed=untried 18760fi 18761 18762 18763 18764if test $pkg_failed = yes; then 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18766$as_echo "no" >&6; } 18767 18768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18769 _pkg_short_errors_supported=yes 18770else 18771 _pkg_short_errors_supported=no 18772fi 18773 if test $_pkg_short_errors_supported = yes; then 18774 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18775 else 18776 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18777 fi 18778 # Put the nasty error message in config.log where it belongs 18779 echo "$PCIACCESS_PKG_ERRORS" >&5 18780 18781 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18782 18783$PCIACCESS_PKG_ERRORS 18784 18785Consider adjusting the PKG_CONFIG_PATH environment variable if you 18786installed software in a non-standard prefix. 18787 18788Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18789and PCIACCESS_LIBS to avoid the need to call pkg-config. 18790See the pkg-config man page for more details." "$LINENO" 5 18791elif test $pkg_failed = untried; then 18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18793$as_echo "no" >&6; } 18794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18796as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18797is in your PATH or set the PKG_CONFIG environment variable to the full 18798path to pkg-config. 18799 18800Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18801and PCIACCESS_LIBS to avoid the need to call pkg-config. 18802See the pkg-config man page for more details. 18803 18804To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18805See \`config.log' for more details" "$LINENO" 5; } 18806else 18807 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18808 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18810$as_echo "yes" >&6; } 18811 18812fi 18813 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18814fi 18815 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18816 XSERVER_LIBPCIACCESS_TRUE= 18817 XSERVER_LIBPCIACCESS_FALSE='#' 18818else 18819 XSERVER_LIBPCIACCESS_TRUE='#' 18820 XSERVER_LIBPCIACCESS_FALSE= 18821fi 18822 18823 18824# Checks for header files. 18825for ac_header in elf.h elf_abi.h 18826do : 18827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18830 cat >>confdefs.h <<_ACEOF 18831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18832_ACEOF 18833 18834fi 18835 18836done 18837 18838 18839 18840 18841DRIVER_NAME=rendition 18842 18843 18844ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18845 18846cat >confcache <<\_ACEOF 18847# This file is a shell script that caches the results of configure 18848# tests run on this system so they can be shared between configure 18849# scripts and configure runs, see configure's option --config-cache. 18850# It is not useful on other systems. If it contains results you don't 18851# want to keep, you may remove or edit it. 18852# 18853# config.status only pays attention to the cache file if you give it 18854# the --recheck option to rerun configure. 18855# 18856# `ac_cv_env_foo' variables (set or unset) will be overridden when 18857# loading this file, other *unset* `ac_cv_foo' will be assigned the 18858# following values. 18859 18860_ACEOF 18861 18862# The following way of writing the cache mishandles newlines in values, 18863# but we know of no workaround that is simple, portable, and efficient. 18864# So, we kill variables containing newlines. 18865# Ultrix sh set writes to stderr and can't be redirected directly, 18866# and sets the high bit in the cache file unless we assign to the vars. 18867( 18868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18869 eval ac_val=\$$ac_var 18870 case $ac_val in #( 18871 *${as_nl}*) 18872 case $ac_var in #( 18873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18874$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18875 esac 18876 case $ac_var in #( 18877 _ | IFS | as_nl) ;; #( 18878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18879 *) { eval $ac_var=; unset $ac_var;} ;; 18880 esac ;; 18881 esac 18882 done 18883 18884 (set) 2>&1 | 18885 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18886 *${as_nl}ac_space=\ *) 18887 # `set' does not quote correctly, so add quotes: double-quote 18888 # substitution turns \\\\ into \\, and sed turns \\ into \. 18889 sed -n \ 18890 "s/'/'\\\\''/g; 18891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18892 ;; #( 18893 *) 18894 # `set' quotes correctly as required by POSIX, so do not add quotes. 18895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18896 ;; 18897 esac | 18898 sort 18899) | 18900 sed ' 18901 /^ac_cv_env_/b end 18902 t clear 18903 :clear 18904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18905 t end 18906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18907 :end' >>confcache 18908if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18909 if test -w "$cache_file"; then 18910 if test "x$cache_file" != "x/dev/null"; then 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18912$as_echo "$as_me: updating cache $cache_file" >&6;} 18913 if test ! -f "$cache_file" || test -h "$cache_file"; then 18914 cat confcache >"$cache_file" 18915 else 18916 case $cache_file in #( 18917 */* | ?:*) 18918 mv -f confcache "$cache_file"$$ && 18919 mv -f "$cache_file"$$ "$cache_file" ;; #( 18920 *) 18921 mv -f confcache "$cache_file" ;; 18922 esac 18923 fi 18924 fi 18925 else 18926 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18927$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18928 fi 18929fi 18930rm -f confcache 18931 18932test "x$prefix" = xNONE && prefix=$ac_default_prefix 18933# Let make expand exec_prefix. 18934test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18935 18936DEFS=-DHAVE_CONFIG_H 18937 18938ac_libobjs= 18939ac_ltlibobjs= 18940U= 18941for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18942 # 1. Remove the extension, and $U if already installed. 18943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18946 # will be set to the directory where LIBOBJS objects are built. 18947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18949done 18950LIBOBJS=$ac_libobjs 18951 18952LTLIBOBJS=$ac_ltlibobjs 18953 18954 18955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18956$as_echo_n "checking that generated files are newer than configure... " >&6; } 18957 if test -n "$am_sleep_pid"; then 18958 # Hide warnings about reused PIDs. 18959 wait $am_sleep_pid 2>/dev/null 18960 fi 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18962$as_echo "done" >&6; } 18963 if test -n "$EXEEXT"; then 18964 am__EXEEXT_TRUE= 18965 am__EXEEXT_FALSE='#' 18966else 18967 am__EXEEXT_TRUE='#' 18968 am__EXEEXT_FALSE= 18969fi 18970 18971if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18972 as_fn_error $? "conditional \"AMDEP\" was never defined. 18973Usually this means the macro was only invoked conditionally." "$LINENO" 5 18974fi 18975if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18976 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18977Usually this means the macro was only invoked conditionally." "$LINENO" 5 18978fi 18979if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18980 as_fn_error $? "conditional \"XAA\" was never defined. 18981Usually this means the macro was only invoked conditionally." "$LINENO" 5 18982fi 18983if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18984 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18985Usually this means the macro was only invoked conditionally." "$LINENO" 5 18986fi 18987 18988: "${CONFIG_STATUS=./config.status}" 18989ac_write_fail=0 18990ac_clean_files_save=$ac_clean_files 18991ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18992{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18993$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18994as_write_fail=0 18995cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18996#! $SHELL 18997# Generated by $as_me. 18998# Run this file to recreate the current configuration. 18999# Compiler output produced by configure, useful for debugging 19000# configure, is in config.log if it exists. 19001 19002debug=false 19003ac_cs_recheck=false 19004ac_cs_silent=false 19005 19006SHELL=\${CONFIG_SHELL-$SHELL} 19007export SHELL 19008_ASEOF 19009cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19010## -------------------- ## 19011## M4sh Initialization. ## 19012## -------------------- ## 19013 19014# Be more Bourne compatible 19015DUALCASE=1; export DUALCASE # for MKS sh 19016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19017 emulate sh 19018 NULLCMD=: 19019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19020 # is contrary to our usage. Disable this feature. 19021 alias -g '${1+"$@"}'='"$@"' 19022 setopt NO_GLOB_SUBST 19023else 19024 case `(set -o) 2>/dev/null` in #( 19025 *posix*) : 19026 set -o posix ;; #( 19027 *) : 19028 ;; 19029esac 19030fi 19031 19032 19033as_nl=' 19034' 19035export as_nl 19036# Printing a long string crashes Solaris 7 /usr/bin/printf. 19037as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19040# Prefer a ksh shell builtin over an external printf program on Solaris, 19041# but without wasting forks for bash or zsh. 19042if test -z "$BASH_VERSION$ZSH_VERSION" \ 19043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19044 as_echo='print -r --' 19045 as_echo_n='print -rn --' 19046elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19047 as_echo='printf %s\n' 19048 as_echo_n='printf %s' 19049else 19050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19052 as_echo_n='/usr/ucb/echo -n' 19053 else 19054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19055 as_echo_n_body='eval 19056 arg=$1; 19057 case $arg in #( 19058 *"$as_nl"*) 19059 expr "X$arg" : "X\\(.*\\)$as_nl"; 19060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19061 esac; 19062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19063 ' 19064 export as_echo_n_body 19065 as_echo_n='sh -c $as_echo_n_body as_echo' 19066 fi 19067 export as_echo_body 19068 as_echo='sh -c $as_echo_body as_echo' 19069fi 19070 19071# The user is always right. 19072if test "${PATH_SEPARATOR+set}" != set; then 19073 PATH_SEPARATOR=: 19074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19076 PATH_SEPARATOR=';' 19077 } 19078fi 19079 19080 19081# IFS 19082# We need space, tab and new line, in precisely that order. Quoting is 19083# there to prevent editors from complaining about space-tab. 19084# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19085# splitting by setting IFS to empty value.) 19086IFS=" "" $as_nl" 19087 19088# Find who we are. Look in the path if we contain no directory separator. 19089as_myself= 19090case $0 in #(( 19091 *[\\/]* ) as_myself=$0 ;; 19092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19093for as_dir in $PATH 19094do 19095 IFS=$as_save_IFS 19096 test -z "$as_dir" && as_dir=. 19097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19098 done 19099IFS=$as_save_IFS 19100 19101 ;; 19102esac 19103# We did not find ourselves, most probably we were run as `sh COMMAND' 19104# in which case we are not to be found in the path. 19105if test "x$as_myself" = x; then 19106 as_myself=$0 19107fi 19108if test ! -f "$as_myself"; then 19109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19110 exit 1 19111fi 19112 19113# Unset variables that we do not need and which cause bugs (e.g. in 19114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19115# suppresses any "Segmentation fault" message there. '((' could 19116# trigger a bug in pdksh 5.2.14. 19117for as_var in BASH_ENV ENV MAIL MAILPATH 19118do eval test x\${$as_var+set} = xset \ 19119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19120done 19121PS1='$ ' 19122PS2='> ' 19123PS4='+ ' 19124 19125# NLS nuisances. 19126LC_ALL=C 19127export LC_ALL 19128LANGUAGE=C 19129export LANGUAGE 19130 19131# CDPATH. 19132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19133 19134 19135# as_fn_error STATUS ERROR [LINENO LOG_FD] 19136# ---------------------------------------- 19137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19139# script with STATUS, using 1 if that was 0. 19140as_fn_error () 19141{ 19142 as_status=$1; test $as_status -eq 0 && as_status=1 19143 if test "$4"; then 19144 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19146 fi 19147 $as_echo "$as_me: error: $2" >&2 19148 as_fn_exit $as_status 19149} # as_fn_error 19150 19151 19152# as_fn_set_status STATUS 19153# ----------------------- 19154# Set $? to STATUS, without forking. 19155as_fn_set_status () 19156{ 19157 return $1 19158} # as_fn_set_status 19159 19160# as_fn_exit STATUS 19161# ----------------- 19162# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19163as_fn_exit () 19164{ 19165 set +e 19166 as_fn_set_status $1 19167 exit $1 19168} # as_fn_exit 19169 19170# as_fn_unset VAR 19171# --------------- 19172# Portably unset VAR. 19173as_fn_unset () 19174{ 19175 { eval $1=; unset $1;} 19176} 19177as_unset=as_fn_unset 19178# as_fn_append VAR VALUE 19179# ---------------------- 19180# Append the text in VALUE to the end of the definition contained in VAR. Take 19181# advantage of any shell optimizations that allow amortized linear growth over 19182# repeated appends, instead of the typical quadratic growth present in naive 19183# implementations. 19184if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19185 eval 'as_fn_append () 19186 { 19187 eval $1+=\$2 19188 }' 19189else 19190 as_fn_append () 19191 { 19192 eval $1=\$$1\$2 19193 } 19194fi # as_fn_append 19195 19196# as_fn_arith ARG... 19197# ------------------ 19198# Perform arithmetic evaluation on the ARGs, and store the result in the 19199# global $as_val. Take advantage of shells that can avoid forks. The arguments 19200# must be portable across $(()) and expr. 19201if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19202 eval 'as_fn_arith () 19203 { 19204 as_val=$(( $* )) 19205 }' 19206else 19207 as_fn_arith () 19208 { 19209 as_val=`expr "$@" || test $? -eq 1` 19210 } 19211fi # as_fn_arith 19212 19213 19214if expr a : '\(a\)' >/dev/null 2>&1 && 19215 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19216 as_expr=expr 19217else 19218 as_expr=false 19219fi 19220 19221if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19222 as_basename=basename 19223else 19224 as_basename=false 19225fi 19226 19227if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19228 as_dirname=dirname 19229else 19230 as_dirname=false 19231fi 19232 19233as_me=`$as_basename -- "$0" || 19234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19235 X"$0" : 'X\(//\)$' \| \ 19236 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19237$as_echo X/"$0" | 19238 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19239 s//\1/ 19240 q 19241 } 19242 /^X\/\(\/\/\)$/{ 19243 s//\1/ 19244 q 19245 } 19246 /^X\/\(\/\).*/{ 19247 s//\1/ 19248 q 19249 } 19250 s/.*/./; q'` 19251 19252# Avoid depending upon Character Ranges. 19253as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19255as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19256as_cr_digits='0123456789' 19257as_cr_alnum=$as_cr_Letters$as_cr_digits 19258 19259ECHO_C= ECHO_N= ECHO_T= 19260case `echo -n x` in #((((( 19261-n*) 19262 case `echo 'xy\c'` in 19263 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19264 xy) ECHO_C='\c';; 19265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19266 ECHO_T=' ';; 19267 esac;; 19268*) 19269 ECHO_N='-n';; 19270esac 19271 19272rm -f conf$$ conf$$.exe conf$$.file 19273if test -d conf$$.dir; then 19274 rm -f conf$$.dir/conf$$.file 19275else 19276 rm -f conf$$.dir 19277 mkdir conf$$.dir 2>/dev/null 19278fi 19279if (echo >conf$$.file) 2>/dev/null; then 19280 if ln -s conf$$.file conf$$ 2>/dev/null; then 19281 as_ln_s='ln -s' 19282 # ... but there are two gotchas: 19283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19285 # In both cases, we have to default to `cp -pR'. 19286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19287 as_ln_s='cp -pR' 19288 elif ln conf$$.file conf$$ 2>/dev/null; then 19289 as_ln_s=ln 19290 else 19291 as_ln_s='cp -pR' 19292 fi 19293else 19294 as_ln_s='cp -pR' 19295fi 19296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19297rmdir conf$$.dir 2>/dev/null 19298 19299 19300# as_fn_mkdir_p 19301# ------------- 19302# Create "$as_dir" as a directory, including parents if necessary. 19303as_fn_mkdir_p () 19304{ 19305 19306 case $as_dir in #( 19307 -*) as_dir=./$as_dir;; 19308 esac 19309 test -d "$as_dir" || eval $as_mkdir_p || { 19310 as_dirs= 19311 while :; do 19312 case $as_dir in #( 19313 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19314 *) as_qdir=$as_dir;; 19315 esac 19316 as_dirs="'$as_qdir' $as_dirs" 19317 as_dir=`$as_dirname -- "$as_dir" || 19318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19319 X"$as_dir" : 'X\(//\)[^/]' \| \ 19320 X"$as_dir" : 'X\(//\)$' \| \ 19321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19322$as_echo X"$as_dir" | 19323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19324 s//\1/ 19325 q 19326 } 19327 /^X\(\/\/\)[^/].*/{ 19328 s//\1/ 19329 q 19330 } 19331 /^X\(\/\/\)$/{ 19332 s//\1/ 19333 q 19334 } 19335 /^X\(\/\).*/{ 19336 s//\1/ 19337 q 19338 } 19339 s/.*/./; q'` 19340 test -d "$as_dir" && break 19341 done 19342 test -z "$as_dirs" || eval "mkdir $as_dirs" 19343 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19344 19345 19346} # as_fn_mkdir_p 19347if mkdir -p . 2>/dev/null; then 19348 as_mkdir_p='mkdir -p "$as_dir"' 19349else 19350 test -d ./-p && rmdir ./-p 19351 as_mkdir_p=false 19352fi 19353 19354 19355# as_fn_executable_p FILE 19356# ----------------------- 19357# Test if FILE is an executable regular file. 19358as_fn_executable_p () 19359{ 19360 test -f "$1" && test -x "$1" 19361} # as_fn_executable_p 19362as_test_x='test -x' 19363as_executable_p=as_fn_executable_p 19364 19365# Sed expression to map a string onto a valid CPP name. 19366as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19367 19368# Sed expression to map a string onto a valid variable name. 19369as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19370 19371 19372exec 6>&1 19373## ----------------------------------- ## 19374## Main body of $CONFIG_STATUS script. ## 19375## ----------------------------------- ## 19376_ASEOF 19377test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19378 19379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19380# Save the log message, to keep $0 and so on meaningful, and to 19381# report actual input values of CONFIG_FILES etc. instead of their 19382# values after options handling. 19383ac_log=" 19384This file was extended by xf86-video-rendition $as_me 4.2.7, which was 19385generated by GNU Autoconf 2.69. Invocation command line was 19386 19387 CONFIG_FILES = $CONFIG_FILES 19388 CONFIG_HEADERS = $CONFIG_HEADERS 19389 CONFIG_LINKS = $CONFIG_LINKS 19390 CONFIG_COMMANDS = $CONFIG_COMMANDS 19391 $ $0 $@ 19392 19393on `(hostname || uname -n) 2>/dev/null | sed 1q` 19394" 19395 19396_ACEOF 19397 19398case $ac_config_files in *" 19399"*) set x $ac_config_files; shift; ac_config_files=$*;; 19400esac 19401 19402case $ac_config_headers in *" 19403"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19404esac 19405 19406 19407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19408# Files that config.status was made for. 19409config_files="$ac_config_files" 19410config_headers="$ac_config_headers" 19411config_commands="$ac_config_commands" 19412 19413_ACEOF 19414 19415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19416ac_cs_usage="\ 19417\`$as_me' instantiates files and other configuration actions 19418from templates according to the current configuration. Unless the files 19419and actions are specified as TAGs, all are instantiated by default. 19420 19421Usage: $0 [OPTION]... [TAG]... 19422 19423 -h, --help print this help, then exit 19424 -V, --version print version number and configuration settings, then exit 19425 --config print configuration, then exit 19426 -q, --quiet, --silent 19427 do not print progress messages 19428 -d, --debug don't remove temporary files 19429 --recheck update $as_me by reconfiguring in the same conditions 19430 --file=FILE[:TEMPLATE] 19431 instantiate the configuration file FILE 19432 --header=FILE[:TEMPLATE] 19433 instantiate the configuration header FILE 19434 19435Configuration files: 19436$config_files 19437 19438Configuration headers: 19439$config_headers 19440 19441Configuration commands: 19442$config_commands 19443 19444Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19445 19446_ACEOF 19447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19448ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19449ac_cs_version="\\ 19450xf86-video-rendition config.status 4.2.7 19451configured by $0, generated by GNU Autoconf 2.69, 19452 with options \\"\$ac_cs_config\\" 19453 19454Copyright (C) 2012 Free Software Foundation, Inc. 19455This config.status script is free software; the Free Software Foundation 19456gives unlimited permission to copy, distribute and modify it." 19457 19458ac_pwd='$ac_pwd' 19459srcdir='$srcdir' 19460INSTALL='$INSTALL' 19461MKDIR_P='$MKDIR_P' 19462AWK='$AWK' 19463test -n "\$AWK" || AWK=awk 19464_ACEOF 19465 19466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19467# The default lists apply if the user does not specify any file. 19468ac_need_defaults=: 19469while test $# != 0 19470do 19471 case $1 in 19472 --*=?*) 19473 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19475 ac_shift=: 19476 ;; 19477 --*=) 19478 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19479 ac_optarg= 19480 ac_shift=: 19481 ;; 19482 *) 19483 ac_option=$1 19484 ac_optarg=$2 19485 ac_shift=shift 19486 ;; 19487 esac 19488 19489 case $ac_option in 19490 # Handling of the options. 19491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19492 ac_cs_recheck=: ;; 19493 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19494 $as_echo "$ac_cs_version"; exit ;; 19495 --config | --confi | --conf | --con | --co | --c ) 19496 $as_echo "$ac_cs_config"; exit ;; 19497 --debug | --debu | --deb | --de | --d | -d ) 19498 debug=: ;; 19499 --file | --fil | --fi | --f ) 19500 $ac_shift 19501 case $ac_optarg in 19502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19503 '') as_fn_error $? "missing file argument" ;; 19504 esac 19505 as_fn_append CONFIG_FILES " '$ac_optarg'" 19506 ac_need_defaults=false;; 19507 --header | --heade | --head | --hea ) 19508 $ac_shift 19509 case $ac_optarg in 19510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19511 esac 19512 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19513 ac_need_defaults=false;; 19514 --he | --h) 19515 # Conflict between --help and --header 19516 as_fn_error $? "ambiguous option: \`$1' 19517Try \`$0 --help' for more information.";; 19518 --help | --hel | -h ) 19519 $as_echo "$ac_cs_usage"; exit ;; 19520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19521 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19522 ac_cs_silent=: ;; 19523 19524 # This is an error. 19525 -*) as_fn_error $? "unrecognized option: \`$1' 19526Try \`$0 --help' for more information." ;; 19527 19528 *) as_fn_append ac_config_targets " $1" 19529 ac_need_defaults=false ;; 19530 19531 esac 19532 shift 19533done 19534 19535ac_configure_extra_args= 19536 19537if $ac_cs_silent; then 19538 exec 6>/dev/null 19539 ac_configure_extra_args="$ac_configure_extra_args --silent" 19540fi 19541 19542_ACEOF 19543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19544if \$ac_cs_recheck; then 19545 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19546 shift 19547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19548 CONFIG_SHELL='$SHELL' 19549 export CONFIG_SHELL 19550 exec "\$@" 19551fi 19552 19553_ACEOF 19554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19555exec 5>>config.log 19556{ 19557 echo 19558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19559## Running $as_me. ## 19560_ASBOX 19561 $as_echo "$ac_log" 19562} >&5 19563 19564_ACEOF 19565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19566# 19567# INIT-COMMANDS 19568# 19569AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19570 19571 19572# The HP-UX ksh and POSIX shell print the target directory to stdout 19573# if CDPATH is set. 19574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19575 19576sed_quote_subst='$sed_quote_subst' 19577double_quote_subst='$double_quote_subst' 19578delay_variable_subst='$delay_variable_subst' 19579enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19580macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19581macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19582enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19583pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19584enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19585shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19586SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19587ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19588PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19589host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19590host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19591host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19592build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19593build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19594build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19595SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19596Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19597GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19598EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19599FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19600LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19601NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19602LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19603max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19604ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19605exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19606lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19607lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19608lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19609lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19610lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19611reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19612reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19613OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19614deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19615file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19616file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19617want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19618DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19619sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19620AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19621AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19622archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19623STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19624RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19625old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19626old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19627old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19628lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19629CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19630CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19631compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19632GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19633lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19634lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19635lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19636lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19637lt_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"`' 19638lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19639nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19640lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19641lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19642objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19643MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19644lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19645lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19646lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19647lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19648lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19649need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19650MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19651DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19652NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19653LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19654OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19655OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19656libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19657shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19658extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19659archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19660enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19661export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19662whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19663compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19664old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19665old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19666archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19667archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19668module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19669module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19670with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19671allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19672no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19673hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19674hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19675hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19676hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19677hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19678hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19679hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19680inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19681link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19682always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19683export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19684exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19685include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19686prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19687postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19688file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19689variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19690need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19691need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19692version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19693runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19694shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19695shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19696libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19697library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19698soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19699install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19700postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19701postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19702finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19703finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19704hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19705sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19706configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19707configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19708hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19709enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19710enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19711enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19712old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19713striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19714 19715LTCC='$LTCC' 19716LTCFLAGS='$LTCFLAGS' 19717compiler='$compiler_DEFAULT' 19718 19719# A function that is used when there is no print builtin or printf. 19720func_fallback_echo () 19721{ 19722 eval 'cat <<_LTECHO_EOF 19723\$1 19724_LTECHO_EOF' 19725} 19726 19727# Quote evaled strings. 19728for var in SHELL \ 19729ECHO \ 19730PATH_SEPARATOR \ 19731SED \ 19732GREP \ 19733EGREP \ 19734FGREP \ 19735LD \ 19736NM \ 19737LN_S \ 19738lt_SP2NL \ 19739lt_NL2SP \ 19740reload_flag \ 19741OBJDUMP \ 19742deplibs_check_method \ 19743file_magic_cmd \ 19744file_magic_glob \ 19745want_nocaseglob \ 19746DLLTOOL \ 19747sharedlib_from_linklib_cmd \ 19748AR \ 19749AR_FLAGS \ 19750archiver_list_spec \ 19751STRIP \ 19752RANLIB \ 19753CC \ 19754CFLAGS \ 19755compiler \ 19756lt_cv_sys_global_symbol_pipe \ 19757lt_cv_sys_global_symbol_to_cdecl \ 19758lt_cv_sys_global_symbol_to_import \ 19759lt_cv_sys_global_symbol_to_c_name_address \ 19760lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19761lt_cv_nm_interface \ 19762nm_file_list_spec \ 19763lt_cv_truncate_bin \ 19764lt_prog_compiler_no_builtin_flag \ 19765lt_prog_compiler_pic \ 19766lt_prog_compiler_wl \ 19767lt_prog_compiler_static \ 19768lt_cv_prog_compiler_c_o \ 19769need_locks \ 19770MANIFEST_TOOL \ 19771DSYMUTIL \ 19772NMEDIT \ 19773LIPO \ 19774OTOOL \ 19775OTOOL64 \ 19776shrext_cmds \ 19777export_dynamic_flag_spec \ 19778whole_archive_flag_spec \ 19779compiler_needs_object \ 19780with_gnu_ld \ 19781allow_undefined_flag \ 19782no_undefined_flag \ 19783hardcode_libdir_flag_spec \ 19784hardcode_libdir_separator \ 19785exclude_expsyms \ 19786include_expsyms \ 19787file_list_spec \ 19788variables_saved_for_relink \ 19789libname_spec \ 19790library_names_spec \ 19791soname_spec \ 19792install_override_mode \ 19793finish_eval \ 19794old_striplib \ 19795striplib; do 19796 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19797 *[\\\\\\\`\\"\\\$]*) 19798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19799 ;; 19800 *) 19801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19802 ;; 19803 esac 19804done 19805 19806# Double-quote double-evaled strings. 19807for var in reload_cmds \ 19808old_postinstall_cmds \ 19809old_postuninstall_cmds \ 19810old_archive_cmds \ 19811extract_expsyms_cmds \ 19812old_archive_from_new_cmds \ 19813old_archive_from_expsyms_cmds \ 19814archive_cmds \ 19815archive_expsym_cmds \ 19816module_cmds \ 19817module_expsym_cmds \ 19818export_symbols_cmds \ 19819prelink_cmds \ 19820postlink_cmds \ 19821postinstall_cmds \ 19822postuninstall_cmds \ 19823finish_cmds \ 19824sys_lib_search_path_spec \ 19825configure_time_dlsearch_path \ 19826configure_time_lt_sys_library_path; do 19827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19828 *[\\\\\\\`\\"\\\$]*) 19829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19830 ;; 19831 *) 19832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19833 ;; 19834 esac 19835done 19836 19837ac_aux_dir='$ac_aux_dir' 19838 19839# See if we are running on zsh, and set the options that allow our 19840# commands through without removal of \ escapes INIT. 19841if test -n "\${ZSH_VERSION+set}"; then 19842 setopt NO_GLOB_SUBST 19843fi 19844 19845 19846 PACKAGE='$PACKAGE' 19847 VERSION='$VERSION' 19848 RM='$RM' 19849 ofile='$ofile' 19850 19851 19852 19853 19854_ACEOF 19855 19856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19857 19858# Handling of arguments. 19859for ac_config_target in $ac_config_targets 19860do 19861 case $ac_config_target in 19862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19866 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19867 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19868 19869 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19870 esac 19871done 19872 19873 19874# If the user did not use the arguments to specify the items to instantiate, 19875# then the envvar interface is used. Set only those that are not. 19876# We use the long form for the default assignment because of an extremely 19877# bizarre bug on SunOS 4.1.3. 19878if $ac_need_defaults; then 19879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19882fi 19883 19884# Have a temporary directory for convenience. Make it in the build tree 19885# simply because there is no reason against having it here, and in addition, 19886# creating and moving files from /tmp can sometimes cause problems. 19887# Hook for its removal unless debugging. 19888# Note that there is a small window in which the directory will not be cleaned: 19889# after its creation but before its name has been assigned to `$tmp'. 19890$debug || 19891{ 19892 tmp= ac_tmp= 19893 trap 'exit_status=$? 19894 : "${ac_tmp:=$tmp}" 19895 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19896' 0 19897 trap 'as_fn_exit 1' 1 2 13 15 19898} 19899# Create a (secure) tmp directory for tmp files. 19900 19901{ 19902 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19903 test -d "$tmp" 19904} || 19905{ 19906 tmp=./conf$$-$RANDOM 19907 (umask 077 && mkdir "$tmp") 19908} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19909ac_tmp=$tmp 19910 19911# Set up the scripts for CONFIG_FILES section. 19912# No need to generate them if there are no CONFIG_FILES. 19913# This happens for instance with `./config.status config.h'. 19914if test -n "$CONFIG_FILES"; then 19915 19916 19917ac_cr=`echo X | tr X '\015'` 19918# On cygwin, bash can eat \r inside `` if the user requested igncr. 19919# But we know of no other shell where ac_cr would be empty at this 19920# point, so we can use a bashism as a fallback. 19921if test "x$ac_cr" = x; then 19922 eval ac_cr=\$\'\\r\' 19923fi 19924ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19925if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19926 ac_cs_awk_cr='\\r' 19927else 19928 ac_cs_awk_cr=$ac_cr 19929fi 19930 19931echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19932_ACEOF 19933 19934 19935{ 19936 echo "cat >conf$$subs.awk <<_ACEOF" && 19937 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19938 echo "_ACEOF" 19939} >conf$$subs.sh || 19940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19941ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19942ac_delim='%!_!# ' 19943for ac_last_try in false false false false false :; do 19944 . ./conf$$subs.sh || 19945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19946 19947 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19948 if test $ac_delim_n = $ac_delim_num; then 19949 break 19950 elif $ac_last_try; then 19951 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19952 else 19953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19954 fi 19955done 19956rm -f conf$$subs.sh 19957 19958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19959cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19960_ACEOF 19961sed -n ' 19962h 19963s/^/S["/; s/!.*/"]=/ 19964p 19965g 19966s/^[^!]*!// 19967:repl 19968t repl 19969s/'"$ac_delim"'$// 19970t delim 19971:nl 19972h 19973s/\(.\{148\}\)..*/\1/ 19974t more1 19975s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19976p 19977n 19978b repl 19979:more1 19980s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19981p 19982g 19983s/.\{148\}// 19984t nl 19985:delim 19986h 19987s/\(.\{148\}\)..*/\1/ 19988t more2 19989s/["\\]/\\&/g; s/^/"/; s/$/"/ 19990p 19991b 19992:more2 19993s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19994p 19995g 19996s/.\{148\}// 19997t delim 19998' <conf$$subs.awk | sed ' 19999/^[^""]/{ 20000 N 20001 s/\n// 20002} 20003' >>$CONFIG_STATUS || ac_write_fail=1 20004rm -f conf$$subs.awk 20005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20006_ACAWK 20007cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20008 for (key in S) S_is_set[key] = 1 20009 FS = "" 20010 20011} 20012{ 20013 line = $ 0 20014 nfields = split(line, field, "@") 20015 substed = 0 20016 len = length(field[1]) 20017 for (i = 2; i < nfields; i++) { 20018 key = field[i] 20019 keylen = length(key) 20020 if (S_is_set[key]) { 20021 value = S[key] 20022 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20023 len += length(value) + length(field[++i]) 20024 substed = 1 20025 } else 20026 len += 1 + keylen 20027 } 20028 20029 print line 20030} 20031 20032_ACAWK 20033_ACEOF 20034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20035if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20036 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20037else 20038 cat 20039fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20040 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20041_ACEOF 20042 20043# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20044# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20045# trailing colons and then remove the whole line if VPATH becomes empty 20046# (actually we leave an empty line to preserve line numbers). 20047if test "x$srcdir" = x.; then 20048 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20049h 20050s/// 20051s/^/:/ 20052s/[ ]*$/:/ 20053s/:\$(srcdir):/:/g 20054s/:\${srcdir}:/:/g 20055s/:@srcdir@:/:/g 20056s/^:*// 20057s/:*$// 20058x 20059s/\(=[ ]*\).*/\1/ 20060G 20061s/\n// 20062s/^[^=]*=[ ]*$// 20063}' 20064fi 20065 20066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20067fi # test -n "$CONFIG_FILES" 20068 20069# Set up the scripts for CONFIG_HEADERS section. 20070# No need to generate them if there are no CONFIG_HEADERS. 20071# This happens for instance with `./config.status Makefile'. 20072if test -n "$CONFIG_HEADERS"; then 20073cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20074BEGIN { 20075_ACEOF 20076 20077# Transform confdefs.h into an awk script `defines.awk', embedded as 20078# here-document in config.status, that substitutes the proper values into 20079# config.h.in to produce config.h. 20080 20081# Create a delimiter string that does not exist in confdefs.h, to ease 20082# handling of long lines. 20083ac_delim='%!_!# ' 20084for ac_last_try in false false :; do 20085 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20086 if test -z "$ac_tt"; then 20087 break 20088 elif $ac_last_try; then 20089 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20090 else 20091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20092 fi 20093done 20094 20095# For the awk script, D is an array of macro values keyed by name, 20096# likewise P contains macro parameters if any. Preserve backslash 20097# newline sequences. 20098 20099ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20100sed -n ' 20101s/.\{148\}/&'"$ac_delim"'/g 20102t rset 20103:rset 20104s/^[ ]*#[ ]*define[ ][ ]*/ / 20105t def 20106d 20107:def 20108s/\\$// 20109t bsnl 20110s/["\\]/\\&/g 20111s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20112D["\1"]=" \3"/p 20113s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20114d 20115:bsnl 20116s/["\\]/\\&/g 20117s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20118D["\1"]=" \3\\\\\\n"\\/p 20119t cont 20120s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20121t cont 20122d 20123:cont 20124n 20125s/.\{148\}/&'"$ac_delim"'/g 20126t clear 20127:clear 20128s/\\$// 20129t bsnlc 20130s/["\\]/\\&/g; s/^/"/; s/$/"/p 20131d 20132:bsnlc 20133s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20134b cont 20135' <confdefs.h | sed ' 20136s/'"$ac_delim"'/"\\\ 20137"/g' >>$CONFIG_STATUS || ac_write_fail=1 20138 20139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20140 for (key in D) D_is_set[key] = 1 20141 FS = "" 20142} 20143/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20144 line = \$ 0 20145 split(line, arg, " ") 20146 if (arg[1] == "#") { 20147 defundef = arg[2] 20148 mac1 = arg[3] 20149 } else { 20150 defundef = substr(arg[1], 2) 20151 mac1 = arg[2] 20152 } 20153 split(mac1, mac2, "(") #) 20154 macro = mac2[1] 20155 prefix = substr(line, 1, index(line, defundef) - 1) 20156 if (D_is_set[macro]) { 20157 # Preserve the white space surrounding the "#". 20158 print prefix "define", macro P[macro] D[macro] 20159 next 20160 } else { 20161 # Replace #undef with comments. This is necessary, for example, 20162 # in the case of _POSIX_SOURCE, which is predefined and required 20163 # on some systems where configure will not decide to define it. 20164 if (defundef == "undef") { 20165 print "/*", prefix defundef, macro, "*/" 20166 next 20167 } 20168 } 20169} 20170{ print } 20171_ACAWK 20172_ACEOF 20173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20174 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20175fi # test -n "$CONFIG_HEADERS" 20176 20177 20178eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20179shift 20180for ac_tag 20181do 20182 case $ac_tag in 20183 :[FHLC]) ac_mode=$ac_tag; continue;; 20184 esac 20185 case $ac_mode$ac_tag in 20186 :[FHL]*:*);; 20187 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20188 :[FH]-) ac_tag=-:-;; 20189 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20190 esac 20191 ac_save_IFS=$IFS 20192 IFS=: 20193 set x $ac_tag 20194 IFS=$ac_save_IFS 20195 shift 20196 ac_file=$1 20197 shift 20198 20199 case $ac_mode in 20200 :L) ac_source=$1;; 20201 :[FH]) 20202 ac_file_inputs= 20203 for ac_f 20204 do 20205 case $ac_f in 20206 -) ac_f="$ac_tmp/stdin";; 20207 *) # Look for the file first in the build tree, then in the source tree 20208 # (if the path is not absolute). The absolute path cannot be DOS-style, 20209 # because $ac_f cannot contain `:'. 20210 test -f "$ac_f" || 20211 case $ac_f in 20212 [\\/$]*) false;; 20213 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20214 esac || 20215 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20216 esac 20217 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20218 as_fn_append ac_file_inputs " '$ac_f'" 20219 done 20220 20221 # Let's still pretend it is `configure' which instantiates (i.e., don't 20222 # use $as_me), people would be surprised to read: 20223 # /* config.h. Generated by config.status. */ 20224 configure_input='Generated from '` 20225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20226 `' by configure.' 20227 if test x"$ac_file" != x-; then 20228 configure_input="$ac_file. $configure_input" 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20230$as_echo "$as_me: creating $ac_file" >&6;} 20231 fi 20232 # Neutralize special characters interpreted by sed in replacement strings. 20233 case $configure_input in #( 20234 *\&* | *\|* | *\\* ) 20235 ac_sed_conf_input=`$as_echo "$configure_input" | 20236 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20237 *) ac_sed_conf_input=$configure_input;; 20238 esac 20239 20240 case $ac_tag in 20241 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20243 esac 20244 ;; 20245 esac 20246 20247 ac_dir=`$as_dirname -- "$ac_file" || 20248$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20249 X"$ac_file" : 'X\(//\)[^/]' \| \ 20250 X"$ac_file" : 'X\(//\)$' \| \ 20251 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20252$as_echo X"$ac_file" | 20253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20254 s//\1/ 20255 q 20256 } 20257 /^X\(\/\/\)[^/].*/{ 20258 s//\1/ 20259 q 20260 } 20261 /^X\(\/\/\)$/{ 20262 s//\1/ 20263 q 20264 } 20265 /^X\(\/\).*/{ 20266 s//\1/ 20267 q 20268 } 20269 s/.*/./; q'` 20270 as_dir="$ac_dir"; as_fn_mkdir_p 20271 ac_builddir=. 20272 20273case "$ac_dir" in 20274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20275*) 20276 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20277 # A ".." for each directory in $ac_dir_suffix. 20278 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20279 case $ac_top_builddir_sub in 20280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20282 esac ;; 20283esac 20284ac_abs_top_builddir=$ac_pwd 20285ac_abs_builddir=$ac_pwd$ac_dir_suffix 20286# for backward compatibility: 20287ac_top_builddir=$ac_top_build_prefix 20288 20289case $srcdir in 20290 .) # We are building in place. 20291 ac_srcdir=. 20292 ac_top_srcdir=$ac_top_builddir_sub 20293 ac_abs_top_srcdir=$ac_pwd ;; 20294 [\\/]* | ?:[\\/]* ) # Absolute name. 20295 ac_srcdir=$srcdir$ac_dir_suffix; 20296 ac_top_srcdir=$srcdir 20297 ac_abs_top_srcdir=$srcdir ;; 20298 *) # Relative name. 20299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20300 ac_top_srcdir=$ac_top_build_prefix$srcdir 20301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20302esac 20303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20304 20305 20306 case $ac_mode in 20307 :F) 20308 # 20309 # CONFIG_FILE 20310 # 20311 20312 case $INSTALL in 20313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20315 esac 20316 ac_MKDIR_P=$MKDIR_P 20317 case $MKDIR_P in 20318 [\\/$]* | ?:[\\/]* ) ;; 20319 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20320 esac 20321_ACEOF 20322 20323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20324# If the template does not know about datarootdir, expand it. 20325# FIXME: This hack should be removed a few years after 2.60. 20326ac_datarootdir_hack=; ac_datarootdir_seen= 20327ac_sed_dataroot=' 20328/datarootdir/ { 20329 p 20330 q 20331} 20332/@datadir@/p 20333/@docdir@/p 20334/@infodir@/p 20335/@localedir@/p 20336/@mandir@/p' 20337case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20338*datarootdir*) ac_datarootdir_seen=yes;; 20339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20341$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20342_ACEOF 20343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20344 ac_datarootdir_hack=' 20345 s&@datadir@&$datadir&g 20346 s&@docdir@&$docdir&g 20347 s&@infodir@&$infodir&g 20348 s&@localedir@&$localedir&g 20349 s&@mandir@&$mandir&g 20350 s&\\\${datarootdir}&$datarootdir&g' ;; 20351esac 20352_ACEOF 20353 20354# Neutralize VPATH when `$srcdir' = `.'. 20355# Shell code in configure.ac might set extrasub. 20356# FIXME: do we really want to maintain this feature? 20357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20358ac_sed_extra="$ac_vpsub 20359$extrasub 20360_ACEOF 20361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20362:t 20363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20364s|@configure_input@|$ac_sed_conf_input|;t t 20365s&@top_builddir@&$ac_top_builddir_sub&;t t 20366s&@top_build_prefix@&$ac_top_build_prefix&;t t 20367s&@srcdir@&$ac_srcdir&;t t 20368s&@abs_srcdir@&$ac_abs_srcdir&;t t 20369s&@top_srcdir@&$ac_top_srcdir&;t t 20370s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20371s&@builddir@&$ac_builddir&;t t 20372s&@abs_builddir@&$ac_abs_builddir&;t t 20373s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20374s&@INSTALL@&$ac_INSTALL&;t t 20375s&@MKDIR_P@&$ac_MKDIR_P&;t t 20376$ac_datarootdir_hack 20377" 20378eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20379 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20380 20381test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20384 "$ac_tmp/out"`; test -z "$ac_out"; } && 20385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20386which seems to be undefined. Please make sure it is defined" >&5 20387$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20388which seems to be undefined. Please make sure it is defined" >&2;} 20389 20390 rm -f "$ac_tmp/stdin" 20391 case $ac_file in 20392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20394 esac \ 20395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20396 ;; 20397 :H) 20398 # 20399 # CONFIG_HEADER 20400 # 20401 if test x"$ac_file" != x-; then 20402 { 20403 $as_echo "/* $configure_input */" \ 20404 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20405 } >"$ac_tmp/config.h" \ 20406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20407 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20409$as_echo "$as_me: $ac_file is unchanged" >&6;} 20410 else 20411 rm -f "$ac_file" 20412 mv "$ac_tmp/config.h" "$ac_file" \ 20413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20414 fi 20415 else 20416 $as_echo "/* $configure_input */" \ 20417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20418 || as_fn_error $? "could not create -" "$LINENO" 5 20419 fi 20420# Compute "$ac_file"'s index in $config_headers. 20421_am_arg="$ac_file" 20422_am_stamp_count=1 20423for _am_header in $config_headers :; do 20424 case $_am_header in 20425 $_am_arg | $_am_arg:* ) 20426 break ;; 20427 * ) 20428 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20429 esac 20430done 20431echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20432$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20433 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20434 X"$_am_arg" : 'X\(//\)$' \| \ 20435 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20436$as_echo X"$_am_arg" | 20437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20438 s//\1/ 20439 q 20440 } 20441 /^X\(\/\/\)[^/].*/{ 20442 s//\1/ 20443 q 20444 } 20445 /^X\(\/\/\)$/{ 20446 s//\1/ 20447 q 20448 } 20449 /^X\(\/\).*/{ 20450 s//\1/ 20451 q 20452 } 20453 s/.*/./; q'`/stamp-h$_am_stamp_count 20454 ;; 20455 20456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20457$as_echo "$as_me: executing $ac_file commands" >&6;} 20458 ;; 20459 esac 20460 20461 20462 case $ac_file$ac_mode in 20463 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20464 # Older Autoconf quotes --file arguments for eval, but not when files 20465 # are listed without --file. Let's play safe and only enable the eval 20466 # if we detect the quoting. 20467 case $CONFIG_FILES in 20468 *\'*) eval set x "$CONFIG_FILES" ;; 20469 *) set x $CONFIG_FILES ;; 20470 esac 20471 shift 20472 for mf 20473 do 20474 # Strip MF so we end up with the name of the file. 20475 mf=`echo "$mf" | sed -e 's/:.*$//'` 20476 # Check whether this is an Automake generated Makefile or not. 20477 # We used to match only the files named 'Makefile.in', but 20478 # some people rename them; so instead we look at the file content. 20479 # Grep'ing the first line is not enough: some people post-process 20480 # each Makefile.in and add a new line on top of each file to say so. 20481 # Grep'ing the whole file is not good either: AIX grep has a line 20482 # limit of 2048, but all sed's we know have understand at least 4000. 20483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20484 dirpart=`$as_dirname -- "$mf" || 20485$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20486 X"$mf" : 'X\(//\)[^/]' \| \ 20487 X"$mf" : 'X\(//\)$' \| \ 20488 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20489$as_echo X"$mf" | 20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20491 s//\1/ 20492 q 20493 } 20494 /^X\(\/\/\)[^/].*/{ 20495 s//\1/ 20496 q 20497 } 20498 /^X\(\/\/\)$/{ 20499 s//\1/ 20500 q 20501 } 20502 /^X\(\/\).*/{ 20503 s//\1/ 20504 q 20505 } 20506 s/.*/./; q'` 20507 else 20508 continue 20509 fi 20510 # Extract the definition of DEPDIR, am__include, and am__quote 20511 # from the Makefile without running 'make'. 20512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20513 test -z "$DEPDIR" && continue 20514 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20515 test -z "$am__include" && continue 20516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20517 # Find all dependency output files, they are included files with 20518 # $(DEPDIR) in their names. We invoke sed twice because it is the 20519 # simplest approach to changing $(DEPDIR) to its actual value in the 20520 # expansion. 20521 for file in `sed -n " 20522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20524 # Make sure the directory exists. 20525 test -f "$dirpart/$file" && continue 20526 fdir=`$as_dirname -- "$file" || 20527$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20528 X"$file" : 'X\(//\)[^/]' \| \ 20529 X"$file" : 'X\(//\)$' \| \ 20530 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20531$as_echo X"$file" | 20532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20533 s//\1/ 20534 q 20535 } 20536 /^X\(\/\/\)[^/].*/{ 20537 s//\1/ 20538 q 20539 } 20540 /^X\(\/\/\)$/{ 20541 s//\1/ 20542 q 20543 } 20544 /^X\(\/\).*/{ 20545 s//\1/ 20546 q 20547 } 20548 s/.*/./; q'` 20549 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20550 # echo "creating $dirpart/$file" 20551 echo '# dummy' > "$dirpart/$file" 20552 done 20553 done 20554} 20555 ;; 20556 "libtool":C) 20557 20558 # See if we are running on zsh, and set the options that allow our 20559 # commands through without removal of \ escapes. 20560 if test -n "${ZSH_VERSION+set}"; then 20561 setopt NO_GLOB_SUBST 20562 fi 20563 20564 cfgfile=${ofile}T 20565 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20566 $RM "$cfgfile" 20567 20568 cat <<_LT_EOF >> "$cfgfile" 20569#! $SHELL 20570# Generated automatically by $as_me ($PACKAGE) $VERSION 20571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20572# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20573 20574# Provide generalized library-building support services. 20575# Written by Gordon Matzigkeit, 1996 20576 20577# Copyright (C) 2014 Free Software Foundation, Inc. 20578# This is free software; see the source for copying conditions. There is NO 20579# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20580 20581# GNU Libtool is free software; you can redistribute it and/or modify 20582# it under the terms of the GNU General Public License as published by 20583# the Free Software Foundation; either version 2 of of the License, or 20584# (at your option) any later version. 20585# 20586# As a special exception to the GNU General Public License, if you 20587# distribute this file as part of a program or library that is built 20588# using GNU Libtool, you may include this file under the same 20589# distribution terms that you use for the rest of that program. 20590# 20591# GNU Libtool is distributed in the hope that it will be useful, but 20592# WITHOUT ANY WARRANTY; without even the implied warranty of 20593# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20594# GNU General Public License for more details. 20595# 20596# You should have received a copy of the GNU General Public License 20597# along with this program. If not, see <http://www.gnu.org/licenses/>. 20598 20599 20600# The names of the tagged configurations supported by this script. 20601available_tags='' 20602 20603# Configured defaults for sys_lib_dlsearch_path munging. 20604: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20605 20606# ### BEGIN LIBTOOL CONFIG 20607 20608# Whether or not to build static libraries. 20609build_old_libs=$enable_static 20610 20611# Which release of libtool.m4 was used? 20612macro_version=$macro_version 20613macro_revision=$macro_revision 20614 20615# Whether or not to build shared libraries. 20616build_libtool_libs=$enable_shared 20617 20618# What type of objects to build. 20619pic_mode=$pic_mode 20620 20621# Whether or not to optimize for fast installation. 20622fast_install=$enable_fast_install 20623 20624# Shared archive member basename,for filename based shared library versioning on AIX. 20625shared_archive_member_spec=$shared_archive_member_spec 20626 20627# Shell to use when invoking shell scripts. 20628SHELL=$lt_SHELL 20629 20630# An echo program that protects backslashes. 20631ECHO=$lt_ECHO 20632 20633# The PATH separator for the build system. 20634PATH_SEPARATOR=$lt_PATH_SEPARATOR 20635 20636# The host system. 20637host_alias=$host_alias 20638host=$host 20639host_os=$host_os 20640 20641# The build system. 20642build_alias=$build_alias 20643build=$build 20644build_os=$build_os 20645 20646# A sed program that does not truncate output. 20647SED=$lt_SED 20648 20649# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20650Xsed="\$SED -e 1s/^X//" 20651 20652# A grep program that handles long lines. 20653GREP=$lt_GREP 20654 20655# An ERE matcher. 20656EGREP=$lt_EGREP 20657 20658# A literal string matcher. 20659FGREP=$lt_FGREP 20660 20661# A BSD- or MS-compatible name lister. 20662NM=$lt_NM 20663 20664# Whether we need soft or hard links. 20665LN_S=$lt_LN_S 20666 20667# What is the maximum length of a command? 20668max_cmd_len=$max_cmd_len 20669 20670# Object file suffix (normally "o"). 20671objext=$ac_objext 20672 20673# Executable file suffix (normally ""). 20674exeext=$exeext 20675 20676# whether the shell understands "unset". 20677lt_unset=$lt_unset 20678 20679# turn spaces into newlines. 20680SP2NL=$lt_lt_SP2NL 20681 20682# turn newlines into spaces. 20683NL2SP=$lt_lt_NL2SP 20684 20685# convert \$build file names to \$host format. 20686to_host_file_cmd=$lt_cv_to_host_file_cmd 20687 20688# convert \$build files to toolchain format. 20689to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20690 20691# An object symbol dumper. 20692OBJDUMP=$lt_OBJDUMP 20693 20694# Method to check whether dependent libraries are shared objects. 20695deplibs_check_method=$lt_deplibs_check_method 20696 20697# Command to use when deplibs_check_method = "file_magic". 20698file_magic_cmd=$lt_file_magic_cmd 20699 20700# How to find potential files when deplibs_check_method = "file_magic". 20701file_magic_glob=$lt_file_magic_glob 20702 20703# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20704want_nocaseglob=$lt_want_nocaseglob 20705 20706# DLL creation program. 20707DLLTOOL=$lt_DLLTOOL 20708 20709# Command to associate shared and link libraries. 20710sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20711 20712# The archiver. 20713AR=$lt_AR 20714 20715# Flags to create an archive. 20716AR_FLAGS=$lt_AR_FLAGS 20717 20718# How to feed a file listing to the archiver. 20719archiver_list_spec=$lt_archiver_list_spec 20720 20721# A symbol stripping program. 20722STRIP=$lt_STRIP 20723 20724# Commands used to install an old-style archive. 20725RANLIB=$lt_RANLIB 20726old_postinstall_cmds=$lt_old_postinstall_cmds 20727old_postuninstall_cmds=$lt_old_postuninstall_cmds 20728 20729# Whether to use a lock for old archive extraction. 20730lock_old_archive_extraction=$lock_old_archive_extraction 20731 20732# A C compiler. 20733LTCC=$lt_CC 20734 20735# LTCC compiler flags. 20736LTCFLAGS=$lt_CFLAGS 20737 20738# Take the output of nm and produce a listing of raw symbols and C names. 20739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20740 20741# Transform the output of nm in a proper C declaration. 20742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20743 20744# Transform the output of nm into a list of symbols to manually relocate. 20745global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20746 20747# Transform the output of nm in a C name address pair. 20748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20749 20750# Transform the output of nm in a C name address pair when lib prefix is needed. 20751global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20752 20753# The name lister interface. 20754nm_interface=$lt_lt_cv_nm_interface 20755 20756# Specify filename containing input files for \$NM. 20757nm_file_list_spec=$lt_nm_file_list_spec 20758 20759# The root where to search for dependent libraries,and where our libraries should be installed. 20760lt_sysroot=$lt_sysroot 20761 20762# Command to truncate a binary pipe. 20763lt_truncate_bin=$lt_lt_cv_truncate_bin 20764 20765# The name of the directory that contains temporary libtool files. 20766objdir=$objdir 20767 20768# Used to examine libraries when file_magic_cmd begins with "file". 20769MAGIC_CMD=$MAGIC_CMD 20770 20771# Must we lock files when doing compilation? 20772need_locks=$lt_need_locks 20773 20774# Manifest tool. 20775MANIFEST_TOOL=$lt_MANIFEST_TOOL 20776 20777# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20778DSYMUTIL=$lt_DSYMUTIL 20779 20780# Tool to change global to local symbols on Mac OS X. 20781NMEDIT=$lt_NMEDIT 20782 20783# Tool to manipulate fat objects and archives on Mac OS X. 20784LIPO=$lt_LIPO 20785 20786# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20787OTOOL=$lt_OTOOL 20788 20789# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20790OTOOL64=$lt_OTOOL64 20791 20792# Old archive suffix (normally "a"). 20793libext=$libext 20794 20795# Shared library suffix (normally ".so"). 20796shrext_cmds=$lt_shrext_cmds 20797 20798# The commands to extract the exported symbol list from a shared archive. 20799extract_expsyms_cmds=$lt_extract_expsyms_cmds 20800 20801# Variables whose values should be saved in libtool wrapper scripts and 20802# restored at link time. 20803variables_saved_for_relink=$lt_variables_saved_for_relink 20804 20805# Do we need the "lib" prefix for modules? 20806need_lib_prefix=$need_lib_prefix 20807 20808# Do we need a version for libraries? 20809need_version=$need_version 20810 20811# Library versioning type. 20812version_type=$version_type 20813 20814# Shared library runtime path variable. 20815runpath_var=$runpath_var 20816 20817# Shared library path variable. 20818shlibpath_var=$shlibpath_var 20819 20820# Is shlibpath searched before the hard-coded library search path? 20821shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20822 20823# Format of library name prefix. 20824libname_spec=$lt_libname_spec 20825 20826# List of archive names. First name is the real one, the rest are links. 20827# The last name is the one that the linker finds with -lNAME 20828library_names_spec=$lt_library_names_spec 20829 20830# The coded name of the library, if different from the real name. 20831soname_spec=$lt_soname_spec 20832 20833# Permission mode override for installation of shared libraries. 20834install_override_mode=$lt_install_override_mode 20835 20836# Command to use after installation of a shared archive. 20837postinstall_cmds=$lt_postinstall_cmds 20838 20839# Command to use after uninstallation of a shared archive. 20840postuninstall_cmds=$lt_postuninstall_cmds 20841 20842# Commands used to finish a libtool library installation in a directory. 20843finish_cmds=$lt_finish_cmds 20844 20845# As "finish_cmds", except a single script fragment to be evaled but 20846# not shown. 20847finish_eval=$lt_finish_eval 20848 20849# Whether we should hardcode library paths into libraries. 20850hardcode_into_libs=$hardcode_into_libs 20851 20852# Compile-time system search path for libraries. 20853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20854 20855# Detected run-time system search path for libraries. 20856sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20857 20858# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20859configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20860 20861# Whether dlopen is supported. 20862dlopen_support=$enable_dlopen 20863 20864# Whether dlopen of programs is supported. 20865dlopen_self=$enable_dlopen_self 20866 20867# Whether dlopen of statically linked programs is supported. 20868dlopen_self_static=$enable_dlopen_self_static 20869 20870# Commands to strip libraries. 20871old_striplib=$lt_old_striplib 20872striplib=$lt_striplib 20873 20874 20875# The linker used to build libraries. 20876LD=$lt_LD 20877 20878# How to create reloadable object files. 20879reload_flag=$lt_reload_flag 20880reload_cmds=$lt_reload_cmds 20881 20882# Commands used to build an old-style archive. 20883old_archive_cmds=$lt_old_archive_cmds 20884 20885# A language specific compiler. 20886CC=$lt_compiler 20887 20888# Is the compiler the GNU compiler? 20889with_gcc=$GCC 20890 20891# Compiler flag to turn off builtin functions. 20892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20893 20894# Additional compiler flags for building library objects. 20895pic_flag=$lt_lt_prog_compiler_pic 20896 20897# How to pass a linker flag through the compiler. 20898wl=$lt_lt_prog_compiler_wl 20899 20900# Compiler flag to prevent dynamic linking. 20901link_static_flag=$lt_lt_prog_compiler_static 20902 20903# Does compiler simultaneously support -c and -o options? 20904compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20905 20906# Whether or not to add -lc for building shared libraries. 20907build_libtool_need_lc=$archive_cmds_need_lc 20908 20909# Whether or not to disallow shared libs when runtime libs are static. 20910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20911 20912# Compiler flag to allow reflexive dlopens. 20913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20914 20915# Compiler flag to generate shared objects directly from archives. 20916whole_archive_flag_spec=$lt_whole_archive_flag_spec 20917 20918# Whether the compiler copes with passing no objects directly. 20919compiler_needs_object=$lt_compiler_needs_object 20920 20921# Create an old-style archive from a shared archive. 20922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20923 20924# Create a temporary old-style archive to link instead of a shared archive. 20925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20926 20927# Commands used to build a shared archive. 20928archive_cmds=$lt_archive_cmds 20929archive_expsym_cmds=$lt_archive_expsym_cmds 20930 20931# Commands used to build a loadable module if different from building 20932# a shared archive. 20933module_cmds=$lt_module_cmds 20934module_expsym_cmds=$lt_module_expsym_cmds 20935 20936# Whether we are building with GNU ld or not. 20937with_gnu_ld=$lt_with_gnu_ld 20938 20939# Flag that allows shared libraries with undefined symbols to be built. 20940allow_undefined_flag=$lt_allow_undefined_flag 20941 20942# Flag that enforces no undefined symbols. 20943no_undefined_flag=$lt_no_undefined_flag 20944 20945# Flag to hardcode \$libdir into a binary during linking. 20946# This must work even if \$libdir does not exist 20947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20948 20949# Whether we need a single "-rpath" flag with a separated argument. 20950hardcode_libdir_separator=$lt_hardcode_libdir_separator 20951 20952# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20953# DIR into the resulting binary. 20954hardcode_direct=$hardcode_direct 20955 20956# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20957# DIR into the resulting binary and the resulting library dependency is 20958# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20959# library is relocated. 20960hardcode_direct_absolute=$hardcode_direct_absolute 20961 20962# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20963# into the resulting binary. 20964hardcode_minus_L=$hardcode_minus_L 20965 20966# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20967# into the resulting binary. 20968hardcode_shlibpath_var=$hardcode_shlibpath_var 20969 20970# Set to "yes" if building a shared library automatically hardcodes DIR 20971# into the library and all subsequent libraries and executables linked 20972# against it. 20973hardcode_automatic=$hardcode_automatic 20974 20975# Set to yes if linker adds runtime paths of dependent libraries 20976# to runtime path list. 20977inherit_rpath=$inherit_rpath 20978 20979# Whether libtool must link a program against all its dependency libraries. 20980link_all_deplibs=$link_all_deplibs 20981 20982# Set to "yes" if exported symbols are required. 20983always_export_symbols=$always_export_symbols 20984 20985# The commands to list exported symbols. 20986export_symbols_cmds=$lt_export_symbols_cmds 20987 20988# Symbols that should not be listed in the preloaded symbols. 20989exclude_expsyms=$lt_exclude_expsyms 20990 20991# Symbols that must always be exported. 20992include_expsyms=$lt_include_expsyms 20993 20994# Commands necessary for linking programs (against libraries) with templates. 20995prelink_cmds=$lt_prelink_cmds 20996 20997# Commands necessary for finishing linking programs. 20998postlink_cmds=$lt_postlink_cmds 20999 21000# Specify filename containing input files. 21001file_list_spec=$lt_file_list_spec 21002 21003# How to hardcode a shared library path into an executable. 21004hardcode_action=$hardcode_action 21005 21006# ### END LIBTOOL CONFIG 21007 21008_LT_EOF 21009 21010 cat <<'_LT_EOF' >> "$cfgfile" 21011 21012# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21013 21014# func_munge_path_list VARIABLE PATH 21015# ----------------------------------- 21016# VARIABLE is name of variable containing _space_ separated list of 21017# directories to be munged by the contents of PATH, which is string 21018# having a format: 21019# "DIR[:DIR]:" 21020# string "DIR[ DIR]" will be prepended to VARIABLE 21021# ":DIR[:DIR]" 21022# string "DIR[ DIR]" will be appended to VARIABLE 21023# "DIRP[:DIRP]::[DIRA:]DIRA" 21024# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21025# "DIRA[ DIRA]" will be appended to VARIABLE 21026# "DIR[:DIR]" 21027# VARIABLE will be replaced by "DIR[ DIR]" 21028func_munge_path_list () 21029{ 21030 case x$2 in 21031 x) 21032 ;; 21033 *:) 21034 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21035 ;; 21036 x:*) 21037 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21038 ;; 21039 *::*) 21040 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21041 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21042 ;; 21043 *) 21044 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21045 ;; 21046 esac 21047} 21048 21049 21050# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21051func_cc_basename () 21052{ 21053 for cc_temp in $*""; do 21054 case $cc_temp in 21055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21057 \-*) ;; 21058 *) break;; 21059 esac 21060 done 21061 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21062} 21063 21064 21065# ### END FUNCTIONS SHARED WITH CONFIGURE 21066 21067_LT_EOF 21068 21069 case $host_os in 21070 aix3*) 21071 cat <<\_LT_EOF >> "$cfgfile" 21072# AIX sometimes has problems with the GCC collect2 program. For some 21073# reason, if we set the COLLECT_NAMES environment variable, the problems 21074# vanish in a puff of smoke. 21075if test set != "${COLLECT_NAMES+set}"; then 21076 COLLECT_NAMES= 21077 export COLLECT_NAMES 21078fi 21079_LT_EOF 21080 ;; 21081 esac 21082 21083 21084ltmain=$ac_aux_dir/ltmain.sh 21085 21086 21087 # We use sed instead of cat because bash on DJGPP gets confused if 21088 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21089 # text mode, it properly converts lines to CR/LF. This bash problem 21090 # is reportedly fixed, but why not run on old versions too? 21091 sed '$q' "$ltmain" >> "$cfgfile" \ 21092 || (rm -f "$cfgfile"; exit 1) 21093 21094 mv -f "$cfgfile" "$ofile" || 21095 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21096 chmod +x "$ofile" 21097 21098 ;; 21099 21100 esac 21101done # for ac_tag 21102 21103 21104as_fn_exit 0 21105_ACEOF 21106ac_clean_files=$ac_clean_files_save 21107 21108test $ac_write_fail = 0 || 21109 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21110 21111 21112# configure is writing to config.log, and then calls config.status. 21113# config.status does its own redirection, appending to config.log. 21114# Unfortunately, on DOS this fails, as config.log is still kept open 21115# by configure, so config.status won't be able to write to it; its 21116# output is simply discarded. So we exec the FD to /dev/null, 21117# effectively closing config.log, so it can be properly (re)opened and 21118# appended to by config.status. When coming back to configure, we 21119# need to make the FD available again. 21120if test "$no_create" != yes; then 21121 ac_cs_success=: 21122 ac_config_status_args= 21123 test "$silent" = yes && 21124 ac_config_status_args="$ac_config_status_args --quiet" 21125 exec 5>/dev/null 21126 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21127 exec 5>>config.log 21128 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21129 # would make configure fail if this is the last instruction. 21130 $ac_cs_success || as_fn_exit 1 21131fi 21132if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21134$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21135fi 21136 21137