configure revision 0a392d7e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-sunleo 1.2.2. 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-sunleo' 593PACKAGE_TARNAME='xf86-video-sunleo' 594PACKAGE_VERSION='1.2.2' 595PACKAGE_STRING='xf86-video-sunleo 1.2.2' 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 642XORG_LIBS 643XORG_CFLAGS 644LT_SYS_LIBRARY_PATH 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654DLLTOOL 655OBJDUMP 656LN_S 657NM 658ac_ct_DUMPBIN 659DUMPBIN 660LD 661FGREP 662LIBTOOL 663MAN_SUBSTS 664XORG_MAN_PAGE 665ADMIN_MAN_DIR 666DRIVER_MAN_DIR 667MISC_MAN_DIR 668FILE_MAN_DIR 669LIB_MAN_DIR 670APP_MAN_DIR 671ADMIN_MAN_SUFFIX 672DRIVER_MAN_SUFFIX 673MISC_MAN_SUFFIX 674FILE_MAN_SUFFIX 675LIB_MAN_SUFFIX 676APP_MAN_SUFFIX 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694EGREP 695GREP 696CPP 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__quote 705am__include 706DEPDIR 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714MAINT 715MAINTAINER_MODE_FALSE 716MAINTAINER_MODE_TRUE 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_silent_rules 786enable_maintainer_mode 787enable_dependency_tracking 788enable_selective_werror 789enable_strict_compilation 790enable_static 791enable_shared 792with_pic 793enable_fast_install 794with_aix_soname 795with_gnu_ld 796with_sysroot 797enable_libtool_lock 798with_xorg_module_dir 799' 800 ac_precious_vars='build_alias 801host_alias 802target_alias 803CC 804CFLAGS 805LDFLAGS 806LIBS 807CPPFLAGS 808CPP 809PKG_CONFIG 810PKG_CONFIG_PATH 811PKG_CONFIG_LIBDIR 812LT_SYS_LIBRARY_PATH 813XORG_CFLAGS 814XORG_LIBS' 815 816 817# Initialize some variables set by options. 818ac_init_help= 819ac_init_version=false 820ac_unrecognized_opts= 821ac_unrecognized_sep= 822# The variables have the same names as the options, with 823# dashes changed to underlines. 824cache_file=/dev/null 825exec_prefix=NONE 826no_create= 827no_recursion= 828prefix=NONE 829program_prefix=NONE 830program_suffix=NONE 831program_transform_name=s,x,x, 832silent= 833site= 834srcdir= 835verbose= 836x_includes=NONE 837x_libraries=NONE 838 839# Installation directory options. 840# These are left unexpanded so users can "make install exec_prefix=/foo" 841# and all the variables that are supposed to be based on exec_prefix 842# by default will actually change. 843# Use braces instead of parens because sh, perl, etc. also accept them. 844# (The list follows the same order as the GNU Coding Standards.) 845bindir='${exec_prefix}/bin' 846sbindir='${exec_prefix}/sbin' 847libexecdir='${exec_prefix}/libexec' 848datarootdir='${prefix}/share' 849datadir='${datarootdir}' 850sysconfdir='${prefix}/etc' 851sharedstatedir='${prefix}/com' 852localstatedir='${prefix}/var' 853includedir='${prefix}/include' 854oldincludedir='/usr/include' 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856infodir='${datarootdir}/info' 857htmldir='${docdir}' 858dvidir='${docdir}' 859pdfdir='${docdir}' 860psdir='${docdir}' 861libdir='${exec_prefix}/lib' 862localedir='${datarootdir}/locale' 863mandir='${datarootdir}/man' 864 865ac_prev= 866ac_dashdash= 867for ac_option 868do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298$as_echo X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures xf86-video-sunleo 1.2.2 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root 1404 [DATAROOTDIR/doc/xf86-video-sunleo] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421_ACEOF 1422fi 1423 1424if test -n "$ac_init_help"; then 1425 case $ac_init_help in 1426 short | recursive ) echo "Configuration of xf86-video-sunleo 1.2.2:";; 1427 esac 1428 cat <<\_ACEOF 1429 1430Optional Features: 1431 --disable-option-checking ignore unrecognized --enable/--with options 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --enable-maintainer-mode 1437 enable make rules and dependencies not useful (and 1438 sometimes confusing) to the casual installer 1439 --enable-dependency-tracking 1440 do not reject slow dependency extractors 1441 --disable-dependency-tracking 1442 speeds up one-time build 1443 --disable-selective-werror 1444 Turn off selective compiler errors. (default: 1445 enabled) 1446 --enable-strict-compilation 1447 Enable all warnings from compiler and make them 1448 errors (default: disabled) 1449 --enable-static[=PKGS] build static libraries [default=no] 1450 --enable-shared[=PKGS] build shared libraries [default=yes] 1451 --enable-fast-install[=PKGS] 1452 optimize for fast installation [default=yes] 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 1455Optional Packages: 1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1459 both] 1460 --with-aix-soname=aix|svr4|both 1461 shared library versioning (aka "SONAME") variant to 1462 provide on AIX, [default=aix]. 1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1465 compiler's sysroot if not specified). 1466 --with-xorg-module-dir=DIR 1467 Default xorg module directory 1468 [[default=$libdir/xorg/modules]] 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CPP C preprocessor 1479 PKG_CONFIG path to pkg-config utility 1480 PKG_CONFIG_PATH 1481 directories to add to pkg-config's search path 1482 PKG_CONFIG_LIBDIR 1483 path overriding pkg-config's built-in search path 1484 LT_SYS_LIBRARY_PATH 1485 User-defined run-time library search path. 1486 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1487 XORG_LIBS linker flags for XORG, overriding pkg-config 1488 1489Use these variables to override the choices made by `configure' or to help 1490it to find libraries and programs with nonstandard names/locations. 1491 1492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1493_ACEOF 1494ac_status=$? 1495fi 1496 1497if test "$ac_init_help" = "recursive"; then 1498 # If there are subdirs, report their specific --help. 1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1500 test -d "$ac_dir" || 1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1502 continue 1503 ac_builddir=. 1504 1505case "$ac_dir" in 1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507*) 1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1509 # A ".." for each directory in $ac_dir_suffix. 1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1511 case $ac_top_builddir_sub in 1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1514 esac ;; 1515esac 1516ac_abs_top_builddir=$ac_pwd 1517ac_abs_builddir=$ac_pwd$ac_dir_suffix 1518# for backward compatibility: 1519ac_top_builddir=$ac_top_build_prefix 1520 1521case $srcdir in 1522 .) # We are building in place. 1523 ac_srcdir=. 1524 ac_top_srcdir=$ac_top_builddir_sub 1525 ac_abs_top_srcdir=$ac_pwd ;; 1526 [\\/]* | ?:[\\/]* ) # Absolute name. 1527 ac_srcdir=$srcdir$ac_dir_suffix; 1528 ac_top_srcdir=$srcdir 1529 ac_abs_top_srcdir=$srcdir ;; 1530 *) # Relative name. 1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1532 ac_top_srcdir=$ac_top_build_prefix$srcdir 1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1534esac 1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1536 1537 cd "$ac_dir" || { ac_status=$?; continue; } 1538 # Check for guested configure. 1539 if test -f "$ac_srcdir/configure.gnu"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1542 elif test -f "$ac_srcdir/configure"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure" --help=recursive 1545 else 1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1547 fi || ac_status=$? 1548 cd "$ac_pwd" || { ac_status=$?; break; } 1549 done 1550fi 1551 1552test -n "$ac_init_help" && exit $ac_status 1553if $ac_init_version; then 1554 cat <<\_ACEOF 1555xf86-video-sunleo configure 1.2.2 1556generated by GNU Autoconf 2.69 1557 1558Copyright (C) 2012 Free Software Foundation, Inc. 1559This configure script is free software; the Free Software Foundation 1560gives unlimited permission to copy, distribute and modify it. 1561_ACEOF 1562 exit 1563fi 1564 1565## ------------------------ ## 1566## Autoconf initialization. ## 1567## ------------------------ ## 1568 1569# ac_fn_c_try_compile LINENO 1570# -------------------------- 1571# Try to compile conftest.$ac_ext, and return whether this succeeded. 1572ac_fn_c_try_compile () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 rm -f conftest.$ac_objext 1576 if { { ac_try="$ac_compile" 1577case "(($ac_try" in 1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579 *) ac_try_echo=$ac_try;; 1580esac 1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582$as_echo "$ac_try_echo"; } >&5 1583 (eval "$ac_compile") 2>conftest.err 1584 ac_status=$? 1585 if test -s conftest.err; then 1586 grep -v '^ *+' conftest.err >conftest.er1 1587 cat conftest.er1 >&5 1588 mv -f conftest.er1 conftest.err 1589 fi 1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1591 test $ac_status = 0; } && { 1592 test -z "$ac_c_werror_flag" || 1593 test ! -s conftest.err 1594 } && test -s conftest.$ac_objext; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: failed program was:" >&5 1598sed 's/^/| /' conftest.$ac_ext >&5 1599 1600 ac_retval=1 1601fi 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 as_fn_set_status $ac_retval 1604 1605} # ac_fn_c_try_compile 1606 1607# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1608# --------------------------------------------- 1609# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1610# accordingly. 1611ac_fn_c_check_decl () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 as_decl_name=`echo $2|sed 's/ *(.*//'` 1615 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1617$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1618if eval \${$3+:} false; then : 1619 $as_echo_n "(cached) " >&6 1620else 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624int 1625main () 1626{ 1627#ifndef $as_decl_name 1628#ifdef __cplusplus 1629 (void) $as_decl_use; 1630#else 1631 (void) $as_decl_name; 1632#endif 1633#endif 1634 1635 ; 1636 return 0; 1637} 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_decl 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1733# ------------------------------------------------------- 1734# Tests whether HEADER exists and can be compiled using the include files in 1735# INCLUDES, setting the cache variable VAR accordingly. 1736ac_fn_c_check_header_compile () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743else 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746$4 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_compile "$LINENO"; then : 1750 eval "$3=yes" 1751else 1752 eval "$3=no" 1753fi 1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1755fi 1756eval ac_res=\$$3 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758$as_echo "$ac_res" >&6; } 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 1761} # ac_fn_c_check_header_compile 1762 1763# ac_fn_c_try_link LINENO 1764# ----------------------- 1765# Try to link conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_link () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 rm -f conftest.$ac_objext conftest$ac_exeext 1770 if { { ac_try="$ac_link" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>conftest.err 1778 ac_status=$? 1779 if test -s conftest.err; then 1780 grep -v '^ *+' conftest.err >conftest.er1 1781 cat conftest.er1 >&5 1782 mv -f conftest.er1 conftest.err 1783 fi 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; } && { 1786 test -z "$ac_c_werror_flag" || 1787 test ! -s conftest.err 1788 } && test -s conftest$ac_exeext && { 1789 test "$cross_compiling" = yes || 1790 test -x conftest$ac_exeext 1791 }; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=1 1798fi 1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1801 # interfere with the next link command; also delete a directory that is 1802 # left behind by Apple's compiler. We do this before executing the actions. 1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_link 1808 1809# ac_fn_c_check_func LINENO FUNC VAR 1810# ---------------------------------- 1811# Tests whether FUNC exists, setting the cache variable VAR accordingly 1812ac_fn_c_check_func () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819else 1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1821/* end confdefs.h. */ 1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1824#define $2 innocuous_$2 1825 1826/* System header to define __stub macros and hopefully few prototypes, 1827 which can conflict with char $2 (); below. 1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1829 <limits.h> exists even on freestanding compilers. */ 1830 1831#ifdef __STDC__ 1832# include <limits.h> 1833#else 1834# include <assert.h> 1835#endif 1836 1837#undef $2 1838 1839/* Override any GCC internal prototype to avoid an error. 1840 Use char because int might match the return type of a GCC 1841 builtin and then its argument prototype would still apply. */ 1842#ifdef __cplusplus 1843extern "C" 1844#endif 1845char $2 (); 1846/* The GNU C library defines this for functions which it implements 1847 to always fail with ENOSYS. Some functions are actually named 1848 something starting with __ and the normal name is an alias. */ 1849#if defined __stub_$2 || defined __stub___$2 1850choke me 1851#endif 1852 1853int 1854main () 1855{ 1856return $2 (); 1857 ; 1858 return 0; 1859} 1860_ACEOF 1861if ac_fn_c_try_link "$LINENO"; then : 1862 eval "$3=yes" 1863else 1864 eval "$3=no" 1865fi 1866rm -f core conftest.err conftest.$ac_objext \ 1867 conftest$ac_exeext conftest.$ac_ext 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_func 1875cat >config.log <<_ACEOF 1876This file contains any messages produced by compilers while 1877running configure, to aid debugging if configure makes a mistake. 1878 1879It was created by xf86-video-sunleo $as_me 1.2.2, which was 1880generated by GNU Autoconf 2.69. Invocation command line was 1881 1882 $ $0 $@ 1883 1884_ACEOF 1885exec 5>>config.log 1886{ 1887cat <<_ASUNAME 1888## --------- ## 1889## Platform. ## 1890## --------- ## 1891 1892hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1893uname -m = `(uname -m) 2>/dev/null || echo unknown` 1894uname -r = `(uname -r) 2>/dev/null || echo unknown` 1895uname -s = `(uname -s) 2>/dev/null || echo unknown` 1896uname -v = `(uname -v) 2>/dev/null || echo unknown` 1897 1898/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1899/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1900 1901/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1902/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1903/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1904/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1905/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1906/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1907/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1908 1909_ASUNAME 1910 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 $as_echo "PATH: $as_dir" 1917 done 1918IFS=$as_save_IFS 1919 1920} >&5 1921 1922cat >&5 <<_ACEOF 1923 1924 1925## ----------- ## 1926## Core tests. ## 1927## ----------- ## 1928 1929_ACEOF 1930 1931 1932# Keep a trace of the command line. 1933# Strip out --no-create and --no-recursion so they do not pile up. 1934# Strip out --silent because we don't want to record it for future runs. 1935# Also quote any args containing shell meta-characters. 1936# Make two passes to allow for proper duplicate-argument suppression. 1937ac_configure_args= 1938ac_configure_args0= 1939ac_configure_args1= 1940ac_must_keep_next=false 1941for ac_pass in 1 2 1942do 1943 for ac_arg 1944 do 1945 case $ac_arg in 1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1948 | -silent | --silent | --silen | --sile | --sil) 1949 continue ;; 1950 *\'*) 1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1952 esac 1953 case $ac_pass in 1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1955 2) 1956 as_fn_append ac_configure_args1 " '$ac_arg'" 1957 if test $ac_must_keep_next = true; then 1958 ac_must_keep_next=false # Got value, back to normal. 1959 else 1960 case $ac_arg in 1961 *=* | --config-cache | -C | -disable-* | --disable-* \ 1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1964 | -with-* | --with-* | -without-* | --without-* | --x) 1965 case "$ac_configure_args0 " in 1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1967 esac 1968 ;; 1969 -* ) ac_must_keep_next=true ;; 1970 esac 1971 fi 1972 as_fn_append ac_configure_args " '$ac_arg'" 1973 ;; 1974 esac 1975 done 1976done 1977{ ac_configure_args0=; unset ac_configure_args0;} 1978{ ac_configure_args1=; unset ac_configure_args1;} 1979 1980# When interrupted or exit'd, cleanup temporary files, and complete 1981# config.log. We remove comments because anyway the quotes in there 1982# would cause problems or look ugly. 1983# WARNING: Use '\'' to represent an apostrophe within the trap. 1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1985trap 'exit_status=$? 1986 # Save into config.log some information that might help in debugging. 1987 { 1988 echo 1989 1990 $as_echo "## ---------------- ## 1991## Cache variables. ## 1992## ---------------- ##" 1993 echo 1994 # The following way of writing the cache mishandles newlines in values, 1995( 1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in #( 1999 *${as_nl}*) 2000 case $ac_var in #( 2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2003 esac 2004 case $ac_var in #( 2005 _ | IFS | as_nl) ;; #( 2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2007 *) { eval $ac_var=; unset $ac_var;} ;; 2008 esac ;; 2009 esac 2010 done 2011 (set) 2>&1 | 2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2013 *${as_nl}ac_space=\ *) 2014 sed -n \ 2015 "s/'\''/'\''\\\\'\'''\''/g; 2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2017 ;; #( 2018 *) 2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2020 ;; 2021 esac | 2022 sort 2023) 2024 echo 2025 2026 $as_echo "## ----------------- ## 2027## Output variables. ## 2028## ----------------- ##" 2029 echo 2030 for ac_var in $ac_subst_vars 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 2040 if test -n "$ac_subst_files"; then 2041 $as_echo "## ------------------- ## 2042## File substitutions. ## 2043## ------------------- ##" 2044 echo 2045 for ac_var in $ac_subst_files 2046 do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in 2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2050 esac 2051 $as_echo "$ac_var='\''$ac_val'\''" 2052 done | sort 2053 echo 2054 fi 2055 2056 if test -s confdefs.h; then 2057 $as_echo "## ----------- ## 2058## confdefs.h. ## 2059## ----------- ##" 2060 echo 2061 cat confdefs.h 2062 echo 2063 fi 2064 test "$ac_signal" != 0 && 2065 $as_echo "$as_me: caught signal $ac_signal" 2066 $as_echo "$as_me: exit $exit_status" 2067 } >&5 2068 rm -f core *.core core.conftest.* && 2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2070 exit $exit_status 2071' 0 2072for ac_signal in 1 2 13 15; do 2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2074done 2075ac_signal=0 2076 2077# confdefs.h avoids OS command line length limits that DEFS can exceed. 2078rm -f -r conftest* confdefs.h 2079 2080$as_echo "/* confdefs.h */" > confdefs.h 2081 2082# Predefined preprocessor variables. 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_NAME "$PACKAGE_NAME" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_VERSION "$PACKAGE_VERSION" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_STRING "$PACKAGE_STRING" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_URL "$PACKAGE_URL" 2106_ACEOF 2107 2108 2109# Let the site file select an alternate cache file if it wants to. 2110# Prefer an explicitly selected file to automatically selected ones. 2111ac_site_file1=NONE 2112ac_site_file2=NONE 2113if test -n "$CONFIG_SITE"; then 2114 # We do not want a PATH search for config.site. 2115 case $CONFIG_SITE in #(( 2116 -*) ac_site_file1=./$CONFIG_SITE;; 2117 */*) ac_site_file1=$CONFIG_SITE;; 2118 *) ac_site_file1=./$CONFIG_SITE;; 2119 esac 2120elif test "x$prefix" != xNONE; then 2121 ac_site_file1=$prefix/share/config.site 2122 ac_site_file2=$prefix/etc/config.site 2123else 2124 ac_site_file1=$ac_default_prefix/share/config.site 2125 ac_site_file2=$ac_default_prefix/etc/config.site 2126fi 2127for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2128do 2129 test "x$ac_site_file" = xNONE && continue 2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2132$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2133 sed 's/^/| /' "$ac_site_file" >&5 2134 . "$ac_site_file" \ 2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2137as_fn_error $? "failed to load site script $ac_site_file 2138See \`config.log' for more details" "$LINENO" 5; } 2139 fi 2140done 2141 2142if test -r "$cache_file"; then 2143 # Some versions of bash will fail to source /dev/null (special files 2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2147$as_echo "$as_me: loading cache $cache_file" >&6;} 2148 case $cache_file in 2149 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2150 *) . "./$cache_file";; 2151 esac 2152 fi 2153else 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2155$as_echo "$as_me: creating cache $cache_file" >&6;} 2156 >$cache_file 2157fi 2158 2159# Check that the precious variables saved in the cache have kept the same 2160# value. 2161ac_cache_corrupted=false 2162for ac_var in $ac_precious_vars; do 2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2164 eval ac_new_set=\$ac_env_${ac_var}_set 2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2166 eval ac_new_val=\$ac_env_${ac_var}_value 2167 case $ac_old_set,$ac_new_set in 2168 set,) 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2170$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2171 ac_cache_corrupted=: ;; 2172 ,set) 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2174$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2175 ac_cache_corrupted=: ;; 2176 ,);; 2177 *) 2178 if test "x$ac_old_val" != "x$ac_new_val"; then 2179 # differences in whitespace do not lead to failure. 2180 ac_old_val_w=`echo x $ac_old_val` 2181 ac_new_val_w=`echo x $ac_new_val` 2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2184$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2185 ac_cache_corrupted=: 2186 else 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2188$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2189 eval $ac_var=\$ac_old_val 2190 fi 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2192$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2194$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2195 fi;; 2196 esac 2197 # Pass precious variables to config.status. 2198 if test "$ac_new_set" = set; then 2199 case $ac_new_val in 2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2201 *) ac_arg=$ac_var=$ac_new_val ;; 2202 esac 2203 case " $ac_configure_args " in 2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2206 esac 2207 fi 2208done 2209if $ac_cache_corrupted; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2213$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2215fi 2216## -------------------- ## 2217## Main body of script. ## 2218## -------------------- ## 2219 2220ac_ext=c 2221ac_cpp='$CPP $CPPFLAGS' 2222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2224ac_compiler_gnu=$ac_cv_c_compiler_gnu 2225 2226 2227 2228ac_config_headers="$ac_config_headers config.h" 2229 2230ac_aux_dir= 2231for ac_dir in . "$srcdir"/.; do 2232 if test -f "$ac_dir/install-sh"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/install-sh -c" 2235 break 2236 elif test -f "$ac_dir/install.sh"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/install.sh -c" 2239 break 2240 elif test -f "$ac_dir/shtool"; then 2241 ac_aux_dir=$ac_dir 2242 ac_install_sh="$ac_aux_dir/shtool install -c" 2243 break 2244 fi 2245done 2246if test -z "$ac_aux_dir"; then 2247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2248fi 2249 2250# These three variables are undocumented and unsupported, 2251# and are intended to be withdrawn in a future Autoconf release. 2252# They can cause serious problems if a builder's source tree is in a directory 2253# whose full name contains unusual characters. 2254ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2255ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2256ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2257 2258 2259 2260# Initialize Automake 2261am__api_version='1.15' 2262 2263# Find a good install program. We prefer a C program (faster), 2264# so one script is as good as another. But avoid the broken or 2265# incompatible versions: 2266# SysV /etc/install, /usr/sbin/install 2267# SunOS /usr/etc/install 2268# IRIX /sbin/install 2269# AIX /bin/install 2270# AmigaOS /C/install, which installs bootblocks on floppy discs 2271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2272# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2274# OS/2's system install, which has a completely different semantic 2275# ./install, which can be erroneously created by make from ./install.sh. 2276# Reject install programs that cannot install multiple files. 2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2278$as_echo_n "checking for a BSD-compatible install... " >&6; } 2279if test -z "$INSTALL"; then 2280if ${ac_cv_path_install+:} false; then : 2281 $as_echo_n "(cached) " >&6 2282else 2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 # Account for people who put trailing slashes in PATH elements. 2289case $as_dir/ in #(( 2290 ./ | .// | /[cC]/* | \ 2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2293 /usr/ucb/* ) ;; 2294 *) 2295 # OSF1 and SCO ODT 3.0 have their own names for install. 2296 # Don't use installbsd from OSF since it installs stuff as root 2297 # by default. 2298 for ac_prog in ginstall scoinst install; do 2299 for ac_exec_ext in '' $ac_executable_extensions; do 2300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2301 if test $ac_prog = install && 2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2303 # AIX install. It has an incompatible calling convention. 2304 : 2305 elif test $ac_prog = install && 2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2307 # program-specific install script used by HP pwplus--don't use. 2308 : 2309 else 2310 rm -rf conftest.one conftest.two conftest.dir 2311 echo one > conftest.one 2312 echo two > conftest.two 2313 mkdir conftest.dir 2314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2315 test -s conftest.one && test -s conftest.two && 2316 test -s conftest.dir/conftest.one && 2317 test -s conftest.dir/conftest.two 2318 then 2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2320 break 3 2321 fi 2322 fi 2323 fi 2324 done 2325 done 2326 ;; 2327esac 2328 2329 done 2330IFS=$as_save_IFS 2331 2332rm -rf conftest.one conftest.two conftest.dir 2333 2334fi 2335 if test "${ac_cv_path_install+set}" = set; then 2336 INSTALL=$ac_cv_path_install 2337 else 2338 # As a last resort, use the slow shell script. Don't cache a 2339 # value for INSTALL within a source directory, because that will 2340 # break other packages using the cache if that directory is 2341 # removed, or if the value is a relative name. 2342 INSTALL=$ac_install_sh 2343 fi 2344fi 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2346$as_echo "$INSTALL" >&6; } 2347 2348# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2349# It thinks the first close brace ends the variable substitution. 2350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2351 2352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2353 2354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2355 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2357$as_echo_n "checking whether build environment is sane... " >&6; } 2358# Reject unsafe characters in $srcdir or the absolute working directory 2359# name. Accept space and tab only in the latter. 2360am_lf=' 2361' 2362case `pwd` in 2363 *[\\\"\#\$\&\'\`$am_lf]*) 2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2365esac 2366case $srcdir in 2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2369esac 2370 2371# Do 'set' in a subshell so we don't clobber the current shell's 2372# arguments. Must try -L first in case configure is actually a 2373# symlink; some systems play weird games with the mod time of symlinks 2374# (eg FreeBSD returns the mod time of the symlink's containing 2375# directory). 2376if ( 2377 am_has_slept=no 2378 for am_try in 1 2; do 2379 echo "timestamp, slept: $am_has_slept" > conftest.file 2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2381 if test "$*" = "X"; then 2382 # -L didn't work. 2383 set X `ls -t "$srcdir/configure" conftest.file` 2384 fi 2385 if test "$*" != "X $srcdir/configure conftest.file" \ 2386 && test "$*" != "X conftest.file $srcdir/configure"; then 2387 2388 # If neither matched, then we have a broken ls. This can happen 2389 # if, for instance, CONFIG_SHELL is bash and it inherits a 2390 # broken ls alias from the environment. This has actually 2391 # happened. Such a system could not be considered "sane". 2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2393 alias in your environment" "$LINENO" 5 2394 fi 2395 if test "$2" = conftest.file || test $am_try -eq 2; then 2396 break 2397 fi 2398 # Just in case. 2399 sleep 1 2400 am_has_slept=yes 2401 done 2402 test "$2" = conftest.file 2403 ) 2404then 2405 # Ok. 2406 : 2407else 2408 as_fn_error $? "newly created file is older than distributed files! 2409Check your system clock" "$LINENO" 5 2410fi 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2412$as_echo "yes" >&6; } 2413# If we didn't sleep, we still need to ensure time stamps of config.status and 2414# generated files are strictly newer. 2415am_sleep_pid= 2416if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2417 ( sleep 1 ) & 2418 am_sleep_pid=$! 2419fi 2420 2421rm -f conftest.file 2422 2423test "$program_prefix" != NONE && 2424 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2425# Use a double $ so make ignores it. 2426test "$program_suffix" != NONE && 2427 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2428# Double any \ or $. 2429# By default was `s,x,x', remove it if useless. 2430ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2431program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2432 2433# Expand $ac_aux_dir to an absolute path. 2434am_aux_dir=`cd "$ac_aux_dir" && pwd` 2435 2436if test x"${MISSING+set}" != xset; then 2437 case $am_aux_dir in 2438 *\ * | *\ *) 2439 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2440 *) 2441 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2442 esac 2443fi 2444# Use eval to expand $SHELL 2445if eval "$MISSING --is-lightweight"; then 2446 am_missing_run="$MISSING " 2447else 2448 am_missing_run= 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2450$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2451fi 2452 2453if test x"${install_sh+set}" != xset; then 2454 case $am_aux_dir in 2455 *\ * | *\ *) 2456 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2457 *) 2458 install_sh="\${SHELL} $am_aux_dir/install-sh" 2459 esac 2460fi 2461 2462# Installed binaries are usually stripped using 'strip' when the user 2463# run "make install-strip". However 'strip' might not be the right 2464# tool to use in cross-compilation environments, therefore Automake 2465# will honor the 'STRIP' environment variable to overrule this program. 2466if test "$cross_compiling" != no; then 2467 if test -n "$ac_tool_prefix"; then 2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2469set dummy ${ac_tool_prefix}strip; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_STRIP+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$STRIP"; then 2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495STRIP=$ac_cv_prog_STRIP 2496if test -n "$STRIP"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2498$as_echo "$STRIP" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505fi 2506if test -z "$ac_cv_prog_STRIP"; then 2507 ac_ct_STRIP=$STRIP 2508 # Extract the first word of "strip", so it can be a program name with args. 2509set dummy strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$ac_ct_STRIP"; then 2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2525 ac_cv_prog_ac_ct_STRIP="strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2536if test -n "$ac_ct_STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2538$as_echo "$ac_ct_STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 if test "x$ac_ct_STRIP" = x; then 2545 STRIP=":" 2546 else 2547 case $cross_compiling:$ac_tool_warned in 2548yes:) 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2551ac_tool_warned=yes ;; 2552esac 2553 STRIP=$ac_ct_STRIP 2554 fi 2555else 2556 STRIP="$ac_cv_prog_STRIP" 2557fi 2558 2559fi 2560INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2563$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2564if test -z "$MKDIR_P"; then 2565 if ${ac_cv_path_mkdir+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_prog in mkdir gmkdir; do 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2576 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2577 'mkdir (GNU coreutils) '* | \ 2578 'mkdir (coreutils) '* | \ 2579 'mkdir (fileutils) '4.1*) 2580 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2581 break 3;; 2582 esac 2583 done 2584 done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589 2590 test -d ./--version && rmdir ./--version 2591 if test "${ac_cv_path_mkdir+set}" = set; then 2592 MKDIR_P="$ac_cv_path_mkdir -p" 2593 else 2594 # As a last resort, use the slow shell script. Don't cache a 2595 # value for MKDIR_P within a source directory, because that will 2596 # break other packages using the cache if that directory is 2597 # removed, or if the value is a relative name. 2598 MKDIR_P="$ac_install_sh -d" 2599 fi 2600fi 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2602$as_echo "$MKDIR_P" >&6; } 2603 2604for ac_prog in gawk mawk nawk awk 2605do 2606 # Extract the first word of "$ac_prog", so it can be a program name with args. 2607set dummy $ac_prog; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_AWK+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$AWK"; then 2614 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2615else 2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623 ac_cv_prog_AWK="$ac_prog" 2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2625 break 2 2626 fi 2627done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632fi 2633AWK=$ac_cv_prog_AWK 2634if test -n "$AWK"; then 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2636$as_echo "$AWK" >&6; } 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640fi 2641 2642 2643 test -n "$AWK" && break 2644done 2645 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2647$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2648set x ${MAKE-make} 2649ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2650if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 cat >conftest.make <<\_ACEOF 2654SHELL = /bin/sh 2655all: 2656 @echo '@@@%%%=$(MAKE)=@@@%%%' 2657_ACEOF 2658# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2659case `${MAKE-make} -f conftest.make 2>/dev/null` in 2660 *@@@%%%=?*=@@@%%%*) 2661 eval ac_cv_prog_make_${ac_make}_set=yes;; 2662 *) 2663 eval ac_cv_prog_make_${ac_make}_set=no;; 2664esac 2665rm -f conftest.make 2666fi 2667if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2669$as_echo "yes" >&6; } 2670 SET_MAKE= 2671else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674 SET_MAKE="MAKE=${MAKE-make}" 2675fi 2676 2677rm -rf .tst 2>/dev/null 2678mkdir .tst 2>/dev/null 2679if test -d .tst; then 2680 am__leading_dot=. 2681else 2682 am__leading_dot=_ 2683fi 2684rmdir .tst 2>/dev/null 2685 2686# Check whether --enable-silent-rules was given. 2687if test "${enable_silent_rules+set}" = set; then : 2688 enableval=$enable_silent_rules; 2689fi 2690 2691case $enable_silent_rules in # ((( 2692 yes) AM_DEFAULT_VERBOSITY=0;; 2693 no) AM_DEFAULT_VERBOSITY=1;; 2694 *) AM_DEFAULT_VERBOSITY=1;; 2695esac 2696am_make=${MAKE-make} 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2698$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2699if ${am_cv_make_support_nested_variables+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 if $as_echo 'TRUE=$(BAR$(V)) 2703BAR0=false 2704BAR1=true 2705V=1 2706am__doit: 2707 @$(TRUE) 2708.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2709 am_cv_make_support_nested_variables=yes 2710else 2711 am_cv_make_support_nested_variables=no 2712fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2715$as_echo "$am_cv_make_support_nested_variables" >&6; } 2716if test $am_cv_make_support_nested_variables = yes; then 2717 AM_V='$(V)' 2718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2719else 2720 AM_V=$AM_DEFAULT_VERBOSITY 2721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2722fi 2723AM_BACKSLASH='\' 2724 2725if test "`cd $srcdir && pwd`" != "`pwd`"; then 2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2727 # is not polluted with repeated "-I." 2728 am__isrc=' -I$(srcdir)' 2729 # test to see if srcdir already configured 2730 if test -f $srcdir/config.status; then 2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2732 fi 2733fi 2734 2735# test whether we have cygpath 2736if test -z "$CYGPATH_W"; then 2737 if (cygpath --version) >/dev/null 2>/dev/null; then 2738 CYGPATH_W='cygpath -w' 2739 else 2740 CYGPATH_W=echo 2741 fi 2742fi 2743 2744 2745# Define the identity of the package. 2746 PACKAGE='xf86-video-sunleo' 2747 VERSION='1.2.2' 2748 2749 2750cat >>confdefs.h <<_ACEOF 2751#define PACKAGE "$PACKAGE" 2752_ACEOF 2753 2754 2755cat >>confdefs.h <<_ACEOF 2756#define VERSION "$VERSION" 2757_ACEOF 2758 2759# Some tools Automake needs. 2760 2761ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2762 2763 2764AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2765 2766 2767AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2768 2769 2770AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2771 2772 2773MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2774 2775# For better backward compatibility. To be removed once Automake 1.9.x 2776# dies out for good. For more background, see: 2777# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2778# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2779mkdir_p='$(MKDIR_P)' 2780 2781# We need awk for the "check" target (and possibly the TAP driver). The 2782# system "awk" is bad on some platforms. 2783# Always define AMTAR for backward compatibility. Yes, it's still used 2784# in the wild :-( We should find a proper way to deprecate it ... 2785AMTAR='$${TAR-tar}' 2786 2787 2788# We'll loop over all known methods to create a tar archive until one works. 2789_am_tools='gnutar pax cpio none' 2790 2791am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2792 2793 2794 2795 2796 2797 2798# POSIX will say in a future version that running "rm -f" with no argument 2799# is OK; and we want to be able to make that assumption in our Makefile 2800# recipes. So use an aggressive probe to check that the usage we want is 2801# actually supported "in the wild" to an acceptable degree. 2802# See automake bug#10828. 2803# To make any issue more visible, cause the running configure to be aborted 2804# by default if the 'rm' program in use doesn't match our expectations; the 2805# user can still override this though. 2806if rm -f && rm -fr && rm -rf; then : OK; else 2807 cat >&2 <<'END' 2808Oops! 2809 2810Your 'rm' program seems unable to run without file operands specified 2811on the command line, even when the '-f' option is present. This is contrary 2812to the behaviour of most rm programs out there, and not conforming with 2813the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2814 2815Please tell bug-automake@gnu.org about your system, including the value 2816of your $PATH and any error possibly output before this message. This 2817can help us improve future automake versions. 2818 2819END 2820 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2821 echo 'Configuration will proceed anyway, since you have set the' >&2 2822 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2823 echo >&2 2824 else 2825 cat >&2 <<'END' 2826Aborting the configuration process, to ensure you take notice of the issue. 2827 2828You can download and install GNU coreutils to get an 'rm' implementation 2829that behaves properly: <http://www.gnu.org/software/coreutils/>. 2830 2831If you want to complete the configuration process using your problematic 2832'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2833to "yes", and re-run configure. 2834 2835END 2836 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2837 fi 2838fi 2839 2840 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2842$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2843 # Check whether --enable-maintainer-mode was given. 2844if test "${enable_maintainer_mode+set}" = set; then : 2845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2846else 2847 USE_MAINTAINER_MODE=no 2848fi 2849 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2851$as_echo "$USE_MAINTAINER_MODE" >&6; } 2852 if test $USE_MAINTAINER_MODE = yes; then 2853 MAINTAINER_MODE_TRUE= 2854 MAINTAINER_MODE_FALSE='#' 2855else 2856 MAINTAINER_MODE_TRUE='#' 2857 MAINTAINER_MODE_FALSE= 2858fi 2859 2860 MAINT=$MAINTAINER_MODE_TRUE 2861 2862 2863 2864# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876DEPDIR="${am__leading_dot}deps" 2877 2878ac_config_commands="$ac_config_commands depfiles" 2879 2880 2881am_make=${MAKE-make} 2882cat > confinc << 'END' 2883am__doit: 2884 @echo this is the am__doit target 2885.PHONY: am__doit 2886END 2887# If we don't find an include directive, just comment out the code. 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2889$as_echo_n "checking for style of include used by $am_make... " >&6; } 2890am__include="#" 2891am__quote= 2892_am_result=none 2893# First try GNU make style include. 2894echo "include confinc" > confmf 2895# Ignore all kinds of additional output from 'make'. 2896case `$am_make -s -f confmf 2> /dev/null` in #( 2897*the\ am__doit\ target*) 2898 am__include=include 2899 am__quote= 2900 _am_result=GNU 2901 ;; 2902esac 2903# Now try BSD make style include. 2904if test "$am__include" = "#"; then 2905 echo '.include "confinc"' > confmf 2906 case `$am_make -s -f confmf 2> /dev/null` in #( 2907 *the\ am__doit\ target*) 2908 am__include=.include 2909 am__quote="\"" 2910 _am_result=BSD 2911 ;; 2912 esac 2913fi 2914 2915 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2917$as_echo "$_am_result" >&6; } 2918rm -f confinc confmf 2919 2920# Check whether --enable-dependency-tracking was given. 2921if test "${enable_dependency_tracking+set}" = set; then : 2922 enableval=$enable_dependency_tracking; 2923fi 2924 2925if test "x$enable_dependency_tracking" != xno; then 2926 am_depcomp="$ac_aux_dir/depcomp" 2927 AMDEPBACKSLASH='\' 2928 am__nodep='_no' 2929fi 2930 if test "x$enable_dependency_tracking" != xno; then 2931 AMDEP_TRUE= 2932 AMDEP_FALSE='#' 2933else 2934 AMDEP_TRUE='#' 2935 AMDEP_FALSE= 2936fi 2937 2938 2939ac_ext=c 2940ac_cpp='$CPP $CPPFLAGS' 2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2943ac_compiler_gnu=$ac_cv_c_compiler_gnu 2944if test -n "$ac_tool_prefix"; then 2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2946set dummy ${ac_tool_prefix}gcc; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if ${ac_cv_prog_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972CC=$ac_cv_prog_CC 2973if test -n "$CC"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2975$as_echo "$CC" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982fi 2983if test -z "$ac_cv_prog_CC"; then 2984 ac_ct_CC=$CC 2985 # Extract the first word of "gcc", so it can be a program name with args. 2986set dummy gcc; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_ac_ct_CC+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$ac_ct_CC"; then 2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2994else 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_ac_ct_CC="gcc" 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012ac_ct_CC=$ac_cv_prog_ac_ct_CC 3013if test -n "$ac_ct_CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3015$as_echo "$ac_ct_CC" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 if test "x$ac_ct_CC" = x; then 3022 CC="" 3023 else 3024 case $cross_compiling:$ac_tool_warned in 3025yes:) 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3028ac_tool_warned=yes ;; 3029esac 3030 CC=$ac_ct_CC 3031 fi 3032else 3033 CC="$ac_cv_prog_CC" 3034fi 3035 3036if test -z "$CC"; then 3037 if test -n "$ac_tool_prefix"; then 3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3039set dummy ${ac_tool_prefix}cc; ac_word=$2 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if ${ac_cv_prog_CC+:} false; then : 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$CC"; then 3046 ac_cv_prog_CC="$CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_CC="${ac_tool_prefix}cc" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065CC=$ac_cv_prog_CC 3066if test -n "$CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3068$as_echo "$CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 fi 3076fi 3077if test -z "$CC"; then 3078 # Extract the first word of "cc", so it can be a program name with args. 3079set dummy cc; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_CC+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$CC"; then 3086 ac_cv_prog_CC="$CC" # Let the user override the test. 3087else 3088 ac_prog_rejected=no 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3097 ac_prog_rejected=yes 3098 continue 3099 fi 3100 ac_cv_prog_CC="cc" 3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3102 break 2 3103 fi 3104done 3105 done 3106IFS=$as_save_IFS 3107 3108if test $ac_prog_rejected = yes; then 3109 # We found a bogon in the path, so make sure we never use it. 3110 set dummy $ac_cv_prog_CC 3111 shift 3112 if test $# != 0; then 3113 # We chose a different compiler from the bogus one. 3114 # However, it has the same basename, so the bogon will be chosen 3115 # first if we set CC to just the basename; use the full file name. 3116 shift 3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3118 fi 3119fi 3120fi 3121fi 3122CC=$ac_cv_prog_CC 3123if test -n "$CC"; then 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3125$as_echo "$CC" >&6; } 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129fi 3130 3131 3132fi 3133if test -z "$CC"; then 3134 if test -n "$ac_tool_prefix"; then 3135 for ac_prog in cl.exe 3136 do 3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3138set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140$as_echo_n "checking for $ac_word... " >&6; } 3141if ${ac_cv_prog_CC+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$CC"; then 3145 ac_cv_prog_CC="$CC" # Let the user override the test. 3146else 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3156 break 2 3157 fi 3158done 3159 done 3160IFS=$as_save_IFS 3161 3162fi 3163fi 3164CC=$ac_cv_prog_CC 3165if test -n "$CC"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3167$as_echo "$CC" >&6; } 3168else 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171fi 3172 3173 3174 test -n "$CC" && break 3175 done 3176fi 3177if test -z "$CC"; then 3178 ac_ct_CC=$CC 3179 for ac_prog in cl.exe 3180do 3181 # Extract the first word of "$ac_prog", so it can be a program name with args. 3182set dummy $ac_prog; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_ac_ct_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$ac_ct_CC"; then 3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3198 ac_cv_prog_ac_ct_CC="$ac_prog" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206fi 3207fi 3208ac_ct_CC=$ac_cv_prog_ac_ct_CC 3209if test -n "$ac_ct_CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3211$as_echo "$ac_ct_CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218 test -n "$ac_ct_CC" && break 3219done 3220 3221 if test "x$ac_ct_CC" = x; then 3222 CC="" 3223 else 3224 case $cross_compiling:$ac_tool_warned in 3225yes:) 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3228ac_tool_warned=yes ;; 3229esac 3230 CC=$ac_ct_CC 3231 fi 3232fi 3233 3234fi 3235 3236 3237test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "no acceptable C compiler found in \$PATH 3240See \`config.log' for more details" "$LINENO" 5; } 3241 3242# Provide some information about the compiler. 3243$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3244set X $ac_compile 3245ac_compiler=$2 3246for ac_option in --version -v -V -qversion; do 3247 { { ac_try="$ac_compiler $ac_option >&5" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3253$as_echo "$ac_try_echo"; } >&5 3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3255 ac_status=$? 3256 if test -s conftest.err; then 3257 sed '10a\ 3258... rest of stderr output deleted ... 3259 10q' conftest.err >conftest.er1 3260 cat conftest.er1 >&5 3261 fi 3262 rm -f conftest.er1 conftest.err 3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; } 3265done 3266 3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278ac_clean_files_save=$ac_clean_files 3279ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3280# Try to create an executable without -o first, disregard a.out. 3281# It will help us diagnose broken compilers, and finding out an intuition 3282# of exeext. 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3284$as_echo_n "checking whether the C compiler works... " >&6; } 3285ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3286 3287# The possible output files: 3288ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3289 3290ac_rmfiles= 3291for ac_file in $ac_files 3292do 3293 case $ac_file in 3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3296 esac 3297done 3298rm -f $ac_rmfiles 3299 3300if { { ac_try="$ac_link_default" 3301case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3306$as_echo "$ac_try_echo"; } >&5 3307 (eval "$ac_link_default") 2>&5 3308 ac_status=$? 3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3310 test $ac_status = 0; }; then : 3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3312# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3313# in a Makefile. We should not override ac_cv_exeext if it was cached, 3314# so that the user can short-circuit this test for compilers unknown to 3315# Autoconf. 3316for ac_file in $ac_files '' 3317do 3318 test -f "$ac_file" || continue 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3321 ;; 3322 [ab].out ) 3323 # We found the default executable, but exeext='' is most 3324 # certainly right. 3325 break;; 3326 *.* ) 3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3328 then :; else 3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3330 fi 3331 # We set ac_cv_exeext here because the later test for it is not 3332 # safe: cross compilers may not add the suffix if given an `-o' 3333 # argument, so we may need to know it at that point already. 3334 # Even if this section looks crufty: it has the advantage of 3335 # actually working. 3336 break;; 3337 * ) 3338 break;; 3339 esac 3340done 3341test "$ac_cv_exeext" = no && ac_cv_exeext= 3342 3343else 3344 ac_file='' 3345fi 3346if test -z "$ac_file"; then : 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3348$as_echo "no" >&6; } 3349$as_echo "$as_me: failed program was:" >&5 3350sed 's/^/| /' conftest.$ac_ext >&5 3351 3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3354as_fn_error 77 "C compiler cannot create executables 3355See \`config.log' for more details" "$LINENO" 5; } 3356else 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3358$as_echo "yes" >&6; } 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3361$as_echo_n "checking for C compiler default output file name... " >&6; } 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3363$as_echo "$ac_file" >&6; } 3364ac_exeext=$ac_cv_exeext 3365 3366rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3367ac_clean_files=$ac_clean_files_save 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3369$as_echo_n "checking for suffix of executables... " >&6; } 3370if { { ac_try="$ac_link" 3371case "(($ac_try" in 3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3373 *) ac_try_echo=$ac_try;; 3374esac 3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3376$as_echo "$ac_try_echo"; } >&5 3377 (eval "$ac_link") 2>&5 3378 ac_status=$? 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; }; then : 3381 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3382# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3383# work properly (i.e., refer to `conftest.exe'), while it won't with 3384# `rm'. 3385for ac_file in conftest.exe conftest conftest.*; do 3386 test -f "$ac_file" || continue 3387 case $ac_file in 3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3390 break;; 3391 * ) break;; 3392 esac 3393done 3394else 3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3398See \`config.log' for more details" "$LINENO" 5; } 3399fi 3400rm -f conftest conftest$ac_cv_exeext 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3402$as_echo "$ac_cv_exeext" >&6; } 3403 3404rm -f conftest.$ac_ext 3405EXEEXT=$ac_cv_exeext 3406ac_exeext=$EXEEXT 3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409#include <stdio.h> 3410int 3411main () 3412{ 3413FILE *f = fopen ("conftest.out", "w"); 3414 return ferror (f) || fclose (f) != 0; 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420ac_clean_files="$ac_clean_files conftest.out" 3421# Check that the compiler produces executables we can run. If not, either 3422# the compiler is broken, or we cross compile. 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3424$as_echo_n "checking whether we are cross compiling... " >&6; } 3425if test "$cross_compiling" != yes; then 3426 { { ac_try="$ac_link" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_link") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; } 3437 if { ac_try='./conftest$ac_cv_exeext' 3438 { { case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_try") 2>&5 3445 ac_status=$? 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; }; }; then 3448 cross_compiling=no 3449 else 3450 if test "$cross_compiling" = maybe; then 3451 cross_compiling=yes 3452 else 3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error $? "cannot run C compiled programs. 3456If you meant to cross compile, use \`--host'. 3457See \`config.log' for more details" "$LINENO" 5; } 3458 fi 3459 fi 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3462$as_echo "$cross_compiling" >&6; } 3463 3464rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3465ac_clean_files=$ac_clean_files_save 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3467$as_echo_n "checking for suffix of object files... " >&6; } 3468if ${ac_cv_objext+:} false; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473 3474int 3475main () 3476{ 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482rm -f conftest.o conftest.obj 3483if { { ac_try="$ac_compile" 3484case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487esac 3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3489$as_echo "$ac_try_echo"; } >&5 3490 (eval "$ac_compile") 2>&5 3491 ac_status=$? 3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3493 test $ac_status = 0; }; then : 3494 for ac_file in conftest.o conftest.obj conftest.*; do 3495 test -f "$ac_file" || continue; 3496 case $ac_file in 3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3499 break;; 3500 esac 3501done 3502else 3503 $as_echo "$as_me: failed program was:" >&5 3504sed 's/^/| /' conftest.$ac_ext >&5 3505 3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error $? "cannot compute suffix of object files: cannot compile 3509See \`config.log' for more details" "$LINENO" 5; } 3510fi 3511rm -f conftest.$ac_cv_objext conftest.$ac_ext 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3514$as_echo "$ac_cv_objext" >&6; } 3515OBJEXT=$ac_cv_objext 3516ac_objext=$OBJEXT 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3519if ${ac_cv_c_compiler_gnu+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528#ifndef __GNUC__ 3529 choke me 3530#endif 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_compiler_gnu=yes 3538else 3539 ac_compiler_gnu=no 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542ac_cv_c_compiler_gnu=$ac_compiler_gnu 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3546$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3547if test $ac_compiler_gnu = yes; then 3548 GCC=yes 3549else 3550 GCC= 3551fi 3552ac_test_CFLAGS=${CFLAGS+set} 3553ac_save_CFLAGS=$CFLAGS 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3555$as_echo_n "checking whether $CC accepts -g... " >&6; } 3556if ${ac_cv_prog_cc_g+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_save_c_werror_flag=$ac_c_werror_flag 3560 ac_c_werror_flag=yes 3561 ac_cv_prog_cc_g=no 3562 CFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_c_try_compile "$LINENO"; then : 3575 ac_cv_prog_cc_g=yes 3576else 3577 CFLAGS="" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO"; then : 3590 3591else 3592 ac_c_werror_flag=$ac_save_c_werror_flag 3593 CFLAGS="-g" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 ac_cv_prog_cc_g=yes 3607fi 3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3616$as_echo "$ac_cv_prog_cc_g" >&6; } 3617if test "$ac_test_CFLAGS" = set; then 3618 CFLAGS=$ac_save_CFLAGS 3619elif test $ac_cv_prog_cc_g = yes; then 3620 if test "$GCC" = yes; then 3621 CFLAGS="-g -O2" 3622 else 3623 CFLAGS="-g" 3624 fi 3625else 3626 if test "$GCC" = yes; then 3627 CFLAGS="-O2" 3628 else 3629 CFLAGS= 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3634if ${ac_cv_prog_cc_c89+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 ac_cv_prog_cc_c89=no 3638ac_save_CC=$CC 3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641#include <stdarg.h> 3642#include <stdio.h> 3643struct stat; 3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3645struct buf { int x; }; 3646FILE * (*rcsopen) (struct buf *, struct stat *, int); 3647static char *e (p, i) 3648 char **p; 3649 int i; 3650{ 3651 return p[i]; 3652} 3653static char *f (char * (*g) (char **, int), char **p, ...) 3654{ 3655 char *s; 3656 va_list v; 3657 va_start (v,p); 3658 s = g (p, va_arg (v,int)); 3659 va_end (v); 3660 return s; 3661} 3662 3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3664 function prototypes and stuff, but not '\xHH' hex character constants. 3665 These don't provoke an error unfortunately, instead are silently treated 3666 as 'x'. The following induces an error, until -std is added to get 3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3668 array size at least. It's necessary to write '\x00'==0 to get something 3669 that's true only with -std. */ 3670int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3671 3672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3673 inside strings and character constants. */ 3674#define FOO(x) 'x' 3675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3676 3677int test (int i, double x); 3678struct s1 {int (*f) (int a);}; 3679struct s2 {int (*f) (double a);}; 3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3681int argc; 3682char **argv; 3683int 3684main () 3685{ 3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3693do 3694 CC="$ac_save_CC $ac_arg" 3695 if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_cv_prog_cc_c89=$ac_arg 3697fi 3698rm -f core conftest.err conftest.$ac_objext 3699 test "x$ac_cv_prog_cc_c89" != "xno" && break 3700done 3701rm -f conftest.$ac_ext 3702CC=$ac_save_CC 3703 3704fi 3705# AC_CACHE_VAL 3706case "x$ac_cv_prog_cc_c89" in 3707 x) 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3709$as_echo "none needed" >&6; } ;; 3710 xno) 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3712$as_echo "unsupported" >&6; } ;; 3713 *) 3714 CC="$CC $ac_cv_prog_cc_c89" 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3716$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3717esac 3718if test "x$ac_cv_prog_cc_c89" != xno; then : 3719 3720fi 3721 3722ac_ext=c 3723ac_cpp='$CPP $CPPFLAGS' 3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3726ac_compiler_gnu=$ac_cv_c_compiler_gnu 3727 3728ac_ext=c 3729ac_cpp='$CPP $CPPFLAGS' 3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3732ac_compiler_gnu=$ac_cv_c_compiler_gnu 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3734$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3735if ${am_cv_prog_cc_c_o+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749 # Make sure it works both with $CC and with simple cc. 3750 # Following AC_PROG_CC_C_O, we do the test twice because some 3751 # compilers refuse to overwrite an existing .o file with -o, 3752 # though they will create one. 3753 am_cv_prog_cc_c_o=yes 3754 for am_i in 1 2; do 3755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); } \ 3760 && test -f conftest2.$ac_objext; then 3761 : OK 3762 else 3763 am_cv_prog_cc_c_o=no 3764 break 3765 fi 3766 done 3767 rm -f core conftest* 3768 unset am_i 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3771$as_echo "$am_cv_prog_cc_c_o" >&6; } 3772if test "$am_cv_prog_cc_c_o" != yes; then 3773 # Losing compiler, so override with the script. 3774 # FIXME: It is wrong to rewrite CC. 3775 # But if we don't then we get into trouble of one sort or another. 3776 # A longer-term fix would be to have automake use am__CC in this case, 3777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3778 CC="$am_aux_dir/compile $CC" 3779fi 3780ac_ext=c 3781ac_cpp='$CPP $CPPFLAGS' 3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3784ac_compiler_gnu=$ac_cv_c_compiler_gnu 3785 3786 3787depcc="$CC" am_compiler_list= 3788 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3790$as_echo_n "checking dependency style of $depcc... " >&6; } 3791if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3792 $as_echo_n "(cached) " >&6 3793else 3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3795 # We make a subdir and do the tests there. Otherwise we can end up 3796 # making bogus files that we don't know about and never remove. For 3797 # instance it was reported that on HP-UX the gcc test will end up 3798 # making a dummy file named 'D' -- because '-MD' means "put the output 3799 # in D". 3800 rm -rf conftest.dir 3801 mkdir conftest.dir 3802 # Copy depcomp to subdir because otherwise we won't find it if we're 3803 # using a relative directory. 3804 cp "$am_depcomp" conftest.dir 3805 cd conftest.dir 3806 # We will build objects and dependencies in a subdirectory because 3807 # it helps to detect inapplicable dependency modes. For instance 3808 # both Tru64's cc and ICC support -MD to output dependencies as a 3809 # side effect of compilation, but ICC will put the dependencies in 3810 # the current directory while Tru64 will put them in the object 3811 # directory. 3812 mkdir sub 3813 3814 am_cv_CC_dependencies_compiler_type=none 3815 if test "$am_compiler_list" = ""; then 3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3817 fi 3818 am__universal=false 3819 case " $depcc " in #( 3820 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3821 esac 3822 3823 for depmode in $am_compiler_list; do 3824 # Setup a source with many dependencies, because some compilers 3825 # like to wrap large dependency lists on column 80 (with \), and 3826 # we should not choose a depcomp mode which is confused by this. 3827 # 3828 # We need to recreate these files for each test, as the compiler may 3829 # overwrite some of them when testing with obscure command lines. 3830 # This happens at least with the AIX C compiler. 3831 : > sub/conftest.c 3832 for i in 1 2 3 4 5 6; do 3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3835 # Solaris 10 /bin/sh. 3836 echo '/* dummy */' > sub/conftst$i.h 3837 done 3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3839 3840 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3841 # mode. It turns out that the SunPro C++ compiler does not properly 3842 # handle '-M -o', and we need to detect this. Also, some Intel 3843 # versions had trouble with output in subdirs. 3844 am__obj=sub/conftest.${OBJEXT-o} 3845 am__minus_obj="-o $am__obj" 3846 case $depmode in 3847 gcc) 3848 # This depmode causes a compiler race in universal mode. 3849 test "$am__universal" = false || continue 3850 ;; 3851 nosideeffect) 3852 # After this tag, mechanisms are not by side-effect, so they'll 3853 # only be used when explicitly requested. 3854 if test "x$enable_dependency_tracking" = xyes; then 3855 continue 3856 else 3857 break 3858 fi 3859 ;; 3860 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3861 # This compiler won't grok '-c -o', but also, the minuso test has 3862 # not run yet. These depmodes are late enough in the game, and 3863 # so weak that their functioning should not be impacted. 3864 am__obj=conftest.${OBJEXT-o} 3865 am__minus_obj= 3866 ;; 3867 none) break ;; 3868 esac 3869 if depmode=$depmode \ 3870 source=sub/conftest.c object=$am__obj \ 3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3873 >/dev/null 2>conftest.err && 3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3878 # icc doesn't choke on unknown options, it will just issue warnings 3879 # or remarks (even with -Werror). So we grep stderr for any message 3880 # that says an option was ignored or not supported. 3881 # When given -MP, icc 7.0 and 7.1 complain thusly: 3882 # icc: Command line warning: ignoring option '-M'; no argument required 3883 # The diagnosis changed in icc 8.0: 3884 # icc: Command line remark: option '-MP' not supported 3885 if (grep 'ignoring option' conftest.err || 3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3887 am_cv_CC_dependencies_compiler_type=$depmode 3888 break 3889 fi 3890 fi 3891 done 3892 3893 cd .. 3894 rm -rf conftest.dir 3895else 3896 am_cv_CC_dependencies_compiler_type=none 3897fi 3898 3899fi 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3901$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3903 3904 if 3905 test "x$enable_dependency_tracking" != xno \ 3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3907 am__fastdepCC_TRUE= 3908 am__fastdepCC_FALSE='#' 3909else 3910 am__fastdepCC_TRUE='#' 3911 am__fastdepCC_FALSE= 3912fi 3913 3914 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3916$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3917if ${ac_cv_prog_cc_c99+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 ac_cv_prog_cc_c99=no 3921ac_save_CC=$CC 3922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924#include <stdarg.h> 3925#include <stdbool.h> 3926#include <stdlib.h> 3927#include <wchar.h> 3928#include <stdio.h> 3929 3930// Check varargs macros. These examples are taken from C99 6.10.3.5. 3931#define debug(...) fprintf (stderr, __VA_ARGS__) 3932#define showlist(...) puts (#__VA_ARGS__) 3933#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3934static void 3935test_varargs_macros (void) 3936{ 3937 int x = 1234; 3938 int y = 5678; 3939 debug ("Flag"); 3940 debug ("X = %d\n", x); 3941 showlist (The first, second, and third items.); 3942 report (x>y, "x is %d but y is %d", x, y); 3943} 3944 3945// Check long long types. 3946#define BIG64 18446744073709551615ull 3947#define BIG32 4294967295ul 3948#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3949#if !BIG_OK 3950 your preprocessor is broken; 3951#endif 3952#if BIG_OK 3953#else 3954 your preprocessor is broken; 3955#endif 3956static long long int bignum = -9223372036854775807LL; 3957static unsigned long long int ubignum = BIG64; 3958 3959struct incomplete_array 3960{ 3961 int datasize; 3962 double data[]; 3963}; 3964 3965struct named_init { 3966 int number; 3967 const wchar_t *name; 3968 double average; 3969}; 3970 3971typedef const char *ccp; 3972 3973static inline int 3974test_restrict (ccp restrict text) 3975{ 3976 // See if C++-style comments work. 3977 // Iterate through items via the restricted pointer. 3978 // Also check for declarations in for loops. 3979 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3980 continue; 3981 return 0; 3982} 3983 3984// Check varargs and va_copy. 3985static void 3986test_varargs (const char *format, ...) 3987{ 3988 va_list args; 3989 va_start (args, format); 3990 va_list args_copy; 3991 va_copy (args_copy, args); 3992 3993 const char *str; 3994 int number; 3995 float fnumber; 3996 3997 while (*format) 3998 { 3999 switch (*format++) 4000 { 4001 case 's': // string 4002 str = va_arg (args_copy, const char *); 4003 break; 4004 case 'd': // int 4005 number = va_arg (args_copy, int); 4006 break; 4007 case 'f': // float 4008 fnumber = va_arg (args_copy, double); 4009 break; 4010 default: 4011 break; 4012 } 4013 } 4014 va_end (args_copy); 4015 va_end (args); 4016} 4017 4018int 4019main () 4020{ 4021 4022 // Check bool. 4023 _Bool success = false; 4024 4025 // Check restrict. 4026 if (test_restrict ("String literal") == 0) 4027 success = true; 4028 char *restrict newvar = "Another string"; 4029 4030 // Check varargs. 4031 test_varargs ("s, d' f .", "string", 65, 34.234); 4032 test_varargs_macros (); 4033 4034 // Check flexible array members. 4035 struct incomplete_array *ia = 4036 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4037 ia->datasize = 10; 4038 for (int i = 0; i < ia->datasize; ++i) 4039 ia->data[i] = i * 1.234; 4040 4041 // Check named initializers. 4042 struct named_init ni = { 4043 .number = 34, 4044 .name = L"Test wide string", 4045 .average = 543.34343, 4046 }; 4047 4048 ni.number = 58; 4049 4050 int dynamic_array[ni.number]; 4051 dynamic_array[ni.number - 1] = 543; 4052 4053 // work around unused variable warnings 4054 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4055 || dynamic_array[ni.number - 1] != 543); 4056 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4062do 4063 CC="$ac_save_CC $ac_arg" 4064 if ac_fn_c_try_compile "$LINENO"; then : 4065 ac_cv_prog_cc_c99=$ac_arg 4066fi 4067rm -f core conftest.err conftest.$ac_objext 4068 test "x$ac_cv_prog_cc_c99" != "xno" && break 4069done 4070rm -f conftest.$ac_ext 4071CC=$ac_save_CC 4072 4073fi 4074# AC_CACHE_VAL 4075case "x$ac_cv_prog_cc_c99" in 4076 x) 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4078$as_echo "none needed" >&6; } ;; 4079 xno) 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4081$as_echo "unsupported" >&6; } ;; 4082 *) 4083 CC="$CC $ac_cv_prog_cc_c99" 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4085$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4086esac 4087if test "x$ac_cv_prog_cc_c99" != xno; then : 4088 4089fi 4090 4091 4092 4093ac_ext=c 4094ac_cpp='$CPP $CPPFLAGS' 4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4097ac_compiler_gnu=$ac_cv_c_compiler_gnu 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4099$as_echo_n "checking how to run the C preprocessor... " >&6; } 4100# On Suns, sometimes $CPP names a directory. 4101if test -n "$CPP" && test -d "$CPP"; then 4102 CPP= 4103fi 4104if test -z "$CPP"; then 4105 if ${ac_cv_prog_CPP+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 # Double quotes because CPP needs to be expanded 4109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4110 do 4111 ac_preproc_ok=false 4112for ac_c_preproc_warn_flag in '' yes 4113do 4114 # Use a header file that comes with gcc, so configuring glibc 4115 # with a fresh cross-compiler works. 4116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4117 # <limits.h> exists even on freestanding compilers. 4118 # On the NeXT, cc -E runs the code through the compiler's parser, 4119 # not just through cpp. "Syntax error" is here to catch this case. 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#ifdef __STDC__ 4123# include <limits.h> 4124#else 4125# include <assert.h> 4126#endif 4127 Syntax error 4128_ACEOF 4129if ac_fn_c_try_cpp "$LINENO"; then : 4130 4131else 4132 # Broken: fails on valid input. 4133continue 4134fi 4135rm -f conftest.err conftest.i conftest.$ac_ext 4136 4137 # OK, works on sane cases. Now check whether nonexistent headers 4138 # can be detected and how. 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141#include <ac_nonexistent.h> 4142_ACEOF 4143if ac_fn_c_try_cpp "$LINENO"; then : 4144 # Broken: success on invalid input. 4145continue 4146else 4147 # Passes both tests. 4148ac_preproc_ok=: 4149break 4150fi 4151rm -f conftest.err conftest.i conftest.$ac_ext 4152 4153done 4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4155rm -f conftest.i conftest.err conftest.$ac_ext 4156if $ac_preproc_ok; then : 4157 break 4158fi 4159 4160 done 4161 ac_cv_prog_CPP=$CPP 4162 4163fi 4164 CPP=$ac_cv_prog_CPP 4165else 4166 ac_cv_prog_CPP=$CPP 4167fi 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4169$as_echo "$CPP" >&6; } 4170ac_preproc_ok=false 4171for ac_c_preproc_warn_flag in '' yes 4172do 4173 # Use a header file that comes with gcc, so configuring glibc 4174 # with a fresh cross-compiler works. 4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4176 # <limits.h> exists even on freestanding compilers. 4177 # On the NeXT, cc -E runs the code through the compiler's parser, 4178 # not just through cpp. "Syntax error" is here to catch this case. 4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180/* end confdefs.h. */ 4181#ifdef __STDC__ 4182# include <limits.h> 4183#else 4184# include <assert.h> 4185#endif 4186 Syntax error 4187_ACEOF 4188if ac_fn_c_try_cpp "$LINENO"; then : 4189 4190else 4191 # Broken: fails on valid input. 4192continue 4193fi 4194rm -f conftest.err conftest.i conftest.$ac_ext 4195 4196 # OK, works on sane cases. Now check whether nonexistent headers 4197 # can be detected and how. 4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200#include <ac_nonexistent.h> 4201_ACEOF 4202if ac_fn_c_try_cpp "$LINENO"; then : 4203 # Broken: success on invalid input. 4204continue 4205else 4206 # Passes both tests. 4207ac_preproc_ok=: 4208break 4209fi 4210rm -f conftest.err conftest.i conftest.$ac_ext 4211 4212done 4213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4214rm -f conftest.i conftest.err conftest.$ac_ext 4215if $ac_preproc_ok; then : 4216 4217else 4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4221See \`config.log' for more details" "$LINENO" 5; } 4222fi 4223 4224ac_ext=c 4225ac_cpp='$CPP $CPPFLAGS' 4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4232$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4233if ${ac_cv_path_GREP+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 if test -z "$GREP"; then 4237 ac_path_GREP_found=false 4238 # Loop through the user's path and test for each of PROGNAME-LIST 4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4241do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_prog in grep ggrep; do 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4247 as_fn_executable_p "$ac_path_GREP" || continue 4248# Check for GNU ac_path_GREP and select it if it is found. 4249 # Check for GNU $ac_path_GREP 4250case `"$ac_path_GREP" --version 2>&1` in 4251*GNU*) 4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4253*) 4254 ac_count=0 4255 $as_echo_n 0123456789 >"conftest.in" 4256 while : 4257 do 4258 cat "conftest.in" "conftest.in" >"conftest.tmp" 4259 mv "conftest.tmp" "conftest.in" 4260 cp "conftest.in" "conftest.nl" 4261 $as_echo 'GREP' >> "conftest.nl" 4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4264 as_fn_arith $ac_count + 1 && ac_count=$as_val 4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4266 # Best one so far, save it but keep looking for a better one 4267 ac_cv_path_GREP="$ac_path_GREP" 4268 ac_path_GREP_max=$ac_count 4269 fi 4270 # 10*(2^10) chars as input seems more than enough 4271 test $ac_count -gt 10 && break 4272 done 4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4274esac 4275 4276 $ac_path_GREP_found && break 3 4277 done 4278 done 4279 done 4280IFS=$as_save_IFS 4281 if test -z "$ac_cv_path_GREP"; then 4282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4283 fi 4284else 4285 ac_cv_path_GREP=$GREP 4286fi 4287 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4290$as_echo "$ac_cv_path_GREP" >&6; } 4291 GREP="$ac_cv_path_GREP" 4292 4293 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4295$as_echo_n "checking for egrep... " >&6; } 4296if ${ac_cv_path_EGREP+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4300 then ac_cv_path_EGREP="$GREP -E" 4301 else 4302 if test -z "$EGREP"; then 4303 ac_path_EGREP_found=false 4304 # Loop through the user's path and test for each of PROGNAME-LIST 4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4307do 4308 IFS=$as_save_IFS 4309 test -z "$as_dir" && as_dir=. 4310 for ac_prog in egrep; do 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4313 as_fn_executable_p "$ac_path_EGREP" || continue 4314# Check for GNU ac_path_EGREP and select it if it is found. 4315 # Check for GNU $ac_path_EGREP 4316case `"$ac_path_EGREP" --version 2>&1` in 4317*GNU*) 4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4319*) 4320 ac_count=0 4321 $as_echo_n 0123456789 >"conftest.in" 4322 while : 4323 do 4324 cat "conftest.in" "conftest.in" >"conftest.tmp" 4325 mv "conftest.tmp" "conftest.in" 4326 cp "conftest.in" "conftest.nl" 4327 $as_echo 'EGREP' >> "conftest.nl" 4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4330 as_fn_arith $ac_count + 1 && ac_count=$as_val 4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4332 # Best one so far, save it but keep looking for a better one 4333 ac_cv_path_EGREP="$ac_path_EGREP" 4334 ac_path_EGREP_max=$ac_count 4335 fi 4336 # 10*(2^10) chars as input seems more than enough 4337 test $ac_count -gt 10 && break 4338 done 4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4340esac 4341 4342 $ac_path_EGREP_found && break 3 4343 done 4344 done 4345 done 4346IFS=$as_save_IFS 4347 if test -z "$ac_cv_path_EGREP"; then 4348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4349 fi 4350else 4351 ac_cv_path_EGREP=$EGREP 4352fi 4353 4354 fi 4355fi 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4357$as_echo "$ac_cv_path_EGREP" >&6; } 4358 EGREP="$ac_cv_path_EGREP" 4359 4360 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4362$as_echo_n "checking for ANSI C header files... " >&6; } 4363if ${ac_cv_header_stdc+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367/* end confdefs.h. */ 4368#include <stdlib.h> 4369#include <stdarg.h> 4370#include <string.h> 4371#include <float.h> 4372 4373int 4374main () 4375{ 4376 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381if ac_fn_c_try_compile "$LINENO"; then : 4382 ac_cv_header_stdc=yes 4383else 4384 ac_cv_header_stdc=no 4385fi 4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4387 4388if test $ac_cv_header_stdc = yes; then 4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392#include <string.h> 4393 4394_ACEOF 4395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4396 $EGREP "memchr" >/dev/null 2>&1; then : 4397 4398else 4399 ac_cv_header_stdc=no 4400fi 4401rm -f conftest* 4402 4403fi 4404 4405if test $ac_cv_header_stdc = yes; then 4406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409#include <stdlib.h> 4410 4411_ACEOF 4412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4413 $EGREP "free" >/dev/null 2>&1; then : 4414 4415else 4416 ac_cv_header_stdc=no 4417fi 4418rm -f conftest* 4419 4420fi 4421 4422if test $ac_cv_header_stdc = yes; then 4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4424 if test "$cross_compiling" = yes; then : 4425 : 4426else 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#include <ctype.h> 4430#include <stdlib.h> 4431#if ((' ' & 0x0FF) == 0x020) 4432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4434#else 4435# define ISLOWER(c) \ 4436 (('a' <= (c) && (c) <= 'i') \ 4437 || ('j' <= (c) && (c) <= 'r') \ 4438 || ('s' <= (c) && (c) <= 'z')) 4439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4440#endif 4441 4442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4443int 4444main () 4445{ 4446 int i; 4447 for (i = 0; i < 256; i++) 4448 if (XOR (islower (i), ISLOWER (i)) 4449 || toupper (i) != TOUPPER (i)) 4450 return 2; 4451 return 0; 4452} 4453_ACEOF 4454if ac_fn_c_try_run "$LINENO"; then : 4455 4456else 4457 ac_cv_header_stdc=no 4458fi 4459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4460 conftest.$ac_objext conftest.beam conftest.$ac_ext 4461fi 4462 4463fi 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4466$as_echo "$ac_cv_header_stdc" >&6; } 4467if test $ac_cv_header_stdc = yes; then 4468 4469$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4470 4471fi 4472 4473# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4474for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4475 inttypes.h stdint.h unistd.h 4476do : 4477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4478ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4479" 4480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4481 cat >>confdefs.h <<_ACEOF 4482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4483_ACEOF 4484 4485fi 4486 4487done 4488 4489 4490 4491 4492 4493 4494ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4495if test "x$ac_cv_have_decl___clang__" = xyes; then : 4496 CLANGCC="yes" 4497else 4498 CLANGCC="no" 4499fi 4500 4501ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4502if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4503 INTELCC="yes" 4504else 4505 INTELCC="no" 4506fi 4507 4508ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4509if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4510 SUNCC="yes" 4511else 4512 SUNCC="no" 4513fi 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4524 if test -n "$ac_tool_prefix"; then 4525 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4526set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528$as_echo_n "checking for $ac_word... " >&6; } 4529if ${ac_cv_path_PKG_CONFIG+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 case $PKG_CONFIG in 4533 [\\/]* | ?:[\\/]*) 4534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4535 ;; 4536 *) 4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4538for as_dir in $PATH 4539do 4540 IFS=$as_save_IFS 4541 test -z "$as_dir" && as_dir=. 4542 for ac_exec_ext in '' $ac_executable_extensions; do 4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4546 break 2 4547 fi 4548done 4549 done 4550IFS=$as_save_IFS 4551 4552 ;; 4553esac 4554fi 4555PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4556if test -n "$PKG_CONFIG"; then 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4558$as_echo "$PKG_CONFIG" >&6; } 4559else 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4561$as_echo "no" >&6; } 4562fi 4563 4564 4565fi 4566if test -z "$ac_cv_path_PKG_CONFIG"; then 4567 ac_pt_PKG_CONFIG=$PKG_CONFIG 4568 # Extract the first word of "pkg-config", so it can be a program name with args. 4569set dummy pkg-config; ac_word=$2 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4571$as_echo_n "checking for $ac_word... " >&6; } 4572if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4573 $as_echo_n "(cached) " >&6 4574else 4575 case $ac_pt_PKG_CONFIG in 4576 [\\/]* | ?:[\\/]*) 4577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4578 ;; 4579 *) 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4587 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595 ;; 4596esac 4597fi 4598ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4599if test -n "$ac_pt_PKG_CONFIG"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4601$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4602else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604$as_echo "no" >&6; } 4605fi 4606 4607 if test "x$ac_pt_PKG_CONFIG" = x; then 4608 PKG_CONFIG="" 4609 else 4610 case $cross_compiling:$ac_tool_warned in 4611yes:) 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4614ac_tool_warned=yes ;; 4615esac 4616 PKG_CONFIG=$ac_pt_PKG_CONFIG 4617 fi 4618else 4619 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4620fi 4621 4622fi 4623if test -n "$PKG_CONFIG"; then 4624 _pkg_min_version=0.9.0 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4626$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4627 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4629$as_echo "yes" >&6; } 4630 else 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632$as_echo "no" >&6; } 4633 PKG_CONFIG="" 4634 fi 4635fi 4636# Make sure we can run config.sub. 4637$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4638 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4641$as_echo_n "checking build system type... " >&6; } 4642if ${ac_cv_build+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 ac_build_alias=$build_alias 4646test "x$ac_build_alias" = x && 4647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4648test "x$ac_build_alias" = x && 4649 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4650ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4652 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4655$as_echo "$ac_cv_build" >&6; } 4656case $ac_cv_build in 4657*-*-*) ;; 4658*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4659esac 4660build=$ac_cv_build 4661ac_save_IFS=$IFS; IFS='-' 4662set x $ac_cv_build 4663shift 4664build_cpu=$1 4665build_vendor=$2 4666shift; shift 4667# Remember, the first character of IFS is used to create $*, 4668# except with old shells: 4669build_os=$* 4670IFS=$ac_save_IFS 4671case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4672 4673 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4675$as_echo_n "checking host system type... " >&6; } 4676if ${ac_cv_host+:} false; then : 4677 $as_echo_n "(cached) " >&6 4678else 4679 if test "x$host_alias" = x; then 4680 ac_cv_host=$ac_cv_build 4681else 4682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4684fi 4685 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4688$as_echo "$ac_cv_host" >&6; } 4689case $ac_cv_host in 4690*-*-*) ;; 4691*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4692esac 4693host=$ac_cv_host 4694ac_save_IFS=$IFS; IFS='-' 4695set x $ac_cv_host 4696shift 4697host_cpu=$1 4698host_vendor=$2 4699shift; shift 4700# Remember, the first character of IFS is used to create $*, 4701# except with old shells: 4702host_os=$* 4703IFS=$ac_save_IFS 4704case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4705 4706 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4708$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4709if ${ac_cv_path_SED+:} false; then : 4710 $as_echo_n "(cached) " >&6 4711else 4712 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4713 for ac_i in 1 2 3 4 5 6 7; do 4714 ac_script="$ac_script$as_nl$ac_script" 4715 done 4716 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4717 { ac_script=; unset ac_script;} 4718 if test -z "$SED"; then 4719 ac_path_SED_found=false 4720 # Loop through the user's path and test for each of PROGNAME-LIST 4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4722for as_dir in $PATH 4723do 4724 IFS=$as_save_IFS 4725 test -z "$as_dir" && as_dir=. 4726 for ac_prog in sed gsed; do 4727 for ac_exec_ext in '' $ac_executable_extensions; do 4728 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4729 as_fn_executable_p "$ac_path_SED" || continue 4730# Check for GNU ac_path_SED and select it if it is found. 4731 # Check for GNU $ac_path_SED 4732case `"$ac_path_SED" --version 2>&1` in 4733*GNU*) 4734 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4735*) 4736 ac_count=0 4737 $as_echo_n 0123456789 >"conftest.in" 4738 while : 4739 do 4740 cat "conftest.in" "conftest.in" >"conftest.tmp" 4741 mv "conftest.tmp" "conftest.in" 4742 cp "conftest.in" "conftest.nl" 4743 $as_echo '' >> "conftest.nl" 4744 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4746 as_fn_arith $ac_count + 1 && ac_count=$as_val 4747 if test $ac_count -gt ${ac_path_SED_max-0}; then 4748 # Best one so far, save it but keep looking for a better one 4749 ac_cv_path_SED="$ac_path_SED" 4750 ac_path_SED_max=$ac_count 4751 fi 4752 # 10*(2^10) chars as input seems more than enough 4753 test $ac_count -gt 10 && break 4754 done 4755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4756esac 4757 4758 $ac_path_SED_found && break 3 4759 done 4760 done 4761 done 4762IFS=$as_save_IFS 4763 if test -z "$ac_cv_path_SED"; then 4764 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4765 fi 4766else 4767 ac_cv_path_SED=$SED 4768fi 4769 4770fi 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4772$as_echo "$ac_cv_path_SED" >&6; } 4773 SED="$ac_cv_path_SED" 4774 rm -f conftest.sed 4775 4776 4777 4778 4779 4780 4781# Check whether --enable-selective-werror was given. 4782if test "${enable_selective_werror+set}" = set; then : 4783 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4784else 4785 SELECTIVE_WERROR=yes 4786fi 4787 4788 4789 4790 4791 4792# -v is too short to test reliably with XORG_TESTSET_CFLAG 4793if test "x$SUNCC" = "xyes"; then 4794 BASE_CFLAGS="-v" 4795else 4796 BASE_CFLAGS="" 4797fi 4798 4799# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813xorg_testset_save_CFLAGS="$CFLAGS" 4814 4815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4823/* end confdefs.h. */ 4824int i; 4825_ACEOF 4826if ac_fn_c_try_compile "$LINENO"; then : 4827 xorg_cv_cc_flag_unknown_warning_option=yes 4828else 4829 xorg_cv_cc_flag_unknown_warning_option=no 4830fi 4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4836 CFLAGS="$xorg_testset_save_CFLAGS" 4837fi 4838 4839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4842 fi 4843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851int i; 4852_ACEOF 4853if ac_fn_c_try_compile "$LINENO"; then : 4854 xorg_cv_cc_flag_unused_command_line_argument=yes 4855else 4856 xorg_cv_cc_flag_unused_command_line_argument=no 4857fi 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859fi 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4863 CFLAGS="$xorg_testset_save_CFLAGS" 4864fi 4865 4866found="no" 4867 4868 if test $found = "no" ; then 4869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4871 fi 4872 4873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4875 fi 4876 4877 CFLAGS="$CFLAGS -Wall" 4878 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4880$as_echo_n "checking if $CC supports -Wall... " >&6; } 4881 cacheid=xorg_cv_cc_flag__Wall 4882 if eval \${$cacheid+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887int i; 4888int 4889main () 4890{ 4891 4892 ; 4893 return 0; 4894} 4895_ACEOF 4896if ac_fn_c_try_link "$LINENO"; then : 4897 eval $cacheid=yes 4898else 4899 eval $cacheid=no 4900fi 4901rm -f core conftest.err conftest.$ac_objext \ 4902 conftest$ac_exeext conftest.$ac_ext 4903fi 4904 4905 4906 CFLAGS="$xorg_testset_save_CFLAGS" 4907 4908 eval supported=\$$cacheid 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4910$as_echo "$supported" >&6; } 4911 if test "$supported" = "yes" ; then 4912 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4913 found="yes" 4914 fi 4915 fi 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931xorg_testset_save_CFLAGS="$CFLAGS" 4932 4933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942int i; 4943_ACEOF 4944if ac_fn_c_try_compile "$LINENO"; then : 4945 xorg_cv_cc_flag_unknown_warning_option=yes 4946else 4947 xorg_cv_cc_flag_unknown_warning_option=no 4948fi 4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4950fi 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4954 CFLAGS="$xorg_testset_save_CFLAGS" 4955fi 4956 4957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4960 fi 4961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968/* end confdefs.h. */ 4969int i; 4970_ACEOF 4971if ac_fn_c_try_compile "$LINENO"; then : 4972 xorg_cv_cc_flag_unused_command_line_argument=yes 4973else 4974 xorg_cv_cc_flag_unused_command_line_argument=no 4975fi 4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4977fi 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4981 CFLAGS="$xorg_testset_save_CFLAGS" 4982fi 4983 4984found="no" 4985 4986 if test $found = "no" ; then 4987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4989 fi 4990 4991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4993 fi 4994 4995 CFLAGS="$CFLAGS -Wpointer-arith" 4996 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4998$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4999 cacheid=xorg_cv_cc_flag__Wpointer_arith 5000 if eval \${$cacheid+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005int i; 5006int 5007main () 5008{ 5009 5010 ; 5011 return 0; 5012} 5013_ACEOF 5014if ac_fn_c_try_link "$LINENO"; then : 5015 eval $cacheid=yes 5016else 5017 eval $cacheid=no 5018fi 5019rm -f core conftest.err conftest.$ac_objext \ 5020 conftest$ac_exeext conftest.$ac_ext 5021fi 5022 5023 5024 CFLAGS="$xorg_testset_save_CFLAGS" 5025 5026 eval supported=\$$cacheid 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5028$as_echo "$supported" >&6; } 5029 if test "$supported" = "yes" ; then 5030 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5031 found="yes" 5032 fi 5033 fi 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049xorg_testset_save_CFLAGS="$CFLAGS" 5050 5051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059/* end confdefs.h. */ 5060int i; 5061_ACEOF 5062if ac_fn_c_try_compile "$LINENO"; then : 5063 xorg_cv_cc_flag_unknown_warning_option=yes 5064else 5065 xorg_cv_cc_flag_unknown_warning_option=no 5066fi 5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5068fi 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5072 CFLAGS="$xorg_testset_save_CFLAGS" 5073fi 5074 5075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5078 fi 5079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087int i; 5088_ACEOF 5089if ac_fn_c_try_compile "$LINENO"; then : 5090 xorg_cv_cc_flag_unused_command_line_argument=yes 5091else 5092 xorg_cv_cc_flag_unused_command_line_argument=no 5093fi 5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5095fi 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5099 CFLAGS="$xorg_testset_save_CFLAGS" 5100fi 5101 5102found="no" 5103 5104 if test $found = "no" ; then 5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107 fi 5108 5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5111 fi 5112 5113 CFLAGS="$CFLAGS -Wmissing-declarations" 5114 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5116$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5117 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5118 if eval \${$cacheid+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123int i; 5124int 5125main () 5126{ 5127 5128 ; 5129 return 0; 5130} 5131_ACEOF 5132if ac_fn_c_try_link "$LINENO"; then : 5133 eval $cacheid=yes 5134else 5135 eval $cacheid=no 5136fi 5137rm -f core conftest.err conftest.$ac_objext \ 5138 conftest$ac_exeext conftest.$ac_ext 5139fi 5140 5141 5142 CFLAGS="$xorg_testset_save_CFLAGS" 5143 5144 eval supported=\$$cacheid 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5146$as_echo "$supported" >&6; } 5147 if test "$supported" = "yes" ; then 5148 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5149 found="yes" 5150 fi 5151 fi 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167xorg_testset_save_CFLAGS="$CFLAGS" 5168 5169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178int i; 5179_ACEOF 5180if ac_fn_c_try_compile "$LINENO"; then : 5181 xorg_cv_cc_flag_unknown_warning_option=yes 5182else 5183 xorg_cv_cc_flag_unknown_warning_option=no 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186fi 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5190 CFLAGS="$xorg_testset_save_CFLAGS" 5191fi 5192 5193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5196 fi 5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205int i; 5206_ACEOF 5207if ac_fn_c_try_compile "$LINENO"; then : 5208 xorg_cv_cc_flag_unused_command_line_argument=yes 5209else 5210 xorg_cv_cc_flag_unused_command_line_argument=no 5211fi 5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5213fi 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5217 CFLAGS="$xorg_testset_save_CFLAGS" 5218fi 5219 5220found="no" 5221 5222 if test $found = "no" ; then 5223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5225 fi 5226 5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5229 fi 5230 5231 CFLAGS="$CFLAGS -Wformat=2" 5232 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5234$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5235 cacheid=xorg_cv_cc_flag__Wformat_2 5236 if eval \${$cacheid+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241int i; 5242int 5243main () 5244{ 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250if ac_fn_c_try_link "$LINENO"; then : 5251 eval $cacheid=yes 5252else 5253 eval $cacheid=no 5254fi 5255rm -f core conftest.err conftest.$ac_objext \ 5256 conftest$ac_exeext conftest.$ac_ext 5257fi 5258 5259 5260 CFLAGS="$xorg_testset_save_CFLAGS" 5261 5262 eval supported=\$$cacheid 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5264$as_echo "$supported" >&6; } 5265 if test "$supported" = "yes" ; then 5266 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5267 found="yes" 5268 fi 5269 fi 5270 5271 if test $found = "no" ; then 5272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5274 fi 5275 5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5278 fi 5279 5280 CFLAGS="$CFLAGS -Wformat" 5281 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5283$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5284 cacheid=xorg_cv_cc_flag__Wformat 5285 if eval \${$cacheid+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290int i; 5291int 5292main () 5293{ 5294 5295 ; 5296 return 0; 5297} 5298_ACEOF 5299if ac_fn_c_try_link "$LINENO"; then : 5300 eval $cacheid=yes 5301else 5302 eval $cacheid=no 5303fi 5304rm -f core conftest.err conftest.$ac_objext \ 5305 conftest$ac_exeext conftest.$ac_ext 5306fi 5307 5308 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310 5311 eval supported=\$$cacheid 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5313$as_echo "$supported" >&6; } 5314 if test "$supported" = "yes" ; then 5315 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5316 found="yes" 5317 fi 5318 fi 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336xorg_testset_save_CFLAGS="$CFLAGS" 5337 5338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5343 $as_echo_n "(cached) " >&6 5344else 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346/* end confdefs.h. */ 5347int i; 5348_ACEOF 5349if ac_fn_c_try_compile "$LINENO"; then : 5350 xorg_cv_cc_flag_unknown_warning_option=yes 5351else 5352 xorg_cv_cc_flag_unknown_warning_option=no 5353fi 5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5359 CFLAGS="$xorg_testset_save_CFLAGS" 5360fi 5361 5362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 fi 5366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373/* end confdefs.h. */ 5374int i; 5375_ACEOF 5376if ac_fn_c_try_compile "$LINENO"; then : 5377 xorg_cv_cc_flag_unused_command_line_argument=yes 5378else 5379 xorg_cv_cc_flag_unused_command_line_argument=no 5380fi 5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5382fi 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5386 CFLAGS="$xorg_testset_save_CFLAGS" 5387fi 5388 5389found="no" 5390 5391 if test $found = "no" ; then 5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5394 fi 5395 5396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5398 fi 5399 5400 CFLAGS="$CFLAGS -Wstrict-prototypes" 5401 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5403$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5404 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5405 if eval \${$cacheid+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5409/* end confdefs.h. */ 5410int i; 5411int 5412main () 5413{ 5414 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419if ac_fn_c_try_link "$LINENO"; then : 5420 eval $cacheid=yes 5421else 5422 eval $cacheid=no 5423fi 5424rm -f core conftest.err conftest.$ac_objext \ 5425 conftest$ac_exeext conftest.$ac_ext 5426fi 5427 5428 5429 CFLAGS="$xorg_testset_save_CFLAGS" 5430 5431 eval supported=\$$cacheid 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5433$as_echo "$supported" >&6; } 5434 if test "$supported" = "yes" ; then 5435 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5436 found="yes" 5437 fi 5438 fi 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454xorg_testset_save_CFLAGS="$CFLAGS" 5455 5456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465int i; 5466_ACEOF 5467if ac_fn_c_try_compile "$LINENO"; then : 5468 xorg_cv_cc_flag_unknown_warning_option=yes 5469else 5470 xorg_cv_cc_flag_unknown_warning_option=no 5471fi 5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5477 CFLAGS="$xorg_testset_save_CFLAGS" 5478fi 5479 5480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5483 fi 5484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492int i; 5493_ACEOF 5494if ac_fn_c_try_compile "$LINENO"; then : 5495 xorg_cv_cc_flag_unused_command_line_argument=yes 5496else 5497 xorg_cv_cc_flag_unused_command_line_argument=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5500fi 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505fi 5506 5507found="no" 5508 5509 if test $found = "no" ; then 5510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5512 fi 5513 5514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5516 fi 5517 5518 CFLAGS="$CFLAGS -Wmissing-prototypes" 5519 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5521$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5522 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5523 if eval \${$cacheid+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5527/* end confdefs.h. */ 5528int i; 5529int 5530main () 5531{ 5532 5533 ; 5534 return 0; 5535} 5536_ACEOF 5537if ac_fn_c_try_link "$LINENO"; then : 5538 eval $cacheid=yes 5539else 5540 eval $cacheid=no 5541fi 5542rm -f core conftest.err conftest.$ac_objext \ 5543 conftest$ac_exeext conftest.$ac_ext 5544fi 5545 5546 5547 CFLAGS="$xorg_testset_save_CFLAGS" 5548 5549 eval supported=\$$cacheid 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5551$as_echo "$supported" >&6; } 5552 if test "$supported" = "yes" ; then 5553 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5554 found="yes" 5555 fi 5556 fi 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572xorg_testset_save_CFLAGS="$CFLAGS" 5573 5574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582/* end confdefs.h. */ 5583int i; 5584_ACEOF 5585if ac_fn_c_try_compile "$LINENO"; then : 5586 xorg_cv_cc_flag_unknown_warning_option=yes 5587else 5588 xorg_cv_cc_flag_unknown_warning_option=no 5589fi 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5591fi 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5595 CFLAGS="$xorg_testset_save_CFLAGS" 5596fi 5597 5598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 fi 5602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610int i; 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO"; then : 5613 xorg_cv_cc_flag_unused_command_line_argument=yes 5614else 5615 xorg_cv_cc_flag_unused_command_line_argument=no 5616fi 5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623fi 5624 5625found="no" 5626 5627 if test $found = "no" ; then 5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 fi 5631 5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5634 fi 5635 5636 CFLAGS="$CFLAGS -Wnested-externs" 5637 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5639$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5640 cacheid=xorg_cv_cc_flag__Wnested_externs 5641 if eval \${$cacheid+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645/* end confdefs.h. */ 5646int i; 5647int 5648main () 5649{ 5650 5651 ; 5652 return 0; 5653} 5654_ACEOF 5655if ac_fn_c_try_link "$LINENO"; then : 5656 eval $cacheid=yes 5657else 5658 eval $cacheid=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext \ 5661 conftest$ac_exeext conftest.$ac_ext 5662fi 5663 5664 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666 5667 eval supported=\$$cacheid 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5669$as_echo "$supported" >&6; } 5670 if test "$supported" = "yes" ; then 5671 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5672 found="yes" 5673 fi 5674 fi 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690xorg_testset_save_CFLAGS="$CFLAGS" 5691 5692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5697 $as_echo_n "(cached) " >&6 5698else 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701int i; 5702_ACEOF 5703if ac_fn_c_try_compile "$LINENO"; then : 5704 xorg_cv_cc_flag_unknown_warning_option=yes 5705else 5706 xorg_cv_cc_flag_unknown_warning_option=no 5707fi 5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5709fi 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5713 CFLAGS="$xorg_testset_save_CFLAGS" 5714fi 5715 5716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5719 fi 5720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5724 $as_echo_n "(cached) " >&6 5725else 5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5727/* end confdefs.h. */ 5728int i; 5729_ACEOF 5730if ac_fn_c_try_compile "$LINENO"; then : 5731 xorg_cv_cc_flag_unused_command_line_argument=yes 5732else 5733 xorg_cv_cc_flag_unused_command_line_argument=no 5734fi 5735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5736fi 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5740 CFLAGS="$xorg_testset_save_CFLAGS" 5741fi 5742 5743found="no" 5744 5745 if test $found = "no" ; then 5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5748 fi 5749 5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5752 fi 5753 5754 CFLAGS="$CFLAGS -Wbad-function-cast" 5755 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5757$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5758 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5759 if eval \${$cacheid+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763/* end confdefs.h. */ 5764int i; 5765int 5766main () 5767{ 5768 5769 ; 5770 return 0; 5771} 5772_ACEOF 5773if ac_fn_c_try_link "$LINENO"; then : 5774 eval $cacheid=yes 5775else 5776 eval $cacheid=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext \ 5779 conftest$ac_exeext conftest.$ac_ext 5780fi 5781 5782 5783 CFLAGS="$xorg_testset_save_CFLAGS" 5784 5785 eval supported=\$$cacheid 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5787$as_echo "$supported" >&6; } 5788 if test "$supported" = "yes" ; then 5789 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5790 found="yes" 5791 fi 5792 fi 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808xorg_testset_save_CFLAGS="$CFLAGS" 5809 5810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819int i; 5820_ACEOF 5821if ac_fn_c_try_compile "$LINENO"; then : 5822 xorg_cv_cc_flag_unknown_warning_option=yes 5823else 5824 xorg_cv_cc_flag_unknown_warning_option=no 5825fi 5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5831 CFLAGS="$xorg_testset_save_CFLAGS" 5832fi 5833 5834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 fi 5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO"; then : 5849 xorg_cv_cc_flag_unused_command_line_argument=yes 5850else 5851 xorg_cv_cc_flag_unused_command_line_argument=no 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859fi 5860 5861found="no" 5862 5863 if test $found = "no" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5870 fi 5871 5872 CFLAGS="$CFLAGS -Wold-style-definition" 5873 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5875$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5876 cacheid=xorg_cv_cc_flag__Wold_style_definition 5877 if eval \${$cacheid+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5881/* end confdefs.h. */ 5882int i; 5883int 5884main () 5885{ 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891if ac_fn_c_try_link "$LINENO"; then : 5892 eval $cacheid=yes 5893else 5894 eval $cacheid=no 5895fi 5896rm -f core conftest.err conftest.$ac_objext \ 5897 conftest$ac_exeext conftest.$ac_ext 5898fi 5899 5900 5901 CFLAGS="$xorg_testset_save_CFLAGS" 5902 5903 eval supported=\$$cacheid 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5905$as_echo "$supported" >&6; } 5906 if test "$supported" = "yes" ; then 5907 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5908 found="yes" 5909 fi 5910 fi 5911 5912 if test $found = "no" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5919 fi 5920 5921 CFLAGS="$CFLAGS -fd" 5922 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5924$as_echo_n "checking if $CC supports -fd... " >&6; } 5925 cacheid=xorg_cv_cc_flag__fd 5926 if eval \${$cacheid+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930/* end confdefs.h. */ 5931int i; 5932int 5933main () 5934{ 5935 5936 ; 5937 return 0; 5938} 5939_ACEOF 5940if ac_fn_c_try_link "$LINENO"; then : 5941 eval $cacheid=yes 5942else 5943 eval $cacheid=no 5944fi 5945rm -f core conftest.err conftest.$ac_objext \ 5946 conftest$ac_exeext conftest.$ac_ext 5947fi 5948 5949 5950 CFLAGS="$xorg_testset_save_CFLAGS" 5951 5952 eval supported=\$$cacheid 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5954$as_echo "$supported" >&6; } 5955 if test "$supported" = "yes" ; then 5956 BASE_CFLAGS="$BASE_CFLAGS -fd" 5957 found="yes" 5958 fi 5959 fi 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975xorg_testset_save_CFLAGS="$CFLAGS" 5976 5977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5985/* end confdefs.h. */ 5986int i; 5987_ACEOF 5988if ac_fn_c_try_compile "$LINENO"; then : 5989 xorg_cv_cc_flag_unknown_warning_option=yes 5990else 5991 xorg_cv_cc_flag_unknown_warning_option=no 5992fi 5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5994fi 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5998 CFLAGS="$xorg_testset_save_CFLAGS" 5999fi 6000 6001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6004 fi 6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012/* end confdefs.h. */ 6013int i; 6014_ACEOF 6015if ac_fn_c_try_compile "$LINENO"; then : 6016 xorg_cv_cc_flag_unused_command_line_argument=yes 6017else 6018 xorg_cv_cc_flag_unused_command_line_argument=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6021fi 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026fi 6027 6028found="no" 6029 6030 if test $found = "no" ; then 6031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6033 fi 6034 6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6037 fi 6038 6039 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6040 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6042$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6043 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6044 if eval \${$cacheid+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6048/* end confdefs.h. */ 6049int i; 6050int 6051main () 6052{ 6053 6054 ; 6055 return 0; 6056} 6057_ACEOF 6058if ac_fn_c_try_link "$LINENO"; then : 6059 eval $cacheid=yes 6060else 6061 eval $cacheid=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext \ 6064 conftest$ac_exeext conftest.$ac_ext 6065fi 6066 6067 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069 6070 eval supported=\$$cacheid 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6072$as_echo "$supported" >&6; } 6073 if test "$supported" = "yes" ; then 6074 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6075 found="yes" 6076 fi 6077 fi 6078 6079 6080 6081 6082 6083# This chunk adds additional warnings that could catch undesired effects. 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097xorg_testset_save_CFLAGS="$CFLAGS" 6098 6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6107/* end confdefs.h. */ 6108int i; 6109_ACEOF 6110if ac_fn_c_try_compile "$LINENO"; then : 6111 xorg_cv_cc_flag_unknown_warning_option=yes 6112else 6113 xorg_cv_cc_flag_unknown_warning_option=no 6114fi 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6116fi 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121fi 6122 6123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6126 fi 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135int i; 6136_ACEOF 6137if ac_fn_c_try_compile "$LINENO"; then : 6138 xorg_cv_cc_flag_unused_command_line_argument=yes 6139else 6140 xorg_cv_cc_flag_unused_command_line_argument=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6143fi 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148fi 6149 6150found="no" 6151 6152 if test $found = "no" ; then 6153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6155 fi 6156 6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6159 fi 6160 6161 CFLAGS="$CFLAGS -Wunused" 6162 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6164$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6165 cacheid=xorg_cv_cc_flag__Wunused 6166 if eval \${$cacheid+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172int 6173main () 6174{ 6175 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180if ac_fn_c_try_link "$LINENO"; then : 6181 eval $cacheid=yes 6182else 6183 eval $cacheid=no 6184fi 6185rm -f core conftest.err conftest.$ac_objext \ 6186 conftest$ac_exeext conftest.$ac_ext 6187fi 6188 6189 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191 6192 eval supported=\$$cacheid 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194$as_echo "$supported" >&6; } 6195 if test "$supported" = "yes" ; then 6196 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6197 found="yes" 6198 fi 6199 fi 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215xorg_testset_save_CFLAGS="$CFLAGS" 6216 6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226int i; 6227_ACEOF 6228if ac_fn_c_try_compile "$LINENO"; then : 6229 xorg_cv_cc_flag_unknown_warning_option=yes 6230else 6231 xorg_cv_cc_flag_unknown_warning_option=no 6232fi 6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6234fi 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6238 CFLAGS="$xorg_testset_save_CFLAGS" 6239fi 6240 6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6244 fi 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254_ACEOF 6255if ac_fn_c_try_compile "$LINENO"; then : 6256 xorg_cv_cc_flag_unused_command_line_argument=yes 6257else 6258 xorg_cv_cc_flag_unused_command_line_argument=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6261fi 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266fi 6267 6268found="no" 6269 6270 if test $found = "no" ; then 6271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6273 fi 6274 6275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6277 fi 6278 6279 CFLAGS="$CFLAGS -Wuninitialized" 6280 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6282$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6283 cacheid=xorg_cv_cc_flag__Wuninitialized 6284 if eval \${$cacheid+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6288/* end confdefs.h. */ 6289int i; 6290int 6291main () 6292{ 6293 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298if ac_fn_c_try_link "$LINENO"; then : 6299 eval $cacheid=yes 6300else 6301 eval $cacheid=no 6302fi 6303rm -f core conftest.err conftest.$ac_objext \ 6304 conftest$ac_exeext conftest.$ac_ext 6305fi 6306 6307 6308 CFLAGS="$xorg_testset_save_CFLAGS" 6309 6310 eval supported=\$$cacheid 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6312$as_echo "$supported" >&6; } 6313 if test "$supported" = "yes" ; then 6314 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6315 found="yes" 6316 fi 6317 fi 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333xorg_testset_save_CFLAGS="$CFLAGS" 6334 6335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344int i; 6345_ACEOF 6346if ac_fn_c_try_compile "$LINENO"; then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348else 6349 xorg_cv_cc_flag_unknown_warning_option=no 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6352fi 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6356 CFLAGS="$xorg_testset_save_CFLAGS" 6357fi 6358 6359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 fi 6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int i; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 xorg_cv_cc_flag_unused_command_line_argument=yes 6375else 6376 xorg_cv_cc_flag_unused_command_line_argument=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379fi 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384fi 6385 6386found="no" 6387 6388 if test $found = "no" ; then 6389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6391 fi 6392 6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6395 fi 6396 6397 CFLAGS="$CFLAGS -Wshadow" 6398 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6400$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6401 cacheid=xorg_cv_cc_flag__Wshadow 6402 if eval \${$cacheid+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407int i; 6408int 6409main () 6410{ 6411 6412 ; 6413 return 0; 6414} 6415_ACEOF 6416if ac_fn_c_try_link "$LINENO"; then : 6417 eval $cacheid=yes 6418else 6419 eval $cacheid=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext \ 6422 conftest$ac_exeext conftest.$ac_ext 6423fi 6424 6425 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427 6428 eval supported=\$$cacheid 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6430$as_echo "$supported" >&6; } 6431 if test "$supported" = "yes" ; then 6432 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6433 found="yes" 6434 fi 6435 fi 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451xorg_testset_save_CFLAGS="$CFLAGS" 6452 6453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462int i; 6463_ACEOF 6464if ac_fn_c_try_compile "$LINENO"; then : 6465 xorg_cv_cc_flag_unknown_warning_option=yes 6466else 6467 xorg_cv_cc_flag_unknown_warning_option=no 6468fi 6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6470fi 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6474 CFLAGS="$xorg_testset_save_CFLAGS" 6475fi 6476 6477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6480 fi 6481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489int i; 6490_ACEOF 6491if ac_fn_c_try_compile "$LINENO"; then : 6492 xorg_cv_cc_flag_unused_command_line_argument=yes 6493else 6494 xorg_cv_cc_flag_unused_command_line_argument=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502fi 6503 6504found="no" 6505 6506 if test $found = "no" ; then 6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 fi 6510 6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6513 fi 6514 6515 CFLAGS="$CFLAGS -Wmissing-noreturn" 6516 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6518$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6519 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6520 if eval \${$cacheid+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526int 6527main () 6528{ 6529 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534if ac_fn_c_try_link "$LINENO"; then : 6535 eval $cacheid=yes 6536else 6537 eval $cacheid=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext \ 6540 conftest$ac_exeext conftest.$ac_ext 6541fi 6542 6543 6544 CFLAGS="$xorg_testset_save_CFLAGS" 6545 6546 eval supported=\$$cacheid 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6548$as_echo "$supported" >&6; } 6549 if test "$supported" = "yes" ; then 6550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6551 found="yes" 6552 fi 6553 fi 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569xorg_testset_save_CFLAGS="$CFLAGS" 6570 6571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581_ACEOF 6582if ac_fn_c_try_compile "$LINENO"; then : 6583 xorg_cv_cc_flag_unknown_warning_option=yes 6584else 6585 xorg_cv_cc_flag_unknown_warning_option=no 6586fi 6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6588fi 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6592 CFLAGS="$xorg_testset_save_CFLAGS" 6593fi 6594 6595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598 fi 6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO"; then : 6610 xorg_cv_cc_flag_unused_command_line_argument=yes 6611else 6612 xorg_cv_cc_flag_unused_command_line_argument=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6615fi 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622found="no" 6623 6624 if test $found = "no" ; then 6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6631 fi 6632 6633 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6634 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6636$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6637 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6638 if eval \${$cacheid+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643int i; 6644int 6645main () 6646{ 6647 6648 ; 6649 return 0; 6650} 6651_ACEOF 6652if ac_fn_c_try_link "$LINENO"; then : 6653 eval $cacheid=yes 6654else 6655 eval $cacheid=no 6656fi 6657rm -f core conftest.err conftest.$ac_objext \ 6658 conftest$ac_exeext conftest.$ac_ext 6659fi 6660 6661 6662 CFLAGS="$xorg_testset_save_CFLAGS" 6663 6664 eval supported=\$$cacheid 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6666$as_echo "$supported" >&6; } 6667 if test "$supported" = "yes" ; then 6668 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6669 found="yes" 6670 fi 6671 fi 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687xorg_testset_save_CFLAGS="$CFLAGS" 6688 6689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698int i; 6699_ACEOF 6700if ac_fn_c_try_compile "$LINENO"; then : 6701 xorg_cv_cc_flag_unknown_warning_option=yes 6702else 6703 xorg_cv_cc_flag_unknown_warning_option=no 6704fi 6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6706fi 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6710 CFLAGS="$xorg_testset_save_CFLAGS" 6711fi 6712 6713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6716 fi 6717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724/* end confdefs.h. */ 6725int i; 6726_ACEOF 6727if ac_fn_c_try_compile "$LINENO"; then : 6728 xorg_cv_cc_flag_unused_command_line_argument=yes 6729else 6730 xorg_cv_cc_flag_unused_command_line_argument=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6733fi 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738fi 6739 6740found="no" 6741 6742 if test $found = "no" ; then 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 fi 6750 6751 CFLAGS="$CFLAGS -Wredundant-decls" 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6754$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6755 cacheid=xorg_cv_cc_flag__Wredundant_decls 6756 if eval \${$cacheid+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761int i; 6762int 6763main () 6764{ 6765 6766 ; 6767 return 0; 6768} 6769_ACEOF 6770if ac_fn_c_try_link "$LINENO"; then : 6771 eval $cacheid=yes 6772else 6773 eval $cacheid=no 6774fi 6775rm -f core conftest.err conftest.$ac_objext \ 6776 conftest$ac_exeext conftest.$ac_ext 6777fi 6778 6779 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781 6782 eval supported=\$$cacheid 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6784$as_echo "$supported" >&6; } 6785 if test "$supported" = "yes" ; then 6786 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6787 found="yes" 6788 fi 6789 fi 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805xorg_testset_save_CFLAGS="$CFLAGS" 6806 6807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO"; then : 6819 xorg_cv_cc_flag_unknown_warning_option=yes 6820else 6821 xorg_cv_cc_flag_unknown_warning_option=no 6822fi 6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6824fi 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6828 CFLAGS="$xorg_testset_save_CFLAGS" 6829fi 6830 6831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6834 fi 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO"; then : 6846 xorg_cv_cc_flag_unused_command_line_argument=yes 6847else 6848 xorg_cv_cc_flag_unused_command_line_argument=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858found="no" 6859 6860 if test $found = "no" ; then 6861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6863 fi 6864 6865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6867 fi 6868 6869 CFLAGS="$CFLAGS -Wlogical-op" 6870 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6872$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6873 cacheid=xorg_cv_cc_flag__Wlogical_op 6874 if eval \${$cacheid+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6878/* end confdefs.h. */ 6879int i; 6880int 6881main () 6882{ 6883 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888if ac_fn_c_try_link "$LINENO"; then : 6889 eval $cacheid=yes 6890else 6891 eval $cacheid=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext \ 6894 conftest$ac_exeext conftest.$ac_ext 6895fi 6896 6897 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 6900 eval supported=\$$cacheid 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6902$as_echo "$supported" >&6; } 6903 if test "$supported" = "yes" ; then 6904 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6905 found="yes" 6906 fi 6907 fi 6908 6909 6910 6911# These are currently disabled because they are noisy. They will be enabled 6912# in the future once the codebase is sufficiently modernized to silence 6913# them. For now, I don't want them to drown out the other warnings. 6914# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6915# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6916# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6917 6918# Turn some warnings into errors, so we don't accidently get successful builds 6919# when there are problems that should be fixed. 6920 6921if test "x$SELECTIVE_WERROR" = "xyes" ; then 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935xorg_testset_save_CFLAGS="$CFLAGS" 6936 6937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO"; then : 6949 xorg_cv_cc_flag_unknown_warning_option=yes 6950else 6951 xorg_cv_cc_flag_unknown_warning_option=no 6952fi 6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6954fi 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6958 CFLAGS="$xorg_testset_save_CFLAGS" 6959fi 6960 6961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 fi 6965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973int i; 6974_ACEOF 6975if ac_fn_c_try_compile "$LINENO"; then : 6976 xorg_cv_cc_flag_unused_command_line_argument=yes 6977else 6978 xorg_cv_cc_flag_unused_command_line_argument=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6981fi 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Werror=implicit" 7000 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7002$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Werror_implicit 7004 if eval \${$cacheid+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009int i; 7010int 7011main () 7012{ 7013 7014 ; 7015 return 0; 7016} 7017_ACEOF 7018if ac_fn_c_try_link "$LINENO"; then : 7019 eval $cacheid=yes 7020else 7021 eval $cacheid=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext \ 7024 conftest$ac_exeext conftest.$ac_ext 7025fi 7026 7027 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029 7030 eval supported=\$$cacheid 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7032$as_echo "$supported" >&6; } 7033 if test "$supported" = "yes" ; then 7034 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7035 found="yes" 7036 fi 7037 fi 7038 7039 if test $found = "no" ; then 7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 fi 7043 7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7046 fi 7047 7048 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7049 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7051$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7052 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7053 if eval \${$cacheid+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059int 7060main () 7061{ 7062 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067if ac_fn_c_try_link "$LINENO"; then : 7068 eval $cacheid=yes 7069else 7070 eval $cacheid=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext \ 7073 conftest$ac_exeext conftest.$ac_ext 7074fi 7075 7076 7077 CFLAGS="$xorg_testset_save_CFLAGS" 7078 7079 eval supported=\$$cacheid 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7081$as_echo "$supported" >&6; } 7082 if test "$supported" = "yes" ; then 7083 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7084 found="yes" 7085 fi 7086 fi 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102xorg_testset_save_CFLAGS="$CFLAGS" 7103 7104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112/* end confdefs.h. */ 7113int i; 7114_ACEOF 7115if ac_fn_c_try_compile "$LINENO"; then : 7116 xorg_cv_cc_flag_unknown_warning_option=yes 7117else 7118 xorg_cv_cc_flag_unknown_warning_option=no 7119fi 7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7121fi 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7125 CFLAGS="$xorg_testset_save_CFLAGS" 7126fi 7127 7128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7131 fi 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141_ACEOF 7142if ac_fn_c_try_compile "$LINENO"; then : 7143 xorg_cv_cc_flag_unused_command_line_argument=yes 7144else 7145 xorg_cv_cc_flag_unused_command_line_argument=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153fi 7154 7155found="no" 7156 7157 if test $found = "no" ; then 7158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7160 fi 7161 7162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7164 fi 7165 7166 CFLAGS="$CFLAGS -Werror=nonnull" 7167 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7169$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7170 cacheid=xorg_cv_cc_flag__Werror_nonnull 7171 if eval \${$cacheid+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176int i; 7177int 7178main () 7179{ 7180 7181 ; 7182 return 0; 7183} 7184_ACEOF 7185if ac_fn_c_try_link "$LINENO"; then : 7186 eval $cacheid=yes 7187else 7188 eval $cacheid=no 7189fi 7190rm -f core conftest.err conftest.$ac_objext \ 7191 conftest$ac_exeext conftest.$ac_ext 7192fi 7193 7194 7195 CFLAGS="$xorg_testset_save_CFLAGS" 7196 7197 eval supported=\$$cacheid 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7199$as_echo "$supported" >&6; } 7200 if test "$supported" = "yes" ; then 7201 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7202 found="yes" 7203 fi 7204 fi 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220xorg_testset_save_CFLAGS="$CFLAGS" 7221 7222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7230/* end confdefs.h. */ 7231int i; 7232_ACEOF 7233if ac_fn_c_try_compile "$LINENO"; then : 7234 xorg_cv_cc_flag_unknown_warning_option=yes 7235else 7236 xorg_cv_cc_flag_unknown_warning_option=no 7237fi 7238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244fi 7245 7246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 fi 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257/* end confdefs.h. */ 7258int i; 7259_ACEOF 7260if ac_fn_c_try_compile "$LINENO"; then : 7261 xorg_cv_cc_flag_unused_command_line_argument=yes 7262else 7263 xorg_cv_cc_flag_unused_command_line_argument=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7266fi 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271fi 7272 7273found="no" 7274 7275 if test $found = "no" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 fi 7283 7284 CFLAGS="$CFLAGS -Werror=init-self" 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7287$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7288 cacheid=xorg_cv_cc_flag__Werror_init_self 7289 if eval \${$cacheid+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294int i; 7295int 7296main () 7297{ 7298 7299 ; 7300 return 0; 7301} 7302_ACEOF 7303if ac_fn_c_try_link "$LINENO"; then : 7304 eval $cacheid=yes 7305else 7306 eval $cacheid=no 7307fi 7308rm -f core conftest.err conftest.$ac_objext \ 7309 conftest$ac_exeext conftest.$ac_ext 7310fi 7311 7312 7313 CFLAGS="$xorg_testset_save_CFLAGS" 7314 7315 eval supported=\$$cacheid 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7317$as_echo "$supported" >&6; } 7318 if test "$supported" = "yes" ; then 7319 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7320 found="yes" 7321 fi 7322 fi 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338xorg_testset_save_CFLAGS="$CFLAGS" 7339 7340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349int i; 7350_ACEOF 7351if ac_fn_c_try_compile "$LINENO"; then : 7352 xorg_cv_cc_flag_unknown_warning_option=yes 7353else 7354 xorg_cv_cc_flag_unknown_warning_option=no 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7357fi 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7361 CFLAGS="$xorg_testset_save_CFLAGS" 7362fi 7363 7364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7367 fi 7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376int i; 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO"; then : 7379 xorg_cv_cc_flag_unused_command_line_argument=yes 7380else 7381 xorg_cv_cc_flag_unused_command_line_argument=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384fi 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389fi 7390 7391found="no" 7392 7393 if test $found = "no" ; then 7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7396 fi 7397 7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7400 fi 7401 7402 CFLAGS="$CFLAGS -Werror=main" 7403 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7405$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7406 cacheid=xorg_cv_cc_flag__Werror_main 7407 if eval \${$cacheid+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411/* end confdefs.h. */ 7412int i; 7413int 7414main () 7415{ 7416 7417 ; 7418 return 0; 7419} 7420_ACEOF 7421if ac_fn_c_try_link "$LINENO"; then : 7422 eval $cacheid=yes 7423else 7424 eval $cacheid=no 7425fi 7426rm -f core conftest.err conftest.$ac_objext \ 7427 conftest$ac_exeext conftest.$ac_ext 7428fi 7429 7430 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432 7433 eval supported=\$$cacheid 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7435$as_echo "$supported" >&6; } 7436 if test "$supported" = "yes" ; then 7437 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7438 found="yes" 7439 fi 7440 fi 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456xorg_testset_save_CFLAGS="$CFLAGS" 7457 7458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467int i; 7468_ACEOF 7469if ac_fn_c_try_compile "$LINENO"; then : 7470 xorg_cv_cc_flag_unknown_warning_option=yes 7471else 7472 xorg_cv_cc_flag_unknown_warning_option=no 7473fi 7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7475fi 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7479 CFLAGS="$xorg_testset_save_CFLAGS" 7480fi 7481 7482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7485 fi 7486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7493/* end confdefs.h. */ 7494int i; 7495_ACEOF 7496if ac_fn_c_try_compile "$LINENO"; then : 7497 xorg_cv_cc_flag_unused_command_line_argument=yes 7498else 7499 xorg_cv_cc_flag_unused_command_line_argument=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507fi 7508 7509found="no" 7510 7511 if test $found = "no" ; then 7512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 fi 7515 7516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7518 fi 7519 7520 CFLAGS="$CFLAGS -Werror=missing-braces" 7521 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7523$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7524 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7525 if eval \${$cacheid+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530int i; 7531int 7532main () 7533{ 7534 7535 ; 7536 return 0; 7537} 7538_ACEOF 7539if ac_fn_c_try_link "$LINENO"; then : 7540 eval $cacheid=yes 7541else 7542 eval $cacheid=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext \ 7545 conftest$ac_exeext conftest.$ac_ext 7546fi 7547 7548 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550 7551 eval supported=\$$cacheid 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7553$as_echo "$supported" >&6; } 7554 if test "$supported" = "yes" ; then 7555 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7556 found="yes" 7557 fi 7558 fi 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574xorg_testset_save_CFLAGS="$CFLAGS" 7575 7576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584/* end confdefs.h. */ 7585int i; 7586_ACEOF 7587if ac_fn_c_try_compile "$LINENO"; then : 7588 xorg_cv_cc_flag_unknown_warning_option=yes 7589else 7590 xorg_cv_cc_flag_unknown_warning_option=no 7591fi 7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7593fi 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7597 CFLAGS="$xorg_testset_save_CFLAGS" 7598fi 7599 7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 fi 7604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611/* end confdefs.h. */ 7612int i; 7613_ACEOF 7614if ac_fn_c_try_compile "$LINENO"; then : 7615 xorg_cv_cc_flag_unused_command_line_argument=yes 7616else 7617 xorg_cv_cc_flag_unused_command_line_argument=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625fi 7626 7627found="no" 7628 7629 if test $found = "no" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 fi 7637 7638 CFLAGS="$CFLAGS -Werror=sequence-point" 7639 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7641$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7642 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7643 if eval \${$cacheid+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648int i; 7649int 7650main () 7651{ 7652 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657if ac_fn_c_try_link "$LINENO"; then : 7658 eval $cacheid=yes 7659else 7660 eval $cacheid=no 7661fi 7662rm -f core conftest.err conftest.$ac_objext \ 7663 conftest$ac_exeext conftest.$ac_ext 7664fi 7665 7666 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668 7669 eval supported=\$$cacheid 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7671$as_echo "$supported" >&6; } 7672 if test "$supported" = "yes" ; then 7673 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7674 found="yes" 7675 fi 7676 fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692xorg_testset_save_CFLAGS="$CFLAGS" 7693 7694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703int i; 7704_ACEOF 7705if ac_fn_c_try_compile "$LINENO"; then : 7706 xorg_cv_cc_flag_unknown_warning_option=yes 7707else 7708 xorg_cv_cc_flag_unknown_warning_option=no 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7711fi 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7715 CFLAGS="$xorg_testset_save_CFLAGS" 7716fi 7717 7718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 fi 7722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730int i; 7731_ACEOF 7732if ac_fn_c_try_compile "$LINENO"; then : 7733 xorg_cv_cc_flag_unused_command_line_argument=yes 7734else 7735 xorg_cv_cc_flag_unused_command_line_argument=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7738fi 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745found="no" 7746 7747 if test $found = "no" ; then 7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7750 fi 7751 7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7754 fi 7755 7756 CFLAGS="$CFLAGS -Werror=return-type" 7757 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7759$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7760 cacheid=xorg_cv_cc_flag__Werror_return_type 7761 if eval \${$cacheid+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766int i; 7767int 7768main () 7769{ 7770 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO"; then : 7776 eval $cacheid=yes 7777else 7778 eval $cacheid=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782fi 7783 7784 7785 CFLAGS="$xorg_testset_save_CFLAGS" 7786 7787 eval supported=\$$cacheid 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7789$as_echo "$supported" >&6; } 7790 if test "$supported" = "yes" ; then 7791 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7792 found="yes" 7793 fi 7794 fi 7795 7796 if test $found = "no" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 7801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 fi 7804 7805 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7806 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7808$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7809 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7810 if eval \${$cacheid+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815int i; 7816int 7817main () 7818{ 7819 7820 ; 7821 return 0; 7822} 7823_ACEOF 7824if ac_fn_c_try_link "$LINENO"; then : 7825 eval $cacheid=yes 7826else 7827 eval $cacheid=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext \ 7830 conftest$ac_exeext conftest.$ac_ext 7831fi 7832 7833 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835 7836 eval supported=\$$cacheid 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7838$as_echo "$supported" >&6; } 7839 if test "$supported" = "yes" ; then 7840 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7841 found="yes" 7842 fi 7843 fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859xorg_testset_save_CFLAGS="$CFLAGS" 7860 7861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO"; then : 7873 xorg_cv_cc_flag_unknown_warning_option=yes 7874else 7875 xorg_cv_cc_flag_unknown_warning_option=no 7876fi 7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7878fi 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883fi 7884 7885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7888 fi 7889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897int i; 7898_ACEOF 7899if ac_fn_c_try_compile "$LINENO"; then : 7900 xorg_cv_cc_flag_unused_command_line_argument=yes 7901else 7902 xorg_cv_cc_flag_unused_command_line_argument=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7905fi 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910fi 7911 7912found="no" 7913 7914 if test $found = "no" ; then 7915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7917 fi 7918 7919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7921 fi 7922 7923 CFLAGS="$CFLAGS -Werror=trigraphs" 7924 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7926$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7927 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7928 if eval \${$cacheid+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933int i; 7934int 7935main () 7936{ 7937 7938 ; 7939 return 0; 7940} 7941_ACEOF 7942if ac_fn_c_try_link "$LINENO"; then : 7943 eval $cacheid=yes 7944else 7945 eval $cacheid=no 7946fi 7947rm -f core conftest.err conftest.$ac_objext \ 7948 conftest$ac_exeext conftest.$ac_ext 7949fi 7950 7951 7952 CFLAGS="$xorg_testset_save_CFLAGS" 7953 7954 eval supported=\$$cacheid 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7956$as_echo "$supported" >&6; } 7957 if test "$supported" = "yes" ; then 7958 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7959 found="yes" 7960 fi 7961 fi 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977xorg_testset_save_CFLAGS="$CFLAGS" 7978 7979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO"; then : 7991 xorg_cv_cc_flag_unknown_warning_option=yes 7992else 7993 xorg_cv_cc_flag_unknown_warning_option=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8000 CFLAGS="$xorg_testset_save_CFLAGS" 8001fi 8002 8003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006 fi 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014/* end confdefs.h. */ 8015int i; 8016_ACEOF 8017if ac_fn_c_try_compile "$LINENO"; then : 8018 xorg_cv_cc_flag_unused_command_line_argument=yes 8019else 8020 xorg_cv_cc_flag_unused_command_line_argument=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028fi 8029 8030found="no" 8031 8032 if test $found = "no" ; then 8033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 fi 8036 8037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 fi 8040 8041 CFLAGS="$CFLAGS -Werror=array-bounds" 8042 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8044$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8045 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8046 if eval \${$cacheid+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052int 8053main () 8054{ 8055 8056 ; 8057 return 0; 8058} 8059_ACEOF 8060if ac_fn_c_try_link "$LINENO"; then : 8061 eval $cacheid=yes 8062else 8063 eval $cacheid=no 8064fi 8065rm -f core conftest.err conftest.$ac_objext \ 8066 conftest$ac_exeext conftest.$ac_ext 8067fi 8068 8069 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071 8072 eval supported=\$$cacheid 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8074$as_echo "$supported" >&6; } 8075 if test "$supported" = "yes" ; then 8076 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8077 found="yes" 8078 fi 8079 fi 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095xorg_testset_save_CFLAGS="$CFLAGS" 8096 8097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107_ACEOF 8108if ac_fn_c_try_compile "$LINENO"; then : 8109 xorg_cv_cc_flag_unknown_warning_option=yes 8110else 8111 xorg_cv_cc_flag_unknown_warning_option=no 8112fi 8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8114fi 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119fi 8120 8121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8124 fi 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134_ACEOF 8135if ac_fn_c_try_compile "$LINENO"; then : 8136 xorg_cv_cc_flag_unused_command_line_argument=yes 8137else 8138 xorg_cv_cc_flag_unused_command_line_argument=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148found="no" 8149 8150 if test $found = "no" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 fi 8158 8159 CFLAGS="$CFLAGS -Werror=write-strings" 8160 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8162$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8163 cacheid=xorg_cv_cc_flag__Werror_write_strings 8164 if eval \${$cacheid+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170int 8171main () 8172{ 8173 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_link "$LINENO"; then : 8179 eval $cacheid=yes 8180else 8181 eval $cacheid=no 8182fi 8183rm -f core conftest.err conftest.$ac_objext \ 8184 conftest$ac_exeext conftest.$ac_ext 8185fi 8186 8187 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8190 eval supported=\$$cacheid 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8192$as_echo "$supported" >&6; } 8193 if test "$supported" = "yes" ; then 8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8195 found="yes" 8196 fi 8197 fi 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213xorg_testset_save_CFLAGS="$CFLAGS" 8214 8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224int i; 8225_ACEOF 8226if ac_fn_c_try_compile "$LINENO"; then : 8227 xorg_cv_cc_flag_unknown_warning_option=yes 8228else 8229 xorg_cv_cc_flag_unknown_warning_option=no 8230fi 8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8232fi 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8236 CFLAGS="$xorg_testset_save_CFLAGS" 8237fi 8238 8239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8242 fi 8243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251int i; 8252_ACEOF 8253if ac_fn_c_try_compile "$LINENO"; then : 8254 xorg_cv_cc_flag_unused_command_line_argument=yes 8255else 8256 xorg_cv_cc_flag_unused_command_line_argument=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8259fi 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264fi 8265 8266found="no" 8267 8268 if test $found = "no" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8275 fi 8276 8277 CFLAGS="$CFLAGS -Werror=address" 8278 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8280$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8281 cacheid=xorg_cv_cc_flag__Werror_address 8282 if eval \${$cacheid+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288int 8289main () 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_link "$LINENO"; then : 8297 eval $cacheid=yes 8298else 8299 eval $cacheid=no 8300fi 8301rm -f core conftest.err conftest.$ac_objext \ 8302 conftest$ac_exeext conftest.$ac_ext 8303fi 8304 8305 8306 CFLAGS="$xorg_testset_save_CFLAGS" 8307 8308 eval supported=\$$cacheid 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8310$as_echo "$supported" >&6; } 8311 if test "$supported" = "yes" ; then 8312 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8313 found="yes" 8314 fi 8315 fi 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331xorg_testset_save_CFLAGS="$CFLAGS" 8332 8333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342int i; 8343_ACEOF 8344if ac_fn_c_try_compile "$LINENO"; then : 8345 xorg_cv_cc_flag_unknown_warning_option=yes 8346else 8347 xorg_cv_cc_flag_unknown_warning_option=no 8348fi 8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8350fi 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8354 CFLAGS="$xorg_testset_save_CFLAGS" 8355fi 8356 8357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 fi 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO"; then : 8372 xorg_cv_cc_flag_unused_command_line_argument=yes 8373else 8374 xorg_cv_cc_flag_unused_command_line_argument=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8377fi 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384found="no" 8385 8386 if test $found = "no" ; then 8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 fi 8390 8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8393 fi 8394 8395 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8396 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8398$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8399 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8400 if eval \${$cacheid+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405int i; 8406int 8407main () 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_link "$LINENO"; then : 8415 eval $cacheid=yes 8416else 8417 eval $cacheid=no 8418fi 8419rm -f core conftest.err conftest.$ac_objext \ 8420 conftest$ac_exeext conftest.$ac_ext 8421fi 8422 8423 8424 CFLAGS="$xorg_testset_save_CFLAGS" 8425 8426 eval supported=\$$cacheid 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8428$as_echo "$supported" >&6; } 8429 if test "$supported" = "yes" ; then 8430 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8431 found="yes" 8432 fi 8433 fi 8434 8435 if test $found = "no" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 fi 8443 8444 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8445 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8447$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8448 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8449 if eval \${$cacheid+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455int 8456main () 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463if ac_fn_c_try_link "$LINENO"; then : 8464 eval $cacheid=yes 8465else 8466 eval $cacheid=no 8467fi 8468rm -f core conftest.err conftest.$ac_objext \ 8469 conftest$ac_exeext conftest.$ac_ext 8470fi 8471 8472 8473 CFLAGS="$xorg_testset_save_CFLAGS" 8474 8475 eval supported=\$$cacheid 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8477$as_echo "$supported" >&6; } 8478 if test "$supported" = "yes" ; then 8479 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8480 found="yes" 8481 fi 8482 fi 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498xorg_testset_save_CFLAGS="$CFLAGS" 8499 8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509int i; 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 xorg_cv_cc_flag_unknown_warning_option=yes 8513else 8514 xorg_cv_cc_flag_unknown_warning_option=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8521 CFLAGS="$xorg_testset_save_CFLAGS" 8522fi 8523 8524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8527 fi 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537_ACEOF 8538if ac_fn_c_try_compile "$LINENO"; then : 8539 xorg_cv_cc_flag_unused_command_line_argument=yes 8540else 8541 xorg_cv_cc_flag_unused_command_line_argument=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551found="no" 8552 8553 if test $found = "no" ; then 8554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556 fi 8557 8558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 fi 8561 8562 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8565$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8566 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8567 if eval \${$cacheid+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573int 8574main () 8575{ 8576 8577 ; 8578 return 0; 8579} 8580_ACEOF 8581if ac_fn_c_try_link "$LINENO"; then : 8582 eval $cacheid=yes 8583else 8584 eval $cacheid=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext \ 8587 conftest$ac_exeext conftest.$ac_ext 8588fi 8589 8590 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592 8593 eval supported=\$$cacheid 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8595$as_echo "$supported" >&6; } 8596 if test "$supported" = "yes" ; then 8597 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8598 found="yes" 8599 fi 8600 fi 8601 8602 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8603else 8604{ $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 8605$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;} 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619xorg_testset_save_CFLAGS="$CFLAGS" 8620 8621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629/* end confdefs.h. */ 8630int i; 8631_ACEOF 8632if ac_fn_c_try_compile "$LINENO"; then : 8633 xorg_cv_cc_flag_unknown_warning_option=yes 8634else 8635 xorg_cv_cc_flag_unknown_warning_option=no 8636fi 8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8638fi 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8642 CFLAGS="$xorg_testset_save_CFLAGS" 8643fi 8644 8645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8648 fi 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657int i; 8658_ACEOF 8659if ac_fn_c_try_compile "$LINENO"; then : 8660 xorg_cv_cc_flag_unused_command_line_argument=yes 8661else 8662 xorg_cv_cc_flag_unused_command_line_argument=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670fi 8671 8672found="no" 8673 8674 if test $found = "no" ; then 8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677 fi 8678 8679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8681 fi 8682 8683 CFLAGS="$CFLAGS -Wimplicit" 8684 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8686$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8687 cacheid=xorg_cv_cc_flag__Wimplicit 8688 if eval \${$cacheid+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693int i; 8694int 8695main () 8696{ 8697 8698 ; 8699 return 0; 8700} 8701_ACEOF 8702if ac_fn_c_try_link "$LINENO"; then : 8703 eval $cacheid=yes 8704else 8705 eval $cacheid=no 8706fi 8707rm -f core conftest.err conftest.$ac_objext \ 8708 conftest$ac_exeext conftest.$ac_ext 8709fi 8710 8711 8712 CFLAGS="$xorg_testset_save_CFLAGS" 8713 8714 eval supported=\$$cacheid 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8716$as_echo "$supported" >&6; } 8717 if test "$supported" = "yes" ; then 8718 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8719 found="yes" 8720 fi 8721 fi 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737xorg_testset_save_CFLAGS="$CFLAGS" 8738 8739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8744 $as_echo_n "(cached) " >&6 8745else 8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8747/* end confdefs.h. */ 8748int i; 8749_ACEOF 8750if ac_fn_c_try_compile "$LINENO"; then : 8751 xorg_cv_cc_flag_unknown_warning_option=yes 8752else 8753 xorg_cv_cc_flag_unknown_warning_option=no 8754fi 8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8756fi 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8760 CFLAGS="$xorg_testset_save_CFLAGS" 8761fi 8762 8763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 fi 8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774/* end confdefs.h. */ 8775int i; 8776_ACEOF 8777if ac_fn_c_try_compile "$LINENO"; then : 8778 xorg_cv_cc_flag_unused_command_line_argument=yes 8779else 8780 xorg_cv_cc_flag_unused_command_line_argument=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8783fi 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788fi 8789 8790found="no" 8791 8792 if test $found = "no" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8799 fi 8800 8801 CFLAGS="$CFLAGS -Wnonnull" 8802 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8804$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8805 cacheid=xorg_cv_cc_flag__Wnonnull 8806 if eval \${$cacheid+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808else 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811int i; 8812int 8813main () 8814{ 8815 8816 ; 8817 return 0; 8818} 8819_ACEOF 8820if ac_fn_c_try_link "$LINENO"; then : 8821 eval $cacheid=yes 8822else 8823 eval $cacheid=no 8824fi 8825rm -f core conftest.err conftest.$ac_objext \ 8826 conftest$ac_exeext conftest.$ac_ext 8827fi 8828 8829 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831 8832 eval supported=\$$cacheid 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8834$as_echo "$supported" >&6; } 8835 if test "$supported" = "yes" ; then 8836 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8837 found="yes" 8838 fi 8839 fi 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855xorg_testset_save_CFLAGS="$CFLAGS" 8856 8857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8862 $as_echo_n "(cached) " >&6 8863else 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866int i; 8867_ACEOF 8868if ac_fn_c_try_compile "$LINENO"; then : 8869 xorg_cv_cc_flag_unknown_warning_option=yes 8870else 8871 xorg_cv_cc_flag_unknown_warning_option=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8874fi 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879fi 8880 8881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8884 fi 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8889 $as_echo_n "(cached) " >&6 8890else 8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892/* end confdefs.h. */ 8893int i; 8894_ACEOF 8895if ac_fn_c_try_compile "$LINENO"; then : 8896 xorg_cv_cc_flag_unused_command_line_argument=yes 8897else 8898 xorg_cv_cc_flag_unused_command_line_argument=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901fi 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906fi 8907 8908found="no" 8909 8910 if test $found = "no" ; then 8911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8913 fi 8914 8915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8917 fi 8918 8919 CFLAGS="$CFLAGS -Winit-self" 8920 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8922$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8923 cacheid=xorg_cv_cc_flag__Winit_self 8924 if eval \${$cacheid+:} false; then : 8925 $as_echo_n "(cached) " >&6 8926else 8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928/* end confdefs.h. */ 8929int i; 8930int 8931main () 8932{ 8933 8934 ; 8935 return 0; 8936} 8937_ACEOF 8938if ac_fn_c_try_link "$LINENO"; then : 8939 eval $cacheid=yes 8940else 8941 eval $cacheid=no 8942fi 8943rm -f core conftest.err conftest.$ac_objext \ 8944 conftest$ac_exeext conftest.$ac_ext 8945fi 8946 8947 8948 CFLAGS="$xorg_testset_save_CFLAGS" 8949 8950 eval supported=\$$cacheid 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8952$as_echo "$supported" >&6; } 8953 if test "$supported" = "yes" ; then 8954 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8955 found="yes" 8956 fi 8957 fi 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973xorg_testset_save_CFLAGS="$CFLAGS" 8974 8975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985_ACEOF 8986if ac_fn_c_try_compile "$LINENO"; then : 8987 xorg_cv_cc_flag_unknown_warning_option=yes 8988else 8989 xorg_cv_cc_flag_unknown_warning_option=no 8990fi 8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8992fi 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8996 CFLAGS="$xorg_testset_save_CFLAGS" 8997fi 8998 8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9002 fi 9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011int i; 9012_ACEOF 9013if ac_fn_c_try_compile "$LINENO"; then : 9014 xorg_cv_cc_flag_unused_command_line_argument=yes 9015else 9016 xorg_cv_cc_flag_unused_command_line_argument=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024fi 9025 9026found="no" 9027 9028 if test $found = "no" ; then 9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9035 fi 9036 9037 CFLAGS="$CFLAGS -Wmain" 9038 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9040$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9041 cacheid=xorg_cv_cc_flag__Wmain 9042 if eval \${$cacheid+:} false; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047int i; 9048int 9049main () 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_link "$LINENO"; then : 9057 eval $cacheid=yes 9058else 9059 eval $cacheid=no 9060fi 9061rm -f core conftest.err conftest.$ac_objext \ 9062 conftest$ac_exeext conftest.$ac_ext 9063fi 9064 9065 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067 9068 eval supported=\$$cacheid 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9070$as_echo "$supported" >&6; } 9071 if test "$supported" = "yes" ; then 9072 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9073 found="yes" 9074 fi 9075 fi 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091xorg_testset_save_CFLAGS="$CFLAGS" 9092 9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9101/* end confdefs.h. */ 9102int i; 9103_ACEOF 9104if ac_fn_c_try_compile "$LINENO"; then : 9105 xorg_cv_cc_flag_unknown_warning_option=yes 9106else 9107 xorg_cv_cc_flag_unknown_warning_option=no 9108fi 9109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9110fi 9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9114 CFLAGS="$xorg_testset_save_CFLAGS" 9115fi 9116 9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9120 fi 9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130_ACEOF 9131if ac_fn_c_try_compile "$LINENO"; then : 9132 xorg_cv_cc_flag_unused_command_line_argument=yes 9133else 9134 xorg_cv_cc_flag_unused_command_line_argument=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9137fi 9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142fi 9143 9144found="no" 9145 9146 if test $found = "no" ; then 9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9149 fi 9150 9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9153 fi 9154 9155 CFLAGS="$CFLAGS -Wmissing-braces" 9156 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9158$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9159 cacheid=xorg_cv_cc_flag__Wmissing_braces 9160 if eval \${$cacheid+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165int i; 9166int 9167main () 9168{ 9169 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_link "$LINENO"; then : 9175 eval $cacheid=yes 9176else 9177 eval $cacheid=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext \ 9180 conftest$ac_exeext conftest.$ac_ext 9181fi 9182 9183 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185 9186 eval supported=\$$cacheid 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9188$as_echo "$supported" >&6; } 9189 if test "$supported" = "yes" ; then 9190 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9191 found="yes" 9192 fi 9193 fi 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209xorg_testset_save_CFLAGS="$CFLAGS" 9210 9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9216 $as_echo_n "(cached) " >&6 9217else 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220int i; 9221_ACEOF 9222if ac_fn_c_try_compile "$LINENO"; then : 9223 xorg_cv_cc_flag_unknown_warning_option=yes 9224else 9225 xorg_cv_cc_flag_unknown_warning_option=no 9226fi 9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9228fi 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233fi 9234 9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9243 $as_echo_n "(cached) " >&6 9244else 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247int i; 9248_ACEOF 9249if ac_fn_c_try_compile "$LINENO"; then : 9250 xorg_cv_cc_flag_unused_command_line_argument=yes 9251else 9252 xorg_cv_cc_flag_unused_command_line_argument=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9255fi 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260fi 9261 9262found="no" 9263 9264 if test $found = "no" ; then 9265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9267 fi 9268 9269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271 fi 9272 9273 CFLAGS="$CFLAGS -Wsequence-point" 9274 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9276$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9277 cacheid=xorg_cv_cc_flag__Wsequence_point 9278 if eval \${$cacheid+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282/* end confdefs.h. */ 9283int i; 9284int 9285main () 9286{ 9287 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292if ac_fn_c_try_link "$LINENO"; then : 9293 eval $cacheid=yes 9294else 9295 eval $cacheid=no 9296fi 9297rm -f core conftest.err conftest.$ac_objext \ 9298 conftest$ac_exeext conftest.$ac_ext 9299fi 9300 9301 9302 CFLAGS="$xorg_testset_save_CFLAGS" 9303 9304 eval supported=\$$cacheid 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9306$as_echo "$supported" >&6; } 9307 if test "$supported" = "yes" ; then 9308 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9309 found="yes" 9310 fi 9311 fi 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327xorg_testset_save_CFLAGS="$CFLAGS" 9328 9329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338int i; 9339_ACEOF 9340if ac_fn_c_try_compile "$LINENO"; then : 9341 xorg_cv_cc_flag_unknown_warning_option=yes 9342else 9343 xorg_cv_cc_flag_unknown_warning_option=no 9344fi 9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9346fi 9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351fi 9352 9353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9356 fi 9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364/* end confdefs.h. */ 9365int i; 9366_ACEOF 9367if ac_fn_c_try_compile "$LINENO"; then : 9368 xorg_cv_cc_flag_unused_command_line_argument=yes 9369else 9370 xorg_cv_cc_flag_unused_command_line_argument=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9373fi 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378fi 9379 9380found="no" 9381 9382 if test $found = "no" ; then 9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9385 fi 9386 9387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 fi 9390 9391 CFLAGS="$CFLAGS -Wreturn-type" 9392 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9394$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9395 cacheid=xorg_cv_cc_flag__Wreturn_type 9396 if eval \${$cacheid+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401int i; 9402int 9403main () 9404{ 9405 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410if ac_fn_c_try_link "$LINENO"; then : 9411 eval $cacheid=yes 9412else 9413 eval $cacheid=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417fi 9418 9419 9420 CFLAGS="$xorg_testset_save_CFLAGS" 9421 9422 eval supported=\$$cacheid 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9424$as_echo "$supported" >&6; } 9425 if test "$supported" = "yes" ; then 9426 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9427 found="yes" 9428 fi 9429 fi 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445xorg_testset_save_CFLAGS="$CFLAGS" 9446 9447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9452 $as_echo_n "(cached) " >&6 9453else 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457_ACEOF 9458if ac_fn_c_try_compile "$LINENO"; then : 9459 xorg_cv_cc_flag_unknown_warning_option=yes 9460else 9461 xorg_cv_cc_flag_unknown_warning_option=no 9462fi 9463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9464fi 9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469fi 9470 9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9474 fi 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483int i; 9484_ACEOF 9485if ac_fn_c_try_compile "$LINENO"; then : 9486 xorg_cv_cc_flag_unused_command_line_argument=yes 9487else 9488 xorg_cv_cc_flag_unused_command_line_argument=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9491fi 9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496fi 9497 9498found="no" 9499 9500 if test $found = "no" ; then 9501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 fi 9504 9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9507 fi 9508 9509 CFLAGS="$CFLAGS -Wtrigraphs" 9510 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9512$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9513 cacheid=xorg_cv_cc_flag__Wtrigraphs 9514 if eval \${$cacheid+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520int 9521main () 9522{ 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO"; then : 9529 eval $cacheid=yes 9530else 9531 eval $cacheid=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext \ 9534 conftest$ac_exeext conftest.$ac_ext 9535fi 9536 9537 9538 CFLAGS="$xorg_testset_save_CFLAGS" 9539 9540 eval supported=\$$cacheid 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9542$as_echo "$supported" >&6; } 9543 if test "$supported" = "yes" ; then 9544 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9545 found="yes" 9546 fi 9547 fi 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563xorg_testset_save_CFLAGS="$CFLAGS" 9564 9565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571else 9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9573/* end confdefs.h. */ 9574int i; 9575_ACEOF 9576if ac_fn_c_try_compile "$LINENO"; then : 9577 xorg_cv_cc_flag_unknown_warning_option=yes 9578else 9579 xorg_cv_cc_flag_unknown_warning_option=no 9580fi 9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9582fi 9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9586 CFLAGS="$xorg_testset_save_CFLAGS" 9587fi 9588 9589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9592 fi 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602_ACEOF 9603if ac_fn_c_try_compile "$LINENO"; then : 9604 xorg_cv_cc_flag_unused_command_line_argument=yes 9605else 9606 xorg_cv_cc_flag_unused_command_line_argument=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9609fi 9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614fi 9615 9616found="no" 9617 9618 if test $found = "no" ; then 9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9621 fi 9622 9623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9625 fi 9626 9627 CFLAGS="$CFLAGS -Warray-bounds" 9628 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9630$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9631 cacheid=xorg_cv_cc_flag__Warray_bounds 9632 if eval \${$cacheid+:} false; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637int i; 9638int 9639main () 9640{ 9641 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646if ac_fn_c_try_link "$LINENO"; then : 9647 eval $cacheid=yes 9648else 9649 eval $cacheid=no 9650fi 9651rm -f core conftest.err conftest.$ac_objext \ 9652 conftest$ac_exeext conftest.$ac_ext 9653fi 9654 9655 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657 9658 eval supported=\$$cacheid 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9660$as_echo "$supported" >&6; } 9661 if test "$supported" = "yes" ; then 9662 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9663 found="yes" 9664 fi 9665 fi 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681xorg_testset_save_CFLAGS="$CFLAGS" 9682 9683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9688 $as_echo_n "(cached) " >&6 9689else 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692int i; 9693_ACEOF 9694if ac_fn_c_try_compile "$LINENO"; then : 9695 xorg_cv_cc_flag_unknown_warning_option=yes 9696else 9697 xorg_cv_cc_flag_unknown_warning_option=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9700fi 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705fi 9706 9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 fi 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719int i; 9720_ACEOF 9721if ac_fn_c_try_compile "$LINENO"; then : 9722 xorg_cv_cc_flag_unused_command_line_argument=yes 9723else 9724 xorg_cv_cc_flag_unused_command_line_argument=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9727fi 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734found="no" 9735 9736 if test $found = "no" ; then 9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9739 fi 9740 9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 fi 9744 9745 CFLAGS="$CFLAGS -Wwrite-strings" 9746 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9748$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9749 cacheid=xorg_cv_cc_flag__Wwrite_strings 9750 if eval \${$cacheid+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752else 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755int i; 9756int 9757main () 9758{ 9759 9760 ; 9761 return 0; 9762} 9763_ACEOF 9764if ac_fn_c_try_link "$LINENO"; then : 9765 eval $cacheid=yes 9766else 9767 eval $cacheid=no 9768fi 9769rm -f core conftest.err conftest.$ac_objext \ 9770 conftest$ac_exeext conftest.$ac_ext 9771fi 9772 9773 9774 CFLAGS="$xorg_testset_save_CFLAGS" 9775 9776 eval supported=\$$cacheid 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9778$as_echo "$supported" >&6; } 9779 if test "$supported" = "yes" ; then 9780 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9781 found="yes" 9782 fi 9783 fi 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799xorg_testset_save_CFLAGS="$CFLAGS" 9800 9801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9806 $as_echo_n "(cached) " >&6 9807else 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int i; 9811_ACEOF 9812if ac_fn_c_try_compile "$LINENO"; then : 9813 xorg_cv_cc_flag_unknown_warning_option=yes 9814else 9815 xorg_cv_cc_flag_unknown_warning_option=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9822 CFLAGS="$xorg_testset_save_CFLAGS" 9823fi 9824 9825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9828 fi 9829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838_ACEOF 9839if ac_fn_c_try_compile "$LINENO"; then : 9840 xorg_cv_cc_flag_unused_command_line_argument=yes 9841else 9842 xorg_cv_cc_flag_unused_command_line_argument=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9845fi 9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850fi 9851 9852found="no" 9853 9854 if test $found = "no" ; then 9855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9857 fi 9858 9859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861 fi 9862 9863 CFLAGS="$CFLAGS -Waddress" 9864 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9866$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9867 cacheid=xorg_cv_cc_flag__Waddress 9868 if eval \${$cacheid+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870else 9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9872/* end confdefs.h. */ 9873int i; 9874int 9875main () 9876{ 9877 9878 ; 9879 return 0; 9880} 9881_ACEOF 9882if ac_fn_c_try_link "$LINENO"; then : 9883 eval $cacheid=yes 9884else 9885 eval $cacheid=no 9886fi 9887rm -f core conftest.err conftest.$ac_objext \ 9888 conftest$ac_exeext conftest.$ac_ext 9889fi 9890 9891 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893 9894 eval supported=\$$cacheid 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9896$as_echo "$supported" >&6; } 9897 if test "$supported" = "yes" ; then 9898 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9899 found="yes" 9900 fi 9901 fi 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917xorg_testset_save_CFLAGS="$CFLAGS" 9918 9919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925else 9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9927/* end confdefs.h. */ 9928int i; 9929_ACEOF 9930if ac_fn_c_try_compile "$LINENO"; then : 9931 xorg_cv_cc_flag_unknown_warning_option=yes 9932else 9933 xorg_cv_cc_flag_unknown_warning_option=no 9934fi 9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9936fi 9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9940 CFLAGS="$xorg_testset_save_CFLAGS" 9941fi 9942 9943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 fi 9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9951 $as_echo_n "(cached) " >&6 9952else 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955int i; 9956_ACEOF 9957if ac_fn_c_try_compile "$LINENO"; then : 9958 xorg_cv_cc_flag_unused_command_line_argument=yes 9959else 9960 xorg_cv_cc_flag_unused_command_line_argument=no 9961fi 9962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968fi 9969 9970found="no" 9971 9972 if test $found = "no" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 9977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9979 fi 9980 9981 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9982 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9984$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9985 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9986 if eval \${$cacheid+:} false; then : 9987 $as_echo_n "(cached) " >&6 9988else 9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991int i; 9992int 9993main () 9994{ 9995 9996 ; 9997 return 0; 9998} 9999_ACEOF 10000if ac_fn_c_try_link "$LINENO"; then : 10001 eval $cacheid=yes 10002else 10003 eval $cacheid=no 10004fi 10005rm -f core conftest.err conftest.$ac_objext \ 10006 conftest$ac_exeext conftest.$ac_ext 10007fi 10008 10009 10010 CFLAGS="$xorg_testset_save_CFLAGS" 10011 10012 eval supported=\$$cacheid 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10014$as_echo "$supported" >&6; } 10015 if test "$supported" = "yes" ; then 10016 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10017 found="yes" 10018 fi 10019 fi 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035xorg_testset_save_CFLAGS="$CFLAGS" 10036 10037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10042 $as_echo_n "(cached) " >&6 10043else 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045/* end confdefs.h. */ 10046int i; 10047_ACEOF 10048if ac_fn_c_try_compile "$LINENO"; then : 10049 xorg_cv_cc_flag_unknown_warning_option=yes 10050else 10051 xorg_cv_cc_flag_unknown_warning_option=no 10052fi 10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10054fi 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10058 CFLAGS="$xorg_testset_save_CFLAGS" 10059fi 10060 10061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10064 fi 10065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10072/* end confdefs.h. */ 10073int i; 10074_ACEOF 10075if ac_fn_c_try_compile "$LINENO"; then : 10076 xorg_cv_cc_flag_unused_command_line_argument=yes 10077else 10078 xorg_cv_cc_flag_unused_command_line_argument=no 10079fi 10080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10081fi 10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086fi 10087 10088found="no" 10089 10090 if test $found = "no" ; then 10091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10093 fi 10094 10095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10097 fi 10098 10099 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10100 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10102$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10103 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10104 if eval \${$cacheid+:} false; then : 10105 $as_echo_n "(cached) " >&6 10106else 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108/* end confdefs.h. */ 10109int i; 10110int 10111main () 10112{ 10113 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118if ac_fn_c_try_link "$LINENO"; then : 10119 eval $cacheid=yes 10120else 10121 eval $cacheid=no 10122fi 10123rm -f core conftest.err conftest.$ac_objext \ 10124 conftest$ac_exeext conftest.$ac_ext 10125fi 10126 10127 10128 CFLAGS="$xorg_testset_save_CFLAGS" 10129 10130 eval supported=\$$cacheid 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10132$as_echo "$supported" >&6; } 10133 if test "$supported" = "yes" ; then 10134 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10135 found="yes" 10136 fi 10137 fi 10138 10139 10140fi 10141 10142 10143 10144 10145 10146 10147 10148 CWARNFLAGS="$BASE_CFLAGS" 10149 if test "x$GCC" = xyes ; then 10150 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10151 fi 10152 10153 10154 10155 10156 10157 10158 10159 10160# Check whether --enable-strict-compilation was given. 10161if test "${enable_strict_compilation+set}" = set; then : 10162 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10163else 10164 STRICT_COMPILE=no 10165fi 10166 10167 10168 10169 10170 10171 10172STRICT_CFLAGS="" 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186xorg_testset_save_CFLAGS="$CFLAGS" 10187 10188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10193 $as_echo_n "(cached) " >&6 10194else 10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10196/* end confdefs.h. */ 10197int i; 10198_ACEOF 10199if ac_fn_c_try_compile "$LINENO"; then : 10200 xorg_cv_cc_flag_unknown_warning_option=yes 10201else 10202 xorg_cv_cc_flag_unknown_warning_option=no 10203fi 10204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10205fi 10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10209 CFLAGS="$xorg_testset_save_CFLAGS" 10210fi 10211 10212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10215 fi 10216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225_ACEOF 10226if ac_fn_c_try_compile "$LINENO"; then : 10227 xorg_cv_cc_flag_unused_command_line_argument=yes 10228else 10229 xorg_cv_cc_flag_unused_command_line_argument=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10232fi 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237fi 10238 10239found="no" 10240 10241 if test $found = "no" ; then 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 fi 10245 10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10248 fi 10249 10250 CFLAGS="$CFLAGS -pedantic" 10251 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10253$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10254 cacheid=xorg_cv_cc_flag__pedantic 10255 if eval \${$cacheid+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261int 10262main () 10263{ 10264 10265 ; 10266 return 0; 10267} 10268_ACEOF 10269if ac_fn_c_try_link "$LINENO"; then : 10270 eval $cacheid=yes 10271else 10272 eval $cacheid=no 10273fi 10274rm -f core conftest.err conftest.$ac_objext \ 10275 conftest$ac_exeext conftest.$ac_ext 10276fi 10277 10278 10279 CFLAGS="$xorg_testset_save_CFLAGS" 10280 10281 eval supported=\$$cacheid 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10283$as_echo "$supported" >&6; } 10284 if test "$supported" = "yes" ; then 10285 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10286 found="yes" 10287 fi 10288 fi 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304xorg_testset_save_CFLAGS="$CFLAGS" 10305 10306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312else 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315int i; 10316_ACEOF 10317if ac_fn_c_try_compile "$LINENO"; then : 10318 xorg_cv_cc_flag_unknown_warning_option=yes 10319else 10320 xorg_cv_cc_flag_unknown_warning_option=no 10321fi 10322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10327 CFLAGS="$xorg_testset_save_CFLAGS" 10328fi 10329 10330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10333 fi 10334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339else 10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342int i; 10343_ACEOF 10344if ac_fn_c_try_compile "$LINENO"; then : 10345 xorg_cv_cc_flag_unused_command_line_argument=yes 10346else 10347 xorg_cv_cc_flag_unused_command_line_argument=no 10348fi 10349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10350fi 10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10354 CFLAGS="$xorg_testset_save_CFLAGS" 10355fi 10356 10357found="no" 10358 10359 if test $found = "no" ; then 10360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10362 fi 10363 10364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10366 fi 10367 10368 CFLAGS="$CFLAGS -Werror" 10369 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10371$as_echo_n "checking if $CC supports -Werror... " >&6; } 10372 cacheid=xorg_cv_cc_flag__Werror 10373 if eval \${$cacheid+:} false; then : 10374 $as_echo_n "(cached) " >&6 10375else 10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10377/* end confdefs.h. */ 10378int i; 10379int 10380main () 10381{ 10382 10383 ; 10384 return 0; 10385} 10386_ACEOF 10387if ac_fn_c_try_link "$LINENO"; then : 10388 eval $cacheid=yes 10389else 10390 eval $cacheid=no 10391fi 10392rm -f core conftest.err conftest.$ac_objext \ 10393 conftest$ac_exeext conftest.$ac_ext 10394fi 10395 10396 10397 CFLAGS="$xorg_testset_save_CFLAGS" 10398 10399 eval supported=\$$cacheid 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10401$as_echo "$supported" >&6; } 10402 if test "$supported" = "yes" ; then 10403 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10404 found="yes" 10405 fi 10406 fi 10407 10408 if test $found = "no" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10415 fi 10416 10417 CFLAGS="$CFLAGS -errwarn" 10418 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10420$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10421 cacheid=xorg_cv_cc_flag__errwarn 10422 if eval \${$cacheid+:} false; then : 10423 $as_echo_n "(cached) " >&6 10424else 10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10426/* end confdefs.h. */ 10427int i; 10428int 10429main () 10430{ 10431 10432 ; 10433 return 0; 10434} 10435_ACEOF 10436if ac_fn_c_try_link "$LINENO"; then : 10437 eval $cacheid=yes 10438else 10439 eval $cacheid=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext \ 10442 conftest$ac_exeext conftest.$ac_ext 10443fi 10444 10445 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447 10448 eval supported=\$$cacheid 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10450$as_echo "$supported" >&6; } 10451 if test "$supported" = "yes" ; then 10452 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10453 found="yes" 10454 fi 10455 fi 10456 10457 10458 10459# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10460# activate it with -Werror, so we add it here explicitly. 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474xorg_testset_save_CFLAGS="$CFLAGS" 10475 10476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10481 $as_echo_n "(cached) " >&6 10482else 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485int i; 10486_ACEOF 10487if ac_fn_c_try_compile "$LINENO"; then : 10488 xorg_cv_cc_flag_unknown_warning_option=yes 10489else 10490 xorg_cv_cc_flag_unknown_warning_option=no 10491fi 10492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10493fi 10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10497 CFLAGS="$xorg_testset_save_CFLAGS" 10498fi 10499 10500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10503 fi 10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10508 $as_echo_n "(cached) " >&6 10509else 10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10511/* end confdefs.h. */ 10512int i; 10513_ACEOF 10514if ac_fn_c_try_compile "$LINENO"; then : 10515 xorg_cv_cc_flag_unused_command_line_argument=yes 10516else 10517 xorg_cv_cc_flag_unused_command_line_argument=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10520fi 10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525fi 10526 10527found="no" 10528 10529 if test $found = "no" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10536 fi 10537 10538 CFLAGS="$CFLAGS -Werror=attributes" 10539 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10541$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10542 cacheid=xorg_cv_cc_flag__Werror_attributes 10543 if eval \${$cacheid+:} false; then : 10544 $as_echo_n "(cached) " >&6 10545else 10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547/* end confdefs.h. */ 10548int i; 10549int 10550main () 10551{ 10552 10553 ; 10554 return 0; 10555} 10556_ACEOF 10557if ac_fn_c_try_link "$LINENO"; then : 10558 eval $cacheid=yes 10559else 10560 eval $cacheid=no 10561fi 10562rm -f core conftest.err conftest.$ac_objext \ 10563 conftest$ac_exeext conftest.$ac_ext 10564fi 10565 10566 10567 CFLAGS="$xorg_testset_save_CFLAGS" 10568 10569 eval supported=\$$cacheid 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10571$as_echo "$supported" >&6; } 10572 if test "$supported" = "yes" ; then 10573 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10574 found="yes" 10575 fi 10576 fi 10577 10578 10579 10580if test "x$STRICT_COMPILE" = "xyes"; then 10581 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10582 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10583fi 10584 10585 10586 10587 10588 10589 10590cat >>confdefs.h <<_ACEOF 10591#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10592_ACEOF 10593 10594 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10595 if test "x$PVM" = "x"; then 10596 PVM="0" 10597 fi 10598 10599cat >>confdefs.h <<_ACEOF 10600#define PACKAGE_VERSION_MINOR $PVM 10601_ACEOF 10602 10603 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10604 if test "x$PVP" = "x"; then 10605 PVP="0" 10606 fi 10607 10608cat >>confdefs.h <<_ACEOF 10609#define PACKAGE_VERSION_PATCHLEVEL $PVP 10610_ACEOF 10611 10612 10613 10614CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10615mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10616|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10617echo 'git directory not found: installing possibly empty changelog.' >&2)" 10618 10619 10620 10621 10622macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10623INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10624mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10625|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10626echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10627 10628 10629 10630 10631 10632 10633if test x$APP_MAN_SUFFIX = x ; then 10634 APP_MAN_SUFFIX=1 10635fi 10636if test x$APP_MAN_DIR = x ; then 10637 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10638fi 10639 10640if test x$LIB_MAN_SUFFIX = x ; then 10641 LIB_MAN_SUFFIX=3 10642fi 10643if test x$LIB_MAN_DIR = x ; then 10644 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10645fi 10646 10647if test x$FILE_MAN_SUFFIX = x ; then 10648 case $host_os in 10649 solaris*) FILE_MAN_SUFFIX=4 ;; 10650 *) FILE_MAN_SUFFIX=5 ;; 10651 esac 10652fi 10653if test x$FILE_MAN_DIR = x ; then 10654 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10655fi 10656 10657if test x$MISC_MAN_SUFFIX = x ; then 10658 case $host_os in 10659 solaris*) MISC_MAN_SUFFIX=5 ;; 10660 *) MISC_MAN_SUFFIX=7 ;; 10661 esac 10662fi 10663if test x$MISC_MAN_DIR = x ; then 10664 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10665fi 10666 10667if test x$DRIVER_MAN_SUFFIX = x ; then 10668 case $host_os in 10669 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10670 *) DRIVER_MAN_SUFFIX=4 ;; 10671 esac 10672fi 10673if test x$DRIVER_MAN_DIR = x ; then 10674 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10675fi 10676 10677if test x$ADMIN_MAN_SUFFIX = x ; then 10678 case $host_os in 10679 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10680 *) ADMIN_MAN_SUFFIX=8 ;; 10681 esac 10682fi 10683if test x$ADMIN_MAN_DIR = x ; then 10684 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10685fi 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701XORG_MAN_PAGE="X Version 11" 10702 10703MAN_SUBSTS="\ 10704 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10705 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10706 -e 's|__xservername__|Xorg|g' \ 10707 -e 's|__xconfigfile__|xorg.conf|g' \ 10708 -e 's|__projectroot__|\$(prefix)|g' \ 10709 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10710 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10711 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10712 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10713 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10714 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10715 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10716 10717 10718 10719# Check whether --enable-silent-rules was given. 10720if test "${enable_silent_rules+set}" = set; then : 10721 enableval=$enable_silent_rules; 10722fi 10723 10724case $enable_silent_rules in # ((( 10725 yes) AM_DEFAULT_VERBOSITY=0;; 10726 no) AM_DEFAULT_VERBOSITY=1;; 10727 *) AM_DEFAULT_VERBOSITY=0;; 10728esac 10729am_make=${MAKE-make} 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10731$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10732if ${am_cv_make_support_nested_variables+:} false; then : 10733 $as_echo_n "(cached) " >&6 10734else 10735 if $as_echo 'TRUE=$(BAR$(V)) 10736BAR0=false 10737BAR1=true 10738V=1 10739am__doit: 10740 @$(TRUE) 10741.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10742 am_cv_make_support_nested_variables=yes 10743else 10744 am_cv_make_support_nested_variables=no 10745fi 10746fi 10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10748$as_echo "$am_cv_make_support_nested_variables" >&6; } 10749if test $am_cv_make_support_nested_variables = yes; then 10750 AM_V='$(V)' 10751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10752else 10753 AM_V=$AM_DEFAULT_VERBOSITY 10754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10755fi 10756AM_BACKSLASH='\' 10757 10758 10759 10760# Initialize libtool 10761# Check whether --enable-static was given. 10762if test "${enable_static+set}" = set; then : 10763 enableval=$enable_static; p=${PACKAGE-default} 10764 case $enableval in 10765 yes) enable_static=yes ;; 10766 no) enable_static=no ;; 10767 *) 10768 enable_static=no 10769 # Look at the argument we got. We use all the common list separators. 10770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10771 for pkg in $enableval; do 10772 IFS=$lt_save_ifs 10773 if test "X$pkg" = "X$p"; then 10774 enable_static=yes 10775 fi 10776 done 10777 IFS=$lt_save_ifs 10778 ;; 10779 esac 10780else 10781 enable_static=no 10782fi 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792case `pwd` in 10793 *\ * | *\ *) 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10795$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10796esac 10797 10798 10799 10800macro_version='2.4.6' 10801macro_revision='2.4.6' 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815ltmain=$ac_aux_dir/ltmain.sh 10816 10817# Backslashify metacharacters that are still active within 10818# double-quoted strings. 10819sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10820 10821# Same as above, but do not quote variable references. 10822double_quote_subst='s/\(["`\\]\)/\\\1/g' 10823 10824# Sed substitution to delay expansion of an escaped shell variable in a 10825# double_quote_subst'ed string. 10826delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10827 10828# Sed substitution to delay expansion of an escaped single quote. 10829delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10830 10831# Sed substitution to avoid accidental globbing in evaled expressions 10832no_glob_subst='s/\*/\\\*/g' 10833 10834ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10836ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10837 10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10839$as_echo_n "checking how to print strings... " >&6; } 10840# Test print first, because it will be a builtin if present. 10841if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10842 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10843 ECHO='print -r --' 10844elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10845 ECHO='printf %s\n' 10846else 10847 # Use this function as a fallback that always works. 10848 func_fallback_echo () 10849 { 10850 eval 'cat <<_LTECHO_EOF 10851$1 10852_LTECHO_EOF' 10853 } 10854 ECHO='func_fallback_echo' 10855fi 10856 10857# func_echo_all arg... 10858# Invoke $ECHO with all args, space-separated. 10859func_echo_all () 10860{ 10861 $ECHO "" 10862} 10863 10864case $ECHO in 10865 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10866$as_echo "printf" >&6; } ;; 10867 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10868$as_echo "print -r" >&6; } ;; 10869 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10870$as_echo "cat" >&6; } ;; 10871esac 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10887$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10888if ${ac_cv_path_SED+:} false; then : 10889 $as_echo_n "(cached) " >&6 10890else 10891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10892 for ac_i in 1 2 3 4 5 6 7; do 10893 ac_script="$ac_script$as_nl$ac_script" 10894 done 10895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10896 { ac_script=; unset ac_script;} 10897 if test -z "$SED"; then 10898 ac_path_SED_found=false 10899 # Loop through the user's path and test for each of PROGNAME-LIST 10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10901for as_dir in $PATH 10902do 10903 IFS=$as_save_IFS 10904 test -z "$as_dir" && as_dir=. 10905 for ac_prog in sed gsed; do 10906 for ac_exec_ext in '' $ac_executable_extensions; do 10907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10908 as_fn_executable_p "$ac_path_SED" || continue 10909# Check for GNU ac_path_SED and select it if it is found. 10910 # Check for GNU $ac_path_SED 10911case `"$ac_path_SED" --version 2>&1` in 10912*GNU*) 10913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10914*) 10915 ac_count=0 10916 $as_echo_n 0123456789 >"conftest.in" 10917 while : 10918 do 10919 cat "conftest.in" "conftest.in" >"conftest.tmp" 10920 mv "conftest.tmp" "conftest.in" 10921 cp "conftest.in" "conftest.nl" 10922 $as_echo '' >> "conftest.nl" 10923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10925 as_fn_arith $ac_count + 1 && ac_count=$as_val 10926 if test $ac_count -gt ${ac_path_SED_max-0}; then 10927 # Best one so far, save it but keep looking for a better one 10928 ac_cv_path_SED="$ac_path_SED" 10929 ac_path_SED_max=$ac_count 10930 fi 10931 # 10*(2^10) chars as input seems more than enough 10932 test $ac_count -gt 10 && break 10933 done 10934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10935esac 10936 10937 $ac_path_SED_found && break 3 10938 done 10939 done 10940 done 10941IFS=$as_save_IFS 10942 if test -z "$ac_cv_path_SED"; then 10943 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10944 fi 10945else 10946 ac_cv_path_SED=$SED 10947fi 10948 10949fi 10950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10951$as_echo "$ac_cv_path_SED" >&6; } 10952 SED="$ac_cv_path_SED" 10953 rm -f conftest.sed 10954 10955test -z "$SED" && SED=sed 10956Xsed="$SED -e 1s/^X//" 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10969$as_echo_n "checking for fgrep... " >&6; } 10970if ${ac_cv_path_FGREP+:} false; then : 10971 $as_echo_n "(cached) " >&6 10972else 10973 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10974 then ac_cv_path_FGREP="$GREP -F" 10975 else 10976 if test -z "$FGREP"; then 10977 ac_path_FGREP_found=false 10978 # Loop through the user's path and test for each of PROGNAME-LIST 10979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10981do 10982 IFS=$as_save_IFS 10983 test -z "$as_dir" && as_dir=. 10984 for ac_prog in fgrep; do 10985 for ac_exec_ext in '' $ac_executable_extensions; do 10986 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10987 as_fn_executable_p "$ac_path_FGREP" || continue 10988# Check for GNU ac_path_FGREP and select it if it is found. 10989 # Check for GNU $ac_path_FGREP 10990case `"$ac_path_FGREP" --version 2>&1` in 10991*GNU*) 10992 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10993*) 10994 ac_count=0 10995 $as_echo_n 0123456789 >"conftest.in" 10996 while : 10997 do 10998 cat "conftest.in" "conftest.in" >"conftest.tmp" 10999 mv "conftest.tmp" "conftest.in" 11000 cp "conftest.in" "conftest.nl" 11001 $as_echo 'FGREP' >> "conftest.nl" 11002 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11004 as_fn_arith $ac_count + 1 && ac_count=$as_val 11005 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11006 # Best one so far, save it but keep looking for a better one 11007 ac_cv_path_FGREP="$ac_path_FGREP" 11008 ac_path_FGREP_max=$ac_count 11009 fi 11010 # 10*(2^10) chars as input seems more than enough 11011 test $ac_count -gt 10 && break 11012 done 11013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11014esac 11015 11016 $ac_path_FGREP_found && break 3 11017 done 11018 done 11019 done 11020IFS=$as_save_IFS 11021 if test -z "$ac_cv_path_FGREP"; then 11022 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11023 fi 11024else 11025 ac_cv_path_FGREP=$FGREP 11026fi 11027 11028 fi 11029fi 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11031$as_echo "$ac_cv_path_FGREP" >&6; } 11032 FGREP="$ac_cv_path_FGREP" 11033 11034 11035test -z "$GREP" && GREP=grep 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055# Check whether --with-gnu-ld was given. 11056if test "${with_gnu_ld+set}" = set; then : 11057 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11058else 11059 with_gnu_ld=no 11060fi 11061 11062ac_prog=ld 11063if test yes = "$GCC"; then 11064 # Check if gcc -print-prog-name=ld gives a path. 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11066$as_echo_n "checking for ld used by $CC... " >&6; } 11067 case $host in 11068 *-*-mingw*) 11069 # gcc leaves a trailing carriage return, which upsets mingw 11070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11071 *) 11072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11073 esac 11074 case $ac_prog in 11075 # Accept absolute paths. 11076 [\\/]* | ?:[\\/]*) 11077 re_direlt='/[^/][^/]*/\.\./' 11078 # Canonicalize the pathname of ld 11079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11082 done 11083 test -z "$LD" && LD=$ac_prog 11084 ;; 11085 "") 11086 # If it fails, then pretend we aren't using GCC. 11087 ac_prog=ld 11088 ;; 11089 *) 11090 # If it is relative, then search for the first ld in PATH. 11091 with_gnu_ld=unknown 11092 ;; 11093 esac 11094elif test yes = "$with_gnu_ld"; then 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11096$as_echo_n "checking for GNU ld... " >&6; } 11097else 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11099$as_echo_n "checking for non-GNU ld... " >&6; } 11100fi 11101if ${lt_cv_path_LD+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103else 11104 if test -z "$LD"; then 11105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11106 for ac_dir in $PATH; do 11107 IFS=$lt_save_ifs 11108 test -z "$ac_dir" && ac_dir=. 11109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11110 lt_cv_path_LD=$ac_dir/$ac_prog 11111 # Check to see if the program is GNU ld. I'd rather use --version, 11112 # but apparently some variants of GNU ld only accept -v. 11113 # Break only if it was the GNU/non-GNU ld that we prefer. 11114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11115 *GNU* | *'with BFD'*) 11116 test no != "$with_gnu_ld" && break 11117 ;; 11118 *) 11119 test yes != "$with_gnu_ld" && break 11120 ;; 11121 esac 11122 fi 11123 done 11124 IFS=$lt_save_ifs 11125else 11126 lt_cv_path_LD=$LD # Let the user override the test with a path. 11127fi 11128fi 11129 11130LD=$lt_cv_path_LD 11131if test -n "$LD"; then 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11133$as_echo "$LD" >&6; } 11134else 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11136$as_echo "no" >&6; } 11137fi 11138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11141if ${lt_cv_prog_gnu_ld+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11145case `$LD -v 2>&1 </dev/null` in 11146*GNU* | *'with BFD'*) 11147 lt_cv_prog_gnu_ld=yes 11148 ;; 11149*) 11150 lt_cv_prog_gnu_ld=no 11151 ;; 11152esac 11153fi 11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11155$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11156with_gnu_ld=$lt_cv_prog_gnu_ld 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11167$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11168if ${lt_cv_path_NM+:} false; then : 11169 $as_echo_n "(cached) " >&6 11170else 11171 if test -n "$NM"; then 11172 # Let the user override the test. 11173 lt_cv_path_NM=$NM 11174else 11175 lt_nm_to_check=${ac_tool_prefix}nm 11176 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11177 lt_nm_to_check="$lt_nm_to_check nm" 11178 fi 11179 for lt_tmp_nm in $lt_nm_to_check; do 11180 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11181 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11182 IFS=$lt_save_ifs 11183 test -z "$ac_dir" && ac_dir=. 11184 tmp_nm=$ac_dir/$lt_tmp_nm 11185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11186 # Check to see if the nm accepts a BSD-compat flag. 11187 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11188 # nm: unknown option "B" ignored 11189 # Tru64's nm complains that /dev/null is an invalid object file 11190 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11191 case $build_os in 11192 mingw*) lt_bad_file=conftest.nm/nofile ;; 11193 *) lt_bad_file=/dev/null ;; 11194 esac 11195 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11196 *$lt_bad_file* | *'Invalid file or object type'*) 11197 lt_cv_path_NM="$tmp_nm -B" 11198 break 2 11199 ;; 11200 *) 11201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11202 */dev/null*) 11203 lt_cv_path_NM="$tmp_nm -p" 11204 break 2 11205 ;; 11206 *) 11207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11208 continue # so that we can try to find one that supports BSD flags 11209 ;; 11210 esac 11211 ;; 11212 esac 11213 fi 11214 done 11215 IFS=$lt_save_ifs 11216 done 11217 : ${lt_cv_path_NM=no} 11218fi 11219fi 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11221$as_echo "$lt_cv_path_NM" >&6; } 11222if test no != "$lt_cv_path_NM"; then 11223 NM=$lt_cv_path_NM 11224else 11225 # Didn't find any BSD compatible name lister, look for dumpbin. 11226 if test -n "$DUMPBIN"; then : 11227 # Let the user override the test. 11228 else 11229 if test -n "$ac_tool_prefix"; then 11230 for ac_prog in dumpbin "link -dump" 11231 do 11232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11233set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11235$as_echo_n "checking for $ac_word... " >&6; } 11236if ${ac_cv_prog_DUMPBIN+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 if test -n "$DUMPBIN"; then 11240 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11241else 11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11243for as_dir in $PATH 11244do 11245 IFS=$as_save_IFS 11246 test -z "$as_dir" && as_dir=. 11247 for ac_exec_ext in '' $ac_executable_extensions; do 11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11249 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11251 break 2 11252 fi 11253done 11254 done 11255IFS=$as_save_IFS 11256 11257fi 11258fi 11259DUMPBIN=$ac_cv_prog_DUMPBIN 11260if test -n "$DUMPBIN"; then 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11262$as_echo "$DUMPBIN" >&6; } 11263else 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11265$as_echo "no" >&6; } 11266fi 11267 11268 11269 test -n "$DUMPBIN" && break 11270 done 11271fi 11272if test -z "$DUMPBIN"; then 11273 ac_ct_DUMPBIN=$DUMPBIN 11274 for ac_prog in dumpbin "link -dump" 11275do 11276 # Extract the first word of "$ac_prog", so it can be a program name with args. 11277set dummy $ac_prog; ac_word=$2 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11279$as_echo_n "checking for $ac_word... " >&6; } 11280if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 if test -n "$ac_ct_DUMPBIN"; then 11284 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11285else 11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11287for as_dir in $PATH 11288do 11289 IFS=$as_save_IFS 11290 test -z "$as_dir" && as_dir=. 11291 for ac_exec_ext in '' $ac_executable_extensions; do 11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11293 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11295 break 2 11296 fi 11297done 11298 done 11299IFS=$as_save_IFS 11300 11301fi 11302fi 11303ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11304if test -n "$ac_ct_DUMPBIN"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11306$as_echo "$ac_ct_DUMPBIN" >&6; } 11307else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309$as_echo "no" >&6; } 11310fi 11311 11312 11313 test -n "$ac_ct_DUMPBIN" && break 11314done 11315 11316 if test "x$ac_ct_DUMPBIN" = x; then 11317 DUMPBIN=":" 11318 else 11319 case $cross_compiling:$ac_tool_warned in 11320yes:) 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11323ac_tool_warned=yes ;; 11324esac 11325 DUMPBIN=$ac_ct_DUMPBIN 11326 fi 11327fi 11328 11329 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11330 *COFF*) 11331 DUMPBIN="$DUMPBIN -symbols -headers" 11332 ;; 11333 *) 11334 DUMPBIN=: 11335 ;; 11336 esac 11337 fi 11338 11339 if test : != "$DUMPBIN"; then 11340 NM=$DUMPBIN 11341 fi 11342fi 11343test -z "$NM" && NM=nm 11344 11345 11346 11347 11348 11349 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11351$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11352if ${lt_cv_nm_interface+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354else 11355 lt_cv_nm_interface="BSD nm" 11356 echo "int some_variable = 0;" > conftest.$ac_ext 11357 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11358 (eval "$ac_compile" 2>conftest.err) 11359 cat conftest.err >&5 11360 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11361 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11362 cat conftest.err >&5 11363 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11364 cat conftest.out >&5 11365 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11366 lt_cv_nm_interface="MS dumpbin" 11367 fi 11368 rm -f conftest* 11369fi 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11371$as_echo "$lt_cv_nm_interface" >&6; } 11372 11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11374$as_echo_n "checking whether ln -s works... " >&6; } 11375LN_S=$as_ln_s 11376if test "$LN_S" = "ln -s"; then 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11378$as_echo "yes" >&6; } 11379else 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11381$as_echo "no, using $LN_S" >&6; } 11382fi 11383 11384# find the maximum length of command line arguments 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11386$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11387if ${lt_cv_sys_max_cmd_len+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389else 11390 i=0 11391 teststring=ABCD 11392 11393 case $build_os in 11394 msdosdjgpp*) 11395 # On DJGPP, this test can blow up pretty badly due to problems in libc 11396 # (any single argument exceeding 2000 bytes causes a buffer overrun 11397 # during glob expansion). Even if it were fixed, the result of this 11398 # check would be larger than it should be. 11399 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11400 ;; 11401 11402 gnu*) 11403 # Under GNU Hurd, this test is not required because there is 11404 # no limit to the length of command line arguments. 11405 # Libtool will interpret -1 as no limit whatsoever 11406 lt_cv_sys_max_cmd_len=-1; 11407 ;; 11408 11409 cygwin* | mingw* | cegcc*) 11410 # On Win9x/ME, this test blows up -- it succeeds, but takes 11411 # about 5 minutes as the teststring grows exponentially. 11412 # Worse, since 9x/ME are not pre-emptively multitasking, 11413 # you end up with a "frozen" computer, even though with patience 11414 # the test eventually succeeds (with a max line length of 256k). 11415 # Instead, let's just punt: use the minimum linelength reported by 11416 # all of the supported platforms: 8192 (on NT/2K/XP). 11417 lt_cv_sys_max_cmd_len=8192; 11418 ;; 11419 11420 mint*) 11421 # On MiNT this can take a long time and run out of memory. 11422 lt_cv_sys_max_cmd_len=8192; 11423 ;; 11424 11425 amigaos*) 11426 # On AmigaOS with pdksh, this test takes hours, literally. 11427 # So we just punt and use a minimum line length of 8192. 11428 lt_cv_sys_max_cmd_len=8192; 11429 ;; 11430 11431 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11432 # This has been around since 386BSD, at least. Likely further. 11433 if test -x /sbin/sysctl; then 11434 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11435 elif test -x /usr/sbin/sysctl; then 11436 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11437 else 11438 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11439 fi 11440 # And add a safety zone 11441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11443 ;; 11444 11445 interix*) 11446 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11447 lt_cv_sys_max_cmd_len=196608 11448 ;; 11449 11450 os2*) 11451 # The test takes a long time on OS/2. 11452 lt_cv_sys_max_cmd_len=8192 11453 ;; 11454 11455 osf*) 11456 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11457 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11458 # nice to cause kernel panics so lets avoid the loop below. 11459 # First set a reasonable default. 11460 lt_cv_sys_max_cmd_len=16384 11461 # 11462 if test -x /sbin/sysconfig; then 11463 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11464 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11465 esac 11466 fi 11467 ;; 11468 sco3.2v5*) 11469 lt_cv_sys_max_cmd_len=102400 11470 ;; 11471 sysv5* | sco5v6* | sysv4.2uw2*) 11472 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11473 if test -n "$kargmax"; then 11474 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11475 else 11476 lt_cv_sys_max_cmd_len=32768 11477 fi 11478 ;; 11479 *) 11480 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11481 if test -n "$lt_cv_sys_max_cmd_len" && \ 11482 test undefined != "$lt_cv_sys_max_cmd_len"; then 11483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11485 else 11486 # Make teststring a little bigger before we do anything with it. 11487 # a 1K string should be a reasonable start. 11488 for i in 1 2 3 4 5 6 7 8; do 11489 teststring=$teststring$teststring 11490 done 11491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11492 # If test is not a shell built-in, we'll probably end up computing a 11493 # maximum length that is only half of the actual maximum length, but 11494 # we can't tell. 11495 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11496 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11497 test 17 != "$i" # 1/2 MB should be enough 11498 do 11499 i=`expr $i + 1` 11500 teststring=$teststring$teststring 11501 done 11502 # Only check the string length outside the loop. 11503 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11504 teststring= 11505 # Add a significant safety factor because C++ compilers can tack on 11506 # massive amounts of additional arguments before passing them to the 11507 # linker. It appears as though 1/2 is a usable value. 11508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11509 fi 11510 ;; 11511 esac 11512 11513fi 11514 11515if test -n "$lt_cv_sys_max_cmd_len"; then 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11517$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11518else 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11520$as_echo "none" >&6; } 11521fi 11522max_cmd_len=$lt_cv_sys_max_cmd_len 11523 11524 11525 11526 11527 11528 11529: ${CP="cp -f"} 11530: ${MV="mv -f"} 11531: ${RM="rm -f"} 11532 11533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11534 lt_unset=unset 11535else 11536 lt_unset=false 11537fi 11538 11539 11540 11541 11542 11543# test EBCDIC or ASCII 11544case `echo X|tr X '\101'` in 11545 A) # ASCII based system 11546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11547 lt_SP2NL='tr \040 \012' 11548 lt_NL2SP='tr \015\012 \040\040' 11549 ;; 11550 *) # EBCDIC based system 11551 lt_SP2NL='tr \100 \n' 11552 lt_NL2SP='tr \r\n \100\100' 11553 ;; 11554esac 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11565$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11566if ${lt_cv_to_host_file_cmd+:} false; then : 11567 $as_echo_n "(cached) " >&6 11568else 11569 case $host in 11570 *-*-mingw* ) 11571 case $build in 11572 *-*-mingw* ) # actually msys 11573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11574 ;; 11575 *-*-cygwin* ) 11576 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11577 ;; 11578 * ) # otherwise, assume *nix 11579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11580 ;; 11581 esac 11582 ;; 11583 *-*-cygwin* ) 11584 case $build in 11585 *-*-mingw* ) # actually msys 11586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11587 ;; 11588 *-*-cygwin* ) 11589 lt_cv_to_host_file_cmd=func_convert_file_noop 11590 ;; 11591 * ) # otherwise, assume *nix 11592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11593 ;; 11594 esac 11595 ;; 11596 * ) # unhandled hosts (and "normal" native builds) 11597 lt_cv_to_host_file_cmd=func_convert_file_noop 11598 ;; 11599esac 11600 11601fi 11602 11603to_host_file_cmd=$lt_cv_to_host_file_cmd 11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11605$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11606 11607 11608 11609 11610 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11612$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11613if ${lt_cv_to_tool_file_cmd+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 #assume ordinary cross tools, or native build. 11617lt_cv_to_tool_file_cmd=func_convert_file_noop 11618case $host in 11619 *-*-mingw* ) 11620 case $build in 11621 *-*-mingw* ) # actually msys 11622 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11623 ;; 11624 esac 11625 ;; 11626esac 11627 11628fi 11629 11630to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11632$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11633 11634 11635 11636 11637 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11639$as_echo_n "checking for $LD option to reload object files... " >&6; } 11640if ${lt_cv_ld_reload_flag+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 lt_cv_ld_reload_flag='-r' 11644fi 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11646$as_echo "$lt_cv_ld_reload_flag" >&6; } 11647reload_flag=$lt_cv_ld_reload_flag 11648case $reload_flag in 11649"" | " "*) ;; 11650*) reload_flag=" $reload_flag" ;; 11651esac 11652reload_cmds='$LD$reload_flag -o $output$reload_objs' 11653case $host_os in 11654 cygwin* | mingw* | pw32* | cegcc*) 11655 if test yes != "$GCC"; then 11656 reload_cmds=false 11657 fi 11658 ;; 11659 darwin*) 11660 if test yes = "$GCC"; then 11661 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11662 else 11663 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11664 fi 11665 ;; 11666esac 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676if test -n "$ac_tool_prefix"; then 11677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11678set dummy ${ac_tool_prefix}objdump; ac_word=$2 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11680$as_echo_n "checking for $ac_word... " >&6; } 11681if ${ac_cv_prog_OBJDUMP+:} false; then : 11682 $as_echo_n "(cached) " >&6 11683else 11684 if test -n "$OBJDUMP"; then 11685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11686else 11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11688for as_dir in $PATH 11689do 11690 IFS=$as_save_IFS 11691 test -z "$as_dir" && as_dir=. 11692 for ac_exec_ext in '' $ac_executable_extensions; do 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11696 break 2 11697 fi 11698done 11699 done 11700IFS=$as_save_IFS 11701 11702fi 11703fi 11704OBJDUMP=$ac_cv_prog_OBJDUMP 11705if test -n "$OBJDUMP"; then 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11707$as_echo "$OBJDUMP" >&6; } 11708else 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11710$as_echo "no" >&6; } 11711fi 11712 11713 11714fi 11715if test -z "$ac_cv_prog_OBJDUMP"; then 11716 ac_ct_OBJDUMP=$OBJDUMP 11717 # Extract the first word of "objdump", so it can be a program name with args. 11718set dummy objdump; ac_word=$2 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11720$as_echo_n "checking for $ac_word... " >&6; } 11721if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test -n "$ac_ct_OBJDUMP"; then 11725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11726else 11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11728for as_dir in $PATH 11729do 11730 IFS=$as_save_IFS 11731 test -z "$as_dir" && as_dir=. 11732 for ac_exec_ext in '' $ac_executable_extensions; do 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11734 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11736 break 2 11737 fi 11738done 11739 done 11740IFS=$as_save_IFS 11741 11742fi 11743fi 11744ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11745if test -n "$ac_ct_OBJDUMP"; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11747$as_echo "$ac_ct_OBJDUMP" >&6; } 11748else 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11750$as_echo "no" >&6; } 11751fi 11752 11753 if test "x$ac_ct_OBJDUMP" = x; then 11754 OBJDUMP="false" 11755 else 11756 case $cross_compiling:$ac_tool_warned in 11757yes:) 11758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11760ac_tool_warned=yes ;; 11761esac 11762 OBJDUMP=$ac_ct_OBJDUMP 11763 fi 11764else 11765 OBJDUMP="$ac_cv_prog_OBJDUMP" 11766fi 11767 11768test -z "$OBJDUMP" && OBJDUMP=objdump 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11779$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11780if ${lt_cv_deplibs_check_method+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782else 11783 lt_cv_file_magic_cmd='$MAGIC_CMD' 11784lt_cv_file_magic_test_file= 11785lt_cv_deplibs_check_method='unknown' 11786# Need to set the preceding variable on all platforms that support 11787# interlibrary dependencies. 11788# 'none' -- dependencies not supported. 11789# 'unknown' -- same as none, but documents that we really don't know. 11790# 'pass_all' -- all dependencies passed with no checks. 11791# 'test_compile' -- check by making test program. 11792# 'file_magic [[regex]]' -- check by looking for files in library path 11793# that responds to the $file_magic_cmd with a given extended regex. 11794# If you have 'file' or equivalent on your system and you're not sure 11795# whether 'pass_all' will *always* work, you probably want this one. 11796 11797case $host_os in 11798aix[4-9]*) 11799 lt_cv_deplibs_check_method=pass_all 11800 ;; 11801 11802beos*) 11803 lt_cv_deplibs_check_method=pass_all 11804 ;; 11805 11806bsdi[45]*) 11807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11808 lt_cv_file_magic_cmd='/usr/bin/file -L' 11809 lt_cv_file_magic_test_file=/shlib/libc.so 11810 ;; 11811 11812cygwin*) 11813 # func_win32_libid is a shell function defined in ltmain.sh 11814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11815 lt_cv_file_magic_cmd='func_win32_libid' 11816 ;; 11817 11818mingw* | pw32*) 11819 # Base MSYS/MinGW do not provide the 'file' command needed by 11820 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11821 # unless we find 'file', for example because we are cross-compiling. 11822 if ( file / ) >/dev/null 2>&1; then 11823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11824 lt_cv_file_magic_cmd='func_win32_libid' 11825 else 11826 # Keep this pattern in sync with the one in func_win32_libid. 11827 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11828 lt_cv_file_magic_cmd='$OBJDUMP -f' 11829 fi 11830 ;; 11831 11832cegcc*) 11833 # use the weaker test based on 'objdump'. See mingw*. 11834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11835 lt_cv_file_magic_cmd='$OBJDUMP -f' 11836 ;; 11837 11838darwin* | rhapsody*) 11839 lt_cv_deplibs_check_method=pass_all 11840 ;; 11841 11842freebsd* | dragonfly*) 11843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11844 case $host_cpu in 11845 i*86 ) 11846 # Not sure whether the presence of OpenBSD here was a mistake. 11847 # Let's accept both of them until this is cleared up. 11848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11849 lt_cv_file_magic_cmd=/usr/bin/file 11850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11851 ;; 11852 esac 11853 else 11854 lt_cv_deplibs_check_method=pass_all 11855 fi 11856 ;; 11857 11858haiku*) 11859 lt_cv_deplibs_check_method=pass_all 11860 ;; 11861 11862hpux10.20* | hpux11*) 11863 lt_cv_file_magic_cmd=/usr/bin/file 11864 case $host_cpu in 11865 ia64*) 11866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11867 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11868 ;; 11869 hppa*64*) 11870 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]' 11871 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11872 ;; 11873 *) 11874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11875 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11876 ;; 11877 esac 11878 ;; 11879 11880interix[3-9]*) 11881 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11883 ;; 11884 11885irix5* | irix6* | nonstopux*) 11886 case $LD in 11887 *-32|*"-32 ") libmagic=32-bit;; 11888 *-n32|*"-n32 ") libmagic=N32;; 11889 *-64|*"-64 ") libmagic=64-bit;; 11890 *) libmagic=never-match;; 11891 esac 11892 lt_cv_deplibs_check_method=pass_all 11893 ;; 11894 11895# This must be glibc/ELF. 11896linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11897 lt_cv_deplibs_check_method=pass_all 11898 ;; 11899 11900netbsd*) 11901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11903 else 11904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11905 fi 11906 ;; 11907 11908newos6*) 11909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11910 lt_cv_file_magic_cmd=/usr/bin/file 11911 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11912 ;; 11913 11914*nto* | *qnx*) 11915 lt_cv_deplibs_check_method=pass_all 11916 ;; 11917 11918openbsd* | bitrig*) 11919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11921 else 11922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11923 fi 11924 ;; 11925 11926osf3* | osf4* | osf5*) 11927 lt_cv_deplibs_check_method=pass_all 11928 ;; 11929 11930rdos*) 11931 lt_cv_deplibs_check_method=pass_all 11932 ;; 11933 11934solaris*) 11935 lt_cv_deplibs_check_method=pass_all 11936 ;; 11937 11938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11939 lt_cv_deplibs_check_method=pass_all 11940 ;; 11941 11942sysv4 | sysv4.3*) 11943 case $host_vendor in 11944 motorola) 11945 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]' 11946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11947 ;; 11948 ncr) 11949 lt_cv_deplibs_check_method=pass_all 11950 ;; 11951 sequent) 11952 lt_cv_file_magic_cmd='/bin/file' 11953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11954 ;; 11955 sni) 11956 lt_cv_file_magic_cmd='/bin/file' 11957 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11958 lt_cv_file_magic_test_file=/lib/libc.so 11959 ;; 11960 siemens) 11961 lt_cv_deplibs_check_method=pass_all 11962 ;; 11963 pc) 11964 lt_cv_deplibs_check_method=pass_all 11965 ;; 11966 esac 11967 ;; 11968 11969tpf*) 11970 lt_cv_deplibs_check_method=pass_all 11971 ;; 11972os2*) 11973 lt_cv_deplibs_check_method=pass_all 11974 ;; 11975esac 11976 11977fi 11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11979$as_echo "$lt_cv_deplibs_check_method" >&6; } 11980 11981file_magic_glob= 11982want_nocaseglob=no 11983if test "$build" = "$host"; then 11984 case $host_os in 11985 mingw* | pw32*) 11986 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11987 want_nocaseglob=yes 11988 else 11989 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11990 fi 11991 ;; 11992 esac 11993fi 11994 11995file_magic_cmd=$lt_cv_file_magic_cmd 11996deplibs_check_method=$lt_cv_deplibs_check_method 11997test -z "$deplibs_check_method" && deplibs_check_method=unknown 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020if test -n "$ac_tool_prefix"; then 12021 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12022set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12024$as_echo_n "checking for $ac_word... " >&6; } 12025if ${ac_cv_prog_DLLTOOL+:} false; then : 12026 $as_echo_n "(cached) " >&6 12027else 12028 if test -n "$DLLTOOL"; then 12029 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12030else 12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12032for as_dir in $PATH 12033do 12034 IFS=$as_save_IFS 12035 test -z "$as_dir" && as_dir=. 12036 for ac_exec_ext in '' $ac_executable_extensions; do 12037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12038 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12040 break 2 12041 fi 12042done 12043 done 12044IFS=$as_save_IFS 12045 12046fi 12047fi 12048DLLTOOL=$ac_cv_prog_DLLTOOL 12049if test -n "$DLLTOOL"; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12051$as_echo "$DLLTOOL" >&6; } 12052else 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054$as_echo "no" >&6; } 12055fi 12056 12057 12058fi 12059if test -z "$ac_cv_prog_DLLTOOL"; then 12060 ac_ct_DLLTOOL=$DLLTOOL 12061 # Extract the first word of "dlltool", so it can be a program name with args. 12062set dummy dlltool; ac_word=$2 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12064$as_echo_n "checking for $ac_word... " >&6; } 12065if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067else 12068 if test -n "$ac_ct_DLLTOOL"; then 12069 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12070else 12071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12072for as_dir in $PATH 12073do 12074 IFS=$as_save_IFS 12075 test -z "$as_dir" && as_dir=. 12076 for ac_exec_ext in '' $ac_executable_extensions; do 12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12078 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12080 break 2 12081 fi 12082done 12083 done 12084IFS=$as_save_IFS 12085 12086fi 12087fi 12088ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12089if test -n "$ac_ct_DLLTOOL"; then 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12091$as_echo "$ac_ct_DLLTOOL" >&6; } 12092else 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12094$as_echo "no" >&6; } 12095fi 12096 12097 if test "x$ac_ct_DLLTOOL" = x; then 12098 DLLTOOL="false" 12099 else 12100 case $cross_compiling:$ac_tool_warned in 12101yes:) 12102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12104ac_tool_warned=yes ;; 12105esac 12106 DLLTOOL=$ac_ct_DLLTOOL 12107 fi 12108else 12109 DLLTOOL="$ac_cv_prog_DLLTOOL" 12110fi 12111 12112test -z "$DLLTOOL" && DLLTOOL=dlltool 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12124$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12125if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 lt_cv_sharedlib_from_linklib_cmd='unknown' 12129 12130case $host_os in 12131cygwin* | mingw* | pw32* | cegcc*) 12132 # two different shell functions defined in ltmain.sh; 12133 # decide which one to use based on capabilities of $DLLTOOL 12134 case `$DLLTOOL --help 2>&1` in 12135 *--identify-strict*) 12136 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12137 ;; 12138 *) 12139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12140 ;; 12141 esac 12142 ;; 12143*) 12144 # fallback: assume linklib IS sharedlib 12145 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12146 ;; 12147esac 12148 12149fi 12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12151$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12152sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12153test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12154 12155 12156 12157 12158 12159 12160 12161if test -n "$ac_tool_prefix"; then 12162 for ac_prog in ar 12163 do 12164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12167$as_echo_n "checking for $ac_word... " >&6; } 12168if ${ac_cv_prog_AR+:} false; then : 12169 $as_echo_n "(cached) " >&6 12170else 12171 if test -n "$AR"; then 12172 ac_cv_prog_AR="$AR" # Let the user override the test. 12173else 12174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12175for as_dir in $PATH 12176do 12177 IFS=$as_save_IFS 12178 test -z "$as_dir" && as_dir=. 12179 for ac_exec_ext in '' $ac_executable_extensions; do 12180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12183 break 2 12184 fi 12185done 12186 done 12187IFS=$as_save_IFS 12188 12189fi 12190fi 12191AR=$ac_cv_prog_AR 12192if test -n "$AR"; then 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12194$as_echo "$AR" >&6; } 12195else 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12197$as_echo "no" >&6; } 12198fi 12199 12200 12201 test -n "$AR" && break 12202 done 12203fi 12204if test -z "$AR"; then 12205 ac_ct_AR=$AR 12206 for ac_prog in ar 12207do 12208 # Extract the first word of "$ac_prog", so it can be a program name with args. 12209set dummy $ac_prog; ac_word=$2 12210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12211$as_echo_n "checking for $ac_word... " >&6; } 12212if ${ac_cv_prog_ac_ct_AR+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214else 12215 if test -n "$ac_ct_AR"; then 12216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12217else 12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12219for as_dir in $PATH 12220do 12221 IFS=$as_save_IFS 12222 test -z "$as_dir" && as_dir=. 12223 for ac_exec_ext in '' $ac_executable_extensions; do 12224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12225 ac_cv_prog_ac_ct_AR="$ac_prog" 12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12227 break 2 12228 fi 12229done 12230 done 12231IFS=$as_save_IFS 12232 12233fi 12234fi 12235ac_ct_AR=$ac_cv_prog_ac_ct_AR 12236if test -n "$ac_ct_AR"; then 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12238$as_echo "$ac_ct_AR" >&6; } 12239else 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12241$as_echo "no" >&6; } 12242fi 12243 12244 12245 test -n "$ac_ct_AR" && break 12246done 12247 12248 if test "x$ac_ct_AR" = x; then 12249 AR="false" 12250 else 12251 case $cross_compiling:$ac_tool_warned in 12252yes:) 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12255ac_tool_warned=yes ;; 12256esac 12257 AR=$ac_ct_AR 12258 fi 12259fi 12260 12261: ${AR=ar} 12262: ${AR_FLAGS=cru} 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12275$as_echo_n "checking for archiver @FILE support... " >&6; } 12276if ${lt_cv_ar_at_file+:} false; then : 12277 $as_echo_n "(cached) " >&6 12278else 12279 lt_cv_ar_at_file=no 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283int 12284main () 12285{ 12286 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291if ac_fn_c_try_compile "$LINENO"; then : 12292 echo conftest.$ac_objext > conftest.lst 12293 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12295 (eval $lt_ar_try) 2>&5 12296 ac_status=$? 12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12298 test $ac_status = 0; } 12299 if test 0 -eq "$ac_status"; then 12300 # Ensure the archiver fails upon bogus file names. 12301 rm -f conftest.$ac_objext libconftest.a 12302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12303 (eval $lt_ar_try) 2>&5 12304 ac_status=$? 12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12306 test $ac_status = 0; } 12307 if test 0 -ne "$ac_status"; then 12308 lt_cv_ar_at_file=@ 12309 fi 12310 fi 12311 rm -f conftest.* libconftest.a 12312 12313fi 12314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12315 12316fi 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12318$as_echo "$lt_cv_ar_at_file" >&6; } 12319 12320if test no = "$lt_cv_ar_at_file"; then 12321 archiver_list_spec= 12322else 12323 archiver_list_spec=$lt_cv_ar_at_file 12324fi 12325 12326 12327 12328 12329 12330 12331 12332if test -n "$ac_tool_prefix"; then 12333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12334set dummy ${ac_tool_prefix}strip; ac_word=$2 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12336$as_echo_n "checking for $ac_word... " >&6; } 12337if ${ac_cv_prog_STRIP+:} false; then : 12338 $as_echo_n "(cached) " >&6 12339else 12340 if test -n "$STRIP"; then 12341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12342else 12343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12344for as_dir in $PATH 12345do 12346 IFS=$as_save_IFS 12347 test -z "$as_dir" && as_dir=. 12348 for ac_exec_ext in '' $ac_executable_extensions; do 12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12350 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12352 break 2 12353 fi 12354done 12355 done 12356IFS=$as_save_IFS 12357 12358fi 12359fi 12360STRIP=$ac_cv_prog_STRIP 12361if test -n "$STRIP"; then 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12363$as_echo "$STRIP" >&6; } 12364else 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12366$as_echo "no" >&6; } 12367fi 12368 12369 12370fi 12371if test -z "$ac_cv_prog_STRIP"; then 12372 ac_ct_STRIP=$STRIP 12373 # Extract the first word of "strip", so it can be a program name with args. 12374set dummy strip; ac_word=$2 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12376$as_echo_n "checking for $ac_word... " >&6; } 12377if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 if test -n "$ac_ct_STRIP"; then 12381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12382else 12383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12384for as_dir in $PATH 12385do 12386 IFS=$as_save_IFS 12387 test -z "$as_dir" && as_dir=. 12388 for ac_exec_ext in '' $ac_executable_extensions; do 12389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12390 ac_cv_prog_ac_ct_STRIP="strip" 12391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12392 break 2 12393 fi 12394done 12395 done 12396IFS=$as_save_IFS 12397 12398fi 12399fi 12400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12401if test -n "$ac_ct_STRIP"; then 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12403$as_echo "$ac_ct_STRIP" >&6; } 12404else 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12406$as_echo "no" >&6; } 12407fi 12408 12409 if test "x$ac_ct_STRIP" = x; then 12410 STRIP=":" 12411 else 12412 case $cross_compiling:$ac_tool_warned in 12413yes:) 12414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12416ac_tool_warned=yes ;; 12417esac 12418 STRIP=$ac_ct_STRIP 12419 fi 12420else 12421 STRIP="$ac_cv_prog_STRIP" 12422fi 12423 12424test -z "$STRIP" && STRIP=: 12425 12426 12427 12428 12429 12430 12431if test -n "$ac_tool_prefix"; then 12432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12433set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12435$as_echo_n "checking for $ac_word... " >&6; } 12436if ${ac_cv_prog_RANLIB+:} false; then : 12437 $as_echo_n "(cached) " >&6 12438else 12439 if test -n "$RANLIB"; then 12440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12441else 12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12443for as_dir in $PATH 12444do 12445 IFS=$as_save_IFS 12446 test -z "$as_dir" && as_dir=. 12447 for ac_exec_ext in '' $ac_executable_extensions; do 12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12451 break 2 12452 fi 12453done 12454 done 12455IFS=$as_save_IFS 12456 12457fi 12458fi 12459RANLIB=$ac_cv_prog_RANLIB 12460if test -n "$RANLIB"; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12462$as_echo "$RANLIB" >&6; } 12463else 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12465$as_echo "no" >&6; } 12466fi 12467 12468 12469fi 12470if test -z "$ac_cv_prog_RANLIB"; then 12471 ac_ct_RANLIB=$RANLIB 12472 # Extract the first word of "ranlib", so it can be a program name with args. 12473set dummy ranlib; ac_word=$2 12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12475$as_echo_n "checking for $ac_word... " >&6; } 12476if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 if test -n "$ac_ct_RANLIB"; then 12480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12481else 12482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12483for as_dir in $PATH 12484do 12485 IFS=$as_save_IFS 12486 test -z "$as_dir" && as_dir=. 12487 for ac_exec_ext in '' $ac_executable_extensions; do 12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12489 ac_cv_prog_ac_ct_RANLIB="ranlib" 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12491 break 2 12492 fi 12493done 12494 done 12495IFS=$as_save_IFS 12496 12497fi 12498fi 12499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12500if test -n "$ac_ct_RANLIB"; then 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12502$as_echo "$ac_ct_RANLIB" >&6; } 12503else 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12505$as_echo "no" >&6; } 12506fi 12507 12508 if test "x$ac_ct_RANLIB" = x; then 12509 RANLIB=":" 12510 else 12511 case $cross_compiling:$ac_tool_warned in 12512yes:) 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12515ac_tool_warned=yes ;; 12516esac 12517 RANLIB=$ac_ct_RANLIB 12518 fi 12519else 12520 RANLIB="$ac_cv_prog_RANLIB" 12521fi 12522 12523test -z "$RANLIB" && RANLIB=: 12524 12525 12526 12527 12528 12529 12530# Determine commands to create old-style static archives. 12531old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12532old_postinstall_cmds='chmod 644 $oldlib' 12533old_postuninstall_cmds= 12534 12535if test -n "$RANLIB"; then 12536 case $host_os in 12537 bitrig* | openbsd*) 12538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12539 ;; 12540 *) 12541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12542 ;; 12543 esac 12544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12545fi 12546 12547case $host_os in 12548 darwin*) 12549 lock_old_archive_extraction=yes ;; 12550 *) 12551 lock_old_archive_extraction=no ;; 12552esac 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592# If no C compiler was specified, use CC. 12593LTCC=${LTCC-"$CC"} 12594 12595# If no C compiler flags were specified, use CFLAGS. 12596LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12597 12598# Allow CC to be a program name with arguments. 12599compiler=$CC 12600 12601 12602# Check for command to grab the raw symbol name followed by C symbol from nm. 12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12604$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12605if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12606 $as_echo_n "(cached) " >&6 12607else 12608 12609# These are sane defaults that work on at least a few old systems. 12610# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12611 12612# Character class describing NM global symbol codes. 12613symcode='[BCDEGRST]' 12614 12615# Regexp to match symbols that can be accessed directly from C. 12616sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12617 12618# Define system-specific variables. 12619case $host_os in 12620aix*) 12621 symcode='[BCDT]' 12622 ;; 12623cygwin* | mingw* | pw32* | cegcc*) 12624 symcode='[ABCDGISTW]' 12625 ;; 12626hpux*) 12627 if test ia64 = "$host_cpu"; then 12628 symcode='[ABCDEGRST]' 12629 fi 12630 ;; 12631irix* | nonstopux*) 12632 symcode='[BCDEGRST]' 12633 ;; 12634osf*) 12635 symcode='[BCDEGQRST]' 12636 ;; 12637solaris*) 12638 symcode='[BDRT]' 12639 ;; 12640sco3.2v5*) 12641 symcode='[DT]' 12642 ;; 12643sysv4.2uw2*) 12644 symcode='[DT]' 12645 ;; 12646sysv5* | sco5v6* | unixware* | OpenUNIX*) 12647 symcode='[ABDT]' 12648 ;; 12649sysv4) 12650 symcode='[DFNSTU]' 12651 ;; 12652esac 12653 12654# If we're using GNU nm, then use its standard symbol codes. 12655case `$NM -V 2>&1` in 12656*GNU* | *'with BFD'*) 12657 symcode='[ABCDGIRSTW]' ;; 12658esac 12659 12660if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12661 # Gets list of data symbols to import. 12662 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12663 # Adjust the below global symbol transforms to fixup imported variables. 12664 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12665 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12666 lt_c_name_lib_hook="\ 12667 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12668 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12669else 12670 # Disable hooks by default. 12671 lt_cv_sys_global_symbol_to_import= 12672 lt_cdecl_hook= 12673 lt_c_name_hook= 12674 lt_c_name_lib_hook= 12675fi 12676 12677# Transform an extracted symbol line into a proper C declaration. 12678# Some systems (esp. on ia64) link data and code symbols differently, 12679# so use this general approach. 12680lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12681$lt_cdecl_hook\ 12682" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12683" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12684 12685# Transform an extracted symbol line into symbol name and symbol address 12686lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12687$lt_c_name_hook\ 12688" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12689" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12690 12691# Transform an extracted symbol line into symbol name with lib prefix and 12692# symbol address. 12693lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12694$lt_c_name_lib_hook\ 12695" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12696" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12697" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12698 12699# Handle CRLF in mingw tool chain 12700opt_cr= 12701case $build_os in 12702mingw*) 12703 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12704 ;; 12705esac 12706 12707# Try without a prefix underscore, then with it. 12708for ac_symprfx in "" "_"; do 12709 12710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12711 symxfrm="\\1 $ac_symprfx\\2 \\2" 12712 12713 # Write the raw and C identifiers. 12714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12715 # Fake it for dumpbin and say T for any non-static function, 12716 # D for any global variable and I for any imported variable. 12717 # Also find C++ and __fastcall symbols from MSVC++, 12718 # which start with @ or ?. 12719 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12720" {last_section=section; section=\$ 3};"\ 12721" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12722" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12723" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12724" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12725" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12726" \$ 0!~/External *\|/{next};"\ 12727" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12728" {if(hide[section]) next};"\ 12729" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12730" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12731" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12732" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12733" ' prfx=^$ac_symprfx" 12734 else 12735 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12736 fi 12737 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12738 12739 # Check to see that the pipe works correctly. 12740 pipe_works=no 12741 12742 rm -f conftest* 12743 cat > conftest.$ac_ext <<_LT_EOF 12744#ifdef __cplusplus 12745extern "C" { 12746#endif 12747char nm_test_var; 12748void nm_test_func(void); 12749void nm_test_func(void){} 12750#ifdef __cplusplus 12751} 12752#endif 12753int main(){nm_test_var='a';nm_test_func();return(0);} 12754_LT_EOF 12755 12756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12757 (eval $ac_compile) 2>&5 12758 ac_status=$? 12759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12760 test $ac_status = 0; }; then 12761 # Now try to grab the symbols. 12762 nlist=conftest.nm 12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12764 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12765 ac_status=$? 12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12767 test $ac_status = 0; } && test -s "$nlist"; then 12768 # Try sorting and uniquifying the output. 12769 if sort "$nlist" | uniq > "$nlist"T; then 12770 mv -f "$nlist"T "$nlist" 12771 else 12772 rm -f "$nlist"T 12773 fi 12774 12775 # Make sure that we snagged all the symbols we need. 12776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12778 cat <<_LT_EOF > conftest.$ac_ext 12779/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12780#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12781/* DATA imports from DLLs on WIN32 can't be const, because runtime 12782 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12783# define LT_DLSYM_CONST 12784#elif defined __osf__ 12785/* This system does not cope well with relocations in const data. */ 12786# define LT_DLSYM_CONST 12787#else 12788# define LT_DLSYM_CONST const 12789#endif 12790 12791#ifdef __cplusplus 12792extern "C" { 12793#endif 12794 12795_LT_EOF 12796 # Now generate the symbol file. 12797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12798 12799 cat <<_LT_EOF >> conftest.$ac_ext 12800 12801/* The mapping between symbol names and symbols. */ 12802LT_DLSYM_CONST struct { 12803 const char *name; 12804 void *address; 12805} 12806lt__PROGRAM__LTX_preloaded_symbols[] = 12807{ 12808 { "@PROGRAM@", (void *) 0 }, 12809_LT_EOF 12810 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12811 cat <<\_LT_EOF >> conftest.$ac_ext 12812 {0, (void *) 0} 12813}; 12814 12815/* This works around a problem in FreeBSD linker */ 12816#ifdef FREEBSD_WORKAROUND 12817static const void *lt_preloaded_setup() { 12818 return lt__PROGRAM__LTX_preloaded_symbols; 12819} 12820#endif 12821 12822#ifdef __cplusplus 12823} 12824#endif 12825_LT_EOF 12826 # Now try linking the two files. 12827 mv conftest.$ac_objext conftstm.$ac_objext 12828 lt_globsym_save_LIBS=$LIBS 12829 lt_globsym_save_CFLAGS=$CFLAGS 12830 LIBS=conftstm.$ac_objext 12831 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12833 (eval $ac_link) 2>&5 12834 ac_status=$? 12835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12836 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12837 pipe_works=yes 12838 fi 12839 LIBS=$lt_globsym_save_LIBS 12840 CFLAGS=$lt_globsym_save_CFLAGS 12841 else 12842 echo "cannot find nm_test_func in $nlist" >&5 12843 fi 12844 else 12845 echo "cannot find nm_test_var in $nlist" >&5 12846 fi 12847 else 12848 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12849 fi 12850 else 12851 echo "$progname: failed program was:" >&5 12852 cat conftest.$ac_ext >&5 12853 fi 12854 rm -rf conftest* conftst* 12855 12856 # Do not use the global_symbol_pipe unless it works. 12857 if test yes = "$pipe_works"; then 12858 break 12859 else 12860 lt_cv_sys_global_symbol_pipe= 12861 fi 12862done 12863 12864fi 12865 12866if test -z "$lt_cv_sys_global_symbol_pipe"; then 12867 lt_cv_sys_global_symbol_to_cdecl= 12868fi 12869if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12871$as_echo "failed" >&6; } 12872else 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12874$as_echo "ok" >&6; } 12875fi 12876 12877# Response file support. 12878if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12879 nm_file_list_spec='@' 12880elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12881 nm_file_list_spec='@' 12882fi 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12921$as_echo_n "checking for sysroot... " >&6; } 12922 12923# Check whether --with-sysroot was given. 12924if test "${with_sysroot+set}" = set; then : 12925 withval=$with_sysroot; 12926else 12927 with_sysroot=no 12928fi 12929 12930 12931lt_sysroot= 12932case $with_sysroot in #( 12933 yes) 12934 if test yes = "$GCC"; then 12935 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12936 fi 12937 ;; #( 12938 /*) 12939 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12940 ;; #( 12941 no|'') 12942 ;; #( 12943 *) 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 12945$as_echo "$with_sysroot" >&6; } 12946 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12947 ;; 12948esac 12949 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12951$as_echo "${lt_sysroot:-no}" >&6; } 12952 12953 12954 12955 12956 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 12958$as_echo_n "checking for a working dd... " >&6; } 12959if ${ac_cv_path_lt_DD+:} false; then : 12960 $as_echo_n "(cached) " >&6 12961else 12962 printf 0123456789abcdef0123456789abcdef >conftest.i 12963cat conftest.i conftest.i >conftest2.i 12964: ${lt_DD:=$DD} 12965if test -z "$lt_DD"; then 12966 ac_path_lt_DD_found=false 12967 # Loop through the user's path and test for each of PROGNAME-LIST 12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12969for as_dir in $PATH 12970do 12971 IFS=$as_save_IFS 12972 test -z "$as_dir" && as_dir=. 12973 for ac_prog in dd; do 12974 for ac_exec_ext in '' $ac_executable_extensions; do 12975 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 12976 as_fn_executable_p "$ac_path_lt_DD" || continue 12977if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 12978 cmp -s conftest.i conftest.out \ 12979 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 12980fi 12981 $ac_path_lt_DD_found && break 3 12982 done 12983 done 12984 done 12985IFS=$as_save_IFS 12986 if test -z "$ac_cv_path_lt_DD"; then 12987 : 12988 fi 12989else 12990 ac_cv_path_lt_DD=$lt_DD 12991fi 12992 12993rm -f conftest.i conftest2.i conftest.out 12994fi 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 12996$as_echo "$ac_cv_path_lt_DD" >&6; } 12997 12998 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13000$as_echo_n "checking how to truncate binary pipes... " >&6; } 13001if ${lt_cv_truncate_bin+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 printf 0123456789abcdef0123456789abcdef >conftest.i 13005cat conftest.i conftest.i >conftest2.i 13006lt_cv_truncate_bin= 13007if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13008 cmp -s conftest.i conftest.out \ 13009 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13010fi 13011rm -f conftest.i conftest2.i conftest.out 13012test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13013fi 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13015$as_echo "$lt_cv_truncate_bin" >&6; } 13016 13017 13018 13019 13020 13021 13022 13023# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13024func_cc_basename () 13025{ 13026 for cc_temp in $*""; do 13027 case $cc_temp in 13028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13030 \-*) ;; 13031 *) break;; 13032 esac 13033 done 13034 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13035} 13036 13037# Check whether --enable-libtool-lock was given. 13038if test "${enable_libtool_lock+set}" = set; then : 13039 enableval=$enable_libtool_lock; 13040fi 13041 13042test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13043 13044# Some flags need to be propagated to the compiler or linker for good 13045# libtool support. 13046case $host in 13047ia64-*-hpux*) 13048 # Find out what ABI is being produced by ac_compile, and set mode 13049 # options accordingly. 13050 echo 'int i;' > conftest.$ac_ext 13051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13052 (eval $ac_compile) 2>&5 13053 ac_status=$? 13054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13055 test $ac_status = 0; }; then 13056 case `/usr/bin/file conftest.$ac_objext` in 13057 *ELF-32*) 13058 HPUX_IA64_MODE=32 13059 ;; 13060 *ELF-64*) 13061 HPUX_IA64_MODE=64 13062 ;; 13063 esac 13064 fi 13065 rm -rf conftest* 13066 ;; 13067*-*-irix6*) 13068 # Find out what ABI is being produced by ac_compile, and set linker 13069 # options accordingly. 13070 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13072 (eval $ac_compile) 2>&5 13073 ac_status=$? 13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13075 test $ac_status = 0; }; then 13076 if test yes = "$lt_cv_prog_gnu_ld"; then 13077 case `/usr/bin/file conftest.$ac_objext` in 13078 *32-bit*) 13079 LD="${LD-ld} -melf32bsmip" 13080 ;; 13081 *N32*) 13082 LD="${LD-ld} -melf32bmipn32" 13083 ;; 13084 *64-bit*) 13085 LD="${LD-ld} -melf64bmip" 13086 ;; 13087 esac 13088 else 13089 case `/usr/bin/file conftest.$ac_objext` in 13090 *32-bit*) 13091 LD="${LD-ld} -32" 13092 ;; 13093 *N32*) 13094 LD="${LD-ld} -n32" 13095 ;; 13096 *64-bit*) 13097 LD="${LD-ld} -64" 13098 ;; 13099 esac 13100 fi 13101 fi 13102 rm -rf conftest* 13103 ;; 13104 13105mips64*-*linux*) 13106 # Find out what ABI is being produced by ac_compile, and set linker 13107 # options accordingly. 13108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13110 (eval $ac_compile) 2>&5 13111 ac_status=$? 13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13113 test $ac_status = 0; }; then 13114 emul=elf 13115 case `/usr/bin/file conftest.$ac_objext` in 13116 *32-bit*) 13117 emul="${emul}32" 13118 ;; 13119 *64-bit*) 13120 emul="${emul}64" 13121 ;; 13122 esac 13123 case `/usr/bin/file conftest.$ac_objext` in 13124 *MSB*) 13125 emul="${emul}btsmip" 13126 ;; 13127 *LSB*) 13128 emul="${emul}ltsmip" 13129 ;; 13130 esac 13131 case `/usr/bin/file conftest.$ac_objext` in 13132 *N32*) 13133 emul="${emul}n32" 13134 ;; 13135 esac 13136 LD="${LD-ld} -m $emul" 13137 fi 13138 rm -rf conftest* 13139 ;; 13140 13141x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13142s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13143 # Find out what ABI is being produced by ac_compile, and set linker 13144 # options accordingly. Note that the listed cases only cover the 13145 # situations where additional linker options are needed (such as when 13146 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13147 # vice versa); the common cases where no linker options are needed do 13148 # not appear in the list. 13149 echo 'int i;' > conftest.$ac_ext 13150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13151 (eval $ac_compile) 2>&5 13152 ac_status=$? 13153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13154 test $ac_status = 0; }; then 13155 case `/usr/bin/file conftest.o` in 13156 *32-bit*) 13157 case $host in 13158 x86_64-*kfreebsd*-gnu) 13159 LD="${LD-ld} -m elf_i386_fbsd" 13160 ;; 13161 x86_64-*linux*) 13162 case `/usr/bin/file conftest.o` in 13163 *x86-64*) 13164 LD="${LD-ld} -m elf32_x86_64" 13165 ;; 13166 *) 13167 LD="${LD-ld} -m elf_i386" 13168 ;; 13169 esac 13170 ;; 13171 powerpc64le-*linux*) 13172 LD="${LD-ld} -m elf32lppclinux" 13173 ;; 13174 powerpc64-*linux*) 13175 LD="${LD-ld} -m elf32ppclinux" 13176 ;; 13177 s390x-*linux*) 13178 LD="${LD-ld} -m elf_s390" 13179 ;; 13180 sparc64-*linux*) 13181 LD="${LD-ld} -m elf32_sparc" 13182 ;; 13183 esac 13184 ;; 13185 *64-bit*) 13186 case $host in 13187 x86_64-*kfreebsd*-gnu) 13188 LD="${LD-ld} -m elf_x86_64_fbsd" 13189 ;; 13190 x86_64-*linux*) 13191 LD="${LD-ld} -m elf_x86_64" 13192 ;; 13193 powerpcle-*linux*) 13194 LD="${LD-ld} -m elf64lppc" 13195 ;; 13196 powerpc-*linux*) 13197 LD="${LD-ld} -m elf64ppc" 13198 ;; 13199 s390*-*linux*|s390*-*tpf*) 13200 LD="${LD-ld} -m elf64_s390" 13201 ;; 13202 sparc*-*linux*) 13203 LD="${LD-ld} -m elf64_sparc" 13204 ;; 13205 esac 13206 ;; 13207 esac 13208 fi 13209 rm -rf conftest* 13210 ;; 13211 13212*-*-sco3.2v5*) 13213 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13214 SAVE_CFLAGS=$CFLAGS 13215 CFLAGS="$CFLAGS -belf" 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13217$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13218if ${lt_cv_cc_needs_belf+:} false; then : 13219 $as_echo_n "(cached) " >&6 13220else 13221 ac_ext=c 13222ac_cpp='$CPP $CPPFLAGS' 13223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13225ac_compiler_gnu=$ac_cv_c_compiler_gnu 13226 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229 13230int 13231main () 13232{ 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_link "$LINENO"; then : 13239 lt_cv_cc_needs_belf=yes 13240else 13241 lt_cv_cc_needs_belf=no 13242fi 13243rm -f core conftest.err conftest.$ac_objext \ 13244 conftest$ac_exeext conftest.$ac_ext 13245 ac_ext=c 13246ac_cpp='$CPP $CPPFLAGS' 13247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13249ac_compiler_gnu=$ac_cv_c_compiler_gnu 13250 13251fi 13252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13253$as_echo "$lt_cv_cc_needs_belf" >&6; } 13254 if test yes != "$lt_cv_cc_needs_belf"; then 13255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13256 CFLAGS=$SAVE_CFLAGS 13257 fi 13258 ;; 13259*-*solaris*) 13260 # Find out what ABI is being produced by ac_compile, and set linker 13261 # options accordingly. 13262 echo 'int i;' > conftest.$ac_ext 13263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13264 (eval $ac_compile) 2>&5 13265 ac_status=$? 13266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13267 test $ac_status = 0; }; then 13268 case `/usr/bin/file conftest.o` in 13269 *64-bit*) 13270 case $lt_cv_prog_gnu_ld in 13271 yes*) 13272 case $host in 13273 i?86-*-solaris*|x86_64-*-solaris*) 13274 LD="${LD-ld} -m elf_x86_64" 13275 ;; 13276 sparc*-*-solaris*) 13277 LD="${LD-ld} -m elf64_sparc" 13278 ;; 13279 esac 13280 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13281 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13282 LD=${LD-ld}_sol2 13283 fi 13284 ;; 13285 *) 13286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13287 LD="${LD-ld} -64" 13288 fi 13289 ;; 13290 esac 13291 ;; 13292 esac 13293 fi 13294 rm -rf conftest* 13295 ;; 13296esac 13297 13298need_locks=$enable_libtool_lock 13299 13300if test -n "$ac_tool_prefix"; then 13301 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13302set dummy ${ac_tool_prefix}mt; ac_word=$2 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13304$as_echo_n "checking for $ac_word... " >&6; } 13305if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 if test -n "$MANIFEST_TOOL"; then 13309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13310else 13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13312for as_dir in $PATH 13313do 13314 IFS=$as_save_IFS 13315 test -z "$as_dir" && as_dir=. 13316 for ac_exec_ext in '' $ac_executable_extensions; do 13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13318 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13320 break 2 13321 fi 13322done 13323 done 13324IFS=$as_save_IFS 13325 13326fi 13327fi 13328MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13329if test -n "$MANIFEST_TOOL"; then 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13331$as_echo "$MANIFEST_TOOL" >&6; } 13332else 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13334$as_echo "no" >&6; } 13335fi 13336 13337 13338fi 13339if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13340 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13341 # Extract the first word of "mt", so it can be a program name with args. 13342set dummy mt; ac_word=$2 13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13344$as_echo_n "checking for $ac_word... " >&6; } 13345if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347else 13348 if test -n "$ac_ct_MANIFEST_TOOL"; then 13349 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13350else 13351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13352for as_dir in $PATH 13353do 13354 IFS=$as_save_IFS 13355 test -z "$as_dir" && as_dir=. 13356 for ac_exec_ext in '' $ac_executable_extensions; do 13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13358 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13360 break 2 13361 fi 13362done 13363 done 13364IFS=$as_save_IFS 13365 13366fi 13367fi 13368ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13369if test -n "$ac_ct_MANIFEST_TOOL"; then 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13371$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13372else 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13374$as_echo "no" >&6; } 13375fi 13376 13377 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13378 MANIFEST_TOOL=":" 13379 else 13380 case $cross_compiling:$ac_tool_warned in 13381yes:) 13382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13384ac_tool_warned=yes ;; 13385esac 13386 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13387 fi 13388else 13389 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13390fi 13391 13392test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13394$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13395if ${lt_cv_path_mainfest_tool+:} false; then : 13396 $as_echo_n "(cached) " >&6 13397else 13398 lt_cv_path_mainfest_tool=no 13399 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13400 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13401 cat conftest.err >&5 13402 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13403 lt_cv_path_mainfest_tool=yes 13404 fi 13405 rm -f conftest* 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13408$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13409if test yes != "$lt_cv_path_mainfest_tool"; then 13410 MANIFEST_TOOL=: 13411fi 13412 13413 13414 13415 13416 13417 13418 case $host_os in 13419 rhapsody* | darwin*) 13420 if test -n "$ac_tool_prefix"; then 13421 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13422set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13424$as_echo_n "checking for $ac_word... " >&6; } 13425if ${ac_cv_prog_DSYMUTIL+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 if test -n "$DSYMUTIL"; then 13429 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13430else 13431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13432for as_dir in $PATH 13433do 13434 IFS=$as_save_IFS 13435 test -z "$as_dir" && as_dir=. 13436 for ac_exec_ext in '' $ac_executable_extensions; do 13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13440 break 2 13441 fi 13442done 13443 done 13444IFS=$as_save_IFS 13445 13446fi 13447fi 13448DSYMUTIL=$ac_cv_prog_DSYMUTIL 13449if test -n "$DSYMUTIL"; then 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13451$as_echo "$DSYMUTIL" >&6; } 13452else 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13454$as_echo "no" >&6; } 13455fi 13456 13457 13458fi 13459if test -z "$ac_cv_prog_DSYMUTIL"; then 13460 ac_ct_DSYMUTIL=$DSYMUTIL 13461 # Extract the first word of "dsymutil", so it can be a program name with args. 13462set dummy dsymutil; ac_word=$2 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13464$as_echo_n "checking for $ac_word... " >&6; } 13465if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13466 $as_echo_n "(cached) " >&6 13467else 13468 if test -n "$ac_ct_DSYMUTIL"; then 13469 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13470else 13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13472for as_dir in $PATH 13473do 13474 IFS=$as_save_IFS 13475 test -z "$as_dir" && as_dir=. 13476 for ac_exec_ext in '' $ac_executable_extensions; do 13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13478 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13480 break 2 13481 fi 13482done 13483 done 13484IFS=$as_save_IFS 13485 13486fi 13487fi 13488ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13489if test -n "$ac_ct_DSYMUTIL"; then 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13491$as_echo "$ac_ct_DSYMUTIL" >&6; } 13492else 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13494$as_echo "no" >&6; } 13495fi 13496 13497 if test "x$ac_ct_DSYMUTIL" = x; then 13498 DSYMUTIL=":" 13499 else 13500 case $cross_compiling:$ac_tool_warned in 13501yes:) 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13504ac_tool_warned=yes ;; 13505esac 13506 DSYMUTIL=$ac_ct_DSYMUTIL 13507 fi 13508else 13509 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13510fi 13511 13512 if test -n "$ac_tool_prefix"; then 13513 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13514set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13516$as_echo_n "checking for $ac_word... " >&6; } 13517if ${ac_cv_prog_NMEDIT+:} false; then : 13518 $as_echo_n "(cached) " >&6 13519else 13520 if test -n "$NMEDIT"; then 13521 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13522else 13523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13524for as_dir in $PATH 13525do 13526 IFS=$as_save_IFS 13527 test -z "$as_dir" && as_dir=. 13528 for ac_exec_ext in '' $ac_executable_extensions; do 13529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13530 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13532 break 2 13533 fi 13534done 13535 done 13536IFS=$as_save_IFS 13537 13538fi 13539fi 13540NMEDIT=$ac_cv_prog_NMEDIT 13541if test -n "$NMEDIT"; then 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13543$as_echo "$NMEDIT" >&6; } 13544else 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13546$as_echo "no" >&6; } 13547fi 13548 13549 13550fi 13551if test -z "$ac_cv_prog_NMEDIT"; then 13552 ac_ct_NMEDIT=$NMEDIT 13553 # Extract the first word of "nmedit", so it can be a program name with args. 13554set dummy nmedit; ac_word=$2 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13556$as_echo_n "checking for $ac_word... " >&6; } 13557if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559else 13560 if test -n "$ac_ct_NMEDIT"; then 13561 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13562else 13563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13564for as_dir in $PATH 13565do 13566 IFS=$as_save_IFS 13567 test -z "$as_dir" && as_dir=. 13568 for ac_exec_ext in '' $ac_executable_extensions; do 13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13570 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13572 break 2 13573 fi 13574done 13575 done 13576IFS=$as_save_IFS 13577 13578fi 13579fi 13580ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13581if test -n "$ac_ct_NMEDIT"; then 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13583$as_echo "$ac_ct_NMEDIT" >&6; } 13584else 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13586$as_echo "no" >&6; } 13587fi 13588 13589 if test "x$ac_ct_NMEDIT" = x; then 13590 NMEDIT=":" 13591 else 13592 case $cross_compiling:$ac_tool_warned in 13593yes:) 13594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13596ac_tool_warned=yes ;; 13597esac 13598 NMEDIT=$ac_ct_NMEDIT 13599 fi 13600else 13601 NMEDIT="$ac_cv_prog_NMEDIT" 13602fi 13603 13604 if test -n "$ac_tool_prefix"; then 13605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13606set dummy ${ac_tool_prefix}lipo; ac_word=$2 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13608$as_echo_n "checking for $ac_word... " >&6; } 13609if ${ac_cv_prog_LIPO+:} false; then : 13610 $as_echo_n "(cached) " >&6 13611else 13612 if test -n "$LIPO"; then 13613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13614else 13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13616for as_dir in $PATH 13617do 13618 IFS=$as_save_IFS 13619 test -z "$as_dir" && as_dir=. 13620 for ac_exec_ext in '' $ac_executable_extensions; do 13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13624 break 2 13625 fi 13626done 13627 done 13628IFS=$as_save_IFS 13629 13630fi 13631fi 13632LIPO=$ac_cv_prog_LIPO 13633if test -n "$LIPO"; then 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13635$as_echo "$LIPO" >&6; } 13636else 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13638$as_echo "no" >&6; } 13639fi 13640 13641 13642fi 13643if test -z "$ac_cv_prog_LIPO"; then 13644 ac_ct_LIPO=$LIPO 13645 # Extract the first word of "lipo", so it can be a program name with args. 13646set dummy lipo; ac_word=$2 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13648$as_echo_n "checking for $ac_word... " >&6; } 13649if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 if test -n "$ac_ct_LIPO"; then 13653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13654else 13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13656for as_dir in $PATH 13657do 13658 IFS=$as_save_IFS 13659 test -z "$as_dir" && as_dir=. 13660 for ac_exec_ext in '' $ac_executable_extensions; do 13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13662 ac_cv_prog_ac_ct_LIPO="lipo" 13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13664 break 2 13665 fi 13666done 13667 done 13668IFS=$as_save_IFS 13669 13670fi 13671fi 13672ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13673if test -n "$ac_ct_LIPO"; then 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13675$as_echo "$ac_ct_LIPO" >&6; } 13676else 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13678$as_echo "no" >&6; } 13679fi 13680 13681 if test "x$ac_ct_LIPO" = x; then 13682 LIPO=":" 13683 else 13684 case $cross_compiling:$ac_tool_warned in 13685yes:) 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13688ac_tool_warned=yes ;; 13689esac 13690 LIPO=$ac_ct_LIPO 13691 fi 13692else 13693 LIPO="$ac_cv_prog_LIPO" 13694fi 13695 13696 if test -n "$ac_tool_prefix"; then 13697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13698set dummy ${ac_tool_prefix}otool; ac_word=$2 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13700$as_echo_n "checking for $ac_word... " >&6; } 13701if ${ac_cv_prog_OTOOL+:} false; then : 13702 $as_echo_n "(cached) " >&6 13703else 13704 if test -n "$OTOOL"; then 13705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13706else 13707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13708for as_dir in $PATH 13709do 13710 IFS=$as_save_IFS 13711 test -z "$as_dir" && as_dir=. 13712 for ac_exec_ext in '' $ac_executable_extensions; do 13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13716 break 2 13717 fi 13718done 13719 done 13720IFS=$as_save_IFS 13721 13722fi 13723fi 13724OTOOL=$ac_cv_prog_OTOOL 13725if test -n "$OTOOL"; then 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13727$as_echo "$OTOOL" >&6; } 13728else 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13730$as_echo "no" >&6; } 13731fi 13732 13733 13734fi 13735if test -z "$ac_cv_prog_OTOOL"; then 13736 ac_ct_OTOOL=$OTOOL 13737 # Extract the first word of "otool", so it can be a program name with args. 13738set dummy otool; ac_word=$2 13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13740$as_echo_n "checking for $ac_word... " >&6; } 13741if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 if test -n "$ac_ct_OTOOL"; then 13745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13746else 13747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13748for as_dir in $PATH 13749do 13750 IFS=$as_save_IFS 13751 test -z "$as_dir" && as_dir=. 13752 for ac_exec_ext in '' $ac_executable_extensions; do 13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13754 ac_cv_prog_ac_ct_OTOOL="otool" 13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13756 break 2 13757 fi 13758done 13759 done 13760IFS=$as_save_IFS 13761 13762fi 13763fi 13764ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13765if test -n "$ac_ct_OTOOL"; then 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13767$as_echo "$ac_ct_OTOOL" >&6; } 13768else 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13770$as_echo "no" >&6; } 13771fi 13772 13773 if test "x$ac_ct_OTOOL" = x; then 13774 OTOOL=":" 13775 else 13776 case $cross_compiling:$ac_tool_warned in 13777yes:) 13778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13780ac_tool_warned=yes ;; 13781esac 13782 OTOOL=$ac_ct_OTOOL 13783 fi 13784else 13785 OTOOL="$ac_cv_prog_OTOOL" 13786fi 13787 13788 if test -n "$ac_tool_prefix"; then 13789 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13790set dummy ${ac_tool_prefix}otool64; ac_word=$2 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13792$as_echo_n "checking for $ac_word... " >&6; } 13793if ${ac_cv_prog_OTOOL64+:} false; then : 13794 $as_echo_n "(cached) " >&6 13795else 13796 if test -n "$OTOOL64"; then 13797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13798else 13799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13800for as_dir in $PATH 13801do 13802 IFS=$as_save_IFS 13803 test -z "$as_dir" && as_dir=. 13804 for ac_exec_ext in '' $ac_executable_extensions; do 13805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13806 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13808 break 2 13809 fi 13810done 13811 done 13812IFS=$as_save_IFS 13813 13814fi 13815fi 13816OTOOL64=$ac_cv_prog_OTOOL64 13817if test -n "$OTOOL64"; then 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13819$as_echo "$OTOOL64" >&6; } 13820else 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13822$as_echo "no" >&6; } 13823fi 13824 13825 13826fi 13827if test -z "$ac_cv_prog_OTOOL64"; then 13828 ac_ct_OTOOL64=$OTOOL64 13829 # Extract the first word of "otool64", so it can be a program name with args. 13830set dummy otool64; ac_word=$2 13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13832$as_echo_n "checking for $ac_word... " >&6; } 13833if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 if test -n "$ac_ct_OTOOL64"; then 13837 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13838else 13839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13840for as_dir in $PATH 13841do 13842 IFS=$as_save_IFS 13843 test -z "$as_dir" && as_dir=. 13844 for ac_exec_ext in '' $ac_executable_extensions; do 13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13846 ac_cv_prog_ac_ct_OTOOL64="otool64" 13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13848 break 2 13849 fi 13850done 13851 done 13852IFS=$as_save_IFS 13853 13854fi 13855fi 13856ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13857if test -n "$ac_ct_OTOOL64"; then 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13859$as_echo "$ac_ct_OTOOL64" >&6; } 13860else 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13862$as_echo "no" >&6; } 13863fi 13864 13865 if test "x$ac_ct_OTOOL64" = x; then 13866 OTOOL64=":" 13867 else 13868 case $cross_compiling:$ac_tool_warned in 13869yes:) 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13872ac_tool_warned=yes ;; 13873esac 13874 OTOOL64=$ac_ct_OTOOL64 13875 fi 13876else 13877 OTOOL64="$ac_cv_prog_OTOOL64" 13878fi 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13907$as_echo_n "checking for -single_module linker flag... " >&6; } 13908if ${lt_cv_apple_cc_single_mod+:} false; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 lt_cv_apple_cc_single_mod=no 13912 if test -z "$LT_MULTI_MODULE"; then 13913 # By default we will add the -single_module flag. You can override 13914 # by either setting the environment variable LT_MULTI_MODULE 13915 # non-empty at configure time, or by adding -multi_module to the 13916 # link flags. 13917 rm -rf libconftest.dylib* 13918 echo "int foo(void){return 1;}" > conftest.c 13919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13920-dynamiclib -Wl,-single_module conftest.c" >&5 13921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13923 _lt_result=$? 13924 # If there is a non-empty error log, and "single_module" 13925 # appears in it, assume the flag caused a linker warning 13926 if test -s conftest.err && $GREP single_module conftest.err; then 13927 cat conftest.err >&5 13928 # Otherwise, if the output was created with a 0 exit code from 13929 # the compiler, it worked. 13930 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 13931 lt_cv_apple_cc_single_mod=yes 13932 else 13933 cat conftest.err >&5 13934 fi 13935 rm -rf libconftest.dylib* 13936 rm -f conftest.* 13937 fi 13938fi 13939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13940$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13941 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13943$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13944if ${lt_cv_ld_exported_symbols_list+:} false; then : 13945 $as_echo_n "(cached) " >&6 13946else 13947 lt_cv_ld_exported_symbols_list=no 13948 save_LDFLAGS=$LDFLAGS 13949 echo "_main" > conftest.sym 13950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953 13954int 13955main () 13956{ 13957 13958 ; 13959 return 0; 13960} 13961_ACEOF 13962if ac_fn_c_try_link "$LINENO"; then : 13963 lt_cv_ld_exported_symbols_list=yes 13964else 13965 lt_cv_ld_exported_symbols_list=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext \ 13968 conftest$ac_exeext conftest.$ac_ext 13969 LDFLAGS=$save_LDFLAGS 13970 13971fi 13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13973$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13974 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13976$as_echo_n "checking for -force_load linker flag... " >&6; } 13977if ${lt_cv_ld_force_load+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 lt_cv_ld_force_load=no 13981 cat > conftest.c << _LT_EOF 13982int forced_loaded() { return 2;} 13983_LT_EOF 13984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13986 echo "$AR cru libconftest.a conftest.o" >&5 13987 $AR cru libconftest.a conftest.o 2>&5 13988 echo "$RANLIB libconftest.a" >&5 13989 $RANLIB libconftest.a 2>&5 13990 cat > conftest.c << _LT_EOF 13991int main() { return 0;} 13992_LT_EOF 13993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13995 _lt_result=$? 13996 if test -s conftest.err && $GREP force_load conftest.err; then 13997 cat conftest.err >&5 13998 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 13999 lt_cv_ld_force_load=yes 14000 else 14001 cat conftest.err >&5 14002 fi 14003 rm -f conftest.err libconftest.a conftest conftest.c 14004 rm -rf conftest.dSYM 14005 14006fi 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14008$as_echo "$lt_cv_ld_force_load" >&6; } 14009 case $host_os in 14010 rhapsody* | darwin1.[012]) 14011 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14012 darwin1.*) 14013 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14014 darwin*) # darwin 5.x on 14015 # if running on 10.5 or later, the deployment target defaults 14016 # to the OS version, if on x86, and 10.4, the deployment 14017 # target defaults to 10.4. Don't you love it? 14018 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14019 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14020 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14021 10.[012][,.]*) 14022 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14023 10.*) 14024 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14025 esac 14026 ;; 14027 esac 14028 if test yes = "$lt_cv_apple_cc_single_mod"; then 14029 _lt_dar_single_mod='$single_module' 14030 fi 14031 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14032 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14033 else 14034 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14035 fi 14036 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14037 _lt_dsymutil='~$DSYMUTIL $lib || :' 14038 else 14039 _lt_dsymutil= 14040 fi 14041 ;; 14042 esac 14043 14044# func_munge_path_list VARIABLE PATH 14045# ----------------------------------- 14046# VARIABLE is name of variable containing _space_ separated list of 14047# directories to be munged by the contents of PATH, which is string 14048# having a format: 14049# "DIR[:DIR]:" 14050# string "DIR[ DIR]" will be prepended to VARIABLE 14051# ":DIR[:DIR]" 14052# string "DIR[ DIR]" will be appended to VARIABLE 14053# "DIRP[:DIRP]::[DIRA:]DIRA" 14054# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14055# "DIRA[ DIRA]" will be appended to VARIABLE 14056# "DIR[:DIR]" 14057# VARIABLE will be replaced by "DIR[ DIR]" 14058func_munge_path_list () 14059{ 14060 case x$2 in 14061 x) 14062 ;; 14063 *:) 14064 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14065 ;; 14066 x:*) 14067 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14068 ;; 14069 *::*) 14070 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14071 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14072 ;; 14073 *) 14074 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14075 ;; 14076 esac 14077} 14078 14079for ac_header in dlfcn.h 14080do : 14081 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14082" 14083if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14084 cat >>confdefs.h <<_ACEOF 14085#define HAVE_DLFCN_H 1 14086_ACEOF 14087 14088fi 14089 14090done 14091 14092 14093 14094 14095 14096# Set options 14097 14098 14099 14100 enable_dlopen=no 14101 14102 14103 enable_win32_dll=no 14104 14105 14106 # Check whether --enable-shared was given. 14107if test "${enable_shared+set}" = set; then : 14108 enableval=$enable_shared; p=${PACKAGE-default} 14109 case $enableval in 14110 yes) enable_shared=yes ;; 14111 no) enable_shared=no ;; 14112 *) 14113 enable_shared=no 14114 # Look at the argument we got. We use all the common list separators. 14115 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14116 for pkg in $enableval; do 14117 IFS=$lt_save_ifs 14118 if test "X$pkg" = "X$p"; then 14119 enable_shared=yes 14120 fi 14121 done 14122 IFS=$lt_save_ifs 14123 ;; 14124 esac 14125else 14126 enable_shared=yes 14127fi 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139# Check whether --with-pic was given. 14140if test "${with_pic+set}" = set; then : 14141 withval=$with_pic; lt_p=${PACKAGE-default} 14142 case $withval in 14143 yes|no) pic_mode=$withval ;; 14144 *) 14145 pic_mode=default 14146 # Look at the argument we got. We use all the common list separators. 14147 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14148 for lt_pkg in $withval; do 14149 IFS=$lt_save_ifs 14150 if test "X$lt_pkg" = "X$lt_p"; then 14151 pic_mode=yes 14152 fi 14153 done 14154 IFS=$lt_save_ifs 14155 ;; 14156 esac 14157else 14158 pic_mode=default 14159fi 14160 14161 14162 14163 14164 14165 14166 14167 14168 # Check whether --enable-fast-install was given. 14169if test "${enable_fast_install+set}" = set; then : 14170 enableval=$enable_fast_install; p=${PACKAGE-default} 14171 case $enableval in 14172 yes) enable_fast_install=yes ;; 14173 no) enable_fast_install=no ;; 14174 *) 14175 enable_fast_install=no 14176 # Look at the argument we got. We use all the common list separators. 14177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14178 for pkg in $enableval; do 14179 IFS=$lt_save_ifs 14180 if test "X$pkg" = "X$p"; then 14181 enable_fast_install=yes 14182 fi 14183 done 14184 IFS=$lt_save_ifs 14185 ;; 14186 esac 14187else 14188 enable_fast_install=yes 14189fi 14190 14191 14192 14193 14194 14195 14196 14197 14198 shared_archive_member_spec= 14199case $host,$enable_shared in 14200power*-*-aix[5-9]*,yes) 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14202$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14203 14204# Check whether --with-aix-soname was given. 14205if test "${with_aix_soname+set}" = set; then : 14206 withval=$with_aix_soname; case $withval in 14207 aix|svr4|both) 14208 ;; 14209 *) 14210 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14211 ;; 14212 esac 14213 lt_cv_with_aix_soname=$with_aix_soname 14214else 14215 if ${lt_cv_with_aix_soname+:} false; then : 14216 $as_echo_n "(cached) " >&6 14217else 14218 lt_cv_with_aix_soname=aix 14219fi 14220 14221 with_aix_soname=$lt_cv_with_aix_soname 14222fi 14223 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14225$as_echo "$with_aix_soname" >&6; } 14226 if test aix != "$with_aix_soname"; then 14227 # For the AIX way of multilib, we name the shared archive member 14228 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14229 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14230 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14231 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14232 if test 64 = "${OBJECT_MODE-32}"; then 14233 shared_archive_member_spec=shr_64 14234 else 14235 shared_archive_member_spec=shr 14236 fi 14237 fi 14238 ;; 14239*) 14240 with_aix_soname=aix 14241 ;; 14242esac 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253# This can be used to rebuild libtool when needed 14254LIBTOOL_DEPS=$ltmain 14255 14256# Always use our own libtool. 14257LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288test -z "$LN_S" && LN_S="ln -s" 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303if test -n "${ZSH_VERSION+set}"; then 14304 setopt NO_GLOB_SUBST 14305fi 14306 14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14308$as_echo_n "checking for objdir... " >&6; } 14309if ${lt_cv_objdir+:} false; then : 14310 $as_echo_n "(cached) " >&6 14311else 14312 rm -f .libs 2>/dev/null 14313mkdir .libs 2>/dev/null 14314if test -d .libs; then 14315 lt_cv_objdir=.libs 14316else 14317 # MS-DOS does not allow filenames that begin with a dot. 14318 lt_cv_objdir=_libs 14319fi 14320rmdir .libs 2>/dev/null 14321fi 14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14323$as_echo "$lt_cv_objdir" >&6; } 14324objdir=$lt_cv_objdir 14325 14326 14327 14328 14329 14330cat >>confdefs.h <<_ACEOF 14331#define LT_OBJDIR "$lt_cv_objdir/" 14332_ACEOF 14333 14334 14335 14336 14337case $host_os in 14338aix3*) 14339 # AIX sometimes has problems with the GCC collect2 program. For some 14340 # reason, if we set the COLLECT_NAMES environment variable, the problems 14341 # vanish in a puff of smoke. 14342 if test set != "${COLLECT_NAMES+set}"; then 14343 COLLECT_NAMES= 14344 export COLLECT_NAMES 14345 fi 14346 ;; 14347esac 14348 14349# Global variables: 14350ofile=libtool 14351can_build_shared=yes 14352 14353# All known linkers require a '.a' archive for static linking (except MSVC, 14354# which needs '.lib'). 14355libext=a 14356 14357with_gnu_ld=$lt_cv_prog_gnu_ld 14358 14359old_CC=$CC 14360old_CFLAGS=$CFLAGS 14361 14362# Set sane defaults for various variables 14363test -z "$CC" && CC=cc 14364test -z "$LTCC" && LTCC=$CC 14365test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14366test -z "$LD" && LD=ld 14367test -z "$ac_objext" && ac_objext=o 14368 14369func_cc_basename $compiler 14370cc_basename=$func_cc_basename_result 14371 14372 14373# Only perform the check for file, if the check method requires it 14374test -z "$MAGIC_CMD" && MAGIC_CMD=file 14375case $deplibs_check_method in 14376file_magic*) 14377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14379$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14380if ${lt_cv_path_MAGIC_CMD+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382else 14383 case $MAGIC_CMD in 14384[\\/*] | ?:[\\/]*) 14385 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14386 ;; 14387*) 14388 lt_save_MAGIC_CMD=$MAGIC_CMD 14389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14391 for ac_dir in $ac_dummy; do 14392 IFS=$lt_save_ifs 14393 test -z "$ac_dir" && ac_dir=. 14394 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14395 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14396 if test -n "$file_magic_test_file"; then 14397 case $deplibs_check_method in 14398 "file_magic "*) 14399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14400 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14402 $EGREP "$file_magic_regex" > /dev/null; then 14403 : 14404 else 14405 cat <<_LT_EOF 1>&2 14406 14407*** Warning: the command libtool uses to detect shared libraries, 14408*** $file_magic_cmd, produces output that libtool cannot recognize. 14409*** The result is that libtool may fail to recognize shared libraries 14410*** as such. This will affect the creation of libtool libraries that 14411*** depend on shared libraries, but programs linked with such libtool 14412*** libraries will work regardless of this problem. Nevertheless, you 14413*** may want to report the problem to your system manager and/or to 14414*** bug-libtool@gnu.org 14415 14416_LT_EOF 14417 fi ;; 14418 esac 14419 fi 14420 break 14421 fi 14422 done 14423 IFS=$lt_save_ifs 14424 MAGIC_CMD=$lt_save_MAGIC_CMD 14425 ;; 14426esac 14427fi 14428 14429MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14430if test -n "$MAGIC_CMD"; then 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14432$as_echo "$MAGIC_CMD" >&6; } 14433else 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14435$as_echo "no" >&6; } 14436fi 14437 14438 14439 14440 14441 14442if test -z "$lt_cv_path_MAGIC_CMD"; then 14443 if test -n "$ac_tool_prefix"; then 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14445$as_echo_n "checking for file... " >&6; } 14446if ${lt_cv_path_MAGIC_CMD+:} false; then : 14447 $as_echo_n "(cached) " >&6 14448else 14449 case $MAGIC_CMD in 14450[\\/*] | ?:[\\/]*) 14451 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14452 ;; 14453*) 14454 lt_save_MAGIC_CMD=$MAGIC_CMD 14455 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14457 for ac_dir in $ac_dummy; do 14458 IFS=$lt_save_ifs 14459 test -z "$ac_dir" && ac_dir=. 14460 if test -f "$ac_dir/file"; then 14461 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14462 if test -n "$file_magic_test_file"; then 14463 case $deplibs_check_method in 14464 "file_magic "*) 14465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14466 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14468 $EGREP "$file_magic_regex" > /dev/null; then 14469 : 14470 else 14471 cat <<_LT_EOF 1>&2 14472 14473*** Warning: the command libtool uses to detect shared libraries, 14474*** $file_magic_cmd, produces output that libtool cannot recognize. 14475*** The result is that libtool may fail to recognize shared libraries 14476*** as such. This will affect the creation of libtool libraries that 14477*** depend on shared libraries, but programs linked with such libtool 14478*** libraries will work regardless of this problem. Nevertheless, you 14479*** may want to report the problem to your system manager and/or to 14480*** bug-libtool@gnu.org 14481 14482_LT_EOF 14483 fi ;; 14484 esac 14485 fi 14486 break 14487 fi 14488 done 14489 IFS=$lt_save_ifs 14490 MAGIC_CMD=$lt_save_MAGIC_CMD 14491 ;; 14492esac 14493fi 14494 14495MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14496if test -n "$MAGIC_CMD"; then 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14498$as_echo "$MAGIC_CMD" >&6; } 14499else 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14501$as_echo "no" >&6; } 14502fi 14503 14504 14505 else 14506 MAGIC_CMD=: 14507 fi 14508fi 14509 14510 fi 14511 ;; 14512esac 14513 14514# Use C for the default configuration in the libtool script 14515 14516lt_save_CC=$CC 14517ac_ext=c 14518ac_cpp='$CPP $CPPFLAGS' 14519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14521ac_compiler_gnu=$ac_cv_c_compiler_gnu 14522 14523 14524# Source file extension for C test sources. 14525ac_ext=c 14526 14527# Object file extension for compiled C test sources. 14528objext=o 14529objext=$objext 14530 14531# Code to be used in simple compile tests 14532lt_simple_compile_test_code="int some_variable = 0;" 14533 14534# Code to be used in simple link tests 14535lt_simple_link_test_code='int main(){return(0);}' 14536 14537 14538 14539 14540 14541 14542 14543# If no C compiler was specified, use CC. 14544LTCC=${LTCC-"$CC"} 14545 14546# If no C compiler flags were specified, use CFLAGS. 14547LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14548 14549# Allow CC to be a program name with arguments. 14550compiler=$CC 14551 14552# Save the default compiler, since it gets overwritten when the other 14553# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14554compiler_DEFAULT=$CC 14555 14556# save warnings/boilerplate of simple test code 14557ac_outfile=conftest.$ac_objext 14558echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14559eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14560_lt_compiler_boilerplate=`cat conftest.err` 14561$RM conftest* 14562 14563ac_outfile=conftest.$ac_objext 14564echo "$lt_simple_link_test_code" >conftest.$ac_ext 14565eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14566_lt_linker_boilerplate=`cat conftest.err` 14567$RM -r conftest* 14568 14569 14570if test -n "$compiler"; then 14571 14572lt_prog_compiler_no_builtin_flag= 14573 14574if test yes = "$GCC"; then 14575 case $cc_basename in 14576 nvcc*) 14577 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14578 *) 14579 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14580 esac 14581 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14583$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14584if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14585 $as_echo_n "(cached) " >&6 14586else 14587 lt_cv_prog_compiler_rtti_exceptions=no 14588 ac_outfile=conftest.$ac_objext 14589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14590 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14591 # Insert the option either (1) after the last *FLAGS variable, or 14592 # (2) before a word containing "conftest.", or (3) at the end. 14593 # Note that $ac_compile itself does not contain backslashes and begins 14594 # with a dollar sign (not a hyphen), so the echo should work correctly. 14595 # The option is referenced via a variable to avoid confusing sed. 14596 lt_compile=`echo "$ac_compile" | $SED \ 14597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14599 -e 's:$: $lt_compiler_flag:'` 14600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14601 (eval "$lt_compile" 2>conftest.err) 14602 ac_status=$? 14603 cat conftest.err >&5 14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14605 if (exit $ac_status) && test -s "$ac_outfile"; then 14606 # The compiler can only warn and ignore the option if not recognized 14607 # So say no if there are warnings other than the usual output. 14608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14611 lt_cv_prog_compiler_rtti_exceptions=yes 14612 fi 14613 fi 14614 $RM conftest* 14615 14616fi 14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14618$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14619 14620if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14621 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14622else 14623 : 14624fi 14625 14626fi 14627 14628 14629 14630 14631 14632 14633 lt_prog_compiler_wl= 14634lt_prog_compiler_pic= 14635lt_prog_compiler_static= 14636 14637 14638 if test yes = "$GCC"; then 14639 lt_prog_compiler_wl='-Wl,' 14640 lt_prog_compiler_static='-static' 14641 14642 case $host_os in 14643 aix*) 14644 # All AIX code is PIC. 14645 if test ia64 = "$host_cpu"; then 14646 # AIX 5 now supports IA64 processor 14647 lt_prog_compiler_static='-Bstatic' 14648 fi 14649 lt_prog_compiler_pic='-fPIC' 14650 ;; 14651 14652 amigaos*) 14653 case $host_cpu in 14654 powerpc) 14655 # see comment about AmigaOS4 .so support 14656 lt_prog_compiler_pic='-fPIC' 14657 ;; 14658 m68k) 14659 # FIXME: we need at least 68020 code to build shared libraries, but 14660 # adding the '-m68020' flag to GCC prevents building anything better, 14661 # like '-m68040'. 14662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14663 ;; 14664 esac 14665 ;; 14666 14667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14668 # PIC is the default for these OSes. 14669 ;; 14670 14671 mingw* | cygwin* | pw32* | os2* | cegcc*) 14672 # This hack is so that the source file can tell whether it is being 14673 # built for inclusion in a dll (and should export symbols for example). 14674 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14675 # (--disable-auto-import) libraries 14676 lt_prog_compiler_pic='-DDLL_EXPORT' 14677 case $host_os in 14678 os2*) 14679 lt_prog_compiler_static='$wl-static' 14680 ;; 14681 esac 14682 ;; 14683 14684 darwin* | rhapsody*) 14685 # PIC is the default on this platform 14686 # Common symbols not allowed in MH_DYLIB files 14687 lt_prog_compiler_pic='-fno-common' 14688 ;; 14689 14690 haiku*) 14691 # PIC is the default for Haiku. 14692 # The "-static" flag exists, but is broken. 14693 lt_prog_compiler_static= 14694 ;; 14695 14696 hpux*) 14697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14699 # sets the default TLS model and affects inlining. 14700 case $host_cpu in 14701 hppa*64*) 14702 # +Z the default 14703 ;; 14704 *) 14705 lt_prog_compiler_pic='-fPIC' 14706 ;; 14707 esac 14708 ;; 14709 14710 interix[3-9]*) 14711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14712 # Instead, we relocate shared libraries at runtime. 14713 ;; 14714 14715 msdosdjgpp*) 14716 # Just because we use GCC doesn't mean we suddenly get shared libraries 14717 # on systems that don't support them. 14718 lt_prog_compiler_can_build_shared=no 14719 enable_shared=no 14720 ;; 14721 14722 *nto* | *qnx*) 14723 # QNX uses GNU C++, but need to define -shared option too, otherwise 14724 # it will coredump. 14725 lt_prog_compiler_pic='-fPIC -shared' 14726 ;; 14727 14728 sysv4*MP*) 14729 if test -d /usr/nec; then 14730 lt_prog_compiler_pic=-Kconform_pic 14731 fi 14732 ;; 14733 14734 *) 14735 lt_prog_compiler_pic='-fPIC' 14736 ;; 14737 esac 14738 14739 case $cc_basename in 14740 nvcc*) # Cuda Compiler Driver 2.2 14741 lt_prog_compiler_wl='-Xlinker ' 14742 if test -n "$lt_prog_compiler_pic"; then 14743 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14744 fi 14745 ;; 14746 esac 14747 else 14748 # PORTME Check for flag to pass linker flags through the system compiler. 14749 case $host_os in 14750 aix*) 14751 lt_prog_compiler_wl='-Wl,' 14752 if test ia64 = "$host_cpu"; then 14753 # AIX 5 now supports IA64 processor 14754 lt_prog_compiler_static='-Bstatic' 14755 else 14756 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14757 fi 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 case $cc_basename in 14765 nagfor*) 14766 # NAG Fortran compiler 14767 lt_prog_compiler_wl='-Wl,-Wl,,' 14768 lt_prog_compiler_pic='-PIC' 14769 lt_prog_compiler_static='-Bstatic' 14770 ;; 14771 esac 14772 ;; 14773 14774 mingw* | cygwin* | pw32* | os2* | cegcc*) 14775 # This hack is so that the source file can tell whether it is being 14776 # built for inclusion in a dll (and should export symbols for example). 14777 lt_prog_compiler_pic='-DDLL_EXPORT' 14778 case $host_os in 14779 os2*) 14780 lt_prog_compiler_static='$wl-static' 14781 ;; 14782 esac 14783 ;; 14784 14785 hpux9* | hpux10* | hpux11*) 14786 lt_prog_compiler_wl='-Wl,' 14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14788 # not for PA HP-UX. 14789 case $host_cpu in 14790 hppa*64*|ia64*) 14791 # +Z the default 14792 ;; 14793 *) 14794 lt_prog_compiler_pic='+Z' 14795 ;; 14796 esac 14797 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14798 lt_prog_compiler_static='$wl-a ${wl}archive' 14799 ;; 14800 14801 irix5* | irix6* | nonstopux*) 14802 lt_prog_compiler_wl='-Wl,' 14803 # PIC (with -KPIC) is the default. 14804 lt_prog_compiler_static='-non_shared' 14805 ;; 14806 14807 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14808 case $cc_basename in 14809 # old Intel for x86_64, which still supported -KPIC. 14810 ecc*) 14811 lt_prog_compiler_wl='-Wl,' 14812 lt_prog_compiler_pic='-KPIC' 14813 lt_prog_compiler_static='-static' 14814 ;; 14815 # icc used to be incompatible with GCC. 14816 # ICC 10 doesn't accept -KPIC any more. 14817 icc* | ifort*) 14818 lt_prog_compiler_wl='-Wl,' 14819 lt_prog_compiler_pic='-fPIC' 14820 lt_prog_compiler_static='-static' 14821 ;; 14822 # Lahey Fortran 8.1. 14823 lf95*) 14824 lt_prog_compiler_wl='-Wl,' 14825 lt_prog_compiler_pic='--shared' 14826 lt_prog_compiler_static='--static' 14827 ;; 14828 nagfor*) 14829 # NAG Fortran compiler 14830 lt_prog_compiler_wl='-Wl,-Wl,,' 14831 lt_prog_compiler_pic='-PIC' 14832 lt_prog_compiler_static='-Bstatic' 14833 ;; 14834 tcc*) 14835 # Fabrice Bellard et al's Tiny C Compiler 14836 lt_prog_compiler_wl='-Wl,' 14837 lt_prog_compiler_pic='-fPIC' 14838 lt_prog_compiler_static='-static' 14839 ;; 14840 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14841 # Portland Group compilers (*not* the Pentium gcc compiler, 14842 # which looks to be a dead project) 14843 lt_prog_compiler_wl='-Wl,' 14844 lt_prog_compiler_pic='-fpic' 14845 lt_prog_compiler_static='-Bstatic' 14846 ;; 14847 ccc*) 14848 lt_prog_compiler_wl='-Wl,' 14849 # All Alpha code is PIC. 14850 lt_prog_compiler_static='-non_shared' 14851 ;; 14852 xl* | bgxl* | bgf* | mpixl*) 14853 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14854 lt_prog_compiler_wl='-Wl,' 14855 lt_prog_compiler_pic='-qpic' 14856 lt_prog_compiler_static='-qstaticlink' 14857 ;; 14858 *) 14859 case `$CC -V 2>&1 | sed 5q` in 14860 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14861 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14862 lt_prog_compiler_pic='-KPIC' 14863 lt_prog_compiler_static='-Bstatic' 14864 lt_prog_compiler_wl='' 14865 ;; 14866 *Sun\ F* | *Sun*Fortran*) 14867 lt_prog_compiler_pic='-KPIC' 14868 lt_prog_compiler_static='-Bstatic' 14869 lt_prog_compiler_wl='-Qoption ld ' 14870 ;; 14871 *Sun\ C*) 14872 # Sun C 5.9 14873 lt_prog_compiler_pic='-KPIC' 14874 lt_prog_compiler_static='-Bstatic' 14875 lt_prog_compiler_wl='-Wl,' 14876 ;; 14877 *Intel*\ [CF]*Compiler*) 14878 lt_prog_compiler_wl='-Wl,' 14879 lt_prog_compiler_pic='-fPIC' 14880 lt_prog_compiler_static='-static' 14881 ;; 14882 *Portland\ Group*) 14883 lt_prog_compiler_wl='-Wl,' 14884 lt_prog_compiler_pic='-fpic' 14885 lt_prog_compiler_static='-Bstatic' 14886 ;; 14887 esac 14888 ;; 14889 esac 14890 ;; 14891 14892 newsos6) 14893 lt_prog_compiler_pic='-KPIC' 14894 lt_prog_compiler_static='-Bstatic' 14895 ;; 14896 14897 *nto* | *qnx*) 14898 # QNX uses GNU C++, but need to define -shared option too, otherwise 14899 # it will coredump. 14900 lt_prog_compiler_pic='-fPIC -shared' 14901 ;; 14902 14903 osf3* | osf4* | osf5*) 14904 lt_prog_compiler_wl='-Wl,' 14905 # All OSF/1 code is PIC. 14906 lt_prog_compiler_static='-non_shared' 14907 ;; 14908 14909 rdos*) 14910 lt_prog_compiler_static='-non_shared' 14911 ;; 14912 14913 solaris*) 14914 lt_prog_compiler_pic='-KPIC' 14915 lt_prog_compiler_static='-Bstatic' 14916 case $cc_basename in 14917 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14918 lt_prog_compiler_wl='-Qoption ld ';; 14919 *) 14920 lt_prog_compiler_wl='-Wl,';; 14921 esac 14922 ;; 14923 14924 sunos4*) 14925 lt_prog_compiler_wl='-Qoption ld ' 14926 lt_prog_compiler_pic='-PIC' 14927 lt_prog_compiler_static='-Bstatic' 14928 ;; 14929 14930 sysv4 | sysv4.2uw2* | sysv4.3*) 14931 lt_prog_compiler_wl='-Wl,' 14932 lt_prog_compiler_pic='-KPIC' 14933 lt_prog_compiler_static='-Bstatic' 14934 ;; 14935 14936 sysv4*MP*) 14937 if test -d /usr/nec; then 14938 lt_prog_compiler_pic='-Kconform_pic' 14939 lt_prog_compiler_static='-Bstatic' 14940 fi 14941 ;; 14942 14943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14944 lt_prog_compiler_wl='-Wl,' 14945 lt_prog_compiler_pic='-KPIC' 14946 lt_prog_compiler_static='-Bstatic' 14947 ;; 14948 14949 unicos*) 14950 lt_prog_compiler_wl='-Wl,' 14951 lt_prog_compiler_can_build_shared=no 14952 ;; 14953 14954 uts4*) 14955 lt_prog_compiler_pic='-pic' 14956 lt_prog_compiler_static='-Bstatic' 14957 ;; 14958 14959 *) 14960 lt_prog_compiler_can_build_shared=no 14961 ;; 14962 esac 14963 fi 14964 14965case $host_os in 14966 # For platforms that do not support PIC, -DPIC is meaningless: 14967 *djgpp*) 14968 lt_prog_compiler_pic= 14969 ;; 14970 *) 14971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14972 ;; 14973esac 14974 14975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14976$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14977if ${lt_cv_prog_compiler_pic+:} false; then : 14978 $as_echo_n "(cached) " >&6 14979else 14980 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14981fi 14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14983$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14984lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14985 14986# 14987# Check to make sure the PIC flag actually works. 14988# 14989if test -n "$lt_prog_compiler_pic"; then 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14991$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14992if ${lt_cv_prog_compiler_pic_works+:} false; then : 14993 $as_echo_n "(cached) " >&6 14994else 14995 lt_cv_prog_compiler_pic_works=no 14996 ac_outfile=conftest.$ac_objext 14997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 14999 # Insert the option either (1) after the last *FLAGS variable, or 15000 # (2) before a word containing "conftest.", or (3) at the end. 15001 # Note that $ac_compile itself does not contain backslashes and begins 15002 # with a dollar sign (not a hyphen), so the echo should work correctly. 15003 # The option is referenced via a variable to avoid confusing sed. 15004 lt_compile=`echo "$ac_compile" | $SED \ 15005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15007 -e 's:$: $lt_compiler_flag:'` 15008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15009 (eval "$lt_compile" 2>conftest.err) 15010 ac_status=$? 15011 cat conftest.err >&5 15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15013 if (exit $ac_status) && test -s "$ac_outfile"; then 15014 # The compiler can only warn and ignore the option if not recognized 15015 # So say no if there are warnings other than the usual output. 15016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15019 lt_cv_prog_compiler_pic_works=yes 15020 fi 15021 fi 15022 $RM conftest* 15023 15024fi 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15026$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15027 15028if test yes = "$lt_cv_prog_compiler_pic_works"; then 15029 case $lt_prog_compiler_pic in 15030 "" | " "*) ;; 15031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15032 esac 15033else 15034 lt_prog_compiler_pic= 15035 lt_prog_compiler_can_build_shared=no 15036fi 15037 15038fi 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050# 15051# Check to make sure the static flag actually works. 15052# 15053wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15055$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15056if ${lt_cv_prog_compiler_static_works+:} false; then : 15057 $as_echo_n "(cached) " >&6 15058else 15059 lt_cv_prog_compiler_static_works=no 15060 save_LDFLAGS=$LDFLAGS 15061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15062 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15064 # The linker can only warn and ignore the option if not recognized 15065 # So say no if there are warnings 15066 if test -s conftest.err; then 15067 # Append any errors to the config.log. 15068 cat conftest.err 1>&5 15069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15071 if diff conftest.exp conftest.er2 >/dev/null; then 15072 lt_cv_prog_compiler_static_works=yes 15073 fi 15074 else 15075 lt_cv_prog_compiler_static_works=yes 15076 fi 15077 fi 15078 $RM -r conftest* 15079 LDFLAGS=$save_LDFLAGS 15080 15081fi 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15083$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15084 15085if test yes = "$lt_cv_prog_compiler_static_works"; then 15086 : 15087else 15088 lt_prog_compiler_static= 15089fi 15090 15091 15092 15093 15094 15095 15096 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15099if ${lt_cv_prog_compiler_c_o+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 lt_cv_prog_compiler_c_o=no 15103 $RM -r conftest 2>/dev/null 15104 mkdir conftest 15105 cd conftest 15106 mkdir out 15107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15108 15109 lt_compiler_flag="-o out/conftest2.$ac_objext" 15110 # Insert the option either (1) after the last *FLAGS variable, or 15111 # (2) before a word containing "conftest.", or (3) at the end. 15112 # Note that $ac_compile itself does not contain backslashes and begins 15113 # with a dollar sign (not a hyphen), so the echo should work correctly. 15114 lt_compile=`echo "$ac_compile" | $SED \ 15115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15117 -e 's:$: $lt_compiler_flag:'` 15118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15119 (eval "$lt_compile" 2>out/conftest.err) 15120 ac_status=$? 15121 cat out/conftest.err >&5 15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15124 then 15125 # The compiler can only warn and ignore the option if not recognized 15126 # So say no if there are warnings 15127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15130 lt_cv_prog_compiler_c_o=yes 15131 fi 15132 fi 15133 chmod u+w . 2>&5 15134 $RM conftest* 15135 # SGI C++ compiler will create directory out/ii_files/ for 15136 # template instantiation 15137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15138 $RM out/* && rmdir out 15139 cd .. 15140 $RM -r conftest 15141 $RM conftest* 15142 15143fi 15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15145$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15146 15147 15148 15149 15150 15151 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15153$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15154if ${lt_cv_prog_compiler_c_o+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 lt_cv_prog_compiler_c_o=no 15158 $RM -r conftest 2>/dev/null 15159 mkdir conftest 15160 cd conftest 15161 mkdir out 15162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15163 15164 lt_compiler_flag="-o out/conftest2.$ac_objext" 15165 # Insert the option either (1) after the last *FLAGS variable, or 15166 # (2) before a word containing "conftest.", or (3) at the end. 15167 # Note that $ac_compile itself does not contain backslashes and begins 15168 # with a dollar sign (not a hyphen), so the echo should work correctly. 15169 lt_compile=`echo "$ac_compile" | $SED \ 15170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15172 -e 's:$: $lt_compiler_flag:'` 15173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15174 (eval "$lt_compile" 2>out/conftest.err) 15175 ac_status=$? 15176 cat out/conftest.err >&5 15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15178 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15179 then 15180 # The compiler can only warn and ignore the option if not recognized 15181 # So say no if there are warnings 15182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15185 lt_cv_prog_compiler_c_o=yes 15186 fi 15187 fi 15188 chmod u+w . 2>&5 15189 $RM conftest* 15190 # SGI C++ compiler will create directory out/ii_files/ for 15191 # template instantiation 15192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15193 $RM out/* && rmdir out 15194 cd .. 15195 $RM -r conftest 15196 $RM conftest* 15197 15198fi 15199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15200$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15201 15202 15203 15204 15205hard_links=nottested 15206if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15207 # do not overwrite the value of need_locks provided by the user 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15209$as_echo_n "checking if we can lock with hard links... " >&6; } 15210 hard_links=yes 15211 $RM conftest* 15212 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15213 touch conftest.a 15214 ln conftest.a conftest.b 2>&5 || hard_links=no 15215 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15217$as_echo "$hard_links" >&6; } 15218 if test no = "$hard_links"; then 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15220$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15221 need_locks=warn 15222 fi 15223else 15224 need_locks=no 15225fi 15226 15227 15228 15229 15230 15231 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15233$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15234 15235 runpath_var= 15236 allow_undefined_flag= 15237 always_export_symbols=no 15238 archive_cmds= 15239 archive_expsym_cmds= 15240 compiler_needs_object=no 15241 enable_shared_with_static_runtimes=no 15242 export_dynamic_flag_spec= 15243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15244 hardcode_automatic=no 15245 hardcode_direct=no 15246 hardcode_direct_absolute=no 15247 hardcode_libdir_flag_spec= 15248 hardcode_libdir_separator= 15249 hardcode_minus_L=no 15250 hardcode_shlibpath_var=unsupported 15251 inherit_rpath=no 15252 link_all_deplibs=unknown 15253 module_cmds= 15254 module_expsym_cmds= 15255 old_archive_from_new_cmds= 15256 old_archive_from_expsyms_cmds= 15257 thread_safe_flag_spec= 15258 whole_archive_flag_spec= 15259 # include_expsyms should be a list of space-separated symbols to be *always* 15260 # included in the symbol list 15261 include_expsyms= 15262 # exclude_expsyms can be an extended regexp of symbols to exclude 15263 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15264 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15265 # as well as any symbol that contains 'd'. 15266 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15267 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15268 # platforms (ab)use it in PIC code, but their linkers get confused if 15269 # the symbol is explicitly referenced. Since portable code cannot 15270 # rely on this symbol name, it's probably fine to never include it in 15271 # preloaded symbol tables. 15272 # Exclude shared library initialization/finalization symbols. 15273 extract_expsyms_cmds= 15274 15275 case $host_os in 15276 cygwin* | mingw* | pw32* | cegcc*) 15277 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15278 # When not using gcc, we currently assume that we are using 15279 # Microsoft Visual C++. 15280 if test yes != "$GCC"; then 15281 with_gnu_ld=no 15282 fi 15283 ;; 15284 interix*) 15285 # we just hope/assume this is gcc and not c89 (= MSVC++) 15286 with_gnu_ld=yes 15287 ;; 15288 openbsd* | bitrig*) 15289 with_gnu_ld=no 15290 ;; 15291 esac 15292 15293 ld_shlibs=yes 15294 15295 # On some targets, GNU ld is compatible enough with the native linker 15296 # that we're better off using the native interface for both. 15297 lt_use_gnu_ld_interface=no 15298 if test yes = "$with_gnu_ld"; then 15299 case $host_os in 15300 aix*) 15301 # The AIX port of GNU ld has always aspired to compatibility 15302 # with the native linker. However, as the warning in the GNU ld 15303 # block says, versions before 2.19.5* couldn't really create working 15304 # shared libraries, regardless of the interface used. 15305 case `$LD -v 2>&1` in 15306 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15307 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15308 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15309 *) 15310 lt_use_gnu_ld_interface=yes 15311 ;; 15312 esac 15313 ;; 15314 *) 15315 lt_use_gnu_ld_interface=yes 15316 ;; 15317 esac 15318 fi 15319 15320 if test yes = "$lt_use_gnu_ld_interface"; then 15321 # If archive_cmds runs LD, not CC, wlarc should be empty 15322 wlarc='$wl' 15323 15324 # Set some defaults for GNU ld with shared library support. These 15325 # are reset later if shared libraries are not supported. Putting them 15326 # here allows them to be overridden if necessary. 15327 runpath_var=LD_RUN_PATH 15328 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15329 export_dynamic_flag_spec='$wl--export-dynamic' 15330 # ancient GNU ld didn't support --whole-archive et. al. 15331 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15332 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15333 else 15334 whole_archive_flag_spec= 15335 fi 15336 supports_anon_versioning=no 15337 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15338 *GNU\ gold*) supports_anon_versioning=yes ;; 15339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15342 *\ 2.11.*) ;; # other 2.11 versions 15343 *) supports_anon_versioning=yes ;; 15344 esac 15345 15346 # See if GNU ld supports shared libraries. 15347 case $host_os in 15348 aix[3-9]*) 15349 # On AIX/PPC, the GNU linker is very broken 15350 if test ia64 != "$host_cpu"; then 15351 ld_shlibs=no 15352 cat <<_LT_EOF 1>&2 15353 15354*** Warning: the GNU linker, at least up to release 2.19, is reported 15355*** to be unable to reliably create shared libraries on AIX. 15356*** Therefore, libtool is disabling shared libraries support. If you 15357*** really care for shared libraries, you may want to install binutils 15358*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15359*** You will then need to restart the configuration process. 15360 15361_LT_EOF 15362 fi 15363 ;; 15364 15365 amigaos*) 15366 case $host_cpu in 15367 powerpc) 15368 # see comment about AmigaOS4 .so support 15369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15370 archive_expsym_cmds='' 15371 ;; 15372 m68k) 15373 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)' 15374 hardcode_libdir_flag_spec='-L$libdir' 15375 hardcode_minus_L=yes 15376 ;; 15377 esac 15378 ;; 15379 15380 beos*) 15381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15382 allow_undefined_flag=unsupported 15383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15384 # support --undefined. This deserves some investigation. FIXME 15385 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15386 else 15387 ld_shlibs=no 15388 fi 15389 ;; 15390 15391 cygwin* | mingw* | pw32* | cegcc*) 15392 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15393 # as there is no search path for DLLs. 15394 hardcode_libdir_flag_spec='-L$libdir' 15395 export_dynamic_flag_spec='$wl--export-all-symbols' 15396 allow_undefined_flag=unsupported 15397 always_export_symbols=no 15398 enable_shared_with_static_runtimes=yes 15399 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' 15400 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15401 15402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15404 # If the export-symbols file already is a .def file, use it as 15405 # is; otherwise, prepend EXPORTS... 15406 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15407 cp $export_symbols $output_objdir/$soname.def; 15408 else 15409 echo EXPORTS > $output_objdir/$soname.def; 15410 cat $export_symbols >> $output_objdir/$soname.def; 15411 fi~ 15412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15413 else 15414 ld_shlibs=no 15415 fi 15416 ;; 15417 15418 haiku*) 15419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15420 link_all_deplibs=yes 15421 ;; 15422 15423 os2*) 15424 hardcode_libdir_flag_spec='-L$libdir' 15425 hardcode_minus_L=yes 15426 allow_undefined_flag=unsupported 15427 shrext_cmds=.dll 15428 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15431 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15432 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15434 emximp -o $lib $output_objdir/$libname.def' 15435 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15436 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15437 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15438 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15439 prefix_cmds="$SED"~ 15440 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15441 prefix_cmds="$prefix_cmds -e 1d"; 15442 fi~ 15443 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15444 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15445 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15446 emximp -o $lib $output_objdir/$libname.def' 15447 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15448 enable_shared_with_static_runtimes=yes 15449 ;; 15450 15451 interix[3-9]*) 15452 hardcode_direct=no 15453 hardcode_shlibpath_var=no 15454 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15455 export_dynamic_flag_spec='$wl-E' 15456 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15457 # Instead, shared libraries are loaded at an image base (0x10000000 by 15458 # default) and relocated if they conflict, which is a slow very memory 15459 # consuming and fragmenting process. To avoid this, we pick a random, 15460 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15461 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15462 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15463 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' 15464 ;; 15465 15466 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15467 tmp_diet=no 15468 if test linux-dietlibc = "$host_os"; then 15469 case $cc_basename in 15470 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15471 esac 15472 fi 15473 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15474 && test no = "$tmp_diet" 15475 then 15476 tmp_addflag=' $pic_flag' 15477 tmp_sharedflag='-shared' 15478 case $cc_basename,$host_cpu in 15479 pgcc*) # Portland Group C compiler 15480 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' 15481 tmp_addflag=' $pic_flag' 15482 ;; 15483 pgf77* | pgf90* | pgf95* | pgfortran*) 15484 # Portland Group f77 and f90 compilers 15485 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' 15486 tmp_addflag=' $pic_flag -Mnomain' ;; 15487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15488 tmp_addflag=' -i_dynamic' ;; 15489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15490 tmp_addflag=' -i_dynamic -nofor_main' ;; 15491 ifc* | ifort*) # Intel Fortran compiler 15492 tmp_addflag=' -nofor_main' ;; 15493 lf95*) # Lahey Fortran 8.1 15494 whole_archive_flag_spec= 15495 tmp_sharedflag='--shared' ;; 15496 nagfor*) # NAGFOR 5.3 15497 tmp_sharedflag='-Wl,-shared' ;; 15498 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15499 tmp_sharedflag='-qmkshrobj' 15500 tmp_addflag= ;; 15501 nvcc*) # Cuda Compiler Driver 2.2 15502 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' 15503 compiler_needs_object=yes 15504 ;; 15505 esac 15506 case `$CC -V 2>&1 | sed 5q` in 15507 *Sun\ C*) # Sun C 5.9 15508 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' 15509 compiler_needs_object=yes 15510 tmp_sharedflag='-G' ;; 15511 *Sun\ F*) # Sun Fortran 8.3 15512 tmp_sharedflag='-G' ;; 15513 esac 15514 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15515 15516 if test yes = "$supports_anon_versioning"; then 15517 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15519 echo "local: *; };" >> $output_objdir/$libname.ver~ 15520 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15521 fi 15522 15523 case $cc_basename in 15524 tcc*) 15525 export_dynamic_flag_spec='-rdynamic' 15526 ;; 15527 xlf* | bgf* | bgxlf* | mpixlf*) 15528 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15529 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15530 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15531 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15532 if test yes = "$supports_anon_versioning"; then 15533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15535 echo "local: *; };" >> $output_objdir/$libname.ver~ 15536 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15537 fi 15538 ;; 15539 esac 15540 else 15541 ld_shlibs=no 15542 fi 15543 ;; 15544 15545 netbsd*) 15546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15547 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15548 wlarc= 15549 else 15550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15552 fi 15553 ;; 15554 15555 solaris*) 15556 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15557 ld_shlibs=no 15558 cat <<_LT_EOF 1>&2 15559 15560*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15561*** create shared libraries on Solaris systems. Therefore, libtool 15562*** is disabling shared libraries support. We urge you to upgrade GNU 15563*** binutils to release 2.9.1 or newer. Another option is to modify 15564*** your PATH or compiler configuration so that the native linker is 15565*** used, and then restart. 15566 15567_LT_EOF 15568 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15570 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15571 else 15572 ld_shlibs=no 15573 fi 15574 ;; 15575 15576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15577 case `$LD -v 2>&1` in 15578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15579 ld_shlibs=no 15580 cat <<_LT_EOF 1>&2 15581 15582*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15583*** reliably create shared libraries on SCO systems. Therefore, libtool 15584*** is disabling shared libraries support. We urge you to upgrade GNU 15585*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15586*** your PATH or compiler configuration so that the native linker is 15587*** used, and then restart. 15588 15589_LT_EOF 15590 ;; 15591 *) 15592 # For security reasons, it is highly recommended that you always 15593 # use absolute paths for naming shared libraries, and exclude the 15594 # DT_RUNPATH tag from executables and libraries. But doing so 15595 # requires that you compile everything twice, which is a pain. 15596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15600 else 15601 ld_shlibs=no 15602 fi 15603 ;; 15604 esac 15605 ;; 15606 15607 sunos4*) 15608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15609 wlarc= 15610 hardcode_direct=yes 15611 hardcode_shlibpath_var=no 15612 ;; 15613 15614 *) 15615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15618 else 15619 ld_shlibs=no 15620 fi 15621 ;; 15622 esac 15623 15624 if test no = "$ld_shlibs"; then 15625 runpath_var= 15626 hardcode_libdir_flag_spec= 15627 export_dynamic_flag_spec= 15628 whole_archive_flag_spec= 15629 fi 15630 else 15631 # PORTME fill in a description of your system's linker (not GNU ld) 15632 case $host_os in 15633 aix3*) 15634 allow_undefined_flag=unsupported 15635 always_export_symbols=yes 15636 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' 15637 # Note: this linker hardcodes the directories in LIBPATH if there 15638 # are no directories specified by -L. 15639 hardcode_minus_L=yes 15640 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15641 # Neither direct hardcoding nor static linking is supported with a 15642 # broken collect2. 15643 hardcode_direct=unsupported 15644 fi 15645 ;; 15646 15647 aix[4-9]*) 15648 if test ia64 = "$host_cpu"; then 15649 # On IA64, the linker does run time linking by default, so we don't 15650 # have to do anything special. 15651 aix_use_runtimelinking=no 15652 exp_sym_flag='-Bexport' 15653 no_entry_flag= 15654 else 15655 # If we're using GNU nm, then we don't want the "-C" option. 15656 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15657 # Without the "-l" option, or with the "-B" option, AIX nm treats 15658 # weak defined symbols like other global defined symbols, whereas 15659 # GNU nm marks them as "W". 15660 # While the 'weak' keyword is ignored in the Export File, we need 15661 # it in the Import File for the 'aix-soname' feature, so we have 15662 # to replace the "-B" option with "-P" for AIX nm. 15663 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15664 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' 15665 else 15666 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' 15667 fi 15668 aix_use_runtimelinking=no 15669 15670 # Test if we are trying to use run time linking or normal 15671 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15672 # have runtime linking enabled, and use it for executables. 15673 # For shared libraries, we enable/disable runtime linking 15674 # depending on the kind of the shared library created - 15675 # when "with_aix_soname,aix_use_runtimelinking" is: 15676 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15677 # "aix,yes" lib.so shared, rtl:yes, for executables 15678 # lib.a static archive 15679 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15680 # lib.a(lib.so.V) shared, rtl:no, for executables 15681 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15682 # lib.a(lib.so.V) shared, rtl:no 15683 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15684 # lib.a static archive 15685 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15686 for ld_flag in $LDFLAGS; do 15687 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15688 aix_use_runtimelinking=yes 15689 break 15690 fi 15691 done 15692 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15693 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15694 # so we don't have lib.a shared libs to link our executables. 15695 # We have to force runtime linking in this case. 15696 aix_use_runtimelinking=yes 15697 LDFLAGS="$LDFLAGS -Wl,-brtl" 15698 fi 15699 ;; 15700 esac 15701 15702 exp_sym_flag='-bexport' 15703 no_entry_flag='-bnoentry' 15704 fi 15705 15706 # When large executables or shared objects are built, AIX ld can 15707 # have problems creating the table of contents. If linking a library 15708 # or program results in "error TOC overflow" add -mminimal-toc to 15709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15711 15712 archive_cmds='' 15713 hardcode_direct=yes 15714 hardcode_direct_absolute=yes 15715 hardcode_libdir_separator=':' 15716 link_all_deplibs=yes 15717 file_list_spec='$wl-f,' 15718 case $with_aix_soname,$aix_use_runtimelinking in 15719 aix,*) ;; # traditional, no import file 15720 svr4,* | *,yes) # use import file 15721 # The Import File defines what to hardcode. 15722 hardcode_direct=no 15723 hardcode_direct_absolute=no 15724 ;; 15725 esac 15726 15727 if test yes = "$GCC"; then 15728 case $host_os in aix4.[012]|aix4.[012].*) 15729 # We only want to do this on AIX 4.2 and lower, the check 15730 # below for broken collect2 doesn't work under 4.3+ 15731 collect2name=`$CC -print-prog-name=collect2` 15732 if test -f "$collect2name" && 15733 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15734 then 15735 # We have reworked collect2 15736 : 15737 else 15738 # We have old collect2 15739 hardcode_direct=unsupported 15740 # It fails to find uninstalled libraries when the uninstalled 15741 # path is not listed in the libpath. Setting hardcode_minus_L 15742 # to unsupported forces relinking 15743 hardcode_minus_L=yes 15744 hardcode_libdir_flag_spec='-L$libdir' 15745 hardcode_libdir_separator= 15746 fi 15747 ;; 15748 esac 15749 shared_flag='-shared' 15750 if test yes = "$aix_use_runtimelinking"; then 15751 shared_flag="$shared_flag "'$wl-G' 15752 fi 15753 # Need to ensure runtime linking is disabled for the traditional 15754 # shared library, or the linker may eventually find shared libraries 15755 # /with/ Import File - we do not want to mix them. 15756 shared_flag_aix='-shared' 15757 shared_flag_svr4='-shared $wl-G' 15758 else 15759 # not using gcc 15760 if test ia64 = "$host_cpu"; then 15761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15762 # chokes on -Wl,-G. The following line is correct: 15763 shared_flag='-G' 15764 else 15765 if test yes = "$aix_use_runtimelinking"; then 15766 shared_flag='$wl-G' 15767 else 15768 shared_flag='$wl-bM:SRE' 15769 fi 15770 shared_flag_aix='$wl-bM:SRE' 15771 shared_flag_svr4='$wl-G' 15772 fi 15773 fi 15774 15775 export_dynamic_flag_spec='$wl-bexpall' 15776 # It seems that -bexpall does not export symbols beginning with 15777 # underscore (_), so it is better to generate a list of symbols to export. 15778 always_export_symbols=yes 15779 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15780 # Warning - without using the other runtime loading flags (-brtl), 15781 # -berok will link without error, but may produce a broken library. 15782 allow_undefined_flag='-berok' 15783 # Determine the default libpath from the value encoded in an 15784 # empty executable. 15785 if test set = "${lt_cv_aix_libpath+set}"; then 15786 aix_libpath=$lt_cv_aix_libpath 15787else 15788 if ${lt_cv_aix_libpath_+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793 15794int 15795main () 15796{ 15797 15798 ; 15799 return 0; 15800} 15801_ACEOF 15802if ac_fn_c_try_link "$LINENO"; then : 15803 15804 lt_aix_libpath_sed=' 15805 /Import File Strings/,/^$/ { 15806 /^0/ { 15807 s/^0 *\([^ ]*\) *$/\1/ 15808 p 15809 } 15810 }' 15811 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15812 # Check for a 64-bit object if we didn't find anything. 15813 if test -z "$lt_cv_aix_libpath_"; then 15814 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15815 fi 15816fi 15817rm -f core conftest.err conftest.$ac_objext \ 15818 conftest$ac_exeext conftest.$ac_ext 15819 if test -z "$lt_cv_aix_libpath_"; then 15820 lt_cv_aix_libpath_=/usr/lib:/lib 15821 fi 15822 15823fi 15824 15825 aix_libpath=$lt_cv_aix_libpath_ 15826fi 15827 15828 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15829 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 15830 else 15831 if test ia64 = "$host_cpu"; then 15832 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15833 allow_undefined_flag="-z nodefs" 15834 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" 15835 else 15836 # Determine the default libpath from the value encoded in an 15837 # empty executable. 15838 if test set = "${lt_cv_aix_libpath+set}"; then 15839 aix_libpath=$lt_cv_aix_libpath 15840else 15841 if ${lt_cv_aix_libpath_+:} false; then : 15842 $as_echo_n "(cached) " >&6 15843else 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846 15847int 15848main () 15849{ 15850 15851 ; 15852 return 0; 15853} 15854_ACEOF 15855if ac_fn_c_try_link "$LINENO"; then : 15856 15857 lt_aix_libpath_sed=' 15858 /Import File Strings/,/^$/ { 15859 /^0/ { 15860 s/^0 *\([^ ]*\) *$/\1/ 15861 p 15862 } 15863 }' 15864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15865 # Check for a 64-bit object if we didn't find anything. 15866 if test -z "$lt_cv_aix_libpath_"; then 15867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15868 fi 15869fi 15870rm -f core conftest.err conftest.$ac_objext \ 15871 conftest$ac_exeext conftest.$ac_ext 15872 if test -z "$lt_cv_aix_libpath_"; then 15873 lt_cv_aix_libpath_=/usr/lib:/lib 15874 fi 15875 15876fi 15877 15878 aix_libpath=$lt_cv_aix_libpath_ 15879fi 15880 15881 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15882 # Warning - without using the other run time loading flags, 15883 # -berok will link without error, but may produce a broken library. 15884 no_undefined_flag=' $wl-bernotok' 15885 allow_undefined_flag=' $wl-berok' 15886 if test yes = "$with_gnu_ld"; then 15887 # We only use this code for GNU lds that support --whole-archive. 15888 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15889 else 15890 # Exported symbols can be pulled into shared objects from archives 15891 whole_archive_flag_spec='$convenience' 15892 fi 15893 archive_cmds_need_lc=yes 15894 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15895 # -brtl affects multiple linker settings, -berok does not and is overridden later 15896 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15897 if test svr4 != "$with_aix_soname"; then 15898 # This is similar to how AIX traditionally builds its shared libraries. 15899 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' 15900 fi 15901 if test aix != "$with_aix_soname"; then 15902 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' 15903 else 15904 # used by -dlpreopen to get the symbols 15905 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15906 fi 15907 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 15908 fi 15909 fi 15910 ;; 15911 15912 amigaos*) 15913 case $host_cpu in 15914 powerpc) 15915 # see comment about AmigaOS4 .so support 15916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15917 archive_expsym_cmds='' 15918 ;; 15919 m68k) 15920 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)' 15921 hardcode_libdir_flag_spec='-L$libdir' 15922 hardcode_minus_L=yes 15923 ;; 15924 esac 15925 ;; 15926 15927 bsdi[45]*) 15928 export_dynamic_flag_spec=-rdynamic 15929 ;; 15930 15931 cygwin* | mingw* | pw32* | cegcc*) 15932 # When not using gcc, we currently assume that we are using 15933 # Microsoft Visual C++. 15934 # hardcode_libdir_flag_spec is actually meaningless, as there is 15935 # no search path for DLLs. 15936 case $cc_basename in 15937 cl*) 15938 # Native MSVC 15939 hardcode_libdir_flag_spec=' ' 15940 allow_undefined_flag=unsupported 15941 always_export_symbols=yes 15942 file_list_spec='@' 15943 # Tell ltmain to make .lib files, not .a files. 15944 libext=lib 15945 # Tell ltmain to make .dll files, not .so files. 15946 shrext_cmds=.dll 15947 # FIXME: Setting linknames here is a bad hack. 15948 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15949 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15950 cp "$export_symbols" "$output_objdir/$soname.def"; 15951 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15952 else 15953 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15954 fi~ 15955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15956 linknames=' 15957 # The linker will not automatically build a static lib if we build a DLL. 15958 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15959 enable_shared_with_static_runtimes=yes 15960 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15962 # Don't use ranlib 15963 old_postinstall_cmds='chmod 644 $oldlib' 15964 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15965 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15966 case $lt_outputfile in 15967 *.exe|*.EXE) ;; 15968 *) 15969 lt_outputfile=$lt_outputfile.exe 15970 lt_tool_outputfile=$lt_tool_outputfile.exe 15971 ;; 15972 esac~ 15973 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15974 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15975 $RM "$lt_outputfile.manifest"; 15976 fi' 15977 ;; 15978 *) 15979 # Assume MSVC wrapper 15980 hardcode_libdir_flag_spec=' ' 15981 allow_undefined_flag=unsupported 15982 # Tell ltmain to make .lib files, not .a files. 15983 libext=lib 15984 # Tell ltmain to make .dll files, not .so files. 15985 shrext_cmds=.dll 15986 # FIXME: Setting linknames here is a bad hack. 15987 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15988 # The linker will automatically build a .lib file if we build a DLL. 15989 old_archive_from_new_cmds='true' 15990 # FIXME: Should let the user specify the lib program. 15991 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15992 enable_shared_with_static_runtimes=yes 15993 ;; 15994 esac 15995 ;; 15996 15997 darwin* | rhapsody*) 15998 15999 16000 archive_cmds_need_lc=no 16001 hardcode_direct=no 16002 hardcode_automatic=yes 16003 hardcode_shlibpath_var=unsupported 16004 if test yes = "$lt_cv_ld_force_load"; then 16005 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\"`' 16006 16007 else 16008 whole_archive_flag_spec='' 16009 fi 16010 link_all_deplibs=yes 16011 allow_undefined_flag=$_lt_dar_allow_undefined 16012 case $cc_basename in 16013 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16014 *) _lt_dar_can_shared=$GCC ;; 16015 esac 16016 if test yes = "$_lt_dar_can_shared"; then 16017 output_verbose_link_cmd=func_echo_all 16018 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16019 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16020 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" 16021 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" 16022 16023 else 16024 ld_shlibs=no 16025 fi 16026 16027 ;; 16028 16029 dgux*) 16030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16031 hardcode_libdir_flag_spec='-L$libdir' 16032 hardcode_shlibpath_var=no 16033 ;; 16034 16035 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16036 # support. Future versions do this automatically, but an explicit c++rt0.o 16037 # does not break anything, and helps significantly (at the cost of a little 16038 # extra space). 16039 freebsd2.2*) 16040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16041 hardcode_libdir_flag_spec='-R$libdir' 16042 hardcode_direct=yes 16043 hardcode_shlibpath_var=no 16044 ;; 16045 16046 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16047 freebsd2.*) 16048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16049 hardcode_direct=yes 16050 hardcode_minus_L=yes 16051 hardcode_shlibpath_var=no 16052 ;; 16053 16054 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16055 freebsd* | dragonfly*) 16056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16057 hardcode_libdir_flag_spec='-R$libdir' 16058 hardcode_direct=yes 16059 hardcode_shlibpath_var=no 16060 ;; 16061 16062 hpux9*) 16063 if test yes = "$GCC"; then 16064 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' 16065 else 16066 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' 16067 fi 16068 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16069 hardcode_libdir_separator=: 16070 hardcode_direct=yes 16071 16072 # hardcode_minus_L: Not really in the search PATH, 16073 # but as the default location of the library. 16074 hardcode_minus_L=yes 16075 export_dynamic_flag_spec='$wl-E' 16076 ;; 16077 16078 hpux10*) 16079 if test yes,no = "$GCC,$with_gnu_ld"; then 16080 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16081 else 16082 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16083 fi 16084 if test no = "$with_gnu_ld"; then 16085 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16086 hardcode_libdir_separator=: 16087 hardcode_direct=yes 16088 hardcode_direct_absolute=yes 16089 export_dynamic_flag_spec='$wl-E' 16090 # hardcode_minus_L: Not really in the search PATH, 16091 # but as the default location of the library. 16092 hardcode_minus_L=yes 16093 fi 16094 ;; 16095 16096 hpux11*) 16097 if test yes,no = "$GCC,$with_gnu_ld"; then 16098 case $host_cpu in 16099 hppa*64*) 16100 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16101 ;; 16102 ia64*) 16103 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16104 ;; 16105 *) 16106 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16107 ;; 16108 esac 16109 else 16110 case $host_cpu in 16111 hppa*64*) 16112 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16113 ;; 16114 ia64*) 16115 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16116 ;; 16117 *) 16118 16119 # Older versions of the 11.00 compiler do not understand -b yet 16120 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16122$as_echo_n "checking if $CC understands -b... " >&6; } 16123if ${lt_cv_prog_compiler__b+:} false; then : 16124 $as_echo_n "(cached) " >&6 16125else 16126 lt_cv_prog_compiler__b=no 16127 save_LDFLAGS=$LDFLAGS 16128 LDFLAGS="$LDFLAGS -b" 16129 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16130 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16131 # The linker can only warn and ignore the option if not recognized 16132 # So say no if there are warnings 16133 if test -s conftest.err; then 16134 # Append any errors to the config.log. 16135 cat conftest.err 1>&5 16136 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16138 if diff conftest.exp conftest.er2 >/dev/null; then 16139 lt_cv_prog_compiler__b=yes 16140 fi 16141 else 16142 lt_cv_prog_compiler__b=yes 16143 fi 16144 fi 16145 $RM -r conftest* 16146 LDFLAGS=$save_LDFLAGS 16147 16148fi 16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16150$as_echo "$lt_cv_prog_compiler__b" >&6; } 16151 16152if test yes = "$lt_cv_prog_compiler__b"; then 16153 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16154else 16155 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16156fi 16157 16158 ;; 16159 esac 16160 fi 16161 if test no = "$with_gnu_ld"; then 16162 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16163 hardcode_libdir_separator=: 16164 16165 case $host_cpu in 16166 hppa*64*|ia64*) 16167 hardcode_direct=no 16168 hardcode_shlibpath_var=no 16169 ;; 16170 *) 16171 hardcode_direct=yes 16172 hardcode_direct_absolute=yes 16173 export_dynamic_flag_spec='$wl-E' 16174 16175 # hardcode_minus_L: Not really in the search PATH, 16176 # but as the default location of the library. 16177 hardcode_minus_L=yes 16178 ;; 16179 esac 16180 fi 16181 ;; 16182 16183 irix5* | irix6* | nonstopux*) 16184 if test yes = "$GCC"; then 16185 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' 16186 # Try to use the -exported_symbol ld option, if it does not 16187 # work, assume that -exports_file does not work either and 16188 # implicitly export all symbols. 16189 # This should be the same for all languages, so no per-tag cache variable. 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16191$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16192if ${lt_cv_irix_exported_symbol+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194else 16195 save_LDFLAGS=$LDFLAGS 16196 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int foo (void) { return 0; } 16200_ACEOF 16201if ac_fn_c_try_link "$LINENO"; then : 16202 lt_cv_irix_exported_symbol=yes 16203else 16204 lt_cv_irix_exported_symbol=no 16205fi 16206rm -f core conftest.err conftest.$ac_objext \ 16207 conftest$ac_exeext conftest.$ac_ext 16208 LDFLAGS=$save_LDFLAGS 16209fi 16210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16211$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16212 if test yes = "$lt_cv_irix_exported_symbol"; then 16213 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' 16214 fi 16215 else 16216 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' 16217 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' 16218 fi 16219 archive_cmds_need_lc='no' 16220 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16221 hardcode_libdir_separator=: 16222 inherit_rpath=yes 16223 link_all_deplibs=yes 16224 ;; 16225 16226 linux*) 16227 case $cc_basename in 16228 tcc*) 16229 # Fabrice Bellard et al's Tiny C Compiler 16230 ld_shlibs=yes 16231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16232 ;; 16233 esac 16234 ;; 16235 16236 netbsd*) 16237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16239 else 16240 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16241 fi 16242 hardcode_libdir_flag_spec='-R$libdir' 16243 hardcode_direct=yes 16244 hardcode_shlibpath_var=no 16245 ;; 16246 16247 newsos6) 16248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16249 hardcode_direct=yes 16250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16251 hardcode_libdir_separator=: 16252 hardcode_shlibpath_var=no 16253 ;; 16254 16255 *nto* | *qnx*) 16256 ;; 16257 16258 openbsd* | bitrig*) 16259 if test -f /usr/libexec/ld.so; then 16260 hardcode_direct=yes 16261 hardcode_shlibpath_var=no 16262 hardcode_direct_absolute=yes 16263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16265 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16266 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16267 export_dynamic_flag_spec='$wl-E' 16268 else 16269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16270 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16271 fi 16272 else 16273 ld_shlibs=no 16274 fi 16275 ;; 16276 16277 os2*) 16278 hardcode_libdir_flag_spec='-L$libdir' 16279 hardcode_minus_L=yes 16280 allow_undefined_flag=unsupported 16281 shrext_cmds=.dll 16282 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16285 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16286 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16287 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16288 emximp -o $lib $output_objdir/$libname.def' 16289 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16290 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16291 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16292 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16293 prefix_cmds="$SED"~ 16294 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16295 prefix_cmds="$prefix_cmds -e 1d"; 16296 fi~ 16297 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16298 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16299 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16300 emximp -o $lib $output_objdir/$libname.def' 16301 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16302 enable_shared_with_static_runtimes=yes 16303 ;; 16304 16305 osf3*) 16306 if test yes = "$GCC"; then 16307 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16308 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' 16309 else 16310 allow_undefined_flag=' -expect_unresolved \*' 16311 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' 16312 fi 16313 archive_cmds_need_lc='no' 16314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16315 hardcode_libdir_separator=: 16316 ;; 16317 16318 osf4* | osf5*) # as osf3* with the addition of -msym flag 16319 if test yes = "$GCC"; then 16320 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16321 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' 16322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16323 else 16324 allow_undefined_flag=' -expect_unresolved \*' 16325 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' 16326 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~ 16327 $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' 16328 16329 # Both c and cxx compiler support -rpath directly 16330 hardcode_libdir_flag_spec='-rpath $libdir' 16331 fi 16332 archive_cmds_need_lc='no' 16333 hardcode_libdir_separator=: 16334 ;; 16335 16336 solaris*) 16337 no_undefined_flag=' -z defs' 16338 if test yes = "$GCC"; then 16339 wlarc='$wl' 16340 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16342 $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' 16343 else 16344 case `$CC -V 2>&1` in 16345 *"Compilers 5.0"*) 16346 wlarc='' 16347 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16349 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16350 ;; 16351 *) 16352 wlarc='$wl' 16353 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16355 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16356 ;; 16357 esac 16358 fi 16359 hardcode_libdir_flag_spec='-R$libdir' 16360 hardcode_shlibpath_var=no 16361 case $host_os in 16362 solaris2.[0-5] | solaris2.[0-5].*) ;; 16363 *) 16364 # The compiler driver will combine and reorder linker options, 16365 # but understands '-z linker_flag'. GCC discards it without '$wl', 16366 # but is careful enough not to reorder. 16367 # Supported since Solaris 2.6 (maybe 2.5.1?) 16368 if test yes = "$GCC"; then 16369 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16370 else 16371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16372 fi 16373 ;; 16374 esac 16375 link_all_deplibs=yes 16376 ;; 16377 16378 sunos4*) 16379 if test sequent = "$host_vendor"; then 16380 # Use $CC to link under sequent, because it throws in some extra .o 16381 # files that make .init and .fini sections work. 16382 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16383 else 16384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16385 fi 16386 hardcode_libdir_flag_spec='-L$libdir' 16387 hardcode_direct=yes 16388 hardcode_minus_L=yes 16389 hardcode_shlibpath_var=no 16390 ;; 16391 16392 sysv4) 16393 case $host_vendor in 16394 sni) 16395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16396 hardcode_direct=yes # is this really true??? 16397 ;; 16398 siemens) 16399 ## LD is ld it makes a PLAMLIB 16400 ## CC just makes a GrossModule. 16401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16402 reload_cmds='$CC -r -o $output$reload_objs' 16403 hardcode_direct=no 16404 ;; 16405 motorola) 16406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16408 ;; 16409 esac 16410 runpath_var='LD_RUN_PATH' 16411 hardcode_shlibpath_var=no 16412 ;; 16413 16414 sysv4.3*) 16415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16416 hardcode_shlibpath_var=no 16417 export_dynamic_flag_spec='-Bexport' 16418 ;; 16419 16420 sysv4*MP*) 16421 if test -d /usr/nec; then 16422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16423 hardcode_shlibpath_var=no 16424 runpath_var=LD_RUN_PATH 16425 hardcode_runpath_var=yes 16426 ld_shlibs=yes 16427 fi 16428 ;; 16429 16430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16431 no_undefined_flag='$wl-z,text' 16432 archive_cmds_need_lc=no 16433 hardcode_shlibpath_var=no 16434 runpath_var='LD_RUN_PATH' 16435 16436 if test yes = "$GCC"; then 16437 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16438 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16439 else 16440 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16441 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16442 fi 16443 ;; 16444 16445 sysv5* | sco3.2v5* | sco5v6*) 16446 # Note: We CANNOT use -z defs as we might desire, because we do not 16447 # link with -lc, and that would cause any symbols used from libc to 16448 # always be unresolved, which means just about no library would 16449 # ever link correctly. If we're not using GNU ld we use -z text 16450 # though, which does catch some bad symbols but isn't as heavy-handed 16451 # as -z defs. 16452 no_undefined_flag='$wl-z,text' 16453 allow_undefined_flag='$wl-z,nodefs' 16454 archive_cmds_need_lc=no 16455 hardcode_shlibpath_var=no 16456 hardcode_libdir_flag_spec='$wl-R,$libdir' 16457 hardcode_libdir_separator=':' 16458 link_all_deplibs=yes 16459 export_dynamic_flag_spec='$wl-Bexport' 16460 runpath_var='LD_RUN_PATH' 16461 16462 if test yes = "$GCC"; then 16463 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16464 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16465 else 16466 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16467 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16468 fi 16469 ;; 16470 16471 uts4*) 16472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16473 hardcode_libdir_flag_spec='-L$libdir' 16474 hardcode_shlibpath_var=no 16475 ;; 16476 16477 *) 16478 ld_shlibs=no 16479 ;; 16480 esac 16481 16482 if test sni = "$host_vendor"; then 16483 case $host in 16484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16485 export_dynamic_flag_spec='$wl-Blargedynsym' 16486 ;; 16487 esac 16488 fi 16489 fi 16490 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16492$as_echo "$ld_shlibs" >&6; } 16493test no = "$ld_shlibs" && can_build_shared=no 16494 16495with_gnu_ld=$with_gnu_ld 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511# 16512# Do we need to explicitly link libc? 16513# 16514case "x$archive_cmds_need_lc" in 16515x|xyes) 16516 # Assume -lc should be added 16517 archive_cmds_need_lc=yes 16518 16519 if test yes,yes = "$GCC,$enable_shared"; then 16520 case $archive_cmds in 16521 *'~'*) 16522 # FIXME: we may have to deal with multi-command sequences. 16523 ;; 16524 '$CC '*) 16525 # Test whether the compiler implicitly links with -lc since on some 16526 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16527 # to ld, don't add -lc before -lgcc. 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16529$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16530if ${lt_cv_archive_cmds_need_lc+:} false; then : 16531 $as_echo_n "(cached) " >&6 16532else 16533 $RM conftest* 16534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16535 16536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16537 (eval $ac_compile) 2>&5 16538 ac_status=$? 16539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16540 test $ac_status = 0; } 2>conftest.err; then 16541 soname=conftest 16542 lib=conftest 16543 libobjs=conftest.$ac_objext 16544 deplibs= 16545 wl=$lt_prog_compiler_wl 16546 pic_flag=$lt_prog_compiler_pic 16547 compiler_flags=-v 16548 linker_flags=-v 16549 verstring= 16550 output_objdir=. 16551 libname=conftest 16552 lt_save_allow_undefined_flag=$allow_undefined_flag 16553 allow_undefined_flag= 16554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16556 ac_status=$? 16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16558 test $ac_status = 0; } 16559 then 16560 lt_cv_archive_cmds_need_lc=no 16561 else 16562 lt_cv_archive_cmds_need_lc=yes 16563 fi 16564 allow_undefined_flag=$lt_save_allow_undefined_flag 16565 else 16566 cat conftest.err 1>&5 16567 fi 16568 $RM conftest* 16569 16570fi 16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16572$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16573 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16574 ;; 16575 esac 16576 fi 16577 ;; 16578esac 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16732$as_echo_n "checking dynamic linker characteristics... " >&6; } 16733 16734if test yes = "$GCC"; then 16735 case $host_os in 16736 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16737 *) lt_awk_arg='/^libraries:/' ;; 16738 esac 16739 case $host_os in 16740 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16741 *) lt_sed_strip_eq='s|=/|/|g' ;; 16742 esac 16743 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16744 case $lt_search_path_spec in 16745 *\;*) 16746 # if the path contains ";" then we assume it to be the separator 16747 # otherwise default to the standard path separator (i.e. ":") - it is 16748 # assumed that no part of a normal pathname contains ";" but that should 16749 # okay in the real world where ";" in dirpaths is itself problematic. 16750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16751 ;; 16752 *) 16753 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16754 ;; 16755 esac 16756 # Ok, now we have the path, separated by spaces, we can step through it 16757 # and add multilib dir if necessary... 16758 lt_tmp_lt_search_path_spec= 16759 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16760 # ...but if some path component already ends with the multilib dir we assume 16761 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16762 case "$lt_multi_os_dir; $lt_search_path_spec " in 16763 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16764 lt_multi_os_dir= 16765 ;; 16766 esac 16767 for lt_sys_path in $lt_search_path_spec; do 16768 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16770 elif test -n "$lt_multi_os_dir"; then 16771 test -d "$lt_sys_path" && \ 16772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16773 fi 16774 done 16775 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16776BEGIN {RS = " "; FS = "/|\n";} { 16777 lt_foo = ""; 16778 lt_count = 0; 16779 for (lt_i = NF; lt_i > 0; lt_i--) { 16780 if ($lt_i != "" && $lt_i != ".") { 16781 if ($lt_i == "..") { 16782 lt_count++; 16783 } else { 16784 if (lt_count == 0) { 16785 lt_foo = "/" $lt_i lt_foo; 16786 } else { 16787 lt_count--; 16788 } 16789 } 16790 } 16791 } 16792 if (lt_foo != "") { lt_freq[lt_foo]++; } 16793 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16794}'` 16795 # AWK program above erroneously prepends '/' to C:/dos/paths 16796 # for these hosts. 16797 case $host_os in 16798 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16799 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16800 esac 16801 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16802else 16803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16804fi 16805library_names_spec= 16806libname_spec='lib$name' 16807soname_spec= 16808shrext_cmds=.so 16809postinstall_cmds= 16810postuninstall_cmds= 16811finish_cmds= 16812finish_eval= 16813shlibpath_var= 16814shlibpath_overrides_runpath=unknown 16815version_type=none 16816dynamic_linker="$host_os ld.so" 16817sys_lib_dlsearch_path_spec="/lib /usr/lib" 16818need_lib_prefix=unknown 16819hardcode_into_libs=no 16820 16821# when you set need_version to no, make sure it does not cause -set_version 16822# flags to be left without arguments 16823need_version=unknown 16824 16825 16826 16827case $host_os in 16828aix3*) 16829 version_type=linux # correct to gnu/linux during the next big refactor 16830 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16831 shlibpath_var=LIBPATH 16832 16833 # AIX 3 has no versioning support, so we append a major version to the name. 16834 soname_spec='$libname$release$shared_ext$major' 16835 ;; 16836 16837aix[4-9]*) 16838 version_type=linux # correct to gnu/linux during the next big refactor 16839 need_lib_prefix=no 16840 need_version=no 16841 hardcode_into_libs=yes 16842 if test ia64 = "$host_cpu"; then 16843 # AIX 5 supports IA64 16844 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16845 shlibpath_var=LD_LIBRARY_PATH 16846 else 16847 # With GCC up to 2.95.x, collect2 would create an import file 16848 # for dependence libraries. The import file would start with 16849 # the line '#! .'. This would cause the generated library to 16850 # depend on '.', always an invalid library. This was fixed in 16851 # development snapshots of GCC prior to 3.0. 16852 case $host_os in 16853 aix4 | aix4.[01] | aix4.[01].*) 16854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16855 echo ' yes ' 16856 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16857 : 16858 else 16859 can_build_shared=no 16860 fi 16861 ;; 16862 esac 16863 # Using Import Files as archive members, it is possible to support 16864 # filename-based versioning of shared library archives on AIX. While 16865 # this would work for both with and without runtime linking, it will 16866 # prevent static linking of such archives. So we do filename-based 16867 # shared library versioning with .so extension only, which is used 16868 # when both runtime linking and shared linking is enabled. 16869 # Unfortunately, runtime linking may impact performance, so we do 16870 # not want this to be the default eventually. Also, we use the 16871 # versioned .so libs for executables only if there is the -brtl 16872 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16873 # To allow for filename-based versioning support, we need to create 16874 # libNAME.so.V as an archive file, containing: 16875 # *) an Import File, referring to the versioned filename of the 16876 # archive as well as the shared archive member, telling the 16877 # bitwidth (32 or 64) of that shared object, and providing the 16878 # list of exported symbols of that shared object, eventually 16879 # decorated with the 'weak' keyword 16880 # *) the shared object with the F_LOADONLY flag set, to really avoid 16881 # it being seen by the linker. 16882 # At run time we better use the real file rather than another symlink, 16883 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16884 16885 case $with_aix_soname,$aix_use_runtimelinking in 16886 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16887 # soname into executable. Probably we can add versioning support to 16888 # collect2, so additional links can be useful in future. 16889 aix,yes) # traditional libtool 16890 dynamic_linker='AIX unversionable lib.so' 16891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16892 # instead of lib<name>.a to let people know that these are not 16893 # typical AIX shared libraries. 16894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16895 ;; 16896 aix,no) # traditional AIX only 16897 dynamic_linker='AIX lib.a(lib.so.V)' 16898 # We preserve .a as extension for shared libraries through AIX4.2 16899 # and later when we are not doing run time linking. 16900 library_names_spec='$libname$release.a $libname.a' 16901 soname_spec='$libname$release$shared_ext$major' 16902 ;; 16903 svr4,*) # full svr4 only 16904 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16905 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16906 # We do not specify a path in Import Files, so LIBPATH fires. 16907 shlibpath_overrides_runpath=yes 16908 ;; 16909 *,yes) # both, prefer svr4 16910 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16911 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16912 # unpreferred sharedlib libNAME.a needs extra handling 16913 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"' 16914 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"' 16915 # We do not specify a path in Import Files, so LIBPATH fires. 16916 shlibpath_overrides_runpath=yes 16917 ;; 16918 *,no) # both, prefer aix 16919 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16920 library_names_spec='$libname$release.a $libname.a' 16921 soname_spec='$libname$release$shared_ext$major' 16922 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16923 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)' 16924 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"' 16925 ;; 16926 esac 16927 shlibpath_var=LIBPATH 16928 fi 16929 ;; 16930 16931amigaos*) 16932 case $host_cpu in 16933 powerpc) 16934 # Since July 2007 AmigaOS4 officially supports .so libraries. 16935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16937 ;; 16938 m68k) 16939 library_names_spec='$libname.ixlibrary $libname.a' 16940 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16941 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' 16942 ;; 16943 esac 16944 ;; 16945 16946beos*) 16947 library_names_spec='$libname$shared_ext' 16948 dynamic_linker="$host_os ld.so" 16949 shlibpath_var=LIBRARY_PATH 16950 ;; 16951 16952bsdi[45]*) 16953 version_type=linux # correct to gnu/linux during the next big refactor 16954 need_version=no 16955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16956 soname_spec='$libname$release$shared_ext$major' 16957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16958 shlibpath_var=LD_LIBRARY_PATH 16959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16961 # the default ld.so.conf also contains /usr/contrib/lib and 16962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16963 # libtool to hard-code these into programs 16964 ;; 16965 16966cygwin* | mingw* | pw32* | cegcc*) 16967 version_type=windows 16968 shrext_cmds=.dll 16969 need_version=no 16970 need_lib_prefix=no 16971 16972 case $GCC,$cc_basename in 16973 yes,*) 16974 # gcc 16975 library_names_spec='$libname.dll.a' 16976 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16977 postinstall_cmds='base_file=`basename \$file`~ 16978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16979 dldir=$destdir/`dirname \$dlpath`~ 16980 test -d \$dldir || mkdir -p \$dldir~ 16981 $install_prog $dir/$dlname \$dldir/$dlname~ 16982 chmod a+x \$dldir/$dlname~ 16983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16985 fi' 16986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16987 dlpath=$dir/\$dldll~ 16988 $RM \$dlpath' 16989 shlibpath_overrides_runpath=yes 16990 16991 case $host_os in 16992 cygwin*) 16993 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16994 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16995 16996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16997 ;; 16998 mingw* | cegcc*) 16999 # MinGW DLLs use traditional 'lib' prefix 17000 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17001 ;; 17002 pw32*) 17003 # pw32 DLLs use 'pw' prefix rather than 'lib' 17004 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17005 ;; 17006 esac 17007 dynamic_linker='Win32 ld.exe' 17008 ;; 17009 17010 *,cl*) 17011 # Native MSVC 17012 libname_spec='$name' 17013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17014 library_names_spec='$libname.dll.lib' 17015 17016 case $build_os in 17017 mingw*) 17018 sys_lib_search_path_spec= 17019 lt_save_ifs=$IFS 17020 IFS=';' 17021 for lt_path in $LIB 17022 do 17023 IFS=$lt_save_ifs 17024 # Let DOS variable expansion print the short 8.3 style file name. 17025 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17026 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17027 done 17028 IFS=$lt_save_ifs 17029 # Convert to MSYS style. 17030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17031 ;; 17032 cygwin*) 17033 # Convert to unix form, then to dos form, then back to unix form 17034 # but this time dos style (no spaces!) so that the unix form looks 17035 # like /cygdrive/c/PROGRA~1:/cygdr... 17036 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17037 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17038 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17039 ;; 17040 *) 17041 sys_lib_search_path_spec=$LIB 17042 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17043 # It is most probably a Windows format PATH. 17044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17045 else 17046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17047 fi 17048 # FIXME: find the short name or the path components, as spaces are 17049 # common. (e.g. "Program Files" -> "PROGRA~1") 17050 ;; 17051 esac 17052 17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17054 postinstall_cmds='base_file=`basename \$file`~ 17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17056 dldir=$destdir/`dirname \$dlpath`~ 17057 test -d \$dldir || mkdir -p \$dldir~ 17058 $install_prog $dir/$dlname \$dldir/$dlname' 17059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17060 dlpath=$dir/\$dldll~ 17061 $RM \$dlpath' 17062 shlibpath_overrides_runpath=yes 17063 dynamic_linker='Win32 link.exe' 17064 ;; 17065 17066 *) 17067 # Assume MSVC wrapper 17068 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17069 dynamic_linker='Win32 ld.exe' 17070 ;; 17071 esac 17072 # FIXME: first we should search . and the directory the executable is in 17073 shlibpath_var=PATH 17074 ;; 17075 17076darwin* | rhapsody*) 17077 dynamic_linker="$host_os dyld" 17078 version_type=darwin 17079 need_lib_prefix=no 17080 need_version=no 17081 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17082 soname_spec='$libname$release$major$shared_ext' 17083 shlibpath_overrides_runpath=yes 17084 shlibpath_var=DYLD_LIBRARY_PATH 17085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17086 17087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17089 ;; 17090 17091dgux*) 17092 version_type=linux # correct to gnu/linux during the next big refactor 17093 need_lib_prefix=no 17094 need_version=no 17095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17096 soname_spec='$libname$release$shared_ext$major' 17097 shlibpath_var=LD_LIBRARY_PATH 17098 ;; 17099 17100freebsd* | dragonfly*) 17101 # DragonFly does not have aout. When/if they implement a new 17102 # versioning mechanism, adjust this. 17103 if test -x /usr/bin/objformat; then 17104 objformat=`/usr/bin/objformat` 17105 else 17106 case $host_os in 17107 freebsd[23].*) objformat=aout ;; 17108 *) objformat=elf ;; 17109 esac 17110 fi 17111 # Handle Gentoo/FreeBSD as it was Linux 17112 case $host_vendor in 17113 gentoo) 17114 version_type=linux ;; 17115 *) 17116 version_type=freebsd-$objformat ;; 17117 esac 17118 17119 case $version_type in 17120 freebsd-elf*) 17121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17122 soname_spec='$libname$release$shared_ext$major' 17123 need_version=no 17124 need_lib_prefix=no 17125 ;; 17126 freebsd-*) 17127 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17128 need_version=yes 17129 ;; 17130 linux) 17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17132 soname_spec='${libname}${release}${shared_ext}$major' 17133 need_lib_prefix=no 17134 need_version=no 17135 ;; 17136 esac 17137 shlibpath_var=LD_LIBRARY_PATH 17138 case $host_os in 17139 freebsd2.*) 17140 shlibpath_overrides_runpath=yes 17141 ;; 17142 freebsd3.[01]* | freebsdelf3.[01]*) 17143 shlibpath_overrides_runpath=yes 17144 hardcode_into_libs=yes 17145 ;; 17146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17148 shlibpath_overrides_runpath=no 17149 hardcode_into_libs=yes 17150 ;; 17151 *) # from 4.6 on, and DragonFly 17152 shlibpath_overrides_runpath=yes 17153 hardcode_into_libs=yes 17154 ;; 17155 esac 17156 ;; 17157 17158haiku*) 17159 version_type=linux # correct to gnu/linux during the next big refactor 17160 need_lib_prefix=no 17161 need_version=no 17162 dynamic_linker="$host_os runtime_loader" 17163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17164 soname_spec='$libname$release$shared_ext$major' 17165 shlibpath_var=LIBRARY_PATH 17166 shlibpath_overrides_runpath=no 17167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17168 hardcode_into_libs=yes 17169 ;; 17170 17171hpux9* | hpux10* | hpux11*) 17172 # Give a soname corresponding to the major version so that dld.sl refuses to 17173 # link against other versions. 17174 version_type=sunos 17175 need_lib_prefix=no 17176 need_version=no 17177 case $host_cpu in 17178 ia64*) 17179 shrext_cmds='.so' 17180 hardcode_into_libs=yes 17181 dynamic_linker="$host_os dld.so" 17182 shlibpath_var=LD_LIBRARY_PATH 17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17185 soname_spec='$libname$release$shared_ext$major' 17186 if test 32 = "$HPUX_IA64_MODE"; then 17187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17189 else 17190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17192 fi 17193 ;; 17194 hppa*64*) 17195 shrext_cmds='.sl' 17196 hardcode_into_libs=yes 17197 dynamic_linker="$host_os dld.sl" 17198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17201 soname_spec='$libname$release$shared_ext$major' 17202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17204 ;; 17205 *) 17206 shrext_cmds='.sl' 17207 dynamic_linker="$host_os dld.sl" 17208 shlibpath_var=SHLIB_PATH 17209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17211 soname_spec='$libname$release$shared_ext$major' 17212 ;; 17213 esac 17214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17215 postinstall_cmds='chmod 555 $lib' 17216 # or fails outright, so override atomically: 17217 install_override_mode=555 17218 ;; 17219 17220interix[3-9]*) 17221 version_type=linux # correct to gnu/linux during the next big refactor 17222 need_lib_prefix=no 17223 need_version=no 17224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17225 soname_spec='$libname$release$shared_ext$major' 17226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17227 shlibpath_var=LD_LIBRARY_PATH 17228 shlibpath_overrides_runpath=no 17229 hardcode_into_libs=yes 17230 ;; 17231 17232irix5* | irix6* | nonstopux*) 17233 case $host_os in 17234 nonstopux*) version_type=nonstopux ;; 17235 *) 17236 if test yes = "$lt_cv_prog_gnu_ld"; then 17237 version_type=linux # correct to gnu/linux during the next big refactor 17238 else 17239 version_type=irix 17240 fi ;; 17241 esac 17242 need_lib_prefix=no 17243 need_version=no 17244 soname_spec='$libname$release$shared_ext$major' 17245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17246 case $host_os in 17247 irix5* | nonstopux*) 17248 libsuff= shlibsuff= 17249 ;; 17250 *) 17251 case $LD in # libtool.m4 will add one of these switches to LD 17252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17253 libsuff= shlibsuff= libmagic=32-bit;; 17254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17255 libsuff=32 shlibsuff=N32 libmagic=N32;; 17256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17257 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17258 *) libsuff= shlibsuff= libmagic=never-match;; 17259 esac 17260 ;; 17261 esac 17262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17263 shlibpath_overrides_runpath=no 17264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17266 hardcode_into_libs=yes 17267 ;; 17268 17269# No shared lib support for Linux oldld, aout, or coff. 17270linux*oldld* | linux*aout* | linux*coff*) 17271 dynamic_linker=no 17272 ;; 17273 17274linux*android*) 17275 version_type=none # Android doesn't support versioned libraries. 17276 need_lib_prefix=no 17277 need_version=no 17278 library_names_spec='$libname$release$shared_ext' 17279 soname_spec='$libname$release$shared_ext' 17280 finish_cmds= 17281 shlibpath_var=LD_LIBRARY_PATH 17282 shlibpath_overrides_runpath=yes 17283 17284 # This implies no fast_install, which is unacceptable. 17285 # Some rework will be needed to allow for fast_install 17286 # before this can be enabled. 17287 hardcode_into_libs=yes 17288 17289 dynamic_linker='Android linker' 17290 # Don't embed -rpath directories since the linker doesn't support them. 17291 hardcode_libdir_flag_spec='-L$libdir' 17292 ;; 17293 17294# This must be glibc/ELF. 17295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17296 version_type=linux # correct to gnu/linux during the next big refactor 17297 need_lib_prefix=no 17298 need_version=no 17299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17300 soname_spec='$libname$release$shared_ext$major' 17301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17302 shlibpath_var=LD_LIBRARY_PATH 17303 shlibpath_overrides_runpath=no 17304 17305 # Some binutils ld are patched to set DT_RUNPATH 17306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17307 $as_echo_n "(cached) " >&6 17308else 17309 lt_cv_shlibpath_overrides_runpath=no 17310 save_LDFLAGS=$LDFLAGS 17311 save_libdir=$libdir 17312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17315/* end confdefs.h. */ 17316 17317int 17318main () 17319{ 17320 17321 ; 17322 return 0; 17323} 17324_ACEOF 17325if ac_fn_c_try_link "$LINENO"; then : 17326 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17327 lt_cv_shlibpath_overrides_runpath=yes 17328fi 17329fi 17330rm -f core conftest.err conftest.$ac_objext \ 17331 conftest$ac_exeext conftest.$ac_ext 17332 LDFLAGS=$save_LDFLAGS 17333 libdir=$save_libdir 17334 17335fi 17336 17337 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17338 17339 # This implies no fast_install, which is unacceptable. 17340 # Some rework will be needed to allow for fast_install 17341 # before this can be enabled. 17342 hardcode_into_libs=yes 17343 17344 # Ideally, we could use ldconfig to report *all* directores which are 17345 # searched for libraries, however this is still not possible. Aside from not 17346 # being certain /sbin/ldconfig is available, command 17347 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17348 # even though it is searched at run-time. Try to do the best guess by 17349 # appending ld.so.conf contents (and includes) to the search path. 17350 if test -f /etc/ld.so.conf; then 17351 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' ' '` 17352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17353 fi 17354 17355 # We used to test for /lib/ld.so.1 and disable shared libraries on 17356 # powerpc, because MkLinux only supported shared libraries with the 17357 # GNU dynamic linker. Since this was broken with cross compilers, 17358 # most powerpc-linux boxes support dynamic linking these days and 17359 # people can always --disable-shared, the test was removed, and we 17360 # assume the GNU/Linux dynamic linker is in use. 17361 dynamic_linker='GNU/Linux ld.so' 17362 ;; 17363 17364netbsd*) 17365 version_type=sunos 17366 need_lib_prefix=no 17367 need_version=no 17368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17369 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17371 dynamic_linker='NetBSD (a.out) ld.so' 17372 else 17373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17374 soname_spec='$libname$release$shared_ext$major' 17375 dynamic_linker='NetBSD ld.elf_so' 17376 fi 17377 shlibpath_var=LD_LIBRARY_PATH 17378 shlibpath_overrides_runpath=yes 17379 hardcode_into_libs=yes 17380 ;; 17381 17382newsos6) 17383 version_type=linux # correct to gnu/linux during the next big refactor 17384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17385 shlibpath_var=LD_LIBRARY_PATH 17386 shlibpath_overrides_runpath=yes 17387 ;; 17388 17389*nto* | *qnx*) 17390 version_type=qnx 17391 need_lib_prefix=no 17392 need_version=no 17393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17394 soname_spec='$libname$release$shared_ext$major' 17395 shlibpath_var=LD_LIBRARY_PATH 17396 shlibpath_overrides_runpath=no 17397 hardcode_into_libs=yes 17398 dynamic_linker='ldqnx.so' 17399 ;; 17400 17401openbsd* | bitrig*) 17402 version_type=sunos 17403 sys_lib_dlsearch_path_spec=/usr/lib 17404 need_lib_prefix=no 17405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17406 need_version=no 17407 else 17408 need_version=yes 17409 fi 17410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17412 shlibpath_var=LD_LIBRARY_PATH 17413 shlibpath_overrides_runpath=yes 17414 ;; 17415 17416os2*) 17417 libname_spec='$name' 17418 version_type=windows 17419 shrext_cmds=.dll 17420 need_version=no 17421 need_lib_prefix=no 17422 # OS/2 can only load a DLL with a base name of 8 characters or less. 17423 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17424 v=$($ECHO $release$versuffix | tr -d .-); 17425 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17426 $ECHO $n$v`$shared_ext' 17427 library_names_spec='${libname}_dll.$libext' 17428 dynamic_linker='OS/2 ld.exe' 17429 shlibpath_var=BEGINLIBPATH 17430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17432 postinstall_cmds='base_file=`basename \$file`~ 17433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17434 dldir=$destdir/`dirname \$dlpath`~ 17435 test -d \$dldir || mkdir -p \$dldir~ 17436 $install_prog $dir/$dlname \$dldir/$dlname~ 17437 chmod a+x \$dldir/$dlname~ 17438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17440 fi' 17441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17442 dlpath=$dir/\$dldll~ 17443 $RM \$dlpath' 17444 ;; 17445 17446osf3* | osf4* | osf5*) 17447 version_type=osf 17448 need_lib_prefix=no 17449 need_version=no 17450 soname_spec='$libname$release$shared_ext$major' 17451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17452 shlibpath_var=LD_LIBRARY_PATH 17453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17455 ;; 17456 17457rdos*) 17458 dynamic_linker=no 17459 ;; 17460 17461solaris*) 17462 version_type=linux # correct to gnu/linux during the next big refactor 17463 need_lib_prefix=no 17464 need_version=no 17465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17466 soname_spec='$libname$release$shared_ext$major' 17467 shlibpath_var=LD_LIBRARY_PATH 17468 shlibpath_overrides_runpath=yes 17469 hardcode_into_libs=yes 17470 # ldd complains unless libraries are executable 17471 postinstall_cmds='chmod +x $lib' 17472 ;; 17473 17474sunos4*) 17475 version_type=sunos 17476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17478 shlibpath_var=LD_LIBRARY_PATH 17479 shlibpath_overrides_runpath=yes 17480 if test yes = "$with_gnu_ld"; then 17481 need_lib_prefix=no 17482 fi 17483 need_version=yes 17484 ;; 17485 17486sysv4 | sysv4.3*) 17487 version_type=linux # correct to gnu/linux during the next big refactor 17488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17489 soname_spec='$libname$release$shared_ext$major' 17490 shlibpath_var=LD_LIBRARY_PATH 17491 case $host_vendor in 17492 sni) 17493 shlibpath_overrides_runpath=no 17494 need_lib_prefix=no 17495 runpath_var=LD_RUN_PATH 17496 ;; 17497 siemens) 17498 need_lib_prefix=no 17499 ;; 17500 motorola) 17501 need_lib_prefix=no 17502 need_version=no 17503 shlibpath_overrides_runpath=no 17504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17505 ;; 17506 esac 17507 ;; 17508 17509sysv4*MP*) 17510 if test -d /usr/nec; then 17511 version_type=linux # correct to gnu/linux during the next big refactor 17512 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17513 soname_spec='$libname$shared_ext.$major' 17514 shlibpath_var=LD_LIBRARY_PATH 17515 fi 17516 ;; 17517 17518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17519 version_type=sco 17520 need_lib_prefix=no 17521 need_version=no 17522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17523 soname_spec='$libname$release$shared_ext$major' 17524 shlibpath_var=LD_LIBRARY_PATH 17525 shlibpath_overrides_runpath=yes 17526 hardcode_into_libs=yes 17527 if test yes = "$with_gnu_ld"; then 17528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17529 else 17530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17531 case $host_os in 17532 sco3.2v5*) 17533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17534 ;; 17535 esac 17536 fi 17537 sys_lib_dlsearch_path_spec='/usr/lib' 17538 ;; 17539 17540tpf*) 17541 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17542 version_type=linux # correct to gnu/linux during the next big refactor 17543 need_lib_prefix=no 17544 need_version=no 17545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17546 shlibpath_var=LD_LIBRARY_PATH 17547 shlibpath_overrides_runpath=no 17548 hardcode_into_libs=yes 17549 ;; 17550 17551uts4*) 17552 version_type=linux # correct to gnu/linux during the next big refactor 17553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17554 soname_spec='$libname$release$shared_ext$major' 17555 shlibpath_var=LD_LIBRARY_PATH 17556 ;; 17557 17558*) 17559 dynamic_linker=no 17560 ;; 17561esac 17562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17563$as_echo "$dynamic_linker" >&6; } 17564test no = "$dynamic_linker" && can_build_shared=no 17565 17566variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17567if test yes = "$GCC"; then 17568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17569fi 17570 17571if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17572 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17573fi 17574 17575if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17576 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17577fi 17578 17579# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17580configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17581 17582# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17583func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17584 17585# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17586configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17685$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17686hardcode_action= 17687if test -n "$hardcode_libdir_flag_spec" || 17688 test -n "$runpath_var" || 17689 test yes = "$hardcode_automatic"; then 17690 17691 # We can hardcode non-existent directories. 17692 if test no != "$hardcode_direct" && 17693 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17694 # have to relink, otherwise we might link with an installed library 17695 # when we should be linking with a yet-to-be-installed one 17696 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17697 test no != "$hardcode_minus_L"; then 17698 # Linking always hardcodes the temporary library directory. 17699 hardcode_action=relink 17700 else 17701 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17702 hardcode_action=immediate 17703 fi 17704else 17705 # We cannot hardcode anything, or else we can only hardcode existing 17706 # directories. 17707 hardcode_action=unsupported 17708fi 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17710$as_echo "$hardcode_action" >&6; } 17711 17712if test relink = "$hardcode_action" || 17713 test yes = "$inherit_rpath"; then 17714 # Fast installation is not supported 17715 enable_fast_install=no 17716elif test yes = "$shlibpath_overrides_runpath" || 17717 test no = "$enable_shared"; then 17718 # Fast installation is not necessary 17719 enable_fast_install=needless 17720fi 17721 17722 17723 17724 17725 17726 17727 if test yes != "$enable_dlopen"; then 17728 enable_dlopen=unknown 17729 enable_dlopen_self=unknown 17730 enable_dlopen_self_static=unknown 17731else 17732 lt_cv_dlopen=no 17733 lt_cv_dlopen_libs= 17734 17735 case $host_os in 17736 beos*) 17737 lt_cv_dlopen=load_add_on 17738 lt_cv_dlopen_libs= 17739 lt_cv_dlopen_self=yes 17740 ;; 17741 17742 mingw* | pw32* | cegcc*) 17743 lt_cv_dlopen=LoadLibrary 17744 lt_cv_dlopen_libs= 17745 ;; 17746 17747 cygwin*) 17748 lt_cv_dlopen=dlopen 17749 lt_cv_dlopen_libs= 17750 ;; 17751 17752 darwin*) 17753 # if libdl is installed we need to link against it 17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17755$as_echo_n "checking for dlopen in -ldl... " >&6; } 17756if ${ac_cv_lib_dl_dlopen+:} false; then : 17757 $as_echo_n "(cached) " >&6 17758else 17759 ac_check_lib_save_LIBS=$LIBS 17760LIBS="-ldl $LIBS" 17761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762/* end confdefs.h. */ 17763 17764/* Override any GCC internal prototype to avoid an error. 17765 Use char because int might match the return type of a GCC 17766 builtin and then its argument prototype would still apply. */ 17767#ifdef __cplusplus 17768extern "C" 17769#endif 17770char dlopen (); 17771int 17772main () 17773{ 17774return dlopen (); 17775 ; 17776 return 0; 17777} 17778_ACEOF 17779if ac_fn_c_try_link "$LINENO"; then : 17780 ac_cv_lib_dl_dlopen=yes 17781else 17782 ac_cv_lib_dl_dlopen=no 17783fi 17784rm -f core conftest.err conftest.$ac_objext \ 17785 conftest$ac_exeext conftest.$ac_ext 17786LIBS=$ac_check_lib_save_LIBS 17787fi 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17789$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17790if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17791 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17792else 17793 17794 lt_cv_dlopen=dyld 17795 lt_cv_dlopen_libs= 17796 lt_cv_dlopen_self=yes 17797 17798fi 17799 17800 ;; 17801 17802 tpf*) 17803 # Don't try to run any link tests for TPF. We know it's impossible 17804 # because TPF is a cross-compiler, and we know how we open DSOs. 17805 lt_cv_dlopen=dlopen 17806 lt_cv_dlopen_libs= 17807 lt_cv_dlopen_self=no 17808 ;; 17809 17810 *) 17811 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17812if test "x$ac_cv_func_shl_load" = xyes; then : 17813 lt_cv_dlopen=shl_load 17814else 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17816$as_echo_n "checking for shl_load in -ldld... " >&6; } 17817if ${ac_cv_lib_dld_shl_load+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819else 17820 ac_check_lib_save_LIBS=$LIBS 17821LIBS="-ldld $LIBS" 17822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17823/* end confdefs.h. */ 17824 17825/* Override any GCC internal prototype to avoid an error. 17826 Use char because int might match the return type of a GCC 17827 builtin and then its argument prototype would still apply. */ 17828#ifdef __cplusplus 17829extern "C" 17830#endif 17831char shl_load (); 17832int 17833main () 17834{ 17835return shl_load (); 17836 ; 17837 return 0; 17838} 17839_ACEOF 17840if ac_fn_c_try_link "$LINENO"; then : 17841 ac_cv_lib_dld_shl_load=yes 17842else 17843 ac_cv_lib_dld_shl_load=no 17844fi 17845rm -f core conftest.err conftest.$ac_objext \ 17846 conftest$ac_exeext conftest.$ac_ext 17847LIBS=$ac_check_lib_save_LIBS 17848fi 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17850$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17851if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17852 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17853else 17854 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17855if test "x$ac_cv_func_dlopen" = xyes; then : 17856 lt_cv_dlopen=dlopen 17857else 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17859$as_echo_n "checking for dlopen in -ldl... " >&6; } 17860if ${ac_cv_lib_dl_dlopen+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 ac_check_lib_save_LIBS=$LIBS 17864LIBS="-ldl $LIBS" 17865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17866/* end confdefs.h. */ 17867 17868/* Override any GCC internal prototype to avoid an error. 17869 Use char because int might match the return type of a GCC 17870 builtin and then its argument prototype would still apply. */ 17871#ifdef __cplusplus 17872extern "C" 17873#endif 17874char dlopen (); 17875int 17876main () 17877{ 17878return dlopen (); 17879 ; 17880 return 0; 17881} 17882_ACEOF 17883if ac_fn_c_try_link "$LINENO"; then : 17884 ac_cv_lib_dl_dlopen=yes 17885else 17886 ac_cv_lib_dl_dlopen=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext \ 17889 conftest$ac_exeext conftest.$ac_ext 17890LIBS=$ac_check_lib_save_LIBS 17891fi 17892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17893$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17894if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17895 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17896else 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17898$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17899if ${ac_cv_lib_svld_dlopen+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 ac_check_lib_save_LIBS=$LIBS 17903LIBS="-lsvld $LIBS" 17904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17905/* end confdefs.h. */ 17906 17907/* Override any GCC internal prototype to avoid an error. 17908 Use char because int might match the return type of a GCC 17909 builtin and then its argument prototype would still apply. */ 17910#ifdef __cplusplus 17911extern "C" 17912#endif 17913char dlopen (); 17914int 17915main () 17916{ 17917return dlopen (); 17918 ; 17919 return 0; 17920} 17921_ACEOF 17922if ac_fn_c_try_link "$LINENO"; then : 17923 ac_cv_lib_svld_dlopen=yes 17924else 17925 ac_cv_lib_svld_dlopen=no 17926fi 17927rm -f core conftest.err conftest.$ac_objext \ 17928 conftest$ac_exeext conftest.$ac_ext 17929LIBS=$ac_check_lib_save_LIBS 17930fi 17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17932$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17933if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17934 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 17935else 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17937$as_echo_n "checking for dld_link in -ldld... " >&6; } 17938if ${ac_cv_lib_dld_dld_link+:} false; then : 17939 $as_echo_n "(cached) " >&6 17940else 17941 ac_check_lib_save_LIBS=$LIBS 17942LIBS="-ldld $LIBS" 17943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17944/* end confdefs.h. */ 17945 17946/* Override any GCC internal prototype to avoid an error. 17947 Use char because int might match the return type of a GCC 17948 builtin and then its argument prototype would still apply. */ 17949#ifdef __cplusplus 17950extern "C" 17951#endif 17952char dld_link (); 17953int 17954main () 17955{ 17956return dld_link (); 17957 ; 17958 return 0; 17959} 17960_ACEOF 17961if ac_fn_c_try_link "$LINENO"; then : 17962 ac_cv_lib_dld_dld_link=yes 17963else 17964 ac_cv_lib_dld_dld_link=no 17965fi 17966rm -f core conftest.err conftest.$ac_objext \ 17967 conftest$ac_exeext conftest.$ac_ext 17968LIBS=$ac_check_lib_save_LIBS 17969fi 17970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17971$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17972if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17973 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 17974fi 17975 17976 17977fi 17978 17979 17980fi 17981 17982 17983fi 17984 17985 17986fi 17987 17988 17989fi 17990 17991 ;; 17992 esac 17993 17994 if test no = "$lt_cv_dlopen"; then 17995 enable_dlopen=no 17996 else 17997 enable_dlopen=yes 17998 fi 17999 18000 case $lt_cv_dlopen in 18001 dlopen) 18002 save_CPPFLAGS=$CPPFLAGS 18003 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18004 18005 save_LDFLAGS=$LDFLAGS 18006 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18007 18008 save_LIBS=$LIBS 18009 LIBS="$lt_cv_dlopen_libs $LIBS" 18010 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18012$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18013if ${lt_cv_dlopen_self+:} false; then : 18014 $as_echo_n "(cached) " >&6 18015else 18016 if test yes = "$cross_compiling"; then : 18017 lt_cv_dlopen_self=cross 18018else 18019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18020 lt_status=$lt_dlunknown 18021 cat > conftest.$ac_ext <<_LT_EOF 18022#line $LINENO "configure" 18023#include "confdefs.h" 18024 18025#if HAVE_DLFCN_H 18026#include <dlfcn.h> 18027#endif 18028 18029#include <stdio.h> 18030 18031#ifdef RTLD_GLOBAL 18032# define LT_DLGLOBAL RTLD_GLOBAL 18033#else 18034# ifdef DL_GLOBAL 18035# define LT_DLGLOBAL DL_GLOBAL 18036# else 18037# define LT_DLGLOBAL 0 18038# endif 18039#endif 18040 18041/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18042 find out it does not work in some platform. */ 18043#ifndef LT_DLLAZY_OR_NOW 18044# ifdef RTLD_LAZY 18045# define LT_DLLAZY_OR_NOW RTLD_LAZY 18046# else 18047# ifdef DL_LAZY 18048# define LT_DLLAZY_OR_NOW DL_LAZY 18049# else 18050# ifdef RTLD_NOW 18051# define LT_DLLAZY_OR_NOW RTLD_NOW 18052# else 18053# ifdef DL_NOW 18054# define LT_DLLAZY_OR_NOW DL_NOW 18055# else 18056# define LT_DLLAZY_OR_NOW 0 18057# endif 18058# endif 18059# endif 18060# endif 18061#endif 18062 18063/* When -fvisibility=hidden is used, assume the code has been annotated 18064 correspondingly for the symbols needed. */ 18065#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18066int fnord () __attribute__((visibility("default"))); 18067#endif 18068 18069int fnord () { return 42; } 18070int main () 18071{ 18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18073 int status = $lt_dlunknown; 18074 18075 if (self) 18076 { 18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18078 else 18079 { 18080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18081 else puts (dlerror ()); 18082 } 18083 /* dlclose (self); */ 18084 } 18085 else 18086 puts (dlerror ()); 18087 18088 return status; 18089} 18090_LT_EOF 18091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18092 (eval $ac_link) 2>&5 18093 ac_status=$? 18094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18095 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18096 (./conftest; exit; ) >&5 2>/dev/null 18097 lt_status=$? 18098 case x$lt_status in 18099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18102 esac 18103 else : 18104 # compilation failed 18105 lt_cv_dlopen_self=no 18106 fi 18107fi 18108rm -fr conftest* 18109 18110 18111fi 18112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18113$as_echo "$lt_cv_dlopen_self" >&6; } 18114 18115 if test yes = "$lt_cv_dlopen_self"; then 18116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18118$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18119if ${lt_cv_dlopen_self_static+:} false; then : 18120 $as_echo_n "(cached) " >&6 18121else 18122 if test yes = "$cross_compiling"; then : 18123 lt_cv_dlopen_self_static=cross 18124else 18125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18126 lt_status=$lt_dlunknown 18127 cat > conftest.$ac_ext <<_LT_EOF 18128#line $LINENO "configure" 18129#include "confdefs.h" 18130 18131#if HAVE_DLFCN_H 18132#include <dlfcn.h> 18133#endif 18134 18135#include <stdio.h> 18136 18137#ifdef RTLD_GLOBAL 18138# define LT_DLGLOBAL RTLD_GLOBAL 18139#else 18140# ifdef DL_GLOBAL 18141# define LT_DLGLOBAL DL_GLOBAL 18142# else 18143# define LT_DLGLOBAL 0 18144# endif 18145#endif 18146 18147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18148 find out it does not work in some platform. */ 18149#ifndef LT_DLLAZY_OR_NOW 18150# ifdef RTLD_LAZY 18151# define LT_DLLAZY_OR_NOW RTLD_LAZY 18152# else 18153# ifdef DL_LAZY 18154# define LT_DLLAZY_OR_NOW DL_LAZY 18155# else 18156# ifdef RTLD_NOW 18157# define LT_DLLAZY_OR_NOW RTLD_NOW 18158# else 18159# ifdef DL_NOW 18160# define LT_DLLAZY_OR_NOW DL_NOW 18161# else 18162# define LT_DLLAZY_OR_NOW 0 18163# endif 18164# endif 18165# endif 18166# endif 18167#endif 18168 18169/* When -fvisibility=hidden is used, assume the code has been annotated 18170 correspondingly for the symbols needed. */ 18171#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18172int fnord () __attribute__((visibility("default"))); 18173#endif 18174 18175int fnord () { return 42; } 18176int main () 18177{ 18178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18179 int status = $lt_dlunknown; 18180 18181 if (self) 18182 { 18183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18184 else 18185 { 18186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18187 else puts (dlerror ()); 18188 } 18189 /* dlclose (self); */ 18190 } 18191 else 18192 puts (dlerror ()); 18193 18194 return status; 18195} 18196_LT_EOF 18197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18198 (eval $ac_link) 2>&5 18199 ac_status=$? 18200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18201 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18202 (./conftest; exit; ) >&5 2>/dev/null 18203 lt_status=$? 18204 case x$lt_status in 18205 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18206 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18207 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18208 esac 18209 else : 18210 # compilation failed 18211 lt_cv_dlopen_self_static=no 18212 fi 18213fi 18214rm -fr conftest* 18215 18216 18217fi 18218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18219$as_echo "$lt_cv_dlopen_self_static" >&6; } 18220 fi 18221 18222 CPPFLAGS=$save_CPPFLAGS 18223 LDFLAGS=$save_LDFLAGS 18224 LIBS=$save_LIBS 18225 ;; 18226 esac 18227 18228 case $lt_cv_dlopen_self in 18229 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18230 *) enable_dlopen_self=unknown ;; 18231 esac 18232 18233 case $lt_cv_dlopen_self_static in 18234 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18235 *) enable_dlopen_self_static=unknown ;; 18236 esac 18237fi 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255striplib= 18256old_striplib= 18257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18258$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18259if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18261 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18263$as_echo "yes" >&6; } 18264else 18265# FIXME - insert some real tests, host_os isn't really good enough 18266 case $host_os in 18267 darwin*) 18268 if test -n "$STRIP"; then 18269 striplib="$STRIP -x" 18270 old_striplib="$STRIP -S" 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18272$as_echo "yes" >&6; } 18273 else 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18275$as_echo "no" >&6; } 18276 fi 18277 ;; 18278 *) 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18280$as_echo "no" >&6; } 18281 ;; 18282 esac 18283fi 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 # Report what library types will actually be built 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18298$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18300$as_echo "$can_build_shared" >&6; } 18301 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18303$as_echo_n "checking whether to build shared libraries... " >&6; } 18304 test no = "$can_build_shared" && enable_shared=no 18305 18306 # On AIX, shared libraries and static libraries use the same namespace, and 18307 # are all built from PIC. 18308 case $host_os in 18309 aix3*) 18310 test yes = "$enable_shared" && enable_static=no 18311 if test -n "$RANLIB"; then 18312 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18313 postinstall_cmds='$RANLIB $lib' 18314 fi 18315 ;; 18316 18317 aix[4-9]*) 18318 if test ia64 != "$host_cpu"; then 18319 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18320 yes,aix,yes) ;; # shared object as lib.so file only 18321 yes,svr4,*) ;; # shared object as lib.so archive member only 18322 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18323 esac 18324 fi 18325 ;; 18326 esac 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18328$as_echo "$enable_shared" >&6; } 18329 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18331$as_echo_n "checking whether to build static libraries... " >&6; } 18332 # Make sure either enable_shared or enable_static is yes. 18333 test yes = "$enable_shared" || enable_static=yes 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18335$as_echo "$enable_static" >&6; } 18336 18337 18338 18339 18340fi 18341ac_ext=c 18342ac_cpp='$CPP $CPPFLAGS' 18343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18345ac_compiler_gnu=$ac_cv_c_compiler_gnu 18346 18347CC=$lt_save_CC 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 ac_config_commands="$ac_config_commands libtool" 18364 18365 18366 18367 18368# Only expand once: 18369 18370 18371 18372 18373 18374# Define a configure option for an alternate module directory 18375 18376# Check whether --with-xorg-module-dir was given. 18377if test "${with_xorg_module_dir+set}" = set; then : 18378 withval=$with_xorg_module_dir; moduledir="$withval" 18379else 18380 moduledir="$libdir/xorg/modules" 18381fi 18382 18383 18384# Store the list of server defined optional extensions in REQUIRED_MODULES 18385 18386 18387 SAVE_CFLAGS="$CFLAGS" 18388 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18390/* end confdefs.h. */ 18391 18392#include "xorg-server.h" 18393#if !defined RANDR 18394#error RANDR not defined 18395#endif 18396 18397int 18398main () 18399{ 18400 18401 ; 18402 return 0; 18403} 18404_ACEOF 18405if ac_fn_c_try_compile "$LINENO"; then : 18406 _EXT_CHECK=yes 18407else 18408 _EXT_CHECK=no 18409fi 18410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18411 CFLAGS="$SAVE_CFLAGS" 18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18413$as_echo_n "checking if RANDR is defined... " >&6; } 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18415$as_echo "$_EXT_CHECK" >&6; } 18416 if test "$_EXT_CHECK" != no; then 18417 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18418 fi 18419 18420 18421 18422 SAVE_CFLAGS="$CFLAGS" 18423 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18425/* end confdefs.h. */ 18426 18427#include "xorg-server.h" 18428#if !defined RENDER 18429#error RENDER not defined 18430#endif 18431 18432int 18433main () 18434{ 18435 18436 ; 18437 return 0; 18438} 18439_ACEOF 18440if ac_fn_c_try_compile "$LINENO"; then : 18441 _EXT_CHECK=yes 18442else 18443 _EXT_CHECK=no 18444fi 18445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18446 CFLAGS="$SAVE_CFLAGS" 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18448$as_echo_n "checking if RENDER is defined... " >&6; } 18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18450$as_echo "$_EXT_CHECK" >&6; } 18451 if test "$_EXT_CHECK" != no; then 18452 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18453 fi 18454 18455 18456# Obtain compiler/linker options for the driver dependencies 18457 18458pkg_failed=no 18459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18460$as_echo_n "checking for XORG... " >&6; } 18461 18462if test -n "$XORG_CFLAGS"; then 18463 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18464 elif test -n "$PKG_CONFIG"; then 18465 if test -n "$PKG_CONFIG" && \ 18466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18467 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18468 ac_status=$? 18469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18470 test $ac_status = 0; }; then 18471 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18472 test "x$?" != "x0" && pkg_failed=yes 18473else 18474 pkg_failed=yes 18475fi 18476 else 18477 pkg_failed=untried 18478fi 18479if test -n "$XORG_LIBS"; then 18480 pkg_cv_XORG_LIBS="$XORG_LIBS" 18481 elif test -n "$PKG_CONFIG"; then 18482 if test -n "$PKG_CONFIG" && \ 18483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18484 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18485 ac_status=$? 18486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18487 test $ac_status = 0; }; then 18488 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18489 test "x$?" != "x0" && pkg_failed=yes 18490else 18491 pkg_failed=yes 18492fi 18493 else 18494 pkg_failed=untried 18495fi 18496 18497 18498 18499if test $pkg_failed = yes; then 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18501$as_echo "no" >&6; } 18502 18503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18504 _pkg_short_errors_supported=yes 18505else 18506 _pkg_short_errors_supported=no 18507fi 18508 if test $_pkg_short_errors_supported = yes; then 18509 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18510 else 18511 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18512 fi 18513 # Put the nasty error message in config.log where it belongs 18514 echo "$XORG_PKG_ERRORS" >&5 18515 18516 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18517 18518$XORG_PKG_ERRORS 18519 18520Consider adjusting the PKG_CONFIG_PATH environment variable if you 18521installed software in a non-standard prefix. 18522 18523Alternatively, you may set the environment variables XORG_CFLAGS 18524and XORG_LIBS to avoid the need to call pkg-config. 18525See the pkg-config man page for more details." "$LINENO" 5 18526elif test $pkg_failed = untried; then 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18528$as_echo "no" >&6; } 18529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18531as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18532is in your PATH or set the PKG_CONFIG environment variable to the full 18533path to pkg-config. 18534 18535Alternatively, you may set the environment variables XORG_CFLAGS 18536and XORG_LIBS to avoid the need to call pkg-config. 18537See the pkg-config man page for more details. 18538 18539To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18540See \`config.log' for more details" "$LINENO" 5; } 18541else 18542 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18543 XORG_LIBS=$pkg_cv_XORG_LIBS 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18545$as_echo "yes" >&6; } 18546 18547fi 18548 18549# Checks for libraries. 18550 18551 18552 18553DRIVER_NAME=sunleo 18554 18555 18556ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18557 18558cat >confcache <<\_ACEOF 18559# This file is a shell script that caches the results of configure 18560# tests run on this system so they can be shared between configure 18561# scripts and configure runs, see configure's option --config-cache. 18562# It is not useful on other systems. If it contains results you don't 18563# want to keep, you may remove or edit it. 18564# 18565# config.status only pays attention to the cache file if you give it 18566# the --recheck option to rerun configure. 18567# 18568# `ac_cv_env_foo' variables (set or unset) will be overridden when 18569# loading this file, other *unset* `ac_cv_foo' will be assigned the 18570# following values. 18571 18572_ACEOF 18573 18574# The following way of writing the cache mishandles newlines in values, 18575# but we know of no workaround that is simple, portable, and efficient. 18576# So, we kill variables containing newlines. 18577# Ultrix sh set writes to stderr and can't be redirected directly, 18578# and sets the high bit in the cache file unless we assign to the vars. 18579( 18580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18581 eval ac_val=\$$ac_var 18582 case $ac_val in #( 18583 *${as_nl}*) 18584 case $ac_var in #( 18585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18586$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18587 esac 18588 case $ac_var in #( 18589 _ | IFS | as_nl) ;; #( 18590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18591 *) { eval $ac_var=; unset $ac_var;} ;; 18592 esac ;; 18593 esac 18594 done 18595 18596 (set) 2>&1 | 18597 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18598 *${as_nl}ac_space=\ *) 18599 # `set' does not quote correctly, so add quotes: double-quote 18600 # substitution turns \\\\ into \\, and sed turns \\ into \. 18601 sed -n \ 18602 "s/'/'\\\\''/g; 18603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18604 ;; #( 18605 *) 18606 # `set' quotes correctly as required by POSIX, so do not add quotes. 18607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18608 ;; 18609 esac | 18610 sort 18611) | 18612 sed ' 18613 /^ac_cv_env_/b end 18614 t clear 18615 :clear 18616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18617 t end 18618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18619 :end' >>confcache 18620if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18621 if test -w "$cache_file"; then 18622 if test "x$cache_file" != "x/dev/null"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18624$as_echo "$as_me: updating cache $cache_file" >&6;} 18625 if test ! -f "$cache_file" || test -h "$cache_file"; then 18626 cat confcache >"$cache_file" 18627 else 18628 case $cache_file in #( 18629 */* | ?:*) 18630 mv -f confcache "$cache_file"$$ && 18631 mv -f "$cache_file"$$ "$cache_file" ;; #( 18632 *) 18633 mv -f confcache "$cache_file" ;; 18634 esac 18635 fi 18636 fi 18637 else 18638 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18639$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18640 fi 18641fi 18642rm -f confcache 18643 18644test "x$prefix" = xNONE && prefix=$ac_default_prefix 18645# Let make expand exec_prefix. 18646test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18647 18648DEFS=-DHAVE_CONFIG_H 18649 18650ac_libobjs= 18651ac_ltlibobjs= 18652U= 18653for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18654 # 1. Remove the extension, and $U if already installed. 18655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18656 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18658 # will be set to the directory where LIBOBJS objects are built. 18659 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18660 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18661done 18662LIBOBJS=$ac_libobjs 18663 18664LTLIBOBJS=$ac_ltlibobjs 18665 18666 18667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18668$as_echo_n "checking that generated files are newer than configure... " >&6; } 18669 if test -n "$am_sleep_pid"; then 18670 # Hide warnings about reused PIDs. 18671 wait $am_sleep_pid 2>/dev/null 18672 fi 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18674$as_echo "done" >&6; } 18675 if test -n "$EXEEXT"; then 18676 am__EXEEXT_TRUE= 18677 am__EXEEXT_FALSE='#' 18678else 18679 am__EXEEXT_TRUE='#' 18680 am__EXEEXT_FALSE= 18681fi 18682 18683if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18684 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18685Usually this means the macro was only invoked conditionally." "$LINENO" 5 18686fi 18687if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18688 as_fn_error $? "conditional \"AMDEP\" was never defined. 18689Usually this means the macro was only invoked conditionally." "$LINENO" 5 18690fi 18691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18693Usually this means the macro was only invoked conditionally." "$LINENO" 5 18694fi 18695 18696: "${CONFIG_STATUS=./config.status}" 18697ac_write_fail=0 18698ac_clean_files_save=$ac_clean_files 18699ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18700{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18701$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18702as_write_fail=0 18703cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18704#! $SHELL 18705# Generated by $as_me. 18706# Run this file to recreate the current configuration. 18707# Compiler output produced by configure, useful for debugging 18708# configure, is in config.log if it exists. 18709 18710debug=false 18711ac_cs_recheck=false 18712ac_cs_silent=false 18713 18714SHELL=\${CONFIG_SHELL-$SHELL} 18715export SHELL 18716_ASEOF 18717cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18718## -------------------- ## 18719## M4sh Initialization. ## 18720## -------------------- ## 18721 18722# Be more Bourne compatible 18723DUALCASE=1; export DUALCASE # for MKS sh 18724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18725 emulate sh 18726 NULLCMD=: 18727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18728 # is contrary to our usage. Disable this feature. 18729 alias -g '${1+"$@"}'='"$@"' 18730 setopt NO_GLOB_SUBST 18731else 18732 case `(set -o) 2>/dev/null` in #( 18733 *posix*) : 18734 set -o posix ;; #( 18735 *) : 18736 ;; 18737esac 18738fi 18739 18740 18741as_nl=' 18742' 18743export as_nl 18744# Printing a long string crashes Solaris 7 /usr/bin/printf. 18745as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18748# Prefer a ksh shell builtin over an external printf program on Solaris, 18749# but without wasting forks for bash or zsh. 18750if test -z "$BASH_VERSION$ZSH_VERSION" \ 18751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18752 as_echo='print -r --' 18753 as_echo_n='print -rn --' 18754elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18755 as_echo='printf %s\n' 18756 as_echo_n='printf %s' 18757else 18758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18759 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18760 as_echo_n='/usr/ucb/echo -n' 18761 else 18762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18763 as_echo_n_body='eval 18764 arg=$1; 18765 case $arg in #( 18766 *"$as_nl"*) 18767 expr "X$arg" : "X\\(.*\\)$as_nl"; 18768 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18769 esac; 18770 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18771 ' 18772 export as_echo_n_body 18773 as_echo_n='sh -c $as_echo_n_body as_echo' 18774 fi 18775 export as_echo_body 18776 as_echo='sh -c $as_echo_body as_echo' 18777fi 18778 18779# The user is always right. 18780if test "${PATH_SEPARATOR+set}" != set; then 18781 PATH_SEPARATOR=: 18782 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18783 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18784 PATH_SEPARATOR=';' 18785 } 18786fi 18787 18788 18789# IFS 18790# We need space, tab and new line, in precisely that order. Quoting is 18791# there to prevent editors from complaining about space-tab. 18792# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18793# splitting by setting IFS to empty value.) 18794IFS=" "" $as_nl" 18795 18796# Find who we are. Look in the path if we contain no directory separator. 18797as_myself= 18798case $0 in #(( 18799 *[\\/]* ) as_myself=$0 ;; 18800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18801for as_dir in $PATH 18802do 18803 IFS=$as_save_IFS 18804 test -z "$as_dir" && as_dir=. 18805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18806 done 18807IFS=$as_save_IFS 18808 18809 ;; 18810esac 18811# We did not find ourselves, most probably we were run as `sh COMMAND' 18812# in which case we are not to be found in the path. 18813if test "x$as_myself" = x; then 18814 as_myself=$0 18815fi 18816if test ! -f "$as_myself"; then 18817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18818 exit 1 18819fi 18820 18821# Unset variables that we do not need and which cause bugs (e.g. in 18822# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18823# suppresses any "Segmentation fault" message there. '((' could 18824# trigger a bug in pdksh 5.2.14. 18825for as_var in BASH_ENV ENV MAIL MAILPATH 18826do eval test x\${$as_var+set} = xset \ 18827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18828done 18829PS1='$ ' 18830PS2='> ' 18831PS4='+ ' 18832 18833# NLS nuisances. 18834LC_ALL=C 18835export LC_ALL 18836LANGUAGE=C 18837export LANGUAGE 18838 18839# CDPATH. 18840(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18841 18842 18843# as_fn_error STATUS ERROR [LINENO LOG_FD] 18844# ---------------------------------------- 18845# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18846# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18847# script with STATUS, using 1 if that was 0. 18848as_fn_error () 18849{ 18850 as_status=$1; test $as_status -eq 0 && as_status=1 18851 if test "$4"; then 18852 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18854 fi 18855 $as_echo "$as_me: error: $2" >&2 18856 as_fn_exit $as_status 18857} # as_fn_error 18858 18859 18860# as_fn_set_status STATUS 18861# ----------------------- 18862# Set $? to STATUS, without forking. 18863as_fn_set_status () 18864{ 18865 return $1 18866} # as_fn_set_status 18867 18868# as_fn_exit STATUS 18869# ----------------- 18870# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18871as_fn_exit () 18872{ 18873 set +e 18874 as_fn_set_status $1 18875 exit $1 18876} # as_fn_exit 18877 18878# as_fn_unset VAR 18879# --------------- 18880# Portably unset VAR. 18881as_fn_unset () 18882{ 18883 { eval $1=; unset $1;} 18884} 18885as_unset=as_fn_unset 18886# as_fn_append VAR VALUE 18887# ---------------------- 18888# Append the text in VALUE to the end of the definition contained in VAR. Take 18889# advantage of any shell optimizations that allow amortized linear growth over 18890# repeated appends, instead of the typical quadratic growth present in naive 18891# implementations. 18892if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18893 eval 'as_fn_append () 18894 { 18895 eval $1+=\$2 18896 }' 18897else 18898 as_fn_append () 18899 { 18900 eval $1=\$$1\$2 18901 } 18902fi # as_fn_append 18903 18904# as_fn_arith ARG... 18905# ------------------ 18906# Perform arithmetic evaluation on the ARGs, and store the result in the 18907# global $as_val. Take advantage of shells that can avoid forks. The arguments 18908# must be portable across $(()) and expr. 18909if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18910 eval 'as_fn_arith () 18911 { 18912 as_val=$(( $* )) 18913 }' 18914else 18915 as_fn_arith () 18916 { 18917 as_val=`expr "$@" || test $? -eq 1` 18918 } 18919fi # as_fn_arith 18920 18921 18922if expr a : '\(a\)' >/dev/null 2>&1 && 18923 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18924 as_expr=expr 18925else 18926 as_expr=false 18927fi 18928 18929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18930 as_basename=basename 18931else 18932 as_basename=false 18933fi 18934 18935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18936 as_dirname=dirname 18937else 18938 as_dirname=false 18939fi 18940 18941as_me=`$as_basename -- "$0" || 18942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18943 X"$0" : 'X\(//\)$' \| \ 18944 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18945$as_echo X/"$0" | 18946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18947 s//\1/ 18948 q 18949 } 18950 /^X\/\(\/\/\)$/{ 18951 s//\1/ 18952 q 18953 } 18954 /^X\/\(\/\).*/{ 18955 s//\1/ 18956 q 18957 } 18958 s/.*/./; q'` 18959 18960# Avoid depending upon Character Ranges. 18961as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18963as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18964as_cr_digits='0123456789' 18965as_cr_alnum=$as_cr_Letters$as_cr_digits 18966 18967ECHO_C= ECHO_N= ECHO_T= 18968case `echo -n x` in #((((( 18969-n*) 18970 case `echo 'xy\c'` in 18971 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18972 xy) ECHO_C='\c';; 18973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18974 ECHO_T=' ';; 18975 esac;; 18976*) 18977 ECHO_N='-n';; 18978esac 18979 18980rm -f conf$$ conf$$.exe conf$$.file 18981if test -d conf$$.dir; then 18982 rm -f conf$$.dir/conf$$.file 18983else 18984 rm -f conf$$.dir 18985 mkdir conf$$.dir 2>/dev/null 18986fi 18987if (echo >conf$$.file) 2>/dev/null; then 18988 if ln -s conf$$.file conf$$ 2>/dev/null; then 18989 as_ln_s='ln -s' 18990 # ... but there are two gotchas: 18991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18993 # In both cases, we have to default to `cp -pR'. 18994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18995 as_ln_s='cp -pR' 18996 elif ln conf$$.file conf$$ 2>/dev/null; then 18997 as_ln_s=ln 18998 else 18999 as_ln_s='cp -pR' 19000 fi 19001else 19002 as_ln_s='cp -pR' 19003fi 19004rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19005rmdir conf$$.dir 2>/dev/null 19006 19007 19008# as_fn_mkdir_p 19009# ------------- 19010# Create "$as_dir" as a directory, including parents if necessary. 19011as_fn_mkdir_p () 19012{ 19013 19014 case $as_dir in #( 19015 -*) as_dir=./$as_dir;; 19016 esac 19017 test -d "$as_dir" || eval $as_mkdir_p || { 19018 as_dirs= 19019 while :; do 19020 case $as_dir in #( 19021 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19022 *) as_qdir=$as_dir;; 19023 esac 19024 as_dirs="'$as_qdir' $as_dirs" 19025 as_dir=`$as_dirname -- "$as_dir" || 19026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19027 X"$as_dir" : 'X\(//\)[^/]' \| \ 19028 X"$as_dir" : 'X\(//\)$' \| \ 19029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19030$as_echo X"$as_dir" | 19031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19032 s//\1/ 19033 q 19034 } 19035 /^X\(\/\/\)[^/].*/{ 19036 s//\1/ 19037 q 19038 } 19039 /^X\(\/\/\)$/{ 19040 s//\1/ 19041 q 19042 } 19043 /^X\(\/\).*/{ 19044 s//\1/ 19045 q 19046 } 19047 s/.*/./; q'` 19048 test -d "$as_dir" && break 19049 done 19050 test -z "$as_dirs" || eval "mkdir $as_dirs" 19051 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19052 19053 19054} # as_fn_mkdir_p 19055if mkdir -p . 2>/dev/null; then 19056 as_mkdir_p='mkdir -p "$as_dir"' 19057else 19058 test -d ./-p && rmdir ./-p 19059 as_mkdir_p=false 19060fi 19061 19062 19063# as_fn_executable_p FILE 19064# ----------------------- 19065# Test if FILE is an executable regular file. 19066as_fn_executable_p () 19067{ 19068 test -f "$1" && test -x "$1" 19069} # as_fn_executable_p 19070as_test_x='test -x' 19071as_executable_p=as_fn_executable_p 19072 19073# Sed expression to map a string onto a valid CPP name. 19074as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19075 19076# Sed expression to map a string onto a valid variable name. 19077as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19078 19079 19080exec 6>&1 19081## ----------------------------------- ## 19082## Main body of $CONFIG_STATUS script. ## 19083## ----------------------------------- ## 19084_ASEOF 19085test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19086 19087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19088# Save the log message, to keep $0 and so on meaningful, and to 19089# report actual input values of CONFIG_FILES etc. instead of their 19090# values after options handling. 19091ac_log=" 19092This file was extended by xf86-video-sunleo $as_me 1.2.2, which was 19093generated by GNU Autoconf 2.69. Invocation command line was 19094 19095 CONFIG_FILES = $CONFIG_FILES 19096 CONFIG_HEADERS = $CONFIG_HEADERS 19097 CONFIG_LINKS = $CONFIG_LINKS 19098 CONFIG_COMMANDS = $CONFIG_COMMANDS 19099 $ $0 $@ 19100 19101on `(hostname || uname -n) 2>/dev/null | sed 1q` 19102" 19103 19104_ACEOF 19105 19106case $ac_config_files in *" 19107"*) set x $ac_config_files; shift; ac_config_files=$*;; 19108esac 19109 19110case $ac_config_headers in *" 19111"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19112esac 19113 19114 19115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19116# Files that config.status was made for. 19117config_files="$ac_config_files" 19118config_headers="$ac_config_headers" 19119config_commands="$ac_config_commands" 19120 19121_ACEOF 19122 19123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19124ac_cs_usage="\ 19125\`$as_me' instantiates files and other configuration actions 19126from templates according to the current configuration. Unless the files 19127and actions are specified as TAGs, all are instantiated by default. 19128 19129Usage: $0 [OPTION]... [TAG]... 19130 19131 -h, --help print this help, then exit 19132 -V, --version print version number and configuration settings, then exit 19133 --config print configuration, then exit 19134 -q, --quiet, --silent 19135 do not print progress messages 19136 -d, --debug don't remove temporary files 19137 --recheck update $as_me by reconfiguring in the same conditions 19138 --file=FILE[:TEMPLATE] 19139 instantiate the configuration file FILE 19140 --header=FILE[:TEMPLATE] 19141 instantiate the configuration header FILE 19142 19143Configuration files: 19144$config_files 19145 19146Configuration headers: 19147$config_headers 19148 19149Configuration commands: 19150$config_commands 19151 19152Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19153 19154_ACEOF 19155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19156ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19157ac_cs_version="\\ 19158xf86-video-sunleo config.status 1.2.2 19159configured by $0, generated by GNU Autoconf 2.69, 19160 with options \\"\$ac_cs_config\\" 19161 19162Copyright (C) 2012 Free Software Foundation, Inc. 19163This config.status script is free software; the Free Software Foundation 19164gives unlimited permission to copy, distribute and modify it." 19165 19166ac_pwd='$ac_pwd' 19167srcdir='$srcdir' 19168INSTALL='$INSTALL' 19169MKDIR_P='$MKDIR_P' 19170AWK='$AWK' 19171test -n "\$AWK" || AWK=awk 19172_ACEOF 19173 19174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19175# The default lists apply if the user does not specify any file. 19176ac_need_defaults=: 19177while test $# != 0 19178do 19179 case $1 in 19180 --*=?*) 19181 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19183 ac_shift=: 19184 ;; 19185 --*=) 19186 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19187 ac_optarg= 19188 ac_shift=: 19189 ;; 19190 *) 19191 ac_option=$1 19192 ac_optarg=$2 19193 ac_shift=shift 19194 ;; 19195 esac 19196 19197 case $ac_option in 19198 # Handling of the options. 19199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19200 ac_cs_recheck=: ;; 19201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19202 $as_echo "$ac_cs_version"; exit ;; 19203 --config | --confi | --conf | --con | --co | --c ) 19204 $as_echo "$ac_cs_config"; exit ;; 19205 --debug | --debu | --deb | --de | --d | -d ) 19206 debug=: ;; 19207 --file | --fil | --fi | --f ) 19208 $ac_shift 19209 case $ac_optarg in 19210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19211 '') as_fn_error $? "missing file argument" ;; 19212 esac 19213 as_fn_append CONFIG_FILES " '$ac_optarg'" 19214 ac_need_defaults=false;; 19215 --header | --heade | --head | --hea ) 19216 $ac_shift 19217 case $ac_optarg in 19218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19219 esac 19220 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19221 ac_need_defaults=false;; 19222 --he | --h) 19223 # Conflict between --help and --header 19224 as_fn_error $? "ambiguous option: \`$1' 19225Try \`$0 --help' for more information.";; 19226 --help | --hel | -h ) 19227 $as_echo "$ac_cs_usage"; exit ;; 19228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19229 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19230 ac_cs_silent=: ;; 19231 19232 # This is an error. 19233 -*) as_fn_error $? "unrecognized option: \`$1' 19234Try \`$0 --help' for more information." ;; 19235 19236 *) as_fn_append ac_config_targets " $1" 19237 ac_need_defaults=false ;; 19238 19239 esac 19240 shift 19241done 19242 19243ac_configure_extra_args= 19244 19245if $ac_cs_silent; then 19246 exec 6>/dev/null 19247 ac_configure_extra_args="$ac_configure_extra_args --silent" 19248fi 19249 19250_ACEOF 19251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19252if \$ac_cs_recheck; then 19253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19254 shift 19255 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19256 CONFIG_SHELL='$SHELL' 19257 export CONFIG_SHELL 19258 exec "\$@" 19259fi 19260 19261_ACEOF 19262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19263exec 5>>config.log 19264{ 19265 echo 19266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19267## Running $as_me. ## 19268_ASBOX 19269 $as_echo "$ac_log" 19270} >&5 19271 19272_ACEOF 19273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19274# 19275# INIT-COMMANDS 19276# 19277AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19278 19279 19280# The HP-UX ksh and POSIX shell print the target directory to stdout 19281# if CDPATH is set. 19282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19283 19284sed_quote_subst='$sed_quote_subst' 19285double_quote_subst='$double_quote_subst' 19286delay_variable_subst='$delay_variable_subst' 19287enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19288macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19289macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19290enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19291pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19292enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19293shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19294SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19295ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19296PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19317lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19318lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19319reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19320reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19321OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19322deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19323file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19324file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19325want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19326DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19327sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19328AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19329AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19330archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19331STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19332RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19333old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19334old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19335old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19336lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19337CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19338CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19339compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19340GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19341lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19343lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19344lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19345lt_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"`' 19346lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19347nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19348lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19349lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19350objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19351MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19352lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19353lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19354lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19355lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19356lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19357need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19358MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19359DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19360NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19361LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19362OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19363OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19364libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19365shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19366extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19367archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19368enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19369export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19370whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19371compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19372old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19373old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19374archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19375archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19376module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19377module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19378with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19379allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19380no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19381hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19382hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19383hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19384hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19385hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19386hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19387hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19388inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19389link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19390always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19391export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19392exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19393include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19394prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19395postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19396file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19397variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19398need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19399need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19400version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19401runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19402shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19403shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19404libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19405library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19406soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19407install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19408postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19409postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19410finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19411finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19412hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19413sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19414configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19415configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19416hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19417enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19418enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19419enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19420old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19421striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19422 19423LTCC='$LTCC' 19424LTCFLAGS='$LTCFLAGS' 19425compiler='$compiler_DEFAULT' 19426 19427# A function that is used when there is no print builtin or printf. 19428func_fallback_echo () 19429{ 19430 eval 'cat <<_LTECHO_EOF 19431\$1 19432_LTECHO_EOF' 19433} 19434 19435# Quote evaled strings. 19436for var in SHELL \ 19437ECHO \ 19438PATH_SEPARATOR \ 19439SED \ 19440GREP \ 19441EGREP \ 19442FGREP \ 19443LD \ 19444NM \ 19445LN_S \ 19446lt_SP2NL \ 19447lt_NL2SP \ 19448reload_flag \ 19449OBJDUMP \ 19450deplibs_check_method \ 19451file_magic_cmd \ 19452file_magic_glob \ 19453want_nocaseglob \ 19454DLLTOOL \ 19455sharedlib_from_linklib_cmd \ 19456AR \ 19457AR_FLAGS \ 19458archiver_list_spec \ 19459STRIP \ 19460RANLIB \ 19461CC \ 19462CFLAGS \ 19463compiler \ 19464lt_cv_sys_global_symbol_pipe \ 19465lt_cv_sys_global_symbol_to_cdecl \ 19466lt_cv_sys_global_symbol_to_import \ 19467lt_cv_sys_global_symbol_to_c_name_address \ 19468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19469lt_cv_nm_interface \ 19470nm_file_list_spec \ 19471lt_cv_truncate_bin \ 19472lt_prog_compiler_no_builtin_flag \ 19473lt_prog_compiler_pic \ 19474lt_prog_compiler_wl \ 19475lt_prog_compiler_static \ 19476lt_cv_prog_compiler_c_o \ 19477need_locks \ 19478MANIFEST_TOOL \ 19479DSYMUTIL \ 19480NMEDIT \ 19481LIPO \ 19482OTOOL \ 19483OTOOL64 \ 19484shrext_cmds \ 19485export_dynamic_flag_spec \ 19486whole_archive_flag_spec \ 19487compiler_needs_object \ 19488with_gnu_ld \ 19489allow_undefined_flag \ 19490no_undefined_flag \ 19491hardcode_libdir_flag_spec \ 19492hardcode_libdir_separator \ 19493exclude_expsyms \ 19494include_expsyms \ 19495file_list_spec \ 19496variables_saved_for_relink \ 19497libname_spec \ 19498library_names_spec \ 19499soname_spec \ 19500install_override_mode \ 19501finish_eval \ 19502old_striplib \ 19503striplib; do 19504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19505 *[\\\\\\\`\\"\\\$]*) 19506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19507 ;; 19508 *) 19509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19510 ;; 19511 esac 19512done 19513 19514# Double-quote double-evaled strings. 19515for var in reload_cmds \ 19516old_postinstall_cmds \ 19517old_postuninstall_cmds \ 19518old_archive_cmds \ 19519extract_expsyms_cmds \ 19520old_archive_from_new_cmds \ 19521old_archive_from_expsyms_cmds \ 19522archive_cmds \ 19523archive_expsym_cmds \ 19524module_cmds \ 19525module_expsym_cmds \ 19526export_symbols_cmds \ 19527prelink_cmds \ 19528postlink_cmds \ 19529postinstall_cmds \ 19530postuninstall_cmds \ 19531finish_cmds \ 19532sys_lib_search_path_spec \ 19533configure_time_dlsearch_path \ 19534configure_time_lt_sys_library_path; do 19535 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19536 *[\\\\\\\`\\"\\\$]*) 19537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19538 ;; 19539 *) 19540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19541 ;; 19542 esac 19543done 19544 19545ac_aux_dir='$ac_aux_dir' 19546 19547# See if we are running on zsh, and set the options that allow our 19548# commands through without removal of \ escapes INIT. 19549if test -n "\${ZSH_VERSION+set}"; then 19550 setopt NO_GLOB_SUBST 19551fi 19552 19553 19554 PACKAGE='$PACKAGE' 19555 VERSION='$VERSION' 19556 RM='$RM' 19557 ofile='$ofile' 19558 19559 19560 19561 19562_ACEOF 19563 19564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19565 19566# Handling of arguments. 19567for ac_config_target in $ac_config_targets 19568do 19569 case $ac_config_target in 19570 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19574 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19575 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19576 19577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19578 esac 19579done 19580 19581 19582# If the user did not use the arguments to specify the items to instantiate, 19583# then the envvar interface is used. Set only those that are not. 19584# We use the long form for the default assignment because of an extremely 19585# bizarre bug on SunOS 4.1.3. 19586if $ac_need_defaults; then 19587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19590fi 19591 19592# Have a temporary directory for convenience. Make it in the build tree 19593# simply because there is no reason against having it here, and in addition, 19594# creating and moving files from /tmp can sometimes cause problems. 19595# Hook for its removal unless debugging. 19596# Note that there is a small window in which the directory will not be cleaned: 19597# after its creation but before its name has been assigned to `$tmp'. 19598$debug || 19599{ 19600 tmp= ac_tmp= 19601 trap 'exit_status=$? 19602 : "${ac_tmp:=$tmp}" 19603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19604' 0 19605 trap 'as_fn_exit 1' 1 2 13 15 19606} 19607# Create a (secure) tmp directory for tmp files. 19608 19609{ 19610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19611 test -d "$tmp" 19612} || 19613{ 19614 tmp=./conf$$-$RANDOM 19615 (umask 077 && mkdir "$tmp") 19616} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19617ac_tmp=$tmp 19618 19619# Set up the scripts for CONFIG_FILES section. 19620# No need to generate them if there are no CONFIG_FILES. 19621# This happens for instance with `./config.status config.h'. 19622if test -n "$CONFIG_FILES"; then 19623 19624 19625ac_cr=`echo X | tr X '\015'` 19626# On cygwin, bash can eat \r inside `` if the user requested igncr. 19627# But we know of no other shell where ac_cr would be empty at this 19628# point, so we can use a bashism as a fallback. 19629if test "x$ac_cr" = x; then 19630 eval ac_cr=\$\'\\r\' 19631fi 19632ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19633if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19634 ac_cs_awk_cr='\\r' 19635else 19636 ac_cs_awk_cr=$ac_cr 19637fi 19638 19639echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19640_ACEOF 19641 19642 19643{ 19644 echo "cat >conf$$subs.awk <<_ACEOF" && 19645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19646 echo "_ACEOF" 19647} >conf$$subs.sh || 19648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19649ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19650ac_delim='%!_!# ' 19651for ac_last_try in false false false false false :; do 19652 . ./conf$$subs.sh || 19653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19654 19655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19656 if test $ac_delim_n = $ac_delim_num; then 19657 break 19658 elif $ac_last_try; then 19659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19660 else 19661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19662 fi 19663done 19664rm -f conf$$subs.sh 19665 19666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19667cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19668_ACEOF 19669sed -n ' 19670h 19671s/^/S["/; s/!.*/"]=/ 19672p 19673g 19674s/^[^!]*!// 19675:repl 19676t repl 19677s/'"$ac_delim"'$// 19678t delim 19679:nl 19680h 19681s/\(.\{148\}\)..*/\1/ 19682t more1 19683s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19684p 19685n 19686b repl 19687:more1 19688s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19689p 19690g 19691s/.\{148\}// 19692t nl 19693:delim 19694h 19695s/\(.\{148\}\)..*/\1/ 19696t more2 19697s/["\\]/\\&/g; s/^/"/; s/$/"/ 19698p 19699b 19700:more2 19701s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19702p 19703g 19704s/.\{148\}// 19705t delim 19706' <conf$$subs.awk | sed ' 19707/^[^""]/{ 19708 N 19709 s/\n// 19710} 19711' >>$CONFIG_STATUS || ac_write_fail=1 19712rm -f conf$$subs.awk 19713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19714_ACAWK 19715cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19716 for (key in S) S_is_set[key] = 1 19717 FS = "" 19718 19719} 19720{ 19721 line = $ 0 19722 nfields = split(line, field, "@") 19723 substed = 0 19724 len = length(field[1]) 19725 for (i = 2; i < nfields; i++) { 19726 key = field[i] 19727 keylen = length(key) 19728 if (S_is_set[key]) { 19729 value = S[key] 19730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19731 len += length(value) + length(field[++i]) 19732 substed = 1 19733 } else 19734 len += 1 + keylen 19735 } 19736 19737 print line 19738} 19739 19740_ACAWK 19741_ACEOF 19742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19743if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19744 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19745else 19746 cat 19747fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19748 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19749_ACEOF 19750 19751# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19752# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19753# trailing colons and then remove the whole line if VPATH becomes empty 19754# (actually we leave an empty line to preserve line numbers). 19755if test "x$srcdir" = x.; then 19756 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19757h 19758s/// 19759s/^/:/ 19760s/[ ]*$/:/ 19761s/:\$(srcdir):/:/g 19762s/:\${srcdir}:/:/g 19763s/:@srcdir@:/:/g 19764s/^:*// 19765s/:*$// 19766x 19767s/\(=[ ]*\).*/\1/ 19768G 19769s/\n// 19770s/^[^=]*=[ ]*$// 19771}' 19772fi 19773 19774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19775fi # test -n "$CONFIG_FILES" 19776 19777# Set up the scripts for CONFIG_HEADERS section. 19778# No need to generate them if there are no CONFIG_HEADERS. 19779# This happens for instance with `./config.status Makefile'. 19780if test -n "$CONFIG_HEADERS"; then 19781cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19782BEGIN { 19783_ACEOF 19784 19785# Transform confdefs.h into an awk script `defines.awk', embedded as 19786# here-document in config.status, that substitutes the proper values into 19787# config.h.in to produce config.h. 19788 19789# Create a delimiter string that does not exist in confdefs.h, to ease 19790# handling of long lines. 19791ac_delim='%!_!# ' 19792for ac_last_try in false false :; do 19793 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19794 if test -z "$ac_tt"; then 19795 break 19796 elif $ac_last_try; then 19797 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19798 else 19799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19800 fi 19801done 19802 19803# For the awk script, D is an array of macro values keyed by name, 19804# likewise P contains macro parameters if any. Preserve backslash 19805# newline sequences. 19806 19807ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19808sed -n ' 19809s/.\{148\}/&'"$ac_delim"'/g 19810t rset 19811:rset 19812s/^[ ]*#[ ]*define[ ][ ]*/ / 19813t def 19814d 19815:def 19816s/\\$// 19817t bsnl 19818s/["\\]/\\&/g 19819s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19820D["\1"]=" \3"/p 19821s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19822d 19823:bsnl 19824s/["\\]/\\&/g 19825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19826D["\1"]=" \3\\\\\\n"\\/p 19827t cont 19828s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19829t cont 19830d 19831:cont 19832n 19833s/.\{148\}/&'"$ac_delim"'/g 19834t clear 19835:clear 19836s/\\$// 19837t bsnlc 19838s/["\\]/\\&/g; s/^/"/; s/$/"/p 19839d 19840:bsnlc 19841s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19842b cont 19843' <confdefs.h | sed ' 19844s/'"$ac_delim"'/"\\\ 19845"/g' >>$CONFIG_STATUS || ac_write_fail=1 19846 19847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19848 for (key in D) D_is_set[key] = 1 19849 FS = "" 19850} 19851/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19852 line = \$ 0 19853 split(line, arg, " ") 19854 if (arg[1] == "#") { 19855 defundef = arg[2] 19856 mac1 = arg[3] 19857 } else { 19858 defundef = substr(arg[1], 2) 19859 mac1 = arg[2] 19860 } 19861 split(mac1, mac2, "(") #) 19862 macro = mac2[1] 19863 prefix = substr(line, 1, index(line, defundef) - 1) 19864 if (D_is_set[macro]) { 19865 # Preserve the white space surrounding the "#". 19866 print prefix "define", macro P[macro] D[macro] 19867 next 19868 } else { 19869 # Replace #undef with comments. This is necessary, for example, 19870 # in the case of _POSIX_SOURCE, which is predefined and required 19871 # on some systems where configure will not decide to define it. 19872 if (defundef == "undef") { 19873 print "/*", prefix defundef, macro, "*/" 19874 next 19875 } 19876 } 19877} 19878{ print } 19879_ACAWK 19880_ACEOF 19881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19882 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19883fi # test -n "$CONFIG_HEADERS" 19884 19885 19886eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19887shift 19888for ac_tag 19889do 19890 case $ac_tag in 19891 :[FHLC]) ac_mode=$ac_tag; continue;; 19892 esac 19893 case $ac_mode$ac_tag in 19894 :[FHL]*:*);; 19895 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19896 :[FH]-) ac_tag=-:-;; 19897 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19898 esac 19899 ac_save_IFS=$IFS 19900 IFS=: 19901 set x $ac_tag 19902 IFS=$ac_save_IFS 19903 shift 19904 ac_file=$1 19905 shift 19906 19907 case $ac_mode in 19908 :L) ac_source=$1;; 19909 :[FH]) 19910 ac_file_inputs= 19911 for ac_f 19912 do 19913 case $ac_f in 19914 -) ac_f="$ac_tmp/stdin";; 19915 *) # Look for the file first in the build tree, then in the source tree 19916 # (if the path is not absolute). The absolute path cannot be DOS-style, 19917 # because $ac_f cannot contain `:'. 19918 test -f "$ac_f" || 19919 case $ac_f in 19920 [\\/$]*) false;; 19921 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19922 esac || 19923 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19924 esac 19925 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19926 as_fn_append ac_file_inputs " '$ac_f'" 19927 done 19928 19929 # Let's still pretend it is `configure' which instantiates (i.e., don't 19930 # use $as_me), people would be surprised to read: 19931 # /* config.h. Generated by config.status. */ 19932 configure_input='Generated from '` 19933 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19934 `' by configure.' 19935 if test x"$ac_file" != x-; then 19936 configure_input="$ac_file. $configure_input" 19937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19938$as_echo "$as_me: creating $ac_file" >&6;} 19939 fi 19940 # Neutralize special characters interpreted by sed in replacement strings. 19941 case $configure_input in #( 19942 *\&* | *\|* | *\\* ) 19943 ac_sed_conf_input=`$as_echo "$configure_input" | 19944 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19945 *) ac_sed_conf_input=$configure_input;; 19946 esac 19947 19948 case $ac_tag in 19949 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19951 esac 19952 ;; 19953 esac 19954 19955 ac_dir=`$as_dirname -- "$ac_file" || 19956$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19957 X"$ac_file" : 'X\(//\)[^/]' \| \ 19958 X"$ac_file" : 'X\(//\)$' \| \ 19959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19960$as_echo X"$ac_file" | 19961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19962 s//\1/ 19963 q 19964 } 19965 /^X\(\/\/\)[^/].*/{ 19966 s//\1/ 19967 q 19968 } 19969 /^X\(\/\/\)$/{ 19970 s//\1/ 19971 q 19972 } 19973 /^X\(\/\).*/{ 19974 s//\1/ 19975 q 19976 } 19977 s/.*/./; q'` 19978 as_dir="$ac_dir"; as_fn_mkdir_p 19979 ac_builddir=. 19980 19981case "$ac_dir" in 19982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19983*) 19984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19985 # A ".." for each directory in $ac_dir_suffix. 19986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19987 case $ac_top_builddir_sub in 19988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19990 esac ;; 19991esac 19992ac_abs_top_builddir=$ac_pwd 19993ac_abs_builddir=$ac_pwd$ac_dir_suffix 19994# for backward compatibility: 19995ac_top_builddir=$ac_top_build_prefix 19996 19997case $srcdir in 19998 .) # We are building in place. 19999 ac_srcdir=. 20000 ac_top_srcdir=$ac_top_builddir_sub 20001 ac_abs_top_srcdir=$ac_pwd ;; 20002 [\\/]* | ?:[\\/]* ) # Absolute name. 20003 ac_srcdir=$srcdir$ac_dir_suffix; 20004 ac_top_srcdir=$srcdir 20005 ac_abs_top_srcdir=$srcdir ;; 20006 *) # Relative name. 20007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20008 ac_top_srcdir=$ac_top_build_prefix$srcdir 20009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20010esac 20011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20012 20013 20014 case $ac_mode in 20015 :F) 20016 # 20017 # CONFIG_FILE 20018 # 20019 20020 case $INSTALL in 20021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20022 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20023 esac 20024 ac_MKDIR_P=$MKDIR_P 20025 case $MKDIR_P in 20026 [\\/$]* | ?:[\\/]* ) ;; 20027 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20028 esac 20029_ACEOF 20030 20031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20032# If the template does not know about datarootdir, expand it. 20033# FIXME: This hack should be removed a few years after 2.60. 20034ac_datarootdir_hack=; ac_datarootdir_seen= 20035ac_sed_dataroot=' 20036/datarootdir/ { 20037 p 20038 q 20039} 20040/@datadir@/p 20041/@docdir@/p 20042/@infodir@/p 20043/@localedir@/p 20044/@mandir@/p' 20045case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20046*datarootdir*) ac_datarootdir_seen=yes;; 20047*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20049$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20050_ACEOF 20051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20052 ac_datarootdir_hack=' 20053 s&@datadir@&$datadir&g 20054 s&@docdir@&$docdir&g 20055 s&@infodir@&$infodir&g 20056 s&@localedir@&$localedir&g 20057 s&@mandir@&$mandir&g 20058 s&\\\${datarootdir}&$datarootdir&g' ;; 20059esac 20060_ACEOF 20061 20062# Neutralize VPATH when `$srcdir' = `.'. 20063# Shell code in configure.ac might set extrasub. 20064# FIXME: do we really want to maintain this feature? 20065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20066ac_sed_extra="$ac_vpsub 20067$extrasub 20068_ACEOF 20069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20070:t 20071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20072s|@configure_input@|$ac_sed_conf_input|;t t 20073s&@top_builddir@&$ac_top_builddir_sub&;t t 20074s&@top_build_prefix@&$ac_top_build_prefix&;t t 20075s&@srcdir@&$ac_srcdir&;t t 20076s&@abs_srcdir@&$ac_abs_srcdir&;t t 20077s&@top_srcdir@&$ac_top_srcdir&;t t 20078s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20079s&@builddir@&$ac_builddir&;t t 20080s&@abs_builddir@&$ac_abs_builddir&;t t 20081s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20082s&@INSTALL@&$ac_INSTALL&;t t 20083s&@MKDIR_P@&$ac_MKDIR_P&;t t 20084$ac_datarootdir_hack 20085" 20086eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20087 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20088 20089test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20090 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20092 "$ac_tmp/out"`; test -z "$ac_out"; } && 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20094which seems to be undefined. Please make sure it is defined" >&5 20095$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20096which seems to be undefined. Please make sure it is defined" >&2;} 20097 20098 rm -f "$ac_tmp/stdin" 20099 case $ac_file in 20100 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20101 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20102 esac \ 20103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20104 ;; 20105 :H) 20106 # 20107 # CONFIG_HEADER 20108 # 20109 if test x"$ac_file" != x-; then 20110 { 20111 $as_echo "/* $configure_input */" \ 20112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20113 } >"$ac_tmp/config.h" \ 20114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20115 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20116 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20117$as_echo "$as_me: $ac_file is unchanged" >&6;} 20118 else 20119 rm -f "$ac_file" 20120 mv "$ac_tmp/config.h" "$ac_file" \ 20121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20122 fi 20123 else 20124 $as_echo "/* $configure_input */" \ 20125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20126 || as_fn_error $? "could not create -" "$LINENO" 5 20127 fi 20128# Compute "$ac_file"'s index in $config_headers. 20129_am_arg="$ac_file" 20130_am_stamp_count=1 20131for _am_header in $config_headers :; do 20132 case $_am_header in 20133 $_am_arg | $_am_arg:* ) 20134 break ;; 20135 * ) 20136 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20137 esac 20138done 20139echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20140$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20141 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20142 X"$_am_arg" : 'X\(//\)$' \| \ 20143 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20144$as_echo X"$_am_arg" | 20145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20146 s//\1/ 20147 q 20148 } 20149 /^X\(\/\/\)[^/].*/{ 20150 s//\1/ 20151 q 20152 } 20153 /^X\(\/\/\)$/{ 20154 s//\1/ 20155 q 20156 } 20157 /^X\(\/\).*/{ 20158 s//\1/ 20159 q 20160 } 20161 s/.*/./; q'`/stamp-h$_am_stamp_count 20162 ;; 20163 20164 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20165$as_echo "$as_me: executing $ac_file commands" >&6;} 20166 ;; 20167 esac 20168 20169 20170 case $ac_file$ac_mode in 20171 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20172 # Older Autoconf quotes --file arguments for eval, but not when files 20173 # are listed without --file. Let's play safe and only enable the eval 20174 # if we detect the quoting. 20175 case $CONFIG_FILES in 20176 *\'*) eval set x "$CONFIG_FILES" ;; 20177 *) set x $CONFIG_FILES ;; 20178 esac 20179 shift 20180 for mf 20181 do 20182 # Strip MF so we end up with the name of the file. 20183 mf=`echo "$mf" | sed -e 's/:.*$//'` 20184 # Check whether this is an Automake generated Makefile or not. 20185 # We used to match only the files named 'Makefile.in', but 20186 # some people rename them; so instead we look at the file content. 20187 # Grep'ing the first line is not enough: some people post-process 20188 # each Makefile.in and add a new line on top of each file to say so. 20189 # Grep'ing the whole file is not good either: AIX grep has a line 20190 # limit of 2048, but all sed's we know have understand at least 4000. 20191 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20192 dirpart=`$as_dirname -- "$mf" || 20193$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20194 X"$mf" : 'X\(//\)[^/]' \| \ 20195 X"$mf" : 'X\(//\)$' \| \ 20196 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20197$as_echo X"$mf" | 20198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20199 s//\1/ 20200 q 20201 } 20202 /^X\(\/\/\)[^/].*/{ 20203 s//\1/ 20204 q 20205 } 20206 /^X\(\/\/\)$/{ 20207 s//\1/ 20208 q 20209 } 20210 /^X\(\/\).*/{ 20211 s//\1/ 20212 q 20213 } 20214 s/.*/./; q'` 20215 else 20216 continue 20217 fi 20218 # Extract the definition of DEPDIR, am__include, and am__quote 20219 # from the Makefile without running 'make'. 20220 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20221 test -z "$DEPDIR" && continue 20222 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20223 test -z "$am__include" && continue 20224 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20225 # Find all dependency output files, they are included files with 20226 # $(DEPDIR) in their names. We invoke sed twice because it is the 20227 # simplest approach to changing $(DEPDIR) to its actual value in the 20228 # expansion. 20229 for file in `sed -n " 20230 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20232 # Make sure the directory exists. 20233 test -f "$dirpart/$file" && continue 20234 fdir=`$as_dirname -- "$file" || 20235$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20236 X"$file" : 'X\(//\)[^/]' \| \ 20237 X"$file" : 'X\(//\)$' \| \ 20238 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20239$as_echo X"$file" | 20240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20241 s//\1/ 20242 q 20243 } 20244 /^X\(\/\/\)[^/].*/{ 20245 s//\1/ 20246 q 20247 } 20248 /^X\(\/\/\)$/{ 20249 s//\1/ 20250 q 20251 } 20252 /^X\(\/\).*/{ 20253 s//\1/ 20254 q 20255 } 20256 s/.*/./; q'` 20257 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20258 # echo "creating $dirpart/$file" 20259 echo '# dummy' > "$dirpart/$file" 20260 done 20261 done 20262} 20263 ;; 20264 "libtool":C) 20265 20266 # See if we are running on zsh, and set the options that allow our 20267 # commands through without removal of \ escapes. 20268 if test -n "${ZSH_VERSION+set}"; then 20269 setopt NO_GLOB_SUBST 20270 fi 20271 20272 cfgfile=${ofile}T 20273 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20274 $RM "$cfgfile" 20275 20276 cat <<_LT_EOF >> "$cfgfile" 20277#! $SHELL 20278# Generated automatically by $as_me ($PACKAGE) $VERSION 20279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20280# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20281 20282# Provide generalized library-building support services. 20283# Written by Gordon Matzigkeit, 1996 20284 20285# Copyright (C) 2014 Free Software Foundation, Inc. 20286# This is free software; see the source for copying conditions. There is NO 20287# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20288 20289# GNU Libtool is free software; you can redistribute it and/or modify 20290# it under the terms of the GNU General Public License as published by 20291# the Free Software Foundation; either version 2 of of the License, or 20292# (at your option) any later version. 20293# 20294# As a special exception to the GNU General Public License, if you 20295# distribute this file as part of a program or library that is built 20296# using GNU Libtool, you may include this file under the same 20297# distribution terms that you use for the rest of that program. 20298# 20299# GNU Libtool is distributed in the hope that it will be useful, but 20300# WITHOUT ANY WARRANTY; without even the implied warranty of 20301# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20302# GNU General Public License for more details. 20303# 20304# You should have received a copy of the GNU General Public License 20305# along with this program. If not, see <http://www.gnu.org/licenses/>. 20306 20307 20308# The names of the tagged configurations supported by this script. 20309available_tags='' 20310 20311# Configured defaults for sys_lib_dlsearch_path munging. 20312: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20313 20314# ### BEGIN LIBTOOL CONFIG 20315 20316# Whether or not to build static libraries. 20317build_old_libs=$enable_static 20318 20319# Which release of libtool.m4 was used? 20320macro_version=$macro_version 20321macro_revision=$macro_revision 20322 20323# Whether or not to build shared libraries. 20324build_libtool_libs=$enable_shared 20325 20326# What type of objects to build. 20327pic_mode=$pic_mode 20328 20329# Whether or not to optimize for fast installation. 20330fast_install=$enable_fast_install 20331 20332# Shared archive member basename,for filename based shared library versioning on AIX. 20333shared_archive_member_spec=$shared_archive_member_spec 20334 20335# Shell to use when invoking shell scripts. 20336SHELL=$lt_SHELL 20337 20338# An echo program that protects backslashes. 20339ECHO=$lt_ECHO 20340 20341# The PATH separator for the build system. 20342PATH_SEPARATOR=$lt_PATH_SEPARATOR 20343 20344# The host system. 20345host_alias=$host_alias 20346host=$host 20347host_os=$host_os 20348 20349# The build system. 20350build_alias=$build_alias 20351build=$build 20352build_os=$build_os 20353 20354# A sed program that does not truncate output. 20355SED=$lt_SED 20356 20357# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20358Xsed="\$SED -e 1s/^X//" 20359 20360# A grep program that handles long lines. 20361GREP=$lt_GREP 20362 20363# An ERE matcher. 20364EGREP=$lt_EGREP 20365 20366# A literal string matcher. 20367FGREP=$lt_FGREP 20368 20369# A BSD- or MS-compatible name lister. 20370NM=$lt_NM 20371 20372# Whether we need soft or hard links. 20373LN_S=$lt_LN_S 20374 20375# What is the maximum length of a command? 20376max_cmd_len=$max_cmd_len 20377 20378# Object file suffix (normally "o"). 20379objext=$ac_objext 20380 20381# Executable file suffix (normally ""). 20382exeext=$exeext 20383 20384# whether the shell understands "unset". 20385lt_unset=$lt_unset 20386 20387# turn spaces into newlines. 20388SP2NL=$lt_lt_SP2NL 20389 20390# turn newlines into spaces. 20391NL2SP=$lt_lt_NL2SP 20392 20393# convert \$build file names to \$host format. 20394to_host_file_cmd=$lt_cv_to_host_file_cmd 20395 20396# convert \$build files to toolchain format. 20397to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20398 20399# An object symbol dumper. 20400OBJDUMP=$lt_OBJDUMP 20401 20402# Method to check whether dependent libraries are shared objects. 20403deplibs_check_method=$lt_deplibs_check_method 20404 20405# Command to use when deplibs_check_method = "file_magic". 20406file_magic_cmd=$lt_file_magic_cmd 20407 20408# How to find potential files when deplibs_check_method = "file_magic". 20409file_magic_glob=$lt_file_magic_glob 20410 20411# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20412want_nocaseglob=$lt_want_nocaseglob 20413 20414# DLL creation program. 20415DLLTOOL=$lt_DLLTOOL 20416 20417# Command to associate shared and link libraries. 20418sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20419 20420# The archiver. 20421AR=$lt_AR 20422 20423# Flags to create an archive. 20424AR_FLAGS=$lt_AR_FLAGS 20425 20426# How to feed a file listing to the archiver. 20427archiver_list_spec=$lt_archiver_list_spec 20428 20429# A symbol stripping program. 20430STRIP=$lt_STRIP 20431 20432# Commands used to install an old-style archive. 20433RANLIB=$lt_RANLIB 20434old_postinstall_cmds=$lt_old_postinstall_cmds 20435old_postuninstall_cmds=$lt_old_postuninstall_cmds 20436 20437# Whether to use a lock for old archive extraction. 20438lock_old_archive_extraction=$lock_old_archive_extraction 20439 20440# A C compiler. 20441LTCC=$lt_CC 20442 20443# LTCC compiler flags. 20444LTCFLAGS=$lt_CFLAGS 20445 20446# Take the output of nm and produce a listing of raw symbols and C names. 20447global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20448 20449# Transform the output of nm in a proper C declaration. 20450global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20451 20452# Transform the output of nm into a list of symbols to manually relocate. 20453global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20454 20455# Transform the output of nm in a C name address pair. 20456global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20457 20458# Transform the output of nm in a C name address pair when lib prefix is needed. 20459global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20460 20461# The name lister interface. 20462nm_interface=$lt_lt_cv_nm_interface 20463 20464# Specify filename containing input files for \$NM. 20465nm_file_list_spec=$lt_nm_file_list_spec 20466 20467# The root where to search for dependent libraries,and where our libraries should be installed. 20468lt_sysroot=$lt_sysroot 20469 20470# Command to truncate a binary pipe. 20471lt_truncate_bin=$lt_lt_cv_truncate_bin 20472 20473# The name of the directory that contains temporary libtool files. 20474objdir=$objdir 20475 20476# Used to examine libraries when file_magic_cmd begins with "file". 20477MAGIC_CMD=$MAGIC_CMD 20478 20479# Must we lock files when doing compilation? 20480need_locks=$lt_need_locks 20481 20482# Manifest tool. 20483MANIFEST_TOOL=$lt_MANIFEST_TOOL 20484 20485# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20486DSYMUTIL=$lt_DSYMUTIL 20487 20488# Tool to change global to local symbols on Mac OS X. 20489NMEDIT=$lt_NMEDIT 20490 20491# Tool to manipulate fat objects and archives on Mac OS X. 20492LIPO=$lt_LIPO 20493 20494# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20495OTOOL=$lt_OTOOL 20496 20497# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20498OTOOL64=$lt_OTOOL64 20499 20500# Old archive suffix (normally "a"). 20501libext=$libext 20502 20503# Shared library suffix (normally ".so"). 20504shrext_cmds=$lt_shrext_cmds 20505 20506# The commands to extract the exported symbol list from a shared archive. 20507extract_expsyms_cmds=$lt_extract_expsyms_cmds 20508 20509# Variables whose values should be saved in libtool wrapper scripts and 20510# restored at link time. 20511variables_saved_for_relink=$lt_variables_saved_for_relink 20512 20513# Do we need the "lib" prefix for modules? 20514need_lib_prefix=$need_lib_prefix 20515 20516# Do we need a version for libraries? 20517need_version=$need_version 20518 20519# Library versioning type. 20520version_type=$version_type 20521 20522# Shared library runtime path variable. 20523runpath_var=$runpath_var 20524 20525# Shared library path variable. 20526shlibpath_var=$shlibpath_var 20527 20528# Is shlibpath searched before the hard-coded library search path? 20529shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20530 20531# Format of library name prefix. 20532libname_spec=$lt_libname_spec 20533 20534# List of archive names. First name is the real one, the rest are links. 20535# The last name is the one that the linker finds with -lNAME 20536library_names_spec=$lt_library_names_spec 20537 20538# The coded name of the library, if different from the real name. 20539soname_spec=$lt_soname_spec 20540 20541# Permission mode override for installation of shared libraries. 20542install_override_mode=$lt_install_override_mode 20543 20544# Command to use after installation of a shared archive. 20545postinstall_cmds=$lt_postinstall_cmds 20546 20547# Command to use after uninstallation of a shared archive. 20548postuninstall_cmds=$lt_postuninstall_cmds 20549 20550# Commands used to finish a libtool library installation in a directory. 20551finish_cmds=$lt_finish_cmds 20552 20553# As "finish_cmds", except a single script fragment to be evaled but 20554# not shown. 20555finish_eval=$lt_finish_eval 20556 20557# Whether we should hardcode library paths into libraries. 20558hardcode_into_libs=$hardcode_into_libs 20559 20560# Compile-time system search path for libraries. 20561sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20562 20563# Detected run-time system search path for libraries. 20564sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20565 20566# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20567configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20568 20569# Whether dlopen is supported. 20570dlopen_support=$enable_dlopen 20571 20572# Whether dlopen of programs is supported. 20573dlopen_self=$enable_dlopen_self 20574 20575# Whether dlopen of statically linked programs is supported. 20576dlopen_self_static=$enable_dlopen_self_static 20577 20578# Commands to strip libraries. 20579old_striplib=$lt_old_striplib 20580striplib=$lt_striplib 20581 20582 20583# The linker used to build libraries. 20584LD=$lt_LD 20585 20586# How to create reloadable object files. 20587reload_flag=$lt_reload_flag 20588reload_cmds=$lt_reload_cmds 20589 20590# Commands used to build an old-style archive. 20591old_archive_cmds=$lt_old_archive_cmds 20592 20593# A language specific compiler. 20594CC=$lt_compiler 20595 20596# Is the compiler the GNU compiler? 20597with_gcc=$GCC 20598 20599# Compiler flag to turn off builtin functions. 20600no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20601 20602# Additional compiler flags for building library objects. 20603pic_flag=$lt_lt_prog_compiler_pic 20604 20605# How to pass a linker flag through the compiler. 20606wl=$lt_lt_prog_compiler_wl 20607 20608# Compiler flag to prevent dynamic linking. 20609link_static_flag=$lt_lt_prog_compiler_static 20610 20611# Does compiler simultaneously support -c and -o options? 20612compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20613 20614# Whether or not to add -lc for building shared libraries. 20615build_libtool_need_lc=$archive_cmds_need_lc 20616 20617# Whether or not to disallow shared libs when runtime libs are static. 20618allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20619 20620# Compiler flag to allow reflexive dlopens. 20621export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20622 20623# Compiler flag to generate shared objects directly from archives. 20624whole_archive_flag_spec=$lt_whole_archive_flag_spec 20625 20626# Whether the compiler copes with passing no objects directly. 20627compiler_needs_object=$lt_compiler_needs_object 20628 20629# Create an old-style archive from a shared archive. 20630old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20631 20632# Create a temporary old-style archive to link instead of a shared archive. 20633old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20634 20635# Commands used to build a shared archive. 20636archive_cmds=$lt_archive_cmds 20637archive_expsym_cmds=$lt_archive_expsym_cmds 20638 20639# Commands used to build a loadable module if different from building 20640# a shared archive. 20641module_cmds=$lt_module_cmds 20642module_expsym_cmds=$lt_module_expsym_cmds 20643 20644# Whether we are building with GNU ld or not. 20645with_gnu_ld=$lt_with_gnu_ld 20646 20647# Flag that allows shared libraries with undefined symbols to be built. 20648allow_undefined_flag=$lt_allow_undefined_flag 20649 20650# Flag that enforces no undefined symbols. 20651no_undefined_flag=$lt_no_undefined_flag 20652 20653# Flag to hardcode \$libdir into a binary during linking. 20654# This must work even if \$libdir does not exist 20655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20656 20657# Whether we need a single "-rpath" flag with a separated argument. 20658hardcode_libdir_separator=$lt_hardcode_libdir_separator 20659 20660# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20661# DIR into the resulting binary. 20662hardcode_direct=$hardcode_direct 20663 20664# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20665# DIR into the resulting binary and the resulting library dependency is 20666# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20667# library is relocated. 20668hardcode_direct_absolute=$hardcode_direct_absolute 20669 20670# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20671# into the resulting binary. 20672hardcode_minus_L=$hardcode_minus_L 20673 20674# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20675# into the resulting binary. 20676hardcode_shlibpath_var=$hardcode_shlibpath_var 20677 20678# Set to "yes" if building a shared library automatically hardcodes DIR 20679# into the library and all subsequent libraries and executables linked 20680# against it. 20681hardcode_automatic=$hardcode_automatic 20682 20683# Set to yes if linker adds runtime paths of dependent libraries 20684# to runtime path list. 20685inherit_rpath=$inherit_rpath 20686 20687# Whether libtool must link a program against all its dependency libraries. 20688link_all_deplibs=$link_all_deplibs 20689 20690# Set to "yes" if exported symbols are required. 20691always_export_symbols=$always_export_symbols 20692 20693# The commands to list exported symbols. 20694export_symbols_cmds=$lt_export_symbols_cmds 20695 20696# Symbols that should not be listed in the preloaded symbols. 20697exclude_expsyms=$lt_exclude_expsyms 20698 20699# Symbols that must always be exported. 20700include_expsyms=$lt_include_expsyms 20701 20702# Commands necessary for linking programs (against libraries) with templates. 20703prelink_cmds=$lt_prelink_cmds 20704 20705# Commands necessary for finishing linking programs. 20706postlink_cmds=$lt_postlink_cmds 20707 20708# Specify filename containing input files. 20709file_list_spec=$lt_file_list_spec 20710 20711# How to hardcode a shared library path into an executable. 20712hardcode_action=$hardcode_action 20713 20714# ### END LIBTOOL CONFIG 20715 20716_LT_EOF 20717 20718 cat <<'_LT_EOF' >> "$cfgfile" 20719 20720# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20721 20722# func_munge_path_list VARIABLE PATH 20723# ----------------------------------- 20724# VARIABLE is name of variable containing _space_ separated list of 20725# directories to be munged by the contents of PATH, which is string 20726# having a format: 20727# "DIR[:DIR]:" 20728# string "DIR[ DIR]" will be prepended to VARIABLE 20729# ":DIR[:DIR]" 20730# string "DIR[ DIR]" will be appended to VARIABLE 20731# "DIRP[:DIRP]::[DIRA:]DIRA" 20732# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20733# "DIRA[ DIRA]" will be appended to VARIABLE 20734# "DIR[:DIR]" 20735# VARIABLE will be replaced by "DIR[ DIR]" 20736func_munge_path_list () 20737{ 20738 case x$2 in 20739 x) 20740 ;; 20741 *:) 20742 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20743 ;; 20744 x:*) 20745 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20746 ;; 20747 *::*) 20748 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20749 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20750 ;; 20751 *) 20752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20753 ;; 20754 esac 20755} 20756 20757 20758# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20759func_cc_basename () 20760{ 20761 for cc_temp in $*""; do 20762 case $cc_temp in 20763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20765 \-*) ;; 20766 *) break;; 20767 esac 20768 done 20769 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20770} 20771 20772 20773# ### END FUNCTIONS SHARED WITH CONFIGURE 20774 20775_LT_EOF 20776 20777 case $host_os in 20778 aix3*) 20779 cat <<\_LT_EOF >> "$cfgfile" 20780# AIX sometimes has problems with the GCC collect2 program. For some 20781# reason, if we set the COLLECT_NAMES environment variable, the problems 20782# vanish in a puff of smoke. 20783if test set != "${COLLECT_NAMES+set}"; then 20784 COLLECT_NAMES= 20785 export COLLECT_NAMES 20786fi 20787_LT_EOF 20788 ;; 20789 esac 20790 20791 20792ltmain=$ac_aux_dir/ltmain.sh 20793 20794 20795 # We use sed instead of cat because bash on DJGPP gets confused if 20796 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20797 # text mode, it properly converts lines to CR/LF. This bash problem 20798 # is reportedly fixed, but why not run on old versions too? 20799 sed '$q' "$ltmain" >> "$cfgfile" \ 20800 || (rm -f "$cfgfile"; exit 1) 20801 20802 mv -f "$cfgfile" "$ofile" || 20803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20804 chmod +x "$ofile" 20805 20806 ;; 20807 20808 esac 20809done # for ac_tag 20810 20811 20812as_fn_exit 0 20813_ACEOF 20814ac_clean_files=$ac_clean_files_save 20815 20816test $ac_write_fail = 0 || 20817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20818 20819 20820# configure is writing to config.log, and then calls config.status. 20821# config.status does its own redirection, appending to config.log. 20822# Unfortunately, on DOS this fails, as config.log is still kept open 20823# by configure, so config.status won't be able to write to it; its 20824# output is simply discarded. So we exec the FD to /dev/null, 20825# effectively closing config.log, so it can be properly (re)opened and 20826# appended to by config.status. When coming back to configure, we 20827# need to make the FD available again. 20828if test "$no_create" != yes; then 20829 ac_cs_success=: 20830 ac_config_status_args= 20831 test "$silent" = yes && 20832 ac_config_status_args="$ac_config_status_args --quiet" 20833 exec 5>/dev/null 20834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20835 exec 5>>config.log 20836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20837 # would make configure fail if this is the last instruction. 20838 $ac_cs_success || as_fn_exit 1 20839fi 20840if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20842$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20843fi 20844 20845